query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Maintenance the specified capability. Can take a different amount of time if capability is already broken.
public void maintenanceMachineCapability(String capability) { if (self.getServiceManager().checkMaintenanceAllowed(capability)) { self.getServiceManager().setMaintenance(true); syncUpdateWithCheck(false); int mainTime = self.getServiceManager().getCapability(capability).getMaintenanceTime(); if (!self.getServiceManager().getCapability(capability).getStatus()) { mainTime = self.getServiceManager().getCapability(capability).getRepairTime(); } for (int i = 0; i < mainTime * env.getStepTimeScaler(); i++) { waitStepWithCheck(); } self.getServiceManager().repairCapability(capability); self.getServiceManager().setMaintenance(false); syncUpdateWithCheck(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changeMachineCapability(String capability) {\n if (self.getServiceManager().checkChangeAllowed(capability)) {\n self.getServiceManager().setChanging(true);\n syncUpdateWithCheck(false);\n // Wait as long as capability changes\n int setupTime = self.getServiceManager().getCapability(capability).getSetupTime();\n for (int i = 0; i < setupTime * env.getStepTimeScaler(); i++) {\n waitStepWithCheck();\n }\n self.increaseChangeCount();\n self.getServiceManager().changeCapability(capability);\n self.getServiceManager().setChanging(false);\n syncUpdateWithCheck(false);\n }\n }", "public void setCapability(Capability value) {\n\t\tthis._capability = value;\n\t}", "public void runMaintenance() throws RemoteException;", "private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}", "public void maybeMarkCapabilitiesRestricted() {\n // Check if we have any capability that forces the network to be restricted.\n final boolean forceRestrictedCapability =\n (mNetworkCapabilities & FORCE_RESTRICTED_CAPABILITIES) != 0;\n\n // Verify there aren't any unrestricted capabilities. If there are we say\n // the whole thing is unrestricted unless it is forced to be restricted.\n final boolean hasUnrestrictedCapabilities =\n (mNetworkCapabilities & UNRESTRICTED_CAPABILITIES) != 0;\n\n // Must have at least some restricted capabilities.\n final boolean hasRestrictedCapabilities =\n (mNetworkCapabilities & RESTRICTED_CAPABILITIES) != 0;\n\n if (forceRestrictedCapability\n || (hasRestrictedCapabilities && !hasUnrestrictedCapabilities)) {\n removeCapability(NET_CAPABILITY_NOT_RESTRICTED);\n }\n }", "public void setCapabilities(String capabilities) {\n this.capabilities = capabilities;\n }", "private static IReasoner checkForCapabilitiy(IReasoner reasoner, IReasonerCapability capability) {\r\n IReasoner result = null;\r\n if (null != reasoner) {\r\n ReasonerDescriptor desc = reasoner.getDescriptor();\r\n if (null != desc) {\r\n if (desc.hasCapability(capability)) {\r\n result = reasoner;\r\n }\r\n }\r\n }\r\n return result;\r\n }", "private void performMaintenance(String table, MaintenanceOp op) {\n Thread thread = Thread.currentThread();\n String oldThreadName = thread.getName();\n boolean reschedule = true;\n try {\n thread.setName(String.format(\"%s - %s - %s\", oldThreadName, op.getName(), table));\n switch (op.getType()) {\n case METADATA:\n performMetadataMaintenance(table);\n break;\n case DATA:\n performDataMaintenance(table);\n break;\n }\n reschedule = false;\n } catch (FullConsistencyException t) {\n // This is handled the same as any other exception thrown by maintenance except that it logs less loudly.\n // In local testing where the hints poller isn't present force full consistency with the following:\n // curl -s -XPOST \"localhost:8081/tasks/compaction-timestamp?all=$(date -u +\"%Y-%m-%dT%H:%M:%SZ\")\"\n // curl -s -XPOST 'localhost:8081/tasks/compaction-lag?all=PT0.001S'\n _log.info(\"Waiting for full consistency before proceeding with '{}' maintenance on table: {}, {}\",\n op.getName(), table, t.getMessage());\n } catch (PendingTableEventsException t) {\n _log.info(\"Waiting for pending table events to complete before proceeding with {} on table {}, {}\",\n op.getName(), table, t.getMessage());\n } catch (Throwable t) {\n _log.error(\"Unexpected exception performing '{}' maintenance on table: {}\", op.getName(), table, t);\n } finally {\n thread.setName(oldThreadName);\n }\n if (reschedule) {\n scheduleTask(table, MaintenanceOp.reschedule(op, Instant.now().plus(RETRY_DELAY)));\n }\n }", "public void setCapabilityConfiguration(String capabilityConfiguration) {\n this.capabilityConfiguration = capabilityConfiguration;\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n public void performMaintenance(\n String resourceGroupName, String vmScaleSetName, String instanceId, Context context) {\n performMaintenanceAsync(resourceGroupName, vmScaleSetName, instanceId, context).block();\n }", "@Override\r\n\tpublic void performMaintenance() throws MaintenanceException {\r\n\t\t// if this car is being rented, this car should not be performed to maintenance\r\n\t\tif (status == Status.RENTED) {\r\n\t\t\tthrow new MaintenanceException(\"This car is being rented, you cannot perform maintenance right now\");\r\n\t\t}\r\n\t\tDateTime today = new DateTime();\r\n\t\tmaintenanceDate = today;\r\n\t\tstatus = Status.MAINTENANCE;\r\n\t\tdatabaseHandle.performMaintenance(this);\r\n\t}", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "boolean doMaintenance() throws IOException;", "protected void stopMaintenance()\n\t{\n\t\tif (this.maintenanceThread == null) return;\n\n\t\tthis.stopMaintenanceThread = true;\n\t\tthis.maintenanceThread.interrupt();\n\t\tthis.maintenanceThread = null;\n\t}", "@Override\n\tpublic void checkMaintenanceStatus() {\n\t}", "public void charge() {\r\n capacity = Math.min(capacity += originalCapacity, originalCapacity);\r\n }", "public Capability getCapability() {\n\t\treturn _capability;\n\t}", "public void upgradeCapacity()\r\n\t{\r\n\t\tcapacity++;\r\n\t}", "@ServiceMethod(returns = ReturnType.SINGLE)\n public void performMaintenance(String resourceGroupName, String vmScaleSetName, String instanceId) {\n performMaintenanceAsync(resourceGroupName, vmScaleSetName, instanceId).block();\n }", "public void performAbility() { return; }", "@Override\n public void prepareAMResourceRequirements(ClusterDescription clusterSpec,\n Resource capability) {\n\n }", "ICapability getCapabilityById( String id );", "protected void wash() throws InterruptedException {\n\t\t// Lock hatch\n\t\tmyMachine.setLock(true);\n\n\t\tpreWash();\n\t\tmainWash();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\trinse();\n\t\t}\n\t\tcentrifuge();\n\t\t// Unlock\n\t\tmyMachine.setLock(false);\n\t}", "@Override\n public void onDeviceCapabilityStateChange(VirtualDevice virtualDevice, Capability capability, int returncode) {\n if (returncode == EventType.EVENT_DEVICE_CAPABILITY_ENABLE) {\n // When the device capability is successfully enabled, the application processes\n onEnable(virtualDevice, capability);\n } else if (returncode == EventType.EVENT_DEVICE_CAPABILITY_DISABLE) {\n // Application processing when device capability is successfully disabled\n onDisable(virtualDevice, capability);\n } else {\n // Application processing when device capability is abnormal\n onError(virtualDevice, capability, returncode);\n }\n }", "boolean has(String capability);", "public abstract void performAction(Individual victim) {\n\tvictim.health -= this.performance;\n}", "ManagementLockObject apply();", "public void downgrade(){\n\n //downgrade a buildings stats \n this.setLevel(this.getLevel() - 1);\n this.setMaxHealth(this.getMaxHealth() - 500);\n this.setHealth(this.getHealth() - 500);\n this.maxCapacity -= 20;\n\n }", "public void executeRegularMarketMaintenance(OrderManagementContext orderManagementContext_);", "@Override\n\tpublic void upgrade() {\n\t\tthis.power += 5;\n\t}", "public boolean hasReasonerCapability(IReasonerCapability capability) {\r\n return hasReasonerCapability(capability, null);\r\n }", "boolean capabilityExist( String id );", "@TestProperties(name = \"PnP procedure in NMS cold reboot IPV4 With SW Upgrade\", returnParam = {\n\t\t\t\"IsTestWasSuccessful\" }, paramsExclude = { \"IsTestWasSuccessful\" })\n\tpublic void PnPColdRebootIPV4WithSWUpgrade() throws Exception {\n\t\tisWarmReset = false;\n\t\tmainProcedure();\n\t\tpostTest();\n\t}", "public void decrementWorkload() {\n workload--;\n }", "@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_ShouldAbort() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}", "public void preempt()\n\t{\n\t}", "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>\n simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getSimulateMaintenanceEventMethod(), getCallOptions()), request);\n }", "public void setRequireMaintenance(boolean yes){\n this.requireMaintenance = yes;\n }", "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "public final void mT__18() throws RecognitionException {\n try {\n int _type = T__18;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:16:7: ( 'capability' )\n // InternalMyDsl.g:16:9: 'capability'\n {\n match(\"capability\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }", "@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}", "public boolean isCapableOf(ModuleCapability capability) {\r\n if (capability == ModuleCapability.LIFECYCLE_CAPABLE) {\r\n return true;\r\n }\r\n return false;\r\n }", "public void punch (int health)\n {\n\thealth -= 8;\n\thealth2 = health;\n }", "public void addCapability(Object o) {\n\tif (!_capabilities.contains(o)) {\n\t _capabilities.add(o);\n\t _log.addedCapability(o);\n\t}\n }", "void fulfill( AvailabilityRequirement requirement );", "public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }", "public DeviceDescription setCapabilities(List<DeviceDescriptionCapability> capabilities) {\n this.capabilities = capabilities;\n return this;\n }", "public com.google.longrunning.Operation simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getSimulateMaintenanceEventMethod(), getCallOptions(), request);\n }", "public com.google.common.util.concurrent.ListenableFuture<yandex.cloud.api.operation.OperationOuterClass.Operation> rescheduleMaintenance(\n yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.RescheduleMaintenanceRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request);\n }", "void sendAdminCommandLocked(String action, int reqPolicy, int userHandle, Bundle adminExtras) {\n final DevicePolicyData policy = getUserData(userHandle);\n final int count = policy.mAdminList.size();\n for (int i = 0; i < count; i++) {\n final ActiveAdmin admin = policy.mAdminList.get(i);\n if (admin.info.usesPolicy(reqPolicy)) {\n sendAdminCommandLocked(admin, action, adminExtras, null);\n }\n }\n }", "public void setCapacity(double capacity) {\n\t\tthis.capacity = capacity;\n\t}", "public UpdateGatewayCapabilityConfigurationRequest withCapabilityConfiguration(String capabilityConfiguration) {\n setCapabilityConfiguration(capabilityConfiguration);\n return this;\n }", "public void updateMIB(double reachability, int index){\t\t\n\t\tif(this.mib < reachability){\n\t\t\tmibIndex = index;\n\t\t\tthis.mib = reachability;\n\t\t}\n\t}", "@Override\n public void stress() {\n _brain.heart.accelerate(2);\n }", "public final void release() throws Exception {\n mbs.unregisterMBean(name);\n MBeanServerFactory.releaseMBeanServer(mbs);\n }", "public void wash() {\n synchronized (this) {\n LOGGER.info(\"{}:Actual machine state:{}\", Thread.currentThread().getName(),\n getWashingMachineState());\n if (WashingMachineState.WASHING.equals(washingMachineState)) {\n LOGGER.error(\"ERROR:Cannot wash if the machine has already been washing\");\n return;\n }\n washingMachineState = WashingMachineState.WASHING;\n }\n LOGGER.info(\"{}:Doing the washing\", Thread.currentThread().getName());\n try {\n Thread.sleep(50);\n } catch (Exception e) {\n e.printStackTrace();\n }\n endWashing();\n }", "@Test(priority = 4)\n\tpublic void switchToFreePlanOnDowngradeButtonClick() throws InterruptedException {\n\t\tThread.sleep(1000L);\n\t\tswitchToPlan();\n\t\tbillingpageobject.DowngradeButton().click();\n\t\tvalidateBillingPageAssertion();\n\t\tlog.info(\"Testcase-3 passed since user clicked on Downgrade button & landed on Account Plan page\");\n\t\tbillingpageobject.ToastButton().getText();\n\t\tlog.info(\"Message after downgrading to free plan is \" + billingpageobject.ToastButton().getText());\n\t\tvalidateFreeplanPageAssertion();\n\t}", "protected void unconfigureAbilityModifiers(Ability ability) {\n int count = ability.getLimitationCount();\n for (int i = 0; i < count; i++) {\n //if ( ability.getIndexedBooleanValue(i, \"Limitation\", \"FRAMEWORKLIMITATION\") ) {\n Limitation lim = ability.getLimitation(i);\n if (lim.isAddedByFramework()) {\n ability.removeLimitation(i);\n count--;\n }\n }\n }", "@Override\n\tprotected void action() {\n\t\tif(Directory.profile.removeGold(cost)){\n\t\t\t//Increment player's power by 1\n\t\t\tDirectory.profile.getPlayer().incrementPower(1);\n\t\t\t\n\t\t\tcost = Directory.profile.getPlayer().getPower() * 10;\n\t\t\tsuper.setText(\"Upgrade Power: \" + cost + \" gold\"); \n\t\t}\n\t}", "@Override\n\tpublic void declarehealthy(Patient patient) {\n\t\tsf.getCurrentSession().evict(patient);\n\n\t\tpatient.setHealthy(true);\n\n\t\tsf.getCurrentSession().update(patient);\n\n\t}", "public static ShortCapabilityBlock getShortBlock(CapabilityBlock cap)\n throws IllegalArgumentException {\n DefensiveTools.checkNull(cap, \"cap\");\n\n if (!couldBeShortBlock(cap)) {\n throw new IllegalArgumentException(\"Capability block '\" + cap\n + \"' cannot be converted to a short capability block\");\n }\n\n return new ShortCapabilityBlock(cap.getBlock().subBlock(2, 2));\n }", "public yandex.cloud.api.operation.OperationOuterClass.Operation rescheduleMaintenance(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.RescheduleMaintenanceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request);\n }", "public Kingdom takePower(int am) {\n int newa = this.power - am;\n\n try {\n java.sql.PreparedStatement s = QuartzKingdoms.DBKing.prepareStatement(\"UPDATE Kingdoms SET Power=? WHERE id=?;\");\n s.setInt(1, newa);\n s.setInt(2, this.id);\n if (s.executeUpdate() == 1) {\n this.power = newa;\n this.setLevel(newa);\n return this;\n } else {\n return this;\n }\n } catch (SQLException e) {\n return this;\n }\n }", "@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}", "boolean decrementPlannedInstances();", "void setOrderCapacity(OrderCapacity inOrderCapacity);", "public void updateSwarm();", "public void decrementStatistic ( Statistic statistic , Material material ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.decrementStatistic ( statistic , material ) );\n\t}", "private void updateVolumeCapacity(Volume volume, Long capacity, boolean isExpand) {\n if (!volume.getCapacity().equals(capacity)) {\n // Update the volume's originally requested capacity in Cassandra\n // to be the new capacity. This will end up being used\n // as the capacity value when provisioning the volumes on the\n // storage systems via the SMI-S provider.\n //\n // However, we don't want to persist the size of the volume if the operation is\n // expand because the expand code takes care of that based on if the volume was\n // indeed expanded or not.\n if (!isExpand) {\n _log.info(String.format(\"Updating capacity for volume [%s] from %s to %s.\",\n volume.getLabel(),\n volume.getCapacity(),\n capacity));\n // Update capacity and persist volume\n volume.setCapacity(capacity);\n _dbClient.persistObject(volume);\n }\n else {\n _log.info(String.format(\"Do not update capacity for volume [%s] as this is an expand operation.\", volume.getLabel()));\n }\n }\n else {\n _log.info(String.format(\"No need to update capacity for volume [%s].\", volume.getLabel()));\n }\n }", "@Override\n protected void rescheduleForNewServerAccessCredits (final double time)\n {\n }", "public void clickYesToRemovePolicy(String NameToclick, boolean screenShot, ExtentTest extentedReport)\n\t\t\tthrows Exception {\n\n\t\ttry {\n\t\t\tclickBinIcon(NameToclick, screenShot, extentedReport);\n\n\t\t\tWaitUtils.waitForelementToBeClickable(driver, btnYesToRemovejointPolicy,\n\t\t\t\t\t\"Failed to locate yes button to confirm remove joint policy\");\n\t\t\tbtnYesToRemovejointPolicy.click();\n\t\t\tWaitUtils.waitForinvisiblityofElement(driver, 120, cssBtnYesToRemovePolicyHolder,\n\t\t\t\t\t\"Remove policy holder pop failed to close after waiting for 2 mins\");\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Error while clicking Yes button\" + e);\n\t\t}\n\n\t}", "@Test\n public void timeCollectionDisabled() {\n mDeviceState.setCharging(true);\n runScenario();\n }", "@Override\r\n\tpublic void updateWorklow(Appointment a) throws DBAccessException {\n\t\tsteps = cr.getWorkflowSteps();\r\n\t\t\r\n\t\t// TODO Anhand des Termins die Objekte aus steps aktualisieren \r\n\t\t\r\n\t\t// da es bei Updates der App passieren kann, dass der Ablaufplan sich ändert, müssen vorherige Ablaufpläne gelöscht werden\r\n\t\tdb.deleteWorkflow();\r\n\t\t\r\n\t\tfor (Step step : steps) {\r\n\t\t\tint seperator = step.getTime().indexOf(\":\");\r\n\t\t\tString s = step.getTime().substring(0, seperator-1); // -1, damit das \":\" nicht dabei ist\r\n\t\t\tint hour = Integer.parseInt(s);\r\n\t\t\ts = step.getTime().substring(seperator+1); // +1, damit das \":\" nicht dabei ist\r\n\t\t\tint min = Integer.parseInt(s);\r\n\t\t\t// dieser Konstruktor ist zwar veraltet, aber für unseren Zweck perfekt\r\n\t\t\tstep.setTimestamp(new Timestamp(a.getYear(), a.getMonth(), a.getDay()-step.getDaysBefore(), hour, min, 0, 0));\r\n\t\t}\r\n\t\t\r\n\t\tdb.saveWorkflow(steps);\r\n\t\t\r\n\t}", "public void act() \n {\n setLocation(getX(),getY()+1);\n givePower();\n delete();\n }", "public void powerdown() {\n monitor.sendPowerdown();\n }", "public double auton(double time) {\n\t\ttry {\n\t\t\tif (this.size() > 0) {\n\t\t\t\tInstruction instruction = this.get(0);\n\t\t\t\tif (instruction.hasExpirationTime() && time >= instruction.getExpirationTime()) {\n\t\t\t\t\tSystem.out.println(\"GOT HERE: \" + instruction.getExpirationTime());\n\t\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\t\tthis.remove(0);\n\t\t\t\t\treturn 0.0;\n\t\t\t\t}\n\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t// Determine Mechanism requires and use it.\n\t\t\t\tcase Mechanism.INTAKE:\n\t\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t\tcase Mechanism.Intake.INTAKE_IN:\n\t\t\t\t\t\tm_fuelHandler.intakeFuel();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.Intake.INTAKE_OFF:\n\t\t\t\t\t\tm_fuelHandler.stopIntake();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.LINE_BREAKER:\n\t\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t\tcase Mechanism.LineBreaker.BROKEN:\n\t\t\t\t\t\tif (m_gearCollector.lineBroken()) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0.0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.LineBreaker.UNBROKEN:\n\t\t\t\t\t\tif (!(m_gearCollector.lineBroken())) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0.0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.SHOOTER:\n\t\t\t\t\tm_fuelHandler.setShooterSpeed(Double.parseDouble(instruction.getNext()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.GEAR_COLLECTOR:\n\t\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t\tcase Mechanism.Collector.OPEN:\n\t\t\t\t\t\tm_gearCollector.openCollector();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.Collector.CLOSE:\n\t\t\t\t\t\tm_gearCollector.closeCollector();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.DRIVES:\n\t\t\t\t\tif (m_drives.brakesAreOn()) {\n\t\t\t\t\t\tm_drives.brakesOff();\n\t\t\t\t\t}\n\t\t\t\t\tString fn = instruction.getNext();\n\t\t\t\t\tdouble value = Double.parseDouble(instruction.getNext());\n\t\t\t\t\tdouble speed = Double.parseDouble(instruction.getNext());\n\t\t\t\t\tswitch (Integer.parseInt(fn)) {\n\t\t\t\t\tcase Mechanism.Drives.STRAIGHT:\n\t\t\t\t\t\tif (m_drives.driveStraight(value, speed)) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.Drives.TURN:\n\t\t\t\t\t\tif (m_drives.turnToAngle(value, speed)) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.WAIT:\n\t\t\t\t\tif (time >= Double.parseDouble(instruction.getNext())) {\n\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\tthis.remove(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.BRAKES:\n\t\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\t\tif (Integer.parseInt(instruction.getNext()) == Mechanism.Drives.BRAKES_ON) {\n\t\t\t\t\t\tm_drives.brakesOn();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tm_drives.brakesOff();\n\t\t\t\t\t}\n\t\t\t\t\ttime = 0.0;\n\t\t\t\t\tthis.remove(0);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.remove(0);\n\t\t}\n\t\treturn time;\n\t}", "protected abstract void scheduleSuspicions();", "protected void configureAbilityModifiers(Ability ability) {\n boolean hasCharges = false;\n FrameworkAbility afa = getFrameworkAbility();\n int count = afa.getLimitationCount();\n for (int i = 0; i < count; i++) {\n Limitation lim = afa.getLimitation(i);\n if (lim.isPrivate()) {\n continue;\n }\n\n if (lim instanceof limitationCharges) {\n // Create a limitationFrameworkCharges for the children...\n hasCharges = true;\n lim = new limitationFrameworkCharges();\n }\n\n int index = ability.findLimitation(lim);\n if (index == -1) {\n Limitation newLim = lim.clone();\n newLim.setAddedByFramework(true);\n\n // If it isn't on there, add it...\n ParameterList pl = lim.getParameterList(afa, i);\n ParameterList pl2 = new ParameterList(pl);\n ability.addPAD(newLim, pl2);\n \n }\n }\n\n // Now remove any excess FRAMEWORKLIMITATIONS on the ability.\n count = ability.getLimitationCount();\n for (int i = 0; i < count; i++) {\n //if ( ability.getIndexedBooleanValue(i, \"Limitation\", \"ADDEDBYFRAMEWORK\") ) {\n Limitation lim = ability.getLimitation(i);\n if (lim.isAddedByFramework()) {\n //if ( afa.findExactIndexed(\"Limitation\", \"LIMITATION\", lim) == -1 ) {\n if (afa.findLimitation(lim) == -1) {\n if (hasCharges == false || !(lim instanceof limitationFrameworkCharges)) {\n ability.removeLimitation(i);\n count--;\n }\n }\n }\n }\n\n count = afa.getSpecialEffectCount();\n for (int i = 0; i < count; i++) {\n SpecialEffect sp = afa.getSpecialEffect(i);\n int index = ability.findExactIndexed(\"SpecialEffect\", \"SPECIALEFFECT\", sp);\n if (index == -1) {\n // If it isn't on there, add it...\n ability.addSpecialEffect(sp);\n //ability.reconfigureLimitation(lim, pl2, index);\n }\n\n index = ability.findExactIndexed(\"SpecialEffect\", \"SPECIALEFFECT\", sp);\n if (index != -1) {\n // This should alway occur...\n ability.addIndexed(index, \"SpecialEffect\", \"ADDEDBYFRAMEWORK\", \"TRUE\", true, false);\n }\n }\n\n // Now remove any excess FRAMEWORKLIMITATIONS on the ability.\n count = ability.getSpecialEffectCount();\n for (int i = 0; i < count; i++) {\n if (ability.getIndexedBooleanValue(i, \"SpecialEffect\", \"ADDEDBYFRAMEWORK\")) {\n SpecialEffect sp = ability.getSpecialEffect(i);\n ability.removeSpecialEffect(sp);\n count--;\n }\n }\n }", "public long lastMaintenance() throws RemoteException;", "public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}", "public Battery(double initialCapacity) {\r\n capacity = initialCapacity;\r\n originalCapacity = initialCapacity;\r\n }", "public void rescheduleMaintenance(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.RescheduleMaintenanceRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRescheduleMaintenanceMethod(), responseObserver);\n }", "public void decreaseKarma(final int i) {\n final boolean flagChanged = karma > 0;\n karma -= i;\n if (karma <= 0) {\n karma = 0;\n updateKarma(flagChanged);\n } else {\n updateKarma(false);\n }\n }", "@Test\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_FallbackNotNeeded() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.tryDetailedThenTechnologyAverageElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\tMap<Pollutant, Double> warmEmissions = emissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFull, link, travelTimeOnLink);\n\n\t\tdouble expectedValue = 30.34984742; // = 200m * 151.7492371 g/km\n\t\tAssert.assertEquals( expectedValue, warmEmissions.get(Pollutant.CO2_TOTAL ), MatsimTestUtils.EPSILON );\n\t}", "public boolean canRequestPower();", "void unlock(String resourceName) throws InterruptedException;", "public abstract boolean attack(PermanentCharm i);", "public abstract void Upgrade(Tower t);", "String reclaim(String request) throws RemoteException;", "public void setRechargeTime(Skills skill, int time);", "@Override\n public IStarship attack(IStarship opponent, Integer attackPower) throws Exception {\n if (attackPower < X_WING_ATTACK_MIN || attackPower > X_WING_ATTACK_MAX) {\n throw new IllegalAttackPowerException(\n \"Given attack power must be in the range [\" + X_WING_ATTACK_MIN + \", \" + X_WING_ATTACK_MAX\n + \"]\");\n }\n\n try {\n return opponent.increaseDestructionLevel(attackPower);\n } catch (Exception e) {\n System.err.println(e.getMessage());\n return null;\n }\n }", "public void suspend()\r\n {\r\n chargeStatus = STATUS_NOT_CHARGING;\r\n connectionStatus = STATUS_OFFLINE;\r\n timerStop(); //...Suspends the update timer. \r\n }", "private void applyCopulationPenalty(Animal copulatingAnimal) {\n\t\tint penalty = (int) ((double) copulatingAnimal.getCurrentEnergy()*0.25);\n\t\tcopulatingAnimal.setCurrentEnergy(copulatingAnimal.getCurrentEnergy() - penalty);\n\t}", "public void powerOff() \n {\n try \n {\n // your code here\n \tSystem.out.println(\"Powering off virtual machine '\"+vm.getName() +\"'. Please wait...\"); \n \tTask t=vm.powerOffVM_Task();\n \tif(t.waitForTask()== Task.SUCCESS)\n \t{\n\t \tSystem.out.println(\"Virtual machine powered off.\");\n\t \tSystem.out.println(\"====================================\");\n \t}\n \telse\n \t\tSystem.out.println(\"Power off failed / VM already powered on...\");\n \t\n } catch ( Exception e ) \n { \n \tSystem.out.println( e.toString() ) ; \n }\n }", "public synchronized void promote(Tile tile) {\r\n if(tileQueue.contains(tile)) {\r\n try {\r\n tileQueue.remove(tile);\r\n tile.setPriority(Tile.Priority.High);\r\n tileQueue.put(tile);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "public void rescheduleMaintenance(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.RescheduleMaintenanceRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request, responseObserver);\n }", "public void muteTimer(){\n\t\t//TODO: impl.\n\t\t/*\n\t\tThread worker;\n\t\t//do it in its own thread\n\t\tworker = new Thread() {\n \tpublic void run() {\n \t\t//mute and wait a bit (2s)\n \t\tmute();\n \t\ttry { Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t//then start checking for ILA actions\n \t\tint counter=100;\t\t//max wait 20s\n \t\twhile( (ILA_interface.avatar.isILAspeaking() || ILA_interface.avatar.is_recording==1) & counter>1 ){\n \t\t\tcounter--;\n \t\t\tILA_debug.println(\"ADDON-KODI - mute timer is waiting...\",2);\t\t\t//debug\n \t\t\ttry { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t}\n \t\t//timers are over: unmute\n \t\tunmute();\n \t}\n };\n worker.start();\n */\n\t}", "public void maintenancethread() {\n while (true) {\n Thread maintenanceThread = new Thread(new Runnable() {\n @Override\n public void run() {\n System.out.println(Thread.currentThread());\n long timer = 0;\n long time = 0;\n String key;\n\n\n try {\n ResultSet rs = conn.getMetaData().getTables(null, null, null, null);\n\n while (rs.next()) {\n\n String ld = rs.getString(\"TABLE_NAME\");\n String intValue = ld.replaceAll(\"[^0-9]\", \"\");\n\n if (!(ld.equals(\"PurgeTable\")||ld.equals(\"UserToCertMap\"))) {\n int layerid = Integer.parseInt(intValue);\n String filename = \"Table\" + layerid;\n PreparedStatement pst = conn.prepareStatement(\"SELECT * FROM \" + filename);\n ResultSet rs2 = pst.executeQuery();\n while (rs2.next()) {\n timer = Long.parseLong(rs2.getString(\"timer\"));\n System.out.println(\"hiii\");\n time = Long.parseLong(rs2.getString(\"time\"));\n key = rs2.getString(\"Key\");\n\n if (!(timer == 0)) {\n if (System.currentTimeMillis() - time > timer) {\n utility.delete_entry(layerid, key);\n }\n }\n }\n rs2.close();\n pst.close();\n }\n\n }\n\n rs.close();\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n });\n maintenanceThread.start();\n try {\n Thread.sleep(5000);\n //Thread.sleep(900000);\n System.out.println(\"Thread going to sleep\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "ManagementLockObject.Update update();" ]
[ "0.6631532", "0.5207947", "0.5125145", "0.51201344", "0.49636427", "0.4917551", "0.485184", "0.48170945", "0.47929087", "0.47899985", "0.47769493", "0.47674608", "0.4745198", "0.47152647", "0.46854368", "0.46788225", "0.4658755", "0.4657108", "0.4654692", "0.46474496", "0.4608458", "0.45991847", "0.459503", "0.4574907", "0.45617938", "0.45412153", "0.45213857", "0.4509023", "0.450022", "0.449199", "0.44919816", "0.44843325", "0.44689846", "0.44547155", "0.44477794", "0.43909723", "0.43878922", "0.43792856", "0.437667", "0.43712944", "0.4366639", "0.43662003", "0.43647853", "0.43557468", "0.43457285", "0.43348384", "0.4324002", "0.43075025", "0.42957744", "0.42897552", "0.42860207", "0.4284838", "0.42725372", "0.42629296", "0.42615026", "0.42482036", "0.42463842", "0.42387298", "0.4237543", "0.42374867", "0.42351654", "0.42316225", "0.42306164", "0.4230267", "0.4228413", "0.42282066", "0.4221047", "0.4219576", "0.4204853", "0.42038614", "0.42034724", "0.42018598", "0.419991", "0.4169899", "0.41562775", "0.41529176", "0.4152389", "0.4151647", "0.41513136", "0.4146669", "0.4135785", "0.41302705", "0.41275233", "0.41229045", "0.41206327", "0.40992185", "0.4091169", "0.40890872", "0.40878677", "0.40860632", "0.40857792", "0.40841246", "0.4078161", "0.4066664", "0.40613618", "0.40595895", "0.40585557", "0.40555674", "0.4055007", "0.4054108" ]
0.8424851
0
Get product from inputbuffer and start processing.
public void processProduct() { Product product = self.getCurrentProduct(); ServiceManager sm = self.getServiceManager(); boolean failure = false; if (product != null) { //update the product's location product.setLocation(self.getLocation()); env.updateProduct(product); //process product if the current service equals the needed service and is available, //otherwise, just forward the product to the output-buffer without further action. if (sm.checkProcessingAllowed(product.getCurrentStepId())) { int processingSteps = sm.getCapability().getProcessingTime() * env.getStepTimeScaler(); for (int i = 1; i <= processingSteps; i++) { if (i % env.getStepTimeScaler() == 0) { self.increaseWorkload(); syncUpdateWithCheck(false); } else { waitStepWithCheck(); } } failure = sm.checkFailure(getRandom()); } //block until enough space on output-buffer while (!self.getOutputBuffer().tryPutProduct(product) && !getResetFlag()) { waitStepWithCheck(); } // update product, no sync – does not change pf product.finishCurrentStep(); product.setLocation(self.getOutputLocation()); env.updateProduct(product); // move product to output-buffer + break a service (optional) self.setCurrentProduct(null); self.increaseFinishCount(); syncUpdateWithCheck(failure); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getProduct() {\n\t\tUtil.debug(\"getProduct\",this);\n\t\ttry {\n\t\t\tinputStream.skip(inputStream.available());\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\toutputStream.write(new byte[] { 'x', 13 });\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\n\t\t// wait for reply\n\t\tUtil.delay(RESPONSE_DELAY);\n\t}", "public RealBuffer process( RealBuffer buffer )\n\t{\n\t\tfloat[] samples = buffer.getSamples();\n\n\t\tfor( int x = 0; x < samples.length; x++ )\n\t\t{\n\t\t\tsamples[ x ] = process( samples[ x ] );\n\t\t}\n\t\t\n\t\treturn new RealBuffer( samples );\n\t}", "public abstract int process(Buffer input, Buffer output);", "@ProcessElement public void process(@Element String elem, OutputReceiver<MyProduct> out) {\n LOG.info(\"Line read: {}\\n\", elem);\n //------------------------------------------------------------------\n\n out.output(getMyProduct(elem));\n }", "public boolean tryGetInputProduct() {\n Product product = self.getInputBuffer().tryRemoveProduct();\n if (product != null) {\n self.setCurrentProduct(product);\n syncUpdateWithCheck(false);\n return true;\n }\n waitStepWithCheck();\n return false;\n }", "public void run() {\n\t\tGenRandomString generator = new GenRandomString();\n\t\tStringToInt converter = new StringToInt();\n\t\t\n\t\tint rawData;\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\trawData = converter.convert(generator.generate());\n\t\t\t\n\t\t\t//synchronization to make sure that queue is filled up in the correct order.\n\t\t\tsynchronized(GlobalInfo.enqueueLock){\n\t\t\t\tSystem.out.format(\"%d got the lock.\\n\",deviceNumber);\n\t\t\t\tGlobalInfo.inputs[deviceNumber] = rawData;\n\t\t\t\tGlobalInfo.pipeLine.add(GlobalInfo.inputs);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void processInputData() throws IOException {\n\t\tout.write(Protocol.PC_READY.value);\n\t\tout.flush();\n\t\tInputBuffer buffer = InputBuffer.readFrom(in);\n\t\tdispatcher.dispatch(buffer.entries);\n\t}", "@Override\n\tpublic void receiveProduct(Product product) {\n\t\t\n\t}", "public void processInput() {\n\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tGetProductItem();\r\n\t\t\t\t}", "@ProcessElement public void process(ProcessContext c) {\n MyProduct elem = c.element();\n c.output(KV.of(elem.getId(), elem));\n }", "public void processStreamInput() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public synchronized void mProcessSerial(){ //170927 Returns array of data received from serial RX they are also put on receive buffer\n for (int loop=0;loop<oTXFIFO.nBytesAvail;loop++){\n if (oTXFIFO.mCanPop(1)==false) break; //Send FIFO data to serial output stream\n int byB=oTXFIFO.mFIFOpop();\n mWriteByte(oOutput, (byte) byB);\n }\n byte[] aBytes = mReadBytes(oInput);\n if (aBytes==null) return ;\n for (int i=0;i<aBytes.length;i++){ //Loop through buffer and transfer from input stream to FIFO buffer //+170601 revised from while loop to avoid endless loop\n if (oRXFIFO.mCanPush()){\n oRXFIFO.mFIFOpush(aBytes[i]); //Put the data on the fifo\n }\n else\n {\n mStateSet(cKonst.eSerial.kOverflow);\n nDataRcvd=-1;\n }\n }\n }", "@Override\n\tpublic void startProcessing() {\n\n\t}", "public IProduct tryHandoutProduct() {\n // No sync, because called between barriers anyway\n Product product = self.getOutputBuffer().tryRemoveProduct();\n env.updateMachine(self);\n return product;\n }", "private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void receiveData()\n {\n Intent i = getIntent();\n productSelected = Paper.book().read(Prevalent.currentProductKey);\n vendorID = i.getStringExtra(\"vendorID\");\n if (productSelected != null) {\n\n productName = i.getStringExtra(\"productName\");\n productImage = i.getStringExtra(\"imageUrl\");\n productLongDescription = i.getStringExtra(\"productLongDescription\");\n productCategory = i.getStringExtra(\"productCategory\");\n productPrice = i.getStringExtra(\"productPrice\");\n productSizesSmall = i.getStringExtra(\"productSizesSmall\");\n productSizesMedium = i.getStringExtra(\"productSizesMedium\");\n productSizesLarge = i.getStringExtra(\"productSizesLarge\");\n productSizesXL = i.getStringExtra(\"productSizesXL\");\n productSizesXXL = i.getStringExtra(\"productSizesXXL\");\n productSizesXXXL = i.getStringExtra(\"productSizesXXXL\");\n productQuantity = i.getStringExtra(\"productQuantity\");\n }\n }", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "public Product inputProduct() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Description:\");\n String dscrp = in.next();\n p.setName(dscrp);\n System.out.println(\"Price:\");\n double Price = in.nextDouble();\n p.setPrice(Price);\n System.out.println(\"Quantity:\");\n int Quantity = in.nextInt();\n p.setQuantity(Quantity);\n\n return new Product(p.getName(), p.getPrice(), p.getQuantity());\n }", "public byte[] getNextInput(byte[] buffer) throws IOException {\r\n // byte[] buffer = new byte[8192];\r\n file.seek(currOffset);\r\n file.read(buffer);\r\n currOffset += buffer.length;\r\n return buffer;\r\n }", "public synchronized void consume(){\n\t\tif(num==0){\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException 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\tnum--;\n\t\tSystem.out.println(\"Consume 1, now we left \"+num+\" products\");\n\t\tnotify();\n\t}", "public synchronized void produce(){\n\t\tif(num==capacity){\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\n\t\tnum++;\n\t\tSystem.out.println(\"Produce 1, now we have \"+num+\" products\");\n\t\tnotify();\n\t}", "@KafkaListener(topics = \"${spring.kafka.consumer.topic.product}\")\n @LoadBalanced\n public void receiveProduct(ConsumerRecord<String, String> consumerRecord) {\n LOGGER.info(\"Received topic={}, key={}, Products={}\", consumerRecord.topic(), consumerRecord.key(), consumerRecord.value());\n if (consumerRecord.key().equals(KeySet.UPDATE_QNT_PRODUCT.toString())) {\n updateProductQnt(jsonMapperWrapper.readProductValue(consumerRecord.value()));\n }\n// latch.countDown();\n }", "@Override\n\tpublic void run() {\n\t\twhile (!stopThread) {\n\t\t\ttry {\n\t\t\t\t//String outputMessage = mmInStream.available() + \" bytes available\";\n\t\t\t\t//Log.i(TAG, outputMessage);\n\t\t\t\t// Read from the InputStream\n\t\t\t\twhile (mmInStream.available() > 0) {\n\n\t\t\t\t\tsynchronized (buffer) {\n\t\t\t\t\t\tif (bufferLast == buffer.length) {\n\t\t\t\t\t\t\tbyte temp[] = new byte[bufferLast << 1];\n\t\t\t\t\t\t\tSystem.arraycopy(buffer, 0, temp, 0, bufferLast);\n\t\t\t\t\t\t\tbuffer = temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuffer[bufferLast++] = (byte) mmInStream.read();\n\t\t\t\t\t}\n\t\t\t\t\tbtSerialEvent();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(TAG, e.getMessage());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public synchronized final void process() throws FilterException {\n if (this.result == null)\n throw new FilterException(i18n.getString(\"outputNotSet\"));\n if (this.source == null)\n throw new FilterException(i18n.getString(\"inputNotSet\"));\n\n try {\n // Starts the input interpretation (transformation)\n this.transformer.transform(this.source, this.result);\n } catch (TransformerException e) {\n throw new FilterException(e);\n } finally {\n this.source = null;\n this.result = null;\n }\n }", "public void read() {\n\t\tthis.jtfSoundReaderServ = new JtfSoundReaderServ(this.audioFormat, this.targetDataLine);\n\t\tthis.readerThread = new Thread(this.jtfSoundReaderServ);\n\t\tthis.readerThread.start();\n\t}", "@Override\n\tprotected void processInput() {\n\t}", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "public int demuxInput(byte[] buffer, int offset, int length)\n throws IOException {\n Task task = getThreadTask(Thread.currentThread());\n if (task == null) {\n return defaultInput(buffer, offset, length);\n } else {\n return task.handleInput(buffer, offset, length);\n }\n }", "private void buyProduct() {\n\t\tSystem.out.println(\"Enter Number of Product :- \");\n\t\tint numberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\twhile (!StoreController.getInstance().isValidNumberOfProduct(\n\t\t\t\tnumberOfProduct)) {\n\t\t\tSystem.out.println(\"Enter Valid Number of Product :- \");\n\t\t\tnumberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\t}\n\t\tfor (int number = 1; number <= numberOfProduct; number++) {\n\t\t\tSystem.out.println(\"Enter \" + number + \" Product Id\");\n\t\t\tint productId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\twhile (!StoreController.getInstance().isValidProductId(productId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id\");\n\t\t\t\tproductId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter product Quantity\");\n\t\t\tint quantity = getValidInteger(\"Enter product Quantity\");\n\t\t\tCartController.getInstance().addProductToCart(productId, quantity);\n\t\t}\n\t}", "public void processOffer(int[] productVector) {\r\n\r\n\t\tsetNegotiating(true);\r\n\t\t\r\n\t\tint d = SimulationBuilder.hammingDistance(demandVector, productVector);\r\n\t\t\r\n\t\tdouble r = RandomHelper.nextDoubleFromTo(0, 1);\r\n\t\t\r\n\t\tif (d>0 && d <= Math.ceil(Parameters.vectorSpaceSize / 2.0) \r\n\t\t\t\t&& r < (Parameters.customersPersuadability / 100.0)) {\r\n\t\t\tdemandVector = productVector;\r\n\t\t}\r\n\t\t\r\n\t\tsetNegotiating(false);\r\n\t}", "private void processImageBuffer(){\n \t\tint availPattern = patterns.checkPattern(itemBuffer.buffer);\n \t\t\n \t\tif (availPattern > 0){\n \t\t\tImageRichLineGroup line = new ImageRichLineGroup();\n \t\t\t\n \t\t\tint choice = random.nextInt(availPattern);\n \t\t\tint consumeCount = patterns.pickPattern(choice);\n \t\t\tArrayList<ImageCell> images = itemBuffer.shed(consumeCount);\n \t\t\tint height = patterns.applyPattern(images, choice, totalWidth);\n \t\t\tline.addImages(images);\n \t\t\tline.height = height;\n \t\t\taddLine(line);\n \t\t}\n \t\telse {\n \t\t\t/*No pattern found */\n \t\t\tImageSingleLineGroup line = new ImageSingleLineGroup(totalWidth);\n \t\t\twhile (true == line.needMoreImage() && false == itemBuffer.isEmpty()){\n \t\t\t\tline.addImage(itemBuffer.remove(0));\n \t\t\t}\n \t\t\taddLine(line);\n \t\t}\n \t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n public void onInputBufferAvailable(@NonNull MediaCodec codec, int index) {\n\n synchronized (mAvailableInputs) {\n mAvailableInputs.add(index);\n mAvailableInputs.notifyAll();\n }\n }", "@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}", "@Override\n public Product process(Product product) throws Exception\n {\n List<Product> productList = jdbcTemplate.query(GET_PRODUCT, new Object[] {product.getProductCode()}, new RowMapper<Product>() {\n @Override\n public Product mapRow( ResultSet resultSet, int rowNum ) throws SQLException {\n Product p = new Product();\n p.setProductCode( resultSet.getInt( 1 ) );\n p.setProductName( resultSet.getString( 2 ) );\n p.setMrp( resultSet.getString( 3 ) );\n p.setDicountedPrice( resultSet.getString( 4 ) );\n p.setStock( resultSet.getString( 4 ) );\n return p;\n }\n });\n\n if( productList.size() > 0 )\n {\n // Add the new quantity to the existing quantity\n Product existingProduct = productList.get( 0 );\n int stock = Integer.parseInt(existingProduct.getStock()) + Integer.parseInt(product.getStock());\n product.setStock(Integer.toString(stock));\n }\n\n // Return the (possibly) update prduct\n return product;\n }", "private void processBuffer(boolean flushBuffer, boolean endOfInput) throws IOException {\n decodeBuffer(flushBuffer || endOfInput);\n if (!endOfInput && !flushBuffer && cb.position() < PROCESS_THRESHOLD) {\n return;\n }\n cb.flip();\n found = SubstituteUtil.processSubstitute(cb, substitute, endOfInput, outputCharset, stream);\n // Write the tail bytes in the byte buffer if required\n if (bb.position() > 0 && (found || endOfInput)) {\n bb.flip();\n while (bb.hasRemaining()) {\n stream.write(bb.get());\n }\n bb.clear();\n }\n }", "private void process(ByteBuffer output, final byte[] input, int inPos, KeyStream keyStream) {\n ByteBuffer buf = ByteBuffer.allocate(BLOCK_SIZE_IN_BYTES).order(ByteOrder.LITTLE_ENDIAN);\n int pos = inPos;\n int inLen = input.length - inPos;\n int todo;\n while (inLen > 0) {\n todo = inLen < BLOCK_SIZE_IN_BYTES ? inLen : BLOCK_SIZE_IN_BYTES;\n buf.asIntBuffer().put(keyStream.next());\n for (int j = 0; j < todo; j++, pos++) {\n output.put((byte) (input[pos] ^ buf.get(j)));\n }\n inLen -= todo;\n }\n }", "@Override\n public void consume(ParsableByteArray data) {\n checkStateNotNull(sampleReader);\n checkStateNotNull(output);\n int offset = data.getPosition();\n int limit = data.limit();\n byte[] dataArray = data.getData();\n\n // Append the data to the buffer.\n totalBytesWritten += data.bytesLeft();\n output.sampleData(data, data.bytesLeft());\n\n while (true) {\n int startCodeOffset = NalUnitUtil.findNalUnit(dataArray, offset, limit, prefixFlags);\n\n if (startCodeOffset == limit) {\n // We've scanned to the end of the data without finding another start code.\n if (!hasOutputFormat) {\n csdBuffer.onData(dataArray, offset, limit);\n }\n sampleReader.onData(dataArray, offset, limit);\n if (userData != null) {\n userData.appendToNalUnit(dataArray, offset, limit);\n }\n return;\n }\n\n // We've found a start code with the following value.\n int startCodeValue = data.getData()[startCodeOffset + 3] & 0xFF;\n // This is the number of bytes from the current offset to the start of the next start\n // code. It may be negative if the start code started in the previously consumed data.\n int lengthToStartCode = startCodeOffset - offset;\n\n if (!hasOutputFormat) {\n if (lengthToStartCode > 0) {\n csdBuffer.onData(dataArray, offset, /* limit= */ startCodeOffset);\n }\n // This is the number of bytes belonging to the next start code that have already been\n // passed to csdBuffer.\n int bytesAlreadyPassed = lengthToStartCode < 0 ? -lengthToStartCode : 0;\n if (csdBuffer.onStartCode(startCodeValue, bytesAlreadyPassed)) {\n // The csd data is complete, so we can decode and output the media format.\n output.format(\n parseCsdBuffer(csdBuffer, csdBuffer.volStartPosition, checkNotNull(formatId)));\n hasOutputFormat = true;\n }\n }\n\n sampleReader.onData(dataArray, offset, /* limit= */ startCodeOffset);\n\n if (userData != null) {\n int bytesAlreadyPassed = 0;\n if (lengthToStartCode > 0) {\n userData.appendToNalUnit(dataArray, offset, /* limit= */ startCodeOffset);\n } else {\n bytesAlreadyPassed = -lengthToStartCode;\n }\n\n if (userData.endNalUnit(bytesAlreadyPassed)) {\n int unescapedLength = NalUnitUtil.unescapeStream(userData.nalData, userData.nalLength);\n castNonNull(userDataParsable).reset(userData.nalData, unescapedLength);\n castNonNull(userDataReader).consume(pesTimeUs, userDataParsable);\n }\n\n if (startCodeValue == START_CODE_VALUE_USER_DATA\n && data.getData()[startCodeOffset + 2] == 0x1) {\n userData.startNalUnit(startCodeValue);\n }\n }\n\n int bytesWrittenPastPosition = limit - startCodeOffset;\n long absolutePosition = totalBytesWritten - bytesWrittenPastPosition;\n sampleReader.onDataEnd(absolutePosition, bytesWrittenPastPosition, hasOutputFormat);\n // Indicate the start of the next chunk.\n sampleReader.onStartCode(startCodeValue, pesTimeUs);\n // Continue scanning the data.\n offset = startCodeOffset + 3;\n }\n }", "public void receive()\n\t{\n\t\ttemp1 = txtScan.nextInt();\n\t\tSystem.out.println(\"Receiving \" + temp1 + \" crates of bananas\");\n\t\tfor (int i = 0; i < temp1; i++)\n\t\t{\n\t\t\ttemp2 = txtScan.nextInt();\t\t\t// exp\n\t\t\ttemp3 = txtScan.nextInt();\t\t\t// count\n\t\t\ttemp4 = txtScan.nextDouble();\t\t// cost\n\t\t\t// make a new crate with these dimensions\n\t\t}\n\t}", "public abstract void process(int input);", "private synchronized void startProcessing() throws IOException {\n\n if (privateInput == null) {\n privateInput = new PrivateInputStream(this);\n }\n boolean more = true;\n\n if (isGet) {\n if (!isDone) {\n replyHeaders.responseCode = OBEXConstants.OBEX_HTTP_CONTINUE;\n while ((more) && (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE)) {\n more = sendRequest(0x03);\n }\n\n if (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE) {\n parent.sendRequest(0x83, null, replyHeaders, privateInput);\n }\n if (replyHeaders.responseCode != OBEXConstants.OBEX_HTTP_CONTINUE) {\n isDone = true;\n }\n }\n } else {\n\n if (!isDone) {\n replyHeaders.responseCode = OBEXConstants.OBEX_HTTP_CONTINUE;\n while ((more) && (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE)) {\n more = sendRequest(0x02);\n\n }\n }\n\n if (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE) {\n parent.sendRequest(0x82, null, replyHeaders, privateInput);\n }\n\n if (replyHeaders.responseCode != OBEXConstants.OBEX_HTTP_CONTINUE) {\n isDone = true;\n }\n }\n }", "private void processIn() throws IOException {\n for (; ; ) {\n var status = fr.process(bbin);\n switch (status) {\n case ERROR:\n silentlyClose();\n return;\n case REFILL:\n return;\n case DONE:\n Frame frame = fr.get();\n fr.reset();\n treatFrame(frame);\n break;\n }\n }\n }", "protected T input() {\n\t\tRecordReader<T> inputReader = getReader(getMainConstraint());\n\t\tif (inputReader == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).error(\"no main reader!\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\tT inputRecord = inputReader.read();\n\t\tif (inputRecord == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).info(\"end of input\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\t// Logger.getLogger(OneToManyLookupProcessNode.class).info(\"got input\"); //$NON-NLS-1$\n\t\tsetInCount(getInCount() + 1);\n\t\tif (getProgressCount() > 0 && getInCount() % getProgressCount() == 0) {\n\t\t\tLogger.getLogger(ProcessNode.class).info(\"input records: \" + getInCount()); //$NON-NLS-1$\n\t\t\tlong newTime = System.currentTimeMillis();\n\t\t\tLogger.getLogger(ProcessNode.class).info(\n\t\t\t\t\"duration: \" + String.valueOf(((double) newTime - (double) getTime()) / 1000)); //$NON-NLS-1$\n\t\t\tsetTime(newTime);\n\t\t}\n\t\treturn inputRecord;\n\t}", "public void serialEvent(SerialPortEvent oEvent) {\n\t\tif (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n\t\t\ttry {\n\t\t\t\tString rawInput = inputLeftover;\n\t\t\t\twhile(input.ready())\n\t\t\t\t\trawInput += (char)input.read();\n\t\t\t\t//System.out.println(\"input:\"+rawInput);\n\t\t\t\tString[] inputLines = rawInput.split(\"\\n\");\n\t\t\t\tfor(int c=0; c<inputLines.length-1; c++){\n\t\t\t\t\tString[] inputBlocks = inputLines[c].split(\"\\t\");\n\t\t\t\t\tfor(String inputBlock : inputBlocks){\n\t\t\t\t\t\tif(inputBlock.length() == 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t/*for(char ch : inputBlock.toCharArray()){\n\t\t\t\t\t\t\tSystem.out.println((int)ch);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tinputBlockBuffer.add(new Block(inputBlock, GLFW.glfwGetTime()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinputLeftover = inputLines[inputLines.length-1];\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// Ignore all the other eventTypes, but you should consider the other ones.\n\t}", "@Override\r\n public void handle(Buffer inBuffer) {\n \tlogger.debug(name_log + \"----------------------------------------------------------------------------\");\r\n \t//logger.debug(name_log + \"incoming data: \" + inBuffer.length());\r\n String recvPacket = inBuffer.getString(0, inBuffer.length());\r\n \t\r\n //logger.debug(name_log + \"read data: \" + recvPacket);\r\n logger.info(name_log + \"RECV[\" + recvPacket.length() + \"]> \\n\" + recvPacket + \"\\n\");\r\n \r\n \r\n // -- Packet Analyze ----------------------------------------------------------------\r\n // Writing received message to event bus\r\n\t\t\t\t\r\n JsonObject jo = new JsonObject();\r\n \r\n jo.put(\"recvPacket\", recvPacket);\r\n \r\n eb.send(\"PD_Trap\" + remoteAddr, jo);\r\n\r\n // -- RESPONSE, Send Packet to Target -----------------------------------------------\r\n eb.consumer(remoteAddr + \"Trap_ACK\", message -> {\r\n \twriteToTarget(message.body().toString(), \"Trap_ACK\");\r\n });\r\n \r\n eb.consumer(remoteAddr + \"Trap_NACK\", message -> {\r\n \twriteToTarget(message.body().toString(), \"Trap_NACK\");\r\n });\r\n \r\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n IntentResult intentResult = IntentIntegrator.parseActivityResult(requestCode,resultCode,data);\n if (intentResult.getContents() != null) {\n String scannedText = intentResult.getContents();\n\n // Get product data associated with the UPC barcode\n Uri uri = api.getURL(scannedText);\n api.getData(uri, this::productBarcodeHandler);\n }\n else {\n Toast.makeText(getApplicationContext(),\"Nothing was scanned\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tp = c.getProduct();\n\t\t\t\t\t\t\tSystem.out.println(\"消费产品\"+p);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException 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}\n\t\t\t\t}", "public Input(MOSEFSettings settings) {\n this.settings = settings;\n\n try {\n AudioFormat format =\n new AudioFormat(settings.getSampleRate(), settings.getBitRate(), 1, true, true);\n int byterate = settings.getBitRate() / 8;\n this.bufferSize = settings.getBufferSize() * byterate;\n targetLine = AudioSystem.getTargetDataLine(format);\n targetLine.open(format, bufferSize);\n this.buffers = new ArrayBlockingQueue<>(3);\n\n Runnable runner = new Runnable() {\n @Override\n public void run() {\n ByteBuffer byteBuffer = ByteBuffer.allocate(bufferSize);\n ShortBuffer shortBuffer = byteBuffer.asShortBuffer();\n double scale = FastMath.pow(2, -settings.getBitRate() - 1);\n byte[] bytes = new byte[bufferSize];\n double[] buffer = new double[settings.getBufferSize()];\n\n while (running) {\n targetLine.read(bytes, 0, bytes.length);\n byteBuffer.rewind();\n byteBuffer.put(bytes);\n shortBuffer.rewind();\n for (int i = 0; i < settings.getBufferSize(); i++) {\n buffer[i] = shortBuffer.get(i) * scale;\n }\n buffers.add(buffer);\n }\n targetLine.stop();\n }\n };\n this.inputThread = new Thread(runner);\n } catch (Exception e) {\n System.err.println(e);\n }\n }", "private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }", "private void calcProduct() {\n String numberVal = number.getText().toString();\n if (numberVal.isEmpty()) {\n numberVal = \"0\";\n }\n\n // divide the number by 2 w/o remainder\n int count = Integer.parseInt(numberVal) >> 1;\n\n // empirically calculated maximum number for even elements\n if (count > 30) {\n Toast.makeText(\n this,\n \"The given number is too large for product of even items!\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // array initialization\n int[] arr = new int[count];\n for (int i = 0; i < count; i++) {\n arr[i] = (i + 1) << 1;\n }\n\n // calculate product\n long product = 1;\n for (int i = 0; i < count; i++) {\n product *= arr[i];\n }\n\n result.setText(String.format(\"The product of even numbers is %d\", product)); ;\n }", "@Override\r\n\tpublic synchronized void serialEvent(SerialPortEvent oEvent) {\r\n\t\tif (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\r\n\t\t\ttry {\r\n\t\t\t\tint available = input.available();\r\n\t\t\t\tbyte chunk[] = new byte[available];\r\n\t\t\t\tinput.read(chunk, 0, available);\r\n\r\n\t\t\t\t// Displayed results are codepage dependent\r\n\r\n\t\t\t\tfor (int c = 0; c < chunk.length; c++) {\r\n\r\n\t\t\t\t\tSystem.out.println(\"recieve:\" + (chunk[c] + 512) % 256);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"here atleastttttttt\");\r\n\t\t\t\tSystem.err.println(e.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void get_buffer(Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3,\r\n\t\t\tint bufferCount) {\r\n\r\n\t\tbuffList.clear();\r\n\t\tdouble steps = 0;\r\n\t\tdouble step = 0.0;\r\n\t\tdouble t = 0.0;\r\n\t\tdouble tt = 0.0;\r\n\t\tdouble ttt = 0.0;\r\n\t\tdouble p0x = p0.x;\r\n\t\tdouble p1x = p1.x;\r\n\t\tdouble p2x = p2.x;\r\n\t\tdouble p3x = p3.x;\r\n\t\tdouble p0y = p0.y;\r\n\t\tdouble p1y = p1.y;\r\n\t\tdouble p2y = p2.y;\r\n\t\tdouble p3y = p3.y;\r\n\r\n\t\tint ipps = bufferCount;\r\n\r\n\t\tint i = 0;\r\n\t\tsteps = ipps - 1;\r\n\t\tif (steps > 0) {\r\n\t\t\tstep = 1.0 / steps;\r\n\t\t\tbuffList.add(new Vector2(p1.x, p1.y));\r\n\r\n\t\t\tfor (i = 1; i < steps; ++i) {\r\n\t\t\t\tt += step;\r\n\t\t\t\ttt = t * t;\r\n\t\t\t\tttt = tt * t;\r\n\t\t\t\tbuffList.add(new Vector2(0.5 * ((2 * p1x) + (-p0x + p2x) * t\r\n\t\t\t\t\t\t+ (2 * p0x - 5 * p1x + 4 * p2x - p3x) * tt + (-p0x + 3\r\n\t\t\t\t\t\t* p1x - 3 * p2x + p3x)\r\n\t\t\t\t\t\t* ttt), 0.5 * ((2 * p1y) + (-p0y + p2y) * t\r\n\t\t\t\t\t\t+ (2 * p0y - 5 * p1y + 4 * p2y - p3y) * tt + (-p0y + 3\r\n\t\t\t\t\t\t* p1y - 3 * p2y + p3y)\r\n\t\t\t\t\t\t* ttt)));\r\n\t\t\t}\r\n\t\t\tbuffList.add(new Vector2(p2.x, p2.y));\r\n\t\t}\r\n\t}", "@Override\n public void start() {\n synth.start();\n // Start the LineOut. It will pull data from the oscillator.\n lineOut.start();\n\n // Queue attack portion of sample.\n samplePlayer.dataQueue.queue(sample, 0, loopStartFrame);\n queueNewLoop();\n }", "public void startProcessing(Scanner input) {\n logger = Logger.getInstance();\n CommandsHandler handler = new CommandsHandler();\n while(input.hasNextLine()) {\n String command = input.nextLine();\n logger.log(\"startProcessing \" + command);\n String key = null;\n if(command.startsWith(\"SET\")) {\n key = command.substring(4, command.indexOf(' ', 4));\n Integer value = Integer.parseInt(command.substring(command.indexOf(' ', 4) + 1));\n handler.set(key, value, command);\n } else if(command.startsWith(\"GET\")) {\n key = command.substring(4);\n handler.get(key);\n } else if(command.startsWith(\"UNSET\")) {\n key = command.substring(6);\n handler.unset(key, command);\n } else if(command.startsWith(\"NUMEQUALTO\")) {\n key = command.substring(11);\n handler.numEqualsTo(key, command);\n } else if(command.startsWith(\"END\")) {\n handler.endProgram();\n } else if(command.startsWith(\"BEGIN\")) {\n handler.begin(command);\n } else if(command.startsWith(\"ROLLBACK\")) {\n handler.rollback();\n } else if(command.startsWith(\"COMMIT\")) {\n handler.commit(command);\n }\n }\n }", "@Override\n\tpublic Result doProcessing() {\n\t\treturn doProcessing1();\n\t}", "private void readBytes() {\n byte[] emgBytes = new byte[EMG_BYTE_BUFFER];\n\n while(running) {\n try {\n // Wait until a complete set of data is ready on the socket. The\n while (running && emgSock.getInputStream().available() < EMG_BYTE_BUFFER) {\n Thread.sleep(50);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Read a complete group of multiplexed samples\n emgSock.getInputStream().read(emgBytes, 0, EMG_BYTE_BUFFER);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n synchronized (this) {\n // Demultiplex, parse the byte array, and add the appropriate samples to the history buffer.\n\n for (int i = 0; i < EMG_BYTE_BUFFER / 4; i++) {\n if (i % 16 == (m1.getSensorNr()-1)) {\n float f = ByteBuffer.wrap(emgBytes, 4 * i, 4).getFloat();\n emgHistory.add(f * 1000); // convert V -> mV\n } else if (i % 16 == (m2.getSensorNr()-1)) {\n float f = ByteBuffer.wrap(emgBytes, 4 * i, 4).getFloat();\n emgHistory2.add(f * 1000); // convert V -> mV\n }\n }\n }\n\n // If there is no touch zoom action in progress, update the plots with the newly acquired data.\n if (mode == NONE && running) {\n runOnUiThread(new Runnable() {\n public void run() {\n UpdatePlots();\n }\n });\n }\n }\n }", "public void start() {\n new Thread(new Runnable() {\n public void run() {\n while (true) {\n // TODO: we may want a way to stop the thread\n try {\n // block until a request arrives\n int x = in.take();\n // compute the answer and send it back\n int y = x * x;\n out.put(new SquareResult(x, y));\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n }\n }).start();\n }", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "@Override\n public void onAudioSamples(IAudioSamplesEvent event) {\n\n /*\n * -----------------------------------------------------------------------------------\n * !!! LAB EXERCISE !!!\n * -----------------------------------------------------------------------------------\n * 1. Create a 'ShortBuffer' and point it to the incoming audio samples.\n * Hint: Use 'event.getAudioSamples().getByteBuffer().asShortBuffer()'\n *\n * 2. Loop over the buffer values from 0 to 'buffer.limit()' and access each buffer\n * value using 'buffer.get'\n * Hint: 'buffer.get' gets the sample values as a 'short'\n *\n * 3. Multiply each buffer value by the 'multiplier' (which is a double) then place the\n * resultant value back into the buffer using 'buffer.put'\n * Hint: You may need to cast the data to a 'short' value\n */\n\n // ===================================================================================\n // *** YOUR CODE HERE ***\n ShortBuffer buffer = event.getAudioSamples().getByteBuffer().asShortBuffer();\n\n for (int i = 0; i < buffer.limit(); ++i)\n {\n buffer.put((short)(buffer.get(i) * this.multiplier));\n }\n // ===================================================================================\n\n // Finally, pass the adjusted event to the next tool\n super.onAudioSamples(event);\n }", "public void process() {\n\t}", "public void run() {\n\n try {\n audioInputStream.reset();\n } catch (Exception e) {\n\n }\n\n //Open audio stream\n AudioInputStream playbackInputStream = AudioSystem.getAudioInputStream(format, audioInputStream);\n\n if (playbackInputStream == null) {\n shutDown(\"Unable to convert stream of format \" + audioInputStream + \" to format \" + format);\n return;\n }\n\n DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);\n if (!AudioSystem.isLineSupported(info)) {\n shutDown(\"Line matching \" + info + \" not supported.\");\n return;\n }\n\n try {\n line = (SourceDataLine) AudioSystem.getLine(info);\n line.open(format, 16384);\n } catch (LineUnavailableException ex) {\n shutDown(\"Unable to open the line: \" + ex);\n return;\n }\n\n //Setup buffer\n int frameSizeInBytes = format.getFrameSize();\n int bufferLengthInFrames = line.getBufferSize() / 8;\n int bufferLengthInBytes = bufferLengthInFrames * frameSizeInBytes;\n byte[] data = new byte[bufferLengthInBytes];\n int numBytesRead = 0;\n line.start();\n\n while (thread != null) {\n try {\n if ((numBytesRead = playbackInputStream.read(data)) == -1) {\n break;\n }\n int numBytesRemaining = numBytesRead;\n //Starting playing\n while (numBytesRemaining > 0) {\n numBytesRemaining -= line.write(data, 0, numBytesRemaining);\n }\n } catch (Exception e) {\n shutDown(\"Error during playback: \" + e);\n break;\n }\n }\n\n if (thread != null) {\n line.drain();\n }\n line.stop();\n line.close();\n line = null;\n\n shutDown(null);\n\n }", "public CLEvent multiply(CLQueue queue, CLImage2D in1, CLImage2D in2, CLImage2D out) {\n\t\treturn process(multiplyImage, queue, in1, in2, out);\n\t}", "public void takeInput(inferenceEngine inf) {\n\t\t\n\t\tFileReader f = null;\n\t\tBufferedReader b = null;\n\t\t\n\t\ttry {\n\t\t\tf = new FileReader(\"input\");\n\t\t\tb = new BufferedReader(f);\n\t\t\tshort i = 0, j = 0;\n//\t\t\tkB k = new kB(); // if required declare kb in psvm and call takeinput with the parameters as kB\n\t\t\tinf.no_of_queries = (short) Integer.parseInt(b.readLine());\n\t\t\tString queries[] = new String[inf.no_of_queries];\n\t\t\t\n\t\t\tfor(i=0; i<inf.no_of_queries; i++)\n\t\t\t{\n\t\t\t\tqueries[i] = b.readLine();\n\t\t\t}\n//\t\t\tSystem.out.println(\"The queries are \\n\"+Arrays.toString(queries));\n\t\t\tinf.setQueries(queries);\n\t\t\tinf.knowledgeBase.no_of_sentences = (short) Integer.parseInt(b.readLine());\n\t\t\tString sentences[] = new String[inf.knowledgeBase.no_of_sentences];\n\t\t\tfor(i=0; i<inf.knowledgeBase.no_of_sentences; i++)\n\t\t\t{\n\t\t\t\tsentences[i] = b.readLine();\n\t\t\t\t\n\t\t\t}\n\t\t//\tSystem.out.println(\"In input main\"+Arrays.toString(sentences));\n\t\t\tthis.setKB(sentences, inf);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (f != null)\n\t\t\t\t\tf.close();\n\t\t\t\tif (b != null)\n\t\t\t\t\tb.close();\n\t\t\t} catch (IOException ex) {\n\n\t\t\t}\n\t\t}\n\t}", "public int process(Buffer in, Buffer out) {\n\t\t\taccessFrame(in);\r\n\r\n\t\t\t// Swap the data between the input & output.\r\n\t\t\tObject data = in.getData();\r\n\t\t\tin.setData(out.getData());\r\n\t\t\tout.setData(data);\r\n\r\n\t\t\t// Copy the input attributes to the output\r\n\t\t\tout.setFormat(in.getFormat());\r\n\t\t\tout.setLength(in.getLength());\r\n\t\t\tout.setOffset(in.getOffset());\r\n\r\n\t\t\treturn BUFFER_PROCESSED_OK;\r\n\t\t}", "public void readSampless(){\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\treadBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\t// hand those arrays to our effect\n\t\t// and convert back to bytes\n\t\tprocess();\n\t\t\n\t\t// write to the line.\n\t\twriteBytes();\n\t\t// send samples to the listener\n\t\t// these will be what we just put into the line\n\t\t// which means they should be pretty well sync'd\n\t\t// with the audible result\n\t\tbroadcast();\n\t}", "protected void processInputs() {\n\t\twhile (InputInfo.size() > 0) {\n\t\t\tInputInfo info = InputInfo.get();\n\n\t\t\tif (info.kind == 'k' && (info.action == GLFW_PRESS\n\t\t\t\t\t|| info.action == GLFW_REPEAT)) {\n\t\t\t\tint code = info.code;\n\n\t\t\t}// input event is a key\n\t\t\telse if (info.kind == 'm') {// mouse moved\n\t\t\t\t// System.out.println( info );\n\t\t\t} else if (info.kind == 'b') {// button action\n\t\t\t\t// System.out.println( info );\n\t\t\t}\n\n\t\t}// loop to process all input events\n\n\t}", "public void processing();", "public void process();", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p = new Product(id, \"product\"+id++);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tc.addProduct(p);\n\t\t\t\t\t\t\tSystem.out.println(\"成产好了一个产品\");\n\t\t\t\t\t\t} catch (InterruptedException 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}\n\t\t\t\t}", "private void stepInput(final Port port) {\n // Continuously read from all ports, set output to last received value.\n final Pipe receivingPipe = getCasing().getReceivingPipe(getFace(), port);\n if (!receivingPipe.isReading()) {\n receivingPipe.beginRead();\n }\n if (receivingPipe.canTransfer()) {\n setRedstoneOutput(receivingPipe.read());\n }\n }", "public Polynomial visit(ProductExpression expression) {\n return Polynomial.multiply(\n expression.getLeft().accept(this),\n expression.getRight().accept(this));\n }", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "void actIn(PetriP[] pp, double currentTime) {\n if (!this.condition(pp)) return;\n for (int i = 0; i < inP.size(); i++) {\n pp[inP.get(i)].decreaseMark(quantIn.get(i));\n }\n if (buffer == 0) {\n timeOut.set(0, currentTime + this.getTimeServ());\n } else {\n timeOut.add(currentTime + this.getTimeServ());\n }\n\n buffer++;\n if (observedMax < buffer) {\n observedMax = buffer;\n }\n\n this.minEvent();\n\n }", "public void addProduct(){\n input.nextLine();\n System.out.print(\"Enter the Product Name: \");\n String productName = input.nextLine();\n System.out.print(\"Enter the Product Code: \");\n int productCode = input.nextInt();\n System.out.print(\"Enter the Unit Cost: \");\n double unitCost = input.nextDouble();\n System.out.print(\"Is this product in your current line (y/n): \");\n char currentProduct = input.next().charAt(0);\n boolean inCurrentProductLine = false;\n if ((currentProduct == 'y') || (currentProduct == 'Y'))\n inCurrentProductLine = true;\n\n store.add(new Product(productName, productCode, unitCost, inCurrentProductLine));}", "private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "private Observable<Product> retrieveProductFromProductSystem(Long productId) {\n return new GetProductCommand(productId, productService).observe();\n }", "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\n\t}", "private void startRateProductAct() {\n Intent intent = new Intent(this, ReviewProductActivity.class);\n intent.putExtra(PRODUCT_IMAGE, mProductDetailsViewModel.mPrimaryImage);\n intent.putExtra(PRODUCT_COLOUR, mProductDetailsViewModel.mColor);\n intent.putExtra(PRODUCT_NAME, mBinding.tvPdpProductName.getText().toString());\n intent.putExtra(PRICE, mBinding.tvPdpProductPrice.getText().toString());\n intent.putExtra(PARENT_PRODUCT_ID, mParentProductId);\n intent.putExtra(PRODUCT_ID, mProductId);\n startActivity(intent);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to Product Application\");\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\t//final int Code_Width = 10;\n\t\t//final int Desc_Width = 20;\n\t\t//final int Price_Width = 10;\n\t\t\n\t\t//double value=0 ;\n\t\t\n\t\t//StringBuilder list = new StringBuilder();\n\t\t\n\t\t\n\t\t//list.append(StringUtil.Pad(\"Code\", Code_Width));\n\t\t//list.append(StringUtil.Pad(\"Decscription\", Desc_Width));\n\t\t//list.append(StringUtil.Pad(\"Price\", Price_Width));\n\t\t//list.append(\"\\n\");\n\t\t\n\t\t//list.append(StringUtil.Pad(\"========= \", Code_Width));\n\t\t//list.append(StringUtil.Pad(\"=================== \", Desc_Width));\n\t\t//list.append(StringUtil.Pad(\"========= \", Price_Width));\n\t\t//list.append(\"\\n\");\n\n\n\t\t\n\t\tString choice = \"y\";\n\t\twhile (choice.equalsIgnoreCase(\"y\")){\n\t\t\t\n\n System.out.print(\"Enter product code: \");\n String productCode = sc.nextLine();\n\t\t\t//get the import from the user\n\t\t\t//System.out.print(\"Enter the product code: \");\n\t\t\t//System.out.println();\n\t\t\t//String productCode = sc.nextLine();\n\t\t\t\n\t\t\t//Product product = Console.getString(\"Enter the product code: \");\n\t\t\t//String productCode = Console.getString(\"Enter the product code: \");\n\n\t\t\t\n\t\t\t//get the product object\n\n\t\t\t//Product product = ProductDB.getProduct(productCode);\n\t\t\tProduct product = ProductDB.getProduct(productCode);\n\n\t\t\tSystem.out.println();\n if(product!= null){\n System.out.println(\"Description: \" + product.toString());\n System.out.println(\"Price: \" + product.getPriceFormatted());\n }\n else{\n System.out.println(\"No product matches this product code. \\n\");}\n //new line\n System.out.println(\"Product count: \" + Product.getCount());\n System.out.println();\n\t\t\t\n\t\t\t\n\t\t\t//see if the user wants to continue\n\t\t\tSystem.out.print(\"Another Product? (y/n): \");\n\t\t\tchoice = sc.nextLine();\n\t\t\tSystem.out.println();\t\t\n\t\t}\n\t\t//System.out.println(list);\n\t\t//list.append(Double.toString(value))\n\t\t//System.out.printf(\"         Total: $%.2f \\n\", value);\n\t\tSystem.out.println(\"Application Ends.\");\n\t\t\n\t}", "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\t\t\n\t}", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "public String product() {\n return this.product;\n }", "public void start() {\r\n\t\tboolean running = true;\r\n\t\twhile(running) {\r\n\t\t\t// Storage variable for user input\r\n\t\t\tString userInput = null;\r\n\t\t\tString[] systemOutput = null;\r\n\t\t\t\r\n\t\t\t// Check first input\r\n\t\t\tuserInput = getUserFirstInput(input);\r\n\t\t\t\r\n\t\t\t// If first prompt is valid, process accordingly\r\n\t\t\tif(userInput != null) {\r\n\t\t\t\tswitch(userInput) {\r\n\t\t\t\t\tcase \"0\": \r\n\t\t\t\t\t\tSystem.out.println(\"Thanks for using!\");\r\n\t\t\t\t\t\trunning = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"1\":\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"1\", null);\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"2\":\r\n\t\t\t\t\t\tuserInput = getUserPartialOrFull(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"2\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"3\":\r\n\t\t\t\t\t\tuserInput = getUserZipCode(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"3\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"4\":\r\n\t\t\t\t\t\tuserInput = getUserZipCode(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"4\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"5\":\r\n\t\t\t\t\t\tuserInput = getUserZipCode(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"5\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"6\":\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"6\", null);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Print the output\r\n\t\t\t\tif(systemOutput != null) {\r\n\t\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t\t\tSystem.out.println(\"BEGIN OUTPUT\");\r\n\t\t\t\t\tfor(String str : systemOutput) {\r\n\t\t\t\t\t\tSystem.out.println(str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"END OUTPUT\");\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}\r\n\t\tinput.close();\r\n\t}", "@Override\n\tpublic void invoke() {\n\t\t\n\t\tIBuffer b = Buffer.getBuffer();\n\t\tint r = b.getRemainingCapacity();\n\t\t\n\t\t// the buffer is empty - this means that invoke was called after a grid was removed\n\t\t// and we need to fill it up to prevent starvation. Ideally the only way this could\n\t\t// happen is if the buffer size was 1\n\t\tif (r == 0) {\n\t\t\tPublisher.getInstance().send(new ProduceMessage());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (r < b.getCapacity())\n\t\t\tPublisher.getInstance().send(new ProduceMessage());\n\t\t\n\t\tif (r > 0)\n\t\t\tPublisher.getInstance().send(new ConsumeMessage());\n\t\t\n\t}", "private int getInput() {\n final boolean debug = false;\n int toRead;\n int result;\n int nread;\n\n // if (checkForDeadChannel()) return EINVAL;\n\n // Skipped pushback processing code for stacked Channels\n\n\n // See if we can fill an existing buffer. If we can, read only\n // as much as will fit in it. Otherwise allocate a new buffer,\n // add it to the input queue and attempt to fill it to the max.\n\n ChannelBuffer buf = inQueueTail;\n\n if ((buf != null) && (buf.nextAdded < buf.bufLength)) {\n if (debug) {\n System.out.println(\"smaller than buffer\");\n }\n toRead = buf.bufLength - buf.nextAdded;\n\t} else {\n if (debug) {\n System.out.println(\"fits in existing buffer\");\n }\n\n buf = saveInBuf;\n saveInBuf = null;\n\n // Check the actual buffersize against the requested\n // buffersize. Buffers which are smaller than requested are\n // squashed. This is done to honor dynamic changes of the\n // buffersize made by the user.\n\n if ((buf != null) && ((buf.bufLength - buf.BUFFER_PADDING) < bufSize)) {\n buf = null;\n }\n if (buf == null) {\n if (debug) {\n System.out.println(\"allocated ChannelBuffer of size \" + bufSize);\n }\n buf = new ChannelBuffer(bufSize);\n }\n buf.next = null;\n\n // Use the actual size of the buffer to determine\n // the number of bytes to read from the channel and not the\n // size for new buffers. They can be different if the\n // buffersize was changed between reads.\n\n toRead = buf.bufLength - buf.nextAdded;\n if (debug) {\n System.out.println(\"toRead set to \" + toRead);\n }\n\n if (inQueueTail == null) {\n inQueueHead = buf;\n } else {\n inQueueTail.next = buf;\n }\n\n inQueueTail = buf;\n }\n\n // If EOF is set, we should avoid calling the driver because on some\n // platforms it is impossible to read from a device after EOF.\n\n if (eofCond) {\n if (debug) {\n System.out.println(\"eofCond was true, no error return\");\n }\n return 0;\n }\n\n // FIXME: We do not handle non-blocking or this CHANNEL_TIMER_FEV flag yet\n\n if (/*CHANNEL_TIMER_FEV &&*/\n !blocking) {\n return TclPosixException.EWOULDBLOCK;\n } else {\n result = 0;\n\n // Can we even use this for a brain-dead nonblocking IO check?\n int numAvailable = /*input.available();*/ 0;\n\n if (!blocking && (numAvailable < toRead)) {\n result = TclPosixException.EWOULDBLOCK;\n nread = -1;\n } else {\n try {\n if (debug) {\n System.out.println(\"now to read \" + toRead + \" bytes\");\n }\n\n nread = input.read(buf.buf, buf.nextAdded, toRead);\n\n // read() returns -1 on EOF\n if (nread == -1) {\n if (debug) {\n System.out.println(\"got EOF from read() call\");\n }\n nread = 0;\n }\n } catch (IOException ex) {\n // FIXME: How do we recover from IO errors here?\n // I think we need to set result to a POSIX error\n ex.printStackTrace(System.err);\n nread = -1;\n }\n }\n }\n\n if (nread > 0) {\n if (debug) {\n System.out.println(\"nread is \" + nread);\n }\n buf.nextAdded += nread;\n\n // should avoid calling the driver because on some platforms we\n // will block in the low level reading code even though the\n // channel is set into nonblocking mode.\n\n if (nread < toRead) {\n blocked = true;\n }\n } else if (nread == 0) {\n eofCond = true;\n encodingEnd = true;\n if (debug) {\n System.out.println(\"nread is zero, eofCond set, encodingEnd set\");\n }\n } else if (nread < 0) {\n if (debug) {\n System.out.println(\"nread is \" + nread);\n }\n if ((result == TclPosixException.EWOULDBLOCK) ||\n (result == TclPosixException.EAGAIN)) {\n blocked = true;\n\t result = TclPosixException.EAGAIN;\n\t }\n // FIXME: Called needs to raise a TclException\n //Tcl_SetErrno(result);\n return result;\n }\n if (debug) {\n System.out.println(\"no error return\");\n }\n return 0;\n }", "private void handleIdleIncrease() {\n int i;\n int i2;\n if (curState == 0 && (i = targetBuffer) < (i2 = raiseBufferMax)) {\n targetBuffer = i + raiseBufferStep;\n targetBuffer = Math.min(targetBuffer, i2);\n Trace.traceBegin(8, \"increaseBuffer:\" + targetBuffer);\n int i3 = targetBuffer;\n setBuffer(i3, i3 - lowBufferStep, highBufferStep + i3, swapReserve);\n Trace.traceEnd(8);\n }\n Message msg = handler.obtainMessage();\n msg.what = 11;\n handler.sendMessageDelayed(msg, (long) (raiseBufferTimeWidth * 1000));\n }", "private void readInput() {\n byte[] byteForStream = new byte[2048];\n mListener.onCarRunning();\n\n String message = \"\";\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n\n message += new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n System.out.println(\"Message is\" + message);\n\n if (message.equals(\"Done\")){\n mListener.onCarNotRunning();\n\n }\n if (message.equals(\"Obstacle\")){\n mListener.onCarNotRunning();\n\n\n }\n if (message.equals(\"Continue\")){\n mListener.onCarRunning();\n\n }\n if(message.contains(\"*\")){\n GPSTracker.getInstance(myContext).setGPSstring(message);\n Log.d(TAG, \"Setting GPSString to \" + message);\n }\n\n\n\n } catch (Exception e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n message = \"\";\n\n }", "public void beginInput() {\n this.currentState = states.INPUT;\n this.currentIndex = 1;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "private void processInput() {\r\n\t\ttry {\r\n\t\t\thandleInput(readLine());\r\n\t\t} catch (WrongFormatException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void displayInput() {\n\t\tscan = new Scanner(System.in);\n\t\tboolean exit = false;\n\t\twhile (!exit) {\n\t\t\tSystem.out.println(\"\\n1.Display Product\");\n\t\t\tSystem.out.println(\"2.Buy Product\");\n\t\t\tSystem.out.println(\"3.Cart\");\n\t\t\tSystem.out.println(\"4.Exit\");\n\t\t\tSystem.out.println(\"Enter Your Choice:-\");\n\t\t\tchoice = getValidInteger(\"Enter Your Choice:-\");\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tStoreController.getInstance().displayProduct();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbuyProduct();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tcart();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\texit = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Enter correct choice\\n\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onBufferReceived(byte[] buffer) {\n }", "public void read_from_buffer(byte[] buffer) throws IOException {\r\n ByteArrayInputStream byte_in = new ByteArrayInputStream(buffer);\r\n DataInputStream in = new DataInputStream(byte_in);\r\n\r\n read_from_buffer(in);\r\n\r\n in.close();\r\n byte_in.close();\r\n }", "private Product readProduct(JsonReader reader) throws IOException {\n\t\tint id = 0;\n\t\tString name = null;\n\t\tfloat price = (float) 0.0;\n\n\t\treader.beginObject();\n\t\twhile(reader.hasNext()){\n\t\t\tString item = reader.nextName();\n\t\t\tif(item.equals(\"id\")){\n\t\t\t\tid = reader.nextInt();\n\t\t\t}else if(item.equals(\"name\")){\n\t\t\t\tname = reader.nextString();\n\t\t\t}else if(item.equals(\"price\")){\n\t\t\t\tprice = (float) reader.nextDouble();\n\t\t\t}\n\t\t}\n\t\treader.endObject();\n\n\t\treturn new Product(id, name, price);\n\t}", "public void run() {\n \t\ttry {\n \t\t\tout.setHeader(init(in.getHeader()));\n \t\t\tsetSampleProcessed(0); // set the number of samples being processed\n \t\t\t\t\t\t\t\t\t// as zero\n \t\t\twhile (true) {\n \t\t\t\tStreamFrame sf = process(in.recvFrame());\n \t\t\t\tif (sf != null)\n \t\t\t\t\tout.sendFrame(sf);\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "public void processed(int i);", "public static void focusInputProcessor(final InputProcessor processor){\n inactiveInpProcssrs = inpMulPlex.getProcessors();\n inpMulPlex.clear();\n inpMulPlex.addProcessor(processor);\n }" ]
[ "0.63489234", "0.57643604", "0.56777596", "0.5655658", "0.55798507", "0.55526245", "0.55035585", "0.5447317", "0.5328086", "0.53215635", "0.5321389", "0.53161246", "0.5314459", "0.5314459", "0.52143824", "0.5170304", "0.51569915", "0.50841117", "0.50599575", "0.50351006", "0.50275266", "0.50183064", "0.501343", "0.50034165", "0.49875262", "0.4987139", "0.4986791", "0.49765593", "0.49287823", "0.4910592", "0.49055418", "0.49055395", "0.49018556", "0.48756608", "0.48663613", "0.48586896", "0.48541763", "0.4839248", "0.48334694", "0.48248836", "0.48227292", "0.48083925", "0.4796761", "0.47943985", "0.4793415", "0.47904056", "0.47862726", "0.4784189", "0.47762823", "0.47697172", "0.47617197", "0.47554916", "0.4754235", "0.47328317", "0.47292548", "0.47241098", "0.47188374", "0.4711403", "0.4707168", "0.46813583", "0.46804348", "0.46744755", "0.46713513", "0.4662285", "0.46540803", "0.4650933", "0.46404472", "0.4632024", "0.46304584", "0.46263805", "0.46176377", "0.46144047", "0.46138692", "0.46098092", "0.46050322", "0.45986074", "0.45963764", "0.45899758", "0.45879048", "0.45817536", "0.45816353", "0.45799467", "0.45768446", "0.45625925", "0.45603496", "0.45601854", "0.45585367", "0.45547047", "0.45542344", "0.45528314", "0.45511377", "0.45487657", "0.4540292", "0.45386407", "0.45367897", "0.45317897", "0.45306164", "0.45283988", "0.45126587", "0.4510629" ]
0.66233844
0
Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should use newBuilder().
public G_DocumentError() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DefaultSchema() {\n super(\"\", null);\n }", "public AbsSchema() {\n this(null, null);\n }", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "public ObjectSchema() {\n }", "public Schema() {\n\t\tsuper();\n\t}", "public MetricSchemaRecord() { }", "protected EmailMessageSchema() {\n\t\tsuper();\n\t}", "public SchemaDto() {\n }", "private Builder() {\n super(com.politrons.avro.AvroPerson.SCHEMA$);\n }", "private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "public User() {\n\t\tsuper(\"User\", models.DefaultSchema.DEFAULT_SCHEMA);\n\t}", "public OpenClusterManagementAppsSchema() {\n }", "public DefaultObjectModel (Schema schema, String pkg)\n {\n this (schema);\n this.pkg = pkg;\n }", "private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }", "public GenericSchemaValidator() {}", "public DefaultObjectModel (Schema schema, Class<?> wrapper)\n {\n this (schema);\n this.wrapper = wrapper;\n }", "private Builder() {\n super(sparqles.avro.discovery.DGETInfo.SCHEMA$);\n }", "public LargeObjectAvro() {}", "public AvroPerson() {}", "public VehicleInfoAvro() {}", "private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }", "public DynamicSchemaTable() {\n this(\"dynamic_schema\", null);\n }", "public Document() {\n }", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "private PhysicalSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public FeatureTypeSchema_Impl() {\r\n schema = XMLTools.create();\r\n }", "private Builder() {\n super(baconhep.TTau.SCHEMA$);\n }", "protected DefaultSchemaComponent() {\n\t\tparameters = new SchemaParameterCollection();\n\t\tschemaports = new ArrayList<SchemaPort>();\n\t\tportrelations = new ArrayList<PortRelation>();\n\t}", "private Builder() {\n super(org.ga4gh.models.CallSet.SCHEMA$);\n }", "public User(){\n this(null, null);\n }", "public Pojo1110110(){\r\n\t}", "private Builder() {\n super(gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.SCHEMA$);\n }", "private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ProtobufSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Model() {\n\t}", "public Model() {\n\t}", "public Relationship() {\r\n\t}", "private Builder() {\n super(tr.com.siparis.sistemi.kafka.model.Kullanici.SCHEMA$);\n }", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "public Field() {\r\n\t}", "public User() {\r\n this(\"\", \"\");\r\n }", "static SchemaBuilder newInstance() {\n return new SchemaBuilderImpl();\n }", "public AbsSchema(String basePath) {\n this(basePath, null);\n }", "public Builder()\n {\n this(\"\", \"\");\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Data() {}", "public ArangoDBVertex() {\n\t\tsuper();\n\t}", "private Builder() {\n super(TransferSerialMessage.SCHEMA$);\n }", "public Mapping() { this(null); }", "public XMPDocumentBuilder() throws XmpSchemaException {\n\t\tnsMap = new NSMapping();\n\t}", "private Builder() {\n super(com.twc.bigdata.views.avro.viewing_info.SCHEMA$);\n }", "private Default()\n {}", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "public Data() {\n \n }", "public Mytable() {\n this(DSL.name(\"mytable\"), null);\n }", "public RelationshipElement ()\n\t{\n\t\tthis(null, null);\n\t}", "public DefaultObjectModel (String... schemas)\n throws IOException, BlinkException\n {\n this ();\n loadSchema (schemas);\n }", "public DocumentBase() {\n \n }", "public PersonRecord() {}", "private ThriftSchema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public User() {\n /**\n * default Cto'r\n */\n }", "private Builder() {\n super(graphene.model.idl.G_DocumentError.SCHEMA$);\n }", "public DefaultObjectModel (Reader... schemas)\n throws IOException, BlinkException\n {\n this ();\n loadSchema (schemas);\n }", "public SchemataRecord() {\n super(Schemata.SCHEMATA);\n }", "public Contact() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.person.tables.Contact.Contact);\n\t}", "public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}", "public Builder() {\n\t\t}", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public Builder() {\n }", "public Builder() {\n }", "public QBXMLRequest() {\n }", "public User() {\n\n\t}", "public Account() {\n this(null, 0);\n }", "public Request(){\n\t\tthis(null, null, null);\n\t}", "public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}", "public Data() {\n }" ]
[ "0.785411", "0.7693372", "0.7580584", "0.7397509", "0.73669696", "0.6832336", "0.6808473", "0.67990124", "0.6668652", "0.65810823", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.6537393", "0.63802814", "0.6373345", "0.63649935", "0.63303447", "0.6326314", "0.6306839", "0.6295742", "0.6262119", "0.6209398", "0.6183073", "0.6150028", "0.6120881", "0.6095153", "0.6094379", "0.6065359", "0.60620964", "0.60602975", "0.60529023", "0.6034343", "0.60280967", "0.6022997", "0.6014384", "0.5990149", "0.59758544", "0.59686303", "0.59686303", "0.5957213", "0.59478146", "0.59472036", "0.59340376", "0.5919485", "0.59117705", "0.5911573", "0.59074676", "0.5901267", "0.5901123", "0.5893452", "0.58836186", "0.58775556", "0.58731234", "0.58725333", "0.58371776", "0.5834106", "0.5824873", "0.58183396", "0.58168685", "0.5812762", "0.58089626", "0.58079803", "0.5803553", "0.5801149", "0.5798716", "0.5798716", "0.5798716", "0.5797438", "0.5793481", "0.57933956", "0.57899225", "0.5785965", "0.5785322", "0.5782477", "0.5776934", "0.57766485", "0.577194", "0.577194", "0.57718396", "0.57558495", "0.5751127", "0.5747448", "0.57463455", "0.5745449" ]
0.0
-1
Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) { switch (field$) { case 0: return title; case 1: return description; case 2: return severity; default: throw new org.apache.avro.AvroRuntimeException("Bad index"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void write() {\n\n }", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "public void setDataWriter(DataWriter dataWriter);", "@Override\n public void write() {\n MDC.put(this.key, this.value!=null ? this.value : \"?\");\n }", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "private ProcessedDynamicData( ) {\r\n super();\r\n }", "public BeansReportWrittenExamination() {\n\t\tsuper();\n\t}", "private AggregDayLogSerializer() {\n\t throw new UnsupportedOperationException(\n\t \"This class can't be instantiated\");\n\t }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n protected void doWriteTo(StreamOutput out) throws IOException {\n }", "@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public void serialize() {\n\t\t\n\t}", "@Override\n void postValueWrite(SerializerElem e, String key) {\n\n }", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "public abstract void writeData(DataOutput dout) throws IOException;", "public void generateData()\n {\n }", "@Override\r\n\tpublic void exportThis()\r\n\t{\n\t\tsuper.exportThis();\r\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "private void writerThreadCallback() {\n /*\n // Method dump skipped, instructions count: 164\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.dumpsysledger.DumpsysLedger.writerThreadCallback():void\");\n }", "private FormattedTextEncoder() {\r\n\t\tsuper();\r\n\t}", "public interface DataWriter extends DataAdapter {\n\n /**\n * add an item to the list of pending work to be written.\n *\n * @param record DataRecord to add\n */\n void addItem(DataRecord record);\n\n /**\n * flush the list of work to be written\n */\n void flushBatch();\n\n /**\n * called by the system just prior to a normal shutdown.\n */\n void finish();\n\n\n}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "@Override\n public DataMapMeta getMeta() {\n return null;\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void serialize() throws Exception {\n\t\tFile dtRowFile = new File(twcnbOutputDir, Constant.TWCNB_META_FILE);\r\n\t\tFileWriter fw = new FileWriter(dtRowFile);\r\n\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\t\tbw.write(String.valueOf(this.documentCnt));\r\n\t\tbw.newLine();\r\n\t\tbw.write(String.valueOf(this.labelCnt));\r\n\t\tbw.newLine();\r\n\t\tbw.write(String.valueOf(this.featureCnt));\r\n\t\tbw.newLine();\r\n\r\n\t\tbw.flush();\r\n\t\tbw.close();\r\n\t\tfw.close();\r\n\t}", "public abstract void write(T dataElement);", "public void dumpValue() {\n // an implementation is only needed for very large hashrecords\n }", "@Override\n\tpublic void setData() {\n\n\t}", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "private void setDataWriterForFilename(String filename) throws KettleException {\n\t\t// First handle the writers themselves.\n\t\t// If we didn't have a writer yet, we create one.\n\t\t// Basically we open a new file\n\t\tdata.writer = data.fileWriterMap.get(filename);\n\t\tif (data.writer==null) {\n\t\t\topenNewFile(filename);\n\t\t\tdata.oneFileOpened = true;\n\n\t\t\tdata.fileWriterMap.put(filename, data.writer);\n\t\t\n\t\t\t// If it's the first time we open it and we have a header, we write a header...\n\t\t\t//\n\t\t\tif (!meta.isFileAppended() && meta.isHeaderEnabled()) {\n\t\t\t\tif (writeHeader()) {\n\t\t\t\t\tincrementLinesOutput();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "protected abstract D createData();", "public DefaultOutputWriter() {\n\t\tpublications = null;\n\t\tauthors = null;\n\t\ttopics = null;\n\t}", "@Override\n protected void doPrepare()\n {\n iwriter.prepareToCommit();\n super.doPrepare();\n }", "@Override\r\n\tpublic void initData() {\n\t}", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void serializar() {\n\r\n\t}", "protected abstract void _write(DataOutput output) throws IOException;", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "protected RecordWriter<WritableComparable<?>,\n HCatRecord> getRecordWriter() {\n return hCatRecordWriter;\n }", "@Override\n void generateFalseData() {\n \n }", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}", "@Override\n public void date()\n {\n }", "@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}", "public DBFWriter() {\r\n\t\tthis.header = new DBFHeader();\r\n\t}", "@Override\n protected void onDataChanged() {\n }", "public GenericData.Record serialize() {\n return null;\n }", "@Override\n public void DataIsInserted() {\n }", "public void setdat()\n {\n }", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "public JSONWriter()\n {\n _features = 0;\n _writeNullValues = false;\n _writerLocator = null;\n _treeCodec = null;\n _generator = null;\n _timezone = DEFAULT_TIMEZONE;\n }", "private DDLambda() {\n this.shouldUseExtension = Extension.setup();\n if(this.shouldUseExtension) {\n DDLogger.getLoggerImpl().debug(\"Setting the writer to extension\");\n ExtensionMetricWriter emw = ExtensionMetricWriter.GetInstance();\n MetricWriter.setMetricWriter(emw);\n }\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\n public void write() {\n for(MDCWriter writer : this.writers) {\n writer.write();\n }\n }", "@Override\n public void ppgDer(int ppgDer, int timestamp) {\n }", "@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}", "@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "protected void genWriter() {\n\t\t\n\t\tfixWriter_h();\n\t\tfixWriter_cpp();\n\t}", "@Override\r\n\tpublic int ttData() {\n\t\treturn 0;\r\n\t}", "@Override // from JavaAggregator\n public void write (EventWriter writer, EventDataBuilder unused, LongKey key)\n throws IOException\n {\n SubjectLineOutputBuilder builder = new SubjectLineOutputBuilder();\n builder.build(key, getSubjectLines());\n builder.write(writer);\n }", "@Override\n\t\tprotected void writeStreamHeader() throws IOException {\n\t\t}", "@Override\n\tpublic String serialize() {\n\t\treturn null;\n\t}", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "private void setData() {\n\n }", "protected Doodler() {\n\t}", "private DAOLogger() {\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void write(DataOutput dataOutput) throws IOException {\n }", "private void InitData() {\n\t}", "public abstract void getDataFromDataLogger();", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }", "private Object writeReplace() throws ObjectStreamException {\n return new MeasureUnitProxy(type, subType);\n }", "@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}" ]
[ "0.618503", "0.61005765", "0.58239305", "0.57296866", "0.5708474", "0.5688119", "0.56804484", "0.56789297", "0.56547594", "0.5644549", "0.5612359", "0.5602296", "0.5546669", "0.5543007", "0.55357236", "0.553146", "0.553146", "0.553146", "0.553146", "0.553146", "0.553146", "0.553117", "0.553117", "0.5447026", "0.5444822", "0.54407716", "0.5430442", "0.5428188", "0.542113", "0.54143214", "0.54143214", "0.5410197", "0.5410197", "0.53910166", "0.5376947", "0.53490424", "0.5348216", "0.5339364", "0.53341115", "0.5328049", "0.5322022", "0.5313694", "0.5311877", "0.5290085", "0.52882606", "0.5279825", "0.52725637", "0.5271721", "0.526696", "0.52668446", "0.52610487", "0.526103", "0.5258797", "0.5257952", "0.52576154", "0.5256226", "0.52515495", "0.52493215", "0.52379394", "0.52379394", "0.52375156", "0.5226583", "0.5224205", "0.52157384", "0.52008206", "0.51975167", "0.5188327", "0.51881236", "0.5183556", "0.5180052", "0.51702285", "0.5164127", "0.5164127", "0.5164127", "0.5159942", "0.5157102", "0.51477206", "0.5136196", "0.5135813", "0.51348585", "0.5116842", "0.51073354", "0.51056165", "0.51039666", "0.5102572", "0.5102521", "0.50973904", "0.5097056", "0.50962335", "0.5094124", "0.5093016", "0.5085615", "0.5079971", "0.50766796", "0.50763077", "0.50708383", "0.50670254", "0.5061908", "0.50602216", "0.5058599", "0.50561756" ]
0.0
-1
Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked") public void put(int field$, java.lang.Object value$) { switch (field$) { case 0: title = (java.lang.String)value$; break; case 1: description = (java.lang.String)value$; break; case 2: severity = (java.lang.String)value$; break; default: throw new org.apache.avro.AvroRuntimeException("Bad index"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tprotected Serializable parseDataCursor(Cursor cursor) {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "private void parseData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "protected abstract void retrievedata();", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "private ProcessedDynamicData( ) {\r\n super();\r\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "protected void loadData()\n {\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\r\n\tpublic void initData() {\n\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "@Override\n protected void onDataChanged() {\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "private RowData() {\n initFields();\n }", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "@Override\n public void refreshDataEntries() {\n }", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "public void otherRead(IDataHolder dc);", "private void initData() {\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Override\r\n protected void fetchData() {\n\r\n }", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "private void InitData() {\n\t}", "private void readObject() {\n\t\t/* default - does nothing empty block */}", "@Override\n public DataMapMeta getMeta() {\n return null;\n }", "@Override\r\n\tpublic void read() {\n\r\n\t}", "@Override\n\tpublic void read() {\n\n\t}", "Object getCurrentData();", "protected abstract void loadData();", "private void initData() {\n }", "private void initData() {\n\n }", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "@Override\n\tpublic void fillData() {\n\t}", "protected abstract D createData();", "protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}", "@Override\n public void onDataChanged() {\n\n }", "public String getDatasetKey() { return null; }", "private void readObject() {\n }", "abstract void initializeNeededData();", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n\tpublic Instances dataset() {\n\t\treturn null;\n\t}", "@Override\n public String getData()\n {\n return null;\n }", "@Override\n\t\t\tprotected PaginationResponseData load() {\n\t\t\t\treturn null;\n\n\t\t\t}", "private void readObject() {/* default - does nothing empty block */\n\t}", "public void initData() {\n }", "public void initData() {\n }", "private RawGltfDataReader() {\n // Private constructor to prevent instantiation\n }", "@Override\n protected boolean usesNoRefReads() {\n return true;\n }", "public abstract void getDataFromDataLogger();", "@Override\n public void onDataChanged() {\n }", "@Override\n public void onDataChanged() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "public abstract void loadData();", "public abstract void loadData();", "protected abstract Object read ();", "public abstract Object getData();", "private void initData(){\n\n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "private void initDataLoader() {\n\t}", "public FlexData() {\n entryCollectionList = null;\n entryCollectionMap = null;\n type = Type.UNKNOWN;\n standardDateFormat = \"yyyy-MM-dd\"; // DB2-Datum\n\t}", "@Override\n\tpublic void findLastOverData() {\n\t\t\n\t}", "private void fillData()\n {\n\n }", "@Override\n\tpublic void setData() {\n\n\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void readItems() {\n }", "@Override\n protected void onTextData(Reader r) throws IOException {\n\n }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void remplirPrestaraireData() {\n\t}", "protected DateFieldMetadata() {\r\n\r\n\t}", "private void Initialized_Data() {\n\t\t\r\n\t}", "private void setData() {\n\n }", "public void readDayData() {\n\t\tlogger.info(\"Reading data for date: \" + date);\n\t}", "public void ownRead();" ]
[ "0.6253888", "0.6147359", "0.6147359", "0.61387306", "0.6100257", "0.6100257", "0.6100257", "0.6100257", "0.6100257", "0.6100257", "0.6070395", "0.6067131", "0.6058693", "0.595971", "0.59582895", "0.5947542", "0.5947542", "0.5935509", "0.5935509", "0.5928533", "0.5922061", "0.59049857", "0.58968186", "0.5890568", "0.58812314", "0.5846597", "0.5833178", "0.5826693", "0.5801061", "0.57938987", "0.5768179", "0.5739666", "0.5735916", "0.5723668", "0.5717036", "0.57056123", "0.5700364", "0.5694387", "0.5694387", "0.5694387", "0.5690181", "0.56832707", "0.567965", "0.56736493", "0.56721115", "0.5646366", "0.5645854", "0.5614963", "0.5594183", "0.55925053", "0.5591087", "0.5589991", "0.5579458", "0.5567944", "0.5551094", "0.5498174", "0.54809237", "0.54809237", "0.54809237", "0.54641634", "0.5463207", "0.54596376", "0.54522663", "0.5449319", "0.54410446", "0.5435845", "0.5435244", "0.5433941", "0.5431361", "0.5424519", "0.5419258", "0.54190654", "0.54190654", "0.5412011", "0.5405301", "0.54033333", "0.54010266", "0.54010266", "0.5390517", "0.5378373", "0.5378373", "0.53672206", "0.53591114", "0.53528684", "0.5349373", "0.5349373", "0.5347879", "0.5339373", "0.5331742", "0.5327842", "0.53169274", "0.52997726", "0.5296245", "0.5295788", "0.52950907", "0.5284215", "0.527792", "0.52702975", "0.5266973", "0.5264546", "0.52628577" ]
0.0
-1
Gets the value of the 'title' field. title of the error
public java.lang.String getTitle() { return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(example = \"BadRequest\", value = \"The type of the error\")\n /**\n * The type of the error\n *\n * @return title String\n */\n public String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n }\n return s;\n }\n }", "@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTitle() {\r\n return this.title;\r\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public TextField<String> getTITLE() {\n\t\treturn title;\n\t}", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTitle()\r\n {\r\n return this.title;\r\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTitle() { return this.title; }", "public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}", "public String getTitle() {\n Object ref = title_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.Object getTitle() {\n return title;\n }", "public String getTitle() {\n return this.title;\n }", "public java.lang.String getTitle()\n {\n return this.title;\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public Title getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() { return title; }", "public String getTitle(){\n\t\treturn this.title;\n\t}", "public String getTitle() {\n Object ref = title_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "@NonNull\n public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n \t\treturn title;\n \t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public java.lang.String getTitle()\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(TITLE$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getTitle(){\n\n\t\treturn title;\n\t}", "public String getTitle() {\r\n return _title;\r\n }", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle(){\n \treturn this.title;\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getThatTitle(){\n return this.title;\n }", "public String title()\n\t{\n\t\treturn title;\n\t}", "private void displayErrorTitle(){\n progressTitle.setText(getResources().getString(R.string.error_title));\n }", "public String getTitle()\n {\n return (this.title);\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }" ]
[ "0.7596081", "0.71027726", "0.70490354", "0.7032813", "0.7032813", "0.7012993", "0.70118177", "0.6987561", "0.6981716", "0.69803816", "0.6979744", "0.697761", "0.697754", "0.6974968", "0.6972854", "0.69723934", "0.6966593", "0.6966593", "0.6966593", "0.6966529", "0.69483", "0.69442815", "0.69405705", "0.69405705", "0.6940496", "0.6940496", "0.6939867", "0.6928809", "0.6928809", "0.6928809", "0.6928809", "0.6928809", "0.6928809", "0.6928809", "0.69251084", "0.6924575", "0.69245094", "0.69235224", "0.69230723", "0.6918735", "0.6918735", "0.6918735", "0.6918735", "0.6918735", "0.6916886", "0.69063675", "0.69063675", "0.6905822", "0.69018906", "0.69018906", "0.69018906", "0.69018906", "0.69018906", "0.689861", "0.6896331", "0.68889076", "0.68852735", "0.68852735", "0.68852735", "0.68852735", "0.68852735", "0.68852735", "0.68852735", "0.6875561", "0.6875561", "0.6875561", "0.6871094", "0.6871042", "0.68672717", "0.68508", "0.6844693", "0.6843592", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144", "0.68391144" ]
0.70587665
2
Sets the value of the 'title' field.
public void setTitle(java.lang.String value) { this.title = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t\tthis.dirtyAttributes.add(Constants.TITLE);\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n this.title = title;\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "public void setTitle(String title) { this.title = title; }", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(final String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(final String title) {\n this.title = title;\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(final String title) {\n\t\tthis.title = title;\n\t}", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "@Element \n public void setTitle(String title) {\n this.title = title;\n }", "protected void SetTitle(String newTitle){ title = newTitle; }", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public void doSetTitle(String newTitle) \n {\n this.title = newTitle;\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title;\n etvTitle.setText(title);\n }", "public void setTitle(java.lang.String title)\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(TITLE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TITLE$2);\n }\n target.setStringValue(title);\n }\n }", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\tmodel.setTitle(title);\n\t}", "public void setTitle(java.lang.String title);", "public void setTitle(String title) {\n m_title.setText(title);\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setTitle(String title);" ]
[ "0.865372", "0.8637176", "0.8629261", "0.8629261", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.8614968", "0.86130834", "0.86130834", "0.86071944", "0.86071944", "0.86071944", "0.8598369", "0.8595889", "0.8595884", "0.8594518", "0.8594518", "0.8594518", "0.8594518", "0.8589526", "0.858878", "0.8575681", "0.8570846", "0.8567402", "0.8567402", "0.8567402", "0.8567402", "0.8567402", "0.8567143", "0.85537684", "0.85537684", "0.85537684", "0.85537684", "0.85537684", "0.85537684", "0.85537684", "0.85537684", "0.85537684", "0.85514957", "0.85447645", "0.8544094", "0.8542898", "0.85398215", "0.85352093", "0.85333747", "0.8523543", "0.8521582", "0.85009056", "0.84984773", "0.84984773", "0.84984773", "0.84946215", "0.84929985", "0.849025", "0.847892", "0.84728235", "0.84605825", "0.84493023", "0.8378125", "0.8301897", "0.82855064", "0.82739425", "0.82739425", "0.82739425", "0.82739425", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8265787", "0.8258355", "0.8257008", "0.82439005", "0.8243224", "0.8237736", "0.8153276", "0.8151603", "0.81400955" ]
0.84644395
71
Gets the value of the 'description' field. description of the error
public java.lang.String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getErrorDescription() {\n return errorDescription;\n }", "public String errorDescription()\n {\n return edma_errorDesc;\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n description_ = s;\n }\n return s;\n }\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getErrorMessage() {\n\t\treturn this.errMsg;\n\t}", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "public String getError() {\n return errMsg;\n }", "public String getDescription() {\n Object ref = description_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "public String getProblemDescription() {\n return problemDescription;\n }", "public String getDescription() throws Exception{\n\treturn strDesc;\n }", "@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }", "public String errorDetails() {\n return this.errorDetails;\n }", "public String getFieldDescription()\n {\n return m_strDescription;\n }", "public String errorMessage() {\n return this.errorMessage;\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public String getProblemDesc() {\n return this.problemDesc;\n }", "public String getErrorMsg() {\n return errorMsg;\n }", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getErrorMsg() {\r\n\t\treturn errorMsg;\r\n\t}", "public String getDescription() {\n\t\tif (description == null)\n\t\t\treturn \"No description\";\n\t\treturn description;\n\t}", "public String getDescription() {\r\n return _description;\r\n }", "public java.lang.String getDescription() {\n return description;\n }", "public String getDescription() {\n return this.description;\n }", "public java.lang.Object getDescription() {\n return description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getError() {\n return error != null ? error : \"An unknown error occurred.\";\n }", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public java.lang.String getDescription() {\n return this._description;\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\n\n return this.description;\n }", "public java.lang.String getDescription()\n {\n return this._description;\n }", "public String getError() {\r\n\t\treturn error;\r\n\t}", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n\t\treturn description;\r\n\t}" ]
[ "0.82508683", "0.8215088", "0.73408985", "0.7318191", "0.73057276", "0.72581077", "0.7240104", "0.7240104", "0.7240104", "0.7240104", "0.72399616", "0.72399616", "0.72399616", "0.72399616", "0.72399616", "0.72074306", "0.72049606", "0.719561", "0.71864647", "0.71129435", "0.70784175", "0.70715475", "0.7070486", "0.7064909", "0.70606", "0.70606", "0.70606", "0.70606", "0.70606", "0.7056524", "0.7040285", "0.7037657", "0.7037009", "0.7037009", "0.7022168", "0.7022168", "0.7017892", "0.70040095", "0.7004", "0.7004", "0.7004", "0.7004", "0.7004", "0.7002592", "0.700172", "0.69995207", "0.69957435", "0.6984497", "0.6981275", "0.69771284", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.69727004", "0.6970996", "0.69695807", "0.696567", "0.696567", "0.696567", "0.69646066", "0.69646066", "0.69646066", "0.69646066", "0.69646066", "0.69646066", "0.69646066", "0.69646066", "0.69646066", "0.6962249", "0.6958792", "0.6958792", "0.6958792", "0.69584775", "0.6950637", "0.6948864", "0.69397163", "0.69397163", "0.69397163", "0.69397163", "0.69397163", "0.69397163", "0.69397163", "0.69397163", "0.69397163", "0.69397163", "0.6938629" ]
0.7011909
37
Sets the value of the 'description' field.
public void setDescription(java.lang.String value) { this.description = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String value) {\n this.description = value;\n }", "public void setDescription(final String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(final java.lang.String description) {\r\n this._description = description;\r\n }", "public void setDescription(final java.lang.String description) {\r\n this._description = description;\r\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\n\n this.description = description;\n }", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(final String description) {\n\t\tthis.description = description;\n\t}", "public void editDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "protected void setDescription(final String description) {\r\n\t\tthis.description = description;\r\n\t}", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description )\n {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\n this.description = description;\n }" ]
[ "0.8506027", "0.8501384", "0.83489853", "0.8324238", "0.83184236", "0.831465", "0.831465", "0.83045983", "0.82768303", "0.82768303", "0.82768303", "0.82768303", "0.82768303", "0.82762706", "0.8270326", "0.82627547", "0.8260939", "0.8260939", "0.8260939", "0.8260939", "0.8260939", "0.8260939", "0.8260939", "0.82575136", "0.82561356", "0.8250057", "0.8248995", "0.82437456", "0.82404464", "0.82404464", "0.82404464", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.82322776", "0.8231495", "0.8217016", "0.8214387", "0.82092917", "0.8205508", "0.82014865", "0.82014865", "0.82014865", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8198537", "0.8197967", "0.8197739", "0.8191613", "0.8191613", "0.8191613", "0.8191613", "0.8191613", "0.8191613", "0.8191613" ]
0.84509623
2
Gets the value of the 'severity' field. severity of the error
public java.lang.String getSeverity() { return severity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverityValue() {\n return severity_;\n }", "public int getSeverityValue() {\n return severity_;\n }", "public String getSeverity() {\n return severity.toString().toLowerCase(Locale.US);\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public String getSeverity() { \n\t\treturn getSeverityElement().getValue();\n\t}", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public Type getSeverity() {\n return severity;\n }", "int getSeverityValue();", "public SeverityEnum getSeverity() {\n return severity;\n }", "String getSeverity();", "public AlertSeverity severity() {\n return this.innerProperties() == null ? null : this.innerProperties().severity();\n }", "org.apache.calcite.avatica.proto.Common.Severity getSeverity();", "public int getSeverity() {\n return current.getSeverity();\n }", "public int getSeverity() {\n\t\treturn adaptee.getSeverity();\n\t}", "public LogLevel getSeverity() {\r\n\t\treturn level;\r\n\t}", "public void setSeverity(java.lang.String value) {\n this.severity = value;\n }", "public void setSeverity(int severity) {\n this.severity = severity;\n }", "public String getStrSeverityCode() {\r\n return strSeverityCode;\r\n }", "public final twogapplicationinsights.proxies.SeverityLevel getSeverity()\n\t{\n\t\treturn getSeverity(getContext());\n\t}", "public java.lang.String getErrorLevel() {\n return errorLevel;\n }", "public Map<FacesMessage.Severity, String> getSeverityName() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<FacesMessage.Severity, String>() {\n @Override\n public String get(Object key) {\n final FacesMessage.Severity severity = (FacesMessage.Severity) key;\n if (FacesMessage.SEVERITY_ERROR.equals(severity)) {\n return \"error\";\n } else if (FacesMessage.SEVERITY_FATAL.equals(severity)) {\n return \"fatal\";\n } else if (FacesMessage.SEVERITY_INFO.equals(severity)) {\n return \"info\";\n } else if (FacesMessage.SEVERITY_WARN.equals(severity)) {\n return \"warn\";\n } else {\n return \"\";\n }\n }\n });\n }", "public BoundCodeDt<ConstraintSeverityEnum> getSeverityElement() { \n\t\tif (mySeverity == null) {\n\t\t\tmySeverity = new BoundCodeDt<ConstraintSeverityEnum>(ConstraintSeverityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn mySeverity;\n\t}", "public java.lang.String getErrorLevel() {\n return errorLevel;\n }", "@Override\r\n\tpublic Severity getSeverityBySeverityId(int severityId) {\n\t\ttry{\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<Severity> list = getSessionFactory().getCurrentSession()\r\n\t\t\t.createQuery(\"from Severity where SEVERITY_ID=?\")\r\n\t\t\t.setParameter(0, severityId).list();\r\n\t\t\tif(list!=null&& list.size()>0){\r\n\r\n\t\t\t\treturn list.get(0);\r\n\t\t\t}\r\n\t\t}catch(HibernateException ex){\r\n\t\t\tex.printStackTrace();// logger.error(ex.getMessage(),ex);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public int getErrorLevel() {\n\t\treturn this.errorLevel;\n\t}", "@ErrorType\n public int getErrorType() {\n return mErrorType;\n }", "public graphene.model.idl.G_DocumentError.Builder setSeverity(java.lang.String value) {\n validate(fields()[2], value);\n this.severity = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "private Priority getPriority(final String severity) {\n\t\tif (SEVERITY_FATAL.equalsIgnoreCase(severity) || SEVERITY_ERROR.equalsIgnoreCase(severity)) {\n\t\t\treturn Priority.HIGH;\n\t\t}\n\t\tif (SEVERITY_WARNING.equalsIgnoreCase(severity) || SEVERITY_WARN.equalsIgnoreCase(severity)) {\n\t\t\treturn Priority.NORMAL;\n\t\t}\n\t\tif (SEVERITY_INFORMATIONAL.equalsIgnoreCase(severity) || SEVERITY_INFO.equalsIgnoreCase(severity)) {\n\t\t\treturn Priority.LOW;\n\t\t}\n\t\treturn Priority.NORMAL;\n\t}", "public boolean hasSeverity() {\n return fieldSetFlags()[2];\n }", "public Builder setSeverity(org.apache.calcite.avatica.proto.Common.Severity value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n severity_ = value.getNumber();\n onChanged();\n return this;\n }", "public int getErrorType() {\r\n\t\treturn errorType;\r\n\t}", "private String getSeverityImage(Object severity)\n/* */ {\n/* 125 */ if (severity == null)\n/* */ {\n/* 127 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.unknown\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 129 */ if (severity.equals(\"1\"))\n/* */ {\n/* 131 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_critical.gif\\\" alt=\\\"Critical\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.critical\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 133 */ if (severity.equals(\"4\"))\n/* */ {\n/* 135 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_warning.gif\\\" alt=\\\"Warning\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.warning\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 137 */ if (severity.equals(\"5\"))\n/* */ {\n/* 139 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_clear.gif\\\" alt=\\\"Clear\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.clear\") + \"\\\" align=\\\"absmiddle\\\" >\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 144 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"Unknown\\\" align=\\\"absmiddle\\\">\";\n/* */ }", "public int getSeverity() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.telephony.SmsCbCmasInfo.getSeverity():int, dex: in method: android.telephony.SmsCbCmasInfo.getSeverity():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.getSeverity():int\");\n }", "public String getErrorType() {\n return errorType;\n }", "public void onSeveritySelected(TriggerSeverity severity);", "private String getSeverityImage(Object severity)\n/* */ {\n/* 119 */ if (severity == null)\n/* */ {\n/* 121 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.unknown\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 123 */ if (severity.equals(\"1\"))\n/* */ {\n/* 125 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_critical.gif\\\" alt=\\\"Critical\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.critical\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 127 */ if (severity.equals(\"4\"))\n/* */ {\n/* 129 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_warning.gif\\\" alt=\\\"Warning\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.warning\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 131 */ if (severity.equals(\"5\"))\n/* */ {\n/* 133 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_clear.gif\\\" alt=\\\"Clear\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.clear\") + \"\\\" align=\\\"absmiddle\\\" >\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 138 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"Unknown\\\" align=\\\"absmiddle\\\">\";\n/* */ }", "private String getSeverityImage(Object severity)\n/* */ {\n/* 116 */ if (severity == null)\n/* */ {\n/* 118 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.unknown\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 120 */ if (severity.equals(\"1\"))\n/* */ {\n/* 122 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_critical.gif\\\" alt=\\\"Critical\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.critical\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 124 */ if (severity.equals(\"4\"))\n/* */ {\n/* 126 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_warning.gif\\\" alt=\\\"Warning\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.warning\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 128 */ if (severity.equals(\"5\"))\n/* */ {\n/* 130 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_clear.gif\\\" alt=\\\"Clear\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.clear\") + \"\\\" align=\\\"absmiddle\\\" >\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 135 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"Unknown\\\" align=\\\"absmiddle\\\">\";\n/* */ }", "public Builder setSeverityValue(int value) {\n severity_ = value;\n onChanged();\n return this;\n }", "public final void setSeverity(com.mendix.systemwideinterfaces.core.IContext context, twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tif (severity != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), severity.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), null);\n\t}", "public tech.hry.logclient.grpc.LogLevel getLevel() {\n @SuppressWarnings(\"deprecation\")\n tech.hry.logclient.grpc.LogLevel result = tech.hry.logclient.grpc.LogLevel.valueOf(level_);\n return result == null ? tech.hry.logclient.grpc.LogLevel.UNRECOGNIZED : result;\n }", "public tech.hry.logclient.grpc.LogLevel getLevel() {\n @SuppressWarnings(\"deprecation\")\n tech.hry.logclient.grpc.LogLevel result = tech.hry.logclient.grpc.LogLevel.valueOf(level_);\n return result == null ? tech.hry.logclient.grpc.LogLevel.UNRECOGNIZED : result;\n }", "public int getError() {\n return error;\n }", "int getCauseValue();", "public java.lang.String getErrorcount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ERRORCOUNT$4);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "private String getSeverityImageForHealth(String severity)\n/* */ {\n/* 254 */ if (severity == null)\n/* */ {\n/* 256 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 258 */ if (severity.equals(\"5\"))\n/* */ {\n/* 260 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 262 */ if (severity.equals(\"4\"))\n/* */ {\n/* 264 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 266 */ if (severity.equals(\"1\"))\n/* */ {\n/* 268 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 273 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }", "public void setOpLevel(OpLevel severity) {\n\t\topLevel = severity;\n\t}", "public String getLogLvlCd() {\n if (null == logLvlCd) {\n logLvlCd = \"ERROR\" ;\n } \n return logLvlCd;\n }", "private String getSeverityImageForHealth(String severity)\n/* */ {\n/* 248 */ if (severity == null)\n/* */ {\n/* 250 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 252 */ if (severity.equals(\"5\"))\n/* */ {\n/* 254 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 256 */ if (severity.equals(\"4\"))\n/* */ {\n/* 258 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 260 */ if (severity.equals(\"1\"))\n/* */ {\n/* 262 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 267 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }", "public void setIncidentSeverity(int incidentSeverity) {\n\t\t\tthis.incidentSeverity = incidentSeverity;\r\n\t\t}", "public Constraint setSeverity(BoundCodeDt<ConstraintSeverityEnum> theValue) {\n\t\tmySeverity = theValue;\n\t\treturn this;\n\t}", "private String getSeverityImageForHealth(String severity)\n/* */ {\n/* 245 */ if (severity == null)\n/* */ {\n/* 247 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 249 */ if (severity.equals(\"5\"))\n/* */ {\n/* 251 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 253 */ if (severity.equals(\"4\"))\n/* */ {\n/* 255 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 257 */ if (severity.equals(\"1\"))\n/* */ {\n/* 259 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 264 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }", "private String getSeverityClass(int status)\n/* */ {\n/* 611 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 617 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 620 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 623 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 626 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 629 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 632 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "private String getSeverityClass(int status)\n/* */ {\n/* 602 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 605 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 608 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 611 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 617 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 620 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 623 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "public final void setSeverity(twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tsetSeverity(getContext(), severity);\n\t}", "private String getSeverityClass(int status)\n/* */ {\n/* 605 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 608 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 611 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 617 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 620 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 623 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 626 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "public static Severity_MIL_STD_882D get(int value) {\n\t\tswitch (value) {\n\t\t\tcase NEGLIGIBLE_IV_VALUE: return NEGLIGIBLE_IV;\n\t\t\tcase MARGINAL_III_VALUE: return MARGINAL_III;\n\t\t\tcase CRITICAL_II_VALUE: return CRITICAL_II;\n\t\t\tcase CATASTROPHIC_I_VALUE: return CATASTROPHIC_I;\n\t\t}\n\t\treturn null;\n\t}", "public String getErrorCategory() {\n return errorCategory;\n }", "private String getSeverityImageForHealthWithoutMouseOver(String severity)\n/* */ {\n/* 299 */ if (severity == null)\n/* */ {\n/* 301 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown_nm.gif\\\" alt=\\\"Unknown\\\">\";\n/* */ }\n/* 303 */ if (severity.equals(\"5\"))\n/* */ {\n/* 305 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear_nm.gif\\\" alt=\\\"Clear\\\" >\";\n/* */ }\n/* 307 */ if (severity.equals(\"4\"))\n/* */ {\n/* 309 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning_nm.gif\\\" alt=\\\"Warning\\\">\";\n/* */ }\n/* 311 */ if (severity.equals(\"1\"))\n/* */ {\n/* 313 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical_nm.gif\\\" alt=\\\"Critical\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 318 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown_nm.gif\\\" alt=\\\"Unknown\\\">\";\n/* */ }", "public CWE getProductServiceLineItemStatus() { \r\n\t\tCWE retVal = this.getTypedField(6, 0);\r\n\t\treturn retVal;\r\n }", "public Constraint setSeverity(ConstraintSeverityEnum theValue) {\n\t\tgetSeverityElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}", "private String getSeverityImageForHealthWithoutMouseOver(String severity)\n/* */ {\n/* 296 */ if (severity == null)\n/* */ {\n/* 298 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown_nm.gif\\\" alt=\\\"Unknown\\\">\";\n/* */ }\n/* 300 */ if (severity.equals(\"5\"))\n/* */ {\n/* 302 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear_nm.gif\\\" alt=\\\"Clear\\\" >\";\n/* */ }\n/* 304 */ if (severity.equals(\"4\"))\n/* */ {\n/* 306 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning_nm.gif\\\" alt=\\\"Warning\\\">\";\n/* */ }\n/* 308 */ if (severity.equals(\"1\"))\n/* */ {\n/* 310 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical_nm.gif\\\" alt=\\\"Critical\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 315 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown_nm.gif\\\" alt=\\\"Unknown\\\">\";\n/* */ }", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "public String getError() {\r\n\t\treturn error;\r\n\t}", "private String getSeverityImageForHealthWithoutMouseOver(String severity)\n/* */ {\n/* 305 */ if (severity == null)\n/* */ {\n/* 307 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown_nm.gif\\\" alt=\\\"Unknown\\\">\";\n/* */ }\n/* 309 */ if (severity.equals(\"5\"))\n/* */ {\n/* 311 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear_nm.gif\\\" alt=\\\"Clear\\\" >\";\n/* */ }\n/* 313 */ if (severity.equals(\"4\"))\n/* */ {\n/* 315 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning_nm.gif\\\" alt=\\\"Warning\\\">\";\n/* */ }\n/* 317 */ if (severity.equals(\"1\"))\n/* */ {\n/* 319 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical_nm.gif\\\" alt=\\\"Critical\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 324 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown_nm.gif\\\" alt=\\\"Unknown\\\">\";\n/* */ }", "public ErrorCode error() {\n return new ErrorCode(alert.getError());\n }", "public String reliabilityLevel() {\n return this.reliabilityLevel;\n }", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "public NrtAlertRule withSeverity(AlertSeverity severity) {\n if (this.innerProperties() == null) {\n this.innerProperties = new NrtAlertRuleProperties();\n }\n this.innerProperties().withSeverity(severity);\n return this;\n }", "public void setStrSeverityCode(String strSeverityCode) {\r\n this.strSeverityCode = strSeverityCode;\r\n }", "public String getError() {\n\t\treturn error;\n\t}", "public String getError() {\n\t\treturn error;\n\t}", "public String getViolationType() {\n\t\treturn violationType;\n\t}", "public Integer getRiskWarning() {\n return riskWarning;\n }", "public int error() {\n return this.error;\n }", "public Integer failureThreshold() {\n return this.failureThreshold;\n }", "int getProblemCategory();", "public int get_log_level() {\r\n return logLevel;\r\n }", "public int getValidationLevel() {\n return validationLevel;\n }", "public String getErrorCode();", "public java.lang.String getError() {\n return error;\n }", "public String getError() {\n return error;\n }", "public String getError() {\n return error;\n }", "public String getError() {\n return error;\n }", "public String getError() {\n return error;\n }", "public String getError() {\n return errMsg;\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "public Error getError() {\r\n\t\treturn error;\r\n\t}", "public String getError() {\n return error != null ? error : \"An unknown error occurred.\";\n }", "public String getErrorMsg() {\n return errorMsg;\n }" ]
[ "0.8023383", "0.79493314", "0.79493314", "0.79313743", "0.786609", "0.7832059", "0.77424216", "0.7735189", "0.77333236", "0.77221644", "0.768877", "0.7653943", "0.76353973", "0.7310864", "0.7240359", "0.71963584", "0.71543723", "0.71275973", "0.7023239", "0.68109727", "0.6598403", "0.6559116", "0.62998426", "0.6266113", "0.6259294", "0.6232588", "0.6028591", "0.59051734", "0.5857428", "0.5845172", "0.582758", "0.562316", "0.5617866", "0.55130744", "0.5470483", "0.54581654", "0.5430981", "0.5420464", "0.54171896", "0.5372118", "0.5313114", "0.52587944", "0.52247226", "0.5210469", "0.5172112", "0.51669294", "0.516604", "0.5162296", "0.5154548", "0.5152899", "0.5140506", "0.5130322", "0.51241726", "0.5122369", "0.51217383", "0.51110876", "0.5103282", "0.50753355", "0.50736517", "0.5058452", "0.50533175", "0.50515366", "0.5049399", "0.5042683", "0.5038978", "0.5038978", "0.5038978", "0.5038978", "0.5030943", "0.5030811", "0.5021794", "0.5010784", "0.49998236", "0.49998236", "0.49998236", "0.49927142", "0.4990849", "0.4988167", "0.4988167", "0.49876934", "0.49815124", "0.4974096", "0.49623945", "0.49548286", "0.49547893", "0.49462575", "0.49438125", "0.4941439", "0.49315786", "0.49315786", "0.49315786", "0.49315786", "0.49278703", "0.49239022", "0.49239022", "0.49239022", "0.49239022", "0.49106532", "0.48877382", "0.4885871" ]
0.8089682
0
Sets the value of the 'severity' field.
public void setSeverity(java.lang.String value) { this.severity = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeverity(int severity) {\n this.severity = severity;\n }", "public final void setSeverity(twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tsetSeverity(getContext(), severity);\n\t}", "public final void setSeverity(com.mendix.systemwideinterfaces.core.IContext context, twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tif (severity != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), severity.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), null);\n\t}", "public graphene.model.idl.G_DocumentError.Builder setSeverity(java.lang.String value) {\n validate(fields()[2], value);\n this.severity = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setSeverity(TriggerSeverity severity) {\n\t\tmSeverityListPagerAdapter.setCurrentPosition(severity.getPosition());\n\t}", "public Builder setSeverityValue(int value) {\n severity_ = value;\n onChanged();\n return this;\n }", "public void setOpLevel(OpLevel severity) {\n\t\topLevel = severity;\n\t}", "public Builder setSeverity(org.apache.calcite.avatica.proto.Common.Severity value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n severity_ = value.getNumber();\n onChanged();\n return this;\n }", "public Constraint setSeverity(BoundCodeDt<ConstraintSeverityEnum> theValue) {\n\t\tmySeverity = theValue;\n\t\treturn this;\n\t}", "public int getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverityValue() {\n return severity_;\n }", "public Constraint setSeverity(ConstraintSeverityEnum theValue) {\n\t\tgetSeverityElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}", "public int getSeverityValue() {\n return severity_;\n }", "public java.lang.String getSeverity() {\n return severity;\n }", "public void onSeveritySelected(TriggerSeverity severity);", "public java.lang.String getSeverity() {\n return severity;\n }", "public void setIncidentSeverity(int incidentSeverity) {\n\t\t\tthis.incidentSeverity = incidentSeverity;\r\n\t\t}", "public Type getSeverity() {\n return severity;\n }", "public SeverityEnum getSeverity() {\n return severity;\n }", "public LogLevel getSeverity() {\r\n\t\treturn level;\r\n\t}", "public static void log(int severity, String message)\n {\n log(severity, message, null);\n }", "public NrtAlertRule withSeverity(AlertSeverity severity) {\n if (this.innerProperties() == null) {\n this.innerProperties = new NrtAlertRuleProperties();\n }\n this.innerProperties().withSeverity(severity);\n return this;\n }", "void addHasInjurySeverity(Integer newHasInjurySeverity);", "public String getSeverity() {\n return severity.toString().toLowerCase(Locale.US);\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public DefaultLoggerBridge(int severity) {\n\t\tthis.severity = severity;\n\t}", "int getSeverityValue();", "public void setStrSeverityCode(String strSeverityCode) {\r\n this.strSeverityCode = strSeverityCode;\r\n }", "String getSeverity();", "@Override\n public RfLintRule configure(final RfLintViolationSeverity severity) {\n return super.configure(severity == null ? RfLintViolationSeverity.ERROR : severity);\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "@POST(\"/setAlertLevel\")\n\tint setAlertLevel(@Body AlertLevelParams params);", "public Builder clearSeverity() {\n \n severity_ = 0;\n onChanged();\n return this;\n }", "public void setLevel(String level);", "public void setMinimumLevel(ErrorLevel el);", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setErrorLevel(java.lang.String value) {\n validate(fields()[5], value);\n this.errorLevel = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "@SuppressWarnings(\"hiding\")\n @Override\n public void setThreshold(String threshold) {\n this.threshold = Float.parseFloat(threshold);\n }", "public AlertSeverity severity() {\n return this.innerProperties() == null ? null : this.innerProperties().severity();\n }", "public void setLevel ( int level ) {\n\t\texecute ( handle -> handle.setLevel ( level ) );\n\t}", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "public graphene.model.idl.G_DocumentError.Builder clearSeverity() {\n severity = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "public void setValidationLevel(int value) {\n this.validationLevel = value;\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public void setPriority (int level)\n\t{\n\tthis.level = level;\n\n\tif (level == 1)\n\tpriority = \"Critical\";\n\tif (level == 2)\n\tpriority = \"Very Important\";\n\tif (level == 3)\n\tpriority = \"Normal\";\n\tif (level == 4)\n\tpriority = \"Low\";\n\tif (level == 5)\n\tpriority = \"Not Important\";\n\t}", "public void setLevel(int value) {\n this.level = value;\n }", "private void changeLogLevel(String level){\n\n }", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public void setPriority(int newPriority)throws Exception{\n\t\t\n\t\tif (newPriority >= 0){\n\t\t\tthis.priority = newPriority;\n\t\t\tString txt = Integer.toString(newPriority);\n\t\t\toverWriteLine(\"Priority\", txt);\n\t\t}\n\t\n\t}", "public void setConfidenceLevel (double confidenceLevel)\n {\n this.confidenceLevel = confidenceLevel;\n \n }", "public void setThreshold(String level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "org.apache.calcite.avatica.proto.Common.Severity getSeverity();", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public void setLevel(int v)\n {\n m_level = v;\n }", "public void setLevel(int level) {\n if (level < 1)\n throw new IllegalArgumentException(\"Cannot be a level less than 0\");\n\n this.level = level;\n }", "public static void setLogLevel(int level) {\n mLogLevel = level;\n }", "public String getSeverity() { \n\t\treturn getSeverityElement().getValue();\n\t}", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void setLoggerLevel(TraceLevel level) {\n\t\t//Topology.STREAMS_LOGGER.setLevel(level);\t\t\n\t\t//Topology.TOPOLOGY_LOGGER.setLevel(level); \n\t\tgetConfig().put(ContextProperties.TRACING_LEVEL, java.util.logging.Level.FINE);\t\t\n\t\tSystem.out.println(\"Streams topology logger level: \" + Topology.TOPOLOGY_LOGGER.getLevel());\n\t\t\n\t}", "TraceLevel(int i) {\n this.level = i;\n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public void setLogLevel(int logLevel) {\n\t\tif(logLevel > 5 || logLevel < 0) \n\t\t\tthrow new IllegalArgumentException(\"invalid parameter logLevel, please use Logger's static level constant.\");\n\t\tmLogLevel = logLevel;\n\t}", "private void setPriority(final Integer priority) {\n Story story = (Story) getTableRow().getItem();\n if (priority != null) {\n try {\n getModel().changeStoryPriority(story, priority);\n }\n catch (CustomException e) {\n addFormError(textField, \"{NanError}\");\n }\n }\n else {\n changeStoryStateToNone(story, () -> {\n try {\n getModel().changeStoryPriority(story, null);\n } catch (CustomException e) {\n ErrorReporter.get().reportError(e, \"Failed to set priority\");\n }\n });\n }\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public void setThreshold(int aThreshold) {\n if(0 <= threshold && threshold <= 100) {\n threshold = aThreshold;\n } else {\n throw new IllegalArgumentException(\"Threshold must be in the interval <1..100> inclusive. Actual Value: \" + aThreshold);\n } \n }", "public int getSeverity() {\n\t\treturn adaptee.getSeverity();\n\t}", "public boolean hasSeverity() {\n return fieldSetFlags()[2];\n }", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setThresholdThickness(IfcPositiveLengthMeasure ThresholdThickness)\n\t{\n\t\tthis.ThresholdThickness = ThresholdThickness;\n\t\tfireChangeEvent();\n\t}", "public int setPriorityLevel(String storageIdentifier, String levelValue) {\n \t\t\n \t\tList<MessageResource> resources = getIWMainApplication().getMessageFactory().getResourceListByStorageIdentifier(storageIdentifier);\n \t\tfor(MessageResource resource : resources) {\n \t\t\tresource.setLevel(MessageResourceImportanceLevel.getLevel(Integer.parseInt(levelValue)));\n \t\t}\n \t\tELUtil.getInstance().publishEvent(new ResourceLevelChangeEvent(this));\n \t\treturn SUCCESS;\n \t}", "public void setThreshold(Level level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "public void setFoodLevel ( int value ) {\n\t\texecute ( handle -> handle.setFoodLevel ( value ) );\n\t}", "private Severity(String strSeverityCode) {\r\n this.strSeverityCode = strSeverityCode;\r\n }", "public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }", "public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setLevel(String value) {\n this.level = value;\n }", "public int getSeverity() {\n return current.getSeverity();\n }", "public void setVerbosity(Level verbosity) {\n\t\tthis.verbosity = verbosity;\n\t}", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void setLogLevel(int level) {\n\t\t// only change if a valid level\n\t\tif (isValidLogLevel(level)) this.logLevel = level;\n\t}", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public static void log(int severity, String message, Throwable e) {\n log(new Status(severity, ID, 0, message, e));\n }", "public static void setLevel(final String logLevel) {\r\n\t\tif (logLevel.equalsIgnoreCase(\"FATAL\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_FATAL);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"ERROR\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_ERROR);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"WARN\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_WARN);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"INFO\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_INFO);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"DEBUG\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_DEBUG);\r\n\t\t} else {\r\n\t\t\tthrow new IllegalArgumentException(\"Unknown log level: \" + logLevel);\r\n\t\t}\r\n\t}", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setBTHighScoreAny(int s)\n\t{\n\t\tbattletowerHighscoreAnyLvl = s;\n\t}", "public static void log(int severity, String message, Throwable e)\n {\n ILog log = plugin != null? plugin.getLog() : Platform.getLog(FrameworkUtil.getBundle(PluginConsistencyActivator.class));\n log = log != null? log : IDEWorkbenchPlugin.getDefault().getLog();\n\n log.log(new Status(severity, PLUGIN_ID, message, e));\n }", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tscoreToSeverity.put(0, Severity.Low);\n\t\tscoreToSeverity.put(medium, Severity.Medium);\n\t\tscoreToSeverity.put(high, Severity.High);\n\t\tscoreToSeverity.put(critical, Severity.Critical);\n\t}", "static public void setLevel( byte level ) {\n Debug.level=level;\n }", "public void setLogLevel(int level) {\n logLevel = level;\n }", "public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public void evel_threshold_cross_alertvalue_set(String sheader)\r\n\t {\r\n\t\t EVEL_ENTER();\r\n\r\n\t\t /***************************************************************************/\r\n\t\t /* Check preconditions. */\r\n\t\t /***************************************************************************/\r\n\t\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t\t \r\n\t\t assert(sheader != null);\r\n\r\n\t\t alertValue.SetValuePr(\r\n\t\t sheader,\r\n\t\t \"Alert value\");\r\n\t\t EVEL_EXIT();\r\n\t }", "void setThreshold(float value);", "public void setVerbosity(Level verbosity) {\n this.verbosity = verbosity;\n }" ]
[ "0.79445475", "0.76406574", "0.71432996", "0.70934314", "0.69543195", "0.68373764", "0.68011165", "0.66499066", "0.6192361", "0.6120707", "0.6120707", "0.6054534", "0.60471135", "0.60345656", "0.599992", "0.59965307", "0.597152", "0.58806944", "0.5859989", "0.5774948", "0.5409277", "0.539434", "0.5347393", "0.534715", "0.53464323", "0.5311244", "0.5301076", "0.53004175", "0.5296478", "0.5225887", "0.5161863", "0.5153499", "0.5136737", "0.513585", "0.5131601", "0.51245284", "0.5122957", "0.50772506", "0.5064562", "0.50451493", "0.50434583", "0.5024688", "0.49882331", "0.49803934", "0.49644086", "0.49619356", "0.4961331", "0.49158815", "0.49075618", "0.49054146", "0.48800758", "0.48582405", "0.48387048", "0.4830607", "0.4825632", "0.48112267", "0.48064288", "0.47968262", "0.47918203", "0.47627", "0.47603267", "0.47585267", "0.47556713", "0.47550836", "0.4749292", "0.47332045", "0.47268614", "0.47221974", "0.47179872", "0.47151163", "0.47110197", "0.47043315", "0.4691425", "0.46904284", "0.46896887", "0.46729112", "0.4671301", "0.46611673", "0.46497783", "0.46472296", "0.4646823", "0.46460208", "0.46442628", "0.4643751", "0.46412084", "0.46286622", "0.46286622", "0.46286622", "0.46286622", "0.46286622", "0.46260524", "0.46128836", "0.46117193", "0.46076265", "0.4606459", "0.46041042", "0.4603058", "0.45990458", "0.458687", "0.45864907" ]
0.8133044
0
Creates a new Builder
private Builder() { super(graphene.model.idl.G_DocumentError.SCHEMA$); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public Builder() { }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder(){ return new Builder(); }", "static Builder builder() {\n return new Builder();\n }", "public Builder() {\n\t\t}", "public Builder() {\n }", "private Builder() {}", "public Builder() {\n }", "public Builder() {\n }", "public Builder(){\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "static Builder newBuilder() {\n return new Builder();\n }", "private Builder() {\n\t\t}", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "private Builder() {\n }", "private Builder() {\n }", "public static Builder builder() {\n return new Builder().defaults();\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "private Builder()\n {\n }", "@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }", "public static Builder<?> builder() {\n return new Builder2();\n }", "public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }", "public static ProductBuilder builder() {\n return ProductBuilder.of();\n }", "public static Builder create(){\n return new Builder(Tribit.ZERO);\n }", "public Builder()\n {\n this(\"\", \"\");\n }", "public static DataModelBuilder create() {\n return new DataModelBuilder();\n }", "public static Builder builder() {\n return new Report.Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "public static LinkBuilder builder() {\n return new LinkBuilder();\n }", "public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }", "@Inject\n public Builder() {\n }", "private Builder() {\n super(baconhep.TTau.SCHEMA$);\n }", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }", "static Builder builder() {\n return new SourceContextImpl.Builder();\n }", "public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }", "public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }", "public static Object builder() {\n\t\treturn null;\r\n\t}", "public static Object builder() {\n\t\treturn null;\n\t}", "public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }" ]
[ "0.8550635", "0.8550635", "0.84972453", "0.84972453", "0.84972453", "0.838484", "0.83506805", "0.83506805", "0.83506805", "0.83360076", "0.83163387", "0.83163387", "0.83163387", "0.83163387", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8301232", "0.8262573", "0.82625335", "0.8186705", "0.81517375", "0.8044151", "0.80405253", "0.80405253", "0.80386746", "0.79776007", "0.79776007", "0.79776007", "0.79776007", "0.7966582", "0.7966582", "0.7966582", "0.7934538", "0.79341257", "0.78821915", "0.7827171", "0.7734386", "0.7734386", "0.76404303", "0.76404303", "0.75986576", "0.7586578", "0.7586578", "0.7586578", "0.7586578", "0.7586578", "0.7586578", "0.7586578", "0.75430685", "0.7499225", "0.73978084", "0.7307394", "0.7283403", "0.7282579", "0.7193379", "0.71640575", "0.71573377", "0.70944357", "0.70944357", "0.70944357", "0.70944357", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70817965", "0.70516986", "0.7050274", "0.699464", "0.6947639", "0.6917019", "0.6910531", "0.69032705", "0.6899853", "0.6899853", "0.6873934", "0.6858062", "0.6808915" ]
0.0
-1
Creates a Builder by copying an existing Builder
private Builder(graphene.model.idl.G_DocumentError.Builder other) { super(other); if (isValidValue(fields()[0], other.title)) { this.title = data().deepCopy(fields()[0].schema(), other.title); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.description)) { this.description = data().deepCopy(fields()[1].schema(), other.description); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.severity)) { this.severity = data().deepCopy(fields()[2].schema(), other.severity); fieldSetFlags()[2] = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }", "public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }", "public static GoldenCopy.Builder builder() {\n return new GoldenCopy.Builder();\n }", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "private Builder(Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.accountID)) {\n this.accountID = data().deepCopy(fields()[0].schema(), other.accountID);\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.createDate)) {\n this.createDate = data().deepCopy(fields()[2].schema(), other.createDate);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.TransferSerials)) {\n this.TransferSerials = data().deepCopy(fields()[3].schema(), other.TransferSerials);\n fieldSetFlags()[3] = true;\n }\n }", "public static Builder builder(){ return new Builder(); }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public static Builder<?> builder() {\n return new Builder2();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }", "private Builder(com.trg.fms.api.Trip.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.driverId)) {\n this.driverId = data().deepCopy(fields()[1].schema(), other.driverId);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.carId)) {\n this.carId = data().deepCopy(fields()[2].schema(), other.carId);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "static Builder builder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public static Value.Builder newBuilder(Value.Builder other) {\n return new Value.Builder(other);\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "static Builder newBuilder() {\n return new Builder();\n }", "@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }", "public Builder() {}", "public Builder() {}", "public Builder() {}", "private Builder() {}", "public static baconhep.TTau.Builder newBuilder(baconhep.TTau.Builder other) {\n return new baconhep.TTau.Builder(other);\n }", "private Builder(Builder other) {\n super(other);\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 }", "private Builder(com.babbler.ws.io.avro.model.BabbleValue.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.author)) {\n this.author = data().deepCopy(fields()[0].schema(), other.author);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.content)) {\n this.content = data().deepCopy(fields()[1].schema(), other.content);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[2].schema(), other.timestamp);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.location)) {\n this.location = data().deepCopy(fields()[3].schema(), other.location);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.tags)) {\n this.tags = data().deepCopy(fields()[4].schema(), other.tags);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.mentions)) {\n this.mentions = data().deepCopy(fields()[5].schema(), other.mentions);\n fieldSetFlags()[5] = true;\n }\n }", "public Builder() { }", "private Builder(com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.name)) {\n this.name = data().deepCopy(fields()[0].schema(), other.name);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.lastName)) {\n this.lastName = data().deepCopy(fields()[1].schema(), other.lastName);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.country)) {\n this.country = data().deepCopy(fields()[2].schema(), other.country);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n if (isValidValue(fields()[4], other.gender)) {\n this.gender = data().deepCopy(fields()[4].schema(), other.gender);\n fieldSetFlags()[4] = other.fieldSetFlags()[4];\n }\n if (isValidValue(fields()[5], other.date)) {\n this.date = data().deepCopy(fields()[5].schema(), other.date);\n fieldSetFlags()[5] = other.fieldSetFlags()[5];\n }\n if (isValidValue(fields()[6], other.height)) {\n this.height = data().deepCopy(fields()[6].schema(), other.height);\n fieldSetFlags()[6] = other.fieldSetFlags()[6];\n }\n if (isValidValue(fields()[7], other.weight)) {\n this.weight = data().deepCopy(fields()[7].schema(), other.weight);\n fieldSetFlags()[7] = other.fieldSetFlags()[7];\n }\n }", "public static ProductBuilder builder() {\n return ProductBuilder.of();\n }", "private Builder(edu.pa.Rat.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }", "private Builder() {\n\t\t}", "private Builder(Gel_BioInf_Models.VirtualPanel.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.specificDiseaseTitle)) {\n this.specificDiseaseTitle = data().deepCopy(fields()[0].schema(), other.specificDiseaseTitle);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.panelVersion)) {\n this.panelVersion = data().deepCopy(fields()[1].schema(), other.panelVersion);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.ensemblVersion)) {\n this.ensemblVersion = data().deepCopy(fields()[2].schema(), other.ensemblVersion);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.dataModelCatalogueVersion)) {\n this.dataModelCatalogueVersion = data().deepCopy(fields()[3].schema(), other.dataModelCatalogueVersion);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.geneIds)) {\n this.geneIds = data().deepCopy(fields()[4].schema(), other.geneIds);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.Transcripts)) {\n this.Transcripts = data().deepCopy(fields()[5].schema(), other.Transcripts);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.relevantRegions)) {\n this.relevantRegions = data().deepCopy(fields()[6].schema(), other.relevantRegions);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.clinicalRelevantVariants)) {\n this.clinicalRelevantVariants = data().deepCopy(fields()[7].schema(), other.clinicalRelevantVariants);\n fieldSetFlags()[7] = true;\n }\n }", "public static io.confluent.developer.InterceptTest.Builder newBuilder(io.confluent.developer.InterceptTest.Builder other) {\n return new io.confluent.developer.InterceptTest.Builder(other);\n }", "private Builder(export.serializers.avro.DeviceInfo.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.site)) {\n this.site = data().deepCopy(fields()[0].schema(), other.site);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.service)) {\n this.service = data().deepCopy(fields()[1].schema(), other.service);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.sector)) {\n this.sector = data().deepCopy(fields()[2].schema(), other.sector);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.room)) {\n this.room = data().deepCopy(fields()[3].schema(), other.room);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.alias)) {\n this.alias = data().deepCopy(fields()[4].schema(), other.alias);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.serialPort)) {\n this.serialPort = data().deepCopy(fields()[5].schema(), other.serialPort);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.driver)) {\n this.driver = data().deepCopy(fields()[6].schema(), other.driver);\n fieldSetFlags()[6] = true;\n }\n }", "private Builder(baconhep.TTau.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.pt)) {\n this.pt = data().deepCopy(fields()[0].schema(), other.pt);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.eta)) {\n this.eta = data().deepCopy(fields()[1].schema(), other.eta);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.phi)) {\n this.phi = data().deepCopy(fields()[2].schema(), other.phi);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.m)) {\n this.m = data().deepCopy(fields()[3].schema(), other.m);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.e)) {\n this.e = data().deepCopy(fields()[4].schema(), other.e);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.q)) {\n this.q = data().deepCopy(fields()[5].schema(), other.q);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.dzLeadChHad)) {\n this.dzLeadChHad = data().deepCopy(fields()[6].schema(), other.dzLeadChHad);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.nSignalChHad)) {\n this.nSignalChHad = data().deepCopy(fields()[7].schema(), other.nSignalChHad);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.nSignalGamma)) {\n this.nSignalGamma = data().deepCopy(fields()[8].schema(), other.nSignalGamma);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.antiEleMVA5)) {\n this.antiEleMVA5 = data().deepCopy(fields()[9].schema(), other.antiEleMVA5);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.antiEleMVA5Cat)) {\n this.antiEleMVA5Cat = data().deepCopy(fields()[10].schema(), other.antiEleMVA5Cat);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.rawMuonRejection)) {\n this.rawMuonRejection = data().deepCopy(fields()[11].schema(), other.rawMuonRejection);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.rawIso3Hits)) {\n this.rawIso3Hits = data().deepCopy(fields()[12].schema(), other.rawIso3Hits);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.rawIsoMVA3oldDMwoLT)) {\n this.rawIsoMVA3oldDMwoLT = data().deepCopy(fields()[13].schema(), other.rawIsoMVA3oldDMwoLT);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.rawIsoMVA3oldDMwLT)) {\n this.rawIsoMVA3oldDMwLT = data().deepCopy(fields()[14].schema(), other.rawIsoMVA3oldDMwLT);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.rawIsoMVA3newDMwoLT)) {\n this.rawIsoMVA3newDMwoLT = data().deepCopy(fields()[15].schema(), other.rawIsoMVA3newDMwoLT);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.rawIsoMVA3newDMwLT)) {\n this.rawIsoMVA3newDMwLT = data().deepCopy(fields()[16].schema(), other.rawIsoMVA3newDMwLT);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.puppiChHadIso)) {\n this.puppiChHadIso = data().deepCopy(fields()[17].schema(), other.puppiChHadIso);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.puppiGammaIso)) {\n this.puppiGammaIso = data().deepCopy(fields()[18].schema(), other.puppiGammaIso);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.puppiNeuHadIso)) {\n this.puppiNeuHadIso = data().deepCopy(fields()[19].schema(), other.puppiNeuHadIso);\n fieldSetFlags()[19] = true;\n }\n if (isValidValue(fields()[20], other.puppiChHadIsoNoLep)) {\n this.puppiChHadIsoNoLep = data().deepCopy(fields()[20].schema(), other.puppiChHadIsoNoLep);\n fieldSetFlags()[20] = true;\n }\n if (isValidValue(fields()[21], other.puppiGammaIsoNoLep)) {\n this.puppiGammaIsoNoLep = data().deepCopy(fields()[21].schema(), other.puppiGammaIsoNoLep);\n fieldSetFlags()[21] = true;\n }\n if (isValidValue(fields()[22], other.puppiNeuHadIsoNoLep)) {\n this.puppiNeuHadIsoNoLep = data().deepCopy(fields()[22].schema(), other.puppiNeuHadIsoNoLep);\n fieldSetFlags()[22] = true;\n }\n if (isValidValue(fields()[23], other.hpsDisc)) {\n this.hpsDisc = data().deepCopy(fields()[23].schema(), other.hpsDisc);\n fieldSetFlags()[23] = true;\n }\n }", "public static Builder builder() {\n return new Builder().defaults();\n }", "public static Builder newBuilder(TransferSerialMessage other) {\n return new Builder(other);\n }", "public static DummyBuilder fromInstance(Object instance) {\n return new DummyBuilder(instance);\n }", "public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }", "public CopyBook buildCopyBookFromGroup() {\n\t\tCopyBook builtCopyBook = new CopyBook();\n\t\t\n\t\tbuiltCopyBook.setName( name );\n\t\tbuiltCopyBook.addChildElements( childElements );\n\t\t\n\t\treturn builtCopyBook;\n\t}", "public static com.example.DNSLog.Builder newBuilder(com.example.DNSLog.Builder other) {\n if (other == null) {\n return new com.example.DNSLog.Builder();\n } else {\n return new com.example.DNSLog.Builder(other);\n }\n }", "static Builder builder() {\n return new SourceContextImpl.Builder();\n }", "public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }", "private Builder(org.ga4gh.models.CallSet.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.name)) {\n this.name = data().deepCopy(fields()[1].schema(), other.name);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.sampleId)) {\n this.sampleId = data().deepCopy(fields()[2].schema(), other.sampleId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.variantSetIds)) {\n this.variantSetIds = data().deepCopy(fields()[3].schema(), other.variantSetIds);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.created)) {\n this.created = data().deepCopy(fields()[4].schema(), other.created);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.updated)) {\n this.updated = data().deepCopy(fields()[5].schema(), other.updated);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.info)) {\n this.info = data().deepCopy(fields()[6].schema(), other.info);\n fieldSetFlags()[6] = true;\n }\n }", "public static Value.Builder newBuilder(Value other) {\n return new Value.Builder(other);\n }", "public static edu.pa.Rat.Builder newBuilder(edu.pa.Rat.Builder other) {\n return new edu.pa.Rat.Builder(other);\n }", "public Builder() {\n }", "private Builder(Value.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.kd_kelas)) {\n this.kd_kelas = data().deepCopy(fields()[0].schema(), other.kd_kelas);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.hari_ke)) {\n this.hari_ke = data().deepCopy(fields()[1].schema(), other.hari_ke);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.jam_mulai)) {\n this.jam_mulai = data().deepCopy(fields()[2].schema(), other.jam_mulai);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.jam_selesai)) {\n this.jam_selesai = data().deepCopy(fields()[3].schema(), other.jam_selesai);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.tgl_mulai_otomatis_buat_jadwal)) {\n this.tgl_mulai_otomatis_buat_jadwal = data().deepCopy(fields()[4].schema(), other.tgl_mulai_otomatis_buat_jadwal);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.tgl_berakhir_otomatis_buat_jadwal)) {\n this.tgl_berakhir_otomatis_buat_jadwal = data().deepCopy(fields()[5].schema(), other.tgl_berakhir_otomatis_buat_jadwal);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.aktif)) {\n this.aktif = data().deepCopy(fields()[6].schema(), other.aktif);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.kd_mk)) {\n this.kd_mk = data().deepCopy(fields()[7].schema(), other.kd_mk);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.nama_mk)) {\n this.nama_mk = data().deepCopy(fields()[8].schema(), other.nama_mk);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.nama_kelas)) {\n this.nama_kelas = data().deepCopy(fields()[9].schema(), other.nama_kelas);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.nama_hari)) {\n this.nama_hari = data().deepCopy(fields()[10].schema(), other.nama_hari);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.ts_update)) {\n this.ts_update = data().deepCopy(fields()[11].schema(), other.ts_update);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.kd_org)) {\n this.kd_org = data().deepCopy(fields()[12].schema(), other.kd_org);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.thn)) {\n this.thn = data().deepCopy(fields()[13].schema(), other.thn);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.term)) {\n this.term = data().deepCopy(fields()[14].schema(), other.term);\n fieldSetFlags()[14] = true;\n }\n }", "public static org.mddarr.rides.event.dto.AvroRide.Builder newBuilder(org.mddarr.rides.event.dto.AvroRide.Builder other) {\n return new org.mddarr.rides.event.dto.AvroRide.Builder(other);\n }", "private Builder(tr.com.siparis.sistemi.kafka.model.Kullanici.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.kullaniciTur_id)) {\n this.kullaniciTur_id = data().deepCopy(fields()[0].schema(), other.kullaniciTur_id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.kullanici_adi)) {\n this.kullanici_adi = data().deepCopy(fields()[1].schema(), other.kullanici_adi);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.kullanici_id)) {\n this.kullanici_id = data().deepCopy(fields()[2].schema(), other.kullanici_id);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.kullanici_soyadi)) {\n this.kullanici_soyadi = data().deepCopy(fields()[3].schema(), other.kullanici_soyadi);\n fieldSetFlags()[3] = true;\n }\n }", "public static com.trg.fms.api.Trip.Builder newBuilder(com.trg.fms.api.Trip.Builder other) {\n if (other == null) {\n return new com.trg.fms.api.Trip.Builder();\n } else {\n return new com.trg.fms.api.Trip.Builder(other);\n }\n }", "public static Builder create(){\n return new Builder(Tribit.ZERO);\n }", "public Builder(Object source) {\n this.source = source;\n }", "private Builder(org.mddarr.rides.event.dto.AvroRide.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.rideid)) {\n this.rideid = data().deepCopy(fields()[0].schema(), other.rideid);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.userid)) {\n this.userid = data().deepCopy(fields()[1].schema(), other.userid);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.driverid)) {\n this.driverid = data().deepCopy(fields()[2].schema(), other.driverid);\n fieldSetFlags()[2] = true;\n }\n }", "private Builder() {\n }", "private Builder() {\n }", "public static com.babbler.ws.io.avro.model.BabbleValue.Builder newBuilder(com.babbler.ws.io.avro.model.BabbleValue.Builder other) {\n return new com.babbler.ws.io.avro.model.BabbleValue.Builder(other);\n }", "public Builder() {\n\t\t}", "private Builder(com.trg.fms.api.Trip other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.driverId)) {\n this.driverId = data().deepCopy(fields()[1].schema(), other.driverId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.carId)) {\n this.carId = data().deepCopy(fields()[2].schema(), other.carId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = true;\n }\n }", "private Construct(Builder builder) {\n super(builder);\n }", "public static Gel_BioInf_Models.VirtualPanel.Builder newBuilder(Gel_BioInf_Models.VirtualPanel.Builder other) {\n return new Gel_BioInf_Models.VirtualPanel.Builder(other);\n }", "public static com.autodesk.ws.avro.Call.Builder newBuilder(com.autodesk.ws.avro.Call.Builder other) {\n return new com.autodesk.ws.avro.Call.Builder(other);\n }", "public static cz.muni.fi.sdipr.kafka.latency.avro.Payload.Builder newBuilder(cz.muni.fi.sdipr.kafka.latency.avro.Payload.Builder other) {\n return new cz.muni.fi.sdipr.kafka.latency.avro.Payload.Builder(other);\n }", "public static LinkBuilder builder() {\n return new LinkBuilder();\n }", "public Builder(){\n }", "private Builder(com.luisjrz96.streaming.birthsgenerator.models.BirthInfo other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.name)) {\n this.name = data().deepCopy(fields()[0].schema(), other.name);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.lastName)) {\n this.lastName = data().deepCopy(fields()[1].schema(), other.lastName);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.country)) {\n this.country = data().deepCopy(fields()[2].schema(), other.country);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.gender)) {\n this.gender = data().deepCopy(fields()[4].schema(), other.gender);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.date)) {\n this.date = data().deepCopy(fields()[5].schema(), other.date);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.height)) {\n this.height = data().deepCopy(fields()[6].schema(), other.height);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.weight)) {\n this.weight = data().deepCopy(fields()[7].schema(), other.weight);\n fieldSetFlags()[7] = true;\n }\n }", "private Builder builder() {\n\n\t\tif (!(message instanceof Builder)) {\n\t\t\tthrow new IllegalStateException(\"Message is not a builder\");\n\t\t}\n\n\t\treturn (Builder) message;\n\n\t}" ]
[ "0.76662683", "0.7575539", "0.7575539", "0.7133212", "0.68885136", "0.68885136", "0.6867878", "0.68402594", "0.6819114", "0.6819114", "0.6819114", "0.6819114", "0.6819114", "0.6819114", "0.6819114", "0.68080693", "0.6703692", "0.6703692", "0.6703692", "0.6683069", "0.6652812", "0.66524136", "0.66524136", "0.66524136", "0.6646438", "0.6646438", "0.6646438", "0.6646438", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66356754", "0.66068256", "0.65763474", "0.6571946", "0.6571946", "0.6567062", "0.65559554", "0.65538543", "0.65538543", "0.65538543", "0.65538543", "0.65471137", "0.65286213", "0.6451854", "0.64385206", "0.64385206", "0.64385206", "0.638347", "0.63702434", "0.6287796", "0.6286835", "0.62358373", "0.6230731", "0.62269354", "0.61274207", "0.6072273", "0.60702807", "0.606756", "0.6058843", "0.60582644", "0.60581046", "0.6056102", "0.6036829", "0.6029661", "0.60268056", "0.60159254", "0.6010106", "0.5992593", "0.5987154", "0.59791625", "0.5970056", "0.5967429", "0.5934173", "0.5928409", "0.5916698", "0.59079313", "0.590085", "0.5899206", "0.5893495", "0.58850324", "0.58770376", "0.58770376", "0.5867023", "0.5861563", "0.58554417", "0.58545613", "0.58534694", "0.58409876", "0.5835001", "0.5828096", "0.58231276", "0.58166736", "0.581019" ]
0.0
-1
Gets the value of the 'title' field
public java.lang.String getTitle() { return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.Object getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String get(String title) {\n\t\treturn prop.getProperty(title);\n\t}", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle() {\r\n return this.title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return this.title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }", "public Title getTitle() {\r\n return title;\r\n }", "public java.lang.String getTitle()\n {\n return this.title;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle() { return title; }", "public String getTitle() { return this.title; }", "public String getTitle() {\r\n return _title;\r\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle()\n {\n return (this.title);\n }", "public String getTitle(){\n\t\treturn this.title;\n\t}", "public String getTitle() {\r\n\t\treturn (String) getProperty(\"title\");\t\r\n\t}", "private String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public TextField<String> getTITLE() {\n\t\treturn title;\n\t}", "public java.lang.String getTitle()\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(TITLE$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }" ]
[ "0.80672115", "0.80557203", "0.80262154", "0.7992935", "0.7992935", "0.7992935", "0.79742384", "0.79697406", "0.79697406", "0.7962267", "0.79482406", "0.79482406", "0.79482406", "0.79482406", "0.79482406", "0.79482406", "0.79482406", "0.7946602", "0.79430854", "0.79425746", "0.7937108", "0.7936376", "0.79325944", "0.7932331", "0.7926957", "0.7926957", "0.7926957", "0.7926957", "0.7926957", "0.79258513", "0.7924036", "0.7924036", "0.7924036", "0.7924036", "0.7924036", "0.790408", "0.7901344", "0.79004043", "0.7895459", "0.78865707", "0.7882212", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.7880923", "0.78722817", "0.78722817", "0.7871163", "0.7869906", "0.7862199", "0.7862199", "0.7862199", "0.7862199", "0.7862199" ]
0.79648435
9
Sets the value of the 'title' field
public graphene.model.idl.G_DocumentError.Builder setTitle(java.lang.String value) { validate(fields()[0], value); this.title = value; fieldSetFlags()[0] = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle(String title) { this.title = title; }", "protected void SetTitle(String newTitle){ title = newTitle; }", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title){\n this.title = title;\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t\tthis.dirtyAttributes.add(Constants.TITLE);\n\t}", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void doSetTitle(String newTitle) \n {\n this.title = newTitle;\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "protected void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(final String title)\n {\n this.title = title;\n }", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(final String title) {\n this.title = title;\n }", "@Element \n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(final String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(java.lang.String title);", "public void setTitle(String title) {\n mTitle = title;\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\tmodel.setTitle(title);\n\t}", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title) {\n this.title = title;\n etvTitle.setText(title);\n }", "public void setTitle(java.lang.String title)\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(TITLE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TITLE$2);\n }\n target.setStringValue(title);\n }\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setTitle(String newTitle)\r\n {\r\n title = newTitle;\r\n }", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "void setTitle(java.lang.String title);", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }" ]
[ "0.8558953", "0.8556304", "0.85482407", "0.8533126", "0.85307217", "0.8528794", "0.85142505", "0.8490284", "0.8489834", "0.8488252", "0.8488252", "0.8481078", "0.8481078", "0.8479092", "0.8479092", "0.8479092", "0.8463011", "0.8460688", "0.84601194", "0.84601194", "0.84601194", "0.84601194", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84537387", "0.84336996", "0.8430123", "0.8429816", "0.84250635", "0.8404799", "0.83998495", "0.83895123", "0.83889776", "0.83860874", "0.83851534", "0.83851534", "0.83851534", "0.83851534", "0.83851534", "0.83673835", "0.835412", "0.835412", "0.835412", "0.835412", "0.835412", "0.835412", "0.835412", "0.835412", "0.835412", "0.8339881", "0.83353746", "0.8334671", "0.8330933", "0.83297664", "0.8304697", "0.8304697", "0.8304697", "0.8296388", "0.82934225", "0.8288099", "0.8225845", "0.8224839", "0.8214209", "0.819415", "0.8177311", "0.8171689", "0.8171689", "0.8171689", "0.81672245", "0.8153296", "0.81524634", "0.8104105", "0.80991334", "0.8090647", "0.8074494", "0.8074494", "0.8074494", "0.8074494", "0.8047689", "0.8047689", "0.8047689", "0.8047689", "0.8047689", "0.8047689", "0.8047689", "0.8047689" ]
0.0
-1
Checks whether the 'title' field has been set
public boolean hasTitle() { return fieldSetFlags()[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetTitle() {\n return this.title != null;\n }", "public boolean isSetTitle() {\n return this.Title != null;\n }", "public boolean isSetTitle() {\n return this.title != null;\n }", "public boolean isSetTitle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(TITLE$2) != null;\n }\n }", "public default boolean hasTitle() {\n\t\tString title = getTitle();\n\t\treturn title != null && !title.trim().isEmpty();\n\t}", "public void validateTitle(String title){\n boolean isValid = title != null && !title.isEmpty();\n setTitleValid(isValid);\n }", "public boolean hasTitle() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasTitle() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasTitle();", "public boolean isSetOriginal_title() {\n return this.original_title != null;\n }", "public boolean hasTitle(final String title);", "public boolean verifyTitle(String title) {\n\t\tif (getter().getTitle().equals(title)) {\r\n\t\t\tSystem.out.println(\"Page title: \"+title+\" matched successfully\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Page url: \"+title+\" not matched\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isSetJobtitle() {\n return this.jobtitle != null;\n }", "public boolean isValidTitle(Title title);", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "private boolean updateTitle()\r\n\t{\r\n\t\tString newTitle = titleBase != null ? titleBase : \"\";\r\n\r\n\t\tif (propertyBrowser.isReadOnly() && readonlyText != null)\r\n\t\t{\r\n\t\t\tnewTitle += readonlyText;\r\n\t\t}\r\n\r\n\t\tif (propertyBrowser.isObjectModified() && modifiedText != null)\r\n\t\t{\r\n\t\t\tnewTitle += modifiedText;\r\n\t\t}\r\n\r\n\t\tif (title == null || !title.equals(newTitle))\r\n\t\t{\r\n\t\t\ttitle = newTitle;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void validateTitle()\r\n\t{\r\n\t\tString titleDisplayed = this.heading.getText();\r\n\t\tassertEquals(titleDisplayed, \"Dashboard\");\r\n\t\tSystem.out.println(\"Value is asserted\");\r\n\t\t\t}", "public static boolean checkTitle(String title) {\r\n\t\tboolean result = false;\r\n\t\tif (check(title) && title.matches(CommandParameter.REG_EXP_TITLE)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Test\r\n\tpublic void testSetGetValidTitle() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setTitle(titleValid);\r\n\t\tassertEquals(titleValid, doctor.getTitle());\r\n\t}", "public boolean waitForTitlePresent(String title){\n\t\t\n\t\twait.until(ExpectedConditions.titleIs(title));\n\t\treturn true;\n\t}", "public boolean isSetCartitle() {\n return this.cartitle != null;\n }", "public void assertTitle(final String title);", "public boolean checkPageTitle(String title) {\n return new WebDriverWait(webDriver, DRIVER_WAIT_TIME).until(ExpectedConditions.titleIs(title));\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "@NotNull\r\n @Column(name = \"title\")\r\n public String getTitle() {\n return title;\r\n }", "@Test\r\n\tpublic void testSetGetInvalidTitle() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setTitle(titleInvalid);\r\n\t\tassertEquals(titleInvalid, doctor.getTitle());\r\n\r\n\t}", "protected boolean titlePageNeeded(){\n return true;\n }", "public boolean validateInput(String title) {\n \t\n \tboolean valid = true;\n \tString error = \"\";\n \t\n \tif(title.equals(\"\")) {\n \t\terror += \"Invalid title\";\n \t\tvalid = false;\n \t}else if(currentTaskItems.size() == 0) {\n \t\terror += \"Please attach an item to your task\";\n \t\tvalid = false;\n \t}else if(!propertiesGrabbed) {\n \t\terror += \"Please enter the tasks properties\";\n \t\tvalid = false;\n \t}\n \t\n \t//if valid return else toast\n \tif(valid){\n \t\treturn true;\n \t}else{\n\n \t\tContext context = getApplicationContext();\n \t\tToast toast = Toast.makeText(context, error, Toast.LENGTH_SHORT);\n \t\ttoast.show();\n \t\treturn false;\n \t}\n }", "@Override\n protected boolean isNotAddTitle() {\n return true;\n }", "private void checkTitle(final WebDriver driver) {\r\n\t\tfinal String title = driver.getTitle();\r\n\t\tAssert.assertEquals(\"Wrong page title\", PAGE_TITLE, title);\r\n\t}", "private boolean getNeedTitle()\r\n\t{\n\t\tif (new EditionSpeService().ficheProducteurNeedEngagement()==false)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Si on interdit d'afficher un des deux blocs : pas de titre\r\n\t\tif ((peMesContrats.canPrintContrat==ImpressionContrat.JAMAIS) || (peMesContrats.canPrintContratEngagement==ImpressionContrat.JAMAIS))\r\n\t\t{\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Sinon, il faut un titre\r\n\t\treturn true;\r\n\t}", "public boolean titlePresent(String title){\n\t\t\t boolean pageRedirected = false;\n\t pageRedirected = driver.getTitle().equals(title);\n\t Reporter.log(\"==========title Presnt for ProductPage======\", true);\n\t \n\t return pageRedirected;\n\t }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t\tthis.dirtyAttributes.add(Constants.TITLE);\n\t}", "private boolean checkEmptyTitle(TextInputLayout name) {\n if (\"\".equals(Objects.requireNonNull(name.getEditText()).getText().toString())) {\n name.setErrorEnabled(true);\n name.setError(getString(R.string.non_empty_field));\n return false;\n }\n\n return true;\n }", "public void setTitle(String title) { this.title = title; }", "@Test\n\tpublic void titlevalidation() throws IOException\n\t{\n\t\t\n\t\tLandingpage l=new Landingpage(driver);\n\t\t//compare text from the browser with the actual text\n\t\t//here comes assertion\n\t\tAssert.assertEquals(l.title().getText(),\"FEATURED COURSES\");\n\t\tlog.info(\"Compared properly\");\n\t\t\n\t}", "protected void SetTitle(String newTitle){ title = newTitle; }", "public boolean hasChannelTitle()\n {\n return channelTitle != null && channelTitle.length() > 0;\n }", "public void setTitle(String title){\n this.title = title;\n }", "public String validateAddVehiclePageTitleTitle(){\n\t\treturn driver.getTitle();\n\t}", "public boolean checkPageTitleContains(String title) {\n return new WebDriverWait(webDriver, DRIVER_WAIT_TIME)\n .until(ExpectedConditions.titleContains(title));\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "private boolean validTitle(String targetTitle) {\n Query q = new Query(\"Location\").setFilter(new FilterPredicate(\"title\", FilterOperator.EQUAL,\n targetTitle));\n int numOfSameEntities = ds.prepare(q).countEntities();\n return (numOfSameEntities == 0);\n }", "public void validateTitle( WebDriver driver,String title) {\n\t\t\ttry {\n\t\t\tAssert.assertEquals(driver.getTitle(), title);\n\t\t\tlogger.log(LogStatus.INFO, \"Document title is validated\"+driver.getTitle());\n\t\t\t}\n\t\t\tcatch(AssertionError e)\n\t\t\t{\n\t\t\t\tlog.logReport(\"Document title is not matched with Expected \"+title);\n\t\t\t\tlogger.log(LogStatus.INFO, \"Document title is not matched with Expected \"+title );\n\t\t\t}\n\t\t}", "@Test(priority=0)\n\tpublic void titleVerification() {\n\t\tString expectedTitle = \"Facebook – log in or sign up\";\n\t\tString actualTitle = driver.getTitle();\n\t\tAssert.assertEquals(actualTitle, expectedTitle);\n\t}", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public boolean verifyTitle(String expTitle)\n\t{\n\t\tif(expTitle.equals(driver.getTitle().trim()))// if 1.1 started here\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setTitle(String title) {\r\n _title = title;\r\n }", "@Override\n public boolean isNoTitle() {\n return true;\n }", "public String validatePageTitle(){\n\treturn driver.getTitle();\t\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}" ]
[ "0.859869", "0.8461333", "0.8449196", "0.8164437", "0.7864459", "0.77670807", "0.77396125", "0.7700176", "0.7666886", "0.7604794", "0.7471281", "0.7376496", "0.7362071", "0.73137224", "0.7297135", "0.72129333", "0.70972997", "0.70751745", "0.70653105", "0.7034937", "0.70328987", "0.6949485", "0.6940216", "0.68261933", "0.68261933", "0.68261933", "0.68261933", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.6770042", "0.67335206", "0.67164224", "0.67132336", "0.66963404", "0.66445905", "0.6643486", "0.6637566", "0.6631502", "0.66151136", "0.66125804", "0.6595486", "0.65858567", "0.6572967", "0.65663266", "0.6520477", "0.6507711", "0.65069157", "0.65023464", "0.65023464", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6494033", "0.6485201", "0.64850754", "0.64850754", "0.64850754", "0.64760876", "0.64760876", "0.6474696", "0.6473089", "0.64547163", "0.6454253", "0.6453563", "0.64468414", "0.64468414", "0.64468414", "0.64468414", "0.64463276", "0.64458454", "0.64319694", "0.64299124", "0.6421885", "0.64214516", "0.641855", "0.641855", "0.641855" ]
0.7693662
8
Clears the value of the 'title' field
public graphene.model.idl.G_DocumentError.Builder clearTitle() { title = null; fieldSetFlags()[0] = false; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder clearTitle() {\n title_ = getDefaultInstance().getTitle();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearTitle() {\n \n title_ = getDefaultInstance().getTitle();\n onChanged();\n return this;\n }", "public void resetTitle();", "public Builder clearTitle() {\n bitField0_ = (bitField0_ & ~0x00000002);\n title_ = getDefaultInstance().getTitle();\n onChanged();\n return this;\n }", "public Builder clearTitle() {\n \n title_ = getDefaultInstance().getTitle();\n onChanged();\n return this;\n }", "public Builder clearTitle() {\n \n title_ = getDefaultInstance().getTitle();\n onChanged();\n return this;\n }", "public Builder clearTitle() {\n \n title_ = getDefaultInstance().getTitle();\n onChanged();\n return this;\n }", "public void unsetTitle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(TITLE$2);\n }\n }", "public void resetTitulo()\r\n {\r\n this.titulo = null;\r\n }", "public void resetTitulo()\r\n {\r\n this.titulo = null;\r\n }", "public void clearTitle(Player player) {\n\t\tsendTitle(player, Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0), \"\", \"\");\n\t}", "public void removeAllTitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), TITLE);\r\n\t}", "public void resetTitle ( ) {\n\t\texecute ( handle -> handle.resetTitle ( ) );\n\t}", "public void removeTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), TITLE, value);\r\n\t}", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void removeTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), TITLE, value);\r\n\t}", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public Gel_BioInf_Models.VirtualPanel.Builder clearSpecificDiseaseTitle() {\n specificDiseaseTitle = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "protected void removeTitle(){\n canvas.remove(titleBorder);\n canvas.remove(titleBox);\n canvas.remove(title);\n canvas.remove(startBorder);\n canvas.remove(startBox);\n canvas.remove(startText);\n }", "public void removeByTitle(String title);", "public void deleteTitle(Title title) {\n db.deleteTitle(title);\n }", "public void clearDescription() {\r\n\r\n\t\tWebElement descField = McsElement.getElementByXpath(driver,\tDESCRIPTION_TXTAREA);\r\n\t\r\n\t\tdescField.sendKeys(\" \");\r\n\t\t\r\n\t\tdescField.clear();\r\n\t\t\r\n\t\tdescField.sendKeys(Keys.TAB);\r\n\t}", "public void removeAllAlbumTitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ALBUMTITLE);\r\n\t}", "private static void deleteTitle(String title) {\n\t\t// Check for valid title.\n\t\tif(title == null || title.length() == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid title.\");\n\t\t}\n\t\t// Build URL.\n\t\tString urlTitle = title.replace(\" \", \"+\");\n\t\tString prefix = \"http://www.omdbapi.com/?t=\";\n\t\tString postfix = \"&y=&plot=short&r=xml\";\n\t\tString url = prefix + urlTitle + postfix;\n\t\t// Load data from API.\n\t\tDataSource dataSource = DataSource.connectXML(url);\n\t\tdataSource.load();\n\t\tboolean response = dataSource.fetchBoolean(\"response\");\n\t\t// Check if response is valid.\n\t\tif(!response) {\n\t\t\tprintln(\"'\" + title + \"' not found in database.\");\n\t\t\treturn;\n\t\t}\n\t\t// Get movie title.\n\t\tString rTitle = dataSource.fetchString(\"movie/title\");\n\t\tMovie movie = movieManager.getMovie(rTitle);\n\t\tif(movie == null) {\n\t\t\tprintln(\"'\" + rTitle + \"' is not in your library.\");\n\t\t\treturn;\n\t\t}\n\t\t// For actors in this movie, subtract their count by one.\n\t\tfor(Actor actor : movie.getActors()) {\n\t\t\tactor.setCount(actor.getCount() - 1);\n\t\t\tif(actor.getCount() <= 0) {\n\t\t\t\tmovieManager.getActors().remove(actor);\n\t\t\t}\n\t\t}\n\t\t// Remove the movie.\n\t\tmovieManager.getMovies().remove(movie);\n\t\tprintln(\"'\" + rTitle + \"' removed from your library.\");\n\t}", "private void clear() {\n\t\ttxtId.setText(\"\");\n\t\ttxtAlert.setText(\"\");\n\t\ttxtNbMax.setText(\"\");\n\t\t\n\t}", "public static void removeByTitle(String title) {\n\t\tgetPersistence().removeByTitle(title);\n\t}", "public static void removeTitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, TITLE, value);\r\n\t}", "private void clearFields() {\n this.subjectField.setText(\"\");\n this.descrField.setText(\"\");\n this.nameField.setText(\"\");\n }", "public void clearAnswer(){\r\n textField1.setText(\"\");\r\n }", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t\tthis.dirtyAttributes.add(Constants.TITLE);\n\t}", "private void clearText() {\n \n text_ = getDefaultInstance().getText();\n }", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "public void clear() {\n content = \"EMPTY\";\n }", "public void resetDescripcion()\r\n {\r\n this.descripcion = null;\r\n }", "public static void removeTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.remove(model, instanceResource, TITLE, value);\r\n\t}", "private void ClearForm() {\n supplierName.setText(\"\");\n supplierDiscription.setText(\"\");\n }", "private void clear() {\r\n\t\tareaTexto.setText(\"\");\r\n\t}", "public void removeAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "public void ClearTextFieldCreate() {\n txtFGameName.setText(\"\");\n txtFMovements.setText(\"\");\n }", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "public void clear() {\n\t\t// setText() is buggy due html formatting :-(\n\t\t// need this little workaround\n\t\tsummaryEditorPane.setDocument( summaryEditorPane.getEditorKit().createDefaultDocument() );\n\t}", "public void removeAlbumTitle(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}", "private void clearTextInput() {\n\t\ttextInput.setText(\"\");\n\t}", "public void clear()\n{\n\ttextArea().setText(\"\");\n}", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "public String getTitle() {\n return \"\";\n }", "public void reset() {\n\t\t\t// clear the field\n\t\t\ttextField.setValue(null);\n\t\t}", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public synchronized void removeWikiEntry(String title) {\r\n\t\twikiList.remove(title);\r\n\t}", "public void setTitle(String title) { this.title = title; }", "private void Clear() {\n AAccLevel_AdEdRe_TextF_AccLevelID.setText(\"\");\n AAccLevel_AdEdRe_TextF_AccLevelName.setText(\"\");\n AAccLevel_AdEdRe_TextA_Discription.setText(\"\");\n }", "public void setTitle(String title){\n this.title = title;\n }", "protected void SetTitle(String newTitle){ title = newTitle; }", "@Element \n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "private void clear() {//将文本框等状态置零\n\t\tusername.setText(\"\");\n\t\tpass.setText(\"\");\n\t\tname.setText(\"\");\n\t\tsex1.setSelected(true);\n\t\ttel.setText(\"\");\n\t\taddr.setText(\"\");\n\t\trole.setSelectedIndex(0);\n\t\tusername.grabFocus();\n\t}", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void removeATitle() {\n System.out.println(\"Enter title which need to remove: \");\n String title = input.next();\n for (Card s: cards) {\n if (s.titleOfBook.equals(title)) {\n cards.remove(s);\n System.out.println(cards);\n break;\n }\n }\n \n }", "@Override\n public void clear() {\n view.setText(\"\");\n view.setSelection(view.getText().length());\n }", "public void xsetTitle(com.a9.spec.opensearch.x11.QueryType.Title title)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Title target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Title)get_store().find_attribute_user(TITLE$2);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Title)get_store().add_attribute_user(TITLE$2);\n }\n target.set(title);\n }\n }", "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private void clearFields() {\r\n jTextFieldID.setText(\"\");\r\n jTextFieldNome.setText(\"\");\r\n jTextFieldPreco.setText(\"\");\r\n jTextFieldDescricao.setText(\"\");\r\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "protected void ACTION_ON_CLEAR(ActionEvent arg0) {\n\t\ttextArea_1.setText(\"\");\r\n\t}", "public void clear() {\n\t\ttextArea.setText(\"\");\n\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\tmodel.setTitle(title);\n\t}", "public void clear()\n\t\t{\n\t\t\ttxtCustomerName.setText(\"\");\n\t\t\ttxtAddress.setText(\"\");\n\t\t\ttxtContact.setText(\"\");\n\t\t\ttxtProduct.setText(\"\");\n\t\t\ttxtSerialNo.setText(\"\");\n\t\t\ttxtModuleNo.setText(\"\");\n\t\t\ttxtComplaintNo.setText(\"\");\n\t\t\tCategorycomboBox.setSelectedItem(\"Sent\");\n\t\t}", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "void unsetDescription();", "void unsetDescription();", "private void clearTextField() {\n txtOrder.setText(\"\");\n txtName.setText(\"\");\n txtWeight.setText(\"\");\n txtGallon.setText(\"\");\n txtPersent.setText(\"\");\n txtPrice.setText(\"\");\n \n }", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void deleteFilm(String title) {\n filmEdit.deleteFilm(title);\n }", "public void text_clear()\n {\n C_ID.setText(\"\");\n C_Name.setText(\"\");\n C_NIC.setText(\"\");\n C_P_Id.setText(\"\");\n C_P_Name.setText(\"\");\n C_Address.setText(\"\");\n C_TelNo.setText(\"\");\n C_Age.setText(\"\");\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }" ]
[ "0.7906323", "0.7817391", "0.76373714", "0.76286113", "0.7621209", "0.7621209", "0.7621209", "0.7546633", "0.7251303", "0.7251303", "0.71863836", "0.706216", "0.6856958", "0.6802793", "0.6802277", "0.6802277", "0.6802277", "0.6802277", "0.679096", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.672546", "0.6675381", "0.66501504", "0.659799", "0.6590234", "0.65500426", "0.6545203", "0.6520577", "0.64898425", "0.64538", "0.6443728", "0.64355725", "0.64052683", "0.6385105", "0.63816035", "0.63749796", "0.6372433", "0.63662535", "0.6314362", "0.62867785", "0.62688655", "0.6268415", "0.6258183", "0.62532216", "0.6248237", "0.623925", "0.623925", "0.623925", "0.6238396", "0.6212831", "0.6204728", "0.6202285", "0.6184315", "0.6183231", "0.6173035", "0.6172595", "0.61654353", "0.61556774", "0.61452717", "0.6138738", "0.61367893", "0.6131608", "0.61223555", "0.61032915", "0.6101662", "0.6097334", "0.60947293", "0.60933447", "0.60915023", "0.6089446", "0.6088827", "0.607645", "0.6074412", "0.60714346", "0.6071141", "0.60690695", "0.6066626", "0.6066626", "0.60653", "0.60653", "0.6063963", "0.6060138", "0.6059195", "0.6059195", "0.6059195", "0.60558873", "0.605483", "0.60533166", "0.60533166", "0.60533166" ]
0.7356522
8
Gets the value of the 'description' field
public java.lang.String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String get_description() {\n return description;\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "@Override\n\tpublic String getdescription() {\n\t\treturn this.description.getDesc();\n\t}", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "public String getDescription() {\r\n return _description;\r\n }", "String getdescription() {\n\t\treturn description;\n\t}", "public String getDescription() {\r\n\t\treturn McsElement.getElementByXpath(driver, DESCRIPTION_TXTAREA)\r\n\t\t\t\t.getAttribute(\"value\");\r\n\t}", "public java.lang.Object getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription()\n {\n return this.mDescription;\n }", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return _description;\n }", "public String getDescription() {\n return _description;\n }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n\n return this.description;\n }", "public String getDescription() {\n\t\treturn this.description;\n\t}", "public java.lang.String getDescription() {\n return this._description;\n }", "public String getDescription() {\n return description; \n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String description() {\n return this.descr;\n }", "public String getDescription() {\n return this.Description;\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\n\t\tString t = doc.get(\"description\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "public String getDescriptionText() {\n return m_DescriptionText;\n }", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "public java.lang.String getDescription()\n {\n return this._description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public java.lang.String getDescription() {\n return description;\n }", "protected String getDescription() {\n return description;\n }", "public String description() {\r\n\t\treturn this.description;\r\n\t}", "protected String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }" ]
[ "0.8630861", "0.8495401", "0.8495401", "0.8495401", "0.8495401", "0.846599", "0.8199102", "0.81955063", "0.81216156", "0.8093827", "0.8075477", "0.8064957", "0.80642414", "0.8054908", "0.8051295", "0.8049086", "0.8045321", "0.8045321", "0.8044414", "0.8044414", "0.80128175", "0.801249", "0.801249", "0.801249", "0.801249", "0.801249", "0.8005359", "0.8005069", "0.79840964", "0.79840964", "0.7976195", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7975324", "0.7967417", "0.7959884", "0.7957433", "0.7956201", "0.79557097", "0.7955411", "0.7955411", "0.7955411", "0.7955411", "0.7955411", "0.7955411", "0.7955411", "0.7955411", "0.7955411", "0.7955411", "0.79553664", "0.7955186", "0.79545003", "0.79545003", "0.79545003", "0.7952994", "0.7952994", "0.7952994", "0.79422224", "0.79348296", "0.79297554", "0.7928729", "0.7928729", "0.7924504", "0.79240876", "0.7923555", "0.7919509", "0.7919509", "0.7919509", "0.7919509", "0.7919509", "0.7919509", "0.7919509", "0.7919509", "0.79168653", "0.79152375", "0.79032755", "0.789785", "0.789349", "0.78808373", "0.78776836", "0.78776836", "0.78776836", "0.78776836", "0.78776836", "0.78776836" ]
0.7878951
94
Sets the value of the 'description' field
public graphene.model.idl.G_DocumentError.Builder setDescription(java.lang.String value) { validate(fields()[1], value); this.description = value; fieldSetFlags()[1] = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String value) {\n this.description = value;\n }", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void editDescription(String description) {\n this.description = description;\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription(String description){\n this.description = description;\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(CharSequence value) {\n this.description = value;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "public void setDescription(String description) {\n _description = description;\n }", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(final String description) {\n this.description = description;\n }", "public void setDescription(String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n\n this.description = description;\n }", "public void setDescription(String newdescription) {\n description=newdescription;\n }", "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "protected void setDescription(final String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String desc) {\n description = desc;\n }", "void setDescription(final String description);", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}" ]
[ "0.86505127", "0.8602553", "0.85122293", "0.8343551", "0.8305689", "0.82940537", "0.8292794", "0.8291216", "0.8280144", "0.8270331", "0.82571864", "0.82571864", "0.8255782", "0.8255782", "0.8255782", "0.8255782", "0.8255782", "0.82548577", "0.8250859", "0.8249477", "0.8241569", "0.82405746", "0.82390934", "0.82172847", "0.82116693", "0.8197025", "0.8184145", "0.818246", "0.8181648", "0.8181648", "0.8181648", "0.81750995", "0.81750995", "0.81750995", "0.81750995", "0.81750995", "0.81750995", "0.81750995", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.81734014", "0.817128", "0.817128", "0.817128", "0.8164941", "0.81643176", "0.81605387", "0.81605387", "0.81605387", "0.81605387", "0.81605387", "0.8158588", "0.8158588", "0.8158588", "0.8156077", "0.81515485", "0.8151374", "0.81401944", "0.8108639", "0.80929756", "0.8083709", "0.8081677", "0.8081677", "0.8081677", "0.8081677" ]
0.0
-1
Checks whether the 'description' field has been set
public boolean hasDescription() { return fieldSetFlags()[1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetDescription() {\n return this.description != null;\n }", "public boolean isSetDescription() {\n return this.description != null;\n }", "public boolean isSetDescription() {\n return this.description != null;\n }", "public boolean isSetDescription() {\n return this.Description != null;\n }", "public boolean isSetDescription() {\n return (this.description != null ? this.description.isSetValue() : false);\n }", "boolean isSetDescription();", "boolean isSetDescription();", "public boolean isSetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(DESCRIPTION$14) != null;\n }\n }", "public boolean isSetDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(DESCRIPTION$8) != null;\r\n }\r\n }", "public boolean isSetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DESCRIPTION$2) != 0;\n }\n }", "boolean hasDescription();", "boolean hasDescription();", "boolean hasDescription();", "public boolean descriptionIsValid() {\n return bikeDescription.length() > 0 && bikeDescription.length() < MAX_DESCRIPTION_LENGTH;\n }", "public boolean checkDescription() {\n int size = description.length();\n return size >= 1 && size <= 256;\n }", "public void validateDescription (String description){\n boolean isValid = description != null && !description.isEmpty();\n setDescriptionValid(isValid);\n }", "public boolean hasDESCRIPTION() {\n return fieldSetFlags()[1];\n }", "public boolean hasDescription() {\n return fieldSetFlags()[4];\n }", "boolean isSetDesc();", "public boolean hasDescription() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isDescriptionInitialized() {\n return description_is_initialized; \n }", "public boolean hasDescription() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isSetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(DESC$10) != null;\r\n }\r\n }", "public boolean hasCampaignDescription() {\n return campaignDescription_ != null;\n }", "private boolean isDescriptionInDocGeneratorResponse(DocumentGeneratorResponse response) {\n\n if (StringUtils.isBlank(response.getDescription())) {\n Map<String, Object> logMap = new HashMap<>();\n logMap.put(LOG_MESSAGE_KEY,\n \"The description has not been in the Document Generator Response\");\n LOGGER.error(LOG_DOC_GENERATOR_RESPONSE_INVALID_MESSAGE_KEY, logMap);\n\n return false;\n }\n return true;\n }", "public boolean isSetBankDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BANKDESCRIPTION$2) != 0;\n }\n }", "public void isDescriptionCorrect(String description) {\n\t\tSystem.out.println(description);\n\t\tString text = WebUtility.getText(Locators.getLocators(\"loc.text.description\"));\n\t\tSystem.out.println(text);\n\t\tAssert.assertTrue(text.contains(data.getValidatingData(description)), \"Description is not present\");\n\n\t}", "boolean hasCampaignDescription();", "public boolean hasCampaignDescription() {\n return campaignDescriptionBuilder_ != null || campaignDescription_ != null;\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String desc) {\n // space check provided by:\n // https://stackoverflow.com/questions/3247067/how-do-i-check-that-a-java-string-is-not-all-whitespaces\n if (desc == null || desc.trim().length() == 0) {\n description = NO_DESCRIPTION;\n } else {\n description = desc;\n }\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public boolean isSetStatedescription() {\n return this.statedescription != null;\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public boolean isSetDescricao() {\n return this.descricao != null;\n }", "public boolean isSetDescricao() {\n return this.descricao != null;\n }", "public boolean isSetDescricao() {\n return this.descricao != null;\n }", "public boolean isSetDescricao() {\n return this.descricao != null;\n }", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String description){\n this.description = description;\n }", "public boolean isSetAmountDescription() {\r\n return amountDescription != null;\r\n }", "@Test\r\n public void testSetDescription() {\r\n System.out.println(\"setDescription\");\r\n String description = \"\";\r\n \r\n instance.setDescription(description);\r\n assertEquals(description, instance.getDescription());\r\n \r\n }", "public void setDescription(String description) {\n\t\tthis.description = description == null ? null : description.trim();\n\t}", "boolean getDesc();", "public boolean isVehicleDescriptionFieldPresent() {\r\n\t\treturn isElementPresent(vehicleDescriptionField, SHORTWAIT);\r\n\t}", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description){this.description=description;}", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public boolean isSetStationDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STATIONDESCRIPTION$20) != null;\r\n }\r\n }", "boolean isNilDescription();", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "public void setDescription(String description )\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }" ]
[ "0.82362777", "0.82362777", "0.82362777", "0.8172037", "0.8039749", "0.79315174", "0.79315174", "0.79208165", "0.7908144", "0.78645295", "0.78461486", "0.78461486", "0.78461486", "0.77414846", "0.7644091", "0.7568436", "0.7538981", "0.75019264", "0.7236376", "0.7205251", "0.7190899", "0.7124664", "0.7086585", "0.7060274", "0.70544475", "0.70357317", "0.7027717", "0.69966817", "0.69384766", "0.68492216", "0.68492216", "0.68492216", "0.68366426", "0.68264663", "0.6819884", "0.68101615", "0.6807493", "0.6789244", "0.6789244", "0.6789244", "0.6789244", "0.6789244", "0.6789244", "0.6789244", "0.6787763", "0.6787763", "0.6787763", "0.6787763", "0.6779932", "0.67774355", "0.67654693", "0.67493576", "0.67276144", "0.6721807", "0.67175937", "0.6717251", "0.6717251", "0.6713941", "0.67031276", "0.6671115", "0.6671115", "0.6671115", "0.6671115", "0.6671115", "0.6662643", "0.6656476", "0.6655683", "0.6630186", "0.6630186", "0.6630186", "0.6620064", "0.66200334", "0.6618095", "0.661459", "0.661459", "0.661459", "0.66080606", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895", "0.66056895" ]
0.76512384
14
Clears the value of the 'description' field
public graphene.model.idl.G_DocumentError.Builder clearDescription() { description = null; fieldSetFlags()[1] = false; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearDescription() {\r\n\r\n\t\tWebElement descField = McsElement.getElementByXpath(driver,\tDESCRIPTION_TXTAREA);\r\n\t\r\n\t\tdescField.sendKeys(\" \");\r\n\t\t\r\n\t\tdescField.clear();\r\n\t\t\r\n\t\tdescField.sendKeys(Keys.TAB);\r\n\t}", "public void resetDescripcion()\r\n {\r\n this.descripcion = null;\r\n }", "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DESCRIPTION$2, 0);\n }\n }", "void unsetDescription();", "void unsetDescription();", "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n return this;\n }", "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(DESCRIPTION$14);\n }\n }", "public void unsetDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESCRIPTION$8);\r\n }\r\n }", "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearDescription() {\n bitField0_ = (bitField0_ & ~0x00000004);\n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "public void remDescription(){\n ((MvwDefinitionDMO) core).remDescription();\n }", "public void delDescription(String value){\n ((MvwDefinitionDMO) core).delDescription(value);\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void unsetBankDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BANKDESCRIPTION$2, 0);\n }\n }", "void unsetDesc();", "public maestro.payloads.FlyerFeaturedItem.Builder clearDescription() {\n description = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDescription(String description) {\n\t\tthis.description = description == null ? null : description.trim();\n\t}", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String description) {\n\t this.description = description;\n\t fullDescription = null;\n }", "public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$10);\r\n }\r\n }", "private void clearFields() {\n this.subjectField.setText(\"\");\n this.descrField.setText(\"\");\n this.nameField.setText(\"\");\n }", "public Builder clearCharacteristicDescription() {\n if (characteristicDescriptionBuilder_ == null) {\n characteristicDescription_ = null;\n onChanged();\n } else {\n characteristicDescription_ = null;\n characteristicDescriptionBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearCampaignDescription() {\n if (campaignDescriptionBuilder_ == null) {\n campaignDescription_ = null;\n onChanged();\n } else {\n campaignDescription_ = null;\n campaignDescriptionBuilder_ = null;\n }\n\n return this;\n }", "public void setDescription(String description) {\r\n\t\tif (this.compareFields(this.description, description)) {\r\n\t\t\tthis.fireUpdatePendingChanged(true);\r\n\t\t}\r\n\t\tthis.description = description != null ? description.trim() : null;\r\n\t}", "public void editDescription(String description) {\n this.description = description;\n }", "public void clear() {\n\t\t// setText() is buggy due html formatting :-(\n\t\t// need this little workaround\n\t\tsummaryEditorPane.setDocument( summaryEditorPane.getEditorKit().createDefaultDocument() );\n\t}", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void clear() {\n content = \"EMPTY\";\n }", "public void delDescription(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).delDescription(value);\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDesc(String desc) {\n this.desc = desc == null ? null : desc.trim();\n }", "public void setDescription(String value) {\n this.description = value;\n }", "private void Clear() {\n AAccLevel_AdEdRe_TextF_AccLevelID.setText(\"\");\n AAccLevel_AdEdRe_TextF_AccLevelName.setText(\"\");\n AAccLevel_AdEdRe_TextA_Discription.setText(\"\");\n }", "public Builder clearDescribe() {\n\n describe_ = getDefaultInstance().getDescribe();\n onChanged();\n return this;\n }", "public Builder clearDescribe() {\n\n describe_ = getDefaultInstance().getDescribe();\n onChanged();\n return this;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description){\n this.description = description;\n }", "private void ClearForm() {\n supplierName.setText(\"\");\n supplierDiscription.setText(\"\");\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "private void clearSell()\r\n {\r\n fieldSell_Description.setText(\"\");\r\n fieldSell_Manufacturer.setText(\"\");\r\n fieldSell_Price.setText(\"\");\r\n fieldSell_taxRate.setText(\"\");\r\n fieldSell_Customer.setText(\"\");\r\n fieldSell_Date.setText(\"\");\r\n fieldSell_hardwareDeviceNo.setText(\"\");\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String desc) {\n description = desc.trim();\n if (description.equals(\"\")) {\n description = \"NODESC\";\n }\n }", "public void text_clear()\n {\n C_ID.setText(\"\");\n C_Name.setText(\"\");\n C_NIC.setText(\"\");\n C_P_Id.setText(\"\");\n C_P_Name.setText(\"\");\n C_Address.setText(\"\");\n C_TelNo.setText(\"\");\n C_Age.setText(\"\");\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void unsetStationDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(STATIONDESCRIPTION$20);\r\n }\r\n }", "public void setDescription(String description) { this.description = description; }", "private void clearFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmZipCodeValue.setText(\"\");\r\n\t\tmZipCodeValue.setHint(\"Zipcode\");\r\n\t\tmCVVNoValue.setText(\"\");\r\n\t\tmCVVNoValue.setHint(\"CVV\");\r\n\t}", "public void setDescription(String description) {\n _description = description;\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder clearDESCRIPTION() {\n DESCRIPTION = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "private void clearText() {\n \n text_ = getDefaultInstance().getText();\n }", "private void clear() {\n\t\ttxtId.setText(\"\");\n\t\ttxtAlert.setText(\"\");\n\t\ttxtNbMax.setText(\"\");\n\t\t\n\t}", "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$2);\n }\n target.set(description);\n }\n }", "public Builder clearDescribe() {\n bitField0_ = (bitField0_ & ~0x00000008);\n describe_ = getDefaultInstance().getDescribe();\n \n return this;\n }", "@Override\n public void clearCategoryOtherEditTextField() {\n mEditTextProductCategoryOther.setText(\"\");\n }", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description){this.description=description;}", "public void setDescription(String _description) {\n this._description = _description;\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.set(description);\n }\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }" ]
[ "0.81080943", "0.78220886", "0.7757636", "0.773967", "0.773967", "0.7699203", "0.76673955", "0.76673955", "0.76628035", "0.7655848", "0.7645897", "0.7644769", "0.76415503", "0.7613416", "0.74944824", "0.7250103", "0.7059184", "0.7058171", "0.7058171", "0.7058171", "0.7041162", "0.6994327", "0.6968356", "0.69677573", "0.69677573", "0.69677573", "0.69677573", "0.69677573", "0.69677573", "0.69677573", "0.6917522", "0.6893523", "0.6849129", "0.6823469", "0.67461795", "0.6678549", "0.6621333", "0.6619857", "0.6610518", "0.6603687", "0.6583205", "0.6533962", "0.6499485", "0.6494988", "0.64857525", "0.6475611", "0.6473551", "0.6470304", "0.6466122", "0.6466122", "0.6462642", "0.6462287", "0.6461989", "0.6444394", "0.64383584", "0.6429326", "0.6429326", "0.6429326", "0.6429326", "0.6429326", "0.6420396", "0.6420396", "0.6416805", "0.6413294", "0.6413267", "0.6411052", "0.64013064", "0.63964546", "0.6391918", "0.6390821", "0.63905495", "0.63901997", "0.6387671", "0.6387361", "0.6386932", "0.6380849", "0.6380089", "0.6380089", "0.6380089", "0.6380089", "0.6380089", "0.6380089", "0.6380089", "0.63719434", "0.63669616", "0.63657", "0.6358806", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134", "0.63564134" ]
0.70346385
21
Gets the value of the 'severity' field
public java.lang.String getSeverity() { return severity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getSeverity() {\n return severity;\n }", "int getSeverityValue();", "public int getSeverityValue() {\n return severity_;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverityValue() {\n return severity_;\n }", "public String getSeverity() {\n return severity.toString().toLowerCase(Locale.US);\n }", "String getSeverity();", "public String getSeverity() { \n\t\treturn getSeverityElement().getValue();\n\t}", "public Type getSeverity() {\n return severity;\n }", "public SeverityEnum getSeverity() {\n return severity;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public AlertSeverity severity() {\n return this.innerProperties() == null ? null : this.innerProperties().severity();\n }", "org.apache.calcite.avatica.proto.Common.Severity getSeverity();", "public LogLevel getSeverity() {\r\n\t\treturn level;\r\n\t}", "public int getSeverity() {\n return current.getSeverity();\n }", "public int getSeverity() {\n\t\treturn adaptee.getSeverity();\n\t}", "public void setSeverity(java.lang.String value) {\n this.severity = value;\n }", "public String getStrSeverityCode() {\r\n return strSeverityCode;\r\n }", "public final twogapplicationinsights.proxies.SeverityLevel getSeverity()\n\t{\n\t\treturn getSeverity(getContext());\n\t}", "public Map<FacesMessage.Severity, String> getSeverityName() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<FacesMessage.Severity, String>() {\n @Override\n public String get(Object key) {\n final FacesMessage.Severity severity = (FacesMessage.Severity) key;\n if (FacesMessage.SEVERITY_ERROR.equals(severity)) {\n return \"error\";\n } else if (FacesMessage.SEVERITY_FATAL.equals(severity)) {\n return \"fatal\";\n } else if (FacesMessage.SEVERITY_INFO.equals(severity)) {\n return \"info\";\n } else if (FacesMessage.SEVERITY_WARN.equals(severity)) {\n return \"warn\";\n } else {\n return \"\";\n }\n }\n });\n }", "public BoundCodeDt<ConstraintSeverityEnum> getSeverityElement() { \n\t\tif (mySeverity == null) {\n\t\t\tmySeverity = new BoundCodeDt<ConstraintSeverityEnum>(ConstraintSeverityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn mySeverity;\n\t}", "public void setSeverity(int severity) {\n this.severity = severity;\n }", "public boolean hasSeverity() {\n return fieldSetFlags()[2];\n }", "public int getSeverity() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.telephony.SmsCbCmasInfo.getSeverity():int, dex: in method: android.telephony.SmsCbCmasInfo.getSeverity():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.getSeverity():int\");\n }", "public java.lang.String getErrorLevel() {\n return errorLevel;\n }", "private Priority getPriority(final String severity) {\n\t\tif (SEVERITY_FATAL.equalsIgnoreCase(severity) || SEVERITY_ERROR.equalsIgnoreCase(severity)) {\n\t\t\treturn Priority.HIGH;\n\t\t}\n\t\tif (SEVERITY_WARNING.equalsIgnoreCase(severity) || SEVERITY_WARN.equalsIgnoreCase(severity)) {\n\t\t\treturn Priority.NORMAL;\n\t\t}\n\t\tif (SEVERITY_INFORMATIONAL.equalsIgnoreCase(severity) || SEVERITY_INFO.equalsIgnoreCase(severity)) {\n\t\t\treturn Priority.LOW;\n\t\t}\n\t\treturn Priority.NORMAL;\n\t}", "public tech.hry.logclient.grpc.LogLevel getLevel() {\n @SuppressWarnings(\"deprecation\")\n tech.hry.logclient.grpc.LogLevel result = tech.hry.logclient.grpc.LogLevel.valueOf(level_);\n return result == null ? tech.hry.logclient.grpc.LogLevel.UNRECOGNIZED : result;\n }", "private String getSeverityImage(Object severity)\n/* */ {\n/* 125 */ if (severity == null)\n/* */ {\n/* 127 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.unknown\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 129 */ if (severity.equals(\"1\"))\n/* */ {\n/* 131 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_critical.gif\\\" alt=\\\"Critical\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.critical\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 133 */ if (severity.equals(\"4\"))\n/* */ {\n/* 135 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_warning.gif\\\" alt=\\\"Warning\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.warning\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 137 */ if (severity.equals(\"5\"))\n/* */ {\n/* 139 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_clear.gif\\\" alt=\\\"Clear\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.clear\") + \"\\\" align=\\\"absmiddle\\\" >\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 144 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"Unknown\\\" align=\\\"absmiddle\\\">\";\n/* */ }", "public tech.hry.logclient.grpc.LogLevel getLevel() {\n @SuppressWarnings(\"deprecation\")\n tech.hry.logclient.grpc.LogLevel result = tech.hry.logclient.grpc.LogLevel.valueOf(level_);\n return result == null ? tech.hry.logclient.grpc.LogLevel.UNRECOGNIZED : result;\n }", "@Override\r\n\tpublic Severity getSeverityBySeverityId(int severityId) {\n\t\ttry{\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<Severity> list = getSessionFactory().getCurrentSession()\r\n\t\t\t.createQuery(\"from Severity where SEVERITY_ID=?\")\r\n\t\t\t.setParameter(0, severityId).list();\r\n\t\t\tif(list!=null&& list.size()>0){\r\n\r\n\t\t\t\treturn list.get(0);\r\n\t\t\t}\r\n\t\t}catch(HibernateException ex){\r\n\t\t\tex.printStackTrace();// logger.error(ex.getMessage(),ex);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private String getSeverityImage(Object severity)\n/* */ {\n/* 119 */ if (severity == null)\n/* */ {\n/* 121 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.unknown\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 123 */ if (severity.equals(\"1\"))\n/* */ {\n/* 125 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_critical.gif\\\" alt=\\\"Critical\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.critical\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 127 */ if (severity.equals(\"4\"))\n/* */ {\n/* 129 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_warning.gif\\\" alt=\\\"Warning\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.warning\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 131 */ if (severity.equals(\"5\"))\n/* */ {\n/* 133 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_clear.gif\\\" alt=\\\"Clear\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.clear\") + \"\\\" align=\\\"absmiddle\\\" >\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 138 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"Unknown\\\" align=\\\"absmiddle\\\">\";\n/* */ }", "public java.lang.String getErrorLevel() {\n return errorLevel;\n }", "int getCauseValue();", "private String getSeverityImage(Object severity)\n/* */ {\n/* 116 */ if (severity == null)\n/* */ {\n/* 118 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.unknown\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 120 */ if (severity.equals(\"1\"))\n/* */ {\n/* 122 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_critical.gif\\\" alt=\\\"Critical\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.critical\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 124 */ if (severity.equals(\"4\"))\n/* */ {\n/* 126 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_warning.gif\\\" alt=\\\"Warning\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.warning\") + \"\\\" align=\\\"absmiddle\\\">\";\n/* */ }\n/* 128 */ if (severity.equals(\"5\"))\n/* */ {\n/* 130 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_clear.gif\\\" alt=\\\"Clear\\\" title=\\\"\" + FormatUtil.getString(\"am.webclient.hometab.monitorssnapshot.key.clear\") + \"\\\" align=\\\"absmiddle\\\" >\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 135 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_unknown_status.gif\\\" alt=\\\"Unknown\\\" title=\\\"Unknown\\\" align=\\\"absmiddle\\\">\";\n/* */ }", "public void onSeveritySelected(TriggerSeverity severity);", "public String getLevel() {\n return getAttribute(ATTRIBUTE_LEVEL);\n }", "public int getLevelValue() {\n return level_;\n }", "public int get_log_level() {\r\n return logLevel;\r\n }", "public static int getLevel(){\n\treturn logLevel;\n }", "public Builder setSeverity(org.apache.calcite.avatica.proto.Common.Severity value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n severity_ = value.getNumber();\n onChanged();\n return this;\n }", "public Integer getRiskWarning() {\n return riskWarning;\n }", "public int getLevelValue() {\n return level_;\n }", "Collection<? extends Integer> getHasInjurySeverity();", "public Level getThreshold() {\n\t\treturn this.hierarchy.getThreshold();\n\t}", "public String getLogLvlCd() {\n if (null == logLvlCd) {\n logLvlCd = \"ERROR\" ;\n } \n return logLvlCd;\n }", "public String reliabilityLevel() {\n return this.reliabilityLevel;\n }", "public String getInspectionLevel() {\n return this.inspectionLevel;\n }", "public int getLevel ( ) {\n\t\treturn extract ( handle -> handle.getLevel ( ) );\n\t}", "public final String getLevel() {\n return this.level;\n }", "public static Severity_MIL_STD_882D get(int value) {\n\t\tswitch (value) {\n\t\t\tcase NEGLIGIBLE_IV_VALUE: return NEGLIGIBLE_IV;\n\t\t\tcase MARGINAL_III_VALUE: return MARGINAL_III;\n\t\t\tcase CRITICAL_II_VALUE: return CRITICAL_II;\n\t\t\tcase CATASTROPHIC_I_VALUE: return CATASTROPHIC_I;\n\t\t}\n\t\treturn null;\n\t}", "public Builder setSeverityValue(int value) {\n severity_ = value;\n onChanged();\n return this;\n }", "public int getLevel()\n\t{\n\t\treturn this.value;\n\t}", "public CWE getProductServiceLineItemStatus() { \r\n\t\tCWE retVal = this.getTypedField(6, 0);\r\n\t\treturn retVal;\r\n }", "public String getLevel() {\n return level;\n }", "public String getLevel(){\n\t\treturn level;\n\t}", "private String getSeverityClass(int status)\n/* */ {\n/* 611 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 617 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 620 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 623 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 626 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 629 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 632 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "private String getSeverityClass(int status)\n/* */ {\n/* 602 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 605 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 608 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 611 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 617 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 620 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 623 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "public String getLevel()\n {\n return level;\n }", "public graphene.model.idl.G_DocumentError.Builder setSeverity(java.lang.String value) {\n validate(fields()[2], value);\n this.severity = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "private String getSeverityClass(int status)\n/* */ {\n/* 605 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 608 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 611 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 617 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 620 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 623 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 626 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "public static LogLevel getLevel(){\n return EZLoggerManager.lvl;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "public String getLevel() {\n\t\treturn level;\n\t}", "public int getAlertPriority()\n {\n return this.alert_priority;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "public String getHospitalLevel() {\n return hospitalLevel;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "private String getSeverityImageForHealth(String severity)\n/* */ {\n/* 254 */ if (severity == null)\n/* */ {\n/* 256 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 258 */ if (severity.equals(\"5\"))\n/* */ {\n/* 260 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 262 */ if (severity.equals(\"4\"))\n/* */ {\n/* 264 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 266 */ if (severity.equals(\"1\"))\n/* */ {\n/* 268 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 273 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }", "public short getJursdLvl() {\n return jursdLvl;\n }", "int getGoalConfigLevelValue();", "private String getSeverityImageForHealth(String severity)\n/* */ {\n/* 248 */ if (severity == null)\n/* */ {\n/* 250 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 252 */ if (severity.equals(\"5\"))\n/* */ {\n/* 254 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 256 */ if (severity.equals(\"4\"))\n/* */ {\n/* 258 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 260 */ if (severity.equals(\"1\"))\n/* */ {\n/* 262 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 267 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }", "private String getSeverityImageForHealth(String severity)\n/* */ {\n/* 245 */ if (severity == null)\n/* */ {\n/* 247 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 249 */ if (severity.equals(\"5\"))\n/* */ {\n/* 251 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_clear.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 253 */ if (severity.equals(\"4\"))\n/* */ {\n/* 255 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_warning.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* 257 */ if (severity.equals(\"1\"))\n/* */ {\n/* 259 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_critical.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 264 */ return \"<img border=\\\"0\\\" src=\\\"/images/icon_health_unknown.gif\\\" name=\\\"Image\" + ++this.j + \"\\\">\";\n/* */ }", "public String getLevel() {\n return this.level;\n }", "public int getLogLevel() {\n return logLevel;\n }", "public Constraint setSeverity(BoundCodeDt<ConstraintSeverityEnum> theValue) {\n\t\tmySeverity = theValue;\n\t\treturn this;\n\t}", "public int getLogLevel() {\n\t\treturn this.logLevel;\n\t}", "public static int getLevel()\n {\n return level;\n }", "public static int getLevel()\r\n\t{\r\n\t\treturn level;\r\n\t}", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "@ErrorType\n public int getErrorType() {\n return mErrorType;\n }", "public static Severity_MIL_STD_882D get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tSeverity_MIL_STD_882D result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getLevel ()\n {\n return level;\n }", "public int getErrorLevel() {\n\t\treturn this.errorLevel;\n\t}", "public int getLevel() {\n \treturn this.level;\n }", "public static int getLevel() {\n return level;\n }" ]
[ "0.8256842", "0.82066655", "0.81810546", "0.810131", "0.810131", "0.8086796", "0.80496264", "0.8006802", "0.7998156", "0.79936475", "0.77797675", "0.7770309", "0.7764867", "0.7475344", "0.7463455", "0.7440347", "0.74278116", "0.73116547", "0.7011826", "0.67769927", "0.677642", "0.6588559", "0.6568798", "0.6488141", "0.6260267", "0.5790567", "0.5710793", "0.56892294", "0.56653655", "0.56538707", "0.56454235", "0.5630379", "0.562184", "0.56181586", "0.5600625", "0.5593117", "0.55867845", "0.5537434", "0.5516686", "0.551593", "0.5501846", "0.54817736", "0.54663765", "0.5464467", "0.5449809", "0.5445517", "0.54333055", "0.5402457", "0.54024196", "0.5400634", "0.53900915", "0.536785", "0.5367817", "0.5353654", "0.53325206", "0.5328697", "0.53286755", "0.53028536", "0.52963024", "0.5293957", "0.5284892", "0.5282231", "0.5282231", "0.5282231", "0.5282231", "0.5282231", "0.5279007", "0.52749085", "0.52687246", "0.526675", "0.526675", "0.52513343", "0.5246934", "0.52364635", "0.52364635", "0.52328604", "0.5227971", "0.5227971", "0.5227971", "0.5227971", "0.5227971", "0.52195174", "0.5218108", "0.5217445", "0.5212631", "0.52014303", "0.5192247", "0.5189986", "0.517258", "0.5165091", "0.5164422", "0.5163918", "0.5160705", "0.5160705", "0.5157232", "0.51556885", "0.5149546", "0.51486444", "0.514619", "0.5143666" ]
0.81713986
3
Sets the value of the 'severity' field
public graphene.model.idl.G_DocumentError.Builder setSeverity(java.lang.String value) { validate(fields()[2], value); this.severity = value; fieldSetFlags()[2] = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeverity(java.lang.String value) {\n this.severity = value;\n }", "public void setSeverity(int severity) {\n this.severity = severity;\n }", "public final void setSeverity(twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tsetSeverity(getContext(), severity);\n\t}", "public final void setSeverity(com.mendix.systemwideinterfaces.core.IContext context, twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tif (severity != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), severity.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), null);\n\t}", "public Builder setSeverityValue(int value) {\n severity_ = value;\n onChanged();\n return this;\n }", "public void setSeverity(TriggerSeverity severity) {\n\t\tmSeverityListPagerAdapter.setCurrentPosition(severity.getPosition());\n\t}", "public void setOpLevel(OpLevel severity) {\n\t\topLevel = severity;\n\t}", "public Builder setSeverity(org.apache.calcite.avatica.proto.Common.Severity value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n severity_ = value.getNumber();\n onChanged();\n return this;\n }", "public Constraint setSeverity(BoundCodeDt<ConstraintSeverityEnum> theValue) {\n\t\tmySeverity = theValue;\n\t\treturn this;\n\t}", "public int getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverityValue() {\n return severity_;\n }", "public Constraint setSeverity(ConstraintSeverityEnum theValue) {\n\t\tgetSeverityElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}", "public int getSeverityValue() {\n return severity_;\n }", "public void onSeveritySelected(TriggerSeverity severity);", "public Type getSeverity() {\n return severity;\n }", "public java.lang.String getSeverity() {\n return severity;\n }", "public java.lang.String getSeverity() {\n return severity;\n }", "public SeverityEnum getSeverity() {\n return severity;\n }", "int getSeverityValue();", "public void setIncidentSeverity(int incidentSeverity) {\n\t\t\tthis.incidentSeverity = incidentSeverity;\r\n\t\t}", "void addHasInjurySeverity(Integer newHasInjurySeverity);", "String getSeverity();", "public LogLevel getSeverity() {\r\n\t\treturn level;\r\n\t}", "public String getSeverity() {\n return severity.toString().toLowerCase(Locale.US);\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setMinimumLevel(ErrorLevel el);", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public void setLevel(String level);", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "@POST(\"/setAlertLevel\")\n\tint setAlertLevel(@Body AlertLevelParams params);", "public void setStrSeverityCode(String strSeverityCode) {\r\n this.strSeverityCode = strSeverityCode;\r\n }", "public void setValidationLevel(int value) {\n this.validationLevel = value;\n }", "public static void log(int severity, String message)\n {\n log(severity, message, null);\n }", "private void changeLogLevel(String level){\n\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "org.apache.calcite.avatica.proto.Common.Severity getSeverity();", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setErrorLevel(java.lang.String value) {\n validate(fields()[5], value);\n this.errorLevel = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public void setPriority (int level)\n\t{\n\tthis.level = level;\n\n\tif (level == 1)\n\tpriority = \"Critical\";\n\tif (level == 2)\n\tpriority = \"Very Important\";\n\tif (level == 3)\n\tpriority = \"Normal\";\n\tif (level == 4)\n\tpriority = \"Low\";\n\tif (level == 5)\n\tpriority = \"Not Important\";\n\t}", "public void setLevel(int value) {\n this.level = value;\n }", "@Override\n public RfLintRule configure(final RfLintViolationSeverity severity) {\n return super.configure(severity == null ? RfLintViolationSeverity.ERROR : severity);\n }", "public NrtAlertRule withSeverity(AlertSeverity severity) {\n if (this.innerProperties() == null) {\n this.innerProperties = new NrtAlertRuleProperties();\n }\n this.innerProperties().withSeverity(severity);\n return this;\n }", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public void setPriority(int newPriority)throws Exception{\n\t\t\n\t\tif (newPriority >= 0){\n\t\t\tthis.priority = newPriority;\n\t\t\tString txt = Integer.toString(newPriority);\n\t\t\toverWriteLine(\"Priority\", txt);\n\t\t}\n\t\n\t}", "public AlertSeverity severity() {\n return this.innerProperties() == null ? null : this.innerProperties().severity();\n }", "public Builder clearSeverity() {\n \n severity_ = 0;\n onChanged();\n return this;\n }", "public DefaultLoggerBridge(int severity) {\n\t\tthis.severity = severity;\n\t}", "public String getSeverity() { \n\t\treturn getSeverityElement().getValue();\n\t}", "@SuppressWarnings(\"hiding\")\n @Override\n public void setThreshold(String threshold) {\n this.threshold = Float.parseFloat(threshold);\n }", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tscoreToSeverity.put(0, Severity.Low);\n\t\tscoreToSeverity.put(medium, Severity.Medium);\n\t\tscoreToSeverity.put(high, Severity.High);\n\t\tscoreToSeverity.put(critical, Severity.Critical);\n\t}", "public void setLevel(int v)\n {\n m_level = v;\n }", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public graphene.model.idl.G_DocumentError.Builder clearSeverity() {\n severity = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "public void setLevel ( int level ) {\n\t\texecute ( handle -> handle.setLevel ( level ) );\n\t}", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public boolean hasSeverity() {\n return fieldSetFlags()[2];\n }", "public void setConfidenceLevel (double confidenceLevel)\n {\n this.confidenceLevel = confidenceLevel;\n \n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public int getSeverity() {\n\t\treturn adaptee.getSeverity();\n\t}", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void evel_threshold_cross_alertvalue_set(String sheader)\r\n\t {\r\n\t\t EVEL_ENTER();\r\n\r\n\t\t /***************************************************************************/\r\n\t\t /* Check preconditions. */\r\n\t\t /***************************************************************************/\r\n\t\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t\t \r\n\t\t assert(sheader != null);\r\n\r\n\t\t alertValue.SetValuePr(\r\n\t\t sheader,\r\n\t\t \"Alert value\");\r\n\t\t EVEL_EXIT();\r\n\t }", "public int getSeverity() {\n return current.getSeverity();\n }", "public void setLevel(String value) {\n this.level = value;\n }", "public static void setLogLevel(int level) {\n mLogLevel = level;\n }", "public void setLogLevel(int logLevel) {\n\t\tif(logLevel > 5 || logLevel < 0) \n\t\t\tthrow new IllegalArgumentException(\"invalid parameter logLevel, please use Logger's static level constant.\");\n\t\tmLogLevel = logLevel;\n\t}", "static public void setLevel( byte level ) {\n Debug.level=level;\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "TraceLevel(int i) {\n this.level = i;\n }", "private Severity(String strSeverityCode) {\r\n this.strSeverityCode = strSeverityCode;\r\n }", "public void setThreshold(String level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "public void setLevel(int level) {\n if (level < 1)\n throw new IllegalArgumentException(\"Cannot be a level less than 0\");\n\n this.level = level;\n }", "protected void setLogLevel(int logLevel) \n\t{\n\t\tthis.logLevel = logLevel;\n\t}", "public void setLoggerLevel(TraceLevel level) {\n\t\t//Topology.STREAMS_LOGGER.setLevel(level);\t\t\n\t\t//Topology.TOPOLOGY_LOGGER.setLevel(level); \n\t\tgetConfig().put(ContextProperties.TRACING_LEVEL, java.util.logging.Level.FINE);\t\t\n\t\tSystem.out.println(\"Streams topology logger level: \" + Topology.TOPOLOGY_LOGGER.getLevel());\n\t\t\n\t}", "public int setPriorityLevel(String storageIdentifier, String levelValue) {\n \t\t\n \t\tList<MessageResource> resources = getIWMainApplication().getMessageFactory().getResourceListByStorageIdentifier(storageIdentifier);\n \t\tfor(MessageResource resource : resources) {\n \t\t\tresource.setLevel(MessageResourceImportanceLevel.getLevel(Integer.parseInt(levelValue)));\n \t\t}\n \t\tELUtil.getInstance().publishEvent(new ResourceLevelChangeEvent(this));\n \t\treturn SUCCESS;\n \t}", "public void setThreshold(int aThreshold) {\n if(0 <= threshold && threshold <= 100) {\n threshold = aThreshold;\n } else {\n throw new IllegalArgumentException(\"Threshold must be in the interval <1..100> inclusive. Actual Value: \" + aThreshold);\n } \n }", "public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "private void setPriority(final Integer priority) {\n Story story = (Story) getTableRow().getItem();\n if (priority != null) {\n try {\n getModel().changeStoryPriority(story, priority);\n }\n catch (CustomException e) {\n addFormError(textField, \"{NanError}\");\n }\n }\n else {\n changeStoryStateToNone(story, () -> {\n try {\n getModel().changeStoryPriority(story, null);\n } catch (CustomException e) {\n ErrorReporter.get().reportError(e, \"Failed to set priority\");\n }\n });\n }\n }", "public String getStrSeverityCode() {\r\n return strSeverityCode;\r\n }", "void setThreshold(float value);", "private synchronized static void setLevelSync(final Logger.LEVEL desiredLevel) {\n if (null == desiredLevel) {\n return;\n }\n level = desiredLevel;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n prefs.edit ().putString (SHARED_PREF_KEY_level, level.toString ()).commit();\n // we still processed the setCapture call, but when SHARED_PREF_KEY_level_from_server is present, it is used for the level field value (it's an override)\n level = Logger.LEVEL.fromString(prefs.getString(SHARED_PREF_KEY_level_from_server, level.toString()));\n }\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "void setStatCategory (String statistic);", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }", "public static void setLevel(final String logLevel) {\r\n\t\tif (logLevel.equalsIgnoreCase(\"FATAL\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_FATAL);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"ERROR\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_ERROR);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"WARN\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_WARN);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"INFO\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_INFO);\r\n\t\t} else if (logLevel.equalsIgnoreCase(\"DEBUG\")) {\r\n\t\t\tServletLoggingOutput.setLevel(LoggingOutput.LEVEL_DEBUG);\r\n\t\t} else {\r\n\t\t\tthrow new IllegalArgumentException(\"Unknown log level: \" + logLevel);\r\n\t\t}\r\n\t}", "public void setLogLevel(int level) {\n\t\t// only change if a valid level\n\t\tif (isValidLogLevel(level)) this.logLevel = level;\n\t}", "public void setLogLevel(int level) {\n logLevel = level;\n }", "public static void log(int severity, String message, Throwable e)\n {\n ILog log = plugin != null? plugin.getLog() : Platform.getLog(FrameworkUtil.getBundle(PluginConsistencyActivator.class));\n log = log != null? log : IDEWorkbenchPlugin.getDefault().getLog();\n\n log.log(new Status(severity, PLUGIN_ID, message, e));\n }", "public void setThreshold(Level level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}", "public void setLevel(Level level) { this.currentLevel = level; }", "public void setFoodLevel ( int value ) {\n\t\texecute ( handle -> handle.setFoodLevel ( value ) );\n\t}" ]
[ "0.8257548", "0.78624594", "0.74744797", "0.71722233", "0.70800936", "0.6929827", "0.68065304", "0.6790702", "0.6498682", "0.6414979", "0.6414979", "0.6341724", "0.62956905", "0.6285892", "0.6264724", "0.6210765", "0.62039816", "0.6149463", "0.59819716", "0.5939207", "0.5865892", "0.585718", "0.57100856", "0.5693473", "0.5578675", "0.5577279", "0.55771273", "0.5549739", "0.5540094", "0.55076367", "0.5492689", "0.5485174", "0.54330844", "0.5409774", "0.53929794", "0.5392065", "0.5375383", "0.5325104", "0.5323147", "0.5303999", "0.5303674", "0.53012", "0.5287654", "0.5283835", "0.52572674", "0.5253751", "0.52534723", "0.5245789", "0.5237599", "0.52037066", "0.51891816", "0.5188864", "0.5176237", "0.5173302", "0.5158716", "0.51572895", "0.5145343", "0.5125663", "0.51012033", "0.50993645", "0.5097738", "0.50934017", "0.507303", "0.50542825", "0.5053558", "0.505089", "0.5044777", "0.5038606", "0.5036564", "0.5027469", "0.5025314", "0.5004008", "0.5000723", "0.4997503", "0.4966151", "0.49629253", "0.4956677", "0.4954009", "0.49533984", "0.4938973", "0.49264416", "0.49160793", "0.49124962", "0.49114248", "0.49026495", "0.49026495", "0.49026495", "0.49026495", "0.49026495", "0.49023554", "0.4900171", "0.48957932", "0.48844165", "0.4883893", "0.4883462", "0.4878407", "0.48734725", "0.48731998", "0.48687816", "0.48582447" ]
0.72491294
3
Checks whether the 'severity' field has been set
public boolean hasSeverity() { return fieldSetFlags()[2]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeverity(int severity) {\n this.severity = severity;\n }", "public void setSeverity(java.lang.String value) {\n this.severity = value;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "public Type getSeverity() {\n return severity;\n }", "String getSeverity();", "private boolean hasIssuesOfSeverity(final Severity severity) {\n boolean result = false;\n if (((this.issues == null) && (!this.scannedForIssues))) {\n final XtextResource xtextResource = this.getXtextResource();\n if ((xtextResource != null)) {\n this.issues = LemmaUiUtils.validateXtextResource(xtextResource);\n } else {\n result = false;\n }\n this.scannedForIssues = true;\n }\n if ((this.issues != null)) {\n final Function1<Issue, Boolean> _function = (Issue it) -> {\n Severity _severity = it.getSeverity();\n return Boolean.valueOf((_severity == severity));\n };\n result = IterableExtensions.<Issue>exists(this.issues, _function);\n } else {\n result = false;\n }\n return result;\n }", "public java.lang.String getSeverity() {\n return severity;\n }", "public SeverityEnum getSeverity() {\n return severity;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public java.lang.String getSeverity() {\n return severity;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public int getSeverityValue() {\n return severity_;\n }", "public AlertSeverity severity() {\n return this.innerProperties() == null ? null : this.innerProperties().severity();\n }", "public int getSeverityValue() {\n return severity_;\n }", "int getSeverityValue();", "public boolean hasErrorLevel() {\n return fieldSetFlags()[5];\n }", "boolean hasHasInjurySeverity();", "org.apache.calcite.avatica.proto.Common.Severity getSeverity();", "public boolean isReportedSevere() {\n if (\"1\".equals(originalPriority.getId()) || \"2\".equals(originalPriority.getId())) {\n return true;\n }\n\n return false;\n }", "public void checkThreshold() {\n List<Metric> metrics = getMetrics();\n boolean isFail = false;\n for (Iterator<Metric> mit = metrics.iterator(); mit.hasNext();) {\n Metric m = (Metric) mit.next();\n logMetric(m);\n if (m.getResult() == MetricResult.METRIC_FAIL\n || m.getResult() == MetricResult.METRIC_NOTRUN) {\n isFail = true;\n }\n // Update the threshold when the metrics is success. or the metrics\n // is no need to check\n if (m.getResult() == MetricResult.METRIC_SUCCESS\n || m.getResult() == MetricResult.METRIC_NOCHECK\n || m.getResult() == MetricResult.METRIC_NULL) {\n try {\n updateThreshold(m.getName(), m.getNewValue());\n } catch (Exception e) {\n // TODO: should we throw other exception when failed to\n // update threshold?\n isFail = true;\n }\n }\n }\n if (isFailOnError() && isFail) {\n throw new BuildException(\"Metics check failed\");\n }\n }", "private void checkLogLevel() {\n config.getString(\"log_level\");\n }", "protected boolean checkForMarkers(ISubmissionProject project, \n String type, int severity) {\n boolean found = false;\n if (null != project) {\n IMarker[] marker = project.getMarker(type, \n true, IResource.DEPTH_INFINITE);\n if (null != marker) {\n for (int i = marker.length - 1; !found && i >= 0; i--) {\n try {\n Object sev = marker[i].getAttribute(IMarker.SEVERITY);\n found = null != sev && Integer.parseInt(sev.toString()) \n == severity;\n } catch (CoreException e) {\n } catch (NumberFormatException e) {\n }\n }\n }\n }\n return found;\n }", "public String getSeverity() {\n return severity.toString().toLowerCase(Locale.US);\n }", "public void onSeveritySelected(TriggerSeverity severity);", "public LogLevel getSeverity() {\r\n\t\treturn level;\r\n\t}", "public final void setSeverity(com.mendix.systemwideinterfaces.core.IContext context, twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tif (severity != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), severity.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), null);\n\t}", "public boolean isReportedNonSevere() {\n if (\"4\".equals(originalPriority.getId()) || \"5\".equals(originalPriority.getId())) {\n return true;\n }\n\n return false;\n }", "public String getSeverity() { \n\t\treturn getSeverityElement().getValue();\n\t}", "public int getSeverity() {\n\t\treturn adaptee.getSeverity();\n\t}", "public final void setSeverity(twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tsetSeverity(getContext(), severity);\n\t}", "@Override\n\tpublic boolean hasStyleIssues() {\n\t\treturn sheets.hasErrorsOrWarnings() || getErrorHandler().hasErrors() || getErrorHandler().hasWarnings();\n\t}", "public boolean hasErrorInfo() {\n return fieldSetFlags()[4];\n }", "public graphene.model.idl.G_DocumentError.Builder setSeverity(java.lang.String value) {\n validate(fields()[2], value);\n this.severity = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public int getSeverity() {\n return current.getSeverity();\n }", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "@Override\n public boolean isLoggable(Class<?> callerClass, TechnicalLogSeverity severity) {\n return false;\n }", "public boolean isSetImportance() {\n return EncodingUtils.testBit(__isset_bitfield, __IMPORTANCE_ISSET_ID);\n }", "public void setOpLevel(OpLevel severity) {\n\t\topLevel = severity;\n\t}", "public Boolean hasErrors() {\n if ((this.hasErrors == null)) {\n this.hasErrors = Boolean.valueOf(this.hasIssuesOfSeverity(Severity.ERROR));\n }\n return this.hasErrors;\n }", "public Builder setSeverity(org.apache.calcite.avatica.proto.Common.Severity value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n severity_ = value.getNumber();\n onChanged();\n return this;\n }", "public Builder setSeverityValue(int value) {\n severity_ = value;\n onChanged();\n return this;\n }", "public void setSeverity(TriggerSeverity severity) {\n\t\tmSeverityListPagerAdapter.setCurrentPosition(severity.getPosition());\n\t}", "private boolean onErrorLevel(int level) {\n if (status() >= level) {\n System.err.println(\"Compilation error(s) found.\");\n return true;\n } else {\n return false;\n }\n }", "@Override\n public RfLintRule configure(final RfLintViolationSeverity severity) {\n return super.configure(severity == null ? RfLintViolationSeverity.ERROR : severity);\n }", "void addHasInjurySeverity(Integer newHasInjurySeverity);", "public BoundCodeDt<ConstraintSeverityEnum> getSeverityElement() { \n\t\tif (mySeverity == null) {\n\t\t\tmySeverity = new BoundCodeDt<ConstraintSeverityEnum>(ConstraintSeverityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn mySeverity;\n\t}", "public graphene.model.idl.G_DocumentError.Builder clearSeverity() {\n severity = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "boolean isSetComplianceCheckResult();", "public void validate() throws org.apache.thrift.TException {\n if (levelInfo != null) {\r\n levelInfo.validate();\r\n }\r\n }", "boolean hasWarnings();", "public void setIncidentSeverity(int incidentSeverity) {\n\t\t\tthis.incidentSeverity = incidentSeverity;\r\n\t\t}", "public boolean hasFieldErrors();", "private void checkAttributes() throws JellyTagException\n {\n if (getField() == null)\n {\n throw new MissingAttributeException(\"field\");\n }\n if (getVar() == null)\n {\n if (!(getParent() instanceof ValueSupport))\n {\n throw new JellyTagException(\n \"No target for the resolved value: \"\n + \"Specify the var attribute or place the tag \"\n + \"in the body of a ValueSupport tag.\");\n }\n }\n }", "@JsonIgnore\n public boolean isMigrationHealthinessThresholdSet() { return isSet.contains(\"migrationHealthinessThreshold\"); }", "public boolean isSetErrors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ERRORS$4) != 0;\r\n }\r\n }", "public void check() throws XMLBuildException {\r\n\t\tif (this.attribute == null) \r\n\t\t\tthrow new XMLBuildException(\"you must set the attribute\", this);\r\n\t}", "boolean check (Env env) {\n if (Env.find (env, nameOfVar) != null) {\n return true;\n } else {\n System.err.println (\"Semantic error: The variable \\\"\" \n + nameOfVar + \"\\\" was used but was not declared!\");\n return false;\n }\n }", "protected void assertStatus(int severity, String msgFragment, IStatus status) {\n assertEquals(severity, status.getSeverity());\n \t\tassertTrue(\"Unexpected message: \"+status.getMessage(), status.getMessage().contains(msgFragment));\n \t}", "public Builder clearSeverity() {\n \n severity_ = 0;\n onChanged();\n return this;\n }", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasErrorInCounty() {\n\n return (this.getCountyFeature() == null) ? false : true;\n }", "public Constraint setSeverity(BoundCodeDt<ConstraintSeverityEnum> theValue) {\n\t\tmySeverity = theValue;\n\t\treturn this;\n\t}", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void validateUIStatus() {\n\n boolean timeZoneCheck = false, timeFormatCheck = false, fetchTimeCheck = false, statusPathCheck = false;\n\n if (!timeZone.getText().isEmpty()) {\n timeZoneCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Time zone should not be Empty.\\n\");\n }\n if (!statusPath.getText().isEmpty()) {\n statusPathCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Status File should not be empty.\\n\");\n }\n if (!fetchTime.getText().isEmpty()) {\n fetchTimeCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". UI Refresh Time should not be empty.\\n\");\n }\n if (!timeFormat.getText().isEmpty()) {\n timeFormatCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". UI Date & Time format should not be Empty.\\n\");\n }\n\n if (timeFormatCheck == true && timeZoneCheck == true && fetchTimeCheck == true && statusPathCheck == true) {\n uiStatusCheck = true;\n } else {\n\n uiStatusCheck = false;\n timeZoneCheck = false;\n timeFormatCheck = false;\n fetchTimeCheck = false;\n statusPathCheck = false;\n }\n }", "public void setValidationLevel(int value) {\n this.validationLevel = value;\n }", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean logWarnings()\r\n {\r\n return warningLevelHandler.getBoolean();\r\n }", "public boolean logErrors()\r\n {\r\n return errorLevelHandler.getBoolean();\r\n }", "public void testSetSubmissionStatus() {\n try {\n sub.setSubmissionStatus(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }", "public boolean isSetErrors() {\n return this.errors != null;\n }", "public boolean isSetLevelInfo() {\r\n return this.levelInfo != null;\r\n }", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetMaritalStatusCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MARITALSTATUSCODE$14) != 0;\n }\n }", "public Map<FacesMessage.Severity, String> getSeverityName() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<FacesMessage.Severity, String>() {\n @Override\n public String get(Object key) {\n final FacesMessage.Severity severity = (FacesMessage.Severity) key;\n if (FacesMessage.SEVERITY_ERROR.equals(severity)) {\n return \"error\";\n } else if (FacesMessage.SEVERITY_FATAL.equals(severity)) {\n return \"fatal\";\n } else if (FacesMessage.SEVERITY_INFO.equals(severity)) {\n return \"info\";\n } else if (FacesMessage.SEVERITY_WARN.equals(severity)) {\n return \"warn\";\n } else {\n return \"\";\n }\n }\n });\n }", "public Constraint setSeverity(ConstraintSeverityEnum theValue) {\n\t\tgetSeverityElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}", "Collection<? extends Integer> getHasInjurySeverity();", "public boolean isSetFailure() {\n return EncodingUtils.testBit(__isset_bitfield, __FAILURE_ISSET_ID);\n }", "public final twogapplicationinsights.proxies.SeverityLevel getSeverity()\n\t{\n\t\treturn getSeverity(getContext());\n\t}", "public boolean isReportedDefault() {\n if (\"3\".equals(originalPriority.getId())) {\n return true;\n }\n\n return false;\n }", "@Then(\"^validate for the count of channels$\")\r\n\tpublic void validate_for_the_count_of_channels() throws Throwable \r\n\t{\n\t Assert.assertNotNull(publishers.getNumOfChannels());\r\n\t\t\r\n\t}", "public int getSeverity() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.telephony.SmsCbCmasInfo.getSeverity():int, dex: in method: android.telephony.SmsCbCmasInfo.getSeverity():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.getSeverity():int\");\n }", "public void setMinimumLevel(ErrorLevel el);", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tscoreToSeverity.put(0, Severity.Low);\n\t\tscoreToSeverity.put(medium, Severity.Medium);\n\t\tscoreToSeverity.put(high, Severity.High);\n\t\tscoreToSeverity.put(critical, Severity.Critical);\n\t}", "public boolean isInflated() {\n // TODO(cgavidia): This rule needs to be improved!\n\n boolean fixIsDelayed = false;\n\n if (this.isReportedSevere()) {\n fixIsDelayed = isFixDelayed(MAXIMUM_RELEASES_FOR_SEVERE);\n }\n\n if (this.isReportedDefault()) {\n fixIsDelayed = isFixDelayed(MAXIMUM_RELEASES_FOR_DEFAULT);\n }\n\n boolean fixIsRejected = isFixRejected();\n boolean issueIsIgnored = isIssueIgnored();\n\n return fixIsDelayed || fixIsRejected || issueIsIgnored;\n }", "public boolean isSetCrashCount() {\n return EncodingUtils.testBit(__isset_bitfield, __CRASHCOUNT_ISSET_ID);\n }", "public int getAlertness() {\n return 0;\n }", "@Override\r\n\tpublic boolean hasErrors() {\n\t\treturn hasErrors;\r\n\t}", "@java.lang.Override\n public boolean hasPrimaryImpact() {\n return primaryImpact_ != null;\n }", "@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}", "boolean hasErrors();", "public void setStrSeverityCode(String strSeverityCode) {\r\n this.strSeverityCode = strSeverityCode;\r\n }", "protected boolean checkAAField()\n {\n if (this.pdWidget.getActions() != null)\n {\n ctx.addValidationError(new ValidationError(ERROR_ANNOT_FORBIDDEN_AA));\n return false;\n }\n return true;\n }", "public String getStrSeverityCode() {\r\n return strSeverityCode;\r\n }", "public boolean isThresholdExceeded()\n {\n return (written > threshold);\n }" ]
[ "0.65865254", "0.6456292", "0.6327583", "0.6327583", "0.622786", "0.6082655", "0.603296", "0.6031939", "0.59898", "0.5970701", "0.5970637", "0.59555584", "0.5941059", "0.59023285", "0.58946604", "0.58918065", "0.58619785", "0.5826589", "0.578351", "0.5771295", "0.57634115", "0.574216", "0.557918", "0.55708504", "0.5514536", "0.54925656", "0.5459345", "0.54575145", "0.5431699", "0.5392266", "0.5361429", "0.53037995", "0.5300089", "0.5255236", "0.52329516", "0.51788604", "0.5144217", "0.51399314", "0.51399076", "0.5135252", "0.5125173", "0.51175505", "0.5092625", "0.5078849", "0.5075016", "0.506865", "0.5066037", "0.5047646", "0.5042542", "0.50138867", "0.50051904", "0.49959788", "0.49809477", "0.49679306", "0.4929427", "0.49090332", "0.4896218", "0.4881464", "0.48628792", "0.48606497", "0.48555338", "0.48527423", "0.48518", "0.4851514", "0.48423088", "0.48400837", "0.48383164", "0.483713", "0.48343274", "0.48306113", "0.48216024", "0.48207635", "0.48193496", "0.48183194", "0.48161995", "0.48080745", "0.48080745", "0.48068672", "0.47589213", "0.47507784", "0.47493643", "0.47401315", "0.4730312", "0.47179198", "0.47093058", "0.46991318", "0.46990493", "0.46985897", "0.46971208", "0.46955737", "0.46954292", "0.46860215", "0.46842548", "0.46671808", "0.4666412", "0.4666229", "0.466588", "0.46641243", "0.4660116", "0.46585304" ]
0.75552136
0
Clears the value of the 'severity' field
public graphene.model.idl.G_DocumentError.Builder clearSeverity() { severity = null; fieldSetFlags()[2] = false; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder clearSeverity() {\n \n severity_ = 0;\n onChanged();\n return this;\n }", "public void setSeverity(java.lang.String value) {\n this.severity = value;\n }", "public void clear() {\n myReported.clear();\n }", "public void setSeverity(int severity) {\n this.severity = severity;\n }", "public final void setSeverity(com.mendix.systemwideinterfaces.core.IContext context, twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tif (severity != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), severity.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Severity.toString(), null);\n\t}", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder clearErrorLevel() {\n errorLevel = null;\n fieldSetFlags()[5] = false;\n return this;\n }", "public void clearLevel() {\n super.clearLevel();\n }", "void removeHasInjurySeverity(Integer oldHasInjurySeverity);", "public void clear() {\r\n iFormatter = null;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[15]++;\r\n iElementPairs.clear();\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[16]++;\r\n }", "public final void setSeverity(twogapplicationinsights.proxies.SeverityLevel severity)\n\t{\n\t\tsetSeverity(getContext(), severity);\n\t}", "public void clearMetric() {\n this.bitField0_ &= -3;\n this.metric_ = 0;\n }", "void unsetComplianceCheckResult();", "public graphene.model.idl.G_DocumentError.Builder setSeverity(java.lang.String value) {\n validate(fields()[2], value);\n this.severity = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setOpLevel(OpLevel severity) {\n\t\topLevel = severity;\n\t}", "public java.lang.String getSeverity() {\n return severity;\n }", "private void clear() {\n\t\ttxtId.setText(\"\");\n\t\ttxtAlert.setText(\"\");\n\t\ttxtNbMax.setText(\"\");\n\t\t\n\t}", "public Type getSeverity() {\n return severity;\n }", "public java.lang.String getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "public int getSeverity() {\n return severity;\n }", "void unsetScoreAnalysis();", "public void clear() throws ChangeVetoException;", "public Builder setSeverityValue(int value) {\n severity_ = value;\n onChanged();\n return this;\n }", "public Builder setSeverity(org.apache.calcite.avatica.proto.Common.Severity value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n severity_ = value.getNumber();\n onChanged();\n return this;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public org.apache.calcite.avatica.proto.Common.Severity getSeverity() {\n @SuppressWarnings(\"deprecation\")\n org.apache.calcite.avatica.proto.Common.Severity result = org.apache.calcite.avatica.proto.Common.Severity.valueOf(severity_);\n return result == null ? org.apache.calcite.avatica.proto.Common.Severity.UNRECOGNIZED : result;\n }", "public SeverityEnum getSeverity() {\n return severity;\n }", "public void clear()\r\n {\r\n throw new RuntimeException(\"Cannot modify the display data.\");\r\n }", "public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}", "public void unsetMaritalStatusCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(MARITALSTATUSCODE$14, 0);\n }\n }", "public int getSeverityValue() {\n return severity_;\n }", "public void removeLevel()\n {\n clearLevelAndDecreaseCount();\n }", "private void clearStatus() {\n \n status_ = getDefaultInstance().getStatus();\n }", "public void clear() {\n counters.clear();\n }", "public void clearAudit(View view) {\n audit = \"\";\n auditText.setText((audit));\n PreferenceManager.getDefaultSharedPreferences(this).edit().putString(\"audit\", audit).commit();\n\n }", "public void setCleared(Integer cleared) {\r\n this.cleared = cleared;\r\n }", "public void resetLogCollection();", "private void clearChatRecordReq() {\n if (reqCase_ == 10) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "public void clear() throws PropertyVetoException {\n setCommandReturned(\"\");\n setExitStateReturned(0);\n setExitStateMsg(\"\");\n \n importView.reset();\n exportView.reset();\n importView.InGroup_MA = IntAttr.valueOf(InGroupMax);\n exportView.OutCollegeGroup_MA = IntAttr.getDefaultValue();\n exportView.OutGroup_MA = IntAttr.getDefaultValue();\n }", "public int getSeverityValue() {\n return severity_;\n }", "public String reset() {\n //Enumeration e = LogManager.getLogManager().getLoggerNames();\n /*\n for (int i= 0; i < arr.length; i++) {\n arr[i].setDefaultLogLevel();\n }\n */\n numResets++;\n return \"NOT IMPLEMENTED: Logging level is reset to default values\";\n }", "public String clearEntry();", "@Override\r\n\tpublic void clear() {\r\n\t\tlock_.lock();\r\n\r\n\t\ttry {\r\n\t\t\tlog_.clear();\r\n\t\t} finally {\r\n\t\t\tlock_.unlock();\r\n\t\t}\r\n\t}", "private static void clearFields() {\n resetFields();\n fieldsEnabled(false);\n lbl_message.setText(\"\");\n }", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000008);\n level_ = 0;\n onChanged();\n return this;\n }", "@Override\r\n\t\tpublic void clearWarnings() throws SQLException {\n\t\t\t\r\n\t\t}", "public Builder clearMsgType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n msgType_ = com.eze.ezecli.ApiInput.MessageType.EXIT;\n onChanged();\n return this;\n }", "public void unsetCriticalActionValue() throws JNCException {\n delete(\"critical-action\");\n }", "public String clear() {\n\t\t\tcollectionsOlders.clear();\n\t\t\treturn \"Коллекция была очищена\";\n\t\t}", "public void unsetErrorAffectedPageactionCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ERRORAFFECTEDPAGEACTIONCOUNT$8);\r\n }\r\n }", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000001);\n level_ = 0;\n onChanged();\n return this;\n }", "public void clearStatusIcons();", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000001);\n level_ = 0;\n \n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar153() {\n var153 = null;\n fieldSetFlags()[154] = false;\n return this;\n }", "private void clearButtonActionPerformed(ActionEvent evt) {\r\n\t\tlogger.info(\"Clear button Clicked.\");\r\n\t\tinputTextField.setText(\"\");\r\n\t\toutputScoreTextArea.setText(\"\");\r\n\t}", "void unsetIssued();", "private void clearMarker( AztecCode marker ) {\n\t\tmarker.corrected = new byte[0];\n\t\tmarker.message = \"\";\n\t\tmarker.totalBitErrors = -1;\n\t}", "public static void bgfx_dbg_text_clear(@NativeType(\"uint8_t\") int _attr, @NativeType(\"bool\") boolean _small) {\n nbgfx_dbg_text_clear((byte)_attr, _small);\n }", "public void unsetErrorcount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ERRORCOUNT$4);\r\n }\r\n }", "public void clear() {\r\n this.line.clear();\r\n }", "public void clearStatus(){\r\n\t\tmsgActionResult=null;\r\n\t\tcurrentPasswordConfirmed = false;\r\n\t\tpassword = \"\";\r\n\t}", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000002);\n level_ = 1;\n \n return this;\n }", "public Builder clearStringValue() {\n if (typeCase_ == 5) {\n typeCase_ = 0;\n type_ = null;\n onChanged();\n }\n return this;\n }", "String getSeverity();", "public String getSeverity() {\n return severity.toString().toLowerCase(Locale.US);\n }", "private void clear() {\n\t\tSystem.out.println(\"Calling clear\");\n\t}", "public void clear()\r\n {\r\n otherValueMap.clear();\r\n }", "int getSeverityValue();", "public Builder clearMsgType() {\n\n msgType_ = 0;\n onChanged();\n return this;\n }", "public void unsetErrorAffectedTransactionCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ERRORAFFECTEDTRANSACTIONCOUNT$6);\r\n }\r\n }", "@Override\n\tpublic void clearScreen() {\n\n\t\tmHighCounter.setText(R.string.zero);\n\t\tmHighMissCounter.setText(R.string.zero);\n\t\tmMedCounter.setText(R.string.zero);\n\t\tmMedMissCounter.setText(R.string.zero);\n\t\tmLowCounter.setText(R.string.zero);\n\t\tmLowMissCounter.setText(R.string.zero);\n\t}", "public void clearErrors() {\n super.resetErrors();\n }", "public void clear()\r\n {\r\n super.clear();\r\n }", "public void clear() {\n values.clear();\n }", "@Override\n\t\tpublic void clear() {\n\t\t\tsuper.clear();\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t}", "protected void clearMessages(){\n\t\twMessages.clear();\n\t}", "public void clear() \r\n\t{\r\n\t\ttotal = 0;\r\n\t\thistory = \"\";\r\n\t}", "public void clear()\n {\n Arrays.fill(data, clearColor);\n }", "public void setSeverity(TriggerSeverity severity) {\n\t\tmSeverityListPagerAdapter.setCurrentPosition(severity.getPosition());\n\t}", "private void clear() {\r\n\t\tpstate.clear();\r\n\t\tdisplay.setLegend(\"\");\r\n\t\tship = null;\r\n\t}", "void unsetStatus();", "private void Clear() {\n AAccLevel_AdEdRe_TextF_AccLevelID.setText(\"\");\n AAccLevel_AdEdRe_TextF_AccLevelName.setText(\"\");\n AAccLevel_AdEdRe_TextA_Discription.setText(\"\");\n }", "private void jButtonClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClearActionPerformed\n // TODO add your handling code here:\n jTextFieldActivityType.setText(\"\");\n jDateChooserStart.setDate(null);\n jDateChooserEnd.setDate(null);\n }", "private void clear() {\n }", "public synchronized void clearMessage() {\n\t\tthis.commonTxtView.setText(\"\");\n\t}", "void clearUsageReports();", "@Override\n public QueryStatusMessage reset() {\n super.reset();\n cause = \"\";\n status = null;\n return this;\n }", "void resetExcStatuses()\n\t\t{\n\t\t}", "void clearWarnings() throws SQLException;", "public void clearColors() {\r\n colors.clear();\r\n }", "@Override\r\n protected void clearSettings() {\r\n \r\n mfile = null;\r\n rmode = null;\r\n cmap = null;\r\n cmapMin = 0.0f;\r\n cmapMax = 0.0f;\r\n super.clearSettings();\r\n \r\n }", "public void resetDiagnostics() {\n this.diagnostics.clear();\n this.hasErrors = false;\n }", "public void clear() {\n count = 0;\n }", "public void clearStats()\n {\n pathJTextArea.setText(\"\");\n costJTextField.setText(\"\");\n timeJTextField.setText(\"\");\n }", "private void clearHocSinh() {\n\t\ttxtMa.setText(\"\");\n\t\ttxtTen.setText(\"\");\n\t\ttxtTuoi.setText(\"\");\n\t\ttxtSdt.setText(\"\");\n\t\ttxtDiaChi.setText(\"\");\n\t\ttxtEmail.setText(\"\");\n\t}", "private void clearMinor() {\n bitField0_ = (bitField0_ & ~0x00000002);\n minor_ = 0L;\n }", "public void unsetMajorActionValue() throws JNCException {\n delete(\"major-action\");\n }", "public void clear() {\n content = \"EMPTY\";\n }", "public Constraint setSeverity(BoundCodeDt<ConstraintSeverityEnum> theValue) {\n\t\tmySeverity = theValue;\n\t\treturn this;\n\t}", "public void clearCallLogs();" ]
[ "0.7663932", "0.6532978", "0.6292225", "0.626078", "0.5928451", "0.58693284", "0.5830649", "0.5734388", "0.56853926", "0.56216997", "0.5596728", "0.5566291", "0.5532369", "0.5491982", "0.5482756", "0.54807216", "0.54667497", "0.5446523", "0.54429185", "0.54429185", "0.5438426", "0.54220915", "0.54104805", "0.5352982", "0.53345084", "0.5322041", "0.5304813", "0.53040075", "0.5300653", "0.5296823", "0.5291215", "0.52761966", "0.52723676", "0.52669376", "0.52516377", "0.5248368", "0.5246836", "0.5244417", "0.52339876", "0.5231627", "0.52193326", "0.5207537", "0.51984113", "0.51961553", "0.5188128", "0.51790655", "0.5177323", "0.51675135", "0.51644254", "0.51618", "0.516176", "0.5158937", "0.51536745", "0.5140216", "0.5138744", "0.5136703", "0.51342076", "0.513343", "0.5132637", "0.5129545", "0.51245457", "0.51152724", "0.5113392", "0.51130766", "0.5111966", "0.51024354", "0.50961256", "0.50950503", "0.50946444", "0.5090407", "0.50819236", "0.5077795", "0.5074704", "0.5069041", "0.506729", "0.5062505", "0.5060242", "0.5057641", "0.50570023", "0.50489897", "0.50480807", "0.5047869", "0.50454867", "0.50441325", "0.5041443", "0.50391835", "0.50360626", "0.5032211", "0.5031245", "0.5021221", "0.5019307", "0.5017531", "0.50134116", "0.50104594", "0.5009809", "0.5007155", "0.50050455", "0.5002406", "0.49982587", "0.499822" ]
0.73489
1
return (Repository) this.readXMIModel(model_fn, de.uka.ipd.sdq.pcm.repository.RepositoryPackage.class.getName());
public static Repository readRepository(final String model_fn, final ResourceSet resourceSet) throws IOException { return (Repository) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.repository.RepositoryPackage.eINSTANCE, model_fn, resourceSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RepositoryPackage getRepositoryPackage();", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "Repository getRepository();", "private static Object readMetadataFromXML(InputSource source, Class target) throws ParserConfigurationException, SAXException, IOException {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n LOG.debug(\"RepositoryPersistor using SAXParserFactory : \" + factory.getClass().getName());\n\n SAXParser p = factory.newSAXParser();\n XMLReader reader = p.getXMLReader();\n\n Object result;\n if (DescriptorRepository.class.equals(target)) {\n // create an empty repository:\n DescriptorRepository repository = new DescriptorRepository();\n // create handler for building the repository structure\n org.xml.sax.ContentHandler handler = new RepositoryXmlHandler(repository);\n // tell parser to use our handler:\n reader.setContentHandler(handler);\n reader.parse(source);\n result = repository;\n } else if (ConnectionRepository.class.equals(target)) {\n // create an empty repository:\n ConnectionRepository repository = new ConnectionRepository();\n // create handler for building the repository structure\n org.xml.sax.ContentHandler handler = new ConnectionDescriptorXmlHandler(repository);\n // tell parser to use our handler:\n reader.setContentHandler(handler);\n reader.parse(source);\n //LoggerFactory.getBootLogger().info(\"loading XML took \" + (stop - start) + \" msecs\");\n result = repository;\n } else\n throw new MetadataException(\"Could not build a repository instance for '\" + target +\n \"', using source \" + source);\n return result;\n }", "public interface Repository {}", "opmodelFactory getopmodelFactory();", "public interface Repository {\n\n }", "public interface Repository {\n\n }", "@GET\n @Produces({\"application/xml\", \"application/json\"})\n public ModelBase pull() throws NotFoundException {\n // ?? get latest ontModel directly from TopologyManager ??\n ModelBase model = NPSGlobalState.getModelStore().getHead();\n if (model == null)\n throw new NotFoundException(\"None!\"); \n return model;\n }", "public interface ExcelModelRepository extends BaseRepository<ExcelModel, Integer>\n{\n}", "RepositoryType createRepositoryType();", "private RepositorySystem getRepositorySystem() {\n\t\tDefaultServiceLocator locator = MavenRepositorySystemUtils\n\t\t\t\t.newServiceLocator();\n\t\tlocator.addService(RepositoryConnectorFactory.class,\n\t\t\t\tBasicRepositoryConnectorFactory.class);\n\t\tlocator.addService(TransporterFactory.class,\n\t\t\t\tFileTransporterFactory.class);\n\t\tlocator.addService(TransporterFactory.class,\n\t\t\t\tHttpTransporterFactory.class);\n\n\t\tlocator.setErrorHandler(new DefaultServiceLocator.ErrorHandler() {\n\t\t\t@Override\n\t\t\tpublic void serviceCreationFailed(Class<?> type, Class<?> impl,\n\t\t\t\t\tThrowable exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t});\n\n\t\tRepositorySystem system = locator.getService(RepositorySystem.class);\n\t\treturn system;\n\t}", "@Repository\npublic interface NamespaceMapper extends BaseMapper<NamespaceModel, Long> {\n\n}", "public interface IRepository {\n}", "public Repository getRepository() {\n return mRepository;\n }", "public interface GithubRepository {\n\n Single<List<GithubModel>> getRepo();\n\n}", "RmPackage getRmPackage();", "ComponentmodelPackage getComponentmodelPackage();", "public interface IRevisionRepository extends IAdaptable, IWorkbookComponent {\n\n /**\n * Gets the revision manager with corresponding resource ID. If no revision\n * manager is related to the specified resource ID, a new one will be\n * created with the specified content type.\n * \n * @param resourceId\n * the ID of the resource\n * @param contentType\n * the content type of the resource, see {@link IRevision} for\n * all available content types\n * @return the corresponding revision manager with the specified resource ID\n * @see IRevision\n * @see IRevisionManager\n */\n IRevisionManager getRevisionManager(String resourceId, String contentType);\n\n}", "ArtifactRepository getRepository();", "public interface ProductInfoRepository {\n}", "public Class<?> getRepositoryInterface() {\n return repositoryInterface;\n }", "@SuppressWarnings(\"unchecked\")\npublic interface PackageRepository extends JpaRepository<StoredPackage, Long>, PackageStore {\n\n\t/**\n\t * Find a stored package by the id provided\n\t *\n\t * @param id The id of the package to find\n\t *\n\t * @return {@link Optional} An object representing the fact that the storedpackage looked for may or may not exist\n\t */\n\tpublic Optional<StoredPackage> findById(long id);\n\n\t/**\n\t * Saves the package provided returning the newly saved version with any autogenerated values populated\n\t *\n\t * @param definition The package definition to save\n\t *\n\t * @return {@link StoredPackage} The saved version of the package\n\t */\n\tpublic StoredPackage save(StoredPackage definition);\n\n\t/**\n\t * Delete the package matching the provided id\n\t *\n\t * @param id The id of the package to delete\n\t *\n\t * @throws EmptyResultDataAccessException If no package with that id exists\n\t */\n\tpublic void delete(Long id) throws EmptyResultDataAccessException;\n\n\t/**\n\t * Get all the packages currently residing in the underlying data store\n\t *\n\t * @return {@link List} A list of all packages in the data store, can be empty if none exist\n\t */\n\tpublic List<StoredPackage> findAll();\n\n}", "NfrPackage getNfrPackage();", "public interface Repo {\n /**\n * Gets the url property: The url to access the repository.\n *\n * @return the url value.\n */\n String url();\n\n /**\n * Gets the fullName property: The name of the repository.\n *\n * @return the fullName value.\n */\n String fullName();\n\n /**\n * Gets the branches property: Array of branches.\n *\n * @return the branches value.\n */\n List<String> branches();\n\n /**\n * Gets the inner com.azure.resourcemanager.securityinsights.fluent.models.RepoInner object.\n *\n * @return the inner object.\n */\n RepoInner innerModel();\n}", "public interface Repository {\n\n /**\n * Creates the matrix instance.\n *\n * @param path the path to storage file.\n * @param delimiter the delimiter to parse the data from file.\n * @throws RepositoryException if error happens during execution.\n */\n void createMatrix(String path, String delimiter) throws\n RepositoryException;\n\n /**\n * Determines the business rules that applies to the matrix.\n *\n * @param specification the concrete specification that query different\n * types of actions.\n * @return the 2-d array of integers that main diagonal was filled by\n * provided values.\n * @throws RepositoryException if error happens during execution.\n */\n int[][] query(Specification specification) throws RepositoryException;\n\n /**\n * Saves the last result obtained after executing the any method\n * that fill the main diagonal.\n *\n * @param path the path to storage file.\n * @throws RepositoryException if error happens during execution.\n */\n void saveLastResult(String path) throws RepositoryException;\n}", "public com.sun.org.omg.CORBA.Repository get_ir ()\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try {\n org.omg.CORBA.portable.OutputStream _out = _request (\"get_ir\", true);\n _in = _invoke (_out);\n com.sun.org.omg.CORBA.Repository __result = com.sun.org.omg.CORBA.RepositoryHelper.read (_in);\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 get_ir ();\n } finally {\n _releaseReply (_in);\n }\n }", "TypeRepository createTypeRepository();", "RapidmlPackage getRapidmlPackage();", "private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }", "DataModelOracle getDataModelOracle( Path project );", "Policy_Repository createPolicy_Repository();", "public abstract <T extends BaseSlingModel> T getModel();", "Repository getFallbackRepository();", "public static EPackage loadLanguageModelFromRegistry(URI nsuri) {\n\t\t//TODO simply delegate to loadLanguageModel(nsuri,nsuri)?\n\t\tEPackage ePackage = EPackage.Registry.INSTANCE.getEPackage(nsuri.toString());\n\t\treturn ePackage;\t\t \n\t}", "public interface Repository extends MarkerInterface {\n}", "XUMLRTFactory getXUMLRTFactory();", "public interface ShopMentionRepository {\n}", "@Repository\npublic interface ItemComboRepository extends Neo4jRepository<ItemCombo, Long> {\n\n ItemRepository findByCode(String code);\n\n}", "public interface StyleRepository extends NamedRepository<Style> {\n}", "protected SlingRepository getRepository() {\n return repository;\n }", "public interface RepositoryFactory extends EFactory {\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n RepositoryFactory eINSTANCE = io.fixprotocol._2020.orchestra.repository.impl.RepositoryFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Action Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Action Type</em>'.\n * @generated\n */\n ActionType createActionType();\n\n /**\n * Returns a new object of class '<em>Actors Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Actors Type</em>'.\n * @generated\n */\n ActorsType createActorsType();\n\n /**\n * Returns a new object of class '<em>Actor Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Actor Type</em>'.\n * @generated\n */\n ActorType createActorType();\n\n /**\n * Returns a new object of class '<em>Annotation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Annotation</em>'.\n * @generated\n */\n Annotation createAnnotation();\n\n /**\n * Returns a new object of class '<em>Appinfo</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Appinfo</em>'.\n * @generated\n */\n Appinfo createAppinfo();\n\n /**\n * Returns a new object of class '<em>Block Assignment Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Block Assignment Type</em>'.\n * @generated\n */\n BlockAssignmentType createBlockAssignmentType();\n\n /**\n * Returns a new object of class '<em>Categories Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Categories Type</em>'.\n * @generated\n */\n CategoriesType createCategoriesType();\n\n /**\n * Returns a new object of class '<em>Category Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Category Type</em>'.\n * @generated\n */\n CategoryType createCategoryType();\n\n /**\n * Returns a new object of class '<em>Code Sets Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Code Sets Type</em>'.\n * @generated\n */\n CodeSetsType createCodeSetsType();\n\n /**\n * Returns a new object of class '<em>Code Set Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Code Set Type</em>'.\n * @generated\n */\n CodeSetType createCodeSetType();\n\n /**\n * Returns a new object of class '<em>Code Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Code Type</em>'.\n * @generated\n */\n CodeType createCodeType();\n\n /**\n * Returns a new object of class '<em>Component Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Component Ref Type</em>'.\n * @generated\n */\n ComponentRefType createComponentRefType();\n\n /**\n * Returns a new object of class '<em>Component Rule Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Component Rule Type</em>'.\n * @generated\n */\n ComponentRuleType createComponentRuleType();\n\n /**\n * Returns a new object of class '<em>Components Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Components Type</em>'.\n * @generated\n */\n ComponentsType createComponentsType();\n\n /**\n * Returns a new object of class '<em>Component Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Component Type</em>'.\n * @generated\n */\n ComponentType createComponentType();\n\n /**\n * Returns a new object of class '<em>Concepts Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Concepts Type</em>'.\n * @generated\n */\n ConceptsType createConceptsType();\n\n /**\n * Returns a new object of class '<em>Concept Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Concept Type</em>'.\n * @generated\n */\n ConceptType createConceptType();\n\n /**\n * Returns a new object of class '<em>Datatypes Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Datatypes Type</em>'.\n * @generated\n */\n DatatypesType createDatatypesType();\n\n /**\n * Returns a new object of class '<em>Datatype Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Datatype Type</em>'.\n * @generated\n */\n DatatypeType createDatatypeType();\n\n /**\n * Returns a new object of class '<em>Documentation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Documentation</em>'.\n * @generated\n */\n Documentation createDocumentation();\n\n /**\n * Returns a new object of class '<em>Document Root</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Document Root</em>'.\n * @generated\n */\n DocumentRoot createDocumentRoot();\n\n /**\n * Returns a new object of class '<em>Extension Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Extension Type</em>'.\n * @generated\n */\n ExtensionType createExtensionType();\n\n /**\n * Returns a new object of class '<em>Field Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Ref Type</em>'.\n * @generated\n */\n FieldRefType createFieldRefType();\n\n /**\n * Returns a new object of class '<em>Field Rule Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Rule Type</em>'.\n * @generated\n */\n FieldRuleType createFieldRuleType();\n\n /**\n * Returns a new object of class '<em>Fields Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Fields Type</em>'.\n * @generated\n */\n FieldsType createFieldsType();\n\n /**\n * Returns a new object of class '<em>Field Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Type</em>'.\n * @generated\n */\n FieldType createFieldType();\n\n /**\n * Returns a new object of class '<em>Flow Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Flow Type</em>'.\n * @generated\n */\n FlowType createFlowType();\n\n /**\n * Returns a new object of class '<em>Group Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group Ref Type</em>'.\n * @generated\n */\n GroupRefType createGroupRefType();\n\n /**\n * Returns a new object of class '<em>Groups Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Groups Type</em>'.\n * @generated\n */\n GroupsType createGroupsType();\n\n /**\n * Returns a new object of class '<em>Group Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group Type</em>'.\n * @generated\n */\n GroupType createGroupType();\n\n /**\n * Returns a new object of class '<em>Identifiers Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Identifiers Type</em>'.\n * @generated\n */\n IdentifiersType createIdentifiersType();\n\n /**\n * Returns a new object of class '<em>Identifier Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Identifier Type</em>'.\n * @generated\n */\n IdentifierType createIdentifierType();\n\n /**\n * Returns a new object of class '<em>Mapped Datatype</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Mapped Datatype</em>'.\n * @generated\n */\n MappedDatatype createMappedDatatype();\n\n /**\n * Returns a new object of class '<em>Message Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Message Ref Type</em>'.\n * @generated\n */\n MessageRefType createMessageRefType();\n\n /**\n * Returns a new object of class '<em>Messages Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Messages Type</em>'.\n * @generated\n */\n MessagesType createMessagesType();\n\n /**\n * Returns a new object of class '<em>Message Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Message Type</em>'.\n * @generated\n */\n MessageType createMessageType();\n\n /**\n * Returns a new object of class '<em>Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type</em>'.\n * @generated\n */\n RepositoryType createRepositoryType();\n\n /**\n * Returns a new object of class '<em>Responses Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Responses Type</em>'.\n * @generated\n */\n ResponsesType createResponsesType();\n\n /**\n * Returns a new object of class '<em>Response Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Response Type</em>'.\n * @generated\n */\n ResponseType createResponseType();\n\n /**\n * Returns a new object of class '<em>Sections Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Sections Type</em>'.\n * @generated\n */\n SectionsType createSectionsType();\n\n /**\n * Returns a new object of class '<em>Section Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Section Type</em>'.\n * @generated\n */\n SectionType createSectionType();\n\n /**\n * Returns a new object of class '<em>State Machine Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>State Machine Type</em>'.\n * @generated\n */\n StateMachineType createStateMachineType();\n\n /**\n * Returns a new object of class '<em>State Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>State Type</em>'.\n * @generated\n */\n StateType createStateType();\n\n /**\n * Returns a new object of class '<em>Structure Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Structure Type</em>'.\n * @generated\n */\n StructureType createStructureType();\n\n /**\n * Returns a new object of class '<em>Timer Schedule</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Timer Schedule</em>'.\n * @generated\n */\n TimerSchedule createTimerSchedule();\n\n /**\n * Returns a new object of class '<em>Timer Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Timer Type</em>'.\n * @generated\n */\n TimerType createTimerType();\n\n /**\n * Returns a new object of class '<em>Transition Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Transition Type</em>'.\n * @generated\n */\n TransitionType createTransitionType();\n\n /**\n * Returns a new object of class '<em>Trigger Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Trigger Type</em>'.\n * @generated\n */\n TriggerType createTriggerType();\n\n /**\n * Returns a new object of class '<em>Unique Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unique Type</em>'.\n * @generated\n */\n UniqueType createUniqueType();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n RepositoryPackage getRepositoryPackage();\n\n}", "private RepositorySystem newRepositorySystem()\n\t{\n\t\tDefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();\n\t\tlocator.addService( RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class );\n\t\tlocator.addService( TransporterFactory.class, FileTransporterFactory.class );\n\t\tlocator.addService( TransporterFactory.class, HttpTransporterFactory.class );\n\n\t\tlocator.setErrorHandler( new DefaultServiceLocator.ErrorHandler()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void serviceCreationFailed( Class<?> type, Class<?> impl, Throwable exception )\n\t\t\t{\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t} );\n\n\t\treturn locator.getService( RepositorySystem.class );\n\t}", "RepoInner innerModel();", "public interface ADSLRepository extends Repository< ADSL, String> {\n}", "public File getRepo() {\n return _repo;\n }", "public interface Repository {\n public void addPrg(PrgState prg);\n public List<PrgState> getAll();\n public void setAll(List<PrgState> _newPrgs);\n public void removeCurrent();\n public void logPrgStateExec() throws FileNotFoundException, UnsupportedEncodingException;\n public void logPrgStateExec(PrgState p) throws FileNotFoundException;\n public void serialize(PrgState prgState,String fname);\n public PrgState deserialize(String fname);\n PrgState getCurrent();\n}", "TRepo createRepo();", "MRentalPackage getRentalPackage();", "public abstract RepoDao getRepoDao();", "public OwlimRepositoryFactory() {\n\t\t\tthis(IWBFileUtil.getFileInDataFolder(Config.getConfig()\n\t\t\t\t\t\t\t.getRepositoryName()).getAbsolutePath()); \n\t\t}", "public interface RepoDataView {\n}", "public interface INewsInfoRepository {\n}", "@Repository\npublic interface RequestRepository extends BaseModelRepository<RequestAR> {\n}", "EisPackage getEisPackage();", "@objid (\"0fc4a30a-9083-11e1-81e9-001ec947ccaf\")\npublic interface IModel {\n @objid (\"158ef48a-aed6-4746-a113-8d9f740481b4\")\n public static final IMObjectFilter ISVALID = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && obj.isValid();\n\t\t}\n\t};\n\n @objid (\"899f8ec3-25d4-4441-b499-c889c4e125a7\")\n public static final IMObjectFilter NOSHELL = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && ! obj.isShell();\n\t\t}\n\t};\n\n @objid (\"f85615e6-6ad2-4a7a-9784-cf8d466faa65\")\n public static final IMObjectFilter NODELETED = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) { \n\t\t\treturn obj != null && ! obj.isDeleted();\n\t\t}\n\t};\n\n /**\n * Find elements by a metaclass an an attribute value.\n * @param cls the metaclass.\n * @param att the attribute to search\n * @param val the attribute value\n * @return the found elements.\n */\n @objid (\"17c23aa0-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val, IMObjectFilter filter);\n\n /**\n * Get all elements of a given class and the class descendants.\n * @param cls a metaclass.\n * @return all elements of this class.\n */\n @objid (\"17c23aa1-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByClass(MClass cls, IMObjectFilter filter);\n\n /**\n * Find an element from its MClass and its identifier.\n * @param cls a metaclass\n * @param siteIdentifier an UUID\n * @return the found element or <code>null</code>.\n */\n @objid (\"17c23aa2-9083-11e1-81e9-001ec947ccaf\")\n MObject findById(MClass cls, final UUID siteIdentifier, IMObjectFilter filter);\n\n /**\n * Find an element from a reference.\n * @param ref an element reference\n * @return the found element or <code>null</code>.\n * @throws org.modelio.vcore.session.UnknownMetaclassException if the referenced metaclass does not exist.\n */\n @objid (\"10a41285-16e7-11e2-b24b-001ec947ccaf\")\n MObject findByRef(MRef ref, IMObjectFilter filter) throws UnknownMetaclassException;\n\n /**\n * Get the generic factory.\n * @return the generic factory.\n */\n @objid (\"0078ca26-5a20-10c8-842f-001ec947cd2a\")\n GenericFactory getGenericFactory();\n\n @objid (\"00955b82-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByClass(MClass cls);\n\n @objid (\"0096d304-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val);\n\n @objid (\"009711de-61a5-10c8-842f-001ec947cd2a\")\n MObject findById(MClass cls, final UUID siteIdentifier);\n\n @objid (\"33fb2113-b8a3-4b3b-95ed-3481c65d2881\")\n MObject findByRef(MRef ref) throws UnknownMetaclassException;\n\n @objid (\"261fe5dc-cfbf-40ee-886d-fc3c529c0e47\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass, IMObjectFilter filter);\n\n @objid (\"e46abe41-187e-4d12-b565-c9e92df02519\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val, IMObjectFilter filter);\n\n @objid (\"83ef71a2-04ef-4e59-bf55-2bffe3069024\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier, IMObjectFilter filter);\n\n @objid (\"610f2f86-624b-469c-9c0c-6bf78147fba1\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass);\n\n @objid (\"1540131b-bdd6-466c-a417-9e0efd220dda\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val);\n\n @objid (\"1b63d157-9858-4691-8636-7c625e97c65e\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier);\n\n}", "MatchModelPackage getMatchModelPackage();", "MystPackage getMystPackage();", "ISModificationRepository createISModificationRepository();", "public org.jboss.com.sun.org.omg.CORBA.Repository get_ir()\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try\n {\n org.omg.CORBA.portable.OutputStream _out = _request(\"get_ir\", true);\n _in = _invoke(_out);\n org.jboss.com.sun.org.omg.CORBA.Repository __result = org.jboss.com.sun.org.omg.CORBA.RepositoryHelper\n .read(_in);\n return __result;\n }\n catch (org.omg.CORBA.portable.ApplicationException _ex)\n {\n _in = _ex.getInputStream();\n String _id = _ex.getId();\n throw new org.omg.CORBA.MARSHAL(_id);\n }\n catch (org.omg.CORBA.portable.RemarshalException _rm)\n {\n return get_ir();\n }\n finally\n {\n _releaseReply(_in);\n }\n }", "@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tMemoryStore store = new MemoryStore(IWBFileUtil.getFileInDataFolder(Config.getConfig().getRepositoryName()));\n\t\t\t\n\t\t\t// create a lucenesail to wrap the memorystore\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// let the lucene index store its data in ram\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t\t// wrap memorystore in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\t\t\t\n\t\t\t// create a Repository to access the sails\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}", "static Repository getRepositoryFromArguments(String[] args)\n {\n File dataDir = new File(args[args.length - 2]);\n \n Repository rep = new SailRepository(new NativeStore(dataDir));\n \n try\n {\n rep.initialize();\n }\n catch (RepositoryException e)\n {\n System.err.println(\"Repository could not be initialized!\");\n System.exit(1);\n }\n \n return rep;\n }", "@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tNativeStore store = ReadDataManagerImpl.getNativeStore(IWBFileUtil.getFileInDataFolder(repositoryName));\n\n\t\t\t// create a lucenesail to wrap the store\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// store the lucene index on disk\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_DIR_KEY, IWBFileUtil.getLuceneIndexFolder().getAbsolutePath());\n\t\t\t// wrap store in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\n\t\t\t// create a Repository to access the sail\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}", "public interface IRepository {\n String getUser();\n}", "public interface PmlFileReturningInfoModel extends BaseModel<PmlFileReturningInfo> {\n public long getPrimaryKey();\n\n public void setPrimaryKey(long pk);\n\n public long getFileReturningInfoId();\n\n public void setFileReturningInfoId(long fileReturningInfoId);\n\n public String getFileId();\n\n public void setFileId(String fileId);\n\n public String getFileSender();\n\n public void setFileSender(String fileSender);\n\n public String getLicenseNumber();\n\n public void setLicenseNumber(String licenseNumber);\n\n public Date getIssuingDateLicense();\n\n public void setIssuingDateLicense(Date issuingDateLicense);\n\n public Date getReceiveLicenseDate();\n\n public void setReceiveLicenseDate(Date receiveLicenseDate);\n\n public String getDocumentNumber();\n\n public void setDocumentNumber(String documentNumber);\n\n public String getBillNumber();\n\n public void setBillNumber(String billNumber);\n\n public long getNumberMoney();\n\n public void setNumberMoney(long numberMoney);\n\n public String getNote();\n\n public void setNote(String note);\n\n public String getConclude();\n\n public void setConclude(String conclude);\n\n public PmlFileReturningInfo toEscapedModel();\n}", "public ModelContainer getModel(IRI id) {\n\t\tsynchronized (modelMap) { \n\t\t\t// synchronized to avoid race condition for simultaneous loads of the same model\n\t\t\tif (!modelMap.containsKey(id)) {\n\t\t\t\ttry {\n\t\t\t\t\tloadModel(id, false);\n\t\t\t\t} catch (OWLOntologyCreationException e) {\n\t\t\t\t\tLOG.info(\"Could not load model with id: \"+id, e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn modelMap.get(id);\n\t\t}\n\t}", "public final CompletableFuture<GetRepositoryResponse> getRepository(\n\t\t\tFunction<GetRepositoryRequest.Builder, ObjectBuilder<GetRepositoryRequest>> fn) throws IOException {\n\t\treturn getRepository(fn.apply(new GetRepositoryRequest.Builder()).build());\n\t}", "public interface MetadataModelImplementation<T> {\n\n /**\n * Corresponds to {@link org.netbeans.modules.j2ee.metadata.model.api.MetadataModel#runReadAction}.\n *\n * @param action the action to be executed; never null.\n * @return the value returned by the action's {@link MetadataModelAction#run} method.\n * @throws MetadataModelException if the action's <code>run()</code> method\n * threw a checked exception.\n * @throws IOException if an error occured while reading the model from its storage.\n */\n <R> R runReadAction(MetadataModelAction<T, R> action) throws MetadataModelException, IOException;\n\n /**\n * Corresponds to {@link org.netbeans.modules.j2ee.metadata.model.api.MetadataModel#isReady}.\n *\n * @return true if the model is ready, false otherwise.\n */\n boolean isReady();\n\n /**\n * Corresponds to {@link org.netbeans.modules.j2ee.metadata.model.api.MetadataModel#runReadActionWhenReady}.\n *\n * @param action the action to be executed; never null.\n * @return a {@link Future} encapsulating the value returned by the action's {@link MetadataModelAction#run} method.\n * @throws MetadataModelException if the action's <code>run()</code> method\n * threw a checked exception.\n * @throws IOException if an error occured while reading the model from its storage.\n */\n <R> Future<R> runReadActionWhenReady(MetadataModelAction<T, R> action) throws MetadataModelException, IOException;\n}", "SourceBuilder createRepository();", "NCModel getModel();", "public String getRepository() {\n return repository;\n }", "public String getRepository() {\n return repository;\n }", "public interface IModel {\n}", "public abstract M getModel();", "IDataModel getIDataModel();", "public interface Core2Repository extends SolrCrudRepository<Core2, String> {\r\n}", "@Override\n public GeneralRepositoryConfig getGeneralRepositoryConfig(){\n outObject = \"getGeneralRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (GeneralRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (GeneralRepositoryConfig) inObject;\n }", "public interface ModelsPackage extends EPackage\n{\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"models\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.fever.org/models\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"fever.models\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tModelsPackage eINSTANCE = models.impl.ModelsPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__FEATURES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.BuildModelImpl\n\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t * @generated\n\t */\n\tint BUILD_MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Symbols</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SYMBOLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationModelImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_MODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__VALUE_FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Constants</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CONSTANTS = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Blocks</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__BLOCKS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>File name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__FILE_NAME = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Chane</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CHANE = 5;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_FEATURE_COUNT = 6;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SPLImpl\n\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t * @generated\n\t */\n\tint SPL = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Revision</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__REVISION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Variabilitymodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__VARIABILITYMODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Buildmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__BUILDMODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Implementationmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__IMPLEMENTATIONMODEL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelEntityImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL_ENTITY = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__ID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__FLAGS = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__TYPE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__SELECTS = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEPENDS = 8;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__EXTERNAL = 9;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_FEATURE_COUNT = 10;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t * @generated\n\t */\n\tint FEATURE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__NAME = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ChoiceImpl\n\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t * @generated\n\t */\n\tint CHOICE = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The number of structural features of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.DefaultValueImpl\n\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t * @generated\n\t */\n\tint DEFAULT_VALUE = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__VALUE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Order</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ORDER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ID = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SelectImpl\n\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t * @generated\n\t */\n\tint SELECT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__TARGET = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MappedFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t * @generated\n\t */\n\tint MAPPED_FEATURE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__TARGETS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Feature Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__FEATURE_NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CompilationTargetImpl\n\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Target Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Target Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_TYPE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__ID = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Mapped To Symbol</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__MAPPED_TO_SYMBOL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MakeSymbolImpl\n\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t * @generated\n\t */\n\tint MAKE_SYMBOL = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__TARGETS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ReferencedValueFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t * @generated\n\t */\n\tint REFERENCED_VALUE_FEATURE = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ConditionalBlockImpl\n\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t * @generated\n\t */\n\tint CONDITIONAL_BLOCK = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Start</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__START = 0;\n\n\t/**\n\t * The feature id for the '<em><b>End</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__END = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__VALUE_FEATURES = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Touched</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__TOUCHED = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Expression</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EXPRESSION = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Lines</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__LINES = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Edited By</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EDITED_BY = 7;\n\n\t/**\n\t * The number of structural features of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_FEATURE_COUNT = 8;\n\n\t/**\n\t * The number of operations of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureConstantImpl\n\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t * @generated\n\t */\n\tint FEATURE_CONSTANT = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationLineImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_LINE = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Line</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE__LINE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CodeEditImpl\n\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t * @generated\n\t */\n\tint CODE_EDIT = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Rem idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_IDX = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Add idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_IDX = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Rem size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_SIZE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Add size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_SIZE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Diff</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__DIFF = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.VariabilityTypes\n\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t * @generated\n\t */\n\tint VARIABILITY_TYPES = 17;\n\n\t/**\n\t * The meta object id for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.CompilationTargetType\n\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET_TYPE = 18;\n\n\t/**\n\t * The meta object id for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.ChangeType\n\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t * @generated\n\t */\n\tint CHANGE_TYPE = 19;\n\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModel <em>Variability Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model</em>'.\n\t * @see models.VariabilityModel\n\t * @generated\n\t */\n\tEClass getVariabilityModel();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Spl</em>'.\n\t * @see models.VariabilityModel#getSpl()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.VariabilityModel#getFeatures()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Features();\n\n\t/**\n\t * Returns the meta object for class '{@link models.BuildModel <em>Build Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Build Model</em>'.\n\t * @see models.BuildModel\n\t * @generated\n\t */\n\tEClass getBuildModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.BuildModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.BuildModel#getSpl()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.BuildModel#getFeatures()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Features();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getSymbols <em>Symbols</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Symbols</em>'.\n\t * @see models.BuildModel#getSymbols()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Symbols();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationModel <em>Implementation Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Model</em>'.\n\t * @see models.ImplementationModel\n\t * @generated\n\t */\n\tEClass getImplementationModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.ImplementationModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.ImplementationModel#getSpl()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ImplementationModel#getValueFeatures()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getConstants <em>Constants</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Constants</em>'.\n\t * @see models.ImplementationModel#getConstants()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Constants();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ImplementationModel#getBlocks <em>Blocks</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Blocks</em>'.\n\t * @see models.ImplementationModel#getBlocks()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Blocks();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getFile_name <em>File name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>File name</em>'.\n\t * @see models.ImplementationModel#getFile_name()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_File_name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getChane <em>Chane</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Chane</em>'.\n\t * @see models.ImplementationModel#getChane()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_Chane();\n\n\t/**\n\t * Returns the meta object for class '{@link models.SPL <em>SPL</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>SPL</em>'.\n\t * @see models.SPL\n\t * @generated\n\t */\n\tEClass getSPL();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.SPL#getRevision <em>Revision</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Revision</em>'.\n\t * @see models.SPL#getRevision()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEAttribute getSPL_Revision();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getVariabilitymodel <em>Variabilitymodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Variabilitymodel</em>'.\n\t * @see models.SPL#getVariabilitymodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Variabilitymodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getBuildmodel <em>Buildmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Buildmodel</em>'.\n\t * @see models.SPL#getBuildmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Buildmodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getImplementationmodel <em>Implementationmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Implementationmodel</em>'.\n\t * @see models.SPL#getImplementationmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Implementationmodel();\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModelEntity <em>Variability Model Entity</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model Entity</em>'.\n\t * @see models.VariabilityModelEntity\n\t * @generated\n\t */\n\tEClass getVariabilityModelEntity();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.VariabilityModelEntity#getId()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getFlags <em>Flags</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Flags</em>'.\n\t * @see models.VariabilityModelEntity#getFlags()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Flags();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Type</em>'.\n\t * @see models.VariabilityModelEntity#getType()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Type();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPrompt <em>Prompt</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt</em>'.\n\t * @see models.VariabilityModelEntity#getPrompt()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Prompt();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getDefaultValues <em>Default Values</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Default Values</em>'.\n\t * @see models.VariabilityModelEntity#getDefaultValues()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_DefaultValues();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getSelects <em>Selects</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Selects</em>'.\n\t * @see models.VariabilityModelEntity#getSelects()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_Selects();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPromptCondition <em>Prompt Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPromptCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PromptCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPresenceCondition <em>Presence Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Presence Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPresenceCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PresenceCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getDepends <em>Depends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Depends</em>'.\n\t * @see models.VariabilityModelEntity#getDepends()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Depends();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#isExternal <em>External</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>External</em>'.\n\t * @see models.VariabilityModelEntity#isExternal()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_External();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Feature <em>Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature</em>'.\n\t * @see models.Feature\n\t * @generated\n\t */\n\tEClass getFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Feature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.Feature#getName()\n\t * @see #getFeature()\n\t * @generated\n\t */\n\tEAttribute getFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Choice <em>Choice</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Choice</em>'.\n\t * @see models.Choice\n\t * @generated\n\t */\n\tEClass getChoice();\n\n\t/**\n\t * Returns the meta object for class '{@link models.DefaultValue <em>Default Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Default Value</em>'.\n\t * @see models.DefaultValue\n\t * @generated\n\t */\n\tEClass getDefaultValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see models.DefaultValue#getValue()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Value();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.DefaultValue#getCondition()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getOrder <em>Order</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Order</em>'.\n\t * @see models.DefaultValue#getOrder()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Order();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.DefaultValue#getId()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Select <em>Select</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Select</em>'.\n\t * @see models.Select\n\t * @generated\n\t */\n\tEClass getSelect();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target</em>'.\n\t * @see models.Select#getTarget()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Target();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.Select#getCondition()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.Select#getId()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MappedFeature <em>Mapped Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Mapped Feature</em>'.\n\t * @see models.MappedFeature\n\t * @generated\n\t */\n\tEClass getMappedFeature();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MappedFeature#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MappedFeature#getTargets()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEReference getMappedFeature_Targets();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getFeatureName <em>Feature Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Feature Name</em>'.\n\t * @see models.MappedFeature#getFeatureName()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_FeatureName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.MappedFeature#getId()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CompilationTarget <em>Compilation Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Compilation Target</em>'.\n\t * @see models.CompilationTarget\n\t * @generated\n\t */\n\tEClass getCompilationTarget();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetName <em>Target Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Name</em>'.\n\t * @see models.CompilationTarget#getTargetName()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetType <em>Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Type</em>'.\n\t * @see models.CompilationTarget#getTargetType()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.CompilationTarget#getId()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getMappedToSymbol <em>Mapped To Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Mapped To Symbol</em>'.\n\t * @see models.CompilationTarget#getMappedToSymbol()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_MappedToSymbol();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MakeSymbol <em>Make Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Make Symbol</em>'.\n\t * @see models.MakeSymbol\n\t * @generated\n\t */\n\tEClass getMakeSymbol();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MakeSymbol#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.MakeSymbol#getName()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEAttribute getMakeSymbol_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MakeSymbol#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MakeSymbol#getTargets()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEReference getMakeSymbol_Targets();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ReferencedValueFeature <em>Referenced Value Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Referenced Value Feature</em>'.\n\t * @see models.ReferencedValueFeature\n\t * @generated\n\t */\n\tEClass getReferencedValueFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ReferencedValueFeature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.ReferencedValueFeature#getName()\n\t * @see #getReferencedValueFeature()\n\t * @generated\n\t */\n\tEAttribute getReferencedValueFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ConditionalBlock <em>Conditional Block</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Conditional Block</em>'.\n\t * @see models.ConditionalBlock\n\t * @generated\n\t */\n\tEClass getConditionalBlock();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getStart <em>Start</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Start</em>'.\n\t * @see models.ConditionalBlock#getStart()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Start();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getEnd <em>End</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>End</em>'.\n\t * @see models.ConditionalBlock#getEnd()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_End();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.ConditionalBlock#getCondition()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Condition();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ConditionalBlock#getValueFeatures()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#isTouched <em>Touched</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Touched</em>'.\n\t * @see models.ConditionalBlock#isTouched()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Touched();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getExpression <em>Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Expression</em>'.\n\t * @see models.ConditionalBlock#getExpression()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Expression();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ConditionalBlock#getLines <em>Lines</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Lines</em>'.\n\t * @see models.ConditionalBlock#getLines()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_Lines();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getEditedBy <em>Edited By</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Edited By</em>'.\n\t * @see models.ConditionalBlock#getEditedBy()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_EditedBy();\n\n\t/**\n\t * Returns the meta object for class '{@link models.FeatureConstant <em>Feature Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature Constant</em>'.\n\t * @see models.FeatureConstant\n\t * @generated\n\t */\n\tEClass getFeatureConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.FeatureConstant#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.FeatureConstant#getName()\n\t * @see #getFeatureConstant()\n\t * @generated\n\t */\n\tEAttribute getFeatureConstant_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationLine <em>Implementation Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Line</em>'.\n\t * @see models.ImplementationLine\n\t * @generated\n\t */\n\tEClass getImplementationLine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationLine#getLine <em>Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Line</em>'.\n\t * @see models.ImplementationLine#getLine()\n\t * @see #getImplementationLine()\n\t * @generated\n\t */\n\tEAttribute getImplementationLine_Line();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CodeEdit <em>Code Edit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Code Edit</em>'.\n\t * @see models.CodeEdit\n\t * @generated\n\t */\n\tEClass getCodeEdit();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_idx <em>Rem idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem idx</em>'.\n\t * @see models.CodeEdit#getRem_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_idx <em>Add idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add idx</em>'.\n\t * @see models.CodeEdit#getAdd_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_size <em>Rem size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem size</em>'.\n\t * @see models.CodeEdit#getRem_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_size <em>Add size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add size</em>'.\n\t * @see models.CodeEdit#getAdd_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getDiff <em>Diff</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Diff</em>'.\n\t * @see models.CodeEdit#getDiff()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Diff();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.VariabilityTypes <em>Variability Types</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Variability Types</em>'.\n\t * @see models.VariabilityTypes\n\t * @generated\n\t */\n\tEEnum getVariabilityTypes();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.CompilationTargetType <em>Compilation Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Compilation Target Type</em>'.\n\t * @see models.CompilationTargetType\n\t * @generated\n\t */\n\tEEnum getCompilationTargetType();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.ChangeType <em>Change Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Change Type</em>'.\n\t * @see models.ChangeType\n\t * @generated\n\t */\n\tEEnum getChangeType();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tModelsFactory getModelsFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals\n\t{\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL = eINSTANCE.getVariabilityModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__SPL = eINSTANCE.getVariabilityModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__FEATURES = eINSTANCE.getVariabilityModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.BuildModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t\t * @generated\n\t\t */\n\t\tEClass BUILD_MODEL = eINSTANCE.getBuildModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SPL = eINSTANCE.getBuildModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__FEATURES = eINSTANCE.getBuildModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Symbols</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SYMBOLS = eINSTANCE.getBuildModel_Symbols();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_MODEL = eINSTANCE.getImplementationModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__SPL = eINSTANCE.getImplementationModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__VALUE_FEATURES = eINSTANCE.getImplementationModel_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constants</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__CONSTANTS = eINSTANCE.getImplementationModel_Constants();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Blocks</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__BLOCKS = eINSTANCE.getImplementationModel_Blocks();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>File name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__FILE_NAME = eINSTANCE.getImplementationModel_File_name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Chane</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__CHANE = eINSTANCE.getImplementationModel_Chane();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SPLImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t\t * @generated\n\t\t */\n\t\tEClass SPL = eINSTANCE.getSPL();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Revision</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SPL__REVISION = eINSTANCE.getSPL_Revision();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Variabilitymodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__VARIABILITYMODEL = eINSTANCE.getSPL_Variabilitymodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Buildmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__BUILDMODEL = eINSTANCE.getSPL_Buildmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Implementationmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__IMPLEMENTATIONMODEL = eINSTANCE.getSPL_Implementationmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelEntityImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL_ENTITY = eINSTANCE.getVariabilityModelEntity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__ID = eINSTANCE.getVariabilityModelEntity_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Flags</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__FLAGS = eINSTANCE.getVariabilityModelEntity_Flags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__TYPE = eINSTANCE.getVariabilityModelEntity_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT = eINSTANCE.getVariabilityModelEntity_Prompt();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Default Values</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = eINSTANCE.getVariabilityModelEntity_DefaultValues();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Selects</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__SELECTS = eINSTANCE.getVariabilityModelEntity_Selects();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = eINSTANCE.getVariabilityModelEntity_PromptCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Presence Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = eINSTANCE.getVariabilityModelEntity_PresenceCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Depends</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__DEPENDS = eINSTANCE.getVariabilityModelEntity_Depends();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>External</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__EXTERNAL = eINSTANCE.getVariabilityModelEntity_External();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE = eINSTANCE.getFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ChoiceImpl\n\t\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t\t * @generated\n\t\t */\n\t\tEClass CHOICE = eINSTANCE.getChoice();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.DefaultValueImpl\n\t\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t\t * @generated\n\t\t */\n\t\tEClass DEFAULT_VALUE = eINSTANCE.getDefaultValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__VALUE = eINSTANCE.getDefaultValue_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__CONDITION = eINSTANCE.getDefaultValue_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Order</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ORDER = eINSTANCE.getDefaultValue_Order();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ID = eINSTANCE.getDefaultValue_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SelectImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t\t * @generated\n\t\t */\n\t\tEClass SELECT = eINSTANCE.getSelect();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__TARGET = eINSTANCE.getSelect_Target();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__CONDITION = eINSTANCE.getSelect_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__ID = eINSTANCE.getSelect_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MappedFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass MAPPED_FEATURE = eINSTANCE.getMappedFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAPPED_FEATURE__TARGETS = eINSTANCE.getMappedFeature_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Feature Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__FEATURE_NAME = eINSTANCE.getMappedFeature_FeatureName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__ID = eINSTANCE.getMappedFeature_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CompilationTargetImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t\t * @generated\n\t\t */\n\t\tEClass COMPILATION_TARGET = eINSTANCE.getCompilationTarget();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_NAME = eINSTANCE.getCompilationTarget_TargetName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_TYPE = eINSTANCE.getCompilationTarget_TargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__ID = eINSTANCE.getCompilationTarget_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Mapped To Symbol</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__MAPPED_TO_SYMBOL = eINSTANCE.getCompilationTarget_MappedToSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MakeSymbolImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t\t * @generated\n\t\t */\n\t\tEClass MAKE_SYMBOL = eINSTANCE.getMakeSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAKE_SYMBOL__NAME = eINSTANCE.getMakeSymbol_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAKE_SYMBOL__TARGETS = eINSTANCE.getMakeSymbol_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ReferencedValueFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass REFERENCED_VALUE_FEATURE = eINSTANCE.getReferencedValueFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute REFERENCED_VALUE_FEATURE__NAME = eINSTANCE.getReferencedValueFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ConditionalBlockImpl\n\t\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t\t * @generated\n\t\t */\n\t\tEClass CONDITIONAL_BLOCK = eINSTANCE.getConditionalBlock();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__START = eINSTANCE.getConditionalBlock_Start();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>End</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__END = eINSTANCE.getConditionalBlock_End();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__CONDITION = eINSTANCE.getConditionalBlock_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__VALUE_FEATURES = eINSTANCE.getConditionalBlock_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Touched</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__TOUCHED = eINSTANCE.getConditionalBlock_Touched();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Expression</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__EXPRESSION = eINSTANCE.getConditionalBlock_Expression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lines</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__LINES = eINSTANCE.getConditionalBlock_Lines();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edited By</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__EDITED_BY = eINSTANCE.getConditionalBlock_EditedBy();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureConstantImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE_CONSTANT = eINSTANCE.getFeatureConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE_CONSTANT__NAME = eINSTANCE.getFeatureConstant_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationLineImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_LINE = eINSTANCE.getImplementationLine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Line</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_LINE__LINE = eINSTANCE.getImplementationLine_Line();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CodeEditImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t\t * @generated\n\t\t */\n\t\tEClass CODE_EDIT = eINSTANCE.getCodeEdit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_IDX = eINSTANCE.getCodeEdit_Rem_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_IDX = eINSTANCE.getCodeEdit_Add_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_SIZE = eINSTANCE.getCodeEdit_Rem_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_SIZE = eINSTANCE.getCodeEdit_Add_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Diff</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__DIFF = eINSTANCE.getCodeEdit_Diff();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.VariabilityTypes\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t\t * @generated\n\t\t */\n\t\tEEnum VARIABILITY_TYPES = eINSTANCE.getVariabilityTypes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.CompilationTargetType\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t\t * @generated\n\t\t */\n\t\tEEnum COMPILATION_TARGET_TYPE = eINSTANCE.getCompilationTargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.ChangeType\n\t\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t\t * @generated\n\t\t */\n\t\tEEnum CHANGE_TYPE = eINSTANCE.getChangeType();\n\n\t}\n\n}", "public interface XPackage {\n\t\n\t/**\n\t * \n\t * @return\n\t * @throws IOException\n\t * @throws FileNotFoundException\n\t */\n\tpublic XCollection<XClass> getClasses();\n\n\t/**\n\t * \n\t * @param recursively\n\t * @return\n\t */\n\tpublic XCollection<XClass> getClasses(boolean recursively);\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XPackage getParentPackage();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XCollection<XPackage> getChildPackages();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XCollection<XPackage> getChildPackages(boolean recursively);\n\n\t/**\n\t * \n\t * @param packageName\n\t * @return\n\t */\n\tpublic XPackage find(String packageName);\n\n}", "static Repo getInstance() {\n return RepoSingelton.getRepo(); //todo: refactor\n }", "JPackage _package();", "DomainPackage getDomainPackage();", "DataModel getDataModel ();", "String getRepoType();", "public interface MainRepository {\n\n\tMain getMain(Main main) throws DataAccessException;\n\n\tvoid putMain(Main main) throws DataAccessException;\n\n}", "public interface IRepositoryService {\n\n /**\n * Returns the path to an artifact with the given identifier.\n *\n * @param identifier artifact identifier\n * @return the path to an artifact with the given identifier.\n */\n Path getArtifact(String identifier);\n\n /**\n * Returns the set of paths to the artifacts that the artifact with the given identifier depends on. If the given\n * artifact has no dependencies, returns an empty set.\n *\n * @param identifier artifact identifier\n * @param transitive if {@code false}, returns the immediate dependencies of the artifact; otherwise, returns all\n * dependencies, including dependencies of dependencies\n * @return the set of paths to the dependent artifacts\n */\n Set<Path> getArtifactDependencies(String identifier, boolean transitive);\n\n}", "PiviPackage getPiviPackage();", "public Object caseRRepository(RRepository object) {\n\t\treturn null;\n\t}", "private static List<OBREntry> parseOBRRepository(final ConnectionFactory connectionFactory, URL obrBaseUrl, String repositoryName) throws XPathExpressionException, IOException {\n FixedIndexedRepo fixedIndexedRepo = new FixedIndexedRepo();\n \n AceUrlConnector aceUrlConnector = new AceUrlConnector(connectionFactory);\n Registry registry = new RegistryImpl(aceUrlConnector);\n fixedIndexedRepo.setRegistry(registry);\n \n Map<String, String> properties = new HashMap<>();\n properties.put(FixedIndexedRepo.PROP_LOCATIONS, new URL(obrBaseUrl, repositoryName).toString());\n fixedIndexedRepo.setProperties(properties);\n \n Requirement requirement = new CapReqBuilder(\"osgi.identity\")\n .addDirective(\"filter\", \"(&(osgi.identity=*)(version=*)(type=*))\")\n .buildSyntheticRequirement();\n \n Map<Requirement, Collection<Capability>> sourceResources = fixedIndexedRepo.findProviders(Collections.singleton(requirement));\n if (sourceResources.isEmpty() || sourceResources.get(requirement).isEmpty()) {\n return Collections.emptyList();\n }\n List<OBREntry> obrList = new ArrayList<>();\n Iterator<Capability> capabilities = sourceResources.get(requirement).iterator();\n while (capabilities.hasNext()) {\n Capability capability = capabilities.next();\n \n Resource resource = capability.getResource();\n List<Capability> identities = resource.getCapabilities(IdentityNamespace.IDENTITY_NAMESPACE);\n String bsn = null;\n Version version = null;\n if (identities != null && identities.size() == 1){\n Capability id = identities.get(0);\n bsn = (String) id.getAttributes().get(IdentityNamespace.IDENTITY_NAMESPACE);\n version = (Version) id.getAttributes().get(IdentityNamespace.CAPABILITY_VERSION_ATTRIBUTE);\n }\n \n URI uri = null;\n List<Capability> contentCapabilities = resource.getCapabilities(ContentNamespace.CONTENT_NAMESPACE);\n if (contentCapabilities != null && contentCapabilities.size() == 1) {\n Capability content = contentCapabilities.get(0);\n uri = (URI) content.getAttributes().get(ContentNamespace.CAPABILITY_URL_ATTRIBUTE);\n }\n \n if (bsn != null && uri != null) {\n obrList.add(new OBREntry(bsn, bsn, version.toString(), uri.toString().substring(obrBaseUrl.toString().length())));\n } else {\n throw new IllegalStateException(\"No Identity or multiple identities\");\n }\n }\n\n return obrList;\n }", "public interface FileRepository extends MongoRepository<FileModel,String> {\n}", "public interface IProjectionModel extends IModel {\r\n\r\n /**\r\n * Gets the number of projected years.\r\n * \r\n * @return the number of years\r\n */\r\n int getYears();\r\n\r\n /**\r\n * Gets the number of projected generations.\r\n * \r\n * @return the number of generations\r\n */\r\n int getGenerations();\r\n\r\n /**\r\n * Gets the map parameter instance => Settype.\r\n * \r\n * @return the map from parameter instance to Settypes\r\n */\r\n Map<ParameterInstance, SetType> getInstanceSetTypes();\r\n\r\n /**\r\n * Gets the maximum age.\r\n * \r\n * @return the maximum age\r\n */\r\n int getMaximumAge();\r\n\r\n /**\r\n * Returns list of all {@link SetType} objects, the custom ones and the\r\n * default one.\r\n * \r\n * @return list of all {@link SetType} objects defined in this scenario (at\r\n * least the default {@link SetType} is defined)\r\n */\r\n List<SetType> getAllSetTypes();\r\n\r\n /**\r\n * Returns the {@link SubPopulationModel} this projection assumes.\r\n * \r\n * @return the {@link SubPopulationModel} of the projection\r\n */\r\n SubPopulationModel getSubPopulationModel();\r\n\r\n}", "@Override\n public ConfigRepositoryConfig getConfigRepositoryConfig(){\n outObject = \"getConfigRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (ConfigRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (ConfigRepositoryConfig) inObject;\n }", "@NonNull\n RepoPackage getPackage();", "public interface ModeloRepository extends CrudRepository<Modelo, Long> {\n}", "public interface SmooksTransformModel extends TransformModel {\n\n /** The \"smooks\" name. */\n public static final String SMOOKS = \"smooks\";\n\n /** The \"config\" name. */\n public static final String CONFIG = \"config\";\n \n /** The \"type\" name. */\n public static final String TYPE = \"type\";\n\n /** The \"reportPath\" name. */\n public static final String REPORT_PATH = \"reportPath\";\n \n /**\n * Gets the type attribute.\n * @return the type attribute\n */\n public String getTransformType();\n\n /**\n * Sets the type attribute.\n * @param type the type attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setTransformType(String type);\n\n /**\n * Gets the config attribute.\n * @return the config attribute\n */\n public String getConfig();\n\n\n /**\n * Sets the config attribute.\n * @param config the config attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setConfig(String config);\n\n /**\n * Gets the reportPath attribute.\n * @return the reportPath attribute\n */\n public String getReportPath();\n\n /**\n * Sets the reportPath attribute.\n * @param reportPath the reportPath attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setReportPath(String reportPath);\n\n}", "public interface RepositoryKey {\n\n}", "public interface MasterSyncLanguageRepository extends BaseRepository<MasterLanguage, String> {\n\n\t\n\n}", "RepositoryConfiguration getRepositoryConfiguration();", "public static DescriptorRepository readDescriptorRepository(String filename) {\n LOG.info( \"Processing Repository: \" + filename);\n try {\n return (DescriptorRepository) buildRepository(filename, DescriptorRepository.class);\n } catch (Exception e) {\n LOG.error(\"Unable to process descriptor repository: \" + filename);\n LOG.error( e.getMessage() );\n // Explicitly not logging the exception - it has already been dumped by earlier logging \n }\n return null;\n }", "public interface RsvpRepository {\n\n void save(Rsvp rsvp) throws DataAccessException; \n \n}" ]
[ "0.67354804", "0.61860555", "0.61802983", "0.5839606", "0.5833022", "0.5783414", "0.5773379", "0.5773379", "0.57005286", "0.56687605", "0.5620468", "0.5616606", "0.55966794", "0.5590832", "0.5582918", "0.55592805", "0.5542334", "0.5515665", "0.5494401", "0.54648006", "0.5464324", "0.5440469", "0.54289883", "0.5427522", "0.54036534", "0.53914183", "0.5386038", "0.5382523", "0.53732353", "0.5368823", "0.53685176", "0.5354865", "0.5346933", "0.5340365", "0.533037", "0.5327394", "0.5327003", "0.5320659", "0.53147763", "0.5304295", "0.5302794", "0.5302583", "0.5291074", "0.52880937", "0.52846056", "0.52834666", "0.52833956", "0.52597356", "0.5257719", "0.52565604", "0.5253315", "0.5243265", "0.52323425", "0.5226987", "0.52252203", "0.52224267", "0.52177066", "0.5213442", "0.5208779", "0.52063566", "0.5202547", "0.5196913", "0.51820487", "0.5181634", "0.51814324", "0.5176997", "0.5173099", "0.51690197", "0.51550585", "0.5151203", "0.5150668", "0.5150668", "0.5140878", "0.5124239", "0.5123937", "0.5111352", "0.5108914", "0.5108176", "0.51032495", "0.5097714", "0.50974506", "0.5094308", "0.5088631", "0.50862557", "0.5084937", "0.5077485", "0.50592244", "0.5045934", "0.5037877", "0.50280863", "0.50224984", "0.50202245", "0.5019363", "0.501756", "0.50159425", "0.5015234", "0.5015107", "0.5014377", "0.5011876", "0.50080454" ]
0.69727916
0
return (System) this.readXMIModel(model_fn, de.uka.ipd.sdq.pcm.system.SystemPackage.class.getName());
public static System readSystem(final String model_fn, final ResourceSet resourceSet) throws IOException { return (System) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.system.SystemPackage.eINSTANCE, model_fn, resourceSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.hyperflex.roscomponentmodel.System getSystem();", "public double[][] getSystemInputModel()\n {\n return systemInputModel;\n }", "public AS400 getSystem() {\r\n return system;\r\n }", "public String getSystem() {\r\n return this.system;\r\n }", "public UnitSystems GetCurrentUnitSystem()\n {\n return MethodsCommon.GetSystemFromUnit(Unit, false, true);\n }", "public MSRModel getMSRModel() throws DeviceException;", "public ShipSystem getSystem() {\n return system;\n }", "protected SystemInputDef getResponseInputModel( OpenAPI api)\n {\n SystemInputDef inputDef = TcasesOpenApi.getResponseInputModel( api, getModelOptions());\n return inputDef;\n }", "public String getIsSystem() {\n return isSystem;\n }", "System createSystem();", "SystemParamModel createSystemParamModel();", "public abstract String getSystem( );", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "protected SystemInputDef getRequestInputModel( OpenAPI api)\n {\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api, getModelOptions());\n return inputDef;\n }", "public String getSystemType() {\n \t\treturn fSystemType;\n \t}", "public SystemInterface GET_SYSTEM_INTERFACE() throws SystemException {\r\n\t\treturn commandResponder.getSystemInterface();\r\n\t}", "public static UnitSystems GetUnitSystem(Units unit)\n {\n return MethodsCommon.GetSystemFromUnit(unit, false, true);\n }", "public TypeSystemNode getTypeSystemNode() {\r\n return typeSystemNode;\r\n }", "private SpaceSystemType getSpaceSystemByName(String systemName, SpaceSystemType startingSystem)\n {\n // Search the space system hierarchy, beginning at the specified space system\n return searchSpaceSystemsForName(systemName, startingSystem, null);\n }", "public final boolean isSystem() {\n\t\treturn m_info.isSystem();\n\t}", "public abstract <T extends BaseSlingModel> T getModel();", "java.lang.String getSystem();", "public interface SysmlPackage extends EPackage {\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString copyright = \"*********************************************************************************************\\r\\nCopyright (c) 2014 Model-Based Systems Engineering Center, Georgia Institute of Technology.\\r\\n http://www.mbse.gatech.edu/\\r\\n http://www.mbsec.gatech.edu/research/oslc\\r\\n\\r\\n All rights reserved. This program and the accompanying materials\\r\\n are made available under the terms of the Eclipse Public License v1.0\\r\\n and Eclipse Distribution License v. 1.0 which accompanies this distribution.\\r\\n \\r\\n The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html\\r\\n and the Eclipse Distribution License is available at\\r\\n http://www.eclipse.org/org/documents/edl-v10.php.\\r\\n \\r\\n Contributors:\\r\\n \\r\\n Axel Reichwein, Koneksys (axel.reichwein@koneksys.com) \\r\\n*******************************************************************************************\";\r\n\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"sysml\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http://open-services.net/ns/mbse\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"sysml\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tSysmlPackage eINSTANCE = sysml.impl.SysmlPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.NamedElementImpl <em>Named Element</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.NamedElementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getNamedElement()\r\n\t * @generated\r\n\t */\r\n\tint NAMED_ELEMENT = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint NAMED_ELEMENT__NAME = 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Named Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint NAMED_ELEMENT_FEATURE_COUNT = 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Named Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint NAMED_ELEMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ModelImpl <em>Model</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ModelImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getModel()\r\n\t * @generated\r\n\t */\r\n\tint MODEL = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Package</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL__PACKAGE = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MODEL_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PackageImpl <em>Package</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PackageImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getPackage()\r\n\t * @generated\r\n\t */\r\n\tint PACKAGE = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Block</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__BLOCK = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Requirement</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE__REQUIREMENT = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Package</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Package</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PACKAGE_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.OwnedElementImpl <em>Owned Element</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.OwnedElementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getOwnedElement()\r\n\t * @generated\r\n\t */\r\n\tint OWNED_ELEMENT = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OWNED_ELEMENT__OWNER = 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Owned Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OWNED_ELEMENT_FEATURE_COUNT = 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Owned Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OWNED_ELEMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.RequirementImpl <em>Requirement</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.RequirementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getRequirement()\r\n\t * @generated\r\n\t */\r\n\tint REQUIREMENT = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Satisfied By</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__SATISFIED_BY = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Master</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__MASTER = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Refines</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__REFINES = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__ID = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Text</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__TEXT = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Derived</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__DERIVED = 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Sub Requirement</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__SUB_REQUIREMENT = 6;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__NAME = 7;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Derived From</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__DERIVED_FROM = 8;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Hyperlink</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT__HYPERLINK = 9;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Requirement</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT_FEATURE_COUNT = 10;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Requirement</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REQUIREMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.BlockImpl <em>Block</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.BlockImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getBlock()\r\n\t * @generated\r\n\t */\r\n\tint BLOCK = 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Part Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__PART_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Reference Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__REFERENCE_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Flow Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__FLOW_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Value Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__VALUE_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Nested Block</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__NESTED_BLOCK = NAMED_ELEMENT_FEATURE_COUNT + 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Inherited Block</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__INHERITED_BLOCK = NAMED_ELEMENT_FEATURE_COUNT + 6;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Satisfy</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__SATISFY = NAMED_ELEMENT_FEATURE_COUNT + 7;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Connector</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__CONNECTOR = NAMED_ELEMENT_FEATURE_COUNT + 8;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Internal Block Diagram</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__INTERNAL_BLOCK_DIAGRAM = NAMED_ELEMENT_FEATURE_COUNT + 9;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__PORT = NAMED_ELEMENT_FEATURE_COUNT + 10;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Proxy Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__PROXY_PORT = NAMED_ELEMENT_FEATURE_COUNT + 11;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Full Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK__FULL_PORT = NAMED_ELEMENT_FEATURE_COUNT + 12;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 13;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.InterfaceBlockImpl <em>Interface Block</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.InterfaceBlockImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getInterfaceBlock()\r\n\t * @generated\r\n\t */\r\n\tint INTERFACE_BLOCK = 6;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Flow Property</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__FLOW_PROPERTY = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Proxy Port</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK__PROXY_PORT = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Interface Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Interface Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERFACE_BLOCK_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.AssociationImpl <em>Association</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.AssociationImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getAssociation()\r\n\t * @generated\r\n\t */\r\n\tint ASSOCIATION = 14;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Association</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Association</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.AssociationBlockImpl <em>Association Block</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.AssociationBlockImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getAssociationBlock()\r\n\t * @generated\r\n\t */\r\n\tint ASSOCIATION_BLOCK = 7;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK__NAME = ASSOCIATION__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Member End</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK__MEMBER_END = ASSOCIATION_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Association Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK_FEATURE_COUNT = ASSOCIATION_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Association Block</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ASSOCIATION_BLOCK_OPERATION_COUNT = ASSOCIATION_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PropertyImpl <em>Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getProperty()\r\n\t * @generated\r\n\t */\r\n\tint PROPERTY = 8;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__LOWER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__UPPER = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY__TYPE = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROPERTY_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PartPropertyImpl <em>Part Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PartPropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getPartProperty()\r\n\t * @generated\r\n\t */\r\n\tint PART_PROPERTY = 9;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Part Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Part Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PART_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ReferencePropertyImpl <em>Reference Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ReferencePropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getReferenceProperty()\r\n\t * @generated\r\n\t */\r\n\tint REFERENCE_PROPERTY = 10;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Association</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY__ASSOCIATION = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Reference Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Reference Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint REFERENCE_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.FlowPropertyImpl <em>Flow Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.FlowPropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getFlowProperty()\r\n\t * @generated\r\n\t */\r\n\tint FLOW_PROPERTY = 11;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Direction</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY__DIRECTION = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Flow Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Flow Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FLOW_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ValuePropertyImpl <em>Value Property</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ValuePropertyImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getValueProperty()\r\n\t * @generated\r\n\t */\r\n\tint VALUE_PROPERTY = 12;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Default Value</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY__DEFAULT_VALUE = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Value Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Value Property</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_PROPERTY_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.MultiplicityElementImpl <em>Multiplicity Element</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.MultiplicityElementImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getMultiplicityElement()\r\n\t * @generated\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT = 13;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT__LOWER = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT__UPPER = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Multiplicity Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Multiplicity Element</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint MULTIPLICITY_ELEMENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.PortImpl <em>Port</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.PortImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getPort()\r\n\t * @generated\r\n\t */\r\n\tint PORT = 15;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__NAME = PROPERTY__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__LOWER = PROPERTY__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__UPPER = PROPERTY__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__OWNER = PROPERTY__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__TYPE = PROPERTY__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Service</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__IS_SERVICE = PROPERTY_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Behavior</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__IS_BEHAVIOR = PROPERTY_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Conjugated</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT__IS_CONJUGATED = PROPERTY_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT_FEATURE_COUNT = PROPERTY_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PORT_OPERATION_COUNT = PROPERTY_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ProxyPortImpl <em>Proxy Port</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ProxyPortImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getProxyPort()\r\n\t * @generated\r\n\t */\r\n\tint PROXY_PORT = 16;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__NAME = PORT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__LOWER = PORT__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__UPPER = PORT__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__OWNER = PORT__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__TYPE = PORT__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Service</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__IS_SERVICE = PORT__IS_SERVICE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Behavior</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__IS_BEHAVIOR = PORT__IS_BEHAVIOR;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Conjugated</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT__IS_CONJUGATED = PORT__IS_CONJUGATED;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Proxy Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT_FEATURE_COUNT = PORT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Proxy Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint PROXY_PORT_OPERATION_COUNT = PORT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.FullPortImpl <em>Full Port</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.FullPortImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getFullPort()\r\n\t * @generated\r\n\t */\r\n\tint FULL_PORT = 17;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__NAME = PORT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__LOWER = PORT__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__UPPER = PORT__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__OWNER = PORT__OWNER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__TYPE = PORT__TYPE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Service</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__IS_SERVICE = PORT__IS_SERVICE;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Behavior</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__IS_BEHAVIOR = PORT__IS_BEHAVIOR;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Is Conjugated</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT__IS_CONJUGATED = PORT__IS_CONJUGATED;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Full Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT_FEATURE_COUNT = PORT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Full Port</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint FULL_PORT_OPERATION_COUNT = PORT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ConnectorImpl <em>Connector</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ConnectorImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getConnector()\r\n\t * @generated\r\n\t */\r\n\tint CONNECTOR = 18;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>End</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__END = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Type</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR__TYPE = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Connector</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Connector</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ConnectorEndImpl <em>Connector End</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ConnectorEndImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tint CONNECTOR_END = 19;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Lower</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__LOWER = MULTIPLICITY_ELEMENT__LOWER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Upper</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__UPPER = MULTIPLICITY_ELEMENT__UPPER;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__OWNER = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Role</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__ROLE = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Defining End</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__DEFINING_END = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Part With Port</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END__PART_WITH_PORT = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Connector End</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END_FEATURE_COUNT = MULTIPLICITY_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Connector End</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint CONNECTOR_END_OPERATION_COUNT = MULTIPLICITY_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ItemFlowImpl <em>Item Flow</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ItemFlowImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tint ITEM_FLOW = 20;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Item Property</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__ITEM_PROPERTY = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Information Target</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__INFORMATION_TARGET = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Information Source</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__INFORMATION_SOURCE = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Realizing Connector</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW__REALIZING_CONNECTOR = 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Item Flow</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW_FEATURE_COUNT = 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Item Flow</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ITEM_FLOW_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.TypeImpl <em>Type</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.TypeImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getType()\r\n\t * @generated\r\n\t */\r\n\tint TYPE = 24;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TYPE_FEATURE_COUNT = 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TYPE_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.ValueTypeImpl <em>Value Type</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.ValueTypeImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getValueType()\r\n\t * @generated\r\n\t */\r\n\tint VALUE_TYPE = 21;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE__NAME = TYPE_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Unit</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE__UNIT = TYPE_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Quantity Kind</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE__QUANTITY_KIND = TYPE_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Value Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE_FEATURE_COUNT = TYPE_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Value Type</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint VALUE_TYPE_OPERATION_COUNT = TYPE_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.UnitImpl <em>Unit</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.UnitImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getUnit()\r\n\t * @generated\r\n\t */\r\n\tint UNIT = 22;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Symbol</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__SYMBOL = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__DESCRIPTION = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Definition URI</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__DEFINITION_URI = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Quantity Kind</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT__QUANTITY_KIND = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Unit</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 4;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Unit</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint UNIT_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.QuantityKindImpl <em>Quantity Kind</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.QuantityKindImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tint QUANTITY_KIND = 23;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Symbol</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__SYMBOL = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__DESCRIPTION = NAMED_ELEMENT_FEATURE_COUNT + 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Definition URI</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND__DEFINITION_URI = NAMED_ELEMENT_FEATURE_COUNT + 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Quantity Kind</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Quantity Kind</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint QUANTITY_KIND_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.BlockDiagramImpl <em>Block Diagram</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.BlockDiagramImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getBlockDiagram()\r\n\t * @generated\r\n\t */\r\n\tint BLOCK_DIAGRAM = 25;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_DIAGRAM__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_DIAGRAM_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BLOCK_DIAGRAM_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.impl.InternalBlockDiagramImpl <em>Internal Block Diagram</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.impl.InternalBlockDiagramImpl\r\n\t * @see sysml.impl.SysmlPackageImpl#getInternalBlockDiagram()\r\n\t * @generated\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM = 26;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM__NAME = NAMED_ELEMENT__NAME;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Internal Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Internal Block Diagram</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint INTERNAL_BLOCK_DIAGRAM_OPERATION_COUNT = NAMED_ELEMENT_OPERATION_COUNT + 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link sysml.FlowDirection <em>Flow Direction</em>}' enum.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see sysml.FlowDirection\r\n\t * @see sysml.impl.SysmlPackageImpl#getFlowDirection()\r\n\t * @generated\r\n\t */\r\n\tint FLOW_DIRECTION = 27;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Model <em>Model</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Model</em>'.\r\n\t * @see sysml.Model\r\n\t * @generated\r\n\t */\r\n\tEClass getModel();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Model#getPackage <em>Package</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Package</em>'.\r\n\t * @see sysml.Model#getPackage()\r\n\t * @see #getModel()\r\n\t * @generated\r\n\t */\r\n\tEReference getModel_Package();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Package <em>Package</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Package</em>'.\r\n\t * @see sysml.Package\r\n\t * @generated\r\n\t */\r\n\tEClass getPackage();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Package#getBlock <em>Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Block</em>'.\r\n\t * @see sysml.Package#getBlock()\r\n\t * @see #getPackage()\r\n\t * @generated\r\n\t */\r\n\tEReference getPackage_Block();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Package#getRequirement <em>Requirement</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Requirement</em>'.\r\n\t * @see sysml.Package#getRequirement()\r\n\t * @see #getPackage()\r\n\t * @generated\r\n\t */\r\n\tEReference getPackage_Requirement();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.NamedElement <em>Named Element</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Named Element</em>'.\r\n\t * @see sysml.NamedElement\r\n\t * @generated\r\n\t */\r\n\tEClass getNamedElement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.NamedElement#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see sysml.NamedElement#getName()\r\n\t * @see #getNamedElement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getNamedElement_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.OwnedElement <em>Owned Element</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Owned Element</em>'.\r\n\t * @see sysml.OwnedElement\r\n\t * @generated\r\n\t */\r\n\tEClass getOwnedElement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.OwnedElement#getOwner <em>Owner</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Owner</em>'.\r\n\t * @see sysml.OwnedElement#getOwner()\r\n\t * @see #getOwnedElement()\r\n\t * @generated\r\n\t */\r\n\tEReference getOwnedElement_Owner();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Requirement <em>Requirement</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Requirement</em>'.\r\n\t * @see sysml.Requirement\r\n\t * @generated\r\n\t */\r\n\tEClass getRequirement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getSatisfiedBy <em>Satisfied By</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Satisfied By</em>'.\r\n\t * @see sysml.Requirement#getSatisfiedBy()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_SatisfiedBy();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Requirement#getMaster <em>Master</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Master</em>'.\r\n\t * @see sysml.Requirement#getMaster()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_Master();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getRefines <em>Refines</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Refines</em>'.\r\n\t * @see sysml.Requirement#getRefines()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_Refines();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getId <em>Id</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Id</em>'.\r\n\t * @see sysml.Requirement#getId()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Id();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getText <em>Text</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Text</em>'.\r\n\t * @see sysml.Requirement#getText()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Text();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getDerived <em>Derived</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Derived</em>'.\r\n\t * @see sysml.Requirement#getDerived()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_Derived();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getSubRequirement <em>Sub Requirement</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Sub Requirement</em>'.\r\n\t * @see sysml.Requirement#getSubRequirement()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_SubRequirement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see sysml.Requirement#getName()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Requirement#getDerivedFrom <em>Derived From</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Derived From</em>'.\r\n\t * @see sysml.Requirement#getDerivedFrom()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEReference getRequirement_DerivedFrom();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Requirement#getHyperlink <em>Hyperlink</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Hyperlink</em>'.\r\n\t * @see sysml.Requirement#getHyperlink()\r\n\t * @see #getRequirement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getRequirement_Hyperlink();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Block <em>Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Block</em>'.\r\n\t * @see sysml.Block\r\n\t * @generated\r\n\t */\r\n\tEClass getBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getPartProperty <em>Part Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Part Property</em>'.\r\n\t * @see sysml.Block#getPartProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_PartProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getReferenceProperty <em>Reference Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Reference Property</em>'.\r\n\t * @see sysml.Block#getReferenceProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_ReferenceProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getFlowProperty <em>Flow Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Flow Property</em>'.\r\n\t * @see sysml.Block#getFlowProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_FlowProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getValueProperty <em>Value Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Value Property</em>'.\r\n\t * @see sysml.Block#getValueProperty()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_ValueProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getNestedBlock <em>Nested Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Nested Block</em>'.\r\n\t * @see sysml.Block#getNestedBlock()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_NestedBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getInheritedBlock <em>Inherited Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Inherited Block</em>'.\r\n\t * @see sysml.Block#getInheritedBlock()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_InheritedBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getSatisfy <em>Satisfy</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Satisfy</em>'.\r\n\t * @see sysml.Block#getSatisfy()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_Satisfy();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getConnector <em>Connector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Connector</em>'.\r\n\t * @see sysml.Block#getConnector()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_Connector();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getInternalBlockDiagram <em>Internal Block Diagram</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Internal Block Diagram</em>'.\r\n\t * @see sysml.Block#getInternalBlockDiagram()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_InternalBlockDiagram();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getPort <em>Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Port</em>'.\r\n\t * @see sysml.Block#getPort()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_Port();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getProxyPort <em>Proxy Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Proxy Port</em>'.\r\n\t * @see sysml.Block#getProxyPort()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_ProxyPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Block#getFullPort <em>Full Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Full Port</em>'.\r\n\t * @see sysml.Block#getFullPort()\r\n\t * @see #getBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getBlock_FullPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.InterfaceBlock <em>Interface Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Interface Block</em>'.\r\n\t * @see sysml.InterfaceBlock\r\n\t * @generated\r\n\t */\r\n\tEClass getInterfaceBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.InterfaceBlock#getFlowProperty <em>Flow Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Flow Property</em>'.\r\n\t * @see sysml.InterfaceBlock#getFlowProperty()\r\n\t * @see #getInterfaceBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getInterfaceBlock_FlowProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.InterfaceBlock#getProxyPort <em>Proxy Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Proxy Port</em>'.\r\n\t * @see sysml.InterfaceBlock#getProxyPort()\r\n\t * @see #getInterfaceBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getInterfaceBlock_ProxyPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.AssociationBlock <em>Association Block</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Association Block</em>'.\r\n\t * @see sysml.AssociationBlock\r\n\t * @generated\r\n\t */\r\n\tEClass getAssociationBlock();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.AssociationBlock#getMemberEnd <em>Member End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Member End</em>'.\r\n\t * @see sysml.AssociationBlock#getMemberEnd()\r\n\t * @see #getAssociationBlock()\r\n\t * @generated\r\n\t */\r\n\tEReference getAssociationBlock_MemberEnd();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Property <em>Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Property</em>'.\r\n\t * @see sysml.Property\r\n\t * @generated\r\n\t */\r\n\tEClass getProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Property#getType <em>Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Type</em>'.\r\n\t * @see sysml.Property#getType()\r\n\t * @see #getProperty()\r\n\t * @generated\r\n\t */\r\n\tEReference getProperty_Type();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.PartProperty <em>Part Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Part Property</em>'.\r\n\t * @see sysml.PartProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getPartProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ReferenceProperty <em>Reference Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Reference Property</em>'.\r\n\t * @see sysml.ReferenceProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getReferenceProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ReferenceProperty#getAssociation <em>Association</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Association</em>'.\r\n\t * @see sysml.ReferenceProperty#getAssociation()\r\n\t * @see #getReferenceProperty()\r\n\t * @generated\r\n\t */\r\n\tEReference getReferenceProperty_Association();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.FlowProperty <em>Flow Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Flow Property</em>'.\r\n\t * @see sysml.FlowProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getFlowProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.FlowProperty#getDirection <em>Direction</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Direction</em>'.\r\n\t * @see sysml.FlowProperty#getDirection()\r\n\t * @see #getFlowProperty()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getFlowProperty_Direction();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ValueProperty <em>Value Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Value Property</em>'.\r\n\t * @see sysml.ValueProperty\r\n\t * @generated\r\n\t */\r\n\tEClass getValueProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.ValueProperty#getDefaultValue <em>Default Value</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Default Value</em>'.\r\n\t * @see sysml.ValueProperty#getDefaultValue()\r\n\t * @see #getValueProperty()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getValueProperty_DefaultValue();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.MultiplicityElement <em>Multiplicity Element</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Multiplicity Element</em>'.\r\n\t * @see sysml.MultiplicityElement\r\n\t * @generated\r\n\t */\r\n\tEClass getMultiplicityElement();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.MultiplicityElement#getLower <em>Lower</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Lower</em>'.\r\n\t * @see sysml.MultiplicityElement#getLower()\r\n\t * @see #getMultiplicityElement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getMultiplicityElement_Lower();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.MultiplicityElement#getUpper <em>Upper</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Upper</em>'.\r\n\t * @see sysml.MultiplicityElement#getUpper()\r\n\t * @see #getMultiplicityElement()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getMultiplicityElement_Upper();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Association <em>Association</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Association</em>'.\r\n\t * @see sysml.Association\r\n\t * @generated\r\n\t */\r\n\tEClass getAssociation();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Port <em>Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Port</em>'.\r\n\t * @see sysml.Port\r\n\t * @generated\r\n\t */\r\n\tEClass getPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Port#isIsService <em>Is Service</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Is Service</em>'.\r\n\t * @see sysml.Port#isIsService()\r\n\t * @see #getPort()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getPort_IsService();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Port#isIsBehavior <em>Is Behavior</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Is Behavior</em>'.\r\n\t * @see sysml.Port#isIsBehavior()\r\n\t * @see #getPort()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getPort_IsBehavior();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Port#isIsConjugated <em>Is Conjugated</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Is Conjugated</em>'.\r\n\t * @see sysml.Port#isIsConjugated()\r\n\t * @see #getPort()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getPort_IsConjugated();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ProxyPort <em>Proxy Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Proxy Port</em>'.\r\n\t * @see sysml.ProxyPort\r\n\t * @generated\r\n\t */\r\n\tEClass getProxyPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.FullPort <em>Full Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Full Port</em>'.\r\n\t * @see sysml.FullPort\r\n\t * @generated\r\n\t */\r\n\tEClass getFullPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Connector <em>Connector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Connector</em>'.\r\n\t * @see sysml.Connector\r\n\t * @generated\r\n\t */\r\n\tEClass getConnector();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link sysml.Connector#getEnd <em>End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>End</em>'.\r\n\t * @see sysml.Connector#getEnd()\r\n\t * @see #getConnector()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnector_End();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Connector#getType <em>Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Type</em>'.\r\n\t * @see sysml.Connector#getType()\r\n\t * @see #getConnector()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnector_Type();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ConnectorEnd <em>Connector End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Connector End</em>'.\r\n\t * @see sysml.ConnectorEnd\r\n\t * @generated\r\n\t */\r\n\tEClass getConnectorEnd();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ConnectorEnd#getRole <em>Role</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Role</em>'.\r\n\t * @see sysml.ConnectorEnd#getRole()\r\n\t * @see #getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnectorEnd_Role();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ConnectorEnd#getDefiningEnd <em>Defining End</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Defining End</em>'.\r\n\t * @see sysml.ConnectorEnd#getDefiningEnd()\r\n\t * @see #getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnectorEnd_DefiningEnd();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ConnectorEnd#getPartWithPort <em>Part With Port</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Part With Port</em>'.\r\n\t * @see sysml.ConnectorEnd#getPartWithPort()\r\n\t * @see #getConnectorEnd()\r\n\t * @generated\r\n\t */\r\n\tEReference getConnectorEnd_PartWithPort();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ItemFlow <em>Item Flow</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Item Flow</em>'.\r\n\t * @see sysml.ItemFlow\r\n\t * @generated\r\n\t */\r\n\tEClass getItemFlow();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getItemProperty <em>Item Property</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Item Property</em>'.\r\n\t * @see sysml.ItemFlow#getItemProperty()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_ItemProperty();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getInformationTarget <em>Information Target</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Information Target</em>'.\r\n\t * @see sysml.ItemFlow#getInformationTarget()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_InformationTarget();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getInformationSource <em>Information Source</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Information Source</em>'.\r\n\t * @see sysml.ItemFlow#getInformationSource()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_InformationSource();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ItemFlow#getRealizingConnector <em>Realizing Connector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Realizing Connector</em>'.\r\n\t * @see sysml.ItemFlow#getRealizingConnector()\r\n\t * @see #getItemFlow()\r\n\t * @generated\r\n\t */\r\n\tEReference getItemFlow_RealizingConnector();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.ValueType <em>Value Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Value Type</em>'.\r\n\t * @see sysml.ValueType\r\n\t * @generated\r\n\t */\r\n\tEClass getValueType();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ValueType#getUnit <em>Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Unit</em>'.\r\n\t * @see sysml.ValueType#getUnit()\r\n\t * @see #getValueType()\r\n\t * @generated\r\n\t */\r\n\tEReference getValueType_Unit();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.ValueType#getQuantityKind <em>Quantity Kind</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Quantity Kind</em>'.\r\n\t * @see sysml.ValueType#getQuantityKind()\r\n\t * @see #getValueType()\r\n\t * @generated\r\n\t */\r\n\tEReference getValueType_QuantityKind();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Unit <em>Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Unit</em>'.\r\n\t * @see sysml.Unit\r\n\t * @generated\r\n\t */\r\n\tEClass getUnit();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Unit#getSymbol <em>Symbol</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Symbol</em>'.\r\n\t * @see sysml.Unit#getSymbol()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getUnit_Symbol();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Unit#getDescription <em>Description</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Description</em>'.\r\n\t * @see sysml.Unit#getDescription()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getUnit_Description();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.Unit#getDefinitionURI <em>Definition URI</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Definition URI</em>'.\r\n\t * @see sysml.Unit#getDefinitionURI()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getUnit_DefinitionURI();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link sysml.Unit#getQuantityKind <em>Quantity Kind</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Quantity Kind</em>'.\r\n\t * @see sysml.Unit#getQuantityKind()\r\n\t * @see #getUnit()\r\n\t * @generated\r\n\t */\r\n\tEReference getUnit_QuantityKind();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.QuantityKind <em>Quantity Kind</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Quantity Kind</em>'.\r\n\t * @see sysml.QuantityKind\r\n\t * @generated\r\n\t */\r\n\tEClass getQuantityKind();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.QuantityKind#getSymbol <em>Symbol</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Symbol</em>'.\r\n\t * @see sysml.QuantityKind#getSymbol()\r\n\t * @see #getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getQuantityKind_Symbol();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.QuantityKind#getDescription <em>Description</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Description</em>'.\r\n\t * @see sysml.QuantityKind#getDescription()\r\n\t * @see #getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getQuantityKind_Description();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link sysml.QuantityKind#getDefinitionURI <em>Definition URI</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Definition URI</em>'.\r\n\t * @see sysml.QuantityKind#getDefinitionURI()\r\n\t * @see #getQuantityKind()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getQuantityKind_DefinitionURI();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.Type <em>Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Type</em>'.\r\n\t * @see sysml.Type\r\n\t * @generated\r\n\t */\r\n\tEClass getType();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.BlockDiagram <em>Block Diagram</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Block Diagram</em>'.\r\n\t * @see sysml.BlockDiagram\r\n\t * @generated\r\n\t */\r\n\tEClass getBlockDiagram();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link sysml.InternalBlockDiagram <em>Internal Block Diagram</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Internal Block Diagram</em>'.\r\n\t * @see sysml.InternalBlockDiagram\r\n\t * @generated\r\n\t */\r\n\tEClass getInternalBlockDiagram();\r\n\r\n\t/**\r\n\t * Returns the meta object for enum '{@link sysml.FlowDirection <em>Flow Direction</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for enum '<em>Flow Direction</em>'.\r\n\t * @see sysml.FlowDirection\r\n\t * @generated\r\n\t */\r\n\tEEnum getFlowDirection();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tSysmlFactory getSysmlFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each operation of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ModelImpl <em>Model</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ModelImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getModel()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass MODEL = eINSTANCE.getModel();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Package</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference MODEL__PACKAGE = eINSTANCE.getModel_Package();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PackageImpl <em>Package</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PackageImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getPackage()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PACKAGE = eINSTANCE.getPackage();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Block</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference PACKAGE__BLOCK = eINSTANCE.getPackage_Block();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Requirement</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference PACKAGE__REQUIREMENT = eINSTANCE.getPackage_Requirement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.NamedElementImpl <em>Named Element</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.NamedElementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getNamedElement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass NAMED_ELEMENT = eINSTANCE.getNamedElement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.OwnedElementImpl <em>Owned Element</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.OwnedElementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getOwnedElement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OWNED_ELEMENT = eINSTANCE.getOwnedElement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Owner</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OWNED_ELEMENT__OWNER = eINSTANCE.getOwnedElement_Owner();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.RequirementImpl <em>Requirement</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.RequirementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getRequirement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass REQUIREMENT = eINSTANCE.getRequirement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Satisfied By</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__SATISFIED_BY = eINSTANCE.getRequirement_SatisfiedBy();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Master</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__MASTER = eINSTANCE.getRequirement_Master();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Refines</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__REFINES = eINSTANCE.getRequirement_Refines();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__ID = eINSTANCE.getRequirement_Id();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Text</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__TEXT = eINSTANCE.getRequirement_Text();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Derived</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__DERIVED = eINSTANCE.getRequirement_Derived();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Sub Requirement</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__SUB_REQUIREMENT = eINSTANCE.getRequirement_SubRequirement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__NAME = eINSTANCE.getRequirement_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Derived From</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REQUIREMENT__DERIVED_FROM = eINSTANCE.getRequirement_DerivedFrom();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Hyperlink</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute REQUIREMENT__HYPERLINK = eINSTANCE.getRequirement_Hyperlink();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.BlockImpl <em>Block</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.BlockImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getBlock()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BLOCK = eINSTANCE.getBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Part Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__PART_PROPERTY = eINSTANCE.getBlock_PartProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Reference Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__REFERENCE_PROPERTY = eINSTANCE.getBlock_ReferenceProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Flow Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__FLOW_PROPERTY = eINSTANCE.getBlock_FlowProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Value Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__VALUE_PROPERTY = eINSTANCE.getBlock_ValueProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Nested Block</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__NESTED_BLOCK = eINSTANCE.getBlock_NestedBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Inherited Block</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__INHERITED_BLOCK = eINSTANCE.getBlock_InheritedBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Satisfy</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__SATISFY = eINSTANCE.getBlock_Satisfy();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Connector</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__CONNECTOR = eINSTANCE.getBlock_Connector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Internal Block Diagram</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__INTERNAL_BLOCK_DIAGRAM = eINSTANCE.getBlock_InternalBlockDiagram();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__PORT = eINSTANCE.getBlock_Port();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Proxy Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__PROXY_PORT = eINSTANCE.getBlock_ProxyPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Full Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference BLOCK__FULL_PORT = eINSTANCE.getBlock_FullPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.InterfaceBlockImpl <em>Interface Block</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.InterfaceBlockImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getInterfaceBlock()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass INTERFACE_BLOCK = eINSTANCE.getInterfaceBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Flow Property</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference INTERFACE_BLOCK__FLOW_PROPERTY = eINSTANCE.getInterfaceBlock_FlowProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Proxy Port</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference INTERFACE_BLOCK__PROXY_PORT = eINSTANCE.getInterfaceBlock_ProxyPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.AssociationBlockImpl <em>Association Block</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.AssociationBlockImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getAssociationBlock()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ASSOCIATION_BLOCK = eINSTANCE.getAssociationBlock();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Member End</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ASSOCIATION_BLOCK__MEMBER_END = eINSTANCE.getAssociationBlock_MemberEnd();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PropertyImpl <em>Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PROPERTY = eINSTANCE.getProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Type</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference PROPERTY__TYPE = eINSTANCE.getProperty_Type();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PartPropertyImpl <em>Part Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PartPropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getPartProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PART_PROPERTY = eINSTANCE.getPartProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ReferencePropertyImpl <em>Reference Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ReferencePropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getReferenceProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass REFERENCE_PROPERTY = eINSTANCE.getReferenceProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Association</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference REFERENCE_PROPERTY__ASSOCIATION = eINSTANCE.getReferenceProperty_Association();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.FlowPropertyImpl <em>Flow Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.FlowPropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getFlowProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass FLOW_PROPERTY = eINSTANCE.getFlowProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Direction</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute FLOW_PROPERTY__DIRECTION = eINSTANCE.getFlowProperty_Direction();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ValuePropertyImpl <em>Value Property</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ValuePropertyImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getValueProperty()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass VALUE_PROPERTY = eINSTANCE.getValueProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Default Value</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute VALUE_PROPERTY__DEFAULT_VALUE = eINSTANCE.getValueProperty_DefaultValue();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.MultiplicityElementImpl <em>Multiplicity Element</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.MultiplicityElementImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getMultiplicityElement()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass MULTIPLICITY_ELEMENT = eINSTANCE.getMultiplicityElement();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Lower</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute MULTIPLICITY_ELEMENT__LOWER = eINSTANCE.getMultiplicityElement_Lower();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Upper</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute MULTIPLICITY_ELEMENT__UPPER = eINSTANCE.getMultiplicityElement_Upper();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.AssociationImpl <em>Association</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.AssociationImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getAssociation()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ASSOCIATION = eINSTANCE.getAssociation();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.PortImpl <em>Port</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.PortImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getPort()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PORT = eINSTANCE.getPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Is Service</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute PORT__IS_SERVICE = eINSTANCE.getPort_IsService();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Is Behavior</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute PORT__IS_BEHAVIOR = eINSTANCE.getPort_IsBehavior();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Is Conjugated</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute PORT__IS_CONJUGATED = eINSTANCE.getPort_IsConjugated();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ProxyPortImpl <em>Proxy Port</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ProxyPortImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getProxyPort()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass PROXY_PORT = eINSTANCE.getProxyPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.FullPortImpl <em>Full Port</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.FullPortImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getFullPort()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass FULL_PORT = eINSTANCE.getFullPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ConnectorImpl <em>Connector</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ConnectorImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getConnector()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass CONNECTOR = eINSTANCE.getConnector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>End</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR__END = eINSTANCE.getConnector_End();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Type</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR__TYPE = eINSTANCE.getConnector_Type();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ConnectorEndImpl <em>Connector End</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ConnectorEndImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getConnectorEnd()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass CONNECTOR_END = eINSTANCE.getConnectorEnd();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Role</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR_END__ROLE = eINSTANCE.getConnectorEnd_Role();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Defining End</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR_END__DEFINING_END = eINSTANCE.getConnectorEnd_DefiningEnd();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Part With Port</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference CONNECTOR_END__PART_WITH_PORT = eINSTANCE.getConnectorEnd_PartWithPort();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ItemFlowImpl <em>Item Flow</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ItemFlowImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getItemFlow()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ITEM_FLOW = eINSTANCE.getItemFlow();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Item Property</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__ITEM_PROPERTY = eINSTANCE.getItemFlow_ItemProperty();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Information Target</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__INFORMATION_TARGET = eINSTANCE.getItemFlow_InformationTarget();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Information Source</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__INFORMATION_SOURCE = eINSTANCE.getItemFlow_InformationSource();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Realizing Connector</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ITEM_FLOW__REALIZING_CONNECTOR = eINSTANCE.getItemFlow_RealizingConnector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.ValueTypeImpl <em>Value Type</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.ValueTypeImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getValueType()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass VALUE_TYPE = eINSTANCE.getValueType();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Unit</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference VALUE_TYPE__UNIT = eINSTANCE.getValueType_Unit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Quantity Kind</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference VALUE_TYPE__QUANTITY_KIND = eINSTANCE.getValueType_QuantityKind();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.UnitImpl <em>Unit</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.UnitImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getUnit()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass UNIT = eINSTANCE.getUnit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Symbol</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute UNIT__SYMBOL = eINSTANCE.getUnit_Symbol();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute UNIT__DESCRIPTION = eINSTANCE.getUnit_Description();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Definition URI</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute UNIT__DEFINITION_URI = eINSTANCE.getUnit_DefinitionURI();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Quantity Kind</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference UNIT__QUANTITY_KIND = eINSTANCE.getUnit_QuantityKind();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.QuantityKindImpl <em>Quantity Kind</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.QuantityKindImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getQuantityKind()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass QUANTITY_KIND = eINSTANCE.getQuantityKind();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Symbol</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute QUANTITY_KIND__SYMBOL = eINSTANCE.getQuantityKind_Symbol();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute QUANTITY_KIND__DESCRIPTION = eINSTANCE.getQuantityKind_Description();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Definition URI</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute QUANTITY_KIND__DEFINITION_URI = eINSTANCE.getQuantityKind_DefinitionURI();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.TypeImpl <em>Type</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.TypeImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getType()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass TYPE = eINSTANCE.getType();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.BlockDiagramImpl <em>Block Diagram</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.BlockDiagramImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getBlockDiagram()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BLOCK_DIAGRAM = eINSTANCE.getBlockDiagram();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.impl.InternalBlockDiagramImpl <em>Internal Block Diagram</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.impl.InternalBlockDiagramImpl\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getInternalBlockDiagram()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass INTERNAL_BLOCK_DIAGRAM = eINSTANCE.getInternalBlockDiagram();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link sysml.FlowDirection <em>Flow Direction</em>}' enum.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see sysml.FlowDirection\r\n\t\t * @see sysml.impl.SysmlPackageImpl#getFlowDirection()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEEnum FLOW_DIRECTION = eINSTANCE.getFlowDirection();\r\n\r\n\t}\r\n\r\n}", "public Object systemNumber() {\n return this.systemNumber;\n }", "public boolean isSystemClass()\n {\n return systemClass;\n }", "public CodeSystem getCodeSystem() {\r\n\t\treturn codeSystem;\r\n\t}", "public System(String systemMake, String systemModel, int processorSpeed)\n\t{\n\t\tmake = systemMake;\n\t\tmodel = systemModel;\n\t\tspeed = processorSpeed;\n\t}", "Simpleflowmodel4pcmPackage getSimpleflowmodel4pcmPackage();", "protected SystemCatalog getSystemCatalog() {\n return catalog;\n }", "public abstract String getSystemName();", "public T caseCommonPowerSystemModel(CommonPowerSystemModel object) {\n\t\treturn null;\n\t}", "@ApiModelProperty(required = true, value = \"The id of the system where this file lives.\")\n public String getSystem() {\n return system;\n }", "public final void rule__System__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2364:1: ( ( 'system' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2365:1: ( 'system' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2365:1: ( 'system' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:2366:1: 'system'\n {\n before(grammarAccess.getSystemAccess().getSystemKeyword_0()); \n match(input,27,FOLLOW_27_in_rule__System__Group__0__Impl5016); \n after(grammarAccess.getSystemAccess().getSystemKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static System getInstance() {\n\t\ttry {\n\t\t\treturn instance == null ? new System(null, null, null) : instance;\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"System Initialization Failed\", e);\n\t\t\treturn null;\n\t\t}\n\t}", "SysmlFactory getSysmlFactory();", "@DISPID(1610940432) //= 0x60050010. The runtime will prefer the VTID if present\n @VTID(38)\n AxisSystems axisSystems();", "public String getExternalSystem() {\n return externalSystem;\n }", "MystPackage getMystPackage();", "public java.lang.String getSystemName() {\r\n return systemName;\r\n }", "public MagnitudeSystem getMagnitudeSystem ( ) {\r\n\t\treturn system;\r\n\t}", "public boolean isSystem(PackageInfo pi) {\n // check if bit the for the flag \"system\" is 1.\n // if is NOT system, (f1 & flag_system) = 0\n //is system if (f1 & flag_system) != 0\n // (basic bitwise operation)\n\n return (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0;\n }", "VmPackage getVmPackage();", "public String getSystemId() { return this.systemId; }", "ComponentmodelPackage getComponentmodelPackage();", "public T caseSystemType(SystemType object) {\r\n\t\treturn null;\r\n\t}", "public abstract M getModel();", "public interface SystemParameterFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tSystemParameterFactory eINSTANCE = org.ecore.system.systemParameter.impl.SystemParameterFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>System Param Model</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>System Param Model</em>'.\n\t * @generated\n\t */\n\tSystemParamModel createSystemParamModel();\n\n\t/**\n\t * Returns a new object of class '<em>Component Parameter Instance</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Component Parameter Instance</em>'.\n\t * @generated\n\t */\n\tComponentParameterInstance createComponentParameterInstance();\n\n\t/**\n\t * Returns a new object of class '<em>Parameter Refinement</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Parameter Refinement</em>'.\n\t * @generated\n\t */\n\tParameterRefinement createParameterRefinement();\n\n\t/**\n\t * Returns a new object of class '<em>Parameter Struct Instance</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Parameter Struct Instance</em>'.\n\t * @generated\n\t */\n\tParameterStructInstance createParameterStructInstance();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tSystemParameterPackage getSystemParameterPackage();\n\n}", "public String getSystemName() {\n\t\treturn systemName;\n\t}", "protected String getSubsystem() {\n return subsystem;\n }", "public String getSystemName() {\n return systemName;\n }", "public String getSysType() {\n return sysType;\n }", "org.apache.xmlbeans.XmlString xgetSystem();", "public SysIntf getIntf() {\n return sysi;\n }", "public interface SystemItem {\n}", "public SystemCommandResult getSystemDetails() throws Exception {\n _log.info(\"3PARDriver:getSystemDetails enter\");\n ClientResponse clientResp = null;\n\n try {\n clientResp = get(URI_SYSTEM);\n if (clientResp == null) {\n _log.error(\"3PARDriver:There is no response from 3PAR\");\n throw new HP3PARException(\"There is no response from 3PAR\");\n } else if (clientResp.getStatus() != 200) {\n String errResp = getResponseDetails(clientResp);\n throw new HP3PARException(errResp);\n } else {\n String responseString = clientResp.getEntity(String.class);\n _log.info(\"3PARDriver:getSystemDetails 3PAR response is {}\", responseString);\n SystemCommandResult systemRes = new Gson().fromJson(sanitize(responseString),\n SystemCommandResult.class);\n return systemRes;\n }\n } catch (Exception e) {\n throw e;\n } finally {\n if (clientResp != null) {\n clientResp.close();\n }\n _log.info(\"3PARDriver:getSystemDetails leave\");\n } //end try/catch/finally\n }", "@Override\n public byte getType() {\n return TYPE_MONETARY_SYSTEM;\n }", "public interface ProcessModel {\n\t\n\t\n\t\n\t/** \n\t * Returns the initial covariance matrix.\n\t * @return the initial covariance matrix.\n\t */\n\tpublic Matrix P0 ();\n\n\t/**\n\t * Returns the process noise matrix.\n\t * @param t time\n\t * @param dt dt = current time - previous time.\n\t * @param x current state vector\n\t * @return the process noise matrix.\n\t */\n\tpublic Matrix Q (double t, double dt, EstSTM x);\n\n\n\t/** \n\t * Returns the initial reference state.\n\t * @return the initial reference state.\n\t */\n\tpublic VectorN xref0 ();\n\t\n\t/**\n\t * Returns the number of states.\n\t * @return the number of states.\n\t */\t\n\tpublic int numberOfStates();\n\t\n\t/** \n\t * Propagate the state and state transition matrix to the next measurement time.\n\t * @param t0 previous time\n\t * @param xin array containing state and state transition matrix at previous time.\n\t * @param tf next time\n\t */\t\n\tpublic double[] propagate( double t0, double[] xin, double tf);\n\t\n\t/**\n\t * Print out the state and covariance data\n\t * @param t time\n\t * @param state state vector\n\t * @param covariance covariance matrix\n\t */\n\tpublic void print(double t, VectorN state, Matrix covariance);\n\t\n\t/**\n\t * Print out the residuals\n\t * @param t time\n\t * @param resid1 residual before the measurement update\n\t * @param resid2 residual after the measurement update\n\t */\n\tpublic void printResiduals(double t, double resid1, double resid2);\n\t\n\t/**\n\t * Close all open LinePrinters\n\t */\n\tpublic void closeLinePrinter();\n\n}", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "public static SolarSystem load() {\n\t\treturn null;\n\t}", "public final EObject entryRuleSystem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSystem = null;\n\n\n try {\n // InternalStl.g:64:47: (iv_ruleSystem= ruleSystem EOF )\n // InternalStl.g:65:2: iv_ruleSystem= ruleSystem EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getSystemRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleSystem=ruleSystem();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleSystem; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public org.eclipse.stardust.engine.api.runtime.Models\n getModels(org.eclipse.stardust.engine.api.query.DeployedModelQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "opmodelFactory getopmodelFactory();", "public void setSystem(String value) {\r\n this.system = value;\r\n }", "public interface ISystem extends INonFlowObject {\n\n}", "public String getSystemName();", "XUMLRTFactory getXUMLRTFactory();", "private SystemMetadata retrieveMNSystemMetadata() throws SynchronizationFailed, RetryableException {\n SystemMetadata systemMetadata = null;\n try {\n systemMetadata = getSystemMetadataHandleRetry(nodeCommunications.getMnRead(), D1TypeBuilder.buildIdentifier(task.getPid()));\n logger.info(buildStandardLogMessage(null, \" Retrieved SystemMetadata Identifier:\"\n + systemMetadata.getIdentifier().getValue() + \" from node \" + task.getNodeId()\n + \" for ObjectInfo Identifier \" + task.getPid()));\n if (!systemMetadata.getIdentifier().getValue().contentEquals(task.getPid())) {\n // didn't get the right SystemMetadata after all\n throw new InvalidSystemMetadata(\n \"567100\",\n String.format(\n \"Identifier in the retrieved SystemMetadata (%s) is different from \"\n + \"the identifier used to retrieve the SystemMetadata (%s).)\",\n task.getPid(),\n systemMetadata.getIdentifier().getValue()\n )\n );\n }\n } catch (BaseException ex) {\n logger.error(buildStandardLogMessage(ex, ex.getDescription()),ex);\n throw SyncFailedTask.createSynchronizationFailed(task.getPid(), null, ex);\n\n// } catch (RetryableException ex) {\n// throw ex;\n// } catch (Exception ex) {\n// ex.printStackTrace();\n// logger.error(task.taskLabel() + \"\\n this didn't work\", ex);\n// throw SyncFailedTask.createSynchronizationFailed(task.getPid(), ex);\n }\n return systemMetadata;\n }", "@Override\n public abstract String getXSIType();", "public final EObject entryRuleSystem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSystem = null;\n\n\n try {\n // InternalSPDSL.g:64:47: (iv_ruleSystem= ruleSystem EOF )\n // InternalSPDSL.g:65:2: iv_ruleSystem= ruleSystem EOF\n {\n newCompositeNode(grammarAccess.getSystemRule()); \n pushFollow(FOLLOW_1);\n iv_ruleSystem=ruleSystem();\n\n state._fsp--;\n\n current =iv_ruleSystem; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final void mT__14() throws RecognitionException {\n try {\n int _type = T__14;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalReqLNG.g:13:7: ( 'System' )\n // InternalReqLNG.g:13:9: 'System'\n {\n match(\"System\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "boolean isSetSystem();", "public Source getSource(Model model, String systemId) throws IOException\n {\n\tif (log.isDebugEnabled()) log.debug(\"Number of Model stmts read: {}\", model.size());\n\ttry (ByteArrayOutputStream stream = new ByteArrayOutputStream())\n {\n model.write(stream);\n if (log.isDebugEnabled()) log.debug(\"RDF/XML bytes written: {}\", stream.toByteArray().length);\n return new StreamSource(new ByteArrayInputStream(stream.toByteArray()), systemId);\n }\n }", "public interface EnvironmentmmPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"environmentmm\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"SATEL.APN.environmentmm\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"environmentmm\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tEnvironmentmmPackage eINSTANCE = SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link SATEL.APN.environmentmm.impl.EnvironmentImpl <em>Environment</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see SATEL.APN.environmentmm.impl.EnvironmentImpl\n\t * @see SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl#getEnvironment()\n\t * @generated\n\t */\n\tint ENVIRONMENT = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Environment</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENVIRONMENT_FEATURE_COUNT = 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link SATEL.APN.environmentmm.Environment <em>Environment</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Environment</em>'.\n\t * @see SATEL.APN.environmentmm.Environment\n\t * @generated\n\t */\n\tEClass getEnvironment();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tEnvironmentmmFactory getEnvironmentmmFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link SATEL.APN.environmentmm.impl.EnvironmentImpl <em>Environment</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see SATEL.APN.environmentmm.impl.EnvironmentImpl\n\t\t * @see SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl#getEnvironment()\n\t\t * @generated\n\t\t */\n\t\tEClass ENVIRONMENT = eINSTANCE.getEnvironment();\n\n\t}\n\n}", "public void setSystemInputModel(double[][] inputModel)\n {\n this.systemInputModel = inputModel;\n this.systemUpdated = true;\n stateChanged();\n }", "public long getInformationSystem() {\n return informationSystem;\n }", "public SystemOfUnits getSystemOfUnits(String name) {\n if (name.equals(\"SI\")) return SI.getInstance();\n if (name.equals(\"UCUM\")) return UCUM.getInstance();\n return null;\n }", "NCModel getModel();", "public static String getDeviceModel() {\n String deviceName = SystemProperties.get(\"prize.system.boot.rsc\");\n // prize modify for bug66476 by houjian end\n deviceName = !TextUtils.isEmpty(deviceName) ? deviceName : Build.MODEL + DeviceInfoUtils.getMsvSuffix();\n //prize modified by xiekui, fix bug 74122, 20190408-start\n return UtilsExt.useDeviceInfoSettingsExt() == null ? deviceName : UtilsExt.useDeviceInfoSettingsExt().customeModelInfo(deviceName);\n //prize modified by xiekui, fix bug 74122, 20190408-end\n }", "RapidmlPackage getRapidmlPackage();", "public static System dtoToEntity(final SystemDTO dto){\n\t\tfinal System result = new System();\n\t\t\n\t\tresult.setCode(dto.getCode());\n\t\tresult.setId(dto.getId());\n\t\tresult.setName(dto.getName());\n\t\t\n\t\treturn result;\n\t}", "public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}", "public ModelNode readTransformedModel(ModelVersion modelVersion) {\n getLegacyServices(modelVersion);//Checks we are the main controller\n ModelNode op = new ModelNode();\n op.get(OP).set(READ_TRANSFORMED_RESOURCE_OPERATION);\n op.get(OP_ADDR).set(PathAddress.EMPTY_ADDRESS.toModelNode());\n op.get(RECURSIVE).set(true);\n op.get(SUBSYSTEM).set(mainSubsystemName);\n ModelNode result = internalExecute(op, new ReadTransformedResourceOperation(getTransformersRegistry(), getCoreModelVersionByLegacyModelVersion(modelVersion), modelVersion));\n return ModelTestUtils.checkResultAndGetContents(result);\n }", "public final SubSystem getSubSystem(){\n return this.peripheralSubSystem;\n }", "private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\") + \" total in current state.\");\n }", "public java.lang.String getSystemCode () {\r\n\t\treturn systemCode;\r\n\t}", "M getModel();", "public interface ModelsPackage extends EPackage\n{\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"models\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.fever.org/models\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"fever.models\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tModelsPackage eINSTANCE = models.impl.ModelsPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__FEATURES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.BuildModelImpl\n\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t * @generated\n\t */\n\tint BUILD_MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Symbols</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SYMBOLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationModelImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_MODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__VALUE_FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Constants</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CONSTANTS = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Blocks</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__BLOCKS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>File name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__FILE_NAME = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Chane</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CHANE = 5;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_FEATURE_COUNT = 6;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SPLImpl\n\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t * @generated\n\t */\n\tint SPL = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Revision</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__REVISION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Variabilitymodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__VARIABILITYMODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Buildmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__BUILDMODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Implementationmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__IMPLEMENTATIONMODEL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelEntityImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL_ENTITY = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__ID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__FLAGS = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__TYPE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__SELECTS = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEPENDS = 8;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__EXTERNAL = 9;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_FEATURE_COUNT = 10;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t * @generated\n\t */\n\tint FEATURE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__NAME = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ChoiceImpl\n\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t * @generated\n\t */\n\tint CHOICE = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The number of structural features of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.DefaultValueImpl\n\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t * @generated\n\t */\n\tint DEFAULT_VALUE = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__VALUE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Order</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ORDER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ID = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SelectImpl\n\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t * @generated\n\t */\n\tint SELECT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__TARGET = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MappedFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t * @generated\n\t */\n\tint MAPPED_FEATURE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__TARGETS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Feature Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__FEATURE_NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CompilationTargetImpl\n\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Target Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Target Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_TYPE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__ID = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Mapped To Symbol</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__MAPPED_TO_SYMBOL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MakeSymbolImpl\n\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t * @generated\n\t */\n\tint MAKE_SYMBOL = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__TARGETS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ReferencedValueFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t * @generated\n\t */\n\tint REFERENCED_VALUE_FEATURE = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ConditionalBlockImpl\n\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t * @generated\n\t */\n\tint CONDITIONAL_BLOCK = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Start</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__START = 0;\n\n\t/**\n\t * The feature id for the '<em><b>End</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__END = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__VALUE_FEATURES = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Touched</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__TOUCHED = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Expression</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EXPRESSION = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Lines</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__LINES = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Edited By</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EDITED_BY = 7;\n\n\t/**\n\t * The number of structural features of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_FEATURE_COUNT = 8;\n\n\t/**\n\t * The number of operations of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureConstantImpl\n\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t * @generated\n\t */\n\tint FEATURE_CONSTANT = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationLineImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_LINE = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Line</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE__LINE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CodeEditImpl\n\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t * @generated\n\t */\n\tint CODE_EDIT = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Rem idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_IDX = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Add idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_IDX = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Rem size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_SIZE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Add size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_SIZE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Diff</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__DIFF = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.VariabilityTypes\n\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t * @generated\n\t */\n\tint VARIABILITY_TYPES = 17;\n\n\t/**\n\t * The meta object id for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.CompilationTargetType\n\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET_TYPE = 18;\n\n\t/**\n\t * The meta object id for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.ChangeType\n\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t * @generated\n\t */\n\tint CHANGE_TYPE = 19;\n\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModel <em>Variability Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model</em>'.\n\t * @see models.VariabilityModel\n\t * @generated\n\t */\n\tEClass getVariabilityModel();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Spl</em>'.\n\t * @see models.VariabilityModel#getSpl()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.VariabilityModel#getFeatures()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Features();\n\n\t/**\n\t * Returns the meta object for class '{@link models.BuildModel <em>Build Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Build Model</em>'.\n\t * @see models.BuildModel\n\t * @generated\n\t */\n\tEClass getBuildModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.BuildModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.BuildModel#getSpl()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.BuildModel#getFeatures()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Features();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getSymbols <em>Symbols</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Symbols</em>'.\n\t * @see models.BuildModel#getSymbols()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Symbols();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationModel <em>Implementation Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Model</em>'.\n\t * @see models.ImplementationModel\n\t * @generated\n\t */\n\tEClass getImplementationModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.ImplementationModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.ImplementationModel#getSpl()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ImplementationModel#getValueFeatures()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getConstants <em>Constants</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Constants</em>'.\n\t * @see models.ImplementationModel#getConstants()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Constants();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ImplementationModel#getBlocks <em>Blocks</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Blocks</em>'.\n\t * @see models.ImplementationModel#getBlocks()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Blocks();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getFile_name <em>File name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>File name</em>'.\n\t * @see models.ImplementationModel#getFile_name()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_File_name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getChane <em>Chane</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Chane</em>'.\n\t * @see models.ImplementationModel#getChane()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_Chane();\n\n\t/**\n\t * Returns the meta object for class '{@link models.SPL <em>SPL</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>SPL</em>'.\n\t * @see models.SPL\n\t * @generated\n\t */\n\tEClass getSPL();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.SPL#getRevision <em>Revision</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Revision</em>'.\n\t * @see models.SPL#getRevision()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEAttribute getSPL_Revision();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getVariabilitymodel <em>Variabilitymodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Variabilitymodel</em>'.\n\t * @see models.SPL#getVariabilitymodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Variabilitymodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getBuildmodel <em>Buildmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Buildmodel</em>'.\n\t * @see models.SPL#getBuildmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Buildmodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getImplementationmodel <em>Implementationmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Implementationmodel</em>'.\n\t * @see models.SPL#getImplementationmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Implementationmodel();\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModelEntity <em>Variability Model Entity</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model Entity</em>'.\n\t * @see models.VariabilityModelEntity\n\t * @generated\n\t */\n\tEClass getVariabilityModelEntity();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.VariabilityModelEntity#getId()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getFlags <em>Flags</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Flags</em>'.\n\t * @see models.VariabilityModelEntity#getFlags()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Flags();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Type</em>'.\n\t * @see models.VariabilityModelEntity#getType()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Type();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPrompt <em>Prompt</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt</em>'.\n\t * @see models.VariabilityModelEntity#getPrompt()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Prompt();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getDefaultValues <em>Default Values</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Default Values</em>'.\n\t * @see models.VariabilityModelEntity#getDefaultValues()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_DefaultValues();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getSelects <em>Selects</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Selects</em>'.\n\t * @see models.VariabilityModelEntity#getSelects()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_Selects();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPromptCondition <em>Prompt Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPromptCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PromptCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPresenceCondition <em>Presence Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Presence Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPresenceCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PresenceCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getDepends <em>Depends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Depends</em>'.\n\t * @see models.VariabilityModelEntity#getDepends()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Depends();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#isExternal <em>External</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>External</em>'.\n\t * @see models.VariabilityModelEntity#isExternal()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_External();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Feature <em>Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature</em>'.\n\t * @see models.Feature\n\t * @generated\n\t */\n\tEClass getFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Feature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.Feature#getName()\n\t * @see #getFeature()\n\t * @generated\n\t */\n\tEAttribute getFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Choice <em>Choice</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Choice</em>'.\n\t * @see models.Choice\n\t * @generated\n\t */\n\tEClass getChoice();\n\n\t/**\n\t * Returns the meta object for class '{@link models.DefaultValue <em>Default Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Default Value</em>'.\n\t * @see models.DefaultValue\n\t * @generated\n\t */\n\tEClass getDefaultValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see models.DefaultValue#getValue()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Value();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.DefaultValue#getCondition()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getOrder <em>Order</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Order</em>'.\n\t * @see models.DefaultValue#getOrder()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Order();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.DefaultValue#getId()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Select <em>Select</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Select</em>'.\n\t * @see models.Select\n\t * @generated\n\t */\n\tEClass getSelect();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target</em>'.\n\t * @see models.Select#getTarget()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Target();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.Select#getCondition()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.Select#getId()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MappedFeature <em>Mapped Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Mapped Feature</em>'.\n\t * @see models.MappedFeature\n\t * @generated\n\t */\n\tEClass getMappedFeature();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MappedFeature#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MappedFeature#getTargets()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEReference getMappedFeature_Targets();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getFeatureName <em>Feature Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Feature Name</em>'.\n\t * @see models.MappedFeature#getFeatureName()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_FeatureName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.MappedFeature#getId()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CompilationTarget <em>Compilation Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Compilation Target</em>'.\n\t * @see models.CompilationTarget\n\t * @generated\n\t */\n\tEClass getCompilationTarget();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetName <em>Target Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Name</em>'.\n\t * @see models.CompilationTarget#getTargetName()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetType <em>Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Type</em>'.\n\t * @see models.CompilationTarget#getTargetType()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.CompilationTarget#getId()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getMappedToSymbol <em>Mapped To Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Mapped To Symbol</em>'.\n\t * @see models.CompilationTarget#getMappedToSymbol()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_MappedToSymbol();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MakeSymbol <em>Make Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Make Symbol</em>'.\n\t * @see models.MakeSymbol\n\t * @generated\n\t */\n\tEClass getMakeSymbol();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MakeSymbol#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.MakeSymbol#getName()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEAttribute getMakeSymbol_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MakeSymbol#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MakeSymbol#getTargets()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEReference getMakeSymbol_Targets();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ReferencedValueFeature <em>Referenced Value Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Referenced Value Feature</em>'.\n\t * @see models.ReferencedValueFeature\n\t * @generated\n\t */\n\tEClass getReferencedValueFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ReferencedValueFeature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.ReferencedValueFeature#getName()\n\t * @see #getReferencedValueFeature()\n\t * @generated\n\t */\n\tEAttribute getReferencedValueFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ConditionalBlock <em>Conditional Block</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Conditional Block</em>'.\n\t * @see models.ConditionalBlock\n\t * @generated\n\t */\n\tEClass getConditionalBlock();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getStart <em>Start</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Start</em>'.\n\t * @see models.ConditionalBlock#getStart()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Start();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getEnd <em>End</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>End</em>'.\n\t * @see models.ConditionalBlock#getEnd()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_End();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.ConditionalBlock#getCondition()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Condition();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ConditionalBlock#getValueFeatures()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#isTouched <em>Touched</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Touched</em>'.\n\t * @see models.ConditionalBlock#isTouched()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Touched();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getExpression <em>Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Expression</em>'.\n\t * @see models.ConditionalBlock#getExpression()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Expression();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ConditionalBlock#getLines <em>Lines</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Lines</em>'.\n\t * @see models.ConditionalBlock#getLines()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_Lines();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getEditedBy <em>Edited By</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Edited By</em>'.\n\t * @see models.ConditionalBlock#getEditedBy()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_EditedBy();\n\n\t/**\n\t * Returns the meta object for class '{@link models.FeatureConstant <em>Feature Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature Constant</em>'.\n\t * @see models.FeatureConstant\n\t * @generated\n\t */\n\tEClass getFeatureConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.FeatureConstant#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.FeatureConstant#getName()\n\t * @see #getFeatureConstant()\n\t * @generated\n\t */\n\tEAttribute getFeatureConstant_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationLine <em>Implementation Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Line</em>'.\n\t * @see models.ImplementationLine\n\t * @generated\n\t */\n\tEClass getImplementationLine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationLine#getLine <em>Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Line</em>'.\n\t * @see models.ImplementationLine#getLine()\n\t * @see #getImplementationLine()\n\t * @generated\n\t */\n\tEAttribute getImplementationLine_Line();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CodeEdit <em>Code Edit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Code Edit</em>'.\n\t * @see models.CodeEdit\n\t * @generated\n\t */\n\tEClass getCodeEdit();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_idx <em>Rem idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem idx</em>'.\n\t * @see models.CodeEdit#getRem_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_idx <em>Add idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add idx</em>'.\n\t * @see models.CodeEdit#getAdd_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_size <em>Rem size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem size</em>'.\n\t * @see models.CodeEdit#getRem_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_size <em>Add size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add size</em>'.\n\t * @see models.CodeEdit#getAdd_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getDiff <em>Diff</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Diff</em>'.\n\t * @see models.CodeEdit#getDiff()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Diff();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.VariabilityTypes <em>Variability Types</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Variability Types</em>'.\n\t * @see models.VariabilityTypes\n\t * @generated\n\t */\n\tEEnum getVariabilityTypes();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.CompilationTargetType <em>Compilation Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Compilation Target Type</em>'.\n\t * @see models.CompilationTargetType\n\t * @generated\n\t */\n\tEEnum getCompilationTargetType();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.ChangeType <em>Change Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Change Type</em>'.\n\t * @see models.ChangeType\n\t * @generated\n\t */\n\tEEnum getChangeType();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tModelsFactory getModelsFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals\n\t{\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL = eINSTANCE.getVariabilityModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__SPL = eINSTANCE.getVariabilityModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__FEATURES = eINSTANCE.getVariabilityModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.BuildModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t\t * @generated\n\t\t */\n\t\tEClass BUILD_MODEL = eINSTANCE.getBuildModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SPL = eINSTANCE.getBuildModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__FEATURES = eINSTANCE.getBuildModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Symbols</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SYMBOLS = eINSTANCE.getBuildModel_Symbols();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_MODEL = eINSTANCE.getImplementationModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__SPL = eINSTANCE.getImplementationModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__VALUE_FEATURES = eINSTANCE.getImplementationModel_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constants</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__CONSTANTS = eINSTANCE.getImplementationModel_Constants();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Blocks</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__BLOCKS = eINSTANCE.getImplementationModel_Blocks();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>File name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__FILE_NAME = eINSTANCE.getImplementationModel_File_name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Chane</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__CHANE = eINSTANCE.getImplementationModel_Chane();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SPLImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t\t * @generated\n\t\t */\n\t\tEClass SPL = eINSTANCE.getSPL();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Revision</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SPL__REVISION = eINSTANCE.getSPL_Revision();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Variabilitymodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__VARIABILITYMODEL = eINSTANCE.getSPL_Variabilitymodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Buildmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__BUILDMODEL = eINSTANCE.getSPL_Buildmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Implementationmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__IMPLEMENTATIONMODEL = eINSTANCE.getSPL_Implementationmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelEntityImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL_ENTITY = eINSTANCE.getVariabilityModelEntity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__ID = eINSTANCE.getVariabilityModelEntity_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Flags</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__FLAGS = eINSTANCE.getVariabilityModelEntity_Flags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__TYPE = eINSTANCE.getVariabilityModelEntity_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT = eINSTANCE.getVariabilityModelEntity_Prompt();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Default Values</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = eINSTANCE.getVariabilityModelEntity_DefaultValues();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Selects</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__SELECTS = eINSTANCE.getVariabilityModelEntity_Selects();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = eINSTANCE.getVariabilityModelEntity_PromptCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Presence Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = eINSTANCE.getVariabilityModelEntity_PresenceCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Depends</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__DEPENDS = eINSTANCE.getVariabilityModelEntity_Depends();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>External</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__EXTERNAL = eINSTANCE.getVariabilityModelEntity_External();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE = eINSTANCE.getFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ChoiceImpl\n\t\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t\t * @generated\n\t\t */\n\t\tEClass CHOICE = eINSTANCE.getChoice();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.DefaultValueImpl\n\t\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t\t * @generated\n\t\t */\n\t\tEClass DEFAULT_VALUE = eINSTANCE.getDefaultValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__VALUE = eINSTANCE.getDefaultValue_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__CONDITION = eINSTANCE.getDefaultValue_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Order</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ORDER = eINSTANCE.getDefaultValue_Order();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ID = eINSTANCE.getDefaultValue_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SelectImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t\t * @generated\n\t\t */\n\t\tEClass SELECT = eINSTANCE.getSelect();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__TARGET = eINSTANCE.getSelect_Target();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__CONDITION = eINSTANCE.getSelect_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__ID = eINSTANCE.getSelect_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MappedFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass MAPPED_FEATURE = eINSTANCE.getMappedFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAPPED_FEATURE__TARGETS = eINSTANCE.getMappedFeature_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Feature Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__FEATURE_NAME = eINSTANCE.getMappedFeature_FeatureName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__ID = eINSTANCE.getMappedFeature_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CompilationTargetImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t\t * @generated\n\t\t */\n\t\tEClass COMPILATION_TARGET = eINSTANCE.getCompilationTarget();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_NAME = eINSTANCE.getCompilationTarget_TargetName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_TYPE = eINSTANCE.getCompilationTarget_TargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__ID = eINSTANCE.getCompilationTarget_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Mapped To Symbol</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__MAPPED_TO_SYMBOL = eINSTANCE.getCompilationTarget_MappedToSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MakeSymbolImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t\t * @generated\n\t\t */\n\t\tEClass MAKE_SYMBOL = eINSTANCE.getMakeSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAKE_SYMBOL__NAME = eINSTANCE.getMakeSymbol_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAKE_SYMBOL__TARGETS = eINSTANCE.getMakeSymbol_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ReferencedValueFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass REFERENCED_VALUE_FEATURE = eINSTANCE.getReferencedValueFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute REFERENCED_VALUE_FEATURE__NAME = eINSTANCE.getReferencedValueFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ConditionalBlockImpl\n\t\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t\t * @generated\n\t\t */\n\t\tEClass CONDITIONAL_BLOCK = eINSTANCE.getConditionalBlock();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__START = eINSTANCE.getConditionalBlock_Start();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>End</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__END = eINSTANCE.getConditionalBlock_End();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__CONDITION = eINSTANCE.getConditionalBlock_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__VALUE_FEATURES = eINSTANCE.getConditionalBlock_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Touched</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__TOUCHED = eINSTANCE.getConditionalBlock_Touched();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Expression</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__EXPRESSION = eINSTANCE.getConditionalBlock_Expression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lines</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__LINES = eINSTANCE.getConditionalBlock_Lines();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edited By</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__EDITED_BY = eINSTANCE.getConditionalBlock_EditedBy();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureConstantImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE_CONSTANT = eINSTANCE.getFeatureConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE_CONSTANT__NAME = eINSTANCE.getFeatureConstant_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationLineImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_LINE = eINSTANCE.getImplementationLine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Line</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_LINE__LINE = eINSTANCE.getImplementationLine_Line();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CodeEditImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t\t * @generated\n\t\t */\n\t\tEClass CODE_EDIT = eINSTANCE.getCodeEdit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_IDX = eINSTANCE.getCodeEdit_Rem_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_IDX = eINSTANCE.getCodeEdit_Add_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_SIZE = eINSTANCE.getCodeEdit_Rem_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_SIZE = eINSTANCE.getCodeEdit_Add_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Diff</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__DIFF = eINSTANCE.getCodeEdit_Diff();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.VariabilityTypes\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t\t * @generated\n\t\t */\n\t\tEEnum VARIABILITY_TYPES = eINSTANCE.getVariabilityTypes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.CompilationTargetType\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t\t * @generated\n\t\t */\n\t\tEEnum COMPILATION_TARGET_TYPE = eINSTANCE.getCompilationTargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.ChangeType\n\t\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t\t * @generated\n\t\t */\n\t\tEEnum CHANGE_TYPE = eINSTANCE.getChangeType();\n\n\t}\n\n}", "public FMSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = FMPackage.eINSTANCE;\n\t\t}\n\t}", "public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }", "public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }", "public static Subsystem getWpiSubsystem()\n {\n if ( ourInstance == null )\n {\n throw new IllegalStateException( myName + \" Not Constructed Yet\" );\n }\n return (Subsystem) ourInstance;\n }", "public LatticeMagInt getSimSystem(){return lattice;}", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }", "public SystemData systemData() {\n return this.systemData;\n }" ]
[ "0.72152925", "0.6476403", "0.64292294", "0.61726916", "0.6154256", "0.6068834", "0.59805006", "0.5926733", "0.5893998", "0.58926934", "0.58873016", "0.58472985", "0.57889634", "0.5715883", "0.5663082", "0.5657535", "0.5635852", "0.5632396", "0.55872416", "0.55680835", "0.5523013", "0.5513273", "0.5505324", "0.5491093", "0.5482167", "0.54589057", "0.54339486", "0.54110944", "0.5394578", "0.5382914", "0.53700036", "0.536945", "0.53676313", "0.53534085", "0.534858", "0.53369266", "0.5336879", "0.5334923", "0.53263205", "0.5313896", "0.5303411", "0.5298528", "0.52657616", "0.5265633", "0.52636737", "0.52564067", "0.52527106", "0.52393025", "0.523796", "0.5234347", "0.5234185", "0.52161014", "0.5214711", "0.5214379", "0.5211382", "0.52073365", "0.52007765", "0.5197122", "0.5197122", "0.5197122", "0.5197122", "0.5197122", "0.5177227", "0.51741004", "0.5170989", "0.51701105", "0.5167928", "0.51578474", "0.51571774", "0.51568544", "0.51420933", "0.5141421", "0.51393294", "0.5139037", "0.51212674", "0.5118763", "0.5113793", "0.510385", "0.5099335", "0.5099004", "0.50958556", "0.50946975", "0.509468", "0.5090121", "0.5088142", "0.50834733", "0.5082909", "0.5075655", "0.5072521", "0.50684154", "0.5067052", "0.5066635", "0.506233", "0.5040521", "0.50327754", "0.50317544", "0.503052", "0.503052", "0.503052", "0.503052" ]
0.7558869
0
return (Allocation) this.readXMIModel(model_fn, de.uka.ipd.sdq.pcm.allocation.AllocationPackage.class.getName());
public static Allocation readAllocation(final String model_fn, final ResourceSet resourceSet) throws IOException { return (Allocation) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.allocation.AllocationPackage.eINSTANCE, model_fn, resourceSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VTID(16)\r\n excel.XlAllocationMethod getAllocationMethod();", "@VTID(15)\r\n excel.XlAllocationValue getAllocationValue();", "@Test\n\t@DisplayName(\"Get IGSNAllocation returns proper IGSNAllocation when the prefix and namespace matches\")\n\tvoid getIGSNAllocationForContent() throws IOException {\n\t\tString xml = Helpers.readFile(\"src/test/resources/xml/sample_ardcv1.xml\");\n\n\t\t// given user that has allocation 20.500.11812/XXAA\n\t\tUser user = TestHelper.mockUser();\n\t\tAllocation allocation = TestHelper.mockIGSNAllocation();\n\t\tallocation.getAttributes().put(\"prefix\", Collections.singletonList(\"10273\"));\n\t\tallocation.getAttributes().put(\"namespace\", Collections.singletonList(\"XX0TUIAYLV\"));\n\t\tallocation.setAttributes(allocation.getAttributes());\n\t\tallocation.setScopes(Arrays.asList(Scope.CREATE, Scope.UPDATE));\n\t\tuser.setAllocations(Collections.singletonList(allocation));\n\n\t\tassertThat(igsnService.getIGSNAllocationForContent(xml, user, Scope.CREATE)).isInstanceOf(IGSNAllocation.class);\n\t\tassertThat(igsnService.getIGSNAllocationForContent(xml, user, Scope.UPDATE)).isInstanceOf(IGSNAllocation.class);\n\t}", "@VTID(17)\r\n java.lang.String getAllocationWeightExpression();", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "ArtefactModel getArtefactModel();", "public interface ComponentAllocationPackage extends EPackage {\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"componentAllocation\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http://www.example.org/componentAllocation\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"componentAllocation\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tComponentAllocationPackage eINSTANCE = componentAllocation.impl.ComponentAllocationPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link componentAllocation.impl.ComponentImpl <em>Component</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see componentAllocation.impl.ComponentImpl\r\n\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getComponent()\r\n\t * @generated\r\n\t */\r\n\tint COMPONENT = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Comp Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMPONENT__COMP_NAME = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Res Consumptions</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMPONENT__RES_CONSUMPTIONS = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Component</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMPONENT_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Component</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMPONENT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link componentAllocation.impl.CompUnitImpl <em>Comp Unit</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see componentAllocation.impl.CompUnitImpl\r\n\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getCompUnit()\r\n\t * @generated\r\n\t */\r\n\tint COMP_UNIT = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Cpu Avail</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMP_UNIT__CPU_AVAIL = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Mem Available</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMP_UNIT__MEM_AVAILABLE = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Power Avail</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMP_UNIT__POWER_AVAIL = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Comp Unit Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMP_UNIT__COMP_UNIT_NAME = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Res Consumptions</b></em>' reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMP_UNIT__RES_CONSUMPTIONS = 4;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Comp Unit</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMP_UNIT_FEATURE_COUNT = 5;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Comp Unit</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint COMP_UNIT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link componentAllocation.impl.TradeOffVectorImpl <em>Trade Off Vector</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see componentAllocation.impl.TradeOffVectorImpl\r\n\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getTradeOffVector()\r\n\t * @generated\r\n\t */\r\n\tint TRADE_OFF_VECTOR = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Cpu Factor</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TRADE_OFF_VECTOR__CPU_FACTOR = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Memory Factor</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TRADE_OFF_VECTOR__MEMORY_FACTOR = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Power Factor</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TRADE_OFF_VECTOR__POWER_FACTOR = 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Trade Off Vector</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TRADE_OFF_VECTOR_FEATURE_COUNT = 3;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Trade Off Vector</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint TRADE_OFF_VECTOR_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link componentAllocation.impl.ResConsumptionImpl <em>Res Consumption</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see componentAllocation.impl.ResConsumptionImpl\r\n\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getResConsumption()\r\n\t * @generated\r\n\t */\r\n\tint RES_CONSUMPTION = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Cpu Cons</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint RES_CONSUMPTION__CPU_CONS = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Memory Cons</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint RES_CONSUMPTION__MEMORY_CONS = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Power Cons</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint RES_CONSUMPTION__POWER_CONS = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Component</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint RES_CONSUMPTION__COMPONENT = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Comp Unit</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint RES_CONSUMPTION__COMP_UNIT = 4;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Res Consumption</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint RES_CONSUMPTION_FEATURE_COUNT = 5;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Res Consumption</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint RES_CONSUMPTION_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link componentAllocation.impl.AllocationConstraintImpl <em>Allocation Constraint</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see componentAllocation.impl.AllocationConstraintImpl\r\n\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getAllocationConstraint()\r\n\t * @generated\r\n\t */\r\n\tint ALLOCATION_CONSTRAINT = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Component</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_CONSTRAINT__COMPONENT = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Comp Unit</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_CONSTRAINT__COMP_UNIT = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Allocation Constraint</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_CONSTRAINT_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Allocation Constraint</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_CONSTRAINT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link componentAllocation.impl.AntiAllocationConstraintImpl <em>Anti Allocation Constraint</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see componentAllocation.impl.AntiAllocationConstraintImpl\r\n\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getAntiAllocationConstraint()\r\n\t * @generated\r\n\t */\r\n\tint ANTI_ALLOCATION_CONSTRAINT = 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Comp Unit</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ANTI_ALLOCATION_CONSTRAINT__COMP_UNIT = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Component</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ANTI_ALLOCATION_CONSTRAINT__COMPONENT = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Anti Allocation Constraint</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ANTI_ALLOCATION_CONSTRAINT_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Anti Allocation Constraint</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ANTI_ALLOCATION_CONSTRAINT_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link componentAllocation.impl.AllocationProblemImpl <em>Allocation Problem</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see componentAllocation.impl.AllocationProblemImpl\r\n\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tint ALLOCATION_PROBLEM = 6;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Components</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM__COMPONENTS = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Trade Offvector</b></em>' containment reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM__TRADE_OFFVECTOR = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Comp Units</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM__COMP_UNITS = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Allocation Constraints</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM__ALLOCATION_CONSTRAINTS = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Anti Allocation Constraints</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM__ANTI_ALLOCATION_CONSTRAINTS = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Res Consumptions</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM__RES_CONSUMPTIONS = 5;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM__ID = 6;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Allocation Problem</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM_FEATURE_COUNT = 7;\r\n\r\n\t/**\r\n\t * The number of operations of the '<em>Allocation Problem</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ALLOCATION_PROBLEM_OPERATION_COUNT = 0;\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link componentAllocation.Component <em>Component</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Component</em>'.\r\n\t * @see componentAllocation.Component\r\n\t * @generated\r\n\t */\r\n\tEClass getComponent();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.Component#getCompName <em>Comp Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Comp Name</em>'.\r\n\t * @see componentAllocation.Component#getCompName()\r\n\t * @see #getComponent()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getComponent_CompName();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link componentAllocation.Component#getResConsumptions <em>Res Consumptions</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Res Consumptions</em>'.\r\n\t * @see componentAllocation.Component#getResConsumptions()\r\n\t * @see #getComponent()\r\n\t * @generated\r\n\t */\r\n\tEReference getComponent_ResConsumptions();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link componentAllocation.CompUnit <em>Comp Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Comp Unit</em>'.\r\n\t * @see componentAllocation.CompUnit\r\n\t * @generated\r\n\t */\r\n\tEClass getCompUnit();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.CompUnit#getCpuAvail <em>Cpu Avail</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Cpu Avail</em>'.\r\n\t * @see componentAllocation.CompUnit#getCpuAvail()\r\n\t * @see #getCompUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getCompUnit_CpuAvail();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.CompUnit#getMemAvailable <em>Mem Available</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Mem Available</em>'.\r\n\t * @see componentAllocation.CompUnit#getMemAvailable()\r\n\t * @see #getCompUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getCompUnit_MemAvailable();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.CompUnit#getPowerAvail <em>Power Avail</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Power Avail</em>'.\r\n\t * @see componentAllocation.CompUnit#getPowerAvail()\r\n\t * @see #getCompUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getCompUnit_PowerAvail();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.CompUnit#getCompUnitName <em>Comp Unit Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Comp Unit Name</em>'.\r\n\t * @see componentAllocation.CompUnit#getCompUnitName()\r\n\t * @see #getCompUnit()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getCompUnit_CompUnitName();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference list '{@link componentAllocation.CompUnit#getResConsumptions <em>Res Consumptions</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference list '<em>Res Consumptions</em>'.\r\n\t * @see componentAllocation.CompUnit#getResConsumptions()\r\n\t * @see #getCompUnit()\r\n\t * @generated\r\n\t */\r\n\tEReference getCompUnit_ResConsumptions();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link componentAllocation.TradeOffVector <em>Trade Off Vector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Trade Off Vector</em>'.\r\n\t * @see componentAllocation.TradeOffVector\r\n\t * @generated\r\n\t */\r\n\tEClass getTradeOffVector();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.TradeOffVector#getCpuFactor <em>Cpu Factor</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Cpu Factor</em>'.\r\n\t * @see componentAllocation.TradeOffVector#getCpuFactor()\r\n\t * @see #getTradeOffVector()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getTradeOffVector_CpuFactor();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.TradeOffVector#getMemoryFactor <em>Memory Factor</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Memory Factor</em>'.\r\n\t * @see componentAllocation.TradeOffVector#getMemoryFactor()\r\n\t * @see #getTradeOffVector()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getTradeOffVector_MemoryFactor();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.TradeOffVector#getPowerFactor <em>Power Factor</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Power Factor</em>'.\r\n\t * @see componentAllocation.TradeOffVector#getPowerFactor()\r\n\t * @see #getTradeOffVector()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getTradeOffVector_PowerFactor();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link componentAllocation.ResConsumption <em>Res Consumption</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Res Consumption</em>'.\r\n\t * @see componentAllocation.ResConsumption\r\n\t * @generated\r\n\t */\r\n\tEClass getResConsumption();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.ResConsumption#getCpuCons <em>Cpu Cons</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Cpu Cons</em>'.\r\n\t * @see componentAllocation.ResConsumption#getCpuCons()\r\n\t * @see #getResConsumption()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getResConsumption_CpuCons();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.ResConsumption#getMemoryCons <em>Memory Cons</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Memory Cons</em>'.\r\n\t * @see componentAllocation.ResConsumption#getMemoryCons()\r\n\t * @see #getResConsumption()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getResConsumption_MemoryCons();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.ResConsumption#getPowerCons <em>Power Cons</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Power Cons</em>'.\r\n\t * @see componentAllocation.ResConsumption#getPowerCons()\r\n\t * @see #getResConsumption()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getResConsumption_PowerCons();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link componentAllocation.ResConsumption#getComponent <em>Component</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Component</em>'.\r\n\t * @see componentAllocation.ResConsumption#getComponent()\r\n\t * @see #getResConsumption()\r\n\t * @generated\r\n\t */\r\n\tEReference getResConsumption_Component();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link componentAllocation.ResConsumption#getCompUnit <em>Comp Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Comp Unit</em>'.\r\n\t * @see componentAllocation.ResConsumption#getCompUnit()\r\n\t * @see #getResConsumption()\r\n\t * @generated\r\n\t */\r\n\tEReference getResConsumption_CompUnit();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link componentAllocation.AllocationConstraint <em>Allocation Constraint</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Allocation Constraint</em>'.\r\n\t * @see componentAllocation.AllocationConstraint\r\n\t * @generated\r\n\t */\r\n\tEClass getAllocationConstraint();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link componentAllocation.AllocationConstraint#getComponent <em>Component</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Component</em>'.\r\n\t * @see componentAllocation.AllocationConstraint#getComponent()\r\n\t * @see #getAllocationConstraint()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationConstraint_Component();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link componentAllocation.AllocationConstraint#getCompUnit <em>Comp Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Comp Unit</em>'.\r\n\t * @see componentAllocation.AllocationConstraint#getCompUnit()\r\n\t * @see #getAllocationConstraint()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationConstraint_CompUnit();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link componentAllocation.AntiAllocationConstraint <em>Anti Allocation Constraint</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Anti Allocation Constraint</em>'.\r\n\t * @see componentAllocation.AntiAllocationConstraint\r\n\t * @generated\r\n\t */\r\n\tEClass getAntiAllocationConstraint();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link componentAllocation.AntiAllocationConstraint#getCompUnit <em>Comp Unit</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Comp Unit</em>'.\r\n\t * @see componentAllocation.AntiAllocationConstraint#getCompUnit()\r\n\t * @see #getAntiAllocationConstraint()\r\n\t * @generated\r\n\t */\r\n\tEReference getAntiAllocationConstraint_CompUnit();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link componentAllocation.AntiAllocationConstraint#getComponent <em>Component</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>Component</em>'.\r\n\t * @see componentAllocation.AntiAllocationConstraint#getComponent()\r\n\t * @see #getAntiAllocationConstraint()\r\n\t * @generated\r\n\t */\r\n\tEReference getAntiAllocationConstraint_Component();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link componentAllocation.AllocationProblem <em>Allocation Problem</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Allocation Problem</em>'.\r\n\t * @see componentAllocation.AllocationProblem\r\n\t * @generated\r\n\t */\r\n\tEClass getAllocationProblem();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link componentAllocation.AllocationProblem#getComponents <em>Components</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Components</em>'.\r\n\t * @see componentAllocation.AllocationProblem#getComponents()\r\n\t * @see #getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationProblem_Components();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference '{@link componentAllocation.AllocationProblem#getTradeOffvector <em>Trade Offvector</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference '<em>Trade Offvector</em>'.\r\n\t * @see componentAllocation.AllocationProblem#getTradeOffvector()\r\n\t * @see #getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationProblem_TradeOffvector();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link componentAllocation.AllocationProblem#getCompUnits <em>Comp Units</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Comp Units</em>'.\r\n\t * @see componentAllocation.AllocationProblem#getCompUnits()\r\n\t * @see #getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationProblem_CompUnits();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link componentAllocation.AllocationProblem#getAllocationConstraints <em>Allocation Constraints</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Allocation Constraints</em>'.\r\n\t * @see componentAllocation.AllocationProblem#getAllocationConstraints()\r\n\t * @see #getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationProblem_AllocationConstraints();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link componentAllocation.AllocationProblem#getAntiAllocationConstraints <em>Anti Allocation Constraints</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Anti Allocation Constraints</em>'.\r\n\t * @see componentAllocation.AllocationProblem#getAntiAllocationConstraints()\r\n\t * @see #getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationProblem_AntiAllocationConstraints();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link componentAllocation.AllocationProblem#getResConsumptions <em>Res Consumptions</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Res Consumptions</em>'.\r\n\t * @see componentAllocation.AllocationProblem#getResConsumptions()\r\n\t * @see #getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tEReference getAllocationProblem_ResConsumptions();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link componentAllocation.AllocationProblem#getID <em>ID</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>ID</em>'.\r\n\t * @see componentAllocation.AllocationProblem#getID()\r\n\t * @see #getAllocationProblem()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAllocationProblem_ID();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tComponentAllocationFactory getComponentAllocationFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each operation of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link componentAllocation.impl.ComponentImpl <em>Component</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see componentAllocation.impl.ComponentImpl\r\n\t\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getComponent()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass COMPONENT = eINSTANCE.getComponent();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Comp Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute COMPONENT__COMP_NAME = eINSTANCE.getComponent_CompName();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Res Consumptions</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference COMPONENT__RES_CONSUMPTIONS = eINSTANCE.getComponent_ResConsumptions();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link componentAllocation.impl.CompUnitImpl <em>Comp Unit</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see componentAllocation.impl.CompUnitImpl\r\n\t\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getCompUnit()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass COMP_UNIT = eINSTANCE.getCompUnit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Cpu Avail</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute COMP_UNIT__CPU_AVAIL = eINSTANCE.getCompUnit_CpuAvail();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Mem Available</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute COMP_UNIT__MEM_AVAILABLE = eINSTANCE.getCompUnit_MemAvailable();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Power Avail</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute COMP_UNIT__POWER_AVAIL = eINSTANCE.getCompUnit_PowerAvail();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Comp Unit Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute COMP_UNIT__COMP_UNIT_NAME = eINSTANCE.getCompUnit_CompUnitName();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Res Consumptions</b></em>' reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference COMP_UNIT__RES_CONSUMPTIONS = eINSTANCE.getCompUnit_ResConsumptions();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link componentAllocation.impl.TradeOffVectorImpl <em>Trade Off Vector</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see componentAllocation.impl.TradeOffVectorImpl\r\n\t\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getTradeOffVector()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass TRADE_OFF_VECTOR = eINSTANCE.getTradeOffVector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Cpu Factor</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute TRADE_OFF_VECTOR__CPU_FACTOR = eINSTANCE.getTradeOffVector_CpuFactor();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Memory Factor</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute TRADE_OFF_VECTOR__MEMORY_FACTOR = eINSTANCE.getTradeOffVector_MemoryFactor();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Power Factor</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute TRADE_OFF_VECTOR__POWER_FACTOR = eINSTANCE.getTradeOffVector_PowerFactor();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link componentAllocation.impl.ResConsumptionImpl <em>Res Consumption</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see componentAllocation.impl.ResConsumptionImpl\r\n\t\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getResConsumption()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass RES_CONSUMPTION = eINSTANCE.getResConsumption();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Cpu Cons</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute RES_CONSUMPTION__CPU_CONS = eINSTANCE.getResConsumption_CpuCons();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Memory Cons</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute RES_CONSUMPTION__MEMORY_CONS = eINSTANCE.getResConsumption_MemoryCons();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Power Cons</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute RES_CONSUMPTION__POWER_CONS = eINSTANCE.getResConsumption_PowerCons();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Component</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference RES_CONSUMPTION__COMPONENT = eINSTANCE.getResConsumption_Component();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Comp Unit</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference RES_CONSUMPTION__COMP_UNIT = eINSTANCE.getResConsumption_CompUnit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link componentAllocation.impl.AllocationConstraintImpl <em>Allocation Constraint</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see componentAllocation.impl.AllocationConstraintImpl\r\n\t\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getAllocationConstraint()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ALLOCATION_CONSTRAINT = eINSTANCE.getAllocationConstraint();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Component</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_CONSTRAINT__COMPONENT = eINSTANCE.getAllocationConstraint_Component();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Comp Unit</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_CONSTRAINT__COMP_UNIT = eINSTANCE.getAllocationConstraint_CompUnit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link componentAllocation.impl.AntiAllocationConstraintImpl <em>Anti Allocation Constraint</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see componentAllocation.impl.AntiAllocationConstraintImpl\r\n\t\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getAntiAllocationConstraint()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ANTI_ALLOCATION_CONSTRAINT = eINSTANCE.getAntiAllocationConstraint();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Comp Unit</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ANTI_ALLOCATION_CONSTRAINT__COMP_UNIT = eINSTANCE.getAntiAllocationConstraint_CompUnit();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Component</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ANTI_ALLOCATION_CONSTRAINT__COMPONENT = eINSTANCE.getAntiAllocationConstraint_Component();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link componentAllocation.impl.AllocationProblemImpl <em>Allocation Problem</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see componentAllocation.impl.AllocationProblemImpl\r\n\t\t * @see componentAllocation.impl.ComponentAllocationPackageImpl#getAllocationProblem()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ALLOCATION_PROBLEM = eINSTANCE.getAllocationProblem();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Components</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_PROBLEM__COMPONENTS = eINSTANCE.getAllocationProblem_Components();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Trade Offvector</b></em>' containment reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_PROBLEM__TRADE_OFFVECTOR = eINSTANCE.getAllocationProblem_TradeOffvector();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Comp Units</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_PROBLEM__COMP_UNITS = eINSTANCE.getAllocationProblem_CompUnits();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Allocation Constraints</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_PROBLEM__ALLOCATION_CONSTRAINTS = eINSTANCE.getAllocationProblem_AllocationConstraints();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Anti Allocation Constraints</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_PROBLEM__ANTI_ALLOCATION_CONSTRAINTS = eINSTANCE\r\n\t\t\t\t.getAllocationProblem_AntiAllocationConstraints();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Res Consumptions</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference ALLOCATION_PROBLEM__RES_CONSUMPTIONS = eINSTANCE.getAllocationProblem_ResConsumptions();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>ID</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ALLOCATION_PROBLEM__ID = eINSTANCE.getAllocationProblem_ID();\r\n\r\n\t}\r\n\r\n}", "ComponentAllocationFactory getComponentAllocationFactory();", "MissionPackage getMissionPackage();", "public suiluppo_equip_allocation fetchByPrimaryKey(long equip_allocat_id);", "GoalModelingPackage getGoalModelingPackage();", "ReservationPackage getReservationPackage();", "public interface EnvironmentmmPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"environmentmm\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"SATEL.APN.environmentmm\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"environmentmm\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tEnvironmentmmPackage eINSTANCE = SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link SATEL.APN.environmentmm.impl.EnvironmentImpl <em>Environment</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see SATEL.APN.environmentmm.impl.EnvironmentImpl\n\t * @see SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl#getEnvironment()\n\t * @generated\n\t */\n\tint ENVIRONMENT = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Environment</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENVIRONMENT_FEATURE_COUNT = 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link SATEL.APN.environmentmm.Environment <em>Environment</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Environment</em>'.\n\t * @see SATEL.APN.environmentmm.Environment\n\t * @generated\n\t */\n\tEClass getEnvironment();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tEnvironmentmmFactory getEnvironmentmmFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link SATEL.APN.environmentmm.impl.EnvironmentImpl <em>Environment</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see SATEL.APN.environmentmm.impl.EnvironmentImpl\n\t\t * @see SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl#getEnvironment()\n\t\t * @generated\n\t\t */\n\t\tEClass ENVIRONMENT = eINSTANCE.getEnvironment();\n\n\t}\n\n}", "A getModel();", "public interface BehaviouralModelPackage extends EPackage {\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"behavioural\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http:///it/eng/spagobi/meta/model/behavioural.ecore\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"it.eng.spagobi.meta.model.behavioural\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tBehaviouralModelPackage eINSTANCE = it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl <em>Behavioural Model</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl\r\n\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl#getBehaviouralModel()\r\n\t * @generated\r\n\t */\r\n\tint BEHAVIOURAL_MODEL = 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Behavioural Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BEHAVIOURAL_MODEL_FEATURE_COUNT = 0;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link it.eng.spagobi.meta.model.behavioural.BehaviouralModel <em>Behavioural Model</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Behavioural Model</em>'.\r\n\t * @see it.eng.spagobi.meta.model.behavioural.BehaviouralModel\r\n\t * @generated\r\n\t */\r\n\tEClass getBehaviouralModel();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tBehaviouralModelFactory getBehaviouralModelFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl <em>Behavioural Model</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl\r\n\t\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl#getBehaviouralModel()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BEHAVIOURAL_MODEL = eINSTANCE.getBehaviouralModel();\r\n\r\n\t}\r\n\r\n}", "Shipment_Package getShipment_Package();", "MRentalPackage getRentalPackage();", "public IpAllocationType ipAllocationType() {\n return this.innerProperties() == null ? null : this.innerProperties().ipAllocationType();\n }", "RapidmlPackage getRapidmlPackage();", "Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();", "opmodelFactory getopmodelFactory();", "AllocationPolicy getAllocationPolicy(ReservationDAO reservations);", "MatchModelPackage getMatchModelPackage();", "Simpleflowmodel4pcmPackage getSimpleflowmodel4pcmPackage();", "ParkingPackage getParkingPackage();", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "public String getLBR_PaymentAllocationPriority();", "public BigDecimal getLiterAllocation();", "ConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();", "SpaceinvadersPackage getSpaceinvadersPackage();", "private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }", "public suiluppo_equip_allocation create(long equip_allocat_id);", "VmPackage getVmPackage();", "M getModel();", "public abstract M getModel();", "MystPackage getMystPackage();", "ExamPackage getExamPackage(int examPackageID);", "public interface ResolvableModelicaNode extends ModelicaNode {\n /**\n * Tries to resolve the <b>declaration</b> of the referenced component.\n */\n ResolutionResult getResolutionCandidates();\n}", "DataModelOracle getDataModelOracle( Path project );", "public AcapeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = AcapePackage.eINSTANCE;\n\t\t}\n\t}", "final public ASTModel Model() throws ParseException {\r\n /*@bgen(jjtree) Model */\r\n ASTModel jjtn000 = new ASTModel(JJTMODEL);\r\n boolean jjtc000 = true;\r\n jjtree.openNodeScope(jjtn000);\r\n try {\r\n if (jj_2_1(2)) {\r\n jj_consume_token(BEGIN);\r\n jj_consume_token(MODEL);\r\n label_1:\r\n while (true) {\r\n jj_consume_token(BEGIN);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMPARTMENTS:\r\n CompartmentsBlock();\r\n break;\r\n case PARAMETERS:\r\n ParameterBlock();\r\n break;\r\n case MOLECULE:\r\n MolecularDefinitionBlock();\r\n break;\r\n case ANCHORS:\r\n AnchorsBlock();\r\n break;\r\n case SEED:\r\n SeedSpeciesBlock();\r\n break;\r\n case REACTION:\r\n ReactionRulesBlock();\r\n break;\r\n case OBSERVABLES:\r\n ObservablesBlock();\r\n break;\r\n case FUNCTIONS:\r\n FunctionsBlock();\r\n break;\r\n default:\r\n jj_la1[0] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case BEGIN:\r\n ;\r\n break;\r\n default:\r\n jj_la1[1] = jj_gen;\r\n break label_1;\r\n }\r\n }\r\n jj_consume_token(END);\r\n jj_consume_token(MODEL);\r\n label_2:\r\n while (true) {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ACTION:\r\n ;\r\n break;\r\n default:\r\n jj_la1[2] = jj_gen;\r\n break label_2;\r\n }\r\n Action();\r\n }\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n } else if (jj_2_2(2)) {\r\n label_3:\r\n while (true) {\r\n jj_consume_token(BEGIN);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMPARTMENTS:\r\n CompartmentsBlock();\r\n break;\r\n case PARAMETERS:\r\n ParameterBlock();\r\n break;\r\n case MOLECULE:\r\n MolecularDefinitionBlock();\r\n break;\r\n case ANCHORS:\r\n AnchorsBlock();\r\n break;\r\n case SEED:\r\n SeedSpeciesBlock();\r\n break;\r\n case REACTION:\r\n ReactionRulesBlock();\r\n break;\r\n case OBSERVABLES:\r\n ObservablesBlock();\r\n break;\r\n case FUNCTIONS:\r\n FunctionsBlock();\r\n break;\r\n default:\r\n jj_la1[3] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case BEGIN:\r\n ;\r\n break;\r\n default:\r\n jj_la1[4] = jj_gen;\r\n break label_3;\r\n }\r\n }\r\n label_4:\r\n while (true) {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ACTION:\r\n ;\r\n break;\r\n default:\r\n jj_la1[5] = jj_gen;\r\n break label_4;\r\n }\r\n Action();\r\n }\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n } else {\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n } catch (Throwable jjte000) {\r\n if (jjtc000) {\r\n jjtree.clearNodeScope(jjtn000);\r\n jjtc000 = false;\r\n } else {\r\n jjtree.popNode();\r\n }\r\n if (jjte000 instanceof RuntimeException) {\r\n {if (true) throw (RuntimeException)jjte000;}\r\n }\r\n if (jjte000 instanceof ParseException) {\r\n {if (true) throw (ParseException)jjte000;}\r\n }\r\n {if (true) throw (Error)jjte000;}\r\n } finally {\r\n if (jjtc000) {\r\n jjtree.closeNodeScope(jjtn000, true);\r\n }\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "String getModelA();", "public interface FmprimitivesPackage extends EPackage\n{\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"fmprimitives\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://lero.ie/spl/fmprimitives.ecore\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"fmprimitives\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n FmprimitivesPackage eINSTANCE = fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl.init();\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl <em>Feature Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModel()\n * @generated\n */\n int FEATURE_MODEL = 0;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__ID = 0;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__NAME = 1;\n\n /**\n * The feature id for the '<em><b>Features</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__FEATURES = 2;\n\n /**\n * The feature id for the '<em><b>Primitives</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__PRIMITIVES = 3;\n\n /**\n * The number of structural features of the '<em>Feature Model</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_FEATURE_COUNT = 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl <em>Feature Model Primitive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModelPrimitive()\n * @generated\n */\n int FEATURE_MODEL_PRIMITIVE = 1;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__ID = 0;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__NAME = 1;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE = 2;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__EXPLANATIONS = 3;\n\n /**\n * The number of structural features of the '<em>Feature Model Primitive</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT = 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl <em>Feature Has Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasSubfeature()\n * @generated\n */\n int FEATURE_HAS_SUBFEATURE = 2;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Subfeature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__SUBFEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Feature Has Subfeature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl <em>Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getUndirectedRelationship()\n * @generated\n */\n int UNDIRECTED_RELATIONSHIP = 3;\n\n /**\n * The number of structural features of the '<em>Undirected Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int UNDIRECTED_RELATIONSHIP_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl <em>Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getDirectedRelationship()\n * @generated\n */\n int DIRECTED_RELATIONSHIP = 4;\n\n /**\n * The number of structural features of the '<em>Directed Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIRECTED_RELATIONSHIP_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl <em>Feature Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureGroup()\n * @generated\n */\n int FEATURE_GROUP = 5;\n\n /**\n * The number of structural features of the '<em>Feature Group</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_GROUP_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl <em>Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeature()\n * @generated\n */\n int FEATURE = 6;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__ID = 0;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__NAME = 1;\n\n /**\n * The feature id for the '<em><b>Group Has Parent</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__GROUP_HAS_PARENT = 2;\n\n /**\n * The feature id for the '<em><b>Group Has Child</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__GROUP_HAS_CHILD = 3;\n\n /**\n * The feature id for the '<em><b>Feature Has Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__FEATURE_HAS_PARENT = 4;\n\n /**\n * The feature id for the '<em><b>Feature Has Subfeature</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__FEATURE_HAS_SUBFEATURE = 5;\n\n /**\n * The feature id for the '<em><b>Selected Feature</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__SELECTED_FEATURE = 6;\n\n /**\n * The feature id for the '<em><b>Eliminated Feature</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__ELIMINATED_FEATURE = 7;\n\n /**\n * The feature id for the '<em><b>Undirected Relationships</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__UNDIRECTED_RELATIONSHIPS = 8;\n\n /**\n * The feature id for the '<em><b>Incoming Directed Relationships</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__INCOMING_DIRECTED_RELATIONSHIPS = 9;\n\n /**\n * The feature id for the '<em><b>Outgoing Directed Relationships</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__OUTGOING_DIRECTED_RELATIONSHIPS = 10;\n\n /**\n * The feature id for the '<em><b>Feature Is Root</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__FEATURE_IS_ROOT = 11;\n\n /**\n * The number of structural features of the '<em>Feature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_FEATURE_COUNT = 12;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl <em>Group Has Parent</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasParent()\n * @generated\n */\n int GROUP_HAS_PARENT = 7;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Parent</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl <em>Group Has Child</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasChild()\n * @generated\n */\n int GROUP_HAS_CHILD = 8;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Child</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__CHILD = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Child</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl <em>Selected Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getSelectedFeature()\n * @generated\n */\n int SELECTED_FEATURE = 9;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Feature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__FEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Selected Feature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl <em>Eliminated Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getEliminatedFeature()\n * @generated\n */\n int ELIMINATED_FEATURE = 10;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Feature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__FEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Eliminated Feature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl <em>Feature Is Root</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureIsRoot()\n * @generated\n */\n int FEATURE_IS_ROOT = 11;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Feature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__FEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Feature Is Root</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl <em>Explanation</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getExplanation()\n * @generated\n */\n int EXPLANATION = 12;\n\n /**\n * The feature id for the '<em><b>Primitives</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EXPLANATION__PRIMITIVES = 0;\n\n /**\n * The number of structural features of the '<em>Explanation</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EXPLANATION_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl <em>Group Has Max</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMax()\n * @generated\n */\n int GROUP_HAS_MAX = 13;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Max</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__MAX = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Max</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl <em>Group Has Min</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMin()\n * @generated\n */\n int GROUP_HAS_MIN = 14;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Min</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__MIN = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Min</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl <em>Alternative Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAlternativeGroup()\n * @generated\n */\n int ALTERNATIVE_GROUP = 15;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Group Has Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group Has Child</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_CHILD = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Group Has Max</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_MAX = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The feature id for the '<em><b>Group Has Min</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_MIN = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 3;\n\n /**\n * The number of structural features of the '<em>Alternative Group</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl <em>Or Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getOrGroup()\n * @generated\n */\n int OR_GROUP = 16;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Group Has Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group Has Child</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_CHILD = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Group Has Max</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_MAX = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The feature id for the '<em><b>Group Has Min</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_MIN = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 3;\n\n /**\n * The number of structural features of the '<em>Or Group</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl <em>Feature Has Optional Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasOptionalSubfeature()\n * @generated\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE = 17;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Subfeature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__SUBFEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Feature Has Optional Subfeature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl <em>Feature Has Mandatory Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasMandatorySubfeature()\n * @generated\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE = 18;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Subfeature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__SUBFEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Feature Has Mandatory Subfeature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl <em>Mutual Exclusive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getMutualExclusive()\n * @generated\n */\n int MUTUAL_EXCLUSIVE = 19;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Related Features</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__RELATED_FEATURES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Mutual Exclusive</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl <em>Custom Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomUndirectedRelationship()\n * @generated\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP = 20;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Stereotype</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__STEREOTYPE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Related Features</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__RELATED_FEATURES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Custom Undirected Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl <em>Requires</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getRequires()\n * @generated\n */\n int REQUIRES = 21;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Sources</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__SOURCES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Targets</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__TARGETS = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Requires</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl <em>Temporal Ordering Sequential</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getTemporalOrderingSequential()\n * @generated\n */\n int TEMPORAL_ORDERING_SEQUENTIAL = 22;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Sources</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__SOURCES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Targets</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__TARGETS = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Temporal Ordering Sequential</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl <em>Custom Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomDirectedRelationship()\n * @generated\n */\n int CUSTOM_DIRECTED_RELATIONSHIP = 23;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Stereotype</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__STEREOTYPE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Sources</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__SOURCES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Targets</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__TARGETS = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The number of structural features of the '<em>Custom Directed Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 3;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl <em>Auto Complete</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAutoComplete()\n * @generated\n */\n int AUTO_COMPLETE = 24;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The number of structural features of the '<em>Auto Complete</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource <em>Configuration Source</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getConfigurationSource()\n * @generated\n */\n int CONFIGURATION_SOURCE = 25;\n\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel <em>Feature Model</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Model</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel\n * @generated\n */\n EClass getFeatureModel();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getId <em>Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Id</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getId()\n * @see #getFeatureModel()\n * @generated\n */\n EAttribute getFeatureModel_Id();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getName()\n * @see #getFeatureModel()\n * @generated\n */\n EAttribute getFeatureModel_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getFeatures <em>Features</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Features</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getFeatures()\n * @see #getFeatureModel()\n * @generated\n */\n EReference getFeatureModel_Features();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getPrimitives <em>Primitives</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Primitives</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getPrimitives()\n * @see #getFeatureModel()\n * @generated\n */\n EReference getFeatureModel_Primitives();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive <em>Feature Model Primitive</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Model Primitive</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive\n * @generated\n */\n EClass getFeatureModelPrimitive();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getId <em>Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Id</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getId()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EAttribute getFeatureModelPrimitive_Id();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getName()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EAttribute getFeatureModelPrimitive_Name();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getConfigurationSource <em>Configuration Source</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Configuration Source</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getConfigurationSource()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EAttribute getFeatureModelPrimitive_ConfigurationSource();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getExplanations <em>Explanations</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Explanations</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getExplanations()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EReference getFeatureModelPrimitive_Explanations();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature <em>Feature Has Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Has Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature\n * @generated\n */\n EClass getFeatureHasSubfeature();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getParent <em>Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getParent()\n * @see #getFeatureHasSubfeature()\n * @generated\n */\n EReference getFeatureHasSubfeature_Parent();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getSubfeature <em>Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getSubfeature()\n * @see #getFeatureHasSubfeature()\n * @generated\n */\n EReference getFeatureHasSubfeature_Subfeature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.UndirectedRelationship <em>Undirected Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Undirected Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.UndirectedRelationship\n * @generated\n */\n EClass getUndirectedRelationship();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.DirectedRelationship <em>Directed Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Directed Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.DirectedRelationship\n * @generated\n */\n EClass getDirectedRelationship();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureGroup <em>Feature Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureGroup\n * @generated\n */\n EClass getFeatureGroup();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.Feature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature\n * @generated\n */\n EClass getFeature();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getId <em>Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Id</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getId()\n * @see #getFeature()\n * @generated\n */\n EAttribute getFeature_Id();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getName()\n * @see #getFeature()\n * @generated\n */\n EAttribute getFeature_Name();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasParent()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_GroupHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasChild()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_GroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasParent <em>Feature Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasParent()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_FeatureHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasSubfeature <em>Feature Has Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Feature Has Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasSubfeature()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_FeatureHasSubfeature();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getSelectedFeature <em>Selected Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Selected Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getSelectedFeature()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_SelectedFeature();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getEliminatedFeature <em>Eliminated Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Eliminated Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getEliminatedFeature()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_EliminatedFeature();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getUndirectedRelationships <em>Undirected Relationships</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Undirected Relationships</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getUndirectedRelationships()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_UndirectedRelationships();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getIncomingDirectedRelationships <em>Incoming Directed Relationships</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Incoming Directed Relationships</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getIncomingDirectedRelationships()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_IncomingDirectedRelationships();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getOutgoingDirectedRelationships <em>Outgoing Directed Relationships</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Outgoing Directed Relationships</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getOutgoingDirectedRelationships()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_OutgoingDirectedRelationships();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureIsRoot <em>Feature Is Root</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature Is Root</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureIsRoot()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_FeatureIsRoot();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasParent\n * @generated\n */\n EClass getGroupHasParent();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getParent <em>Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getParent()\n * @see #getGroupHasParent()\n * @generated\n */\n EReference getGroupHasParent_Parent();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getGroup()\n * @see #getGroupHasParent()\n * @generated\n */\n EReference getGroupHasParent_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasChild\n * @generated\n */\n EClass getGroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getChild <em>Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getChild()\n * @see #getGroupHasChild()\n * @generated\n */\n EReference getGroupHasChild_Child();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getGroup()\n * @see #getGroupHasChild()\n * @generated\n */\n EReference getGroupHasChild_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.SelectedFeature <em>Selected Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Selected Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.SelectedFeature\n * @generated\n */\n EClass getSelectedFeature();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.SelectedFeature#getFeature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.SelectedFeature#getFeature()\n * @see #getSelectedFeature()\n * @generated\n */\n EReference getSelectedFeature_Feature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature <em>Eliminated Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Eliminated Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature\n * @generated\n */\n EClass getEliminatedFeature();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature#getFeature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature#getFeature()\n * @see #getEliminatedFeature()\n * @generated\n */\n EReference getEliminatedFeature_Feature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot <em>Feature Is Root</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Is Root</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot\n * @generated\n */\n EClass getFeatureIsRoot();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot#getFeature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot#getFeature()\n * @see #getFeatureIsRoot()\n * @generated\n */\n EReference getFeatureIsRoot_Feature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.Explanation <em>Explanation</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Explanation</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Explanation\n * @generated\n */\n EClass getExplanation();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Explanation#getPrimitives <em>Primitives</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Primitives</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Explanation#getPrimitives()\n * @see #getExplanation()\n * @generated\n */\n EReference getExplanation_Primitives();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMax <em>Group Has Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMax\n * @generated\n */\n EClass getGroupHasMax();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getMax <em>Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getMax()\n * @see #getGroupHasMax()\n * @generated\n */\n EAttribute getGroupHasMax_Max();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getGroup()\n * @see #getGroupHasMax()\n * @generated\n */\n EReference getGroupHasMax_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMin <em>Group Has Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMin\n * @generated\n */\n EClass getGroupHasMin();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getMin <em>Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getMin()\n * @see #getGroupHasMin()\n * @generated\n */\n EAttribute getGroupHasMin_Min();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getGroup()\n * @see #getGroupHasMin()\n * @generated\n */\n EReference getGroupHasMin_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup <em>Alternative Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Alternative Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup\n * @generated\n */\n EClass getAlternativeGroup();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasParent()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasChild()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMax <em>Group Has Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMax()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasMax();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMin <em>Group Has Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMin()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasMin();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup <em>Or Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Or Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup\n * @generated\n */\n EClass getOrGroup();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasParent()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasChild()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMax <em>Group Has Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMax()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasMax();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMin <em>Group Has Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMin()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasMin();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasOptionalSubfeature <em>Feature Has Optional Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Has Optional Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasOptionalSubfeature\n * @generated\n */\n EClass getFeatureHasOptionalSubfeature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasMandatorySubfeature <em>Feature Has Mandatory Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Has Mandatory Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasMandatorySubfeature\n * @generated\n */\n EClass getFeatureHasMandatorySubfeature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.MutualExclusive <em>Mutual Exclusive</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Mutual Exclusive</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.MutualExclusive\n * @generated\n */\n EClass getMutualExclusive();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.MutualExclusive#getRelatedFeatures <em>Related Features</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Related Features</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.MutualExclusive#getRelatedFeatures()\n * @see #getMutualExclusive()\n * @generated\n */\n EReference getMutualExclusive_RelatedFeatures();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship <em>Custom Undirected Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Custom Undirected Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship\n * @generated\n */\n EClass getCustomUndirectedRelationship();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getStereotype <em>Stereotype</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Stereotype</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getStereotype()\n * @see #getCustomUndirectedRelationship()\n * @generated\n */\n EAttribute getCustomUndirectedRelationship_Stereotype();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getRelatedFeatures <em>Related Features</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Related Features</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getRelatedFeatures()\n * @see #getCustomUndirectedRelationship()\n * @generated\n */\n EReference getCustomUndirectedRelationship_RelatedFeatures();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.Requires <em>Requires</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Requires</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Requires\n * @generated\n */\n EClass getRequires();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Requires#getSources <em>Sources</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Sources</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Requires#getSources()\n * @see #getRequires()\n * @generated\n */\n EReference getRequires_Sources();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Requires#getTargets <em>Targets</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Targets</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Requires#getTargets()\n * @see #getRequires()\n * @generated\n */\n EReference getRequires_Targets();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential <em>Temporal Ordering Sequential</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Temporal Ordering Sequential</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential\n * @generated\n */\n EClass getTemporalOrderingSequential();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getSources <em>Sources</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Sources</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getSources()\n * @see #getTemporalOrderingSequential()\n * @generated\n */\n EReference getTemporalOrderingSequential_Sources();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getTargets <em>Targets</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Targets</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getTargets()\n * @see #getTemporalOrderingSequential()\n * @generated\n */\n EReference getTemporalOrderingSequential_Targets();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship <em>Custom Directed Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Custom Directed Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship\n * @generated\n */\n EClass getCustomDirectedRelationship();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getStereotype <em>Stereotype</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Stereotype</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getStereotype()\n * @see #getCustomDirectedRelationship()\n * @generated\n */\n EAttribute getCustomDirectedRelationship_Stereotype();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getSources <em>Sources</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Sources</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getSources()\n * @see #getCustomDirectedRelationship()\n * @generated\n */\n EReference getCustomDirectedRelationship_Sources();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getTargets <em>Targets</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Targets</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getTargets()\n * @see #getCustomDirectedRelationship()\n * @generated\n */\n EReference getCustomDirectedRelationship_Targets();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.AutoComplete <em>Auto Complete</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Auto Complete</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AutoComplete\n * @generated\n */\n EClass getAutoComplete();\n\n /**\n * Returns the meta object for enum '{@link fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource <em>Configuration Source</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>Configuration Source</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource\n * @generated\n */\n EEnum getConfigurationSource();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n FmprimitivesFactory getFmprimitivesFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals\n {\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl <em>Feature Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModel()\n * @generated\n */\n EClass FEATURE_MODEL = eINSTANCE.getFeatureModel();\n\n /**\n * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL__ID = eINSTANCE.getFeatureModel_Id();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL__NAME = eINSTANCE.getFeatureModel_Name();\n\n /**\n * The meta object literal for the '<em><b>Features</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_MODEL__FEATURES = eINSTANCE.getFeatureModel_Features();\n\n /**\n * The meta object literal for the '<em><b>Primitives</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_MODEL__PRIMITIVES = eINSTANCE.getFeatureModel_Primitives();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl <em>Feature Model Primitive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModelPrimitive()\n * @generated\n */\n EClass FEATURE_MODEL_PRIMITIVE = eINSTANCE.getFeatureModelPrimitive();\n\n /**\n * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL_PRIMITIVE__ID = eINSTANCE.getFeatureModelPrimitive_Id();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL_PRIMITIVE__NAME = eINSTANCE.getFeatureModelPrimitive_Name();\n\n /**\n * The meta object literal for the '<em><b>Configuration Source</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE = eINSTANCE.getFeatureModelPrimitive_ConfigurationSource();\n\n /**\n * The meta object literal for the '<em><b>Explanations</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_MODEL_PRIMITIVE__EXPLANATIONS = eINSTANCE.getFeatureModelPrimitive_Explanations();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl <em>Feature Has Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasSubfeature()\n * @generated\n */\n EClass FEATURE_HAS_SUBFEATURE = eINSTANCE.getFeatureHasSubfeature();\n\n /**\n * The meta object literal for the '<em><b>Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_HAS_SUBFEATURE__PARENT = eINSTANCE.getFeatureHasSubfeature_Parent();\n\n /**\n * The meta object literal for the '<em><b>Subfeature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_HAS_SUBFEATURE__SUBFEATURE = eINSTANCE.getFeatureHasSubfeature_Subfeature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl <em>Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getUndirectedRelationship()\n * @generated\n */\n EClass UNDIRECTED_RELATIONSHIP = eINSTANCE.getUndirectedRelationship();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl <em>Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getDirectedRelationship()\n * @generated\n */\n EClass DIRECTED_RELATIONSHIP = eINSTANCE.getDirectedRelationship();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl <em>Feature Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureGroup()\n * @generated\n */\n EClass FEATURE_GROUP = eINSTANCE.getFeatureGroup();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl <em>Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeature()\n * @generated\n */\n EClass FEATURE = eINSTANCE.getFeature();\n\n /**\n * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE__ID = eINSTANCE.getFeature_Id();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n /**\n * The meta object literal for the '<em><b>Group Has Parent</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__GROUP_HAS_PARENT = eINSTANCE.getFeature_GroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Group Has Child</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__GROUP_HAS_CHILD = eINSTANCE.getFeature_GroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Feature Has Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__FEATURE_HAS_PARENT = eINSTANCE.getFeature_FeatureHasParent();\n\n /**\n * The meta object literal for the '<em><b>Feature Has Subfeature</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__FEATURE_HAS_SUBFEATURE = eINSTANCE.getFeature_FeatureHasSubfeature();\n\n /**\n * The meta object literal for the '<em><b>Selected Feature</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__SELECTED_FEATURE = eINSTANCE.getFeature_SelectedFeature();\n\n /**\n * The meta object literal for the '<em><b>Eliminated Feature</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__ELIMINATED_FEATURE = eINSTANCE.getFeature_EliminatedFeature();\n\n /**\n * The meta object literal for the '<em><b>Undirected Relationships</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__UNDIRECTED_RELATIONSHIPS = eINSTANCE.getFeature_UndirectedRelationships();\n\n /**\n * The meta object literal for the '<em><b>Incoming Directed Relationships</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__INCOMING_DIRECTED_RELATIONSHIPS = eINSTANCE.getFeature_IncomingDirectedRelationships();\n\n /**\n * The meta object literal for the '<em><b>Outgoing Directed Relationships</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__OUTGOING_DIRECTED_RELATIONSHIPS = eINSTANCE.getFeature_OutgoingDirectedRelationships();\n\n /**\n * The meta object literal for the '<em><b>Feature Is Root</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__FEATURE_IS_ROOT = eINSTANCE.getFeature_FeatureIsRoot();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl <em>Group Has Parent</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasParent()\n * @generated\n */\n EClass GROUP_HAS_PARENT = eINSTANCE.getGroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_PARENT__PARENT = eINSTANCE.getGroupHasParent_Parent();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_PARENT__GROUP = eINSTANCE.getGroupHasParent_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl <em>Group Has Child</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasChild()\n * @generated\n */\n EClass GROUP_HAS_CHILD = eINSTANCE.getGroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Child</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_CHILD__CHILD = eINSTANCE.getGroupHasChild_Child();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_CHILD__GROUP = eINSTANCE.getGroupHasChild_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl <em>Selected Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getSelectedFeature()\n * @generated\n */\n EClass SELECTED_FEATURE = eINSTANCE.getSelectedFeature();\n\n /**\n * The meta object literal for the '<em><b>Feature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SELECTED_FEATURE__FEATURE = eINSTANCE.getSelectedFeature_Feature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl <em>Eliminated Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getEliminatedFeature()\n * @generated\n */\n EClass ELIMINATED_FEATURE = eINSTANCE.getEliminatedFeature();\n\n /**\n * The meta object literal for the '<em><b>Feature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ELIMINATED_FEATURE__FEATURE = eINSTANCE.getEliminatedFeature_Feature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl <em>Feature Is Root</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureIsRoot()\n * @generated\n */\n EClass FEATURE_IS_ROOT = eINSTANCE.getFeatureIsRoot();\n\n /**\n * The meta object literal for the '<em><b>Feature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_IS_ROOT__FEATURE = eINSTANCE.getFeatureIsRoot_Feature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl <em>Explanation</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getExplanation()\n * @generated\n */\n EClass EXPLANATION = eINSTANCE.getExplanation();\n\n /**\n * The meta object literal for the '<em><b>Primitives</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference EXPLANATION__PRIMITIVES = eINSTANCE.getExplanation_Primitives();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl <em>Group Has Max</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMax()\n * @generated\n */\n EClass GROUP_HAS_MAX = eINSTANCE.getGroupHasMax();\n\n /**\n * The meta object literal for the '<em><b>Max</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute GROUP_HAS_MAX__MAX = eINSTANCE.getGroupHasMax_Max();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_MAX__GROUP = eINSTANCE.getGroupHasMax_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl <em>Group Has Min</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMin()\n * @generated\n */\n EClass GROUP_HAS_MIN = eINSTANCE.getGroupHasMin();\n\n /**\n * The meta object literal for the '<em><b>Min</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute GROUP_HAS_MIN__MIN = eINSTANCE.getGroupHasMin_Min();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_MIN__GROUP = eINSTANCE.getGroupHasMin_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl <em>Alternative Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAlternativeGroup()\n * @generated\n */\n EClass ALTERNATIVE_GROUP = eINSTANCE.getAlternativeGroup();\n\n /**\n * The meta object literal for the '<em><b>Group Has Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_PARENT = eINSTANCE.getAlternativeGroup_GroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Group Has Child</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_CHILD = eINSTANCE.getAlternativeGroup_GroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Group Has Max</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_MAX = eINSTANCE.getAlternativeGroup_GroupHasMax();\n\n /**\n * The meta object literal for the '<em><b>Group Has Min</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_MIN = eINSTANCE.getAlternativeGroup_GroupHasMin();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl <em>Or Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getOrGroup()\n * @generated\n */\n EClass OR_GROUP = eINSTANCE.getOrGroup();\n\n /**\n * The meta object literal for the '<em><b>Group Has Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_PARENT = eINSTANCE.getOrGroup_GroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Group Has Child</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_CHILD = eINSTANCE.getOrGroup_GroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Group Has Max</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_MAX = eINSTANCE.getOrGroup_GroupHasMax();\n\n /**\n * The meta object literal for the '<em><b>Group Has Min</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_MIN = eINSTANCE.getOrGroup_GroupHasMin();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl <em>Feature Has Optional Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasOptionalSubfeature()\n * @generated\n */\n EClass FEATURE_HAS_OPTIONAL_SUBFEATURE = eINSTANCE.getFeatureHasOptionalSubfeature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl <em>Feature Has Mandatory Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasMandatorySubfeature()\n * @generated\n */\n EClass FEATURE_HAS_MANDATORY_SUBFEATURE = eINSTANCE.getFeatureHasMandatorySubfeature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl <em>Mutual Exclusive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getMutualExclusive()\n * @generated\n */\n EClass MUTUAL_EXCLUSIVE = eINSTANCE.getMutualExclusive();\n\n /**\n * The meta object literal for the '<em><b>Related Features</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference MUTUAL_EXCLUSIVE__RELATED_FEATURES = eINSTANCE.getMutualExclusive_RelatedFeatures();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl <em>Custom Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomUndirectedRelationship()\n * @generated\n */\n EClass CUSTOM_UNDIRECTED_RELATIONSHIP = eINSTANCE.getCustomUndirectedRelationship();\n\n /**\n * The meta object literal for the '<em><b>Stereotype</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute CUSTOM_UNDIRECTED_RELATIONSHIP__STEREOTYPE = eINSTANCE.getCustomUndirectedRelationship_Stereotype();\n\n /**\n * The meta object literal for the '<em><b>Related Features</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CUSTOM_UNDIRECTED_RELATIONSHIP__RELATED_FEATURES = eINSTANCE.getCustomUndirectedRelationship_RelatedFeatures();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl <em>Requires</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getRequires()\n * @generated\n */\n EClass REQUIRES = eINSTANCE.getRequires();\n\n /**\n * The meta object literal for the '<em><b>Sources</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference REQUIRES__SOURCES = eINSTANCE.getRequires_Sources();\n\n /**\n * The meta object literal for the '<em><b>Targets</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference REQUIRES__TARGETS = eINSTANCE.getRequires_Targets();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl <em>Temporal Ordering Sequential</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getTemporalOrderingSequential()\n * @generated\n */\n EClass TEMPORAL_ORDERING_SEQUENTIAL = eINSTANCE.getTemporalOrderingSequential();\n\n /**\n * The meta object literal for the '<em><b>Sources</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference TEMPORAL_ORDERING_SEQUENTIAL__SOURCES = eINSTANCE.getTemporalOrderingSequential_Sources();\n\n /**\n * The meta object literal for the '<em><b>Targets</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference TEMPORAL_ORDERING_SEQUENTIAL__TARGETS = eINSTANCE.getTemporalOrderingSequential_Targets();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl <em>Custom Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomDirectedRelationship()\n * @generated\n */\n EClass CUSTOM_DIRECTED_RELATIONSHIP = eINSTANCE.getCustomDirectedRelationship();\n\n /**\n * The meta object literal for the '<em><b>Stereotype</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute CUSTOM_DIRECTED_RELATIONSHIP__STEREOTYPE = eINSTANCE.getCustomDirectedRelationship_Stereotype();\n\n /**\n * The meta object literal for the '<em><b>Sources</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CUSTOM_DIRECTED_RELATIONSHIP__SOURCES = eINSTANCE.getCustomDirectedRelationship_Sources();\n\n /**\n * The meta object literal for the '<em><b>Targets</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CUSTOM_DIRECTED_RELATIONSHIP__TARGETS = eINSTANCE.getCustomDirectedRelationship_Targets();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl <em>Auto Complete</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAutoComplete()\n * @generated\n */\n EClass AUTO_COMPLETE = eINSTANCE.getAutoComplete();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource <em>Configuration Source</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getConfigurationSource()\n * @generated\n */\n EEnum CONFIGURATION_SOURCE = eINSTANCE.getConfigurationSource();\n\n }\n\n}", "public IRClass getDefnObject()\n throws OculusException;", "MetricModel createMetricModel();", "ShipmentPackage createShipmentPackage();", "public interface GamifiedmodellingobjectmodelPackage extends EPackage {\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"gamifiedmodellingobjectmodel\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http://gamefulgrowth.blogspot.co.uk/gamified-modelling/\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"gamifiedmodellingobjectmodel\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tGamifiedmodellingobjectmodelPackage eINSTANCE = gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.ObjectModelImpl <em>Object Model</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.ObjectModelImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObjectModel()\r\n\t * @generated\r\n\t */\r\n\tint OBJECT_MODEL = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Objects</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_MODEL__OBJECTS = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Links</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_MODEL__LINKS = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Object Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_MODEL_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.ObjectImpl <em>Object</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.ObjectImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObject()\r\n\t * @generated\r\n\t */\r\n\tint OBJECT = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__NAME = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Identity</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__IDENTITY = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Class Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__CLASS_NAME = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__ATTRIBUTES = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Operations</b></em>' containment reference list.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT__OPERATIONS = 4;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Object</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OBJECT_FEATURE_COUNT = 5;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.AttributeImpl <em>Attribute</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.AttributeImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getAttribute()\r\n\t * @generated\r\n\t */\r\n\tint ATTRIBUTE = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Text</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__TEXT = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__NAME = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__VALUE = 2;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Value Type</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE__VALUE_TYPE = 3;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Attribute</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint ATTRIBUTE_FEATURE_COUNT = 4;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.OperationImpl <em>Operation</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.OperationImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getOperation()\r\n\t * @generated\r\n\t */\r\n\tint OPERATION = 3;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Text</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OPERATION__TEXT = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OPERATION__NAME = 1;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Operation</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint OPERATION_FEATURE_COUNT = 2;\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link gamifiedmodellingobjectmodel.impl.LinkImpl <em>Link</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see gamifiedmodellingobjectmodel.impl.LinkImpl\r\n\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getLink()\r\n\t * @generated\r\n\t */\r\n\tint LINK = 4;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>Identity</b></em>' attribute.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK__IDENTITY = 0;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>From Object</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK__FROM_OBJECT = 1;\r\n\r\n\t/**\r\n\t * The feature id for the '<em><b>To Object</b></em>' reference.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK__TO_OBJECT = 2;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Link</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint LINK_FEATURE_COUNT = 3;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.ObjectModel <em>Object Model</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Object Model</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.ObjectModel\r\n\t * @generated\r\n\t */\r\n\tEClass getObjectModel();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.ObjectModel#getObjects <em>Objects</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Objects</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.ObjectModel#getObjects()\r\n\t * @see #getObjectModel()\r\n\t * @generated\r\n\t */\r\n\tEReference getObjectModel_Objects();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.ObjectModel#getLinks <em>Links</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Links</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.ObjectModel#getLinks()\r\n\t * @see #getObjectModel()\r\n\t * @generated\r\n\t */\r\n\tEReference getObjectModel_Links();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Object <em>Object</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Object</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object\r\n\t * @generated\r\n\t */\r\n\tEClass getObject();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Object#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getName()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getObject_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Object#getIdentity <em>Identity</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Identity</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getIdentity()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getObject_Identity();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Object#getClassName <em>Class Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Class Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getClassName()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getObject_ClassName();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.Object#getAttributes <em>Attributes</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Attributes</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getAttributes()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEReference getObject_Attributes();\r\n\r\n\t/**\r\n\t * Returns the meta object for the containment reference list '{@link gamifiedmodellingobjectmodel.Object#getOperations <em>Operations</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the containment reference list '<em>Operations</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Object#getOperations()\r\n\t * @see #getObject()\r\n\t * @generated\r\n\t */\r\n\tEReference getObject_Operations();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Attribute <em>Attribute</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Attribute</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute\r\n\t * @generated\r\n\t */\r\n\tEClass getAttribute();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getText <em>Text</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Text</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getText()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_Text();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getName()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getValue <em>Value</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Value</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getValue()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_Value();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Attribute#getValueType <em>Value Type</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Value Type</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Attribute#getValueType()\r\n\t * @see #getAttribute()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getAttribute_ValueType();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Operation <em>Operation</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Operation</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Operation\r\n\t * @generated\r\n\t */\r\n\tEClass getOperation();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Operation#getText <em>Text</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Text</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Operation#getText()\r\n\t * @see #getOperation()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getOperation_Text();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Operation#getName <em>Name</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Name</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Operation#getName()\r\n\t * @see #getOperation()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getOperation_Name();\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link gamifiedmodellingobjectmodel.Link <em>Link</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Link</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link\r\n\t * @generated\r\n\t */\r\n\tEClass getLink();\r\n\r\n\t/**\r\n\t * Returns the meta object for the attribute '{@link gamifiedmodellingobjectmodel.Link#getIdentity <em>Identity</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the attribute '<em>Identity</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link#getIdentity()\r\n\t * @see #getLink()\r\n\t * @generated\r\n\t */\r\n\tEAttribute getLink_Identity();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link gamifiedmodellingobjectmodel.Link#getFromObject <em>From Object</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>From Object</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link#getFromObject()\r\n\t * @see #getLink()\r\n\t * @generated\r\n\t */\r\n\tEReference getLink_FromObject();\r\n\r\n\t/**\r\n\t * Returns the meta object for the reference '{@link gamifiedmodellingobjectmodel.Link#getToObject <em>To Object</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for the reference '<em>To Object</em>'.\r\n\t * @see gamifiedmodellingobjectmodel.Link#getToObject()\r\n\t * @see #getLink()\r\n\t * @generated\r\n\t */\r\n\tEReference getLink_ToObject();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tGamifiedmodellingobjectmodelFactory getGamifiedmodellingobjectmodelFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.ObjectModelImpl <em>Object Model</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.ObjectModelImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObjectModel()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OBJECT_MODEL = eINSTANCE.getObjectModel();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Objects</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT_MODEL__OBJECTS = eINSTANCE.getObjectModel_Objects();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Links</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT_MODEL__LINKS = eINSTANCE.getObjectModel_Links();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.ObjectImpl <em>Object</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.ObjectImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getObject()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OBJECT = eINSTANCE.getObject();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OBJECT__NAME = eINSTANCE.getObject_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Identity</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OBJECT__IDENTITY = eINSTANCE.getObject_Identity();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Class Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OBJECT__CLASS_NAME = eINSTANCE.getObject_ClassName();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT__ATTRIBUTES = eINSTANCE.getObject_Attributes();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Operations</b></em>' containment reference list feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference OBJECT__OPERATIONS = eINSTANCE.getObject_Operations();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.AttributeImpl <em>Attribute</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.AttributeImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getAttribute()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass ATTRIBUTE = eINSTANCE.getAttribute();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Text</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__TEXT = eINSTANCE.getAttribute_Text();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__NAME = eINSTANCE.getAttribute_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__VALUE = eINSTANCE.getAttribute_Value();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Value Type</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute ATTRIBUTE__VALUE_TYPE = eINSTANCE.getAttribute_ValueType();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.OperationImpl <em>Operation</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.OperationImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getOperation()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass OPERATION = eINSTANCE.getOperation();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Text</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OPERATION__TEXT = eINSTANCE.getOperation_Text();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute OPERATION__NAME = eINSTANCE.getOperation_Name();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link gamifiedmodellingobjectmodel.impl.LinkImpl <em>Link</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.LinkImpl\r\n\t\t * @see gamifiedmodellingobjectmodel.impl.GamifiedmodellingobjectmodelPackageImpl#getLink()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass LINK = eINSTANCE.getLink();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>Identity</b></em>' attribute feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEAttribute LINK__IDENTITY = eINSTANCE.getLink_Identity();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>From Object</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference LINK__FROM_OBJECT = eINSTANCE.getLink_FromObject();\r\n\r\n\t\t/**\r\n\t\t * The meta object literal for the '<em><b>To Object</b></em>' reference feature.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEReference LINK__TO_OBJECT = eINSTANCE.getLink_ToObject();\r\n\r\n\t}\r\n\r\n}", "com.google.protobuf.StringValue getExternalAttributionModel();", "public interface ModelsPackage extends EPackage\n{\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"models\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.fever.org/models\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"fever.models\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tModelsPackage eINSTANCE = models.impl.ModelsPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__FEATURES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.BuildModelImpl\n\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t * @generated\n\t */\n\tint BUILD_MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Symbols</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SYMBOLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationModelImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_MODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__VALUE_FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Constants</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CONSTANTS = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Blocks</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__BLOCKS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>File name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__FILE_NAME = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Chane</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CHANE = 5;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_FEATURE_COUNT = 6;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SPLImpl\n\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t * @generated\n\t */\n\tint SPL = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Revision</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__REVISION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Variabilitymodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__VARIABILITYMODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Buildmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__BUILDMODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Implementationmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__IMPLEMENTATIONMODEL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelEntityImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL_ENTITY = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__ID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__FLAGS = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__TYPE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__SELECTS = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEPENDS = 8;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__EXTERNAL = 9;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_FEATURE_COUNT = 10;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t * @generated\n\t */\n\tint FEATURE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__NAME = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ChoiceImpl\n\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t * @generated\n\t */\n\tint CHOICE = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The number of structural features of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.DefaultValueImpl\n\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t * @generated\n\t */\n\tint DEFAULT_VALUE = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__VALUE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Order</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ORDER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ID = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SelectImpl\n\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t * @generated\n\t */\n\tint SELECT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__TARGET = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MappedFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t * @generated\n\t */\n\tint MAPPED_FEATURE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__TARGETS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Feature Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__FEATURE_NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CompilationTargetImpl\n\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Target Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Target Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_TYPE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__ID = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Mapped To Symbol</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__MAPPED_TO_SYMBOL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MakeSymbolImpl\n\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t * @generated\n\t */\n\tint MAKE_SYMBOL = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__TARGETS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ReferencedValueFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t * @generated\n\t */\n\tint REFERENCED_VALUE_FEATURE = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ConditionalBlockImpl\n\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t * @generated\n\t */\n\tint CONDITIONAL_BLOCK = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Start</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__START = 0;\n\n\t/**\n\t * The feature id for the '<em><b>End</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__END = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__VALUE_FEATURES = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Touched</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__TOUCHED = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Expression</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EXPRESSION = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Lines</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__LINES = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Edited By</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EDITED_BY = 7;\n\n\t/**\n\t * The number of structural features of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_FEATURE_COUNT = 8;\n\n\t/**\n\t * The number of operations of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureConstantImpl\n\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t * @generated\n\t */\n\tint FEATURE_CONSTANT = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationLineImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_LINE = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Line</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE__LINE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CodeEditImpl\n\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t * @generated\n\t */\n\tint CODE_EDIT = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Rem idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_IDX = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Add idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_IDX = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Rem size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_SIZE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Add size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_SIZE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Diff</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__DIFF = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.VariabilityTypes\n\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t * @generated\n\t */\n\tint VARIABILITY_TYPES = 17;\n\n\t/**\n\t * The meta object id for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.CompilationTargetType\n\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET_TYPE = 18;\n\n\t/**\n\t * The meta object id for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.ChangeType\n\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t * @generated\n\t */\n\tint CHANGE_TYPE = 19;\n\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModel <em>Variability Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model</em>'.\n\t * @see models.VariabilityModel\n\t * @generated\n\t */\n\tEClass getVariabilityModel();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Spl</em>'.\n\t * @see models.VariabilityModel#getSpl()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.VariabilityModel#getFeatures()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Features();\n\n\t/**\n\t * Returns the meta object for class '{@link models.BuildModel <em>Build Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Build Model</em>'.\n\t * @see models.BuildModel\n\t * @generated\n\t */\n\tEClass getBuildModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.BuildModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.BuildModel#getSpl()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.BuildModel#getFeatures()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Features();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getSymbols <em>Symbols</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Symbols</em>'.\n\t * @see models.BuildModel#getSymbols()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Symbols();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationModel <em>Implementation Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Model</em>'.\n\t * @see models.ImplementationModel\n\t * @generated\n\t */\n\tEClass getImplementationModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.ImplementationModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.ImplementationModel#getSpl()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ImplementationModel#getValueFeatures()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getConstants <em>Constants</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Constants</em>'.\n\t * @see models.ImplementationModel#getConstants()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Constants();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ImplementationModel#getBlocks <em>Blocks</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Blocks</em>'.\n\t * @see models.ImplementationModel#getBlocks()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Blocks();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getFile_name <em>File name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>File name</em>'.\n\t * @see models.ImplementationModel#getFile_name()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_File_name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getChane <em>Chane</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Chane</em>'.\n\t * @see models.ImplementationModel#getChane()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_Chane();\n\n\t/**\n\t * Returns the meta object for class '{@link models.SPL <em>SPL</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>SPL</em>'.\n\t * @see models.SPL\n\t * @generated\n\t */\n\tEClass getSPL();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.SPL#getRevision <em>Revision</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Revision</em>'.\n\t * @see models.SPL#getRevision()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEAttribute getSPL_Revision();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getVariabilitymodel <em>Variabilitymodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Variabilitymodel</em>'.\n\t * @see models.SPL#getVariabilitymodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Variabilitymodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getBuildmodel <em>Buildmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Buildmodel</em>'.\n\t * @see models.SPL#getBuildmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Buildmodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getImplementationmodel <em>Implementationmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Implementationmodel</em>'.\n\t * @see models.SPL#getImplementationmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Implementationmodel();\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModelEntity <em>Variability Model Entity</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model Entity</em>'.\n\t * @see models.VariabilityModelEntity\n\t * @generated\n\t */\n\tEClass getVariabilityModelEntity();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.VariabilityModelEntity#getId()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getFlags <em>Flags</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Flags</em>'.\n\t * @see models.VariabilityModelEntity#getFlags()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Flags();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Type</em>'.\n\t * @see models.VariabilityModelEntity#getType()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Type();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPrompt <em>Prompt</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt</em>'.\n\t * @see models.VariabilityModelEntity#getPrompt()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Prompt();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getDefaultValues <em>Default Values</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Default Values</em>'.\n\t * @see models.VariabilityModelEntity#getDefaultValues()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_DefaultValues();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getSelects <em>Selects</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Selects</em>'.\n\t * @see models.VariabilityModelEntity#getSelects()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_Selects();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPromptCondition <em>Prompt Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPromptCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PromptCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPresenceCondition <em>Presence Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Presence Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPresenceCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PresenceCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getDepends <em>Depends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Depends</em>'.\n\t * @see models.VariabilityModelEntity#getDepends()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Depends();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#isExternal <em>External</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>External</em>'.\n\t * @see models.VariabilityModelEntity#isExternal()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_External();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Feature <em>Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature</em>'.\n\t * @see models.Feature\n\t * @generated\n\t */\n\tEClass getFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Feature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.Feature#getName()\n\t * @see #getFeature()\n\t * @generated\n\t */\n\tEAttribute getFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Choice <em>Choice</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Choice</em>'.\n\t * @see models.Choice\n\t * @generated\n\t */\n\tEClass getChoice();\n\n\t/**\n\t * Returns the meta object for class '{@link models.DefaultValue <em>Default Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Default Value</em>'.\n\t * @see models.DefaultValue\n\t * @generated\n\t */\n\tEClass getDefaultValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see models.DefaultValue#getValue()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Value();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.DefaultValue#getCondition()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getOrder <em>Order</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Order</em>'.\n\t * @see models.DefaultValue#getOrder()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Order();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.DefaultValue#getId()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Select <em>Select</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Select</em>'.\n\t * @see models.Select\n\t * @generated\n\t */\n\tEClass getSelect();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target</em>'.\n\t * @see models.Select#getTarget()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Target();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.Select#getCondition()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.Select#getId()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MappedFeature <em>Mapped Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Mapped Feature</em>'.\n\t * @see models.MappedFeature\n\t * @generated\n\t */\n\tEClass getMappedFeature();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MappedFeature#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MappedFeature#getTargets()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEReference getMappedFeature_Targets();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getFeatureName <em>Feature Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Feature Name</em>'.\n\t * @see models.MappedFeature#getFeatureName()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_FeatureName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.MappedFeature#getId()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CompilationTarget <em>Compilation Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Compilation Target</em>'.\n\t * @see models.CompilationTarget\n\t * @generated\n\t */\n\tEClass getCompilationTarget();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetName <em>Target Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Name</em>'.\n\t * @see models.CompilationTarget#getTargetName()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetType <em>Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Type</em>'.\n\t * @see models.CompilationTarget#getTargetType()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.CompilationTarget#getId()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getMappedToSymbol <em>Mapped To Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Mapped To Symbol</em>'.\n\t * @see models.CompilationTarget#getMappedToSymbol()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_MappedToSymbol();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MakeSymbol <em>Make Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Make Symbol</em>'.\n\t * @see models.MakeSymbol\n\t * @generated\n\t */\n\tEClass getMakeSymbol();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MakeSymbol#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.MakeSymbol#getName()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEAttribute getMakeSymbol_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MakeSymbol#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MakeSymbol#getTargets()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEReference getMakeSymbol_Targets();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ReferencedValueFeature <em>Referenced Value Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Referenced Value Feature</em>'.\n\t * @see models.ReferencedValueFeature\n\t * @generated\n\t */\n\tEClass getReferencedValueFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ReferencedValueFeature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.ReferencedValueFeature#getName()\n\t * @see #getReferencedValueFeature()\n\t * @generated\n\t */\n\tEAttribute getReferencedValueFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ConditionalBlock <em>Conditional Block</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Conditional Block</em>'.\n\t * @see models.ConditionalBlock\n\t * @generated\n\t */\n\tEClass getConditionalBlock();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getStart <em>Start</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Start</em>'.\n\t * @see models.ConditionalBlock#getStart()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Start();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getEnd <em>End</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>End</em>'.\n\t * @see models.ConditionalBlock#getEnd()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_End();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.ConditionalBlock#getCondition()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Condition();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ConditionalBlock#getValueFeatures()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#isTouched <em>Touched</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Touched</em>'.\n\t * @see models.ConditionalBlock#isTouched()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Touched();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getExpression <em>Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Expression</em>'.\n\t * @see models.ConditionalBlock#getExpression()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Expression();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ConditionalBlock#getLines <em>Lines</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Lines</em>'.\n\t * @see models.ConditionalBlock#getLines()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_Lines();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getEditedBy <em>Edited By</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Edited By</em>'.\n\t * @see models.ConditionalBlock#getEditedBy()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_EditedBy();\n\n\t/**\n\t * Returns the meta object for class '{@link models.FeatureConstant <em>Feature Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature Constant</em>'.\n\t * @see models.FeatureConstant\n\t * @generated\n\t */\n\tEClass getFeatureConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.FeatureConstant#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.FeatureConstant#getName()\n\t * @see #getFeatureConstant()\n\t * @generated\n\t */\n\tEAttribute getFeatureConstant_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationLine <em>Implementation Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Line</em>'.\n\t * @see models.ImplementationLine\n\t * @generated\n\t */\n\tEClass getImplementationLine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationLine#getLine <em>Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Line</em>'.\n\t * @see models.ImplementationLine#getLine()\n\t * @see #getImplementationLine()\n\t * @generated\n\t */\n\tEAttribute getImplementationLine_Line();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CodeEdit <em>Code Edit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Code Edit</em>'.\n\t * @see models.CodeEdit\n\t * @generated\n\t */\n\tEClass getCodeEdit();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_idx <em>Rem idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem idx</em>'.\n\t * @see models.CodeEdit#getRem_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_idx <em>Add idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add idx</em>'.\n\t * @see models.CodeEdit#getAdd_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_size <em>Rem size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem size</em>'.\n\t * @see models.CodeEdit#getRem_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_size <em>Add size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add size</em>'.\n\t * @see models.CodeEdit#getAdd_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getDiff <em>Diff</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Diff</em>'.\n\t * @see models.CodeEdit#getDiff()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Diff();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.VariabilityTypes <em>Variability Types</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Variability Types</em>'.\n\t * @see models.VariabilityTypes\n\t * @generated\n\t */\n\tEEnum getVariabilityTypes();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.CompilationTargetType <em>Compilation Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Compilation Target Type</em>'.\n\t * @see models.CompilationTargetType\n\t * @generated\n\t */\n\tEEnum getCompilationTargetType();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.ChangeType <em>Change Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Change Type</em>'.\n\t * @see models.ChangeType\n\t * @generated\n\t */\n\tEEnum getChangeType();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tModelsFactory getModelsFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals\n\t{\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL = eINSTANCE.getVariabilityModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__SPL = eINSTANCE.getVariabilityModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__FEATURES = eINSTANCE.getVariabilityModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.BuildModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t\t * @generated\n\t\t */\n\t\tEClass BUILD_MODEL = eINSTANCE.getBuildModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SPL = eINSTANCE.getBuildModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__FEATURES = eINSTANCE.getBuildModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Symbols</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SYMBOLS = eINSTANCE.getBuildModel_Symbols();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_MODEL = eINSTANCE.getImplementationModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__SPL = eINSTANCE.getImplementationModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__VALUE_FEATURES = eINSTANCE.getImplementationModel_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constants</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__CONSTANTS = eINSTANCE.getImplementationModel_Constants();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Blocks</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__BLOCKS = eINSTANCE.getImplementationModel_Blocks();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>File name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__FILE_NAME = eINSTANCE.getImplementationModel_File_name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Chane</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__CHANE = eINSTANCE.getImplementationModel_Chane();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SPLImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t\t * @generated\n\t\t */\n\t\tEClass SPL = eINSTANCE.getSPL();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Revision</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SPL__REVISION = eINSTANCE.getSPL_Revision();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Variabilitymodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__VARIABILITYMODEL = eINSTANCE.getSPL_Variabilitymodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Buildmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__BUILDMODEL = eINSTANCE.getSPL_Buildmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Implementationmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__IMPLEMENTATIONMODEL = eINSTANCE.getSPL_Implementationmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelEntityImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL_ENTITY = eINSTANCE.getVariabilityModelEntity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__ID = eINSTANCE.getVariabilityModelEntity_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Flags</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__FLAGS = eINSTANCE.getVariabilityModelEntity_Flags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__TYPE = eINSTANCE.getVariabilityModelEntity_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT = eINSTANCE.getVariabilityModelEntity_Prompt();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Default Values</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = eINSTANCE.getVariabilityModelEntity_DefaultValues();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Selects</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__SELECTS = eINSTANCE.getVariabilityModelEntity_Selects();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = eINSTANCE.getVariabilityModelEntity_PromptCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Presence Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = eINSTANCE.getVariabilityModelEntity_PresenceCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Depends</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__DEPENDS = eINSTANCE.getVariabilityModelEntity_Depends();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>External</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__EXTERNAL = eINSTANCE.getVariabilityModelEntity_External();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE = eINSTANCE.getFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ChoiceImpl\n\t\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t\t * @generated\n\t\t */\n\t\tEClass CHOICE = eINSTANCE.getChoice();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.DefaultValueImpl\n\t\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t\t * @generated\n\t\t */\n\t\tEClass DEFAULT_VALUE = eINSTANCE.getDefaultValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__VALUE = eINSTANCE.getDefaultValue_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__CONDITION = eINSTANCE.getDefaultValue_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Order</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ORDER = eINSTANCE.getDefaultValue_Order();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ID = eINSTANCE.getDefaultValue_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SelectImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t\t * @generated\n\t\t */\n\t\tEClass SELECT = eINSTANCE.getSelect();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__TARGET = eINSTANCE.getSelect_Target();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__CONDITION = eINSTANCE.getSelect_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__ID = eINSTANCE.getSelect_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MappedFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass MAPPED_FEATURE = eINSTANCE.getMappedFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAPPED_FEATURE__TARGETS = eINSTANCE.getMappedFeature_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Feature Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__FEATURE_NAME = eINSTANCE.getMappedFeature_FeatureName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__ID = eINSTANCE.getMappedFeature_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CompilationTargetImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t\t * @generated\n\t\t */\n\t\tEClass COMPILATION_TARGET = eINSTANCE.getCompilationTarget();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_NAME = eINSTANCE.getCompilationTarget_TargetName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_TYPE = eINSTANCE.getCompilationTarget_TargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__ID = eINSTANCE.getCompilationTarget_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Mapped To Symbol</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__MAPPED_TO_SYMBOL = eINSTANCE.getCompilationTarget_MappedToSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MakeSymbolImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t\t * @generated\n\t\t */\n\t\tEClass MAKE_SYMBOL = eINSTANCE.getMakeSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAKE_SYMBOL__NAME = eINSTANCE.getMakeSymbol_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAKE_SYMBOL__TARGETS = eINSTANCE.getMakeSymbol_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ReferencedValueFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass REFERENCED_VALUE_FEATURE = eINSTANCE.getReferencedValueFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute REFERENCED_VALUE_FEATURE__NAME = eINSTANCE.getReferencedValueFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ConditionalBlockImpl\n\t\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t\t * @generated\n\t\t */\n\t\tEClass CONDITIONAL_BLOCK = eINSTANCE.getConditionalBlock();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__START = eINSTANCE.getConditionalBlock_Start();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>End</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__END = eINSTANCE.getConditionalBlock_End();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__CONDITION = eINSTANCE.getConditionalBlock_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__VALUE_FEATURES = eINSTANCE.getConditionalBlock_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Touched</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__TOUCHED = eINSTANCE.getConditionalBlock_Touched();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Expression</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__EXPRESSION = eINSTANCE.getConditionalBlock_Expression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lines</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__LINES = eINSTANCE.getConditionalBlock_Lines();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edited By</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__EDITED_BY = eINSTANCE.getConditionalBlock_EditedBy();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureConstantImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE_CONSTANT = eINSTANCE.getFeatureConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE_CONSTANT__NAME = eINSTANCE.getFeatureConstant_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationLineImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_LINE = eINSTANCE.getImplementationLine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Line</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_LINE__LINE = eINSTANCE.getImplementationLine_Line();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CodeEditImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t\t * @generated\n\t\t */\n\t\tEClass CODE_EDIT = eINSTANCE.getCodeEdit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_IDX = eINSTANCE.getCodeEdit_Rem_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_IDX = eINSTANCE.getCodeEdit_Add_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_SIZE = eINSTANCE.getCodeEdit_Rem_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_SIZE = eINSTANCE.getCodeEdit_Add_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Diff</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__DIFF = eINSTANCE.getCodeEdit_Diff();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.VariabilityTypes\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t\t * @generated\n\t\t */\n\t\tEEnum VARIABILITY_TYPES = eINSTANCE.getVariabilityTypes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.CompilationTargetType\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t\t * @generated\n\t\t */\n\t\tEEnum COMPILATION_TARGET_TYPE = eINSTANCE.getCompilationTargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.ChangeType\n\t\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t\t * @generated\n\t\t */\n\t\tEEnum CHANGE_TYPE = eINSTANCE.getChangeType();\n\n\t}\n\n}", "public PlanElement createAllocation(Task t, Asset a){\n Date from = prefHelper.getReadyAt (t);\n Date to = prefHelper.getBestDate (t);\n\n double confidence = \n (((GLMAsset) a).hasOrganizationPG ()) ? allocHelper.MEDIUM_CONFIDENCE : allocHelper.HIGHEST_CONFIDENCE;\n\n if (isDebugEnabled())\n debug (getName () + \".createAllocation - ready at \" + from + \n\t \" - best \" + to + \" confidence \" + confidence);\n\n AspectValue [] values = new AspectValue [2];\n values[0] = AspectValue.newAspectValue (AspectType.START_TIME, from.getTime());\n values[1] = AspectValue.newAspectValue (AspectType.END_TIME, to.getTime());\n\n PlanElement pe = allocHelper.makeAllocation(this,\n\t\t\t\t\t\tldmf, realityPlan, t, a, \n\t\t\t\t\t\tvalues,\n\t\t\t\t\t\tconfidence,\n\t\t\t\t\t\tConstants.Role.TRANSPORTER);\n return pe;\n }", "ArchitecturalModelFactory getArchitecturalModelFactory();", "private void initializeAllocation(String allocationPorpertyName, Random random) {\n\t\tString allocations = getString(allocationPorpertyName);\n\t\tString[] allocationsAsStrings = allocations.split(\",\");\n\t\tdouble[] allocationsAsDoubles = new double[allocationsAsStrings.length];\n\t\t\n\t\tfor (int i = 0; i < allocationsAsDoubles.length; i++) {\n\t\t\tallocationsAsDoubles[i] = Double.parseDouble(allocationsAsStrings[i]);\n\t\t}\n\t\t\n\t\tif (allocationPorpertyName.equals(ABOUTS_ALLOCATIONS)) {\n\t\t\taboutsAllocations = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t} else if (allocationPorpertyName.equals(MENTIONS_ALLOCATIONS)) {\n\t\t\tmentionsAllocations = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t} else if (allocationPorpertyName.equals(ENTITY_POPULARITY)) {\n\t\t\tentityPopularity = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t} else if (allocationPorpertyName.equals(USE_POPULAR_ENTITIES)) {\n\t\t\tusePopularEntities = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t} else if (allocationPorpertyName.equals(CREATIVE_WORK_TYPES_ALLOCATION)) {\n\t\t\tcreativeWorkTypesAllocation = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t} else if (allocationPorpertyName.equals(ABOUT_AND_MENTIONS_ALLOCATION)) {\n\t\t\taboutAndMentionsAllocation = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t} else if (allocationPorpertyName.equals(EDITORIAL_OPERATIONS_ALLOCATION)) {\n\t\t\teditorialOperationsAllocation = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t} else if (allocationPorpertyName.equals(AGGREGATION_OPERATIONS_ALLOCATION)) {\n\t\t\taggregationOperationsAllocation = new AllocationsUtil(allocationsAsDoubles, random);\n\t\t}\n\t\t\n//\t\tif (verbose) {\n//\t\t\tSystem.out.println(String.format(\"\\t%-33s : {%s}\", allocationPorpertyName, allocations));\n//\t\t}\n\t}", "ShipmentCostEstimate createShipmentCostEstimate();", "public interface ArchitecturalModelPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"architecturalModel\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.example.org/rMSAS/architecturalModel\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"architecturalModel\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tArchitecturalModelPackage eINSTANCE = rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl <em>Architectural Refactoring</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tint ARCHITECTURAL_REFACTORING = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Smell</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__SMELL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Engine</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__ENGINE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__DESCRIPTION = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Architectural Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING__ARCHITECTURAL_OPERATION = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Architectural Refactoring</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Architectural Refactoring</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ARCHITECTURAL_REFACTORING_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl <em>Abstract Architectural Operation</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract Architectural Operation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Abstract Architectural Operation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.MoveImpl <em>Move</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.MoveImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getMove()\n\t * @generated\n\t */\n\tint MOVE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__DESCRIPTION = ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__CODE_OPERATION = ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__CONDITION = ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>From</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__FROM = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>To</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__TO = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Abstraction</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE__ABSTRACTION = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of structural features of the '<em>Move</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE_FEATURE_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of operations of the '<em>Move</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MOVE_OPERATION_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.CreateImpl <em>Create</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.CreateImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getCreate()\n\t * @generated\n\t */\n\tint CREATE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__DESCRIPTION = ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__CODE_OPERATION = ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__CONDITION = ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>In</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__IN = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Abstraction</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE__ABSTRACTION = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Create</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE_FEATURE_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>Create</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CREATE_OPERATION_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.architecturalModel.impl.DeleteImpl <em>Delete</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.architecturalModel.impl.DeleteImpl\n\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getDelete()\n\t * @generated\n\t */\n\tint DELETE = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__DESCRIPTION = ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Code Operation</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__CODE_OPERATION = ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__CONDITION = ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>From</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__FROM = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Abstraction</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE__ABSTRACTION = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Delete</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE_FEATURE_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>Delete</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DELETE_OPERATION_COUNT = ABSTRACT_ARCHITECTURAL_OPERATION_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.ArchitecturalRefactoring <em>Architectural Refactoring</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Architectural Refactoring</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring\n\t * @generated\n\t */\n\tEClass getArchitecturalRefactoring();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getName()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getSmell <em>Smell</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Smell</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getSmell()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Smell();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getEngine <em>Engine</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Engine</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getEngine()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Engine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getDescription()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEAttribute getArchitecturalRefactoring_Description();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link rMSAS.architecturalModel.ArchitecturalRefactoring#getArchitecturalOperation <em>Architectural Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Architectural Operation</em>'.\n\t * @see rMSAS.architecturalModel.ArchitecturalRefactoring#getArchitecturalOperation()\n\t * @see #getArchitecturalRefactoring()\n\t * @generated\n\t */\n\tEReference getArchitecturalRefactoring_ArchitecturalOperation();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation <em>Abstract Architectural Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract Architectural Operation</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation\n\t * @generated\n\t */\n\tEClass getAbstractArchitecturalOperation();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation#getDescription()\n\t * @see #getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tEAttribute getAbstractArchitecturalOperation_Description();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation#getCodeOperation <em>Code Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Code Operation</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation#getCodeOperation()\n\t * @see #getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tEReference getAbstractArchitecturalOperation_CodeOperation();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.AbstractArchitecturalOperation#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Condition</em>'.\n\t * @see rMSAS.architecturalModel.AbstractArchitecturalOperation#getCondition()\n\t * @see #getAbstractArchitecturalOperation()\n\t * @generated\n\t */\n\tEReference getAbstractArchitecturalOperation_Condition();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.Move <em>Move</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Move</em>'.\n\t * @see rMSAS.architecturalModel.Move\n\t * @generated\n\t */\n\tEClass getMove();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Move#getFrom <em>From</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>From</em>'.\n\t * @see rMSAS.architecturalModel.Move#getFrom()\n\t * @see #getMove()\n\t * @generated\n\t */\n\tEReference getMove_From();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Move#getTo <em>To</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>To</em>'.\n\t * @see rMSAS.architecturalModel.Move#getTo()\n\t * @see #getMove()\n\t * @generated\n\t */\n\tEReference getMove_To();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Move#getAbstraction <em>Abstraction</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Abstraction</em>'.\n\t * @see rMSAS.architecturalModel.Move#getAbstraction()\n\t * @see #getMove()\n\t * @generated\n\t */\n\tEReference getMove_Abstraction();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.Create <em>Create</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Create</em>'.\n\t * @see rMSAS.architecturalModel.Create\n\t * @generated\n\t */\n\tEClass getCreate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Create#getIn <em>In</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>In</em>'.\n\t * @see rMSAS.architecturalModel.Create#getIn()\n\t * @see #getCreate()\n\t * @generated\n\t */\n\tEReference getCreate_In();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.architecturalModel.Create#getAbstraction <em>Abstraction</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Abstraction</em>'.\n\t * @see rMSAS.architecturalModel.Create#getAbstraction()\n\t * @see #getCreate()\n\t * @generated\n\t */\n\tEAttribute getCreate_Abstraction();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.architecturalModel.Delete <em>Delete</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Delete</em>'.\n\t * @see rMSAS.architecturalModel.Delete\n\t * @generated\n\t */\n\tEClass getDelete();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Delete#getFrom <em>From</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>From</em>'.\n\t * @see rMSAS.architecturalModel.Delete#getFrom()\n\t * @see #getDelete()\n\t * @generated\n\t */\n\tEReference getDelete_From();\n\n\t/**\n\t * Returns the meta object for the reference '{@link rMSAS.architecturalModel.Delete#getAbstraction <em>Abstraction</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Abstraction</em>'.\n\t * @see rMSAS.architecturalModel.Delete#getAbstraction()\n\t * @see #getDelete()\n\t * @generated\n\t */\n\tEReference getDelete_Abstraction();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tArchitecturalModelFactory getArchitecturalModelFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl <em>Architectural Refactoring</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalRefactoringImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getArchitecturalRefactoring()\n\t\t * @generated\n\t\t */\n\t\tEClass ARCHITECTURAL_REFACTORING = eINSTANCE.getArchitecturalRefactoring();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__NAME = eINSTANCE.getArchitecturalRefactoring_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Smell</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__SMELL = eINSTANCE.getArchitecturalRefactoring_Smell();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Engine</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__ENGINE = eINSTANCE.getArchitecturalRefactoring_Engine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ARCHITECTURAL_REFACTORING__DESCRIPTION = eINSTANCE.getArchitecturalRefactoring_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Architectural Operation</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ARCHITECTURAL_REFACTORING__ARCHITECTURAL_OPERATION = eINSTANCE.getArchitecturalRefactoring_ArchitecturalOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl <em>Abstract Architectural Operation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.AbstractArchitecturalOperationImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getAbstractArchitecturalOperation()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_ARCHITECTURAL_OPERATION = eINSTANCE.getAbstractArchitecturalOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ABSTRACT_ARCHITECTURAL_OPERATION__DESCRIPTION = eINSTANCE.getAbstractArchitecturalOperation_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Code Operation</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ABSTRACT_ARCHITECTURAL_OPERATION__CODE_OPERATION = eINSTANCE.getAbstractArchitecturalOperation_CodeOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ABSTRACT_ARCHITECTURAL_OPERATION__CONDITION = eINSTANCE.getAbstractArchitecturalOperation_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.MoveImpl <em>Move</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.MoveImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getMove()\n\t\t * @generated\n\t\t */\n\t\tEClass MOVE = eINSTANCE.getMove();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MOVE__FROM = eINSTANCE.getMove_From();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>To</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MOVE__TO = eINSTANCE.getMove_To();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Abstraction</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MOVE__ABSTRACTION = eINSTANCE.getMove_Abstraction();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.CreateImpl <em>Create</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.CreateImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getCreate()\n\t\t * @generated\n\t\t */\n\t\tEClass CREATE = eINSTANCE.getCreate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>In</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CREATE__IN = eINSTANCE.getCreate_In();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Abstraction</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CREATE__ABSTRACTION = eINSTANCE.getCreate_Abstraction();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.architecturalModel.impl.DeleteImpl <em>Delete</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.architecturalModel.impl.DeleteImpl\n\t\t * @see rMSAS.architecturalModel.impl.ArchitecturalModelPackageImpl#getDelete()\n\t\t * @generated\n\t\t */\n\t\tEClass DELETE = eINSTANCE.getDelete();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference DELETE__FROM = eINSTANCE.getDelete_From();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Abstraction</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference DELETE__ABSTRACTION = eINSTANCE.getDelete_Abstraction();\n\n\t}\n\n}", "public boolean allocateIt() {\n\n //\tCreate invoice Allocation -\tSee also MCash.completeIt\n if (getC_Invoice_ID() != 0) {\n return allocateInvoice();\n }\n //\tInvoices of a AP Payment Selection\n if (allocatePaySelection()) {\n return true;\n }\n\n if (getC_Order_ID() != 0) {\n return false;\n }\n\n //\tAllocate to multiple Payments based on entry\n MPaymentAllocate[] pAllocs = MPaymentAllocate.get(this);\n if (pAllocs.length == 0) {\n return false;\n }\n\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo(), get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo(), get_TrxName());\n }\n alloc.setAD_Org_ID(getAD_Org_ID());\n\n /**\n * 25/11/2010 Camarzana Mariano\n * Estaba tomando mal el nombre de la transaccion\n * usaba getTrxType() en vez de get_TrxName()\n *\n */\n if (!alloc.save(get_TrxName())) {\n log.severe(\"P.Allocations not created\");\n return false;\n }\n //\tLines\n for (int i = 0; i < pAllocs.length; i++) {\n MPaymentAllocate pa = pAllocs[i];\n MAllocationLine aLine = null;\n\n /*\n * 30/05/2012\n * Zynnia - agregado para que actualice el campo pagado\n * JF\n * \n */\n\n String sql = \"SELECT invoiceOpen(C_Invoice_ID, 0) \"\n + \"FROM C_Invoice WHERE C_Invoice_ID=?\";\n BigDecimal open = DB.getSQLValueBD(null, sql, pa.getC_Invoice_ID());\n\n if (open.compareTo(Env.ZERO) == 0) {\n MInvoice invoice = new MInvoice(getCtx(), pa.getC_Invoice_ID(), get_TrxName());\n invoice.setIsPaid(true);\n if (!invoice.save(get_TrxName())) {\n log.severe(\"No se pudo cambiar a estado Pagado la factura \" + invoice.getDocumentNo());\n return false;\n }\n }\n\n\n if (isReceipt()) {\n aLine = new MAllocationLine(alloc, pa.getAmount(),\n pa.getDiscountAmt(), pa.getWriteOffAmt(), pa.getOverUnderAmt());\n } else {\n aLine = new MAllocationLine(alloc, pa.getAmount().negate(),\n pa.getDiscountAmt().negate(), pa.getWriteOffAmt().negate(), pa.getOverUnderAmt().negate());\n }\n aLine.setDocInfo(pa.getC_BPartner_ID(), 0, pa.getC_Invoice_ID());\n aLine.setPaymentInfo(getC_Payment_ID(), 0);\n if (!aLine.save(get_TrxName())) {\n log.warning(\"P.Allocations - line not saved\");\n } else {\n pa.setC_AllocationLine_ID(aLine.getC_AllocationLine_ID());\n pa.save(get_TrxName());\n }\n }\n //\tShould start WF\n alloc.processIt(DocAction.ACTION_Complete);\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n return alloc.save(get_TrxName());\n }", "public Object getModel() {\n\t\treturn bm;\r\n\t}", "String getModelB();", "ComponentmodelPackage getComponentmodelPackage();", "@GET\n @Produces({\"application/xml\", \"application/json\"})\n public ModelBase pull() throws NotFoundException {\n // ?? get latest ontModel directly from TopologyManager ??\n ModelBase model = NPSGlobalState.getModelStore().getHead();\n if (model == null)\n throw new NotFoundException(\"None!\"); \n return model;\n }", "GamifiedmodellingobjectmodelFactory getGamifiedmodellingobjectmodelFactory();", "public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();", "public ItemReference alloc();", "public static JavaSpace05 getSpace() {\n return instance.doGetSpace();\n }", "public interface PurchasePackage {\n\n }", "NCModel getModel();", "ConstraintModelFactory getConstraintModelFactory();", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__PARAMS);\n createEReference(modelEClass, MODEL__STATES);\n createEReference(modelEClass, MODEL__POPULATION);\n\n paramEClass = createEClass(PARAM);\n createEAttribute(paramEClass, PARAM__NAME);\n createEAttribute(paramEClass, PARAM__VALUE);\n\n agentStateEClass = createEClass(AGENT_STATE);\n createEAttribute(agentStateEClass, AGENT_STATE__NAME);\n createEReference(agentStateEClass, AGENT_STATE__PREFIXS);\n\n prefixEClass = createEClass(PREFIX);\n createEReference(prefixEClass, PREFIX__ACTION);\n createEAttribute(prefixEClass, PREFIX__CONTINUE);\n\n actionEClass = createEClass(ACTION);\n createEAttribute(actionEClass, ACTION__NAME);\n createEReference(actionEClass, ACTION__RATE);\n\n acT_SpNoMsgEClass = createEClass(ACT_SP_NO_MSG);\n\n acT_SpBrEClass = createEClass(ACT_SP_BR);\n createEReference(acT_SpBrEClass, ACT_SP_BR__RANGE);\n\n acT_SpUniEClass = createEClass(ACT_SP_UNI);\n createEReference(acT_SpUniEClass, ACT_SP_UNI__RANGE);\n\n acT_InBrEClass = createEClass(ACT_IN_BR);\n createEReference(acT_InBrEClass, ACT_IN_BR__VALUE);\n\n acT_InUniEClass = createEClass(ACT_IN_UNI);\n createEReference(acT_InUniEClass, ACT_IN_UNI__VALUE);\n\n iRangeEClass = createEClass(IRANGE);\n\n pR_ExprEClass = createEClass(PR_EXPR);\n createEReference(pR_ExprEClass, PR_EXPR__PR_E);\n\n terminal_PR_ExprEClass = createEClass(TERMINAL_PR_EXPR);\n createEAttribute(terminal_PR_ExprEClass, TERMINAL_PR_EXPR__LINKED_PARAM);\n\n ratE_ExprEClass = createEClass(RATE_EXPR);\n createEReference(ratE_ExprEClass, RATE_EXPR__RT);\n\n terminal_RATE_ExprEClass = createEClass(TERMINAL_RATE_EXPR);\n createEAttribute(terminal_RATE_ExprEClass, TERMINAL_RATE_EXPR__LINKED_PARAM);\n\n agenT_NUMEClass = createEClass(AGENT_NUM);\n createEAttribute(agenT_NUMEClass, AGENT_NUM__TYPE);\n\n populationEClass = createEClass(POPULATION);\n createEReference(populationEClass, POPULATION__POPU);\n\n agentsEClass = createEClass(AGENTS);\n createEAttribute(agentsEClass, AGENTS__TYPE);\n }", "Object getMaterialization(Object groupID) throws Exception;", "private IJavaModel getJavaModel() {\n\t\treturn JavaCore.create(getWorkspaceRoot());\n\t}", "Aggregator retrieveAggregatorByNameCode(String mnemonic) throws RepoxException;", "Optional<CPAllocationGeneralExpenseDetails> findOne(UUID id);", "public interface ConstraintModelPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"constraintModel\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.example.org/rMSAS/constraintModel\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"constraintModel\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tConstraintModelPackage eINSTANCE = rMSAS.constraintModel.impl.ConstraintModelPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.AbstractConditionImpl <em>Abstract Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.AbstractConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getAbstractCondition()\n\t * @generated\n\t */\n\tint ABSTRACT_CONDITION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION__OCL_QUERY = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Abstract Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.PreConditionImpl <em>Pre Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.PreConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPreCondition()\n\t * @generated\n\t */\n\tint PRE_CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION__OCL_QUERY = ABSTRACT_CONDITION__OCL_QUERY;\n\n\t/**\n\t * The number of structural features of the '<em>Pre Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION_FEATURE_COUNT = ABSTRACT_CONDITION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Pre Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION_OPERATION_COUNT = ABSTRACT_CONDITION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.PostConditionImpl <em>Post Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.PostConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPostCondition()\n\t * @generated\n\t */\n\tint POST_CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION__OCL_QUERY = ABSTRACT_CONDITION__OCL_QUERY;\n\n\t/**\n\t * The number of structural features of the '<em>Post Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION_FEATURE_COUNT = ABSTRACT_CONDITION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Post Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION_OPERATION_COUNT = ABSTRACT_CONDITION_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.AbstractCondition <em>Abstract Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract Condition</em>'.\n\t * @see rMSAS.constraintModel.AbstractCondition\n\t * @generated\n\t */\n\tEClass getAbstractCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.constraintModel.AbstractCondition#getOclQuery <em>Ocl Query</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Ocl Query</em>'.\n\t * @see rMSAS.constraintModel.AbstractCondition#getOclQuery()\n\t * @see #getAbstractCondition()\n\t * @generated\n\t */\n\tEAttribute getAbstractCondition_OclQuery();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.PreCondition <em>Pre Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Pre Condition</em>'.\n\t * @see rMSAS.constraintModel.PreCondition\n\t * @generated\n\t */\n\tEClass getPreCondition();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.PostCondition <em>Post Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Post Condition</em>'.\n\t * @see rMSAS.constraintModel.PostCondition\n\t * @generated\n\t */\n\tEClass getPostCondition();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tConstraintModelFactory getConstraintModelFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.AbstractConditionImpl <em>Abstract Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.AbstractConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getAbstractCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_CONDITION = eINSTANCE.getAbstractCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Query</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ABSTRACT_CONDITION__OCL_QUERY = eINSTANCE.getAbstractCondition_OclQuery();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PreConditionImpl <em>Pre Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PreConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPreCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass PRE_CONDITION = eINSTANCE.getPreCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PostConditionImpl <em>Post Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PostConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPostCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass POST_CONDITION = eINSTANCE.getPostCondition();\n\n\t}\n\n}", "public void createModelFromAlloy(){\n\t\t// Get signatures list\n\t\tSafeList<Sig> sigs = module.getAllSigs();\n\t\t// Check if the list is empty\n\t\tif(sigs.isEmpty()) assertMessage(\"Error in create Model FromAlloy: no sig found!\");\n\t\t// Generate java class source file for one top-level sig at a time\n\t\tfor(int i = 0; i<sigs.size(); i++) {\n\t\t\tSig aSig = sigs.get(i);\n\t\t\tif (!aSig.isTopLevel()) continue;\n\t\t\tif(!aSig.builtin){ // User-defined sig\n\t\t\t\tif(aSig.isSubsig != null){\n\t\t\t\t\tPrimSig pSig = (PrimSig) aSig;\n\t\t\t\t\trecursiveGenerate(null, pSig);\t\n\t\t\t\t} else assertMessage(\"TODO: Dealt with subset sig\");\n\t\t\t}\n\t\t\telse assertMessage(\"TODO: Dealt with built-in sig\");\n\t\t}\n\t}", "IrSpecificPackage getIrSpecificPackage();", "public ValidationModel getValidationModel() {\n \n Logger logger = Logger.getLogger(AvdSupport.class.getName());\n \n\n logger.log(Level.SEVERE, \"Creatig valiation model\");\n logger.log(Level.SEVERE, \"Reading file: \");\n FileObject fo = avdDataObject.getPrimaryFile();\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(fo.getInputStream()));\n \n String line = null;\n while ((line = br.readLine()) != null) {\n logger.log(Level.SEVERE, \"line: {0}\", line);\n }\n \n } catch (FileNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n \n // TODO: implement\n // throw new UnsupportedOperationException(\"Not supported yet.\");\n \n \n \n return null;\n }", "OntoumlPackage getOntoumlPackage();", "@Test\n\t@DisplayName(\"Get IGSNAllocation gives null when user has the wrong allocation\")\n\tvoid getIGSNAllocationForContent_mismatchUser_null() throws IOException {\n\t\tString xml = Helpers.readFile(\"src/test/resources/xml/sample_ardcv1.xml\");\n\n\t\t// given user that has allocation 20.500.11812/XXAA\n\t\tUser user = TestHelper.mockUser();\n\t\tAllocation allocation = TestHelper.mockIGSNAllocation();\n\t\tallocation.setScopes(Arrays.asList(Scope.CREATE));\n\t\tuser.setAllocations(Arrays.asList(allocation));\n\n\t\tassertThat(igsnService.getIGSNAllocationForContent(xml, user, Scope.CREATE)).isEqualTo(null);\n\t}", "private RShape loadNewShape() {\n // Get a list of all SVG files in the BUFFER_ACC_PATH folder\n File dir = new File(BUFFER_ACC_PATH);\n String[] listing = dir.list(new FilenameFilter() {\n public boolean accept(File file, String filename) {\n return filename.endsWith(\"svg\");\n }\n });\n \n availableFiles = listing.length;\n\n // Load the first SVG file from the list\n if (listing != null && listing.length > 0) {\n currentFileName = listing[currentFileIndex];\n System.out.println(\"loading \" + currentFileName);\n RShape shape = RG.loadShape(BUFFER_ACC_PATH + currentFileName);\n shape.scale(svgScale, shape.getCenter());\n print(shape, \"loaded: \");\n return shape;\n }\n\n return null;\n }", "protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }", "private boolean allocateInvoice() {\n //\tcalculate actual allocation\n BigDecimal allocationAmt = getPayAmt();\t\t\t//\tunderpayment\n\n //\t\tDANIEL -- 2do.\n float pay = getPayAmt().floatValue();\n //\n\n if (getOverUnderAmt().signum() < 0 && getPayAmt().signum() > 0) {\n allocationAmt = allocationAmt.add(getOverUnderAmt());\t//\toverpayment (negative)\n }\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n }\n\n alloc.setAD_Org_ID(getAD_Org_ID());\n if (!alloc.save()) {\n log.log(Level.SEVERE, \"Could not create Allocation Hdr\");\n return false;\n }\n MAllocationLine aLine = null;\n if (isReceipt()) {\n aLine = new MAllocationLine(alloc, allocationAmt,\n getDiscountAmt(), getWriteOffAmt(), getOverUnderAmt());\n } else {\n aLine = new MAllocationLine(alloc, allocationAmt.negate(),\n getDiscountAmt().negate(), getWriteOffAmt().negate(), getOverUnderAmt().negate());\n }\n aLine.setDocInfo(getC_BPartner_ID(), 0, getC_Invoice_ID());\n aLine.setC_Payment_ID(getC_Payment_ID());\n if (!aLine.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Line\");\n return false;\n }\n //\tShould start WF\n alloc.processIt(DocAction.ACTION_Complete);\n alloc.save(get_TrxName());\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n\n //\tGet Project from Invoice\n int C_Project_ID = DB.getSQLValue(get_TrxName(),\n \"SELECT MAX(C_Project_ID) FROM C_Invoice WHERE C_Invoice_ID=?\", getC_Invoice_ID());\n if (C_Project_ID > 0 && getC_Project_ID() == 0) {\n setC_Project_ID(C_Project_ID);\n } else if (C_Project_ID > 0 && getC_Project_ID() > 0 && C_Project_ID != getC_Project_ID()) {\n log.warning(\"Invoice C_Project_ID=\" + C_Project_ID\n + \" <> Payment C_Project_ID=\" + getC_Project_ID());\n }\n return true;\n }", "protected Model loadDeploymentModelFromResource(@Nonnull String resourceName, @Nonnull String adaptationIdentifier) throws Exception {\n InputStream is = this.getClass().getResourceAsStream(resourceName);\n Model deploymentModel = ModelFactory.createDefaultModel();\n RDFDataMgr.read(deploymentModel, is, Lang.TTL);\n\n //Get the deployment model statement\n Selector selector = new SimpleSelector(null, RDF.type,\n deploymentModel.getResource(\"http://darpa.mil/immortals/ontology/r2.0.0/gmei#DeploymentModel\"));\n StmtIterator iter = deploymentModel.listStatements(selector);\n\n if (!iter.hasNext()) {\n logger.error(\"DeploymentModel triple not found in deployment model template. Check \" + resourceName + \".\");\n throw new Exception(\"Unable to create perturbed deployment model for DAS.\");\n }\n\n org.apache.jena.rdf.model.Statement deploymentModelStatement = iter.next();\n\n deploymentModelStatement.getSubject().addLiteral(\n deploymentModel.getProperty(\"http://darpa.mil/immortals/ontology/r2.0.0#hasSessionIdentifier\"),\n adaptationIdentifier);\n\n return deploymentModel;\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate int loadSomObject( SomAppSomObject soappObj, ModelCatalogItem mcItem, int somObjIndex) {\r\n\r\n\t\tint result = -1;\r\n\t\tString str = \"\",rawXmlStr , modelFolder=\"\",somxmlFilename=\"\" ;\r\n\t\tObject subtag;\r\n\t\tArrayList<Double> loadedValues ;\r\n\r\n\t\tVariables variables;\r\n\t\tMetaNode mnode;\r\n\r\n\t\tArrayList<SomAppNode> localNodeCollection = new ArrayList<SomAppNode>();\r\n\t\tArrayList<String> loadedVariables, syntheticVarMetric = new ArrayList<String>();\r\n\t\tArrayList<String> usedVariables = new ArrayList<String>(); \r\n\t\tArrayList<Integer> usedVariablesIndexes ;\r\n\t\tArrayList<Double> profileValues,usageIndicationVector = new ArrayList<Double> ();\r\n\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t\tvariables = somData.getVariables() ;\r\n\t\t\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\tif (somData==null){\r\n\t\t\t\tsomData = soappTransformer.getSomData() ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tmodelFolder = fileutil.createpath(baseFolder, mcItem.packageName ) ;\r\n\t\t\tsomxmlFilename = fileutil.createpath(modelFolder, \"som.xml\");\r\n\t\t\t\r\n\t\t\trawXmlStr = fileutil.readFile2String(somxmlFilename);\r\n\t\t\txMsg = new XmlStringHandling();\r\n\t\t\t\r\n\t\t\txMsg.setContentRoot( \"somobjects\") ;\r\n\t\t\t// <project>\r\n\t\t\t// <general>\r\n\t\t\tstr = xMsg.getSpecifiedConditionalInfo( rawXmlStr, \"//somobjects/som\", \"index\", \"\"+somObjIndex, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/project/general/task\", \"id\"); \t\r\n\t\t\t soappObj.originatingTask = str;\r\n\t\t\t \r\n\t\t\tstr = xMsg.getSpecifiedConditionalInfo( rawXmlStr, \"//somobjects/som\", \"index\", \"\"+somObjIndex, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/project/general/name\", \"label\"); \t\r\n\t\t\t\t soappObj.name = str;\r\n\t\t\t// .................\r\n\t\t\t\r\n\t\t\tstr = xMsg.getSpecifiedConditionalInfo( rawXmlStr, \"//somobjects/som\", \"index\", \"\"+somObjIndex, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/project/context/bags\", \"count\"); \t\r\n\t\t\t\t soappObj.bagsCount = xMsg.getInt(str, 0) ;\r\n\t\t\t\t \r\n\t\t\tstr = xMsg.getSpecifiedConditionalInfo( rawXmlStr, \"//somobjects/som\", \"index\", \"\"+somObjIndex, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/project/context/somtype\", \"targetmode\"); \t\r\n\t\t\t\t soappObj.targetmode = xMsg.getInt(str, 0) ;\r\n\t\t\t\r\n\t\t\tstr = xMsg.getSpecifiedConditionalInfo( rawXmlStr, \"//somobjects/som\", \"index\", \"\"+somObjIndex, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/project/context/somtype\", \"typeid\"); \t\r\n\t\t\t\t soappObj.somTypeId = xMsg.getInt(str, 0) ;\r\n\t\t\t\r\n\t\t\tstr = xMsg.getSpecifiedConditionalInfo( rawXmlStr, \"//somobjects/som\", \"index\", \"\"+somObjIndex, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/project/risk/ecr\", \"value\");\r\n\t\t\t\t double v = soappProperties.getRiskAttitudeByECR();\r\n\t\t\t if (v<0){\r\n\t\t\t \t v = 0.25 ;\r\n\t\t\t }\r\n\t\t\t\t v = xMsg.getNum(str, v );\r\n\t\t\t\t soappProperties.setRiskLevelByECR(v);\r\n\r\n\t\t\tstr = xMsg.getSpecifiedConditionalInfo( rawXmlStr, \"//somobjects/som\", \"index\", \"\"+somObjIndex, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"/project/risk/support\", \"value\"); \t\r\n\t\t\t\t int n = soappProperties.getRiskConfidenceByClusterSupport();\r\n\t\t\t\t if (n<0){\r\n\t\t\t\t\t n = 0;\r\n\t\t\t\t }\r\n\t\t\t\t n = xMsg.getInt(str, n); // \r\n\t\t\t\t soappProperties.setRiskLevelByECR(v);\r\n\r\n\t\t\t// <content> ... filter, noise etc. is missing\r\n\t\t\t\r\n\t\t\t// get all nodes as object\r\n\t\t\tVector<Object> xmlNodeObjects = new Vector<Object>();\r\n\t\t\t\r\n\t\t\t// \r\n\t\t\tint r = xMsg.setBasicConditionLocation( rawXmlStr,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"//somobjects/som\", // path \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"index\", \t\t\t// attribute containing the condition \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"+somObjIndex ,\t// the condition \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"/lattice\");\t\t// a node below the condition\r\n\r\n\t\t\txmlNodeObjects = xMsg.getItemsList(rawXmlStr, \"nodes\", \"node\", \"index\") ;\r\n\t\t\t\r\n\t\t\t// that's not implemented yet...\r\n\t\t\txmlNodeObjects = xMsg.getSpecifiedConditionalNode( rawXmlStr, \t\"//somobjects/som\", // path \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"index\", \t\t\t// attribute containing the condition \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"+somObjIndex ,\t// the condition \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"/lattice\");\t\t// a node below the condition\r\n\t\t\t// these are xml nodes !!!\r\n\t\t\txmlNodeObjects = xMsg.getNodeList(rawXmlStr, \"nodes\", \"node\");\r\n\t\t\t\r\n\t\t\tString basicXpath = xMsg.getConditionalXPath()+\"/nodes\";\r\n\t \t\t\r\n\t\t\tsoappObj.nodeCount = xmlNodeObjects.size();\r\n\t\t\t\r\n\t\t\t\r\n\t\t \t\t\t\t\t\t\t\t\tout.print(2, \"going to load som classification model, <\"+soappObj.nodeCount+\"> nodes expected...\") ;\r\n soappObj.soappNodes.clear() ;\r\n soappObj.soappNodes.setSomData(somData) ;\r\n \t\t\t\t\t\t\t\tProcessFeedBackContainer processFeedBackContainer = new ProcessFeedBackContainer( 0,71, xmlNodeObjects.size(), somApplication);\r\n \t\t\t\t\t\t\t\tprocessFeedBackContainer.setHostingObject( this.getClass().getSimpleName() );\r\n \r\n // we have to transfer the data from nodeObjects to MetaNodeIntf in soappObj.soappNodes\r\n // soappNodes is an instance of VirtualLattice!!\r\n \t\t\t\t\t\t\t\t\r\n // as provided and/or available\r\n int vn = somData.getNormalizedDataTable().getColumnHeaders().size() ;\r\n \r\n usageIndicationVector = ArrUtilities.createCollection(vn, 0.0) ;\r\n \r\n // note that we need 2 loops, because we reduce the table size AND the set of the variables, we also have to care about requested index variables\r\n // subsequently the variable collection will not contain not-needed stuff\r\n // first creating nodes and reading the data into helper structure, then establishing node profile data\r\n\t\t\tfor (int i=0;i<xmlNodeObjects.size();i++){\r\n\t\t\t\t\t\t\t\t\t\t\t// provide a process feedback to the available callback\r\n\t\t\t\t\t\t\t\t\t\t\tprocessFeedBackContainer.setCurrentProgressValue(i) ;\r\n\t\t\t\t// SomAppNodeIntf node = (SomAppNodeIntf)soappObj.soappNodes.getNodes().get(i) ;\r\n\t\t\t\t// this derives from the <MetaNodeIntf>\r\n\t\t\t\t// MetaNode node = new MetaNode(soappObj.soappNodes, somData );\r\n\t\t\t\t\r\n\t\t\t\tSomAppNode node = new SomAppNode(soappObj.soappNodes, somData ,i); // 161c9d1\r\n\t\t\t\t\r\n\t\t\t\tObject obj = xmlNodeObjects.get(i) ;\r\n\t\t\t\txMsg.clearBasicConditionLocation() ;\r\n\t\t\t\t// get info from that node\r\n\t\t\t\tstr = xMsg.getSpecifiedItemInfo(obj, \"index\") ;\r\n\t\t\t\t\r\n\t\t\t\tString xpath = basicXpath+\"/node[@index='\"+str+\"']\" ;\r\n\t\t\t\txMsg.setConditionalXPath(xpath) ;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"description/ppv\", \"value\");\r\n\t\t\t\t\t node.setPpv( xMsg.getNum(str, -1.0) );\r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"description/ppvrank\", \"value\");\r\n\t\t\t\t\t node.setPpvRank( xMsg.getInt(str, 0) );\r\n\t\t\t\t\r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"description/npv\", \"value\");\r\n\t\t\t\t \t node.setNpv( xMsg.getNum(str, -1.0) );\r\n\r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"description/recordcount\", \"value\");\r\n\t\t\t\t\t node.setRecordcount( xMsg.getInt(str, 0) );\r\n\t\t\t\t\r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"description/neighbors\", \"items\");\r\n\t\t\t\t\t node.setNeighborsList( xMsg.getListFromXmlStr(str,Integer.class) );\r\n\t\t\t\t\r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"profile/values\", \"list\");\r\n\t\t\t\t\t node.setModelProfile( xMsg.getListFromXmlStr(str,Double.class)) ;\r\n\t\t\t\t\t \r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"profile/variables\", \"list\");\r\n\t\t\t\t\t node.setAssignates( xMsg.getListFromXmlStr(str,String.class)) ;\r\n\t\t\t\t\t \r\n\t\t\t\tstr = xMsg.getSpecifiedInfo(rawXmlStr, \"profile/variances\", \"list\"); \r\n\t\t\t\t\t node.setModelProfileVariances( xMsg.getListFromXmlStr(str,Double.class)) ; \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tArrUtilities.resetCollection( node.getProfileVector().getValues(), 0.0);\r\n\t\t\t\t\r\n\t\t\t\t// establishing two parallel lists of different flavors of the node \r\n\t\t\t\tsoappObj.soappNodes.addNode( node ) ; // MetaNode , does not know about assignates\r\n\t\t\t\tlocalNodeCollection.add(node) ; // SomAppNode, flavor used as an intermediate structure\r\n\t\t\t} // i-> all nodeObjects\r\n\t\t\t\t\t\t\t\t\t\t\tprocessFeedBackContainer.setCurrentProgressValue(xmlNodeObjects.size()) ;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tresult=1;\r\n\r\n\t\t\t\r\n\t\t\t// the synthesis consists from the optionally requested id variables ... TODO: we have to check whether they are present in the data\r\n\t\t \t\r\n\t\t\tif (soappProperties.indexVariableLabels.size()>0){\r\n\t\t\t\tsyntheticVarMetric = arrutil.collectionGetConfirmedContainments( soappProperties.indexVariableLabels, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t somData.getNormalizedDataTable().getColumnHeaders());\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// ... and from the imported variables\r\n\t\t\tsyntheticVarMetric.addAll( localNodeCollection.get(0).getAssignates() );\r\n\t\t\t\r\n\t\t\tDataTable normDataTable = somData.getNormalizedDataTable() ;\r\n\t\t\t\r\n\t\t\t// streamlining the collection of variables\r\n\t\t\t// note, that at this point we need the table of transformed data !!! \r\n\t\t\tint vm = variables.size()-1;\r\n\t\t\t\r\n\t\t\twhile (vm>=0){\r\n\t\t\t\t\r\n\t\t\t\tString varLabel = variables.getItem(vm).getLabel();\r\n\t\t\t\tif (syntheticVarMetric.indexOf(varLabel)<0){\r\n\t\t\t\t\tvariables.removeItem(vm); \t// should be happen \"everywhere\", in \"each\" instance of somData / variables -> check !!??? \r\n\t\t\t\t \t\t\t\t\t\t\t\t// since we move around only the reference\r\n\t\t\t\t\tnormDataTable.getColumnHeaders().remove(vm);\r\n\t\t\t\t\tnormDataTable.getDataTable().remove(vm) ;\r\n\t\t\t\t\t\r\n\t\t\t\t\tint ix = somData.getVariableLabels().indexOf(varLabel);\r\n\t\t\t\t\tif (ix>=0){\r\n\t\t\t\t\t\tsomData.getVariableLabels().remove(ix) ;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tvm--;\r\n\t\t\t}\r\n\t\t\tnormDataTable.setColcount( normDataTable.getDataTable().size()) ;\r\n\t\t\tnormDataTable.getDataTable().trimToSize();\r\n\t\t\tnormDataTable.getColumnHeaders().trimToSize();\r\n\t\t\tvariables.getItems().trimToSize() ;\r\n\r\n\t\t\t// we have to re-establish the row perspective of the DataTable !!!\r\n\t\t\tnormDataTable.createRowOrientedTable(1);\r\n\t\t\t\r\n\t\t\t//\r\n\t\t\t\r\n ArrayList<Variable> vari = somData.getVariableItems();\r\n\r\n usedVariables = localNodeCollection.get(0).getAssignates();\r\n \r\n\t\t\tusedVariablesIndexes = (ArrayList<Integer>) variables.transcribeUseIndications(usedVariables); usedVariablesIndexes.trimToSize();\r\n\t\t\tusageIndicationVector = (ArrayList<Double>) variables.transcribeUseIndications(usedVariablesIndexes) ; usageIndicationVector.trimToSize();\r\n\t\t\t\r\n\t\t\tsoappObj.soappNodes.getIntensionalitySurface().setUsageIndicationVector(usageIndicationVector) ;\r\n\t\t\tsoappObj.soappNodes.getSimilarityConcepts().setUsageIndicationVector(usageIndicationVector) ;\r\n\t\t\t\r\n\t\t\tsoappObj.setUsageVector( usageIndicationVector );\r\n\t\t\t\r\n\t\t\tsyntheticVarMetric = normDataTable.getColumnHeaders() ;\r\n\t\t\tprofileValues = ArrUtilities.createCollection( usageIndicationVector.size(), 0.0) ;\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tprocessFeedBackContainer = new ProcessFeedBackContainer( 69,100, xmlNodeObjects.size(), somApplication);\r\n\t\t\t\t\t\t\t\t\t\t\tprocessFeedBackContainer.setHostingObject( this.getClass().getSimpleName() );\r\n\t\t\t\t\t\t\t\t\t\t\tprocessFeedBackContainer.setStepWidth(5.0) ;\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tfor (int i=0;i<soappObj.soappNodes.size();i++){\r\n\t\t\t\t\t\t\t\t\t\t\tprocessFeedBackContainer.setCurrentProgressValue(i) ;\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tmnode = soappObj.soappNodes.getNode(i) ; \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// requires NodesInformer, not necessary for soapp ?\r\n\t\t\t\t// registerNodeinNodesInformer( node );\r\n\t\t\t\tmnode.getIntensionality().getProfileVector().setVariables( vari ) ;\r\n\t\t\t\tmnode.getExtensionality().getStatistics().setVariables(vari);\r\n\t\t\t\t\r\n\t\t\t\t// thats wrong !! we need a mapping\r\n\t\t\t\tloadedValues = localNodeCollection.get(i).modelProfile ;\r\n\t\t\t\tloadedVariables = localNodeCollection.get(i).assignates ;\r\n\t\t\t\t\r\n\t\t\t\tArrUtilities.resetCollection( profileValues, 0.0);\r\n\t\t\t\t\r\n\t\t\t\tfor (int p=0;p<loadedValues.size();p++){\r\n\t\t\t\t\tString varLabel = loadedVariables.get(p) ;\r\n\t\t\t\t\tint ix = normDataTable.getColumnHeaders().indexOf(varLabel) ;\r\n\t\t\t\t\tif (ix>=0){\r\n\t\t\t\t\t\tprofileValues.set(ix, loadedValues.get(p) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmnode.alignProfileVector( mnode.getIntensionality().getProfileVector() );\r\n\t\t\t\t\r\n\t\t\t\tmnode.getProfileVector().setValues(profileValues);\r\n\t\t\t\tmnode.getProfileVector().setVariables(vari) ;\r\n\t\t\t\tmnode.getProfileVector().setVariablesStr( syntheticVarMetric );\r\n\t\t\t\t\r\n\t\t\t\tn = localNodeCollection.get(i).getRecordcount() ;\r\n\t\t\t\tmnode.getExtensionality().setSupport( n ) ;\r\n\t\t\t\tmnode.getExtensionality().setPPV( localNodeCollection.get(i).ppv );\r\n\t\t\t\tmnode.getExtensionality().setNPV( localNodeCollection.get(i).npv );\r\n\t\t\t\t//soappObj.soappNodes.\r\n\t\t\t\t// ProfileVectorIntf profileVector ;\r\n\t\t\t\tsoappObj.soappNodes.setNode(i,mnode);\r\n\t\t\t\t\r\n\t\t\t\tout.print(4, \"node <\"+i+\"> (\"+mnode.toString()+\") : \"+ ArrUtilities.arr2Text( mnode.getProfileVector().getValues(), 3)) ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// we have a reduced table for normalized data and the appropriate usage vector\r\n\t\t\t\r\n\t\t\tresult=0;\r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"som classification model containing <\"+soappObj.nodeCount+\" nodes> has been successfully loaded.\") ;\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace() ;\r\n\t\t\tresult = -7;\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\treturn result;\r\n\t}", "SolvableConflictModel createInstanceOfSolvableConflictModel();", "CommunicationsprogramsPackage getCommunicationsprogramsPackage();", "ShipmentPackageContent createShipmentPackageContent();", "public Map<ModelPortfolio, AllocationModel> prepareAllocationModelMap() {\n\n // Iterate through this instead of\n //Needs to be Spring Configured!\n List<FundModel> agrgrwthFundModelList = new ArrayList<>();\n List<FundModel> grwthFundModelList = new ArrayList<>();\n List<FundModel> incomeFundModelList = new ArrayList<>();\n List<FundModel> retirementFundModelList = new ArrayList<>();\n\n HashMap<ModelPortfolio, AllocationModel> allocMap = new HashMap<>();\n\n // AggressiveGrowth\n agrgrwthFundModelList.add(new FundModel(FundType.EQUITY.toString(), .8));\n agrgrwthFundModelList.add(new FundModel(FundType.BOND.toString(), .1));\n agrgrwthFundModelList.add(new FundModel(FundType.CASH.toString(), .1));\n\n //ModelPortfolio.AGGRESSIVEGROWTH, GROWTH, INCOME, RETIREMENT, INVALIDPORTFOLIO}\n allocMap.put(ModelPortfolio.AGGRESSIVEGROWTH, new AllocationModel(ModelPortfolio.AGGRESSIVEGROWTH.toString(), agrgrwthFundModelList));\n\n //Growth\n grwthFundModelList.add(new FundModel(FundType.EQUITY.toString(), .7));\n grwthFundModelList.add(new FundModel(FundType.BOND.toString(), .2));\n grwthFundModelList.add(new FundModel(FundType.CASH.toString(), .1));\n\n allocMap.put(ModelPortfolio.GROWTH, new AllocationModel(ModelPortfolio.GROWTH.toString(), grwthFundModelList));\n\n //Income\n incomeFundModelList.add(new FundModel(FundType.EQUITY.toString(), .50));\n incomeFundModelList.add(new FundModel(FundType.BOND.toString(), .3));\n incomeFundModelList.add(new FundModel(FundType.CASH.toString(), .2));\n\n allocMap.put(ModelPortfolio.INCOME, new AllocationModel(ModelPortfolio.INCOME.toString(), incomeFundModelList));\n\n //Income\n retirementFundModelList.add(new FundModel(FundType.EQUITY.toString(), .50));\n retirementFundModelList.add(new FundModel(FundType.BOND.toString(), .3));\n retirementFundModelList.add(new FundModel(FundType.CASH.toString(), .2));\n\n allocMap.put(ModelPortfolio.RETIREMENT, new AllocationModel(ModelPortfolio.RETIREMENT.toString(), retirementFundModelList));\n\n // TODO return HashMap\n return allocMap;\n }", "public BoxModel getInventoryModel(int metadata)\r\n/* 103: */ {\r\n/* 104:110 */ if ((metadata == 12) || (metadata == 13)) {\r\n/* 105:111 */ return getEnergyModel();\r\n/* 106: */ }\r\n/* 107:114 */ return getModel(0);\r\n/* 108: */ }", "com.google.ortools.linearsolver.MPModelProto getModel();", "public java.util.List<suiluppo_equip_allocation> findAll();", "ThingMLPackage getThingMLPackage();", "public static void load() {\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Read memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n//\t\tSystem.out.println(\"index\"+Integer.parseInt(mar.substring(0, mar.length() - 2), 2));\r\n\t\tcontent.setStr(getBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)]);\r\n\t\t\r\n\t\twriteMBR(content);\r\n\t\tTraceINF.write(\"Read finished.\");\r\n\t}", "LoadConstraintType getLoadConstraint();", "public Object getModel()\n {\n AttributeDescriptor.ComponentType compType = _attrDef.getComponentType();\n return getModel(compType);\n }", "PiviPackage getPiviPackage();", "public interface RiskReductionthroughFunctionalityRestrictionPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"RiskReductionthroughFunctionalityRestriction\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http:///pattern/RiskReductionthroughFunctionalityRestriction.ecore\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"pattern.RiskReductionthroughFunctionalityRestriction\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRiskReductionthroughFunctionalityRestrictionPackage eINSTANCE = pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Class1Impl <em>Class1</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Class1Impl\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getClass1()\n\t * @generated\n\t */\n\tint CLASS1 = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Class1</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CLASS1_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Class1</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CLASS1_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal2Impl <em>Goal2</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal2Impl\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getGoal2()\n\t * @generated\n\t */\n\tint GOAL2 = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Goal2</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GOAL2_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Goal2</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GOAL2_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal3Impl <em>Goal3</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal3Impl\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getGoal3()\n\t * @generated\n\t */\n\tint GOAL3 = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Goal3</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GOAL3_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Goal3</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GOAL3_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal4Impl <em>Goal4</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal4Impl\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getGoal4()\n\t * @generated\n\t */\n\tint GOAL4 = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Goal4</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GOAL4_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Goal4</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GOAL4_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Class5Impl <em>Class5</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Class5Impl\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getClass5()\n\t * @generated\n\t */\n\tint CLASS5 = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Class5</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CLASS5_FEATURE_COUNT = 0;\n\n\t/**\n\t * The number of operations of the '<em>Class5</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CLASS5_OPERATION_COUNT = 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link pattern.RiskReductionthroughFunctionalityRestriction.Class1 <em>Class1</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Class1</em>'.\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.Class1\n\t * @generated\n\t */\n\tEClass getClass1();\n\n\t/**\n\t * Returns the meta object for class '{@link pattern.RiskReductionthroughFunctionalityRestriction.Goal2 <em>Goal2</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Goal2</em>'.\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.Goal2\n\t * @generated\n\t */\n\tEClass getGoal2();\n\n\t/**\n\t * Returns the meta object for class '{@link pattern.RiskReductionthroughFunctionalityRestriction.Goal3 <em>Goal3</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Goal3</em>'.\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.Goal3\n\t * @generated\n\t */\n\tEClass getGoal3();\n\n\t/**\n\t * Returns the meta object for class '{@link pattern.RiskReductionthroughFunctionalityRestriction.Goal4 <em>Goal4</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Goal4</em>'.\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.Goal4\n\t * @generated\n\t */\n\tEClass getGoal4();\n\n\t/**\n\t * Returns the meta object for class '{@link pattern.RiskReductionthroughFunctionalityRestriction.Class5 <em>Class5</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Class5</em>'.\n\t * @see pattern.RiskReductionthroughFunctionalityRestriction.Class5\n\t * @generated\n\t */\n\tEClass getClass5();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tRiskReductionthroughFunctionalityRestrictionFactory getRiskReductionthroughFunctionalityRestrictionFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Class1Impl <em>Class1</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Class1Impl\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getClass1()\n\t\t * @generated\n\t\t */\n\t\tEClass CLASS1 = eINSTANCE.getClass1();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal2Impl <em>Goal2</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal2Impl\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getGoal2()\n\t\t * @generated\n\t\t */\n\t\tEClass GOAL2 = eINSTANCE.getGoal2();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal3Impl <em>Goal3</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal3Impl\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getGoal3()\n\t\t * @generated\n\t\t */\n\t\tEClass GOAL3 = eINSTANCE.getGoal3();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal4Impl <em>Goal4</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Goal4Impl\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getGoal4()\n\t\t * @generated\n\t\t */\n\t\tEClass GOAL4 = eINSTANCE.getGoal4();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link pattern.RiskReductionthroughFunctionalityRestriction.impl.Class5Impl <em>Class5</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.Class5Impl\n\t\t * @see pattern.RiskReductionthroughFunctionalityRestriction.impl.RiskReductionthroughFunctionalityRestrictionPackageImpl#getClass5()\n\t\t * @generated\n\t\t */\n\t\tEClass CLASS5 = eINSTANCE.getClass5();\n\n\t}\n\n}", "public interface MetricsPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"metrics\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"platform:/plugin/org.gravity.hulk.antipatterngraph/model/Antipatterngraph.ecore#//metrics\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"metrics\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tMetricsPackage eINSTANCE = org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNACCMetricImpl <em>HNACC Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNACCMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNACCMetric()\n\t * @generated\n\t */\n\tint HNACC_METRIC = 0;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The feature id for the '<em><b>HGetter Setter Smells</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__HGETTER_SETTER_SMELLS = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>HNumber Of Getters Metric</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__HNUMBER_OF_GETTERS_METRIC = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>HNumber Of Setters Metric</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__HNUMBER_OF_SETTERS_METRIC = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>HNumber Of Methods Metric</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC__HNUMBER_OF_METHODS_METRIC = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>HNACC Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 4;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNACC Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNACC_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLCOM5MetricImpl <em>HLCOM5 Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLCOM5MetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLCOM5Metric()\n\t * @generated\n\t */\n\tint HLCOM5_METRIC = 1;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HLCOM5 Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HLCOM5 Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLCOM5_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMembersMetricImpl <em>HNumber Of Members Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMembersMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfMembersMetric()\n\t * @generated\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC = 2;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HNumber Of Members Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNumber Of Members Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_MEMBERS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfIncommingInvocationsMetricImpl <em>HNumber Of Incomming Invocations Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfIncommingInvocationsMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfIncommingInvocationsMetric()\n\t * @generated\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC = 3;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HNumber Of Incomming Invocations Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNumber Of Incomming Invocations Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfOutgoingInvocationsMetricImpl <em>HNumber Of Outgoing Invocations Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfOutgoingInvocationsMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfOutgoingInvocationsMetric()\n\t * @generated\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC = 4;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HNumber Of Outgoing Invocations Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNumber Of Outgoing Invocations Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLocalAccessRelationMetricImpl <em>HLocal Access Relation Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLocalAccessRelationMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLocalAccessRelationMetric()\n\t * @generated\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC = 5;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The feature id for the '<em><b>HLocal Field Accesses</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__HLOCAL_FIELD_ACCESSES = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>HLocal Method Accesses</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC__HLOCAL_METHOD_ACCESSES = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>HLocal Access Relation Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 2;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HLocal Access Relation Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_ACCESS_RELATION_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HInvocationRelationImpl <em>HInvocation Relation</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HInvocationRelationImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHInvocationRelation()\n\t * @generated\n\t */\n\tint HINVOCATION_RELATION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The feature id for the '<em><b>HNumber Of Outgoing Invocations Metric</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT\n\t\t\t+ 0;\n\n\t/**\n\t * The feature id for the '<em><b>HNumber Of Incomming Invocations Metric</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION__HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT\n\t\t\t+ 1;\n\n\t/**\n\t * The number of structural features of the '<em>HInvocation Relation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 2;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HInvocation Relation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HINVOCATION_RELATION_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfChildMetricImpl <em>HNumber Of Child Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfChildMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfChildMetric()\n\t * @generated\n\t */\n\tint HNUMBER_OF_CHILD_METRIC = 7;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HNumber Of Child Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNumber Of Child Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_CHILD_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfGettersMetricImpl <em>HNumber Of Getters Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfGettersMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfGettersMetric()\n\t * @generated\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC = 8;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HNumber Of Getters Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNumber Of Getters Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_GETTERS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfSettersMetricImpl <em>HNumber Of Setters Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfSettersMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfSettersMetric()\n\t * @generated\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC = 9;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HNumber Of Setters Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNumber Of Setters Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_SETTERS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMethodsMetricImpl <em>HNumber Of Methods Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMethodsMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfMethodsMetric()\n\t * @generated\n\t */\n\tint HNUMBER_OF_METHODS_METRIC = 10;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HNumber Of Methods Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HNumber Of Methods Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HNUMBER_OF_METHODS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HAverageOverloadingInClassMetricImpl <em>HAverage Overloading In Class Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HAverageOverloadingInClassMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHAverageOverloadingInClassMetric()\n\t * @generated\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC = 11;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HAverage Overloading In Class Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HAverage Overloading In Class Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_OVERLOADING_IN_CLASS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HAverageParametersMetricImpl <em>HAverage Parameters Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HAverageParametersMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHAverageParametersMetric()\n\t * @generated\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC = 12;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HAverage Parameters Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HAverage Parameters Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HAVERAGE_PARAMETERS_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLocalMethodAccessesMetricImpl <em>HLocal Method Accesses Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLocalMethodAccessesMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLocalMethodAccessesMetric()\n\t * @generated\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC = 13;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HLocal Method Accesses Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HLocal Method Accesses Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_METHOD_ACCESSES_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLocalFieldAccessesMetricImpl <em>HLocal Field Accesses Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLocalFieldAccessesMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLocalFieldAccessesMetric()\n\t * @generated\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC = 14;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HLocal Field Accesses Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HLocal Field Accesses Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HLOCAL_FIELD_ACCESSES_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HDepthOfInheritanceMetricImpl <em>HDepth Of Inheritance Metric</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HDepthOfInheritanceMetricImpl\n\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHDepthOfInheritanceMetric()\n\t * @generated\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC = 15;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC__ID = AntipatterngraphPackage.HMETRIC__ID;\n\n\t/**\n\t * The feature id for the '<em><b>TAnnotated</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC__TANNOTATED = AntipatterngraphPackage.HMETRIC__TANNOTATED;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC__TYPE = AntipatterngraphPackage.HMETRIC__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Apg</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC__APG = AntipatterngraphPackage.HMETRIC__APG;\n\n\t/**\n\t * The feature id for the '<em><b>Part Of</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC__PART_OF = AntipatterngraphPackage.HMETRIC__PART_OF;\n\n\t/**\n\t * The feature id for the '<em><b>Changed</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC__CHANGED = AntipatterngraphPackage.HMETRIC__CHANGED;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC__VALUE = AntipatterngraphPackage.HMETRIC__VALUE;\n\n\t/**\n\t * The number of structural features of the '<em>HDepth Of Inheritance Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC_FEATURE_COUNT = AntipatterngraphPackage.HMETRIC_FEATURE_COUNT + 0;\n\n\t/**\n\t * The operation id for the '<em>Get Relative Amount</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC___GET_RELATIVE_AMOUNT = AntipatterngraphPackage.HMETRIC___GET_RELATIVE_AMOUNT;\n\n\t/**\n\t * The operation id for the '<em>Increment</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC___INCREMENT = AntipatterngraphPackage.HMETRIC___INCREMENT;\n\n\t/**\n\t * The number of operations of the '<em>HDepth Of Inheritance Metric</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint HDEPTH_OF_INHERITANCE_METRIC_OPERATION_COUNT = AntipatterngraphPackage.HMETRIC_OPERATION_COUNT + 0;\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNACCMetric <em>HNACC Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNACC Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNACCMetric\n\t * @generated\n\t */\n\tEClass getHNACCMetric();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHGetterSetterSmells <em>HGetter Setter Smells</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>HGetter Setter Smells</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHGetterSetterSmells()\n\t * @see #getHNACCMetric()\n\t * @generated\n\t */\n\tEReference getHNACCMetric_HGetterSetterSmells();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHNumberOfGettersMetric <em>HNumber Of Getters Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>HNumber Of Getters Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHNumberOfGettersMetric()\n\t * @see #getHNACCMetric()\n\t * @generated\n\t */\n\tEReference getHNACCMetric_HNumberOfGettersMetric();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHNumberOfSettersMetric <em>HNumber Of Setters Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>HNumber Of Setters Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHNumberOfSettersMetric()\n\t * @see #getHNACCMetric()\n\t * @generated\n\t */\n\tEReference getHNACCMetric_HNumberOfSettersMetric();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHNumberOfMethodsMetric <em>HNumber Of Methods Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>HNumber Of Methods Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNACCMetric#getHNumberOfMethodsMetric()\n\t * @see #getHNACCMetric()\n\t * @generated\n\t */\n\tEReference getHNACCMetric_HNumberOfMethodsMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HLCOM5Metric <em>HLCOM5 Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HLCOM5 Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HLCOM5Metric\n\t * @generated\n\t */\n\tEClass getHLCOM5Metric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNumberOfMembersMetric <em>HNumber Of Members Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNumber Of Members Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNumberOfMembersMetric\n\t * @generated\n\t */\n\tEClass getHNumberOfMembersMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNumberOfIncommingInvocationsMetric <em>HNumber Of Incomming Invocations Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNumber Of Incomming Invocations Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNumberOfIncommingInvocationsMetric\n\t * @generated\n\t */\n\tEClass getHNumberOfIncommingInvocationsMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNumberOfOutgoingInvocationsMetric <em>HNumber Of Outgoing Invocations Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNumber Of Outgoing Invocations Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNumberOfOutgoingInvocationsMetric\n\t * @generated\n\t */\n\tEClass getHNumberOfOutgoingInvocationsMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HLocalAccessRelationMetric <em>HLocal Access Relation Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HLocal Access Relation Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HLocalAccessRelationMetric\n\t * @generated\n\t */\n\tEClass getHLocalAccessRelationMetric();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.gravity.hulk.antipatterngraph.metrics.HLocalAccessRelationMetric#getHLocalFieldAccesses <em>HLocal Field Accesses</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>HLocal Field Accesses</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HLocalAccessRelationMetric#getHLocalFieldAccesses()\n\t * @see #getHLocalAccessRelationMetric()\n\t * @generated\n\t */\n\tEReference getHLocalAccessRelationMetric_HLocalFieldAccesses();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.gravity.hulk.antipatterngraph.metrics.HLocalAccessRelationMetric#getHLocalMethodAccesses <em>HLocal Method Accesses</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>HLocal Method Accesses</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HLocalAccessRelationMetric#getHLocalMethodAccesses()\n\t * @see #getHLocalAccessRelationMetric()\n\t * @generated\n\t */\n\tEReference getHLocalAccessRelationMetric_HLocalMethodAccesses();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HInvocationRelation <em>HInvocation Relation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HInvocation Relation</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HInvocationRelation\n\t * @generated\n\t */\n\tEClass getHInvocationRelation();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.gravity.hulk.antipatterngraph.metrics.HInvocationRelation#getHNumberOfOutgoingInvocationsMetric <em>HNumber Of Outgoing Invocations Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>HNumber Of Outgoing Invocations Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HInvocationRelation#getHNumberOfOutgoingInvocationsMetric()\n\t * @see #getHInvocationRelation()\n\t * @generated\n\t */\n\tEReference getHInvocationRelation_HNumberOfOutgoingInvocationsMetric();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.gravity.hulk.antipatterngraph.metrics.HInvocationRelation#getHNumberOfIncommingInvocationsMetric <em>HNumber Of Incomming Invocations Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>HNumber Of Incomming Invocations Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HInvocationRelation#getHNumberOfIncommingInvocationsMetric()\n\t * @see #getHInvocationRelation()\n\t * @generated\n\t */\n\tEReference getHInvocationRelation_HNumberOfIncommingInvocationsMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNumberOfChildMetric <em>HNumber Of Child Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNumber Of Child Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNumberOfChildMetric\n\t * @generated\n\t */\n\tEClass getHNumberOfChildMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNumberOfGettersMetric <em>HNumber Of Getters Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNumber Of Getters Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNumberOfGettersMetric\n\t * @generated\n\t */\n\tEClass getHNumberOfGettersMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNumberOfSettersMetric <em>HNumber Of Setters Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNumber Of Setters Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNumberOfSettersMetric\n\t * @generated\n\t */\n\tEClass getHNumberOfSettersMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HNumberOfMethodsMetric <em>HNumber Of Methods Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HNumber Of Methods Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HNumberOfMethodsMetric\n\t * @generated\n\t */\n\tEClass getHNumberOfMethodsMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HAverageOverloadingInClassMetric <em>HAverage Overloading In Class Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HAverage Overloading In Class Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HAverageOverloadingInClassMetric\n\t * @generated\n\t */\n\tEClass getHAverageOverloadingInClassMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HAverageParametersMetric <em>HAverage Parameters Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HAverage Parameters Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HAverageParametersMetric\n\t * @generated\n\t */\n\tEClass getHAverageParametersMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HLocalMethodAccessesMetric <em>HLocal Method Accesses Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HLocal Method Accesses Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HLocalMethodAccessesMetric\n\t * @generated\n\t */\n\tEClass getHLocalMethodAccessesMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HLocalFieldAccessesMetric <em>HLocal Field Accesses Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HLocal Field Accesses Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HLocalFieldAccessesMetric\n\t * @generated\n\t */\n\tEClass getHLocalFieldAccessesMetric();\n\n\t/**\n\t * Returns the meta object for class '{@link org.gravity.hulk.antipatterngraph.metrics.HDepthOfInheritanceMetric <em>HDepth Of Inheritance Metric</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>HDepth Of Inheritance Metric</em>'.\n\t * @see org.gravity.hulk.antipatterngraph.metrics.HDepthOfInheritanceMetric\n\t * @generated\n\t */\n\tEClass getHDepthOfInheritanceMetric();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tMetricsFactory getMetricsFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNACCMetricImpl <em>HNACC Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNACCMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNACCMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNACC_METRIC = eINSTANCE.getHNACCMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HGetter Setter Smells</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HNACC_METRIC__HGETTER_SETTER_SMELLS = eINSTANCE.getHNACCMetric_HGetterSetterSmells();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HNumber Of Getters Metric</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HNACC_METRIC__HNUMBER_OF_GETTERS_METRIC = eINSTANCE.getHNACCMetric_HNumberOfGettersMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HNumber Of Setters Metric</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HNACC_METRIC__HNUMBER_OF_SETTERS_METRIC = eINSTANCE.getHNACCMetric_HNumberOfSettersMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HNumber Of Methods Metric</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HNACC_METRIC__HNUMBER_OF_METHODS_METRIC = eINSTANCE.getHNACCMetric_HNumberOfMethodsMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLCOM5MetricImpl <em>HLCOM5 Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLCOM5MetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLCOM5Metric()\n\t\t * @generated\n\t\t */\n\t\tEClass HLCOM5_METRIC = eINSTANCE.getHLCOM5Metric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMembersMetricImpl <em>HNumber Of Members Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMembersMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfMembersMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNUMBER_OF_MEMBERS_METRIC = eINSTANCE.getHNumberOfMembersMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfIncommingInvocationsMetricImpl <em>HNumber Of Incomming Invocations Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfIncommingInvocationsMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfIncommingInvocationsMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC = eINSTANCE.getHNumberOfIncommingInvocationsMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfOutgoingInvocationsMetricImpl <em>HNumber Of Outgoing Invocations Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfOutgoingInvocationsMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfOutgoingInvocationsMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC = eINSTANCE.getHNumberOfOutgoingInvocationsMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLocalAccessRelationMetricImpl <em>HLocal Access Relation Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLocalAccessRelationMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLocalAccessRelationMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HLOCAL_ACCESS_RELATION_METRIC = eINSTANCE.getHLocalAccessRelationMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HLocal Field Accesses</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HLOCAL_ACCESS_RELATION_METRIC__HLOCAL_FIELD_ACCESSES = eINSTANCE\n\t\t\t\t.getHLocalAccessRelationMetric_HLocalFieldAccesses();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HLocal Method Accesses</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HLOCAL_ACCESS_RELATION_METRIC__HLOCAL_METHOD_ACCESSES = eINSTANCE\n\t\t\t\t.getHLocalAccessRelationMetric_HLocalMethodAccesses();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HInvocationRelationImpl <em>HInvocation Relation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HInvocationRelationImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHInvocationRelation()\n\t\t * @generated\n\t\t */\n\t\tEClass HINVOCATION_RELATION = eINSTANCE.getHInvocationRelation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HNumber Of Outgoing Invocations Metric</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HINVOCATION_RELATION__HNUMBER_OF_OUTGOING_INVOCATIONS_METRIC = eINSTANCE\n\t\t\t\t.getHInvocationRelation_HNumberOfOutgoingInvocationsMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>HNumber Of Incomming Invocations Metric</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference HINVOCATION_RELATION__HNUMBER_OF_INCOMMING_INVOCATIONS_METRIC = eINSTANCE\n\t\t\t\t.getHInvocationRelation_HNumberOfIncommingInvocationsMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfChildMetricImpl <em>HNumber Of Child Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfChildMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfChildMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNUMBER_OF_CHILD_METRIC = eINSTANCE.getHNumberOfChildMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfGettersMetricImpl <em>HNumber Of Getters Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfGettersMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfGettersMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNUMBER_OF_GETTERS_METRIC = eINSTANCE.getHNumberOfGettersMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfSettersMetricImpl <em>HNumber Of Setters Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfSettersMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfSettersMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNUMBER_OF_SETTERS_METRIC = eINSTANCE.getHNumberOfSettersMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMethodsMetricImpl <em>HNumber Of Methods Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HNumberOfMethodsMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHNumberOfMethodsMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HNUMBER_OF_METHODS_METRIC = eINSTANCE.getHNumberOfMethodsMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HAverageOverloadingInClassMetricImpl <em>HAverage Overloading In Class Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HAverageOverloadingInClassMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHAverageOverloadingInClassMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HAVERAGE_OVERLOADING_IN_CLASS_METRIC = eINSTANCE.getHAverageOverloadingInClassMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HAverageParametersMetricImpl <em>HAverage Parameters Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HAverageParametersMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHAverageParametersMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HAVERAGE_PARAMETERS_METRIC = eINSTANCE.getHAverageParametersMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLocalMethodAccessesMetricImpl <em>HLocal Method Accesses Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLocalMethodAccessesMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLocalMethodAccessesMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HLOCAL_METHOD_ACCESSES_METRIC = eINSTANCE.getHLocalMethodAccessesMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HLocalFieldAccessesMetricImpl <em>HLocal Field Accesses Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HLocalFieldAccessesMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHLocalFieldAccessesMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HLOCAL_FIELD_ACCESSES_METRIC = eINSTANCE.getHLocalFieldAccessesMetric();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.gravity.hulk.antipatterngraph.metrics.impl.HDepthOfInheritanceMetricImpl <em>HDepth Of Inheritance Metric</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.HDepthOfInheritanceMetricImpl\n\t\t * @see org.gravity.hulk.antipatterngraph.metrics.impl.MetricsPackageImpl#getHDepthOfInheritanceMetric()\n\t\t * @generated\n\t\t */\n\t\tEClass HDEPTH_OF_INHERITANCE_METRIC = eINSTANCE.getHDepthOfInheritanceMetric();\n\n\t}\n\n}", "SmallEcorePackage getSmallEcorePackage();", "UMLStructuralFeature createUMLStructuralFeature();" ]
[ "0.6277338", "0.62577844", "0.56311566", "0.5372489", "0.5276096", "0.52702117", "0.5268922", "0.5130633", "0.5100656", "0.509691", "0.50886613", "0.50400865", "0.503535", "0.4975631", "0.49733981", "0.49384025", "0.4903752", "0.48954403", "0.48910835", "0.4885679", "0.48798975", "0.48622495", "0.48600867", "0.4843753", "0.4836891", "0.4818178", "0.4818178", "0.4796464", "0.47955006", "0.4761353", "0.47571313", "0.4753471", "0.47370765", "0.47233638", "0.46698", "0.4665609", "0.46640104", "0.46616465", "0.4654043", "0.4649619", "0.46389323", "0.46355253", "0.46264812", "0.46201143", "0.46152538", "0.4611923", "0.46098533", "0.4609481", "0.46002614", "0.45891336", "0.45888352", "0.4586294", "0.45771095", "0.4573524", "0.45726186", "0.45629135", "0.45494464", "0.4549187", "0.45465153", "0.45451236", "0.4533689", "0.45312887", "0.4525326", "0.45195642", "0.45183", "0.45122817", "0.45061103", "0.45042062", "0.45033082", "0.450098", "0.44979393", "0.44957578", "0.44934106", "0.44908404", "0.4486013", "0.44524333", "0.44499192", "0.44451144", "0.44350967", "0.4433676", "0.4426954", "0.44251415", "0.44227672", "0.44206384", "0.44184464", "0.441808", "0.4417782", "0.4412613", "0.44091183", "0.4407679", "0.4402135", "0.43933642", "0.43877488", "0.43843588", "0.4379091", "0.43787834", "0.43759036", "0.437504", "0.43716973", "0.436393" ]
0.7055404
0
return (ResourceEnvironment) this.readXMIModel(model_fn, de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage.class.getName());
public static ResourceEnvironment readResourceEnvironment(final String model_fn, final ResourceSet resourceSet) throws IOException { return (ResourceEnvironment) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage.eINSTANCE, model_fn, resourceSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EnvironmentmmPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"environmentmm\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"SATEL.APN.environmentmm\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"environmentmm\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tEnvironmentmmPackage eINSTANCE = SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link SATEL.APN.environmentmm.impl.EnvironmentImpl <em>Environment</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see SATEL.APN.environmentmm.impl.EnvironmentImpl\n\t * @see SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl#getEnvironment()\n\t * @generated\n\t */\n\tint ENVIRONMENT = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Environment</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ENVIRONMENT_FEATURE_COUNT = 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link SATEL.APN.environmentmm.Environment <em>Environment</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Environment</em>'.\n\t * @see SATEL.APN.environmentmm.Environment\n\t * @generated\n\t */\n\tEClass getEnvironment();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tEnvironmentmmFactory getEnvironmentmmFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link SATEL.APN.environmentmm.impl.EnvironmentImpl <em>Environment</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see SATEL.APN.environmentmm.impl.EnvironmentImpl\n\t\t * @see SATEL.APN.environmentmm.impl.EnvironmentmmPackageImpl#getEnvironment()\n\t\t * @generated\n\t\t */\n\t\tEClass ENVIRONMENT = eINSTANCE.getEnvironment();\n\n\t}\n\n}", "public ResourceenvironmentAdapterFactory() {\n if (modelPackage == null) {\n modelPackage = ResourceenvironmentPackage.eINSTANCE;\n }\n }", "public Resource getEMFResource() {\n \t\tif (modelResource == null) {\n \t\t\tif (getMetaModelResource() == null) {\n \t\t\t\tlogger.warning(\"EMFModel has no meta-model !!!\");\n \t\t\t\treturn null;\n \t\t\t}\n \t\t\tmodelResource = getMetaModelResource().getMetaModelData().getResource().getResourceFactory()\n \t\t\t\t\t.createResource(org.eclipse.emf.common.util.URI.createFileURI(getFile().getAbsolutePath()));\n \t\t}\n \t\treturn modelResource;\n \t}", "EnvironmentmmFactory getEnvironmentmmFactory();", "public static System readSystem(final String model_fn, final ResourceSet resourceSet) throws IOException {\n\t\treturn (System) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.system.SystemPackage.eINSTANCE, model_fn, resourceSet);\n\t}", "@Override\n\tpublic DwcaResourceModel loadResourceModel(String resourceIdentifier) {\n\t\treturn null;\n\t}", "protected Model loadDeploymentModelFromResource(@Nonnull String resourceName, @Nonnull String adaptationIdentifier) throws Exception {\n InputStream is = this.getClass().getResourceAsStream(resourceName);\n Model deploymentModel = ModelFactory.createDefaultModel();\n RDFDataMgr.read(deploymentModel, is, Lang.TTL);\n\n //Get the deployment model statement\n Selector selector = new SimpleSelector(null, RDF.type,\n deploymentModel.getResource(\"http://darpa.mil/immortals/ontology/r2.0.0/gmei#DeploymentModel\"));\n StmtIterator iter = deploymentModel.listStatements(selector);\n\n if (!iter.hasNext()) {\n logger.error(\"DeploymentModel triple not found in deployment model template. Check \" + resourceName + \".\");\n throw new Exception(\"Unable to create perturbed deployment model for DAS.\");\n }\n\n org.apache.jena.rdf.model.Statement deploymentModelStatement = iter.next();\n\n deploymentModelStatement.getSubject().addLiteral(\n deploymentModel.getProperty(\"http://darpa.mil/immortals/ontology/r2.0.0#hasSessionIdentifier\"),\n adaptationIdentifier);\n\n return deploymentModel;\n }", "ComponentmodelPackage getComponentmodelPackage();", "public boolean loadModel() throws Exception{\r\n\t\t\r\n\t\tboolean rB = false ;\r\n\t\tModelCatalogItem mcItem ;\r\n\t\t\r\n\t\t// before, we have determined name and version according to the request options (e.g. \"latest\")\r\n\t\tmcItem = soappModelCatalog.getItemByModelname( activeModel, activeVersion ); \r\n\t\t// here, an active version should always be defined, if not, the first one will be selected\r\n\t\t\r\n\t\t\r\n\t\tif (mcItem != null){\r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"loading resources for requested model <\"+activeModel+\">, version <\"+activeVersion+\"> ... \") ;\r\n\t\t\t\r\n\t\t\tif ((somData==null) || (somData.getData().getColumnHeaders().size()==0)){\t\t\t\t\t\t\r\n\t\t\t\tsomApplication.loadSource();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// this also sets the data\r\n\t\t\tsoappTransformer = loadSomAppTransformer(mcItem);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trB= transformIncomingData();\r\n\t\t\t\r\n\t\t\tsoappClassifier = loadSomAppClassifier(mcItem);\r\n\r\n\t\t\trB= (soappTransformer!=null) && (soappClassifier!=null);\r\n\t\t}else{\r\n\t\t\tout.print(2, \"identification resources for requested model <\"+activeModel+\"> failed.\") ;\r\n\t\t}\r\n\t\treturn rB;\r\n\t}", "RmPackage getRmPackage();", "RapidmlPackage getRapidmlPackage();", "public interface ConstraintModelPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"constraintModel\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.example.org/rMSAS/constraintModel\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"constraintModel\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tConstraintModelPackage eINSTANCE = rMSAS.constraintModel.impl.ConstraintModelPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.AbstractConditionImpl <em>Abstract Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.AbstractConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getAbstractCondition()\n\t * @generated\n\t */\n\tint ABSTRACT_CONDITION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION__OCL_QUERY = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Abstract Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_CONDITION_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.PreConditionImpl <em>Pre Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.PreConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPreCondition()\n\t * @generated\n\t */\n\tint PRE_CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION__OCL_QUERY = ABSTRACT_CONDITION__OCL_QUERY;\n\n\t/**\n\t * The number of structural features of the '<em>Pre Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION_FEATURE_COUNT = ABSTRACT_CONDITION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Pre Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PRE_CONDITION_OPERATION_COUNT = ABSTRACT_CONDITION_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link rMSAS.constraintModel.impl.PostConditionImpl <em>Post Condition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see rMSAS.constraintModel.impl.PostConditionImpl\n\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPostCondition()\n\t * @generated\n\t */\n\tint POST_CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Ocl Query</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION__OCL_QUERY = ABSTRACT_CONDITION__OCL_QUERY;\n\n\t/**\n\t * The number of structural features of the '<em>Post Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION_FEATURE_COUNT = ABSTRACT_CONDITION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Post Condition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint POST_CONDITION_OPERATION_COUNT = ABSTRACT_CONDITION_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.AbstractCondition <em>Abstract Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract Condition</em>'.\n\t * @see rMSAS.constraintModel.AbstractCondition\n\t * @generated\n\t */\n\tEClass getAbstractCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link rMSAS.constraintModel.AbstractCondition#getOclQuery <em>Ocl Query</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Ocl Query</em>'.\n\t * @see rMSAS.constraintModel.AbstractCondition#getOclQuery()\n\t * @see #getAbstractCondition()\n\t * @generated\n\t */\n\tEAttribute getAbstractCondition_OclQuery();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.PreCondition <em>Pre Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Pre Condition</em>'.\n\t * @see rMSAS.constraintModel.PreCondition\n\t * @generated\n\t */\n\tEClass getPreCondition();\n\n\t/**\n\t * Returns the meta object for class '{@link rMSAS.constraintModel.PostCondition <em>Post Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Post Condition</em>'.\n\t * @see rMSAS.constraintModel.PostCondition\n\t * @generated\n\t */\n\tEClass getPostCondition();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tConstraintModelFactory getConstraintModelFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.AbstractConditionImpl <em>Abstract Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.AbstractConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getAbstractCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_CONDITION = eINSTANCE.getAbstractCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Query</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ABSTRACT_CONDITION__OCL_QUERY = eINSTANCE.getAbstractCondition_OclQuery();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PreConditionImpl <em>Pre Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PreConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPreCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass PRE_CONDITION = eINSTANCE.getPreCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PostConditionImpl <em>Post Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PostConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPostCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass POST_CONDITION = eINSTANCE.getPostCondition();\n\n\t}\n\n}", "private ResourceLocation getModelLocation(ResourceLocation p_177580_1_) {\n/* 280 */ return new ResourceLocation(p_177580_1_.getResourceDomain(), \"models/\" + p_177580_1_.getResourcePath() + \".json\");\n/* */ }", "public interface ModelsPackage extends EPackage\n{\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"models\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.fever.org/models\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"fever.models\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tModelsPackage eINSTANCE = models.impl.ModelsPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__FEATURES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.BuildModelImpl\n\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t * @generated\n\t */\n\tint BUILD_MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Symbols</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SYMBOLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationModelImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_MODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__VALUE_FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Constants</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CONSTANTS = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Blocks</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__BLOCKS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>File name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__FILE_NAME = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Chane</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CHANE = 5;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_FEATURE_COUNT = 6;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SPLImpl\n\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t * @generated\n\t */\n\tint SPL = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Revision</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__REVISION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Variabilitymodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__VARIABILITYMODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Buildmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__BUILDMODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Implementationmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__IMPLEMENTATIONMODEL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelEntityImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL_ENTITY = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__ID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__FLAGS = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__TYPE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__SELECTS = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEPENDS = 8;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__EXTERNAL = 9;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_FEATURE_COUNT = 10;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t * @generated\n\t */\n\tint FEATURE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__NAME = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ChoiceImpl\n\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t * @generated\n\t */\n\tint CHOICE = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The number of structural features of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.DefaultValueImpl\n\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t * @generated\n\t */\n\tint DEFAULT_VALUE = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__VALUE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Order</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ORDER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ID = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SelectImpl\n\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t * @generated\n\t */\n\tint SELECT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__TARGET = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MappedFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t * @generated\n\t */\n\tint MAPPED_FEATURE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__TARGETS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Feature Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__FEATURE_NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CompilationTargetImpl\n\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Target Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Target Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_TYPE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__ID = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Mapped To Symbol</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__MAPPED_TO_SYMBOL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MakeSymbolImpl\n\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t * @generated\n\t */\n\tint MAKE_SYMBOL = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__TARGETS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ReferencedValueFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t * @generated\n\t */\n\tint REFERENCED_VALUE_FEATURE = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ConditionalBlockImpl\n\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t * @generated\n\t */\n\tint CONDITIONAL_BLOCK = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Start</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__START = 0;\n\n\t/**\n\t * The feature id for the '<em><b>End</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__END = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__VALUE_FEATURES = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Touched</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__TOUCHED = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Expression</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EXPRESSION = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Lines</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__LINES = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Edited By</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EDITED_BY = 7;\n\n\t/**\n\t * The number of structural features of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_FEATURE_COUNT = 8;\n\n\t/**\n\t * The number of operations of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureConstantImpl\n\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t * @generated\n\t */\n\tint FEATURE_CONSTANT = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationLineImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_LINE = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Line</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE__LINE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CodeEditImpl\n\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t * @generated\n\t */\n\tint CODE_EDIT = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Rem idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_IDX = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Add idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_IDX = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Rem size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_SIZE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Add size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_SIZE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Diff</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__DIFF = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.VariabilityTypes\n\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t * @generated\n\t */\n\tint VARIABILITY_TYPES = 17;\n\n\t/**\n\t * The meta object id for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.CompilationTargetType\n\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET_TYPE = 18;\n\n\t/**\n\t * The meta object id for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.ChangeType\n\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t * @generated\n\t */\n\tint CHANGE_TYPE = 19;\n\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModel <em>Variability Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model</em>'.\n\t * @see models.VariabilityModel\n\t * @generated\n\t */\n\tEClass getVariabilityModel();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Spl</em>'.\n\t * @see models.VariabilityModel#getSpl()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.VariabilityModel#getFeatures()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Features();\n\n\t/**\n\t * Returns the meta object for class '{@link models.BuildModel <em>Build Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Build Model</em>'.\n\t * @see models.BuildModel\n\t * @generated\n\t */\n\tEClass getBuildModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.BuildModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.BuildModel#getSpl()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.BuildModel#getFeatures()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Features();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getSymbols <em>Symbols</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Symbols</em>'.\n\t * @see models.BuildModel#getSymbols()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Symbols();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationModel <em>Implementation Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Model</em>'.\n\t * @see models.ImplementationModel\n\t * @generated\n\t */\n\tEClass getImplementationModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.ImplementationModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.ImplementationModel#getSpl()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ImplementationModel#getValueFeatures()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getConstants <em>Constants</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Constants</em>'.\n\t * @see models.ImplementationModel#getConstants()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Constants();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ImplementationModel#getBlocks <em>Blocks</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Blocks</em>'.\n\t * @see models.ImplementationModel#getBlocks()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Blocks();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getFile_name <em>File name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>File name</em>'.\n\t * @see models.ImplementationModel#getFile_name()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_File_name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getChane <em>Chane</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Chane</em>'.\n\t * @see models.ImplementationModel#getChane()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_Chane();\n\n\t/**\n\t * Returns the meta object for class '{@link models.SPL <em>SPL</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>SPL</em>'.\n\t * @see models.SPL\n\t * @generated\n\t */\n\tEClass getSPL();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.SPL#getRevision <em>Revision</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Revision</em>'.\n\t * @see models.SPL#getRevision()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEAttribute getSPL_Revision();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getVariabilitymodel <em>Variabilitymodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Variabilitymodel</em>'.\n\t * @see models.SPL#getVariabilitymodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Variabilitymodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getBuildmodel <em>Buildmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Buildmodel</em>'.\n\t * @see models.SPL#getBuildmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Buildmodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getImplementationmodel <em>Implementationmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Implementationmodel</em>'.\n\t * @see models.SPL#getImplementationmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Implementationmodel();\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModelEntity <em>Variability Model Entity</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model Entity</em>'.\n\t * @see models.VariabilityModelEntity\n\t * @generated\n\t */\n\tEClass getVariabilityModelEntity();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.VariabilityModelEntity#getId()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getFlags <em>Flags</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Flags</em>'.\n\t * @see models.VariabilityModelEntity#getFlags()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Flags();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Type</em>'.\n\t * @see models.VariabilityModelEntity#getType()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Type();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPrompt <em>Prompt</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt</em>'.\n\t * @see models.VariabilityModelEntity#getPrompt()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Prompt();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getDefaultValues <em>Default Values</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Default Values</em>'.\n\t * @see models.VariabilityModelEntity#getDefaultValues()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_DefaultValues();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getSelects <em>Selects</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Selects</em>'.\n\t * @see models.VariabilityModelEntity#getSelects()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_Selects();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPromptCondition <em>Prompt Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPromptCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PromptCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPresenceCondition <em>Presence Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Presence Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPresenceCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PresenceCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getDepends <em>Depends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Depends</em>'.\n\t * @see models.VariabilityModelEntity#getDepends()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Depends();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#isExternal <em>External</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>External</em>'.\n\t * @see models.VariabilityModelEntity#isExternal()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_External();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Feature <em>Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature</em>'.\n\t * @see models.Feature\n\t * @generated\n\t */\n\tEClass getFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Feature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.Feature#getName()\n\t * @see #getFeature()\n\t * @generated\n\t */\n\tEAttribute getFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Choice <em>Choice</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Choice</em>'.\n\t * @see models.Choice\n\t * @generated\n\t */\n\tEClass getChoice();\n\n\t/**\n\t * Returns the meta object for class '{@link models.DefaultValue <em>Default Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Default Value</em>'.\n\t * @see models.DefaultValue\n\t * @generated\n\t */\n\tEClass getDefaultValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see models.DefaultValue#getValue()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Value();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.DefaultValue#getCondition()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getOrder <em>Order</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Order</em>'.\n\t * @see models.DefaultValue#getOrder()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Order();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.DefaultValue#getId()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Select <em>Select</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Select</em>'.\n\t * @see models.Select\n\t * @generated\n\t */\n\tEClass getSelect();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target</em>'.\n\t * @see models.Select#getTarget()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Target();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.Select#getCondition()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.Select#getId()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MappedFeature <em>Mapped Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Mapped Feature</em>'.\n\t * @see models.MappedFeature\n\t * @generated\n\t */\n\tEClass getMappedFeature();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MappedFeature#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MappedFeature#getTargets()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEReference getMappedFeature_Targets();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getFeatureName <em>Feature Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Feature Name</em>'.\n\t * @see models.MappedFeature#getFeatureName()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_FeatureName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.MappedFeature#getId()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CompilationTarget <em>Compilation Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Compilation Target</em>'.\n\t * @see models.CompilationTarget\n\t * @generated\n\t */\n\tEClass getCompilationTarget();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetName <em>Target Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Name</em>'.\n\t * @see models.CompilationTarget#getTargetName()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetType <em>Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Type</em>'.\n\t * @see models.CompilationTarget#getTargetType()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.CompilationTarget#getId()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getMappedToSymbol <em>Mapped To Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Mapped To Symbol</em>'.\n\t * @see models.CompilationTarget#getMappedToSymbol()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_MappedToSymbol();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MakeSymbol <em>Make Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Make Symbol</em>'.\n\t * @see models.MakeSymbol\n\t * @generated\n\t */\n\tEClass getMakeSymbol();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MakeSymbol#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.MakeSymbol#getName()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEAttribute getMakeSymbol_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MakeSymbol#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MakeSymbol#getTargets()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEReference getMakeSymbol_Targets();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ReferencedValueFeature <em>Referenced Value Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Referenced Value Feature</em>'.\n\t * @see models.ReferencedValueFeature\n\t * @generated\n\t */\n\tEClass getReferencedValueFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ReferencedValueFeature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.ReferencedValueFeature#getName()\n\t * @see #getReferencedValueFeature()\n\t * @generated\n\t */\n\tEAttribute getReferencedValueFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ConditionalBlock <em>Conditional Block</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Conditional Block</em>'.\n\t * @see models.ConditionalBlock\n\t * @generated\n\t */\n\tEClass getConditionalBlock();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getStart <em>Start</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Start</em>'.\n\t * @see models.ConditionalBlock#getStart()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Start();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getEnd <em>End</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>End</em>'.\n\t * @see models.ConditionalBlock#getEnd()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_End();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.ConditionalBlock#getCondition()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Condition();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ConditionalBlock#getValueFeatures()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#isTouched <em>Touched</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Touched</em>'.\n\t * @see models.ConditionalBlock#isTouched()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Touched();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getExpression <em>Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Expression</em>'.\n\t * @see models.ConditionalBlock#getExpression()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Expression();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ConditionalBlock#getLines <em>Lines</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Lines</em>'.\n\t * @see models.ConditionalBlock#getLines()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_Lines();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getEditedBy <em>Edited By</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Edited By</em>'.\n\t * @see models.ConditionalBlock#getEditedBy()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_EditedBy();\n\n\t/**\n\t * Returns the meta object for class '{@link models.FeatureConstant <em>Feature Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature Constant</em>'.\n\t * @see models.FeatureConstant\n\t * @generated\n\t */\n\tEClass getFeatureConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.FeatureConstant#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.FeatureConstant#getName()\n\t * @see #getFeatureConstant()\n\t * @generated\n\t */\n\tEAttribute getFeatureConstant_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationLine <em>Implementation Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Line</em>'.\n\t * @see models.ImplementationLine\n\t * @generated\n\t */\n\tEClass getImplementationLine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationLine#getLine <em>Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Line</em>'.\n\t * @see models.ImplementationLine#getLine()\n\t * @see #getImplementationLine()\n\t * @generated\n\t */\n\tEAttribute getImplementationLine_Line();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CodeEdit <em>Code Edit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Code Edit</em>'.\n\t * @see models.CodeEdit\n\t * @generated\n\t */\n\tEClass getCodeEdit();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_idx <em>Rem idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem idx</em>'.\n\t * @see models.CodeEdit#getRem_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_idx <em>Add idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add idx</em>'.\n\t * @see models.CodeEdit#getAdd_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_size <em>Rem size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem size</em>'.\n\t * @see models.CodeEdit#getRem_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_size <em>Add size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add size</em>'.\n\t * @see models.CodeEdit#getAdd_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getDiff <em>Diff</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Diff</em>'.\n\t * @see models.CodeEdit#getDiff()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Diff();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.VariabilityTypes <em>Variability Types</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Variability Types</em>'.\n\t * @see models.VariabilityTypes\n\t * @generated\n\t */\n\tEEnum getVariabilityTypes();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.CompilationTargetType <em>Compilation Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Compilation Target Type</em>'.\n\t * @see models.CompilationTargetType\n\t * @generated\n\t */\n\tEEnum getCompilationTargetType();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.ChangeType <em>Change Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Change Type</em>'.\n\t * @see models.ChangeType\n\t * @generated\n\t */\n\tEEnum getChangeType();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tModelsFactory getModelsFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals\n\t{\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL = eINSTANCE.getVariabilityModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__SPL = eINSTANCE.getVariabilityModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__FEATURES = eINSTANCE.getVariabilityModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.BuildModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t\t * @generated\n\t\t */\n\t\tEClass BUILD_MODEL = eINSTANCE.getBuildModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SPL = eINSTANCE.getBuildModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__FEATURES = eINSTANCE.getBuildModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Symbols</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SYMBOLS = eINSTANCE.getBuildModel_Symbols();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_MODEL = eINSTANCE.getImplementationModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__SPL = eINSTANCE.getImplementationModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__VALUE_FEATURES = eINSTANCE.getImplementationModel_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constants</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__CONSTANTS = eINSTANCE.getImplementationModel_Constants();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Blocks</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__BLOCKS = eINSTANCE.getImplementationModel_Blocks();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>File name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__FILE_NAME = eINSTANCE.getImplementationModel_File_name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Chane</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__CHANE = eINSTANCE.getImplementationModel_Chane();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SPLImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t\t * @generated\n\t\t */\n\t\tEClass SPL = eINSTANCE.getSPL();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Revision</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SPL__REVISION = eINSTANCE.getSPL_Revision();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Variabilitymodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__VARIABILITYMODEL = eINSTANCE.getSPL_Variabilitymodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Buildmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__BUILDMODEL = eINSTANCE.getSPL_Buildmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Implementationmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__IMPLEMENTATIONMODEL = eINSTANCE.getSPL_Implementationmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelEntityImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL_ENTITY = eINSTANCE.getVariabilityModelEntity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__ID = eINSTANCE.getVariabilityModelEntity_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Flags</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__FLAGS = eINSTANCE.getVariabilityModelEntity_Flags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__TYPE = eINSTANCE.getVariabilityModelEntity_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT = eINSTANCE.getVariabilityModelEntity_Prompt();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Default Values</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = eINSTANCE.getVariabilityModelEntity_DefaultValues();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Selects</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__SELECTS = eINSTANCE.getVariabilityModelEntity_Selects();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = eINSTANCE.getVariabilityModelEntity_PromptCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Presence Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = eINSTANCE.getVariabilityModelEntity_PresenceCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Depends</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__DEPENDS = eINSTANCE.getVariabilityModelEntity_Depends();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>External</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__EXTERNAL = eINSTANCE.getVariabilityModelEntity_External();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE = eINSTANCE.getFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ChoiceImpl\n\t\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t\t * @generated\n\t\t */\n\t\tEClass CHOICE = eINSTANCE.getChoice();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.DefaultValueImpl\n\t\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t\t * @generated\n\t\t */\n\t\tEClass DEFAULT_VALUE = eINSTANCE.getDefaultValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__VALUE = eINSTANCE.getDefaultValue_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__CONDITION = eINSTANCE.getDefaultValue_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Order</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ORDER = eINSTANCE.getDefaultValue_Order();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ID = eINSTANCE.getDefaultValue_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SelectImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t\t * @generated\n\t\t */\n\t\tEClass SELECT = eINSTANCE.getSelect();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__TARGET = eINSTANCE.getSelect_Target();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__CONDITION = eINSTANCE.getSelect_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__ID = eINSTANCE.getSelect_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MappedFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass MAPPED_FEATURE = eINSTANCE.getMappedFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAPPED_FEATURE__TARGETS = eINSTANCE.getMappedFeature_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Feature Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__FEATURE_NAME = eINSTANCE.getMappedFeature_FeatureName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__ID = eINSTANCE.getMappedFeature_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CompilationTargetImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t\t * @generated\n\t\t */\n\t\tEClass COMPILATION_TARGET = eINSTANCE.getCompilationTarget();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_NAME = eINSTANCE.getCompilationTarget_TargetName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_TYPE = eINSTANCE.getCompilationTarget_TargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__ID = eINSTANCE.getCompilationTarget_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Mapped To Symbol</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__MAPPED_TO_SYMBOL = eINSTANCE.getCompilationTarget_MappedToSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MakeSymbolImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t\t * @generated\n\t\t */\n\t\tEClass MAKE_SYMBOL = eINSTANCE.getMakeSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAKE_SYMBOL__NAME = eINSTANCE.getMakeSymbol_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAKE_SYMBOL__TARGETS = eINSTANCE.getMakeSymbol_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ReferencedValueFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass REFERENCED_VALUE_FEATURE = eINSTANCE.getReferencedValueFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute REFERENCED_VALUE_FEATURE__NAME = eINSTANCE.getReferencedValueFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ConditionalBlockImpl\n\t\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t\t * @generated\n\t\t */\n\t\tEClass CONDITIONAL_BLOCK = eINSTANCE.getConditionalBlock();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__START = eINSTANCE.getConditionalBlock_Start();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>End</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__END = eINSTANCE.getConditionalBlock_End();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__CONDITION = eINSTANCE.getConditionalBlock_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__VALUE_FEATURES = eINSTANCE.getConditionalBlock_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Touched</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__TOUCHED = eINSTANCE.getConditionalBlock_Touched();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Expression</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__EXPRESSION = eINSTANCE.getConditionalBlock_Expression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lines</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__LINES = eINSTANCE.getConditionalBlock_Lines();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edited By</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__EDITED_BY = eINSTANCE.getConditionalBlock_EditedBy();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureConstantImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE_CONSTANT = eINSTANCE.getFeatureConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE_CONSTANT__NAME = eINSTANCE.getFeatureConstant_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationLineImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_LINE = eINSTANCE.getImplementationLine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Line</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_LINE__LINE = eINSTANCE.getImplementationLine_Line();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CodeEditImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t\t * @generated\n\t\t */\n\t\tEClass CODE_EDIT = eINSTANCE.getCodeEdit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_IDX = eINSTANCE.getCodeEdit_Rem_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_IDX = eINSTANCE.getCodeEdit_Add_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_SIZE = eINSTANCE.getCodeEdit_Rem_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_SIZE = eINSTANCE.getCodeEdit_Add_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Diff</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__DIFF = eINSTANCE.getCodeEdit_Diff();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.VariabilityTypes\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t\t * @generated\n\t\t */\n\t\tEEnum VARIABILITY_TYPES = eINSTANCE.getVariabilityTypes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.CompilationTargetType\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t\t * @generated\n\t\t */\n\t\tEEnum COMPILATION_TARGET_TYPE = eINSTANCE.getCompilationTargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.ChangeType\n\t\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t\t * @generated\n\t\t */\n\t\tEEnum CHANGE_TYPE = eINSTANCE.getChangeType();\n\n\t}\n\n}", "ArtefactModel getArtefactModel();", "XUMLRTFactory getXUMLRTFactory();", "public T caseModelEnvironment(ModelEnvironment object) {\n\t\treturn null;\n\t}", "Device_Resource createDevice_Resource();", "public MSRModel getMSRModel() throws DeviceException;", "RuleModelPackage getRuleModelPackage();", "DataModelOracle getDataModelOracle( Path project );", "String deploymentModel();", "IrSpecificPackage getIrSpecificPackage();", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "opmodelFactory getopmodelFactory();", "EisPackage getEisPackage();", "ResourceRequirement getRequirementFor(AResourceType type);", "EisModel createEisModel();", "public interface RuleModelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRuleModelFactory eINSTANCE = org.emftrace.metamodel.RuleModel.impl.RuleModelFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Rule Catalog</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rule Catalog</em>'.\n\t * @generated\n\t */\n\tRuleCatalog createRuleCatalog();\n\n\t/**\n\t * Returns a new object of class '<em>Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rule</em>'.\n\t * @generated\n\t */\n\tRule createRule();\n\n\t/**\n\t * Returns a new object of class '<em>Element Definition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Element Definition</em>'.\n\t * @generated\n\t */\n\tElementDefinition createElementDefinition();\n\n\t/**\n\t * Returns a new object of class '<em>Action Definition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Action Definition</em>'.\n\t * @generated\n\t */\n\tActionDefinition createActionDefinition();\n\n\t/**\n\t * Returns a new object of class '<em>Logic Condition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Logic Condition</em>'.\n\t * @generated\n\t */\n\tLogicCondition createLogicCondition();\n\n\t/**\n\t * Returns a new object of class '<em>Base Condition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Base Condition</em>'.\n\t * @generated\n\t */\n\tBaseCondition createBaseCondition();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRuleModelPackage getRuleModelPackage();\n\n}", "static RatAppModel getInstance() {return model;}", "private ResourcePackage() {}", "ArchitecturalModelFactory getArchitecturalModelFactory();", "public static ModelPackage init() {\n\t\tif (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);\n\n\t\t// Obtain or create and register package\n\t\tModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ModelPackageImpl());\n\n\t\tisInited = true;\n\n\t\t// Create package meta-data objects\n\t\ttheModelPackage.createPackageContents();\n\n\t\t// Initialize created meta-data\n\t\ttheModelPackage.initializePackageContents();\n\n\t\t// Mark meta-data to indicate it can't be changed\n\t\ttheModelPackage.freeze();\n\n\t\treturn theModelPackage;\n\t}", "public void registerMetamodels(ResourceSet rs, IbexExecutable executable) throws IOException {\n\t\t\n\t\t// Set correct workspace root\n\t\tsetWorkspaceRootDirectory(rs);\n\t\t\n\t\t// Load and register source and target metamodels\n\t\tEPackage languagePack = null;\n\t\tEPackage henshinPack = null;\n\t\tEPackage ecorePack = null;\n\t\tEPackage emoflontohenshinPack = null;\n\t\t\n\t\tif(executable instanceof FWD_OPT) {\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/org.eclipse.emf.henshin.model/model/henshin.ecore\");\n\t\t\thenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"http://www.eclipse.org/emf/2002/Ecore\");\n\t\t\tecorePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\");\n\t\t\temoflontohenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t}\n\t\t\t\t\n\t\tif(executable instanceof BWD_OPT) {\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/plugin/org.emoflon.ibex.tgg.language/model/Language.ecore\");\n\t\t\tlanguagePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"http://www.eclipse.org/emf/2002/Ecore\");\n\t\t\tecorePack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t\t\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\");\n\t\t\temoflontohenshinPack = (EPackage) res.getContents().get(0);\n\t\t\trs.getResources().remove(res);\n\t\t}\n\n\t\tif(languagePack == null)\n\t\t\tlanguagePack = LanguagePackageImpl.init();\n\t\t\t\t\n\t\tif(henshinPack == null)\n\t\t\thenshinPack = HenshinPackageImpl.init();\n\t\t\n\t\tif(ecorePack == null)\n\t\t\tecorePack = EcorePackageImpl.init();\n\t\t\n\t\tif(emoflontohenshinPack == null) {\n\t\t\temoflontohenshinPack = EMoflonToHenshinPackageImpl.init();\n\t\t\trs.getPackageRegistry().put(\"platform:/resource/EMoflonToHenshin/model/EMoflonToHenshin.ecore\", EMoflonToHenshinPackage.eINSTANCE);\n\t\t\trs.getPackageRegistry().put(\"platform:/plugin/EMoflonToHenshin/model/EMoflonToHenshin.ecore\", EMoflonToHenshinPackage.eINSTANCE);\n\t\t}\n\t\t\t\n\t\trs.getPackageRegistry().put(\"platform:/resource/org.emoflon.ibex.tgg.language/model/Language.ecore\", languagePack);\n\t rs.getPackageRegistry().put(\"platform:/plugin/org.emoflon.ibex.tgg.language/model/Language.ecore\", languagePack);\t\n\t\t\t\n\t\trs.getPackageRegistry().put(\"platform:/resource/org.eclipse.emf.henshin.model/model/henshin.ecore\", henshinPack);\n\t\trs.getPackageRegistry().put(\"platform:/plugin/org.eclipse.emf.henshin.model/model/henshin.ecore\", henshinPack);\n\t\t\n\t\trs.getPackageRegistry().put(\"http://www.eclipse.org/emf/2002/Ecore\", henshinPack);\n\t}", "private IJavaModel getJavaModel() {\n\t\treturn JavaCore.create(getWorkspaceRoot());\n\t}", "public interface BehaviouralModelPackage extends EPackage {\r\n\t/**\r\n\t * The package name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNAME = \"behavioural\";\r\n\r\n\t/**\r\n\t * The package namespace URI.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_URI = \"http:///it/eng/spagobi/meta/model/behavioural.ecore\";\r\n\r\n\t/**\r\n\t * The package namespace name.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tString eNS_PREFIX = \"it.eng.spagobi.meta.model.behavioural\";\r\n\r\n\t/**\r\n\t * The singleton instance of the package.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tBehaviouralModelPackage eINSTANCE = it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl.init();\r\n\r\n\t/**\r\n\t * The meta object id for the '{@link it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl <em>Behavioural Model</em>}' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl\r\n\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl#getBehaviouralModel()\r\n\t * @generated\r\n\t */\r\n\tint BEHAVIOURAL_MODEL = 0;\r\n\r\n\t/**\r\n\t * The number of structural features of the '<em>Behavioural Model</em>' class.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t * @ordered\r\n\t */\r\n\tint BEHAVIOURAL_MODEL_FEATURE_COUNT = 0;\r\n\r\n\r\n\t/**\r\n\t * Returns the meta object for class '{@link it.eng.spagobi.meta.model.behavioural.BehaviouralModel <em>Behavioural Model</em>}'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the meta object for class '<em>Behavioural Model</em>'.\r\n\t * @see it.eng.spagobi.meta.model.behavioural.BehaviouralModel\r\n\t * @generated\r\n\t */\r\n\tEClass getBehaviouralModel();\r\n\r\n\t/**\r\n\t * Returns the factory that creates the instances of the model.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the factory that creates the instances of the model.\r\n\t * @generated\r\n\t */\r\n\tBehaviouralModelFactory getBehaviouralModelFactory();\r\n\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r\n\t * Defines literals for the meta objects that represent\r\n\t * <ul>\r\n\t * <li>each class,</li>\r\n\t * <li>each feature of each class,</li>\r\n\t * <li>each enum,</li>\r\n\t * <li>and each data type</li>\r\n\t * </ul>\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tinterface Literals {\r\n\t\t/**\r\n\t\t * The meta object literal for the '{@link it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl <em>Behavioural Model</em>}' class.\r\n\t\t * <!-- begin-user-doc -->\r\n\t\t * <!-- end-user-doc -->\r\n\t\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelImpl\r\n\t\t * @see it.eng.spagobi.meta.model.behavioural.impl.BehaviouralModelPackageImpl#getBehaviouralModel()\r\n\t\t * @generated\r\n\t\t */\r\n\t\tEClass BEHAVIOURAL_MODEL = eINSTANCE.getBehaviouralModel();\r\n\r\n\t}\r\n\r\n}", "@GET\n @Produces({\"application/xml\", \"application/json\"})\n public ModelBase pull() throws NotFoundException {\n // ?? get latest ontModel directly from TopologyManager ??\n ModelBase model = NPSGlobalState.getModelStore().getHead();\n if (model == null)\n throw new NotFoundException(\"None!\"); \n return model;\n }", "public ModelResource() {\n }", "@Override\n public Environment getEnvironment(String organization, String uuid) throws APIManagementException {\n Environment env = APIUtil.getReadOnlyEnvironments().get(uuid);\n if (env == null) {\n env = apiMgtDAO.getEnvironment(organization, uuid);\n if (env == null) {\n String errorMessage =\n String.format(\"Failed to retrieve Environment with UUID %s. Environment not found\", uuid);\n throw new APIMgtResourceNotFoundException(errorMessage, ExceptionCodes\n .from(ExceptionCodes.GATEWAY_ENVIRONMENT_NOT_FOUND, String.format(\"UUID '%s'\", uuid)));\n }\n }\n return env;\n }", "MatchModelPackage getMatchModelPackage();", "public static SATableReadCapabilityAttributesExtension getSemanticObject(TableReadCapabilityAttributesExtension imfObj)\n {\n SATableReadCapabilityAttributesExtension rc = (SATableReadCapabilityAttributesExtension)Utils.getObjectExtension(imfObj);\n if(rc==null) {\n SL_ContainerObj container = Utils.getSemanticContainer(imfObj);\n rc = (SATableReadCapabilityAttributesExtension)Utils.invoke_buildSemanticLayer(imfObj, container, container.get_factory(), container.getClass().getClassLoader());\n }\n\n return rc;\n }", "MystPackage getMystPackage();", "protected Model loadModelFromResource(String resourcePath, String syntax) {\n Model model = ModelFactory.createDefaultModel();\n InputStream is = this.getClass().getResourceAsStream(resourcePath);\n model.read(is, null, syntax);\n return model;\n }", "private IResource getLaunchableResource(IAdaptable adaptable) {\n\t\tIModelElement je = (IModelElement) adaptable\n\t\t\t\t.getAdapter(IModelElement.class);\n\t\tif (je != null) {\n\t\t\treturn je.getResource();\n\t\t}\n\t\treturn null;\n\t}", "public AbstractResource resource()\r\n {\r\n\t return this.resource_state;\r\n }", "public interface Quality_requirements_metamodelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tQuality_requirements_metamodelFactory eINSTANCE = quality_requirements_metamodel.impl.Quality_requirements_metamodelFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Quality Scenario</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Quality Scenario</em>'.\n\t * @generated\n\t */\n\tQualityScenario createQualityScenario();\n\n\t/**\n\t * Returns a new object of class '<em>Architecture</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Architecture</em>'.\n\t * @generated\n\t */\n\tArchitecture createArchitecture();\n\n\t/**\n\t * Returns a new object of class '<em>Dashboard</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dashboard</em>'.\n\t * @generated\n\t */\n\tDashboard createDashboard();\n\n\t/**\n\t * Returns a new object of class '<em>Stimulus</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stimulus</em>'.\n\t * @generated\n\t */\n\tStimulus createStimulus();\n\n\t/**\n\t * Returns a new object of class '<em>Response Metric</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Response Metric</em>'.\n\t * @generated\n\t */\n\tResponseMetric createResponseMetric();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tQuality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();\n\n}", "public IServiceModel getActiveModel() {\n return activeModel;\n }", "public interface RmFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRmFactory eINSTANCE = ru.capralow.dt.conversion.plugin.core.rm.impl.RmFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Registration Module</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Registration Module</em>'.\n\t * @generated\n\t */\n\tRegistrationModule createRegistrationModule();\n\n\t/**\n\t * Returns a new object of class '<em>Exchange Plan Content</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exchange Plan Content</em>'.\n\t * @generated\n\t */\n\tExchangePlanContent createExchangePlanContent();\n\n\t/**\n\t * Returns a new object of class '<em>Registration Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Registration Rule</em>'.\n\t * @generated\n\t */\n\tRegistrationRule createRegistrationRule();\n\n\t/**\n\t * Returns a new object of class '<em>Object Selection Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Object Selection Rule</em>'.\n\t * @generated\n\t */\n\tObjectSelectionRule createObjectSelectionRule();\n\n\t/**\n\t * Returns a new object of class '<em>Exchange Plan Selection Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exchange Plan Selection Rule</em>'.\n\t * @generated\n\t */\n\tExchangePlanSelectionRule createExchangePlanSelectionRule();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRmPackage getRmPackage();\n\n}", "VmPackage getVmPackage();", "protected void modelRead(){\r\n\t\tthis.model.read(in, null);\r\n\t\tSystem.out.println(\"\\n -- model read finished --\\n\");\r\n\t}", "org.hyperflex.roscomponentmodel.System getSystem();", "public int getResourceMode()\r\n {\r\n return getSemanticObject().getIntProperty(swb_resourceMode);\r\n }", "protected SystemInputDef getResponseInputModel( OpenAPI api)\n {\n SystemInputDef inputDef = TcasesOpenApi.getResponseInputModel( api, getModelOptions());\n return inputDef;\n }", "com.google.cloud.aiplatform.v1.DeployedModel getDeployedModel();", "protected EObject createInitialModel() {\r\n \t\tReqIF root = reqif10Factory.createReqIF();\r\n \r\n \t\tReqIFHeader header = reqif10Factory.createReqIFHeader();\r\n \t\troot.setTheHeader(header);\r\n \r\n \t\t// Setting the time gets more and more complicated...\r\n \t\ttry {\r\n \t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n \t\t\tcal.setTime(new Date());\r\n \t\t\theader.setCreationTime(DatatypeFactory.newInstance()\r\n \t\t\t\t\t.newXMLGregorianCalendar(cal));\r\n \t\t} catch (DatatypeConfigurationException e) {\r\n \t\t\tthrow new RuntimeException(e);\r\n \t\t}\r\n \r\n \t\theader.setSourceToolId(\"ProR (http://pror.org)\");\r\n //\t\theader.setAuthor(System.getProperty(\"user.name\"));\r\n \r\n \t\tReqIFContent content = reqif10Factory.createReqIFContent();\r\n \t\troot.setCoreContent(content);\r\n \r\n \t\t// Add a DatatypeDefinition\r\n \t\tDatatypeDefinitionString ddString = reqif10Factory\r\n \t\t\t\t.createDatatypeDefinitionString();\r\n \t\tddString.setLongName(\"T_String32k\");\r\n \t\tddString.setMaxLength(new BigInteger(\"32000\"));\r\n \t\tcontent.getDatatypes().add(ddString);\r\n \r\n \t\t// Add a Specification\r\n \t\tSpecification spec = reqif10Factory.createSpecification();\r\n \t\tspec.setLongName(\"Specification Document\");\r\n \t\tcontent.getSpecifications().add(spec);\r\n \r\n \t\t// Add a SpecType\r\n \t\tSpecObjectType specType = reqif10Factory.createSpecObjectType();\r\n \t\tspecType.setLongName(\"Requirement Type\");\r\n \t\tcontent.getSpecTypes().add(specType);\r\n \r\n \t\t// Add an AttributeDefinition\r\n \t\tAttributeDefinitionString ad = reqif10Factory\r\n \t\t\t\t.createAttributeDefinitionString();\r\n \t\tad.setType(ddString);\r\n \t\tad.setLongName(\"Description\");\r\n \t\tspecType.getSpecAttributes().add(ad);\r\n \r\n \t\t// Configure the Specification View\r\n \t\tProrToolExtension extension = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrToolExtension();\r\n \t\troot.getToolExtensions().add(extension);\r\n \t\tProrSpecViewConfiguration prorSpecViewConfiguration = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrSpecViewConfiguration();\r\n \t\textension.getSpecViewConfigurations().add(prorSpecViewConfiguration);\r\n \t\tprorSpecViewConfiguration.setSpecification(spec);\r\n \t\tColumn col = ConfigurationFactory.eINSTANCE.createColumn();\r\n \t\tcol.setLabel(\"Description\");\r\n \t\tcol.setWidth(400);\r\n \t\tprorSpecViewConfiguration.getColumns().add(col);\r\n \r\n \t\tColumn leftHeaderColumn = ConfigFactory.eINSTANCE.createColumn();\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setWidth(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_WIDTH);\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setLabel(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_NAME);\r\n \t\tprorSpecViewConfiguration.setLeftHeaderColumn(leftHeaderColumn);\r\n \r\n \t\t// Configure the Label configuration\r\n \t\tProrGeneralConfiguration generalConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrGeneralConfiguration();\r\n \t\tLabelConfiguration labelConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createLabelConfiguration();\r\n \t\tlabelConfig.getDefaultLabel().add(\"Description\");\r\n \t\tgeneralConfig.setLabelConfiguration(labelConfig);\r\n \t\textension.setGeneralConfiguration(generalConfig);\r\n \r\n \t\t// Create one Requirement\r\n \t\tSpecObject specObject = reqif10Factory.createSpecObject();\r\n \t\tspecObject.setType(specType);\r\n \t\tcontent.getSpecObjects().add(specObject);\r\n \t\tAttributeValueString value = reqif10Factory.createAttributeValueString();\r\n \t\tvalue.setTheValue(\"Start editing here.\");\r\n \t\tvalue.setDefinition(ad);\r\n \t\tspecObject.getValues().add(value);\r\n \r\n \t\t// Add the requirement to the Specification\r\n \t\tSpecHierarchy specHierarchy = reqif10Factory.createSpecHierarchy();\r\n \t\tspec.getChildren().add(specHierarchy);\r\n \t\tspecHierarchy.setObject(specObject);\t\r\n \t\treturn root;\r\n \t}", "public Boolean getModel () throws CGException {\n return ivModel;\n }", "public void registerMetamodels(ResourceSet rs, IbexExecutable executable) throws IOException {\r\n\t\t\r\n\t\t// Set correct workspace root\r\n\t\tsetWorkspaceRootDirectory(rs);\r\n\t\t\r\n\t\t// Load and register source and target metamodels\r\n\t\tEPackage familiesPack = null;\r\n\t\tEPackage personsPack = null;\r\n\t\tEPackage benchmarxfamiliestopersonsPack = null;\r\n\t\t\r\n\t\tif(executable instanceof FWD_OPT) {\r\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/Persons/model/Persons.ecore\");\r\n\t\t\tpersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t\t\r\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\");\r\n\t\t\tbenchmarxfamiliestopersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif(executable instanceof BWD_OPT) {\r\n\t\t\tResource res = executable.getResourceHandler().loadResource(\"platform:/resource/Families/model/Families.ecore\");\r\n\t\t\tfamiliesPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t\t\r\n\t\t\tres = executable.getResourceHandler().loadResource(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\");\r\n\t\t\tbenchmarxfamiliestopersonsPack = (EPackage) res.getContents().get(0);\r\n\t\t\trs.getResources().remove(res);\r\n\t\t}\r\n\r\n\t\tif(familiesPack == null)\r\n\t\t\tfamiliesPack = FamiliesPackageImpl.init();\r\n\t\t\t\t\r\n\t\tif(personsPack == null)\r\n\t\t\tpersonsPack = PersonsPackageImpl.init();\r\n\t\t\r\n\t\tif(benchmarxfamiliestopersonsPack == null) {\r\n\t\t\tbenchmarxfamiliestopersonsPack = BenchmarxFamiliesToPersonsPackageImpl.init();\r\n\t\t\trs.getPackageRegistry().put(\"platform:/resource/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\", BenchmarxFamiliesToPersonsPackage.eINSTANCE);\r\n\t\t\trs.getPackageRegistry().put(\"platform:/plugin/BenchmarxFamiliesToPersons/model/BenchmarxFamiliesToPersons.ecore\", BenchmarxFamiliesToPersonsPackage.eINSTANCE);\r\n\t\t}\r\n\t\t\t\r\n\t\trs.getPackageRegistry().put(\"platform:/resource/Families/model/Families.ecore\", familiesPack);\r\n\t rs.getPackageRegistry().put(\"platform:/plugin/Families/model/Families.ecore\", familiesPack);\t\r\n\t\t\t\r\n\t\trs.getPackageRegistry().put(\"platform:/resource/Persons/model/Persons.ecore\", personsPack);\r\n\t\trs.getPackageRegistry().put(\"platform:/plugin/Persons/model/Persons.ecore\", personsPack);\r\n\t}", "public interface IALEVOSEnvironment extends IEnvironment{\n \n public AnnotatedTransitionSystem getATS();\n \n\n}", "protected Model loadModelFromResource(String resourcePath) {\n return loadModelFromResource(resourcePath, \"N3\");\n }", "public interface FmprimitivesPackage extends EPackage\n{\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"fmprimitives\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://lero.ie/spl/fmprimitives.ecore\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"fmprimitives\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n FmprimitivesPackage eINSTANCE = fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl.init();\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl <em>Feature Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModel()\n * @generated\n */\n int FEATURE_MODEL = 0;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__ID = 0;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__NAME = 1;\n\n /**\n * The feature id for the '<em><b>Features</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__FEATURES = 2;\n\n /**\n * The feature id for the '<em><b>Primitives</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL__PRIMITIVES = 3;\n\n /**\n * The number of structural features of the '<em>Feature Model</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_FEATURE_COUNT = 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl <em>Feature Model Primitive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModelPrimitive()\n * @generated\n */\n int FEATURE_MODEL_PRIMITIVE = 1;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__ID = 0;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__NAME = 1;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE = 2;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE__EXPLANATIONS = 3;\n\n /**\n * The number of structural features of the '<em>Feature Model Primitive</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT = 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl <em>Feature Has Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasSubfeature()\n * @generated\n */\n int FEATURE_HAS_SUBFEATURE = 2;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Subfeature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE__SUBFEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Feature Has Subfeature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_SUBFEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl <em>Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getUndirectedRelationship()\n * @generated\n */\n int UNDIRECTED_RELATIONSHIP = 3;\n\n /**\n * The number of structural features of the '<em>Undirected Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int UNDIRECTED_RELATIONSHIP_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl <em>Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getDirectedRelationship()\n * @generated\n */\n int DIRECTED_RELATIONSHIP = 4;\n\n /**\n * The number of structural features of the '<em>Directed Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int DIRECTED_RELATIONSHIP_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl <em>Feature Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureGroup()\n * @generated\n */\n int FEATURE_GROUP = 5;\n\n /**\n * The number of structural features of the '<em>Feature Group</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_GROUP_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl <em>Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeature()\n * @generated\n */\n int FEATURE = 6;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__ID = 0;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__NAME = 1;\n\n /**\n * The feature id for the '<em><b>Group Has Parent</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__GROUP_HAS_PARENT = 2;\n\n /**\n * The feature id for the '<em><b>Group Has Child</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__GROUP_HAS_CHILD = 3;\n\n /**\n * The feature id for the '<em><b>Feature Has Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__FEATURE_HAS_PARENT = 4;\n\n /**\n * The feature id for the '<em><b>Feature Has Subfeature</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__FEATURE_HAS_SUBFEATURE = 5;\n\n /**\n * The feature id for the '<em><b>Selected Feature</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__SELECTED_FEATURE = 6;\n\n /**\n * The feature id for the '<em><b>Eliminated Feature</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__ELIMINATED_FEATURE = 7;\n\n /**\n * The feature id for the '<em><b>Undirected Relationships</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__UNDIRECTED_RELATIONSHIPS = 8;\n\n /**\n * The feature id for the '<em><b>Incoming Directed Relationships</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__INCOMING_DIRECTED_RELATIONSHIPS = 9;\n\n /**\n * The feature id for the '<em><b>Outgoing Directed Relationships</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__OUTGOING_DIRECTED_RELATIONSHIPS = 10;\n\n /**\n * The feature id for the '<em><b>Feature Is Root</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE__FEATURE_IS_ROOT = 11;\n\n /**\n * The number of structural features of the '<em>Feature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_FEATURE_COUNT = 12;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl <em>Group Has Parent</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasParent()\n * @generated\n */\n int GROUP_HAS_PARENT = 7;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Parent</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_PARENT_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl <em>Group Has Child</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasChild()\n * @generated\n */\n int GROUP_HAS_CHILD = 8;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Child</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__CHILD = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Child</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_CHILD_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl <em>Selected Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getSelectedFeature()\n * @generated\n */\n int SELECTED_FEATURE = 9;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Feature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE__FEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Selected Feature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SELECTED_FEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl <em>Eliminated Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getEliminatedFeature()\n * @generated\n */\n int ELIMINATED_FEATURE = 10;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Feature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE__FEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Eliminated Feature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELIMINATED_FEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl <em>Feature Is Root</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureIsRoot()\n * @generated\n */\n int FEATURE_IS_ROOT = 11;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Feature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT__FEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Feature Is Root</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_IS_ROOT_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl <em>Explanation</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getExplanation()\n * @generated\n */\n int EXPLANATION = 12;\n\n /**\n * The feature id for the '<em><b>Primitives</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EXPLANATION__PRIMITIVES = 0;\n\n /**\n * The number of structural features of the '<em>Explanation</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EXPLANATION_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl <em>Group Has Max</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMax()\n * @generated\n */\n int GROUP_HAS_MAX = 13;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Max</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__MAX = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Max</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MAX_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl <em>Group Has Min</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMin()\n * @generated\n */\n int GROUP_HAS_MIN = 14;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Min</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__MIN = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN__GROUP = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Group Has Min</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int GROUP_HAS_MIN_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl <em>Alternative Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAlternativeGroup()\n * @generated\n */\n int ALTERNATIVE_GROUP = 15;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Group Has Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group Has Child</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_CHILD = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Group Has Max</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_MAX = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The feature id for the '<em><b>Group Has Min</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP__GROUP_HAS_MIN = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 3;\n\n /**\n * The number of structural features of the '<em>Alternative Group</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ALTERNATIVE_GROUP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl <em>Or Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getOrGroup()\n * @generated\n */\n int OR_GROUP = 16;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Group Has Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Group Has Child</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_CHILD = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Group Has Max</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_MAX = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The feature id for the '<em><b>Group Has Min</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP__GROUP_HAS_MIN = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 3;\n\n /**\n * The number of structural features of the '<em>Or Group</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int OR_GROUP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 4;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl <em>Feature Has Optional Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasOptionalSubfeature()\n * @generated\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE = 17;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Subfeature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE__SUBFEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Feature Has Optional Subfeature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_OPTIONAL_SUBFEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl <em>Feature Has Mandatory Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasMandatorySubfeature()\n * @generated\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE = 18;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__PARENT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Subfeature</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE__SUBFEATURE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Feature Has Mandatory Subfeature</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FEATURE_HAS_MANDATORY_SUBFEATURE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl <em>Mutual Exclusive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getMutualExclusive()\n * @generated\n */\n int MUTUAL_EXCLUSIVE = 19;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Related Features</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE__RELATED_FEATURES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Mutual Exclusive</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int MUTUAL_EXCLUSIVE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl <em>Custom Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomUndirectedRelationship()\n * @generated\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP = 20;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Stereotype</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__STEREOTYPE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Related Features</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP__RELATED_FEATURES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Custom Undirected Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_UNDIRECTED_RELATIONSHIP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl <em>Requires</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getRequires()\n * @generated\n */\n int REQUIRES = 21;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Sources</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__SOURCES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Targets</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES__TARGETS = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Requires</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int REQUIRES_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl <em>Temporal Ordering Sequential</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getTemporalOrderingSequential()\n * @generated\n */\n int TEMPORAL_ORDERING_SEQUENTIAL = 22;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Sources</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__SOURCES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Targets</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL__TARGETS = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Temporal Ordering Sequential</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEMPORAL_ORDERING_SEQUENTIAL_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl <em>Custom Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomDirectedRelationship()\n * @generated\n */\n int CUSTOM_DIRECTED_RELATIONSHIP = 23;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The feature id for the '<em><b>Stereotype</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__STEREOTYPE = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Sources</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__SOURCES = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Targets</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP__TARGETS = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 2;\n\n /**\n * The number of structural features of the '<em>Custom Directed Relationship</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int CUSTOM_DIRECTED_RELATIONSHIP_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 3;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl <em>Auto Complete</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAutoComplete()\n * @generated\n */\n int AUTO_COMPLETE = 24;\n\n /**\n * The feature id for the '<em><b>Id</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__ID = FEATURE_MODEL_PRIMITIVE__ID;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__NAME = FEATURE_MODEL_PRIMITIVE__NAME;\n\n /**\n * The feature id for the '<em><b>Configuration Source</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__CONFIGURATION_SOURCE = FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE;\n\n /**\n * The feature id for the '<em><b>Explanations</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE__EXPLANATIONS = FEATURE_MODEL_PRIMITIVE__EXPLANATIONS;\n\n /**\n * The number of structural features of the '<em>Auto Complete</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int AUTO_COMPLETE_FEATURE_COUNT = FEATURE_MODEL_PRIMITIVE_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource <em>Configuration Source</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getConfigurationSource()\n * @generated\n */\n int CONFIGURATION_SOURCE = 25;\n\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel <em>Feature Model</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Model</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel\n * @generated\n */\n EClass getFeatureModel();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getId <em>Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Id</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getId()\n * @see #getFeatureModel()\n * @generated\n */\n EAttribute getFeatureModel_Id();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getName()\n * @see #getFeatureModel()\n * @generated\n */\n EAttribute getFeatureModel_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getFeatures <em>Features</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Features</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getFeatures()\n * @see #getFeatureModel()\n * @generated\n */\n EReference getFeatureModel_Features();\n\n /**\n * Returns the meta object for the containment reference list '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getPrimitives <em>Primitives</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Primitives</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModel#getPrimitives()\n * @see #getFeatureModel()\n * @generated\n */\n EReference getFeatureModel_Primitives();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive <em>Feature Model Primitive</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Model Primitive</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive\n * @generated\n */\n EClass getFeatureModelPrimitive();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getId <em>Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Id</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getId()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EAttribute getFeatureModelPrimitive_Id();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getName()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EAttribute getFeatureModelPrimitive_Name();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getConfigurationSource <em>Configuration Source</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Configuration Source</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getConfigurationSource()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EAttribute getFeatureModelPrimitive_ConfigurationSource();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getExplanations <em>Explanations</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Explanations</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureModelPrimitive#getExplanations()\n * @see #getFeatureModelPrimitive()\n * @generated\n */\n EReference getFeatureModelPrimitive_Explanations();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature <em>Feature Has Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Has Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature\n * @generated\n */\n EClass getFeatureHasSubfeature();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getParent <em>Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getParent()\n * @see #getFeatureHasSubfeature()\n * @generated\n */\n EReference getFeatureHasSubfeature_Parent();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getSubfeature <em>Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasSubfeature#getSubfeature()\n * @see #getFeatureHasSubfeature()\n * @generated\n */\n EReference getFeatureHasSubfeature_Subfeature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.UndirectedRelationship <em>Undirected Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Undirected Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.UndirectedRelationship\n * @generated\n */\n EClass getUndirectedRelationship();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.DirectedRelationship <em>Directed Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Directed Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.DirectedRelationship\n * @generated\n */\n EClass getDirectedRelationship();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureGroup <em>Feature Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureGroup\n * @generated\n */\n EClass getFeatureGroup();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.Feature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature\n * @generated\n */\n EClass getFeature();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getId <em>Id</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Id</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getId()\n * @see #getFeature()\n * @generated\n */\n EAttribute getFeature_Id();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getName()\n * @see #getFeature()\n * @generated\n */\n EAttribute getFeature_Name();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasParent()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_GroupHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getGroupHasChild()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_GroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasParent <em>Feature Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasParent()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_FeatureHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasSubfeature <em>Feature Has Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Feature Has Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureHasSubfeature()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_FeatureHasSubfeature();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getSelectedFeature <em>Selected Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Selected Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getSelectedFeature()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_SelectedFeature();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getEliminatedFeature <em>Eliminated Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Eliminated Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getEliminatedFeature()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_EliminatedFeature();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getUndirectedRelationships <em>Undirected Relationships</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Undirected Relationships</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getUndirectedRelationships()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_UndirectedRelationships();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getIncomingDirectedRelationships <em>Incoming Directed Relationships</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Incoming Directed Relationships</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getIncomingDirectedRelationships()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_IncomingDirectedRelationships();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getOutgoingDirectedRelationships <em>Outgoing Directed Relationships</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Outgoing Directed Relationships</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getOutgoingDirectedRelationships()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_OutgoingDirectedRelationships();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureIsRoot <em>Feature Is Root</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature Is Root</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Feature#getFeatureIsRoot()\n * @see #getFeature()\n * @generated\n */\n EReference getFeature_FeatureIsRoot();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasParent\n * @generated\n */\n EClass getGroupHasParent();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getParent <em>Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getParent()\n * @see #getGroupHasParent()\n * @generated\n */\n EReference getGroupHasParent_Parent();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasParent#getGroup()\n * @see #getGroupHasParent()\n * @generated\n */\n EReference getGroupHasParent_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasChild\n * @generated\n */\n EClass getGroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getChild <em>Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getChild()\n * @see #getGroupHasChild()\n * @generated\n */\n EReference getGroupHasChild_Child();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasChild#getGroup()\n * @see #getGroupHasChild()\n * @generated\n */\n EReference getGroupHasChild_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.SelectedFeature <em>Selected Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Selected Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.SelectedFeature\n * @generated\n */\n EClass getSelectedFeature();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.SelectedFeature#getFeature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.SelectedFeature#getFeature()\n * @see #getSelectedFeature()\n * @generated\n */\n EReference getSelectedFeature_Feature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature <em>Eliminated Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Eliminated Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature\n * @generated\n */\n EClass getEliminatedFeature();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature#getFeature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.EliminatedFeature#getFeature()\n * @see #getEliminatedFeature()\n * @generated\n */\n EReference getEliminatedFeature_Feature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot <em>Feature Is Root</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Is Root</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot\n * @generated\n */\n EClass getFeatureIsRoot();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot#getFeature <em>Feature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Feature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureIsRoot#getFeature()\n * @see #getFeatureIsRoot()\n * @generated\n */\n EReference getFeatureIsRoot_Feature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.Explanation <em>Explanation</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Explanation</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Explanation\n * @generated\n */\n EClass getExplanation();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Explanation#getPrimitives <em>Primitives</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Primitives</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Explanation#getPrimitives()\n * @see #getExplanation()\n * @generated\n */\n EReference getExplanation_Primitives();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMax <em>Group Has Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMax\n * @generated\n */\n EClass getGroupHasMax();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getMax <em>Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getMax()\n * @see #getGroupHasMax()\n * @generated\n */\n EAttribute getGroupHasMax_Max();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMax#getGroup()\n * @see #getGroupHasMax()\n * @generated\n */\n EReference getGroupHasMax_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMin <em>Group Has Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Group Has Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMin\n * @generated\n */\n EClass getGroupHasMin();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getMin <em>Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getMin()\n * @see #getGroupHasMin()\n * @generated\n */\n EAttribute getGroupHasMin_Min();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getGroup <em>Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.GroupHasMin#getGroup()\n * @see #getGroupHasMin()\n * @generated\n */\n EReference getGroupHasMin_Group();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup <em>Alternative Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Alternative Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup\n * @generated\n */\n EClass getAlternativeGroup();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasParent()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasChild()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMax <em>Group Has Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMax()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasMax();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMin <em>Group Has Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AlternativeGroup#getGroupHasMin()\n * @see #getAlternativeGroup()\n * @generated\n */\n EReference getAlternativeGroup_GroupHasMin();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup <em>Or Group</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Or Group</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup\n * @generated\n */\n EClass getOrGroup();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasParent <em>Group Has Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Parent</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasParent()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasParent();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasChild <em>Group Has Child</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Group Has Child</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasChild()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasChild();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMax <em>Group Has Max</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Max</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMax()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasMax();\n\n /**\n * Returns the meta object for the reference '{@link fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMin <em>Group Has Min</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Group Has Min</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.OrGroup#getGroupHasMin()\n * @see #getOrGroup()\n * @generated\n */\n EReference getOrGroup_GroupHasMin();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasOptionalSubfeature <em>Feature Has Optional Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Has Optional Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasOptionalSubfeature\n * @generated\n */\n EClass getFeatureHasOptionalSubfeature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.FeatureHasMandatorySubfeature <em>Feature Has Mandatory Subfeature</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Feature Has Mandatory Subfeature</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.FeatureHasMandatorySubfeature\n * @generated\n */\n EClass getFeatureHasMandatorySubfeature();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.MutualExclusive <em>Mutual Exclusive</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Mutual Exclusive</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.MutualExclusive\n * @generated\n */\n EClass getMutualExclusive();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.MutualExclusive#getRelatedFeatures <em>Related Features</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Related Features</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.MutualExclusive#getRelatedFeatures()\n * @see #getMutualExclusive()\n * @generated\n */\n EReference getMutualExclusive_RelatedFeatures();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship <em>Custom Undirected Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Custom Undirected Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship\n * @generated\n */\n EClass getCustomUndirectedRelationship();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getStereotype <em>Stereotype</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Stereotype</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getStereotype()\n * @see #getCustomUndirectedRelationship()\n * @generated\n */\n EAttribute getCustomUndirectedRelationship_Stereotype();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getRelatedFeatures <em>Related Features</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Related Features</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomUndirectedRelationship#getRelatedFeatures()\n * @see #getCustomUndirectedRelationship()\n * @generated\n */\n EReference getCustomUndirectedRelationship_RelatedFeatures();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.Requires <em>Requires</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Requires</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Requires\n * @generated\n */\n EClass getRequires();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Requires#getSources <em>Sources</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Sources</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Requires#getSources()\n * @see #getRequires()\n * @generated\n */\n EReference getRequires_Sources();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.Requires#getTargets <em>Targets</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Targets</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.Requires#getTargets()\n * @see #getRequires()\n * @generated\n */\n EReference getRequires_Targets();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential <em>Temporal Ordering Sequential</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Temporal Ordering Sequential</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential\n * @generated\n */\n EClass getTemporalOrderingSequential();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getSources <em>Sources</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Sources</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getSources()\n * @see #getTemporalOrderingSequential()\n * @generated\n */\n EReference getTemporalOrderingSequential_Sources();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getTargets <em>Targets</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Targets</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.TemporalOrderingSequential#getTargets()\n * @see #getTemporalOrderingSequential()\n * @generated\n */\n EReference getTemporalOrderingSequential_Targets();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship <em>Custom Directed Relationship</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Custom Directed Relationship</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship\n * @generated\n */\n EClass getCustomDirectedRelationship();\n\n /**\n * Returns the meta object for the attribute '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getStereotype <em>Stereotype</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Stereotype</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getStereotype()\n * @see #getCustomDirectedRelationship()\n * @generated\n */\n EAttribute getCustomDirectedRelationship_Stereotype();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getSources <em>Sources</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Sources</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getSources()\n * @see #getCustomDirectedRelationship()\n * @generated\n */\n EReference getCustomDirectedRelationship_Sources();\n\n /**\n * Returns the meta object for the reference list '{@link fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getTargets <em>Targets</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Targets</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.CustomDirectedRelationship#getTargets()\n * @see #getCustomDirectedRelationship()\n * @generated\n */\n EReference getCustomDirectedRelationship_Targets();\n\n /**\n * Returns the meta object for class '{@link fr.inria.familiar.fmlero.fmprimitives.AutoComplete <em>Auto Complete</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Auto Complete</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.AutoComplete\n * @generated\n */\n EClass getAutoComplete();\n\n /**\n * Returns the meta object for enum '{@link fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource <em>Configuration Source</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>Configuration Source</em>'.\n * @see fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource\n * @generated\n */\n EEnum getConfigurationSource();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n FmprimitivesFactory getFmprimitivesFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals\n {\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl <em>Feature Model</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModel()\n * @generated\n */\n EClass FEATURE_MODEL = eINSTANCE.getFeatureModel();\n\n /**\n * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL__ID = eINSTANCE.getFeatureModel_Id();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL__NAME = eINSTANCE.getFeatureModel_Name();\n\n /**\n * The meta object literal for the '<em><b>Features</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_MODEL__FEATURES = eINSTANCE.getFeatureModel_Features();\n\n /**\n * The meta object literal for the '<em><b>Primitives</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_MODEL__PRIMITIVES = eINSTANCE.getFeatureModel_Primitives();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl <em>Feature Model Primitive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureModelPrimitiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureModelPrimitive()\n * @generated\n */\n EClass FEATURE_MODEL_PRIMITIVE = eINSTANCE.getFeatureModelPrimitive();\n\n /**\n * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL_PRIMITIVE__ID = eINSTANCE.getFeatureModelPrimitive_Id();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL_PRIMITIVE__NAME = eINSTANCE.getFeatureModelPrimitive_Name();\n\n /**\n * The meta object literal for the '<em><b>Configuration Source</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE_MODEL_PRIMITIVE__CONFIGURATION_SOURCE = eINSTANCE.getFeatureModelPrimitive_ConfigurationSource();\n\n /**\n * The meta object literal for the '<em><b>Explanations</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_MODEL_PRIMITIVE__EXPLANATIONS = eINSTANCE.getFeatureModelPrimitive_Explanations();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl <em>Feature Has Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasSubfeature()\n * @generated\n */\n EClass FEATURE_HAS_SUBFEATURE = eINSTANCE.getFeatureHasSubfeature();\n\n /**\n * The meta object literal for the '<em><b>Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_HAS_SUBFEATURE__PARENT = eINSTANCE.getFeatureHasSubfeature_Parent();\n\n /**\n * The meta object literal for the '<em><b>Subfeature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_HAS_SUBFEATURE__SUBFEATURE = eINSTANCE.getFeatureHasSubfeature_Subfeature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl <em>Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.UndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getUndirectedRelationship()\n * @generated\n */\n EClass UNDIRECTED_RELATIONSHIP = eINSTANCE.getUndirectedRelationship();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl <em>Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.DirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getDirectedRelationship()\n * @generated\n */\n EClass DIRECTED_RELATIONSHIP = eINSTANCE.getDirectedRelationship();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl <em>Feature Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureGroup()\n * @generated\n */\n EClass FEATURE_GROUP = eINSTANCE.getFeatureGroup();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl <em>Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeature()\n * @generated\n */\n EClass FEATURE = eINSTANCE.getFeature();\n\n /**\n * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE__ID = eINSTANCE.getFeature_Id();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n /**\n * The meta object literal for the '<em><b>Group Has Parent</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__GROUP_HAS_PARENT = eINSTANCE.getFeature_GroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Group Has Child</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__GROUP_HAS_CHILD = eINSTANCE.getFeature_GroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Feature Has Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__FEATURE_HAS_PARENT = eINSTANCE.getFeature_FeatureHasParent();\n\n /**\n * The meta object literal for the '<em><b>Feature Has Subfeature</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__FEATURE_HAS_SUBFEATURE = eINSTANCE.getFeature_FeatureHasSubfeature();\n\n /**\n * The meta object literal for the '<em><b>Selected Feature</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__SELECTED_FEATURE = eINSTANCE.getFeature_SelectedFeature();\n\n /**\n * The meta object literal for the '<em><b>Eliminated Feature</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__ELIMINATED_FEATURE = eINSTANCE.getFeature_EliminatedFeature();\n\n /**\n * The meta object literal for the '<em><b>Undirected Relationships</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__UNDIRECTED_RELATIONSHIPS = eINSTANCE.getFeature_UndirectedRelationships();\n\n /**\n * The meta object literal for the '<em><b>Incoming Directed Relationships</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__INCOMING_DIRECTED_RELATIONSHIPS = eINSTANCE.getFeature_IncomingDirectedRelationships();\n\n /**\n * The meta object literal for the '<em><b>Outgoing Directed Relationships</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__OUTGOING_DIRECTED_RELATIONSHIPS = eINSTANCE.getFeature_OutgoingDirectedRelationships();\n\n /**\n * The meta object literal for the '<em><b>Feature Is Root</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE__FEATURE_IS_ROOT = eINSTANCE.getFeature_FeatureIsRoot();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl <em>Group Has Parent</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasParentImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasParent()\n * @generated\n */\n EClass GROUP_HAS_PARENT = eINSTANCE.getGroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_PARENT__PARENT = eINSTANCE.getGroupHasParent_Parent();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_PARENT__GROUP = eINSTANCE.getGroupHasParent_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl <em>Group Has Child</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasChildImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasChild()\n * @generated\n */\n EClass GROUP_HAS_CHILD = eINSTANCE.getGroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Child</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_CHILD__CHILD = eINSTANCE.getGroupHasChild_Child();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_CHILD__GROUP = eINSTANCE.getGroupHasChild_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl <em>Selected Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.SelectedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getSelectedFeature()\n * @generated\n */\n EClass SELECTED_FEATURE = eINSTANCE.getSelectedFeature();\n\n /**\n * The meta object literal for the '<em><b>Feature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SELECTED_FEATURE__FEATURE = eINSTANCE.getSelectedFeature_Feature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl <em>Eliminated Feature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.EliminatedFeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getEliminatedFeature()\n * @generated\n */\n EClass ELIMINATED_FEATURE = eINSTANCE.getEliminatedFeature();\n\n /**\n * The meta object literal for the '<em><b>Feature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ELIMINATED_FEATURE__FEATURE = eINSTANCE.getEliminatedFeature_Feature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl <em>Feature Is Root</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureIsRootImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureIsRoot()\n * @generated\n */\n EClass FEATURE_IS_ROOT = eINSTANCE.getFeatureIsRoot();\n\n /**\n * The meta object literal for the '<em><b>Feature</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FEATURE_IS_ROOT__FEATURE = eINSTANCE.getFeatureIsRoot_Feature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl <em>Explanation</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.ExplanationImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getExplanation()\n * @generated\n */\n EClass EXPLANATION = eINSTANCE.getExplanation();\n\n /**\n * The meta object literal for the '<em><b>Primitives</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference EXPLANATION__PRIMITIVES = eINSTANCE.getExplanation_Primitives();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl <em>Group Has Max</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMaxImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMax()\n * @generated\n */\n EClass GROUP_HAS_MAX = eINSTANCE.getGroupHasMax();\n\n /**\n * The meta object literal for the '<em><b>Max</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute GROUP_HAS_MAX__MAX = eINSTANCE.getGroupHasMax_Max();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_MAX__GROUP = eINSTANCE.getGroupHasMax_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl <em>Group Has Min</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.GroupHasMinImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getGroupHasMin()\n * @generated\n */\n EClass GROUP_HAS_MIN = eINSTANCE.getGroupHasMin();\n\n /**\n * The meta object literal for the '<em><b>Min</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute GROUP_HAS_MIN__MIN = eINSTANCE.getGroupHasMin_Min();\n\n /**\n * The meta object literal for the '<em><b>Group</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference GROUP_HAS_MIN__GROUP = eINSTANCE.getGroupHasMin_Group();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl <em>Alternative Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AlternativeGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAlternativeGroup()\n * @generated\n */\n EClass ALTERNATIVE_GROUP = eINSTANCE.getAlternativeGroup();\n\n /**\n * The meta object literal for the '<em><b>Group Has Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_PARENT = eINSTANCE.getAlternativeGroup_GroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Group Has Child</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_CHILD = eINSTANCE.getAlternativeGroup_GroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Group Has Max</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_MAX = eINSTANCE.getAlternativeGroup_GroupHasMax();\n\n /**\n * The meta object literal for the '<em><b>Group Has Min</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ALTERNATIVE_GROUP__GROUP_HAS_MIN = eINSTANCE.getAlternativeGroup_GroupHasMin();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl <em>Or Group</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.OrGroupImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getOrGroup()\n * @generated\n */\n EClass OR_GROUP = eINSTANCE.getOrGroup();\n\n /**\n * The meta object literal for the '<em><b>Group Has Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_PARENT = eINSTANCE.getOrGroup_GroupHasParent();\n\n /**\n * The meta object literal for the '<em><b>Group Has Child</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_CHILD = eINSTANCE.getOrGroup_GroupHasChild();\n\n /**\n * The meta object literal for the '<em><b>Group Has Max</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_MAX = eINSTANCE.getOrGroup_GroupHasMax();\n\n /**\n * The meta object literal for the '<em><b>Group Has Min</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference OR_GROUP__GROUP_HAS_MIN = eINSTANCE.getOrGroup_GroupHasMin();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl <em>Feature Has Optional Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasOptionalSubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasOptionalSubfeature()\n * @generated\n */\n EClass FEATURE_HAS_OPTIONAL_SUBFEATURE = eINSTANCE.getFeatureHasOptionalSubfeature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl <em>Feature Has Mandatory Subfeature</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FeatureHasMandatorySubfeatureImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getFeatureHasMandatorySubfeature()\n * @generated\n */\n EClass FEATURE_HAS_MANDATORY_SUBFEATURE = eINSTANCE.getFeatureHasMandatorySubfeature();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl <em>Mutual Exclusive</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.MutualExclusiveImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getMutualExclusive()\n * @generated\n */\n EClass MUTUAL_EXCLUSIVE = eINSTANCE.getMutualExclusive();\n\n /**\n * The meta object literal for the '<em><b>Related Features</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference MUTUAL_EXCLUSIVE__RELATED_FEATURES = eINSTANCE.getMutualExclusive_RelatedFeatures();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl <em>Custom Undirected Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomUndirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomUndirectedRelationship()\n * @generated\n */\n EClass CUSTOM_UNDIRECTED_RELATIONSHIP = eINSTANCE.getCustomUndirectedRelationship();\n\n /**\n * The meta object literal for the '<em><b>Stereotype</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute CUSTOM_UNDIRECTED_RELATIONSHIP__STEREOTYPE = eINSTANCE.getCustomUndirectedRelationship_Stereotype();\n\n /**\n * The meta object literal for the '<em><b>Related Features</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CUSTOM_UNDIRECTED_RELATIONSHIP__RELATED_FEATURES = eINSTANCE.getCustomUndirectedRelationship_RelatedFeatures();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl <em>Requires</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.RequiresImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getRequires()\n * @generated\n */\n EClass REQUIRES = eINSTANCE.getRequires();\n\n /**\n * The meta object literal for the '<em><b>Sources</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference REQUIRES__SOURCES = eINSTANCE.getRequires_Sources();\n\n /**\n * The meta object literal for the '<em><b>Targets</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference REQUIRES__TARGETS = eINSTANCE.getRequires_Targets();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl <em>Temporal Ordering Sequential</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.TemporalOrderingSequentialImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getTemporalOrderingSequential()\n * @generated\n */\n EClass TEMPORAL_ORDERING_SEQUENTIAL = eINSTANCE.getTemporalOrderingSequential();\n\n /**\n * The meta object literal for the '<em><b>Sources</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference TEMPORAL_ORDERING_SEQUENTIAL__SOURCES = eINSTANCE.getTemporalOrderingSequential_Sources();\n\n /**\n * The meta object literal for the '<em><b>Targets</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference TEMPORAL_ORDERING_SEQUENTIAL__TARGETS = eINSTANCE.getTemporalOrderingSequential_Targets();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl <em>Custom Directed Relationship</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.CustomDirectedRelationshipImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getCustomDirectedRelationship()\n * @generated\n */\n EClass CUSTOM_DIRECTED_RELATIONSHIP = eINSTANCE.getCustomDirectedRelationship();\n\n /**\n * The meta object literal for the '<em><b>Stereotype</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute CUSTOM_DIRECTED_RELATIONSHIP__STEREOTYPE = eINSTANCE.getCustomDirectedRelationship_Stereotype();\n\n /**\n * The meta object literal for the '<em><b>Sources</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CUSTOM_DIRECTED_RELATIONSHIP__SOURCES = eINSTANCE.getCustomDirectedRelationship_Sources();\n\n /**\n * The meta object literal for the '<em><b>Targets</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference CUSTOM_DIRECTED_RELATIONSHIP__TARGETS = eINSTANCE.getCustomDirectedRelationship_Targets();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl <em>Auto Complete</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.AutoCompleteImpl\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getAutoComplete()\n * @generated\n */\n EClass AUTO_COMPLETE = eINSTANCE.getAutoComplete();\n\n /**\n * The meta object literal for the '{@link fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource <em>Configuration Source</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see fr.inria.familiar.fmlero.fmprimitives.ConfigurationSource\n * @see fr.inria.familiar.fmlero.fmprimitives.impl.FmprimitivesPackageImpl#getConfigurationSource()\n * @generated\n */\n EEnum CONFIGURATION_SOURCE = eINSTANCE.getConfigurationSource();\n\n }\n\n}", "Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();", "public interface TestModelPackage extends EPackage {\n\t/**\n\t * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tString eNAME = \"model\"; //$NON-NLS-1$\n\n\t/**\n\t * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tString eNS_URI = \"http://rcp-company.com/schemas/uibindings/testModel\"; //$NON-NLS-1$\n\n\t/**\n\t * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tString eNS_PREFIX = \"tm\"; //$NON-NLS-1$\n\n\t/**\n\t * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tTestModelPackage eINSTANCE = com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestObjectImpl <em>Test Object</em>}'\n\t * class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestObjectImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestObject()\n\t * @generated\n\t */\n\tint TEST_OBJECT = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Number</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__NUMBER = 0;\n\n\t/**\n\t * The feature id for the '<em><b>D</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__D = 1;\n\n\t/**\n\t * The feature id for the '<em><b>F</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__F = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Date</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__DATE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Text</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__TEXT = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__PARENT = 5;\n\n\t/**\n\t * The feature id for the '<em><b>B</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__B = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Ac</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__AC = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Unit</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__UNIT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Time Unit</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__TIME_UNIT = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Byte</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__BYTE = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Short</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__SHORT = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Long</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__LONG = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Big Decimal</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__BIG_DECIMAL = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Big Integer</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT__BIG_INTEGER = 14;\n\n\t/**\n\t * The number of structural features of the '<em>Test Object</em>' class. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT_FEATURE_COUNT = 15;\n\n\t/**\n\t * The number of operations of the '<em>Test Object</em>' class. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_OBJECT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.SubTestObjectImpl\n\t * <em>Sub Test Object</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.SubTestObjectImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getSubTestObject()\n\t * @generated\n\t */\n\tint SUB_TEST_OBJECT = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Number</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__NUMBER = TEST_OBJECT__NUMBER;\n\n\t/**\n\t * The feature id for the '<em><b>D</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__D = TEST_OBJECT__D;\n\n\t/**\n\t * The feature id for the '<em><b>F</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__F = TEST_OBJECT__F;\n\n\t/**\n\t * The feature id for the '<em><b>Date</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__DATE = TEST_OBJECT__DATE;\n\n\t/**\n\t * The feature id for the '<em><b>Text</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__TEXT = TEST_OBJECT__TEXT;\n\n\t/**\n\t * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__PARENT = TEST_OBJECT__PARENT;\n\n\t/**\n\t * The feature id for the '<em><b>B</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__B = TEST_OBJECT__B;\n\n\t/**\n\t * The feature id for the '<em><b>Ac</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__AC = TEST_OBJECT__AC;\n\n\t/**\n\t * The feature id for the '<em><b>Unit</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__UNIT = TEST_OBJECT__UNIT;\n\n\t/**\n\t * The feature id for the '<em><b>Time Unit</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__TIME_UNIT = TEST_OBJECT__TIME_UNIT;\n\n\t/**\n\t * The feature id for the '<em><b>Byte</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__BYTE = TEST_OBJECT__BYTE;\n\n\t/**\n\t * The feature id for the '<em><b>Short</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__SHORT = TEST_OBJECT__SHORT;\n\n\t/**\n\t * The feature id for the '<em><b>Long</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__LONG = TEST_OBJECT__LONG;\n\n\t/**\n\t * The feature id for the '<em><b>Big Decimal</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__BIG_DECIMAL = TEST_OBJECT__BIG_DECIMAL;\n\n\t/**\n\t * The feature id for the '<em><b>Big Integer</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT__BIG_INTEGER = TEST_OBJECT__BIG_INTEGER;\n\n\t/**\n\t * The number of structural features of the '<em>Sub Test Object</em>' class. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT_FEATURE_COUNT = TEST_OBJECT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Sub Test Object</em>' class. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint SUB_TEST_OBJECT_OPERATION_COUNT = TEST_OBJECT_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestContainerImpl\n\t * <em>Test Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestContainerImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestContainer()\n\t * @generated\n\t */\n\tint TEST_CONTAINER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Children</b></em>' reference list. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_CONTAINER__CHILDREN = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Current</b></em>' reference. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_CONTAINER__CURRENT = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Test Container</em>' class. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_CONTAINER_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Test Container</em>' class. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_CONTAINER_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.AmountAndCurrencyImpl\n\t * <em>Amount And Currency</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.AmountAndCurrencyImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getAmountAndCurrency()\n\t * @generated\n\t */\n\tint AMOUNT_AND_CURRENCY = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Amount</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint AMOUNT_AND_CURRENCY__AMOUNT = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Currency</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint AMOUNT_AND_CURRENCY__CURRENCY = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Amount And Currency</em>' class. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint AMOUNT_AND_CURRENCY_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Amount And Currency</em>' class. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint AMOUNT_AND_CURRENCY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridImpl <em>Test Grid</em>}' class.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGrid()\n\t * @generated\n\t */\n\tint TEST_GRID = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Columns</b></em>' reference list. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID__COLUMNS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Rows</b></em>' reference list. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID__ROWS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Test Grid</em>' class. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Test Grid</em>' class. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridColumnImpl\n\t * <em>Test Grid Column</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridColumnImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGridColumn()\n\t * @generated\n\t */\n\tint TEST_GRID_COLUMN = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Grid</b></em>' reference. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_COLUMN__GRID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_COLUMN__NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Cells</b></em>' reference list. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_COLUMN__CELLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Test Grid Column</em>' class. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_COLUMN_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Test Grid Column</em>' class. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_COLUMN_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridRowImpl <em>Test Grid Row</em>}'\n\t * class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridRowImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGridRow()\n\t * @generated\n\t */\n\tint TEST_GRID_ROW = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Grid</b></em>' reference. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_ROW__GRID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Number</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_ROW__NUMBER = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Cells</b></em>' reference list. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_ROW__CELLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Test Grid Row</em>' class. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_ROW_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Test Grid Row</em>' class. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_ROW_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '\n\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridCellImpl\n\t * <em>Test Grid Cell</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridCellImpl\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGridCell()\n\t * @generated\n\t */\n\tint TEST_GRID_CELL = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Details</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_CELL__DETAILS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_CELL__PRICE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Column</b></em>' reference. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_CELL__COLUMN = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Row</b></em>' reference. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_CELL__ROW = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Test Grid Cell</em>' class. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_CELL_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Test Grid Cell</em>' class. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t * @ordered\n\t */\n\tint TEST_GRID_CELL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link com.rcpcompany.uibinding.tests.model.WeightUnit\n\t * <em>Weight Unit</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.WeightUnit\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getWeightUnit()\n\t * @generated\n\t */\n\tint WEIGHT_UNIT = 8;\n\n\t/**\n\t * The meta object id for the '{@link com.rcpcompany.uibinding.tests.model.TimeUnit\n\t * <em>Time Unit</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.TimeUnit\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTimeUnit()\n\t * @generated\n\t */\n\tint TIME_UNIT = 9;\n\n\t/**\n\t * The meta object id for the '<em>EDate</em>' data type. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @see java.util.Date\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getEDate()\n\t * @generated\n\t */\n\tint EDATE = 10;\n\n\t/**\n\t * The meta object id for the '<em>EBig Decimal</em>' data type. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @see java.math.BigDecimal\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getEBigDecimal()\n\t * @generated\n\t */\n\tint EBIG_DECIMAL = 11;\n\n\t/**\n\t * The meta object id for the '<em>EBig Integer</em>' data type. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @see java.math.BigInteger\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getEBigInteger()\n\t * @generated\n\t */\n\tint EBIG_INTEGER = 12;\n\n\t/**\n\t * The meta object id for the '<em>Amount And Currency Struct</em>' data type. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @see com.rcpcompany.uibinding.tests.model.AmountAndCurrencyOld\n\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getAmountAndCurrencyStruct()\n\t * @generated\n\t */\n\tint AMOUNT_AND_CURRENCY_STRUCT = 13;\n\n\t/**\n\t * Returns the meta object for class '{@link com.rcpcompany.uibinding.tests.model.TestObject\n\t * <em>Test Object</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Test Object</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject\n\t * @generated\n\t */\n\tEClass getTestObject();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getNumber <em>Number</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Number</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getNumber()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Number();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getD <em>D</em>}'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>D</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getD()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_D();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getF <em>F</em>}'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>F</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getF()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_F();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getDate <em>Date</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Date</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getDate()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Date();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getText <em>Text</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Text</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getText()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Text();\n\n\t/**\n\t * Returns the meta object for the reference '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getParent <em>Parent</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference '<em>Parent</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getParent()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEReference getTestObject_Parent();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#isB <em>B</em>}'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>B</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#isB()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_B();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getAc <em>Ac</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Ac</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getAc()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Ac();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getUnit <em>Unit</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Unit</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getUnit()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Unit();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getTimeUnit <em>Time Unit</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Time Unit</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getTimeUnit()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_TimeUnit();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getByte <em>Byte</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Byte</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getByte()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Byte();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getShort <em>Short</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Short</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getShort()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Short();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getLong <em>Long</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Long</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getLong()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_Long();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getBigDecimal <em>Big Decimal</em>}'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Big Decimal</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getBigDecimal()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_BigDecimal();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestObject#getBigInteger <em>Big Integer</em>}'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Big Integer</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestObject#getBigInteger()\n\t * @see #getTestObject()\n\t * @generated\n\t */\n\tEAttribute getTestObject_BigInteger();\n\n\t/**\n\t * Returns the meta object for class '{@link com.rcpcompany.uibinding.tests.model.SubTestObject\n\t * <em>Sub Test Object</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Sub Test Object</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.SubTestObject\n\t * @generated\n\t */\n\tEClass getSubTestObject();\n\n\t/**\n\t * Returns the meta object for class '{@link com.rcpcompany.uibinding.tests.model.TestContainer\n\t * <em>Test Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Test Container</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestContainer\n\t * @generated\n\t */\n\tEClass getTestContainer();\n\n\t/**\n\t * Returns the meta object for the reference list '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestContainer#getChildren <em>Children</em>}'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference list '<em>Children</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestContainer#getChildren()\n\t * @see #getTestContainer()\n\t * @generated\n\t */\n\tEReference getTestContainer_Children();\n\n\t/**\n\t * Returns the meta object for the reference '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestContainer#getCurrent <em>Current</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference '<em>Current</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestContainer#getCurrent()\n\t * @see #getTestContainer()\n\t * @generated\n\t */\n\tEReference getTestContainer_Current();\n\n\t/**\n\t * Returns the meta object for class '\n\t * {@link com.rcpcompany.uibinding.tests.model.AmountAndCurrency <em>Amount And Currency</em>}'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Amount And Currency</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.AmountAndCurrency\n\t * @generated\n\t */\n\tEClass getAmountAndCurrency();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.AmountAndCurrency#getAmount <em>Amount</em>}'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Amount</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.AmountAndCurrency#getAmount()\n\t * @see #getAmountAndCurrency()\n\t * @generated\n\t */\n\tEAttribute getAmountAndCurrency_Amount();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.AmountAndCurrency#getCurrency <em>Currency</em>}\n\t * '. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Currency</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.AmountAndCurrency#getCurrency()\n\t * @see #getAmountAndCurrency()\n\t * @generated\n\t */\n\tEAttribute getAmountAndCurrency_Currency();\n\n\t/**\n\t * Returns the meta object for class '{@link com.rcpcompany.uibinding.tests.model.TestGrid\n\t * <em>Test Grid</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Test Grid</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGrid\n\t * @generated\n\t */\n\tEClass getTestGrid();\n\n\t/**\n\t * Returns the meta object for the reference list '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGrid#getColumns <em>Columns</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference list '<em>Columns</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGrid#getColumns()\n\t * @see #getTestGrid()\n\t * @generated\n\t */\n\tEReference getTestGrid_Columns();\n\n\t/**\n\t * Returns the meta object for the reference list '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGrid#getRows <em>Rows</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference list '<em>Rows</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGrid#getRows()\n\t * @see #getTestGrid()\n\t * @generated\n\t */\n\tEReference getTestGrid_Rows();\n\n\t/**\n\t * Returns the meta object for class '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridColumn <em>Test Grid Column</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Test Grid Column</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridColumn\n\t * @generated\n\t */\n\tEClass getTestGridColumn();\n\n\t/**\n\t * Returns the meta object for the reference '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridColumn#getGrid <em>Grid</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference '<em>Grid</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridColumn#getGrid()\n\t * @see #getTestGridColumn()\n\t * @generated\n\t */\n\tEReference getTestGridColumn_Grid();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridColumn#getName <em>Name</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridColumn#getName()\n\t * @see #getTestGridColumn()\n\t * @generated\n\t */\n\tEAttribute getTestGridColumn_Name();\n\n\t/**\n\t * Returns the meta object for the reference list '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridColumn#getCells <em>Cells</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference list '<em>Cells</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridColumn#getCells()\n\t * @see #getTestGridColumn()\n\t * @generated\n\t */\n\tEReference getTestGridColumn_Cells();\n\n\t/**\n\t * Returns the meta object for class '{@link com.rcpcompany.uibinding.tests.model.TestGridRow\n\t * <em>Test Grid Row</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Test Grid Row</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridRow\n\t * @generated\n\t */\n\tEClass getTestGridRow();\n\n\t/**\n\t * Returns the meta object for the reference '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridRow#getGrid <em>Grid</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference '<em>Grid</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridRow#getGrid()\n\t * @see #getTestGridRow()\n\t * @generated\n\t */\n\tEReference getTestGridRow_Grid();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridRow#getNumber <em>Number</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Number</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridRow#getNumber()\n\t * @see #getTestGridRow()\n\t * @generated\n\t */\n\tEAttribute getTestGridRow_Number();\n\n\t/**\n\t * Returns the meta object for the reference list '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridRow#getCells <em>Cells</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference list '<em>Cells</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridRow#getCells()\n\t * @see #getTestGridRow()\n\t * @generated\n\t */\n\tEReference getTestGridRow_Cells();\n\n\t/**\n\t * Returns the meta object for class '{@link com.rcpcompany.uibinding.tests.model.TestGridCell\n\t * <em>Test Grid Cell</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for class '<em>Test Grid Cell</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridCell\n\t * @generated\n\t */\n\tEClass getTestGridCell();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridCell#getDetails <em>Details</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Details</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridCell#getDetails()\n\t * @see #getTestGridCell()\n\t * @generated\n\t */\n\tEAttribute getTestGridCell_Details();\n\n\t/**\n\t * Returns the meta object for the attribute '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridCell#getPrice <em>Price</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the attribute '<em>Price</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridCell#getPrice()\n\t * @see #getTestGridCell()\n\t * @generated\n\t */\n\tEAttribute getTestGridCell_Price();\n\n\t/**\n\t * Returns the meta object for the reference '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridCell#getColumn <em>Column</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference '<em>Column</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridCell#getColumn()\n\t * @see #getTestGridCell()\n\t * @generated\n\t */\n\tEReference getTestGridCell_Column();\n\n\t/**\n\t * Returns the meta object for the reference '\n\t * {@link com.rcpcompany.uibinding.tests.model.TestGridCell#getRow <em>Row</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for the reference '<em>Row</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TestGridCell#getRow()\n\t * @see #getTestGridCell()\n\t * @generated\n\t */\n\tEReference getTestGridCell_Row();\n\n\t/**\n\t * Returns the meta object for enum '{@link com.rcpcompany.uibinding.tests.model.WeightUnit\n\t * <em>Weight Unit</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for enum '<em>Weight Unit</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.WeightUnit\n\t * @generated\n\t */\n\tEEnum getWeightUnit();\n\n\t/**\n\t * Returns the meta object for enum '{@link com.rcpcompany.uibinding.tests.model.TimeUnit\n\t * <em>Time Unit</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for enum '<em>Time Unit</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.TimeUnit\n\t * @generated\n\t */\n\tEEnum getTimeUnit();\n\n\t/**\n\t * Returns the meta object for data type '{@link java.util.Date <em>EDate</em>}'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for data type '<em>EDate</em>'.\n\t * @see java.util.Date\n\t * @generated\n\t */\n\tEDataType getEDate();\n\n\t/**\n\t * Returns the meta object for data type '{@link java.math.BigDecimal <em>EBig Decimal</em>}'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for data type '<em>EBig Decimal</em>'.\n\t * @see java.math.BigDecimal\n\t * @generated\n\t */\n\tEDataType getEBigDecimal();\n\n\t/**\n\t * Returns the meta object for data type '{@link java.math.BigInteger <em>EBig Integer</em>}'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for data type '<em>EBig Integer</em>'.\n\t * @see java.math.BigInteger\n\t * @generated\n\t */\n\tEDataType getEBigInteger();\n\n\t/**\n\t * Returns the meta object for data type '\n\t * {@link com.rcpcompany.uibinding.tests.model.AmountAndCurrencyOld\n\t * <em>Amount And Currency Struct</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the meta object for data type '<em>Amount And Currency Struct</em>'.\n\t * @see com.rcpcompany.uibinding.tests.model.AmountAndCurrencyOld\n\t * @generated\n\t */\n\tEDataType getAmountAndCurrencyStruct();\n\n\t/**\n\t * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tTestModelFactory getTestModelFactory();\n\n\t/**\n\t * <!-- begin-user-doc --> Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestObjectImpl <em>Test Object</em>}\n\t\t * ' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestObjectImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestObject()\n\t\t * @generated\n\t\t */\n\t\tEClass TEST_OBJECT = eINSTANCE.getTestObject();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Number</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__NUMBER = eINSTANCE.getTestObject_Number();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>D</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__D = eINSTANCE.getTestObject_D();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>F</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__F = eINSTANCE.getTestObject_F();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Date</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__DATE = eINSTANCE.getTestObject_Date();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Text</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__TEXT = eINSTANCE.getTestObject_Text();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Parent</b></em>' reference feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_OBJECT__PARENT = eINSTANCE.getTestObject_Parent();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>B</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__B = eINSTANCE.getTestObject_B();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ac</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__AC = eINSTANCE.getTestObject_Ac();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Unit</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__UNIT = eINSTANCE.getTestObject_Unit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Time Unit</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__TIME_UNIT = eINSTANCE.getTestObject_TimeUnit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Byte</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__BYTE = eINSTANCE.getTestObject_Byte();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Short</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__SHORT = eINSTANCE.getTestObject_Short();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Long</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__LONG = eINSTANCE.getTestObject_Long();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Big Decimal</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__BIG_DECIMAL = eINSTANCE.getTestObject_BigDecimal();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Big Integer</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_OBJECT__BIG_INTEGER = eINSTANCE.getTestObject_BigInteger();\n\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.SubTestObjectImpl\n\t\t * <em>Sub Test Object</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.SubTestObjectImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getSubTestObject()\n\t\t * @generated\n\t\t */\n\t\tEClass SUB_TEST_OBJECT = eINSTANCE.getSubTestObject();\n\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestContainerImpl\n\t\t * <em>Test Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestContainerImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestContainer()\n\t\t * @generated\n\t\t */\n\t\tEClass TEST_CONTAINER = eINSTANCE.getTestContainer();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Children</b></em>' reference list feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_CONTAINER__CHILDREN = eINSTANCE.getTestContainer_Children();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Current</b></em>' reference feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_CONTAINER__CURRENT = eINSTANCE.getTestContainer_Current();\n\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.AmountAndCurrencyImpl\n\t\t * <em>Amount And Currency</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.AmountAndCurrencyImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getAmountAndCurrency()\n\t\t * @generated\n\t\t */\n\t\tEClass AMOUNT_AND_CURRENCY = eINSTANCE.getAmountAndCurrency();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Amount</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute AMOUNT_AND_CURRENCY__AMOUNT = eINSTANCE.getAmountAndCurrency_Amount();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Currency</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute AMOUNT_AND_CURRENCY__CURRENCY = eINSTANCE.getAmountAndCurrency_Currency();\n\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridImpl <em>Test Grid</em>}'\n\t\t * class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGrid()\n\t\t * @generated\n\t\t */\n\t\tEClass TEST_GRID = eINSTANCE.getTestGrid();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Columns</b></em>' reference list feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID__COLUMNS = eINSTANCE.getTestGrid_Columns();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rows</b></em>' reference list feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID__ROWS = eINSTANCE.getTestGrid_Rows();\n\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridColumnImpl\n\t\t * <em>Test Grid Column</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridColumnImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGridColumn()\n\t\t * @generated\n\t\t */\n\t\tEClass TEST_GRID_COLUMN = eINSTANCE.getTestGridColumn();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Grid</b></em>' reference feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID_COLUMN__GRID = eINSTANCE.getTestGridColumn_Grid();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_GRID_COLUMN__NAME = eINSTANCE.getTestGridColumn_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Cells</b></em>' reference list feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID_COLUMN__CELLS = eINSTANCE.getTestGridColumn_Cells();\n\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridRowImpl\n\t\t * <em>Test Grid Row</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridRowImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGridRow()\n\t\t * @generated\n\t\t */\n\t\tEClass TEST_GRID_ROW = eINSTANCE.getTestGridRow();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Grid</b></em>' reference feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID_ROW__GRID = eINSTANCE.getTestGridRow_Grid();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Number</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_GRID_ROW__NUMBER = eINSTANCE.getTestGridRow_Number();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Cells</b></em>' reference list feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID_ROW__CELLS = eINSTANCE.getTestGridRow_Cells();\n\n\t\t/**\n\t\t * The meta object literal for the '\n\t\t * {@link com.rcpcompany.uibinding.tests.model.internal.TestGridCellImpl\n\t\t * <em>Test Grid Cell</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestGridCellImpl\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTestGridCell()\n\t\t * @generated\n\t\t */\n\t\tEClass TEST_GRID_CELL = eINSTANCE.getTestGridCell();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Details</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_GRID_CELL__DETAILS = eINSTANCE.getTestGridCell_Details();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Price</b></em>' attribute feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEAttribute TEST_GRID_CELL__PRICE = eINSTANCE.getTestGridCell_Price();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Column</b></em>' reference feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID_CELL__COLUMN = eINSTANCE.getTestGridCell_Column();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Row</b></em>' reference feature. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @generated\n\t\t */\n\t\tEReference TEST_GRID_CELL__ROW = eINSTANCE.getTestGridCell_Row();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link com.rcpcompany.uibinding.tests.model.WeightUnit\n\t\t * <em>Weight Unit</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.WeightUnit\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getWeightUnit()\n\t\t * @generated\n\t\t */\n\t\tEEnum WEIGHT_UNIT = eINSTANCE.getWeightUnit();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link com.rcpcompany.uibinding.tests.model.TimeUnit\n\t\t * <em>Time Unit</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.TimeUnit\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getTimeUnit()\n\t\t * @generated\n\t\t */\n\t\tEEnum TIME_UNIT = eINSTANCE.getTimeUnit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>EDate</em>' data type. <!-- begin-user-doc --> <!--\n\t\t * end-user-doc -->\n\t\t * \n\t\t * @see java.util.Date\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getEDate()\n\t\t * @generated\n\t\t */\n\t\tEDataType EDATE = eINSTANCE.getEDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>EBig Decimal</em>' data type. <!-- begin-user-doc\n\t\t * --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see java.math.BigDecimal\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getEBigDecimal()\n\t\t * @generated\n\t\t */\n\t\tEDataType EBIG_DECIMAL = eINSTANCE.getEBigDecimal();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>EBig Integer</em>' data type. <!-- begin-user-doc\n\t\t * --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see java.math.BigInteger\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getEBigInteger()\n\t\t * @generated\n\t\t */\n\t\tEDataType EBIG_INTEGER = eINSTANCE.getEBigInteger();\n\n\t\t/**\n\t\t * The meta object literal for the '<em>Amount And Currency Struct</em>' data type. <!--\n\t\t * begin-user-doc --> <!-- end-user-doc -->\n\t\t * \n\t\t * @see com.rcpcompany.uibinding.tests.model.AmountAndCurrencyOld\n\t\t * @see com.rcpcompany.uibinding.tests.model.internal.TestModelPackageImpl#getAmountAndCurrencyStruct()\n\t\t * @generated\n\t\t */\n\t\tEDataType AMOUNT_AND_CURRENCY_STRUCT = eINSTANCE.getAmountAndCurrencyStruct();\n\n\t}\n\n}", "public static Repository readRepository(final String model_fn, final ResourceSet resourceSet) throws IOException {\n\t\treturn (Repository) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.repository.RepositoryPackage.eINSTANCE, model_fn, resourceSet);\n\t}", "EnvironmentLoader getEnvironmentLoader();", "public interface VmFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tVmFactory eINSTANCE = fr.inria.sed.logo.vm.model.vm.impl.VmFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Interpreter Runtime Context</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Interpreter Runtime Context</em>'.\n\t * @generated\n\t */\n\tInterpreterRuntimeContext createInterpreterRuntimeContext();\n\n\t/**\n\t * Returns a new object of class '<em>Turtle</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Turtle</em>'.\n\t * @generated\n\t */\n\tTurtle createTurtle();\n\n\t/**\n\t * Returns a new object of class '<em>Point</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Point</em>'.\n\t * @generated\n\t */\n\tPoint createPoint();\n\n\t/**\n\t * Returns a new object of class '<em>Segment</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Segment</em>'.\n\t * @generated\n\t */\n\tSegment createSegment();\n\n\t/**\n\t * Returns a new object of class '<em>Param Map Entry</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Param Map Entry</em>'.\n\t * @generated\n\t */\n\tParamMapEntry createParamMapEntry();\n\n\t/**\n\t * Returns a new object of class '<em>Param Map</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Param Map</em>'.\n\t * @generated\n\t */\n\tParamMap createParamMap();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tVmPackage getVmPackage();\n\n}", "public interface RapidmlFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tRapidmlFactory eINSTANCE = com.reprezen.rapidml.impl.RapidmlFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Method</em>'. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Method</em>'.\n\t * @generated\n\t */\n\tMethod createMethod();\n\n\t/**\n\t * Returns a new object of class '<em>REST Element</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>REST Element</em>'.\n\t * @generated\n\t */\n\tRESTElement createRESTElement();\n\n\t/**\n\t * Returns a new object of class '<em>Documentation</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Documentation</em>'.\n\t * @generated\n\t */\n\tDocumentation createDocumentation();\n\n\t/**\n\t * Returns a new object of class '<em>Documentable</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Documentable</em>'.\n\t * @generated\n\t */\n\tDocumentable createDocumentable();\n\n\t/**\n\t * Returns a new object of class '<em>Media Type</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Media Type</em>'.\n\t * @generated\n\t */\n\tMediaType createMediaType();\n\n\t/**\n\t * Returns a new object of class '<em>Typed Request</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Typed Request</em>'.\n\t * @generated\n\t */\n\tTypedRequest createTypedRequest();\n\n\t/**\n\t * Returns a new object of class '<em>Typed Response</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Typed Response</em>'.\n\t * @generated\n\t */\n\tTypedResponse createTypedResponse();\n\n\t/**\n\t * Returns a new object of class '<em>Matrix Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Matrix Parameter</em>'.\n\t * @generated\n\t */\n\tMatrixParameter createMatrixParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Template Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Template Parameter</em>'.\n\t * @generated\n\t */\n\tTemplateParameter createTemplateParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Resource</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Collection Resource</em>'.\n\t * @generated\n\t */\n\tCollectionResource createCollectionResource();\n\n\t/**\n\t * Returns a new object of class '<em>Object Resource</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Object Resource</em>'.\n\t * @generated\n\t */\n\tObjectResource createObjectResource();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Collection Parameter</em>'.\n\t * @generated\n\t */\n\tCollectionParameter createCollectionParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Property Reference</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Property Reference</em>'.\n\t * @generated\n\t */\n\tPropertyReference createPropertyReference();\n\n\t/**\n\t * Returns a new object of class '<em>Message Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Message Parameter</em>'.\n\t * @generated\n\t */\n\tMessageParameter createMessageParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Zen Model</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Zen Model</em>'.\n\t * @generated\n\t */\n\tZenModel createZenModel();\n\n\t/**\n\t * Returns a new object of class '<em>Resource API</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Resource API</em>'.\n\t * @generated\n\t */\n\tResourceAPI createResourceAPI();\n\n\t/**\n\t * Returns a new object of class '<em>Service Data Resource</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Service Data Resource</em>'.\n\t * @generated\n\t */\n\tServiceDataResource createServiceDataResource();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Treatment</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Treatment</em>'.\n\t * @generated\n\t */\n\tReferenceTreatment createReferenceTreatment();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Realization</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Realization</em>'.\n\t * @generated\n\t */\n\tReferenceRealization createReferenceRealization();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Link</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Link</em>'.\n\t * @generated\n\t */\n\tReferenceLink createReferenceLink();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Embed</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Embed</em>'.\n\t * @generated\n\t */\n\tReferenceEmbed createReferenceEmbed();\n\n\t/**\n\t * Returns a new object of class '<em>Named Link Descriptor</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Named Link Descriptor</em>'.\n\t * @generated\n\t */\n\tNamedLinkDescriptor createNamedLinkDescriptor();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Type Source Reference</em>'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Type Source Reference</em>'.\n\t * @generated\n\t */\n\tPrimitiveTypeSourceReference createPrimitiveTypeSourceReference();\n\n\t/**\n\t * Returns a new object of class '<em>URI</em>'. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @return a new object of class '<em>URI</em>'.\n\t * @generated\n\t */\n\tURI createURI();\n\n\t/**\n\t * Returns a new object of class '<em>URI Segment</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>URI Segment</em>'.\n\t * @generated\n\t */\n\tURISegment createURISegment();\n\n\t/**\n\t * Returns a new object of class '<em>URI Segment With Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>URI Segment With Parameter</em>'.\n\t * @generated\n\t */\n\tURISegmentWithParameter createURISegmentWithParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Property Realization</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Property Realization</em>'.\n\t * @generated\n\t */\n\tPropertyRealization createPropertyRealization();\n\n\t/**\n\t * Returns a new object of class '<em>Link Relation</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Link Relation</em>'.\n\t * @generated\n\t */\n\tLinkRelation createLinkRelation();\n\n\t/**\n\t * Returns a new object of class '<em>Inline Example</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Inline Example</em>'.\n\t * @generated\n\t */\n\tInlineExample createInlineExample();\n\n\t/**\n\t * Returns a new object of class '<em>External Example</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>External Example</em>'.\n\t * @generated\n\t */\n\tExternalExample createExternalExample();\n\n\t/**\n\t * Returns a new object of class '<em>Import Declaration</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Import Declaration</em>'.\n\t * @generated\n\t */\n\tImportDeclaration createImportDeclaration();\n\n\t/**\n\t * Returns a new object of class '<em>Object Realization</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Object Realization</em>'.\n\t * @generated\n\t */\n\tObjectRealization createObjectRealization();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Reference Element</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Collection Reference Element</em>'.\n\t * @generated\n\t */\n\tCollectionReferenceElement createCollectionReferenceElement();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scheme</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scheme</em>'.\n\t * @generated\n\t */\n\tSecurityScheme createSecurityScheme();\n\n\t/**\n\t * Returns a new object of class '<em>Authentication Method</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Authentication Method</em>'.\n\t * @generated\n\t */\n\tAuthenticationMethod createAuthenticationMethod();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scope</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scope</em>'.\n\t * @generated\n\t */\n\tSecurityScope createSecurityScope();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scheme Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scheme Parameter</em>'.\n\t * @generated\n\t */\n\tSecuritySchemeParameter createSecuritySchemeParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scheme Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scheme Library</em>'.\n\t * @generated\n\t */\n\tSecuritySchemeLibrary createSecuritySchemeLibrary();\n\n\t/**\n\t * Returns a new object of class '<em>Extension</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Extension</em>'.\n\t * @generated\n\t */\n\tExtension createExtension();\n\n\t/**\n\t * Returns a new object of class '<em>Realization Model Location</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Realization Model Location</em>'.\n\t * @generated\n\t */\n\tRealizationModelLocation createRealizationModelLocation();\n\n\t/**\n\t * Returns a new object of class '<em>Operation</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Operation</em>'.\n\t * @generated\n\t */\n\tOperation createOperation();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Property</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Property</em>'.\n\t * @generated\n\t */\n\tReferenceProperty createReferenceProperty();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Property</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Property</em>'.\n\t * @generated\n\t */\n\tPrimitiveProperty createPrimitiveProperty();\n\n\t/**\n\t * Returns a new object of class '<em>Structure</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Structure</em>'.\n\t * @generated\n\t */\n\tStructure createStructure();\n\n\t/**\n\t * Returns a new object of class '<em>Data Model</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Data Model</em>'.\n\t * @generated\n\t */\n\tDataModel createDataModel();\n\n\t/**\n\t * Returns a new object of class '<em>Inline Data Example</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Inline Data Example</em>'.\n\t * @generated\n\t */\n\tInlineDataExample createInlineDataExample();\n\n\t/**\n\t * Returns a new object of class '<em>Enumeration</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Enumeration</em>'.\n\t * @generated\n\t */\n\tEnumeration createEnumeration();\n\n\t/**\n\t * Returns a new object of class '<em>Enum Constant</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Enum Constant</em>'.\n\t * @generated\n\t */\n\tEnumConstant createEnumConstant();\n\n\t/**\n\t * Returns a new object of class '<em>User Defined Type</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>User Defined Type</em>'.\n\t * @generated\n\t */\n\tUserDefinedType createUserDefinedType();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Type</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Type</em>'.\n\t * @generated\n\t */\n\tPrimitiveType createPrimitiveType();\n\n\t/**\n\t * Returns a new object of class '<em>Length Constraint</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Length Constraint</em>'.\n\t * @generated\n\t */\n\tLengthConstraint createLengthConstraint();\n\n\t/**\n\t * Returns a new object of class '<em>Reg Ex Constraint</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reg Ex Constraint</em>'.\n\t * @generated\n\t */\n\tRegExConstraint createRegExConstraint();\n\n\t/**\n\t * Returns a new object of class '<em>Value Range Constraint</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Value Range Constraint</em>'.\n\t * @generated\n\t */\n\tValueRangeConstraint createValueRangeConstraint();\n\n\t/**\n\t * Returns a new object of class '<em>Media Types Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Media Types Library</em>'.\n\t * @generated\n\t */\n\tMediaTypesLibrary createMediaTypesLibrary();\n\n\t/**\n\t * Returns a new object of class '<em>Link Relations Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Link Relations Library</em>'.\n\t * @generated\n\t */\n\tLinkRelationsLibrary createLinkRelationsLibrary();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Types Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Types Library</em>'.\n\t * @generated\n\t */\n\tPrimitiveTypesLibrary createPrimitiveTypesLibrary();\n\n\t/**\n\t * Returns the package supported by this factory. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRapidmlPackage getRapidmlPackage();\n\n}", "SsElementPackage getSsElementPackage();", "public ModelNode readTransformedModel(ModelVersion modelVersion) {\n getLegacyServices(modelVersion);//Checks we are the main controller\n ModelNode op = new ModelNode();\n op.get(OP).set(READ_TRANSFORMED_RESOURCE_OPERATION);\n op.get(OP_ADDR).set(PathAddress.EMPTY_ADDRESS.toModelNode());\n op.get(RECURSIVE).set(true);\n op.get(SUBSYSTEM).set(mainSubsystemName);\n ModelNode result = internalExecute(op, new ReadTransformedResourceOperation(getTransformersRegistry(), getCoreModelVersionByLegacyModelVersion(modelVersion), modelVersion));\n return ModelTestUtils.checkResultAndGetContents(result);\n }", "public abstract IResource getResource();", "public RcfAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = RcfPackage.eINSTANCE;\n\t\t}\n\t}", "public java.lang.String getCar_model() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"car_model\")));\n }", "@Test\n public void readFile() throws IOException {\n ModelInfo modelInfo = ModelReader.create().load();\n\n }", "public AdwithoutruntimeSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = AdwithoutruntimePackage.eINSTANCE;\n\t\t}\n\t}", "private Object readResolve() {\n return getApplication(name);\n }", "SystemParamModel createSystemParamModel();", "NCModel getModel();", "public ValidationModel getValidationModel() {\n \n Logger logger = Logger.getLogger(AvdSupport.class.getName());\n \n\n logger.log(Level.SEVERE, \"Creatig valiation model\");\n logger.log(Level.SEVERE, \"Reading file: \");\n FileObject fo = avdDataObject.getPrimaryFile();\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(fo.getInputStream()));\n \n String line = null;\n while ((line = br.readLine()) != null) {\n logger.log(Level.SEVERE, \"line: {0}\", line);\n }\n \n } catch (FileNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n \n // TODO: implement\n // throw new UnsupportedOperationException(\"Not supported yet.\");\n \n \n \n return null;\n }", "public static EPackage loadLanguageModelFromRegistry(URI nsuri) {\n\t\t//TODO simply delegate to loadLanguageModel(nsuri,nsuri)?\n\t\tEPackage ePackage = EPackage.Registry.INSTANCE.getEPackage(nsuri.toString());\n\t\treturn ePackage;\t\t \n\t}", "public abstract M getModel();", "protected Resource newResource()\n\t{\n\t\tPackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(),\n\t\t\tgetStyle());\n\t\tif (packageResource != null)\n\t\t{\n\t\t\tlocale = packageResource.getLocale();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"package resource [scope=\" + getScope() + \",name=\" +\n\t\t\t\tgetName() + \",locale=\" + getLocale() + \"style=\" + getStyle() + \"] not found\");\n\t\t}\n\t\treturn packageResource;\n\t}", "public RepomodelSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = RepomodelPackage.eINSTANCE;\n\t\t}\n\t}", "@Override\n public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {\n Object result = null;\n reader.moveDown();\n // Get attributes and parameters\n String projectName = reader.getAttribute(\"project\");\n String type = reader.getAttribute(\"type\");\n String literal = reader.getAttribute(\"enum\");\n List<ModelInfo<Project>> list1 = VarModel.INSTANCE.availableModels().getModelInfo(projectName);\n ModelInfo<Project> model = list1.get(0);\n try {\n VarModel.INSTANCE.load(model);\n Project project = model.getResolved();\n String name = type + \".\" + literal;\n if (project != null) {\n try {\n Value eVal = ModelQuery.enumLiteralAsValue(project, name);\n if (eVal instanceof net.ssehub.easy.varModel.model.values.EnumValue) {\n result = new EnumValue((net.ssehub.easy.varModel.model.values.EnumValue) eVal);\n }\n } catch (ModelQueryException e) {\n logger.exception(e);\n } catch (IvmlException e) {\n logger.exception(e);\n }\n } else {\n logger.warn(\"Enum \" + name + \" not found! Project \" + projectName + \" was null\");\n }\n } catch (ModelManagementException e1) {\n logger.exception(e1);\n }\n reader.moveUp();\n return result;\n }", "DppBaseResourceInner innerModel();", "public interface ParameterDefinitionPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"parameterDefinition\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.ecore.org/service/ParameterDefinition\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"ParameterDefinition\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tParameterDefinitionPackage eINSTANCE = org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl\n\t\t\t.init();\n\n\t/**\n\t * The meta object id for the '{@link org.ecore.service.parameterDefinition.impl.ParamDefModelImpl <em>Param Def Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.ecore.service.parameterDefinition.impl.ParamDefModelImpl\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParamDefModel()\n\t * @generated\n\t */\n\tint PARAM_DEF_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Repository</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAM_DEF_MODEL__REPOSITORY = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Imports</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAM_DEF_MODEL__IMPORTS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Param Def Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAM_DEF_MODEL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The meta object id for the '{@link org.ecore.service.parameterDefinition.impl.ParameterSetRepositoryImpl <em>Parameter Set Repository</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterSetRepositoryImpl\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParameterSetRepository()\n\t * @generated\n\t */\n\tint PARAMETER_SET_REPOSITORY = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Documentation</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_REPOSITORY__DOCUMENTATION = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT__DOCUMENTATION;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_REPOSITORY__NAME = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Sets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_REPOSITORY__SETS = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Parameter Set Repository</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_REPOSITORY_FEATURE_COUNT = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The meta object id for the '{@link org.ecore.service.parameterDefinition.impl.ParameterSetDefinitionImpl <em>Parameter Set Definition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterSetDefinitionImpl\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParameterSetDefinition()\n\t * @generated\n\t */\n\tint PARAMETER_SET_DEFINITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Documentation</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_DEFINITION__DOCUMENTATION = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT__DOCUMENTATION;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_DEFINITION__NAME = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Parameters</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_DEFINITION__PARAMETERS = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Extends</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_DEFINITION__EXTENDS = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of structural features of the '<em>Parameter Set Definition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_SET_DEFINITION_FEATURE_COUNT = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The meta object id for the '{@link org.ecore.service.parameterDefinition.impl.AbstractParameterImpl <em>Abstract Parameter</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.ecore.service.parameterDefinition.impl.AbstractParameterImpl\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getAbstractParameter()\n\t * @generated\n\t */\n\tint ABSTRACT_PARAMETER = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Documentation</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_PARAMETER__DOCUMENTATION = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT__DOCUMENTATION;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_PARAMETER__NAME = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_PARAMETER__ATTRIBUTES = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract Parameter</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_PARAMETER_FEATURE_COUNT = DocumentationPackage.ABSTRACT_DOCUMENTED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The meta object id for the '{@link org.ecore.service.parameterDefinition.impl.ParameterDefinitionImpl <em>Parameter Definition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionImpl\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParameterDefinition()\n\t * @generated\n\t */\n\tint PARAMETER_DEFINITION = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Documentation</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_DEFINITION__DOCUMENTATION = ABSTRACT_PARAMETER__DOCUMENTATION;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_DEFINITION__NAME = ABSTRACT_PARAMETER__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_DEFINITION__ATTRIBUTES = ABSTRACT_PARAMETER__ATTRIBUTES;\n\n\t/**\n\t * The number of structural features of the '<em>Parameter Definition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAMETER_DEFINITION_FEATURE_COUNT = ABSTRACT_PARAMETER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.ecore.service.parameterDefinition.impl.TriggerDefinitionImpl <em>Trigger Definition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.ecore.service.parameterDefinition.impl.TriggerDefinitionImpl\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getTriggerDefinition()\n\t * @generated\n\t */\n\tint TRIGGER_DEFINITION = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Documentation</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRIGGER_DEFINITION__DOCUMENTATION = ABSTRACT_PARAMETER__DOCUMENTATION;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRIGGER_DEFINITION__NAME = ABSTRACT_PARAMETER__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRIGGER_DEFINITION__ATTRIBUTES = ABSTRACT_PARAMETER__ATTRIBUTES;\n\n\t/**\n\t * The number of structural features of the '<em>Trigger Definition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRIGGER_DEFINITION_FEATURE_COUNT = ABSTRACT_PARAMETER_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.ecore.service.parameterDefinition.impl.ParamDefRepoImportImpl <em>Param Def Repo Import</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.ecore.service.parameterDefinition.impl.ParamDefRepoImportImpl\n\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParamDefRepoImport()\n\t * @generated\n\t */\n\tint PARAM_DEF_REPO_IMPORT = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Imported Namespace</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAM_DEF_REPO_IMPORT__IMPORTED_NAMESPACE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Param Def Repo Import</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PARAM_DEF_REPO_IMPORT_FEATURE_COUNT = 1;\n\n\t/**\n\t * Returns the meta object for class '{@link org.ecore.service.parameterDefinition.ParamDefModel <em>Param Def Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Param Def Model</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParamDefModel\n\t * @generated\n\t */\n\tEClass getParamDefModel();\n\n\t/**\n\t * Returns the meta object for the containment reference '{@link org.ecore.service.parameterDefinition.ParamDefModel#getRepository <em>Repository</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference '<em>Repository</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParamDefModel#getRepository()\n\t * @see #getParamDefModel()\n\t * @generated\n\t */\n\tEReference getParamDefModel_Repository();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.ecore.service.parameterDefinition.ParamDefModel#getImports <em>Imports</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Imports</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParamDefModel#getImports()\n\t * @see #getParamDefModel()\n\t * @generated\n\t */\n\tEReference getParamDefModel_Imports();\n\n\t/**\n\t * Returns the meta object for class '{@link org.ecore.service.parameterDefinition.ParameterSetRepository <em>Parameter Set Repository</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Parameter Set Repository</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterSetRepository\n\t * @generated\n\t */\n\tEClass getParameterSetRepository();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.ecore.service.parameterDefinition.ParameterSetRepository#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterSetRepository#getName()\n\t * @see #getParameterSetRepository()\n\t * @generated\n\t */\n\tEAttribute getParameterSetRepository_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.ecore.service.parameterDefinition.ParameterSetRepository#getSets <em>Sets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Sets</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterSetRepository#getSets()\n\t * @see #getParameterSetRepository()\n\t * @generated\n\t */\n\tEReference getParameterSetRepository_Sets();\n\n\t/**\n\t * Returns the meta object for class '{@link org.ecore.service.parameterDefinition.ParameterSetDefinition <em>Parameter Set Definition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Parameter Set Definition</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterSetDefinition\n\t * @generated\n\t */\n\tEClass getParameterSetDefinition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.ecore.service.parameterDefinition.ParameterSetDefinition#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterSetDefinition#getName()\n\t * @see #getParameterSetDefinition()\n\t * @generated\n\t */\n\tEAttribute getParameterSetDefinition_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.ecore.service.parameterDefinition.ParameterSetDefinition#getParameters <em>Parameters</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Parameters</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterSetDefinition#getParameters()\n\t * @see #getParameterSetDefinition()\n\t * @generated\n\t */\n\tEReference getParameterSetDefinition_Parameters();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.ecore.service.parameterDefinition.ParameterSetDefinition#getExtends <em>Extends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Extends</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterSetDefinition#getExtends()\n\t * @see #getParameterSetDefinition()\n\t * @generated\n\t */\n\tEReference getParameterSetDefinition_Extends();\n\n\t/**\n\t * Returns the meta object for class '{@link org.ecore.service.parameterDefinition.AbstractParameter <em>Abstract Parameter</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract Parameter</em>'.\n\t * @see org.ecore.service.parameterDefinition.AbstractParameter\n\t * @generated\n\t */\n\tEClass getAbstractParameter();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.ecore.service.parameterDefinition.AbstractParameter#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see org.ecore.service.parameterDefinition.AbstractParameter#getName()\n\t * @see #getAbstractParameter()\n\t * @generated\n\t */\n\tEAttribute getAbstractParameter_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.ecore.service.parameterDefinition.AbstractParameter#getAttributes <em>Attributes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Attributes</em>'.\n\t * @see org.ecore.service.parameterDefinition.AbstractParameter#getAttributes()\n\t * @see #getAbstractParameter()\n\t * @generated\n\t */\n\tEReference getAbstractParameter_Attributes();\n\n\t/**\n\t * Returns the meta object for class '{@link org.ecore.service.parameterDefinition.ParameterDefinition <em>Parameter Definition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Parameter Definition</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParameterDefinition\n\t * @generated\n\t */\n\tEClass getParameterDefinition();\n\n\t/**\n\t * Returns the meta object for class '{@link org.ecore.service.parameterDefinition.TriggerDefinition <em>Trigger Definition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Trigger Definition</em>'.\n\t * @see org.ecore.service.parameterDefinition.TriggerDefinition\n\t * @generated\n\t */\n\tEClass getTriggerDefinition();\n\n\t/**\n\t * Returns the meta object for class '{@link org.ecore.service.parameterDefinition.ParamDefRepoImport <em>Param Def Repo Import</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Param Def Repo Import</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParamDefRepoImport\n\t * @generated\n\t */\n\tEClass getParamDefRepoImport();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.ecore.service.parameterDefinition.ParamDefRepoImport#getImportedNamespace <em>Imported Namespace</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Imported Namespace</em>'.\n\t * @see org.ecore.service.parameterDefinition.ParamDefRepoImport#getImportedNamespace()\n\t * @see #getParamDefRepoImport()\n\t * @generated\n\t */\n\tEAttribute getParamDefRepoImport_ImportedNamespace();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tParameterDefinitionFactory getParameterDefinitionFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.ecore.service.parameterDefinition.impl.ParamDefModelImpl <em>Param Def Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParamDefModelImpl\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParamDefModel()\n\t\t * @generated\n\t\t */\n\t\tEClass PARAM_DEF_MODEL = eINSTANCE.getParamDefModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Repository</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PARAM_DEF_MODEL__REPOSITORY = eINSTANCE.getParamDefModel_Repository();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PARAM_DEF_MODEL__IMPORTS = eINSTANCE.getParamDefModel_Imports();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.ecore.service.parameterDefinition.impl.ParameterSetRepositoryImpl <em>Parameter Set Repository</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterSetRepositoryImpl\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParameterSetRepository()\n\t\t * @generated\n\t\t */\n\t\tEClass PARAMETER_SET_REPOSITORY = eINSTANCE.getParameterSetRepository();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PARAMETER_SET_REPOSITORY__NAME = eINSTANCE.getParameterSetRepository_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Sets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PARAMETER_SET_REPOSITORY__SETS = eINSTANCE.getParameterSetRepository_Sets();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.ecore.service.parameterDefinition.impl.ParameterSetDefinitionImpl <em>Parameter Set Definition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterSetDefinitionImpl\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParameterSetDefinition()\n\t\t * @generated\n\t\t */\n\t\tEClass PARAMETER_SET_DEFINITION = eINSTANCE.getParameterSetDefinition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PARAMETER_SET_DEFINITION__NAME = eINSTANCE.getParameterSetDefinition_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PARAMETER_SET_DEFINITION__PARAMETERS = eINSTANCE.getParameterSetDefinition_Parameters();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Extends</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PARAMETER_SET_DEFINITION__EXTENDS = eINSTANCE.getParameterSetDefinition_Extends();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.ecore.service.parameterDefinition.impl.AbstractParameterImpl <em>Abstract Parameter</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.ecore.service.parameterDefinition.impl.AbstractParameterImpl\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getAbstractParameter()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_PARAMETER = eINSTANCE.getAbstractParameter();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ABSTRACT_PARAMETER__NAME = eINSTANCE.getAbstractParameter_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ABSTRACT_PARAMETER__ATTRIBUTES = eINSTANCE.getAbstractParameter_Attributes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.ecore.service.parameterDefinition.impl.ParameterDefinitionImpl <em>Parameter Definition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionImpl\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParameterDefinition()\n\t\t * @generated\n\t\t */\n\t\tEClass PARAMETER_DEFINITION = eINSTANCE.getParameterDefinition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.ecore.service.parameterDefinition.impl.TriggerDefinitionImpl <em>Trigger Definition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.ecore.service.parameterDefinition.impl.TriggerDefinitionImpl\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getTriggerDefinition()\n\t\t * @generated\n\t\t */\n\t\tEClass TRIGGER_DEFINITION = eINSTANCE.getTriggerDefinition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.ecore.service.parameterDefinition.impl.ParamDefRepoImportImpl <em>Param Def Repo Import</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParamDefRepoImportImpl\n\t\t * @see org.ecore.service.parameterDefinition.impl.ParameterDefinitionPackageImpl#getParamDefRepoImport()\n\t\t * @generated\n\t\t */\n\t\tEClass PARAM_DEF_REPO_IMPORT = eINSTANCE.getParamDefRepoImport();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Imported Namespace</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PARAM_DEF_REPO_IMPORT__IMPORTED_NAMESPACE = eINSTANCE.getParamDefRepoImport_ImportedNamespace();\n\n\t}\n\n}", "public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;", "public Object getModel()\n {\n AttributeDescriptor.ComponentType compType = _attrDef.getComponentType();\n return getModel(compType);\n }", "public interface StateMachinePackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"statemachine\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.obeonetwork.org/dsl/statemachine/1.0.0\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"statemachine\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tStateMachinePackage eINSTANCE = org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.NamedElementImpl <em>Named Element</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.NamedElementImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getNamedElement()\n\t * @generated\n\t */\n\tint NAMED_ELEMENT = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__TECHNICALID = EnvironmentPackage.OBEO_DSM_OBJECT__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__METADATAS = EnvironmentPackage.OBEO_DSM_OBJECT__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__DESCRIPTION = EnvironmentPackage.OBEO_DSM_OBJECT__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__KEYWORDS = EnvironmentPackage.OBEO_DSM_OBJECT__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__BEHAVIOURS = EnvironmentPackage.OBEO_DSM_OBJECT__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__BINDING_REGISTRIES = EnvironmentPackage.OBEO_DSM_OBJECT__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__VERSION = EnvironmentPackage.OBEO_DSM_OBJECT__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__CREATED_ON = EnvironmentPackage.OBEO_DSM_OBJECT__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__MODIFIED_ON = EnvironmentPackage.OBEO_DSM_OBJECT__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT__NAME = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Named Element</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NAMED_ELEMENT_FEATURE_COUNT = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.StateMachineDescriptionImpl <em>Description</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachineDescriptionImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getStateMachineDescription()\n\t * @generated\n\t */\n\tint STATE_MACHINE_DESCRIPTION = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__TECHNICALID = NAMED_ELEMENT__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__METADATAS = NAMED_ELEMENT__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__DESCRIPTION = NAMED_ELEMENT__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__KEYWORDS = NAMED_ELEMENT__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__BEHAVIOURS = NAMED_ELEMENT__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__BINDING_REGISTRIES = NAMED_ELEMENT__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__VERSION = NAMED_ELEMENT__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__CREATED_ON = NAMED_ELEMENT__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__MODIFIED_ON = NAMED_ELEMENT__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__NAME = NAMED_ELEMENT__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>States</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__STATES = NAMED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Transitions</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION__TRANSITIONS = NAMED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Description</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_DESCRIPTION_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.StateMachineImpl <em>State Machine</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachineImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getStateMachine()\n\t * @generated\n\t */\n\tint STATE_MACHINE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__TECHNICALID = STATE_MACHINE_DESCRIPTION__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__METADATAS = STATE_MACHINE_DESCRIPTION__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__DESCRIPTION = STATE_MACHINE_DESCRIPTION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__KEYWORDS = STATE_MACHINE_DESCRIPTION__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__BEHAVIOURS = STATE_MACHINE_DESCRIPTION__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__BINDING_REGISTRIES = STATE_MACHINE_DESCRIPTION__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__VERSION = STATE_MACHINE_DESCRIPTION__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__CREATED_ON = STATE_MACHINE_DESCRIPTION__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__MODIFIED_ON = STATE_MACHINE_DESCRIPTION__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__NAME = STATE_MACHINE_DESCRIPTION__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>States</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__STATES = STATE_MACHINE_DESCRIPTION__STATES;\n\n\t/**\n\t * The feature id for the '<em><b>Transitions</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__TRANSITIONS = STATE_MACHINE_DESCRIPTION__TRANSITIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Regions</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE__REGIONS = STATE_MACHINE_DESCRIPTION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>State Machine</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_MACHINE_FEATURE_COUNT = STATE_MACHINE_DESCRIPTION_FEATURE_COUNT + 1;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.AbstractStateImpl <em>Abstract State</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.AbstractStateImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getAbstractState()\n\t * @generated\n\t */\n\tint ABSTRACT_STATE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__TECHNICALID = EnvironmentPackage.OBEO_DSM_OBJECT__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__METADATAS = EnvironmentPackage.OBEO_DSM_OBJECT__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__DESCRIPTION = EnvironmentPackage.OBEO_DSM_OBJECT__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__KEYWORDS = EnvironmentPackage.OBEO_DSM_OBJECT__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__BEHAVIOURS = EnvironmentPackage.OBEO_DSM_OBJECT__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__BINDING_REGISTRIES = EnvironmentPackage.OBEO_DSM_OBJECT__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__VERSION = EnvironmentPackage.OBEO_DSM_OBJECT__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__CREATED_ON = EnvironmentPackage.OBEO_DSM_OBJECT__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__MODIFIED_ON = EnvironmentPackage.OBEO_DSM_OBJECT__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Incoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__INCOMING_TRANSITIONS = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Outcoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE__OUTCOMING_TRANSITIONS = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Abstract State</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint ABSTRACT_STATE_FEATURE_COUNT = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.StateImpl <em>State</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getState()\n\t * @generated\n\t */\n\tint STATE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__TECHNICALID = ABSTRACT_STATE__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__METADATAS = ABSTRACT_STATE__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__DESCRIPTION = ABSTRACT_STATE__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__KEYWORDS = ABSTRACT_STATE__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__BEHAVIOURS = ABSTRACT_STATE__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__BINDING_REGISTRIES = ABSTRACT_STATE__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__VERSION = ABSTRACT_STATE__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__CREATED_ON = ABSTRACT_STATE__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__MODIFIED_ON = ABSTRACT_STATE__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Incoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__INCOMING_TRANSITIONS = ABSTRACT_STATE__INCOMING_TRANSITIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Outcoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__OUTCOMING_TRANSITIONS = ABSTRACT_STATE__OUTCOMING_TRANSITIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE__NAME = ABSTRACT_STATE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>State</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint STATE_FEATURE_COUNT = ABSTRACT_STATE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.RegionImpl <em>Region</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.RegionImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getRegion()\n\t * @generated\n\t */\n\tint REGION = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__TECHNICALID = STATE_MACHINE_DESCRIPTION__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__METADATAS = STATE_MACHINE_DESCRIPTION__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__DESCRIPTION = STATE_MACHINE_DESCRIPTION__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__KEYWORDS = STATE_MACHINE_DESCRIPTION__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__BEHAVIOURS = STATE_MACHINE_DESCRIPTION__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__BINDING_REGISTRIES = STATE_MACHINE_DESCRIPTION__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__VERSION = STATE_MACHINE_DESCRIPTION__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__CREATED_ON = STATE_MACHINE_DESCRIPTION__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__MODIFIED_ON = STATE_MACHINE_DESCRIPTION__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__NAME = STATE_MACHINE_DESCRIPTION__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>States</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__STATES = STATE_MACHINE_DESCRIPTION__STATES;\n\n\t/**\n\t * The feature id for the '<em><b>Transitions</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION__TRANSITIONS = STATE_MACHINE_DESCRIPTION__TRANSITIONS;\n\n\t/**\n\t * The number of structural features of the '<em>Region</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REGION_FEATURE_COUNT = STATE_MACHINE_DESCRIPTION_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.TransitionImpl <em>Transition</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.TransitionImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getTransition()\n\t * @generated\n\t */\n\tint TRANSITION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__TECHNICALID = EnvironmentPackage.OBEO_DSM_OBJECT__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__METADATAS = EnvironmentPackage.OBEO_DSM_OBJECT__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__DESCRIPTION = EnvironmentPackage.OBEO_DSM_OBJECT__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__KEYWORDS = EnvironmentPackage.OBEO_DSM_OBJECT__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__BEHAVIOURS = EnvironmentPackage.OBEO_DSM_OBJECT__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__BINDING_REGISTRIES = EnvironmentPackage.OBEO_DSM_OBJECT__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__VERSION = EnvironmentPackage.OBEO_DSM_OBJECT__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__CREATED_ON = EnvironmentPackage.OBEO_DSM_OBJECT__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__MODIFIED_ON = EnvironmentPackage.OBEO_DSM_OBJECT__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Guard</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__GUARD = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>From</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__FROM = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>To</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION__TO = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of structural features of the '<em>Transition</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint TRANSITION_FEATURE_COUNT = EnvironmentPackage.OBEO_DSM_OBJECT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.InitialStateImpl <em>Initial State</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.InitialStateImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getInitialState()\n\t * @generated\n\t */\n\tint INITIAL_STATE = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__TECHNICALID = ABSTRACT_STATE__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__METADATAS = ABSTRACT_STATE__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__DESCRIPTION = ABSTRACT_STATE__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__KEYWORDS = ABSTRACT_STATE__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__BEHAVIOURS = ABSTRACT_STATE__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__BINDING_REGISTRIES = ABSTRACT_STATE__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__VERSION = ABSTRACT_STATE__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__CREATED_ON = ABSTRACT_STATE__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__MODIFIED_ON = ABSTRACT_STATE__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Incoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__INCOMING_TRANSITIONS = ABSTRACT_STATE__INCOMING_TRANSITIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Outcoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE__OUTCOMING_TRANSITIONS = ABSTRACT_STATE__OUTCOMING_TRANSITIONS;\n\n\t/**\n\t * The number of structural features of the '<em>Initial State</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint INITIAL_STATE_FEATURE_COUNT = ABSTRACT_STATE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.obeonetwork.dsl.statemachine.impl.FinalStateImpl <em>Final State</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.obeonetwork.dsl.statemachine.impl.FinalStateImpl\n\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getFinalState()\n\t * @generated\n\t */\n\tint FINAL_STATE = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Technicalid</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__TECHNICALID = ABSTRACT_STATE__TECHNICALID;\n\n\t/**\n\t * The feature id for the '<em><b>Metadatas</b></em>' containment reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__METADATAS = ABSTRACT_STATE__METADATAS;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__DESCRIPTION = ABSTRACT_STATE__DESCRIPTION;\n\n\t/**\n\t * The feature id for the '<em><b>Keywords</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__KEYWORDS = ABSTRACT_STATE__KEYWORDS;\n\n\t/**\n\t * The feature id for the '<em><b>Behaviours</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__BEHAVIOURS = ABSTRACT_STATE__BEHAVIOURS;\n\n\t/**\n\t * The feature id for the '<em><b>Binding Registries</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__BINDING_REGISTRIES = ABSTRACT_STATE__BINDING_REGISTRIES;\n\n\t/**\n\t * The feature id for the '<em><b>Version</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__VERSION = ABSTRACT_STATE__VERSION;\n\n\t/**\n\t * The feature id for the '<em><b>Created On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__CREATED_ON = ABSTRACT_STATE__CREATED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Modified On</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__MODIFIED_ON = ABSTRACT_STATE__MODIFIED_ON;\n\n\t/**\n\t * The feature id for the '<em><b>Incoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__INCOMING_TRANSITIONS = ABSTRACT_STATE__INCOMING_TRANSITIONS;\n\n\t/**\n\t * The feature id for the '<em><b>Outcoming Transitions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE__OUTCOMING_TRANSITIONS = ABSTRACT_STATE__OUTCOMING_TRANSITIONS;\n\n\t/**\n\t * The number of structural features of the '<em>Final State</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FINAL_STATE_FEATURE_COUNT = ABSTRACT_STATE_FEATURE_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.NamedElement <em>Named Element</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Named Element</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.NamedElement\n\t * @generated\n\t */\n\tEClass getNamedElement();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.statemachine.NamedElement#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.NamedElement#getName()\n\t * @see #getNamedElement()\n\t * @generated\n\t */\n\tEAttribute getNamedElement_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.StateMachine <em>State Machine</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>State Machine</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.StateMachine\n\t * @generated\n\t */\n\tEClass getStateMachine();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.obeonetwork.dsl.statemachine.StateMachine#getRegions <em>Regions</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Regions</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.StateMachine#getRegions()\n\t * @see #getStateMachine()\n\t * @generated\n\t */\n\tEReference getStateMachine_Regions();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.State <em>State</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>State</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.State\n\t * @generated\n\t */\n\tEClass getState();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.StateMachineDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Description</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.StateMachineDescription\n\t * @generated\n\t */\n\tEClass getStateMachineDescription();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.obeonetwork.dsl.statemachine.StateMachineDescription#getStates <em>States</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>States</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.StateMachineDescription#getStates()\n\t * @see #getStateMachineDescription()\n\t * @generated\n\t */\n\tEReference getStateMachineDescription_States();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.obeonetwork.dsl.statemachine.StateMachineDescription#getTransitions <em>Transitions</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Transitions</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.StateMachineDescription#getTransitions()\n\t * @see #getStateMachineDescription()\n\t * @generated\n\t */\n\tEReference getStateMachineDescription_Transitions();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.Region <em>Region</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Region</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.Region\n\t * @generated\n\t */\n\tEClass getRegion();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.AbstractState <em>Abstract State</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Abstract State</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.AbstractState\n\t * @generated\n\t */\n\tEClass getAbstractState();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.statemachine.AbstractState#getIncomingTransitions <em>Incoming Transitions</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Incoming Transitions</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.AbstractState#getIncomingTransitions()\n\t * @see #getAbstractState()\n\t * @generated\n\t */\n\tEReference getAbstractState_IncomingTransitions();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.statemachine.AbstractState#getOutcomingTransitions <em>Outcoming Transitions</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Outcoming Transitions</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.AbstractState#getOutcomingTransitions()\n\t * @see #getAbstractState()\n\t * @generated\n\t */\n\tEReference getAbstractState_OutcomingTransitions();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.Transition <em>Transition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Transition</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.Transition\n\t * @generated\n\t */\n\tEClass getTransition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.statemachine.Transition#getGuard <em>Guard</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Guard</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.Transition#getGuard()\n\t * @see #getTransition()\n\t * @generated\n\t */\n\tEAttribute getTransition_Guard();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.obeonetwork.dsl.statemachine.Transition#getFrom <em>From</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>From</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.Transition#getFrom()\n\t * @see #getTransition()\n\t * @generated\n\t */\n\tEReference getTransition_From();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.obeonetwork.dsl.statemachine.Transition#getTo <em>To</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>To</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.Transition#getTo()\n\t * @see #getTransition()\n\t * @generated\n\t */\n\tEReference getTransition_To();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.InitialState <em>Initial State</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Initial State</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.InitialState\n\t * @generated\n\t */\n\tEClass getInitialState();\n\n\t/**\n\t * Returns the meta object for class '{@link org.obeonetwork.dsl.statemachine.FinalState <em>Final State</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Final State</em>'.\n\t * @see org.obeonetwork.dsl.statemachine.FinalState\n\t * @generated\n\t */\n\tEClass getFinalState();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tStateMachineFactory getStateMachineFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.NamedElementImpl <em>Named Element</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.NamedElementImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getNamedElement()\n\t\t * @generated\n\t\t */\n\t\tEClass NAMED_ELEMENT = eINSTANCE.getNamedElement();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.StateMachineImpl <em>State Machine</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachineImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getStateMachine()\n\t\t * @generated\n\t\t */\n\t\tEClass STATE_MACHINE = eINSTANCE.getStateMachine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Regions</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference STATE_MACHINE__REGIONS = eINSTANCE.getStateMachine_Regions();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.StateImpl <em>State</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getState()\n\t\t * @generated\n\t\t */\n\t\tEClass STATE = eINSTANCE.getState();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.StateMachineDescriptionImpl <em>Description</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachineDescriptionImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getStateMachineDescription()\n\t\t * @generated\n\t\t */\n\t\tEClass STATE_MACHINE_DESCRIPTION = eINSTANCE.getStateMachineDescription();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>States</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference STATE_MACHINE_DESCRIPTION__STATES = eINSTANCE.getStateMachineDescription_States();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Transitions</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference STATE_MACHINE_DESCRIPTION__TRANSITIONS = eINSTANCE.getStateMachineDescription_Transitions();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.RegionImpl <em>Region</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.RegionImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getRegion()\n\t\t * @generated\n\t\t */\n\t\tEClass REGION = eINSTANCE.getRegion();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.AbstractStateImpl <em>Abstract State</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.AbstractStateImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getAbstractState()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_STATE = eINSTANCE.getAbstractState();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Incoming Transitions</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ABSTRACT_STATE__INCOMING_TRANSITIONS = eINSTANCE.getAbstractState_IncomingTransitions();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Outcoming Transitions</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference ABSTRACT_STATE__OUTCOMING_TRANSITIONS = eINSTANCE.getAbstractState_OutcomingTransitions();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.TransitionImpl <em>Transition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.TransitionImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getTransition()\n\t\t * @generated\n\t\t */\n\t\tEClass TRANSITION = eINSTANCE.getTransition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Guard</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute TRANSITION__GUARD = eINSTANCE.getTransition_Guard();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TRANSITION__FROM = eINSTANCE.getTransition_From();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>To</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference TRANSITION__TO = eINSTANCE.getTransition_To();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.InitialStateImpl <em>Initial State</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.InitialStateImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getInitialState()\n\t\t * @generated\n\t\t */\n\t\tEClass INITIAL_STATE = eINSTANCE.getInitialState();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.obeonetwork.dsl.statemachine.impl.FinalStateImpl <em>Final State</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.FinalStateImpl\n\t\t * @see org.obeonetwork.dsl.statemachine.impl.StateMachinePackageImpl#getFinalState()\n\t\t * @generated\n\t\t */\n\t\tEClass FINAL_STATE = eINSTANCE.getFinalState();\n\n\t}\n\n}", "MissionPackage getMissionPackage();", "public Object makeResource();", "public ResourceSet getResourceSet()\n {\n return resourceSet;\n }", "protected E getModel ()\n\t{\n\t\treturn model;\n\t}", "MRentalPackage getRentalPackage();", "public IResource getResource();", "public boolean selectFromAvailableModels() throws Exception{\r\n\t\t\r\n\t\tboolean rB=false;\r\n\t\t\t\r\n\t\tbaseFolder = soappProperties.getBaseModelFolder() ;\r\n\t\t\t\t\t // sth like: \"D:/data/projects/_classifierTesting/bank2/models\"\r\n\t\t\r\n\t\tactiveModel = soappProperties.getActiveModel() ; // sth like \"bank2\" \r\n\t\t// this refers to the name of the project as it is contained in the model file!!\r\n\t\t// on first loading, a catalog of available model will be created for faster access if it does not exists\r\n\t\r\n\t\tif (activeModel.length()>0){ \r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"checking model catalog associated with selected project ...\") ;\r\n\t\t\tcheckCreateLocationCatalog() ;\r\n\t\t} else{\r\n\t\t\t// alternatively, we set the active model to blank here, and provide the package name ;\r\n\t\t\t// whenever the active model name is given (and existing) it will be preferred!\r\n\t\t\t \r\n\t\t\tmodelPackageName = soappProperties.getModelPackageName();\r\n\t\t\tactiveModel = getModelThroughPackage(modelPackageName ) ;\r\n\t\t}\r\n\t\t\r\n\t\t// now reading from the modelcatalog.dat\r\n\t\t\r\n\t\t/*\r\n\t \t_MODELSELECT_LATEST = 1;\r\n\t\t_MODELSELECT_FIRSTFOUND = 2;\r\n\t\t_MODELSELECT_BEST = 4;\r\n\t\t_MODELSELECT_ROBUST = 8;\r\n\t\t_MODELSELECT_VERSION = 16 ;\r\n\t\t */\r\n\t\tModelCatalogItem mcItem= null, mci = null ;\r\n\r\n\t\tif (soappModelCatalog.size()>0){\r\n\t\t\tint m=0;\r\n\t\t\tboolean mciOK=false;\r\n\t\t\t\r\n\t\t\twhile ( (mciOK==false) && (mcItem==null) && (m<soappModelCatalog.size())){\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_FIRSTFOUND){\r\n\t\t\t\t\tmci = soappModelCatalog.getItem(m);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_LATEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getLatestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_BEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getBestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_VERSION){\r\n\t\t\t\t\tmci = soappModelCatalog.getItemByModelname( activeModel, soappProperties.preferredModelVersion ) ;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// checking whether the model contains the required fields mcItem.requiredfields\r\n\t\t\t\tif (modelCheckRequirements(mci) == false ){\r\n\t\t\t\t\tsoappModelCatalog.addToExcludedItems(mci);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmciOK=true;\r\n\t\t\t\t\tmcItem = mci;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm++;\r\n\t\t\t} // ->\r\n\t\t\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmcItem=null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tactiveModel = \"\" ;\r\n\t\tactiveVersion = \"\" ;\r\n\t\t\r\n\t\tif (mcItem!=null){\r\n\t\t\tactiveVersion = mcItem.modelVersion;\r\n\t\t\tactiveModel = mcItem.modelName;\r\n\t\t\trB=true;\r\n\t\t\t\r\n\t\t\tif (activeModel.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\t\t\tif (activeVersion.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\r\n\t\t}else{ // mcItem ?\r\n\t\t\tout.print(2,\"No matching model (by required fields) found in the list (n=\"+soappModelCatalog.size()+\") of available models.\");\r\n\t\t}\r\n\t\treturn rB;\r\n\t}", "AsrtPackage getAsrtPackage();", "Service_Resource createService_Resource();", "protected SystemInputDef getRequestInputModel( OpenAPI api)\n {\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api, getModelOptions());\n return inputDef;\n }", "ec_environment selectByPrimaryKey(Integer id);", "public static Allocation readAllocation(final String model_fn, final ResourceSet resourceSet) throws IOException {\n\t\treturn (Allocation) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.allocation.AllocationPackage.eINSTANCE, model_fn, resourceSet);\n\t}", "public abstract <T extends BaseSlingModel> T getModel();" ]
[ "0.6273956", "0.62112933", "0.6147352", "0.5990482", "0.5907598", "0.56838906", "0.56238496", "0.54927164", "0.54351234", "0.5414856", "0.5380235", "0.53341836", "0.5322164", "0.53158724", "0.5298449", "0.5284964", "0.52114964", "0.51928777", "0.5192846", "0.517484", "0.5058232", "0.5046744", "0.50428987", "0.50274754", "0.50254935", "0.50231135", "0.5002567", "0.5002491", "0.49481228", "0.49387422", "0.49338976", "0.4923228", "0.49167868", "0.49166214", "0.48969918", "0.48827377", "0.48780593", "0.48713753", "0.4870307", "0.48615387", "0.4861061", "0.48508278", "0.48502702", "0.4840003", "0.48366788", "0.48330322", "0.48269212", "0.48239684", "0.48192504", "0.48182684", "0.48126736", "0.4811462", "0.479923", "0.47967076", "0.47949728", "0.47926617", "0.47867045", "0.47853056", "0.47798005", "0.4778837", "0.47711802", "0.4763909", "0.47635993", "0.47629404", "0.47606286", "0.47579765", "0.47500676", "0.4749813", "0.47359118", "0.47317466", "0.47313762", "0.47305658", "0.47270507", "0.4724566", "0.4722705", "0.4721986", "0.47119102", "0.47086388", "0.47027496", "0.47019157", "0.47010684", "0.4699971", "0.46847585", "0.46833217", "0.46778128", "0.46725985", "0.46698985", "0.4666121", "0.46636105", "0.46597752", "0.46568263", "0.46565497", "0.46540082", "0.4647789", "0.46434915", "0.46402514", "0.46349502", "0.463238", "0.46275556", "0.4626306" ]
0.708398
0
Start running the Tor client service.
public synchronized void start() { if(isStarted) { return; } if(isStopped) { throw new IllegalStateException("Cannot restart a TorClient instance. Create a new instance instead."); } logger.info("Starting Orchid (version: "+ Tor.getFullVersion() +")"); verifyUnlimitedStrengthPolicyInstalled(); directoryDownloader.start(directory); circuitManager.startBuildingCircuits(); if(dashboard.isEnabledByProperty()) { dashboard.startListening(); } isStarted = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }", "private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}", "public void start() {\n system = ActorSystem.create(\"http-server\", config);\n\n Settings settings = SettingsExtension.SettingsExtensionProvider.get(system);\n\n vHostHandlers = settings.vHostConfigs()\n .stream()\n .map(vc -> new AkkaTcpHandler(system, vc))\n .collect(Collectors.toList());\n\n vHostHandlers.forEach(VHostHandler::start);\n\n Runtime.getRuntime().addShutdownHook(new Thread(this::terminate));\n }", "public void start() {\n System.err.println(\"Server will listen on \" + server.getAddress());\n server.start();\n }", "public void start(){\n log.debug(\"Starting Host Router\");\n lobbyThread = pool.submit(new Runnable() {\n public void run() {\n waitForClients();\n }\n });\n }", "@Override\n public void start(String name, Ice.Communicator communicator, String[] args)\n {\n mAdapter = communicator.createObjectAdapter(name);\n mAdapter.add( this, communicator.stringToIdentity(\"CorpusServer\"));\n initialize();\n mAdapter.activate();\n }", "public void start() {\n\t\t\n\t\ttry {\n\t\t\tmainSocket = new DatagramSocket(PORT_NUMBER);\n\t\t}\n\t\tcatch(SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t//Lambda expression to shorten the run method\n\t\tThread serverThread = new Thread( () -> {\n\t\t\tlisten();\n\t\t});\n\t\t\n\t\tserverThread.start();\n\t}", "public void start() {\n logger.info(\"LeaderSelector start racing for leadership\");\n leaderElection();\n }", "@Override\n\tpublic void run() \n\t{\n\t\tcommunicator = com.zeroc.Ice.Util.initialize();\n GameServerPrx clientPrx = GameServerPrx.checkedCast(\n communicator.stringToProxy(\"client:default -h 58.167.142.74 -p 10002\")).ice_twoway().ice_secure(false).ice_collocationOptimized(false).ice_compress(true);\n\n if(clientPrx == null)\n {\n //If connection is failed due to server problems\n System.err.println(\"SB Connect: \" + \"Invalid proxy\");\n return;\n }\n System.out.println(\"SB Connect: \" + \"Connected\");\n Server server = new Server();\n server.address = ServerInfo.ADDRESS;\n server.UUID = ServerInfo.UUID;\n server.port = ServerInfo.PORT;\n server.name = ServerInfo.NAME;\n server.players = (short) players;\n\t\tclientPrx.sendServerDetails(server);\n\t\tSystem.out.println(\"SB Connect: \" + \"Data sent\");\n\t}", "public void run() {\n try {\n // accepts the connection request.\n SelectableChannel peerHandle = this._handle.accept();\n if (peerHandle != null) {\n // now, create a service handler object to serve the\n // the client.\n ServiceHandler handler =\n this._factory.createServiceHandler(\n this._reactor,\n peerHandle);\n if (handler != null)\n // give the service handler object a chance to initialize itself.\n handler.open();\n }\n } catch (IOException ex) {\n MDMS.ERROR(ex.getMessage());\n }\n }", "@Override\r\n protected void start() throws StartException {\n\r\n if (!Main.INIT_COMPLETE.isReached()) startServer();\r\n new EDTRunner() {\r\n\r\n @Override\r\n protected void runInEDT() {\r\n initGUI();\r\n }\r\n };\r\n\r\n }", "public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }", "@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\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\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t//绑定服务时会调用onCreate方法,此时启动服务\n\t\tLocalProxy = new SynchronousProxyServer(Parameters.LocalProxyPort);\n\t\tLocalProxy.initial();\n\t\tLocalProxy.start();\n\t\tSystem.out.println(\"LocalProxy run on \" + Parameters.LocalProxyPort);\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\" ThriftServer start ing ....\");\n\t\t\t\ttry { \n\t\t\t\t\tif (!server.isServing()) {\n\t\t\t\t\t\tserver.serve();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (transport != null) {\n\t\t\t\t\t\ttransport.close();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "public void start() {\n threadPoolExecutor.setCorePoolSize(configurations.threadPoolSize());\n new Thread(this::startServer).start();\n }", "public void run() {\n try {\n peerBootstrap = createPeerBootStrap();\n\n peerBootstrap.setOption(\"reuseAddr\", true);\n peerBootstrap.setOption(\"child.keepAlive\", true);\n peerBootstrap.setOption(\"child.tcpNoDelay\", true);\n peerBootstrap.setOption(\"child.sendBufferSize\", Controller.SEND_BUFFER_SIZE);\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public void run() {\n try {\n this.initialize();\n Listener ln = new Listener(localDir, port);\n ln.run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void startup() {\n\t\tstart();\n }", "public void run() {\n running = true;\n System.out.println(\"Server started on port: \" + port);\n manageClients();\n receive();\n startConsole();\n }", "@Override\n public void run() {\n try {\n logger.info(\"Starting\");\n communicator = Util.initialize();\n\n logger.info(\"Initialized\");\n\n ObjectAdapter adapter =\n communicator.createObjectAdapterWithEndpoints(\"Adapter\",\n String.format(\"tcp -h %s -p %d:udp -h %s -p %d\", hostAddress, hostPort, hostAddress, hostPort));\n\n logger.info(\"Adapter created\");\n\n com.zeroc.Ice.Object accountRegistererServant = new AccountRegistererImplementation(clients);\n com.zeroc.Ice.Object standardClientServant = new StandardManagerImplementation(clients);\n com.zeroc.Ice.Object premiumClientServant = new StandardManagerImplementation(clients);\n\n logger.info(\"Servants created\");\n\n adapter.add(accountRegistererServant, new Identity(\"accountRegistererServant\", null));\n adapter.add(standardClientServant, new Identity(\"standardClientServant\", null));\n adapter.add(premiumClientServant, new Identity(\"premiumClientServant\", null));\n\n logger.info(\"Servants added\");\n\n adapter.activate();\n\n logger.info(\"Adapter active. Waiting for termination.\");\n\n communicator.waitForShutdown();\n\n logger.info(\"Shutting down\");\n } catch (Exception e) {\n System.err.println(this.getClass().getName() + \" - ERROR: \" + e.getMessage());\n } finally {\n if (communicator != null) {\n try {\n logger.info(\"Destroying communicator\");\n communicator.destroy();\n } catch (Exception ignored) {\n // No need to handle this\n }\n }\n }\n }", "@Override\n public void onCreate() {\n\n Thread proxy = new Thread(new proxyMainLoop());\n proxy.start();\n\n }", "public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\t\tvertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {\n\t\t\t\tpublic void handle(HttpServerRequest req) {\n\t\t\t\t String query_type = req.path();\t\t\n\t\t\t\t req.response().headers().set(\"Content-Type\", \"text/plain\");\n\t\t\t\t\n\t\t\t\t if(query_type.equals(\"/target\")){\n\t\t\t\t\t String key = req.params().get(\"targetID\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequest(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t String key = \"1\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequestRange(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}).listen(80);\n\t\t} else {\n\t\t\tSystem.out.println(\"Please make sure that both your DCI are up and running\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static boolean start()\n\t{\n\t\tClient.getInstance();\n\t\treturn false;\n\t}", "public void startService() {\n log_d( \"startService()\" );\n \tint state = execStartService();\n\t\tswitch( state ) {\n\t\t\tcase STATE_CONNECTED:\n\t\t\t\tshowTitleConnected( getDeviceName() );\n\t\t\t\thideButtonConnect();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tshowTitleNotConnected();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void start() throws IOException {\n ThreadExecutor.registerClient(this.getClass().getName());\n tcpServer.startServer();\n }", "private void start() throws IOException {\n\n\n int port = 9090;\n server = ServerBuilder.forPort(port)\n .addService(new CounterServiceImpl())\n .build()\n .start();\n // logger.info(\"Server started, listening on \" + port);\n\n /* Add hook when stop application*/\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n // Use stderr here since the logger may have been reset by its JVM shutdown hook.\n // IRedis.USER_SYNC_COMMAND.\n System.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n Count.this.stop();\n System.err.println(\"*** server shut down\");\n\n }\n });\n }", "public void start() {\n\n // server 환경설정\n EventLoopGroup bossGroup = new NioEventLoopGroup(bossCount);\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n\n try {\n\n ServerBootstrap b = new ServerBootstrap();\n b.group(bossGroup, workerGroup)\n .channel(NioServerSocketChannel.class)\n .childHandler(new ChannelInitializer<SocketChannel>() {\n @Override\n public void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline pipeline = ch.pipeline();\n pipeline.addLast(new StringDecoder(CharsetUtil.UTF_8));\n pipeline.addLast(new StringEncoder(CharsetUtil.UTF_8));\n pipeline.addLast(new LoggingHandler(LogLevel.INFO));\n pipeline.addLast(SERVICE_HANDLER);\n }\n })\n .option(ChannelOption.SO_BACKLOG, backLog)\n .childOption(ChannelOption.SO_KEEPALIVE, true);\n\n ChannelFuture channelFuture = b.bind(tcpPort).sync();\n channelFuture.channel().closeFuture().sync();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n bossGroup.shutdownGracefully();\n workerGroup.shutdownGracefully();\n }\n\n }", "public void start() {}", "public void start() {}", "public Client (String name, String ipAdresse, int port) {\n\t\tthis.setDaemon(true);\n\t\tthis.name = name;\n\t\tthis.ipAdresse = ipAdresse;\n\t\tthis.port = port;\n\t\tstart();\n\t}", "public void start(int port);", "public void run(){\n\t\tstartServer();\n\t}", "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "public void start(){\n runServerGUI();\n // new server thread object created\n ServerThread m_Server = new ServerThread(this);\n m_Server.start();\n }", "public void start() throws RemoteException, AlreadyBoundException\n {\n start(DEFAULT_PORT);\n }", "public void start() throws Exception {\n ServerSocket socket = new ServerSocket(0);\n port = socket.getLocalPort();\n socket.close();\n\n final String[] localArgs = {\"-inMemory\", \"-port\", String.valueOf(port)};\n server = ServerRunner.createServerFromCommandLineArgs(localArgs);\n server.start();\n url = \"http://localhost:\" + port;\n\n // internal client connection so we can easily stop, cleanup, etc. later\n this.dynamodb = getClient();\n }", "@Override\n public void run() {\n startup();\n }", "public void run() {\n clientLogger.info(\"Client \" + name + \" started working\");\n EventLoopGroup group = new NioEventLoopGroup();\n try {\n Bootstrap bootstrap = new Bootstrap()\n .group(group)\n .channel(NioSocketChannel.class)\n .handler(new ClientInitializer());\n Channel channel = bootstrap.connect(host, port).sync().channel();\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n while (true) {\n channel.write(in.readLine() + \"\\r\\n\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n group.shutdownGracefully();\n }\n clientLogger.info(\"Client \" + name + \" finished working\");\n }", "@Override\n\tpublic void start() {\n\t\tSystem.out.println(\"TESLA has been started\");\n\t}", "private void startInternally() {\n log.debug(\"Start internally called.\");\n\n try {\n LumenFacade lumenFacade = new LumenFacadeImpl(LumenConnection\n .getInstance());\n spine = new JmsSpine(JmsClient.REMOTE, SpineConstants.LUMEN_MEDIATOR);\n lumenClient = new LumenClient(lumenFacade, spine);\n lumenClient.start();\n }\n catch (SpineException e) {\n log.error(\"Problem starting the Lumen process: {}\", e.getMessage());\n e.printStackTrace();\n }\n }", "public void run() {\n\t\trun(null, CommunicationDefaults.CONSOLE_PORT);\n\t}", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void run() {\n ServerSocketChannelFactory acceptorFactory = new OioServerSocketChannelFactory();\n ServerBootstrap server = new ServerBootstrap(acceptorFactory);\n\n // The pipelines string together handlers, we set a factory to create\n // pipelines( handlers ) to handle events.\n // For Netty is using the reactor pattern to react to data coming in\n // from the open connections.\n server.setPipelineFactory(new EchoServerPipelineFactory());\n\n server.bind(new InetSocketAddress(port));\n }", "public void start() {\r\n vcr().start();\t\r\n }", "void startClient(String name, Config.ClientConfig config);", "@Override\n public void start(Future<Void> startFuture) {\n vertx.createHttpServer()\n .requestHandler(getRequestHandler()).listen(8080, http -> {\n if (http.succeeded()) {\n startFuture.complete();\n LOGGER.info(\"HTTP server started on http://localhost:8080\");\n } else {\n startFuture.fail(http.cause());\n }\n });\n }", "public void start()\n {\n }", "public static void setupTorPoolConnexion() throws Exception {\n\t\t\n\t\tLog.stdout(\"Setting up TorPool connection...\");\n\t\t\n\t\t// check if pool is running.\n\t\tcheckRunningPool();\n\t\t\n\t\tSystem.setProperty(\"socksProxyHost\", \"127.0.0.1\");\n\t\t\n\t\t\n\t\ttry{\n\t\t\t//changePortFromFile(new BufferedReader(new FileReader(new File(\".tor_tmp/ports\"))));\n\t\t\tswitchPort();\n\t\t}catch(Exception e){e.printStackTrace();}\n\t\t\n\t\t//showIP();\n\t\t\n\t\thasTorPoolConnexion = true;\n\t}", "public void run()\n \t\t\t{\n \t\t\t\tif (mUseUPnP.getSelection())\n \t\t\t\t\tUPnPService.getInstance().enableUPnP();\n \t\t\t\telse\n \t\t\t\t\tUPnPService.getInstance().disableUPnP();\n \t\t\t}", "public void start() {\n\t\tthis.controller.run();\n\t}", "public void start() {\n }", "public void run()\n\t{\n\t\trunning = true;\n\t\tSystem.out.println(\"Server started on port \" + port);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tRuntime runtime =Runtime.instance();\n\t\t\tProfileImpl profileImpl =new ProfileImpl(false);\n\t\t\t\n\t\t\tprofileImpl.setParameter(ProfileImpl.MAIN_HOST, \"localhost\");\n\t\t\tAgentContainer clientContainer =runtime.createAgentContainer(profileImpl);\n\t\t\t\n\t\t\tAgentController clientController =clientContainer.createNewAgent(\"client\", agents.Client.class.getName(), new Object [] {});\n\t\t\n\t\t\tclientController.start();\n\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Client client = new Client();\n client.start();\n }", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "public synchronized void start() {\n\t\trunning=true;\n\t\tnew Thread(this).start();\n\t\t\n\t\tif(JOptionPane.showConfirmDialog(this, \"Do you want to run the server\")==0){\n\t\t\tsocketServer = new GameServer(this);\n\t\t\tsocketServer.start();\n\t\t\t\n\t\t}\n\t\tsocketClient=new GameClient(this, \"localhost\");\n\t\tsocketClient.start();\n\t}", "public void onStart() {\n Configuration curatorDiscoveryConf = Configuration.root().getConfig(\"curator.service.discovery\");\n\n if (curatorDiscoveryConf == null) {\n Logger.info(\"Curator Discovery settings not found.\");\n } else {\n serviceName = curatorDiscoveryConf.getString(\"name\", \"Play2CuratorService\");\n serviceDescription = curatorDiscoveryConf.getString(\"description\", \"Play2 Curator Service\");\n servicePath = curatorDiscoveryConf.getString(\"path\", \"/play2-curator-service-discovery-plugin\");\n autoRegister = curatorDiscoveryConf.getBoolean(\"autoregister\", Boolean.TRUE);\n uriSpecParam = curatorDiscoveryConf.getString(\"uri.spec\", \"{scheme}://{address}:{port}\");\n uriSpecSslParam = curatorDiscoveryConf.getString(\"ssl.uri.spec\", \"{scheme}://{address}:{ssl-port}\");\n\n Logger.info(\"CuratorServiceDiscoveryPlugin Settings:\");\n Logger.info(\" * serviceName: \" + serviceName);\n Logger.info(\" * serviceDescription: \" + serviceDescription);\n Logger.info(\" * servicePath: \" + servicePath);\n Logger.info(\" * autoRegister: \" + autoRegister);\n Logger.info(\" * uriSpec: \" + uriSpecParam);\n Logger.info(\" * uriSpecSsl: \" + uriSpecSslParam);\n\n zooServers = curatorDiscoveryConf.getString(\"zooServers\", \"localhost:2181\");\n Logger.info(\" * zooKeeper servers: \" + zooServers);\n\n if (zooServers.toLowerCase().contains(\"mock\")) {\n try {\n mockZooKeeper = new TestingServer(2181);\n zooServers = mockZooKeeper.getConnectString();\n Logger.info(\"Mock ZooKeeper started at: \" + zooServers);\n } catch (Exception e) {\n Logger.error(\"Could not start mock ZooKeeper server on port 2181: \" + e.getMessage());\n return;\n }\n }\n\n Logger.info(\"Curator Discovery settings found. ZooKeeper servers: \" + zooServers);\n if (autoRegister) {\n int port = 0;\n String sPort = Configuration.root().getString(\"http.port\");\n if (sPort != null) {\n try {\n port = Integer.parseInt(sPort);\n Logger.info(\" * port: \" + port);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"port is not valid\");\n }\n }\n\n sPort = Configuration.root().getString(\"https.port\");\n int sslPort = 0;\n if (sPort != null) {\n try {\n sslPort = Integer.parseInt(sPort);\n Logger.info(\" * sslPort: \" + sslPort);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"ssl-port is not valid\");\n }\n }\n if (port == 0 && sslPort == 0) {\n Logger.error(\"Can't register service. Port / sslPort not set\");\n } else {\n register(serviceName, serviceDescription, port, sslPort);\n }\n }\n }\n }", "public void startServer() {\n server.start();\n }", "public start() {\n\t\tsuper();\n\t}", "@Override\n public void run() {\n logger.info(\"Servicing connection\");\n }", "@Override\n public void start() {\n // only start once, this is not foolproof as the active flag is set only\n // when the watchdog loop is entered\n if ( isActive() ) {\n return;\n }\n\n Log.info( \"Running server with \" + server.getMappings().size() + \" mappings\" );\n try {\n server.start( HTTPD.SOCKET_READ_TIMEOUT, false );\n } catch ( IOException ioe ) {\n Log.append( HTTPD.EVENT, \"ERROR: Could not start server on port '\" + server.getPort() + \"' - \" + ioe.getMessage() );\n System.err.println( \"Couldn't start server:\\n\" + ioe );\n System.exit( 1 );\n }\n\n if ( redirectServer != null ) {\n try {\n redirectServer.start( HTTPD.SOCKET_READ_TIMEOUT, false );\n } catch ( IOException ioe ) {\n Log.append( HTTPD.EVENT, \"ERROR: Could not start redirection server on port '\" + redirectServer.getPort() + \"' - \" + ioe.getMessage() );\n System.err.println( \"Couldn't start redirection server:\\n\" + ioe );\n }\n }\n\n // Save the name of the thread that is running this class\n final String oldName = Thread.currentThread().getName();\n\n // Rename this thread to the name of this class\n Thread.currentThread().setName( NAME );\n\n // very important to get park(millis) to operate\n current_thread = Thread.currentThread();\n\n // Parse through the configuration and initialize all the components\n initComponents();\n\n // if we have no components defined, install a wedge to keep the server open\n if ( components.size() == 0 ) {\n Wedge wedge = new Wedge();\n wedge.setLoader( this );\n components.put( wedge, getConfig() );\n activate( wedge, getConfig() );\n }\n\n Log.info( LogMsg.createMsg( MSG, \"Loader.components_initialized\" ) );\n\n final StringBuffer b = new StringBuffer( NAME );\n b.append( \" v\" );\n b.append( VERSION.toString() );\n b.append( \" initialized - Loader:\" );\n b.append( Loader.API_NAME );\n b.append( \" v\" );\n b.append( Loader.API_VERSION );\n b.append( \" - Runtime: \" );\n b.append( System.getProperty( \"java.version\" ) );\n b.append( \" (\" );\n b.append( System.getProperty( \"java.vendor\" ) );\n b.append( \")\" );\n b.append( \" - Platform: \" );\n b.append( System.getProperty( \"os.arch\" ) );\n b.append( \" OS: \" );\n b.append( System.getProperty( \"os.name\" ) );\n b.append( \" (\" );\n b.append( System.getProperty( \"os.version\" ) );\n b.append( \")\" );\n Log.info( b );\n\n // enter a loop performing watchdog and maintenance functions\n watchdog();\n\n // The watchdog loop has exited, so we are done processing\n terminateComponents();\n\n Log.info( LogMsg.createMsg( MSG, \"Loader.terminated\" ) );\n\n // Rename the thread back to what it was called before we were being run\n Thread.currentThread().setName( oldName );\n\n }", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (!establishVpn())\n\t\t\t{\n\t\t\t\taddLog(\"Failed to establish the VPN\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconnectTunnel(getLocalServerAddress(dsp.getString(\"local_port\", \"1080\")), getLocalServerAddress(dsp.getString(\"udp_port\", \"7300\")), true);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\n\t\t}\n\t}", "public void start(){\r\n\t\tLog.out(\"Start Service...listening on \" + port, 5);\r\n\t\ttry{\r\n\t\t\t//set up\r\n\t\t\tssocket = new ServerSocket(port);\r\n\t\t}catch(Exception e){\r\n\t\t\tLog.out(\"Can't open the port\", 5);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry{\r\n\t\t\twhile(isRun){\r\n\t\t\t\t//accept socket request,but only one.\r\n\t\t\t\tSocket socket = ssocket.accept();\r\n\t\t\t\tLog.out(\"Got a socket from \"+socket.getLocalAddress(), 5);\r\n\t\t\t\t//if no client now\r\n\t\t\t\tif(clientSocket == null){\r\n\t\t\t\t\tLog.out(\"Handle as client.\", 4);\r\n\t\t\t\t\tclientSocket = socket;\r\n\t\t\t\t\tnew Thread(new ServiceReciever(this, socket)).start();\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tLog.out(\"The server is already in use,refuse the request.\",2);\r\n\t\t\t\t\tnew DataOutputStream(socket.getOutputStream()).writeInt(SOCKET_REFUSE);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tLog.out(\"There are something wrong when get the socket.\", 5);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\n public void run() {\n try {\n registerWithServer();\n initServerSock(mPort);\n listenForConnection();\n\t} catch (IOException e) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, e);\n setTextToDisplay(\"run(): \" + e.getMessage());\n setConnectedStatus(false);\n\t}\n }", "public void start()\n\t{\n\t\tloopy();\n\t}", "public void start()\n {}", "public void start() {\n gateway.openConnection();\n }", "public void start()\n {\n isRunning = true;\n try\n {\n //metoden opretter en ny socket for serveren på den valgte port\n ServerSocket serverSocket = new ServerSocket(port);\n //mens serveren kører venter den på en client\n while (isRunning)\n {\n serverDisplay(\"Serveren venter på clienter på port: \" + port);\n //accepterer clienten på socketen\n Socket socket = serverSocket.accept();\n\n if (!isRunning)\n {\n break;\n }\n // laver en ny thread til clienten med socketen der er blevet accepteret\n HandleClientThread handleClientThread = new HandleClientThread(socket);\n\n // her blever tråden tilføjet til arryet af clienter\n clientThreadArrayList.add(handleClientThread);\n // Starer handleclient tråden som håndtere clienter\n handleClientThread.start();\n }\n try\n {\n //Her lukker serveren socketen\n serverSocket.close();\n for (int i = 0; i < clientThreadArrayList.size() ; i++)\n {\n HandleClientThread hct = clientThreadArrayList.get(i);\n try\n {\n hct.inputStream.close();\n hct.outputStream.close();\n hct.socket.close();\n }\n catch (IOException e)\n {\n System.out.println(\"Uknowen command \" + e);\n }\n }\n }\n catch (Exception e)\n {\n serverDisplay(\"Kunne ikke lukke serveren og clienterne pga. \" + e);\n }\n }\n catch (IOException e)\n {\n String message = dateFormat.format(new Date()) + \"Fejl på ny server socket\" + e + \"\\n\";\n serverDisplay(message);\n }\n }", "protected void start() {\n }", "public static void startServer() {\n clientListener.startListener();\n }", "@Override\n public void start() throws Exception {\n vertx.createHttpServer()\n // The requestHandler is called for each incoming\n // HTTP request, we print the name of the thread\n .requestHandler(req -> {\n req.response().end(\"Hello from \"\n + Thread.currentThread().getName());\n })\n .listen(8080); // start the server on port 8080\n }", "public static void main(String[] args) {\n new ClientExternal(args).start();\n }" ]
[ "0.6495279", "0.6327636", "0.6229168", "0.6197664", "0.6060657", "0.60563517", "0.6046326", "0.59869796", "0.5958717", "0.5951478", "0.59285194", "0.589944", "0.58954096", "0.5889565", "0.58861333", "0.5883157", "0.5876866", "0.58491534", "0.5847996", "0.5844319", "0.5840503", "0.58290505", "0.5826031", "0.5805215", "0.57901454", "0.57801646", "0.57746214", "0.57744366", "0.5756534", "0.5753918", "0.5753918", "0.57411325", "0.57355666", "0.5722123", "0.5720551", "0.5720066", "0.5719269", "0.5690755", "0.56894565", "0.56889385", "0.5686325", "0.56789535", "0.56681865", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56655574", "0.56323624", "0.56310296", "0.5630808", "0.5628846", "0.56279427", "0.5605356", "0.5596776", "0.5587405", "0.55790794", "0.5576662", "0.55755794", "0.5573452", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55704", "0.55670947", "0.5562263", "0.5556442", "0.55557436", "0.5552751", "0.55521506", "0.5549461", "0.5523524", "0.552065", "0.5519417", "0.55174196", "0.5513618", "0.5510567", "0.55079085", "0.54932773", "0.5483839", "0.54777944", "0.5477153" ]
0.7843061
0
/ Los setters no tienen sentido. No pueden cambiar los servicios, son unicos
public BarService getBarService() { return barService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testSetMiservicio() {\r\n System.out.println(\"setMiservicio\");\r\n Servicio miservicio = new Servicio();\r\n miservicio.descripcion=\"gestion de vigilancia\";\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMiservicio(miservicio);\r\n assertEquals(instance.getMiservicio().descripcion, \"gestion de vigilancia\");\r\n }", "private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n obsoData.setObsolescenceDate(obsolescenceDate);\n \n obsoData.setEndOfSupportDate(endOfSupportDate);\n obsoData.setEndOfProductionDate(endOfProductionDate);\n \n obsoData.setCurrentAction(avlBean.findAttributeValueListById(\n ActionObso.class, actionId));\n obsoData.setMtbf(mtbf);\n \n obsoData.setStrategyKept(avlBean.findAttributeValueListById(\n Strategy.class,\n strategyId));\n obsoData.setContinuityDate(continuityDate);\n \n obsoData.setManufacturerStatus(avlBean.findAttributeValueListById(\n ManufacturerStatus.class, manufacturerStatusId));\n obsoData.setAirbusStatus(avlBean.findAttributeValueListById(\n AirbusStatus.class, airbusStatusId));\n \n obsoData.setLastObsolescenceUpdate(lastObsolescenceUpdate);\n obsoData.setConsultPeriod(avlBean.findAttributeValueListById(\n ConsultPeriod.class, consultPeriodId));\n \n obsoData.setPersonInCharge(personInCharge);\n obsoData.setCommentOnStrategy(comments);\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public void setServicioCreditoTributario(ServicioCreditoTributario servicioCreditoTributario)\r\n/* 96: */ {\r\n/* 97:117 */ this.servicioCreditoTributario = servicioCreditoTributario;\r\n/* 98: */ }", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "private void setWsdlValues(Map<String, String> wsdlValues, BaseVO<Long> service) throws BusinessException{\n\t\tif(!wsdlValues.isEmpty()){\n\t\t\tif(service instanceof ServiceVO){\n\t\t\t\tServiceVO srv = (ServiceVO)service;\n\t\t\t\t//set name space value\n\t\t\t\tsrv.setNameSpace(wsdlValues.get(ServiceEngineConstants.KEY_SE_WS_NAMESPACE_MAP));\n\t\t\t\t//set port type value\n\t\t\t\tsrv.setPortTypeName(wsdlValues.get(ServiceEngineConstants.KEY_SE_PORT_TYPE_NAME_MAP));\n\t\t\t\t//set end point value\n\t\t\t\tsrv.setEndPoint(wsdlValues.get(ServiceEngineConstants.KEY_SE_END_POINT_MAP));\n\t\t\t\t//set soap http binding type\n\t\t\t\tsrv.setSoapHttpBindingType(wsdlValues.get(ServiceEngineConstants.KEY_SE_SOAP_HTTP_BINDING_MAP));\n\t\t\t\t//set root request header\n\t\t\t\tsrv.setRootRequest(wsdlValues.get(ServiceEngineConstants.KEY_SE_REQUEST_ROOT_NAME_MAP));\n\t\t\t}else if(service instanceof ComponentServiceVO){\n\t\t\t\tComponentServiceVO compSrv = (ComponentServiceVO)service;\n\t\t\t\t//set name space value\n\t\t\t\tcompSrv.setNameSpace(wsdlValues.get(ServiceEngineConstants.KEY_SE_NAMESPACE_MAP));\n\t\t\t\t//set port type value\n\t\t\t\tcompSrv.setPortTypeName(wsdlValues.get(ServiceEngineConstants.KEY_SE_PORT_TYPE_NAME_MAP));\n\t\t\t\t//set end point value\n\t\t\t\tcompSrv.setEndPoint(wsdlValues.get(ServiceEngineConstants.KEY_SE_END_POINT_MAP));\n\t\t\t\t//set soap http binding type\n\t\t\t\tcompSrv.setSoapHttpBindingType(wsdlValues.get(ServiceEngineConstants.KEY_SE_SOAP_HTTP_BINDING_MAP));\n\t\t\t\t//set root request header\n\t\t\t\tcompSrv.setRootRequest(wsdlValues.get(ServiceEngineConstants.KEY_SE_REQUEST_ROOT_NAME_MAP));\n\t\t\t}else{\n\t\t\t\tthrow ServiceEngineGeneralError.UNKOW_ERROR;\n\t\t\t}\n\t\t}else{\n\t\t\tlogger.info(\"El Mapa de valores del WSDL viene vacío, no se asign\\u00F3 ningun valor\");\n\t\t}\n\t}", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void service(){\n Serv_ID = 0;\n Serv_Emp_ID = 0;\n Serv_Event_ID = 0;\n Serv_Grant_ID = 0;\n Serv_Proj_ID = 0;//add project creation\n Serv_Date = \"currrent_date\";\n Serv_Type = \"\";\n Serv_Desc = \"\";\n Serv_Mon_Val = 0.00;\n Serv_Hours = 0;\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.getText().toString());\n\t\t\tusuSelecc.setCustomFields(etAuth.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n\t\t\tmostrarException(e.getMessage());\n\t\t}\n\t}", "private void setServiceDTO (String service[], boolean isJai) {\n\n\t\tString companyName = service[0];\n\n\t\tString depTime[] = service[1].split (\":\");\n\n\t\tLocalTime departureTime = LocalTime.of (Integer.parseInt (depTime[0]), Integer.parseInt (depTime[1]));\n\n\t\tString arrTime[] = service[2].split (\":\");\n\n\t\tLocalTime arrivalTime = LocalTime.of (Integer.parseInt (arrTime[0]), Integer.parseInt (arrTime[1]));\n\n\t\tlong netDuration = arrivalTime.toSecondOfDay () - departureTime.toSecondOfDay ();\n\n\t\tif (netDuration > SECONDS_IN_AN_HOUR)\n\t\t\treturn;\n\n\t\tTreeSet <BusService> busServiceList;\n\n\t\tif (isJai) {\n\t\t\tbusServiceList = jaiBusServiceList == null ? jaiBusServiceList = new TreeSet<> () : jaiBusServiceList;\n\t\t} else {\n\t\t\tbusServiceList = veeruBusServiceList == null ? veeruBusServiceList = new TreeSet<> () : veeruBusServiceList;\n\t\t}\n\n\t\tBusService busService = new BusService ();\n\n\t\tbusService.setCompanyName (companyName);\n\t\tbusService.setDepartureTime (departureTime);\n\t\tbusService.setArrivalTime (arrivalTime);\n\n\t\tbusServiceList.add (busService);\n\t}", "@Override\n public void afterPropertiesSet() throws Exception {\n this.allowedPosNames = apiService.findApiNamesByType(ApiType.RETAILPRO_API);\n if(this.allowedPosNames.size() == 0){\n throw new IllegalStateException(\"Should have at least one API\"); \n }\n this.defaultApiForPosSoftware = allowedPosNames.iterator().next();\n }", "@Test\r\n public void testSetMicentro() {\r\n System.out.println(\"setMicentro\");\r\n CentroEcu_Observado micentro = new CentroEcu_Observado();\r\n micentro.setCiudad(\"Loja\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMicentro(micentro);\r\n assertEquals(instance.getMicentro().ciudad, \"Loja\");\r\n }", "public void setServices(com.hps.july.persistence.ServiceAccessBean newServices) throws Exception {\n\tif (newServices == null) {\n\t\tservicecode = null;\n\t\tservicename = \"\";\n\t}\n\telse {\n\t\tservicecode = new Integer(newServices.getDivision());\n\t\tservicename = newServices.getName();\n\t}\n}", "private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }", "public void setServicios(List<ServicioEntity> servicios) {\r\n this.servicios = servicios;\r\n }", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "private void setService(Service service) {\n this.service = service;\n }", "void setSolicitarServicio(com.soa.SolicitarServicioDocument.SolicitarServicio solicitarServicio);", "private void guardarEstadoObjetosUsados() {\n }", "@Override\n protected void updateProperties() {\n }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public void testSetService() throws Exception {\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public ControlMuestraServicios( ServicioConsulta servicioConsulta) {\r\n\t\tthis.servicioConsulta=servicioConsulta;\r\n\t\t\r\n\t}", "protected void setFields(HttpServletRequest request, HttpServletResponse response, CleanerServiceItem _CleanerServiceItem) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"serviceId\"))) {\r\n m_logger.debug(\"updating param serviceId from \" +_CleanerServiceItem.getServiceId() + \"->\" + request.getParameter(\"serviceId\"));\r\n _CleanerServiceItem.setServiceId(WebParamUtil.getLongValue(request.getParameter(\"serviceId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"serviceItemId\"))) {\r\n m_logger.debug(\"updating param serviceItemId from \" +_CleanerServiceItem.getServiceItemId() + \"->\" + request.getParameter(\"serviceItemId\"));\r\n _CleanerServiceItem.setServiceItemId(WebParamUtil.getLongValue(request.getParameter(\"serviceItemId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"itemType\"))) {\r\n m_logger.debug(\"updating param itemType from \" +_CleanerServiceItem.getItemType() + \"->\" + request.getParameter(\"itemType\"));\r\n _CleanerServiceItem.setItemType(WebParamUtil.getIntegerValue(request.getParameter(\"itemType\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"title\"))) {\r\n m_logger.debug(\"updating param title from \" +_CleanerServiceItem.getTitle() + \"->\" + request.getParameter(\"title\"));\r\n _CleanerServiceItem.setTitle(WebParamUtil.getStringValue(request.getParameter(\"title\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"imagePath\"))) {\r\n m_logger.debug(\"updating param imagePath from \" +_CleanerServiceItem.getImagePath() + \"->\" + request.getParameter(\"imagePath\"));\r\n _CleanerServiceItem.setImagePath(WebParamUtil.getStringValue(request.getParameter(\"imagePath\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"imagePathLocal\"))) {\r\n m_logger.debug(\"updating param imagePathLocal from \" +_CleanerServiceItem.getImagePathLocal() + \"->\" + request.getParameter(\"imagePathLocal\"));\r\n _CleanerServiceItem.setImagePathLocal(WebParamUtil.getStringValue(request.getParameter(\"imagePathLocal\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"basePrice\"))) {\r\n m_logger.debug(\"updating param basePrice from \" +_CleanerServiceItem.getBasePrice() + \"->\" + request.getParameter(\"basePrice\"));\r\n _CleanerServiceItem.setBasePrice(WebParamUtil.getDoubleValue(request.getParameter(\"basePrice\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"note\"))) {\r\n m_logger.debug(\"updating param note from \" +_CleanerServiceItem.getNote() + \"->\" + request.getParameter(\"note\"));\r\n _CleanerServiceItem.setNote(WebParamUtil.getStringValue(request.getParameter(\"note\")));\r\n\r\n }\r\n\r\n }", "@Test\r\n public void testSetValor() {\r\n \r\n }", "@Test\r\n public void testSetContrasenia() {\r\n System.out.println(\"setContrasenia\");\r\n String contrasenia = \"\";\r\n Usuario instance = new Usuario();\r\n instance.setContrasenia(contrasenia);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n String nombre = \"T-3\";\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setNombre(nombre);\n \n }", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void setServices(List<ServiceInfo> services) {\n\t\tif (services == null || services.size() == 0) {\n\t\t\tthrow new IllegalArgumentException(\"services is empty!\");\n\t\t}\n\t\tthis.services = services;\n//\t\tserviceReset = true;\n\t}", "public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public static void setupServicesAndParameters(){\n\t\t//replace services in use, e.g.:\n\t\t/*\n\t\tMap<String, ArrayList<String>> systemInterviewServicesMap = new HashMap<>();\n\t\t\n\t\t//CONTROL DEVICES\n\t\tArrayList<String> controlDevice = new ArrayList<String>();\n\t\t\tcontrolDevice.add(MyDeviceControlService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.CONTROL, controlDevice);\n\t\t\n\t\t//BANKING\n\t\tArrayList<String> banking = new ArrayList<String>();\n\t\t\tbanking.add(MyBankingService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.BANKING, banking);\n\t\t\t\n\t\tInterviewServicesMap.loadCustom(systemInterviewServicesMap);\n\t\t*/\n\t\t\n\t\t//defaults\n\t\tStart.setupServicesAndParameters();\n\t\t\n\t\t//add\n\t\t//e.g.: ParameterConfig.setHandler(PARAMETERS.ALARM_NAME, Config.parentPackage + \".parameters.AlarmName\");\n\t}", "public RestDataservice() {\n super();\n setkType(KomodoType.DATASERVICE);\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public void getInformation(){\n if (car == null) {\n throw new InvalidParameterException(\"Service is null\");\n }\n System.out.println(\"Setter injection client\");\n System.out.println(car.getInformation());\n }", "@Override\n public void updateProperties() {\n // unneeded\n }", "public void setServicioFacturaProveedorSRI(ServicioFacturaProveedorSRI servicioFacturaProveedorSRI)\r\n/* 116: */ {\r\n/* 117:133 */ this.servicioFacturaProveedorSRI = servicioFacturaProveedorSRI;\r\n/* 118: */ }", "public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }", "@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}", "@Override\n public void afterPropertiesSet() {\n }", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "public Servicio(String servicio){\n nombreServicio = servicio;\n }", "private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }", "protected void fixateBindings()\r\n\t\t\t\tthrows IllegalArgumentException, IllegalAccessException,\r\n\t\t\t\tNoSuchFieldException, SecurityException {\n\t\t\tfor (Field field : getClass().getDeclaredFields()) {\r\n\t\t\t\t// relax private fields for reflection only\r\n\t\t\t\tfield.setAccessible(true);\r\n\t\t\t\t// search local -> global -> default for set value\r\n\t\t\t\tfield.set(this, evaluateField(field));\r\n\t\t\t}\r\n\t\t}", "public abstract void setServiceName(String serviceName);", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "public void setdat()\n {\n }", "public AbstractEstProxy(Est dto) {\n super(dto);\n\n // Setter arrays\n readObjectSetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n }", "@Test\n public void testSetTipoSangre() {\n System.out.println(\"setTipoSangre\");\n String tipoSangre = \"\";\n Paciente instance = new Paciente();\n instance.setTipoSangre(tipoSangre);\n \n }", "@Override\n\tpublic void handle(OperationRequest req, Context context) throws SoapClientException {\n\n\t\tObject responseInstance = context.getResponseInstance();\n\t\tMap<String, Holder<?>> resultHolders = context.getResultHolders();\n\t\t\n\t\tfor (Map.Entry<String, Holder<?>> resultHolder: resultHolders.entrySet()) {\n\t\t\tString setterName = \"set\" + Character.toUpperCase(resultHolder.getKey().charAt(0)) + resultHolder.getKey().substring(1);\n\t\t\tMethod[] meths = responseInstance.getClass().getMethods();\n\t\t\tMethod setter = null;\n\t\t\tfor (Method meth: meths) {\n\t\t\t\tif (meth.getName().equals(setterName)) {\n\t\t\t\t\tsetter = meth;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (setter == null) {\n\t\t\t\tLog.debug(\"Unable to find a setter method - falling back to field named \" + resultHolder.getKey());\n\t\t\t\tField field;\n\t\t\t\ttry {\n\t\t\t\t\tfield = responseInstance.getClass().getDeclaredField(resultHolder.getKey());\n\t\t\t\t} catch (NoSuchFieldException | SecurityException e) {\n\t\t\t\t\tthrow new SoapClientException(\"Unable to successfully get field \" + resultHolder.getKey() + \" due to \" + e.getClass().getSimpleName() + \": \" + e.getMessage(), e);\n\t\t\t\t}\n\t\t\t\tif (field.getType() == List.class) {\n\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfield.set(responseInstance, resultHolder.getValue().value);\n\t\t\t\t\t} catch (IllegalArgumentException | IllegalAccessException e) {\n\t\t\t\t\t\tthrow new SoapClientException(\"Unable to inoke setter on result holder due to \" + e.getClass().getSimpleName() + \": \" + e.getMessage(), e);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new SoapClientException(\"Field \" + resultHolder.getKey() + \" was not of type List\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLog.debug(\"Invoking setter method \" + setterName + \" with value \" + resultHolder.getValue().value);\n\t\t\t\ttry {\n\t\t\t\t\tsetter.invoke(responseInstance, resultHolder.getValue().value);\n\t\t\t\t} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n\t\t\t\t\tthrow new SoapClientException(\"Unable to inoke setter on result holder due to \" + e.getClass().getSimpleName() + \": \" + e.getMessage(), e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public abstract void setearEstadosPropuests(String estado, String propuesta, String fechaCambio) throws ParseException;", "protected void agregarUbicacion(){\n\n\n\n }", "@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }", "public void setCodProd(IProduto codigo);", "private DittaAutonoleggio(){\n \n }", "@Test @DisplayName(\"Injector - setting (direct)\")\n void injectorSetters() throws Exception {\n val injector = injector(inj -> {\n inj.set(\"text\", \"some text\");\n inj.set(\"label\", \"a label\");\n inj.set(\"attrs\", Map.of(\"alpha\", \"one\"));\n });\n\n val injected = injector.inject(new OtherObject());\n assertEquals(\"some text\", injected.getText());\n assertEquals(\"a label\", injected.label);\n assertEquals(Map.of(\"alpha\", \"one\"), injected.getAttrs());\n }", "protected abstract boolean setServos();", "public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "private void setData() {\n populateInterfaceElements();\n }", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "protected void setService(AbsYJACommonService yjaService) throws Exception {\n\t\tthis.yjaService = yjaService;\n\t\tthis.yjaService.setInitialInfo(actionModel);\n\t}", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "public abstract void setNombre(java.lang.String newNombre);", "@Test\n public void testSetIdPaciente() {\n System.out.println(\"setIdPaciente\");\n Integer idPaciente = null;\n Paciente instance = new Paciente();\n instance.setIdPaciente(idPaciente);\n \n }", "@Override\n public String getNombre(){\n \n return nombreServicio;\n }", "public void Ordenamiento() {\n\n\t}", "public ServicioPersona() throws CustomErrorException {\n\t\ttry {\n\t\t\tgPersona = new GestorPersona();\n\t\t\tgDireccion = new GestorDireccion();\n\t\t\tgTelefono = new GestorTelefono();\n\t\t\tgCorreoElectronico = new GestorCorreoElectronico();\n\t\t}catch (CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t}catch (Exception e) {\n\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.la.netco.solicitudes_sdisc.model.model.Estado\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Estado>> listenersList = new ArrayList<ModelListener<Estado>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Estado>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testSetPagamentos() {\n }", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "@Override\n\tvoid geraDados() {\n\n\t}", "private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }", "@Test\n public void gettersAndSettersShouldWorkForEachProperty() {\n assertThat(AssignForceBatch.class, hasValidGettersAndSetters());\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}", "public ControladorCatalogoServicios() {\r\n }", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "protected abstract Set method_1559();", "private Map getSetters(Object object) {\n Map result = new HashMap();\n\n Method[] metodos = object.getClass().getMethods();\n String nombre = null;\n String propiedad = null;\n\n for (int i = 0; i < metodos.length; i++) {\n nombre = metodos[i].getName();\n\n //Sólo nos interesan los \"setters\", siguiendo la especificacion JavaBean\n if (nombre.startsWith(\"set\") && (nombre.length() > 3)) {\n //Quitamos el prefijo \"set\"\n propiedad = nombre.substring(3, nombre.length());\n\n //ponemos la primera letra en minuscula\n propiedad = Character.toLowerCase(propiedad.charAt(0)) +\n propiedad.substring(1, propiedad.length());\n\n //Añadimos el setter con el nombre de la propiedad como key\n result.put(propiedad, metodos[i]);\n }\n }\n\n return result;\n }", "public void setFields(Viaje travel) {\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n if (travel.getFecha() != null) {\n getDateTxt().setText(df.format(travel.getFecha()));\n getProvidedHourTxt().setText(getUtils().gethhmm(travel.getFecha()));\n }\n if (travel.getIngreso() != null) {\n getTravelValueTxt().setText(travel.getIngreso().toString());\n }\n if (travel.getPagoACamionero() != null) {\n getMoneyforDriverTxt().setText(travel.getPagoACamionero().toString());\n }\n getDistanceTxt().setText(travel.getKms());\n getContainerTxt().setText(travel.getNumeroContenedor());\n getSealTxt().setText(travel.getPrecinto());\n getContainerTypeTxt().setText(travel.getTipoContenedor());\n if (travel.getReferencia() != null) {\n getReferenceTxt().setText(travel.getReferencia());\n }\n if (travel.getBultos() != null) {\n getPackageTxt().setText(travel.getBultos().toString());\n }\n if (travel.getEstadoContenedor() != null && travel.getEstadoContenedor().equals(\"lleno\")) {\n getContainerStateCkb().setSelected(true);\n } else {\n getContainerStateCkb().setSelected(false);\n }\n getCommodityTxt().setText(travel.getMercancia());\n if (travel.getPeso() != null) {\n getWeightTxt().setText(travel.getPeso().toString());\n }\n if (travel.getOrigen() != null) {\n getOriginTxt().setText(travel.getOrigen());\n }\n if (travel.getDestino() != null) {\n getDestinationTxt().setText(travel.getDestino());\n }\n getCollectionPlaceTxt().setText(travel.getLugarRecogida());\n getLoadPlaceTxt().setText(travel.getLugarCarga());\n getCarrierTxt().setText(travel.getCargador());\n SimpleDateFormat hhmmDf = new SimpleDateFormat(\"hh:mm\");\n if (travel.getHoraLlegada() != null) {\n getArriveHourTxt().setText(getUtils().gethhmm(travel.getHoraLlegada()));\n }\n if (travel.getHoraSalida() != null) {\n getExitHourTxt().setText(getUtils().gethhmm(travel.getHoraSalida()));\n }\n getDeliveryPlaceTxt().setText(travel.getLugarEntrega());\n if (travel.getTipoPago() != null) {\n getPaymentTypeTxt().setText(travel.getTipoPago().toString());\n }\n\n getShippingExpensesTxt().setText(travel.getGastosNaviera());\n getCustomsTxt().setText(travel.getAduana());\n getOthersDescriptionTFld().setText(travel.getOtrosGastos());\n getOtherExpensesTxt().setText(travel.getCantidadOtros());\n getShippingTxt().setText(travel.getNaviera());\n getBoatTxt().setText(travel.getBuque());\n getObservationsTxt().setText(travel.getObservaciones());\n\n Transportista driver = travel.getTransportista();\n if (travel.getIva() != null) {\n ObservableList ivaItems = getIvaCb().getItems();\n String iva = \"\";\n if (travel.getIva().equals(\"S\")) {\n iva = \"Abonado por cliente\";\n } else if (travel.getIva().equals(\"N\")) {\n iva = \"No abonado por cliente\";\n }\n for (int i = 0; i < ivaItems.size(); i++) {\n if (iva.equals(ivaItems.get(i))) {\n getIvaCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoCliente() != null) {\n ObservableList clientPaymentItems = getClientPaymentCb().getItems();\n for (int i = 0; i < clientPaymentItems.size(); i++) {\n if (travel.getEstadoCliente().equals(clientPaymentItems.get(i))) {\n getClientPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoTransportista() != null) {\n ObservableList driverPaymentItemsList = getDriverPaymentCb().getItems();\n for (int i = 0; i < driverPaymentItemsList.size(); i++) {\n if (travel.getEstadoTransportista().equals(driverPaymentItemsList.get(i))) {\n getDriverPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getCliente() != null) {\n ObservableList clientItems = getClientCb().getItems();\n for (int i = 0; i < clientItems.size(); i++) {\n if (travel.getCliente().getNombre().equals(clientItems.get(i))) {\n getClientCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getTransportista() != null) {\n ObservableList driverItems = getDriverCb().getItems();\n String fullDriverName = travel.getTransportista().getNombre().trim() + \" \" + travel.getTransportista().getApellido1().trim() + \" \" + travel.getTransportista().getApellido2().trim();\n for (int i = 0; i < driverItems.size(); i++) {\n if (fullDriverName.equals(driverItems.get(i))) {\n getDriverCb().getSelectionModel().select(i);\n }\n }\n }\n String travelType = travel.getTipoViaje();\n if (travelType != null) {\n ObservableList travelsTypeItems = getTravelTypeCb().getItems();\n if (travelType.equals(\"T\")) {\n travelType = \"Terrestre\";\n } else if (travel.getTipoViaje().equals(\"EX\")) {\n travelType = \"Exportación\";\n }\n for (int i = 0; i < travelsTypeItems.size(); i++) {\n if (travelType.equals(travelsTypeItems.get(i))) {\n getTravelTypeCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoHacienda() != null) {\n ObservableList treasuryStateItems = getTreasuryStateCb().getItems();\n for (int i = 0; i < treasuryStateItems.size(); i++) {\n if (travel.getEstadoHacienda().equals(treasuryStateItems.get(i))) {\n getTreasuryStateCb().getSelectionModel().select(i);\n }\n }\n if (!travel.getEstadoHacienda().equals(\"Ninguno\")) {\n getTreasuryStateCb().setVisible(true);\n }\n }\n ObservableList dispatcherItems = getDispatcherCb().getItems();\n for (int i = 0; i < dispatcherItems.size(); i++) {\n if (travel.getDespachante() != null && travel.getDespachante().equals(dispatcherItems.get(i))) {\n getDispatcherCb().getSelectionModel().select(i);\n }\n }\n }", "public void setAttributes(String serviceName, Map attributes)\n throws SMSException {\n validateConfigImpl();\n if (serviceName == null) {\n return;\n }\n \n if (migratedTo70) {\n // Lowercase the serviceName\n serviceName = serviceName.toLowerCase();\n try {\n CachedSMSEntry cEntry = CachedSMSEntry.getInstance(token,\n orgDN);\n if (cEntry.isDirty()) {\n cEntry.refresh();\n }\n SMSEntry e = cEntry.getClonedSMSEntry();\n if ((attributes != null) && (!attributes.isEmpty())) {\n // Validate the attributes\n ServiceSchemaManager ssm = new ServiceSchemaManager(\n serviceName, token);\n ServiceSchema ss = ssm.getOrganizationCreationSchema();\n ss.validateAttributes(attributes);\n \n // Normalize the attributes with service name\n Map attrsMap = new HashMap();\n Iterator itr = attributes.keySet().iterator();\n while (itr.hasNext()) {\n String name = (String) itr.next();\n Set values = (Set) attributes.get(name);\n /*\n * To make the attributes qualified by service name we\n * prefix the attribute names with the service name.\n */\n attrsMap.put(serviceName + \"-\" + name, values);\n }\n \n // Look for old attrs. in the storage and add them too.\n Map oldAttrs = getAttributes(serviceName);\n Iterator it = oldAttrs.keySet().iterator();\n while (it.hasNext()) {\n String skey = (String) it.next();\n if (!attributes.containsKey(skey))\n attrsMap.put(serviceName + \"-\" + skey, oldAttrs\n .get(skey));\n }\n \n // Set the attributes in SMSEntry\n SMSUtils.setAttributeValuePairs(e, attrsMap, ss\n .getSearchableAttributeNames());\n \n String dataStore = SMSEntry.getDataStore(token);\n // Add these OCs only for SunOne DS. Do not add the \n // OCs for Active Directory.\n // Will get WILL_NOT_PERFORM in AD.\n if ((dataStore != null) && !dataStore.equals(\n SMSEntry.DATASTORE_ACTIVE_DIR)\n ) {\n // This is for storing organization attributes\n // in top/default realm node. eg.,ou=services,o=isp\n if (e.getDN().equalsIgnoreCase(SERVICES_NODE)) {\n String[] ocVals = e\n .getAttributeValues(SMSEntry.ATTR_OBJECTCLASS);\n boolean exists = false;\n for (int ic = 0; ocVals != null \n && ic < ocVals.length; ic++) \n {\n if (ocVals[ic].startsWith(\n SMSEntry.OC_SERVICE_COMP)) {\n // OC needs to be added outside the for loop\n // else will throw concurrent mod exception\n exists = true;\n break;\n }\n }\n if (!exists) {\n e.addAttribute(SMSEntry.ATTR_OBJECTCLASS,\n SMSEntry.OC_SERVICE_COMP);\n }\n } else if (e.getDN().startsWith(\n SMSEntry.ORGANIZATION_RDN + SMSEntry.EQUALS)) {\n // This is for storing organization attributes in\n // organizations created via sdk through realm \n // console.\n String[] vals = e\n .getAttributeValues(SMSEntry.ATTR_OBJECTCLASS);\n boolean rsvcExists = false;\n for (int n = 0; vals != null && n < vals.length; \n n++) {\n if (vals[n].equalsIgnoreCase(\n SMSEntry.OC_REALM_SERVICE)) \n {\n // OC needs to be added outside the for loop\n // else will throw concurrent mod exception\n rsvcExists = true;\n break;\n }\n }\n if (!rsvcExists) {\n e.addAttribute(SMSEntry.ATTR_OBJECTCLASS,\n SMSEntry.OC_REALM_SERVICE);\n }\n }\n }\n \n // Save in backend data store and refresh the cache\n e.save(token);\n cEntry.refresh(e);\n }\n \n } catch (SSOException ssoe) {\n SMSEntry.debug.error(\"OrganizationConfigManager: Unable \"\n + \"to set Attributes\", ssoe);\n throw (new SMSException(SMSEntry.bundle\n .getString(\"sms-INVALID_SSO_TOKEN\"),\n \"sms-INVALID_SSO_TOKEN\"));\n }\n }\n \n // If in coexistMode and serviceName is idRepoService\n // set the attributes to AMSDK organization\n if ((coexistMode || (realmEnabled && isCopyOrgEnabled()))\n && serviceName\n .equalsIgnoreCase(OrgConfigViaAMSDK.IDREPO_SERVICE)) {\n amsdk.setAttributes(attributes);\n }\n }", "protected void afterPropertiesSetInternal() {\n\t\t// override this method\n\t}", "public ServiceCompte() {\n\t\tsuper();\n\t}", "@Before\n\tpublic void inicializarEnCadaTest() {\n\t\tthis.servicioDocumento = spy (new ServicioDocumentoImpl(repositorioDocumento));\n\n\t}", "private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "public void setAll()\r\n\t{\r\n\t\tthis.coderVersion = CaTIESProperties.getValue(\"caties.coder.version\");\r\n\t\tthis.gateHome = CaTIESProperties.getValue(\"caties.gate.home\");\r\n\t\tthis.creoleUrlName = CaTIESProperties.getValue(\"caties.creole.url.name\");\r\n\t\tthis.caseInsensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.insensitive.gazetteer.url.name\");\r\n\t\tthis.caseSensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.sensitive.gazetteer.url.name\");\r\n\t\tthis.sectionChunkerUrlName = CaTIESProperties.getValue(\"caties.section.chunker.url.name\");\r\n\t\tthis.conceptFilterUrlName = CaTIESProperties.getValue(\"caties.concept.filter.url.name\");\r\n\t\tthis.negExUrlName = CaTIESProperties.getValue(\"caties.neg.ex.url.name\");\r\n\t\tthis.conceptCategorizerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.concept.categorizer.url.name\");\r\n\t}" ]
[ "0.6382855", "0.6329804", "0.6267419", "0.62007535", "0.6061601", "0.60418385", "0.5996456", "0.5974795", "0.5943859", "0.58855426", "0.58726275", "0.58693445", "0.58544725", "0.58198196", "0.5819697", "0.5816165", "0.57769704", "0.57507026", "0.57458603", "0.57427764", "0.5693758", "0.5687281", "0.56733036", "0.5660588", "0.5658221", "0.5656404", "0.5653138", "0.56489736", "0.5639965", "0.56320757", "0.5622192", "0.56170034", "0.56169707", "0.5616712", "0.56072307", "0.55957997", "0.5595479", "0.558843", "0.55880857", "0.55847263", "0.5568064", "0.5558871", "0.5556079", "0.5550975", "0.55384713", "0.5517475", "0.55171317", "0.5512555", "0.5512225", "0.55012804", "0.5492155", "0.5490435", "0.54863024", "0.548536", "0.547862", "0.5473508", "0.5467526", "0.5462363", "0.5461503", "0.5454627", "0.5454122", "0.5453578", "0.54488677", "0.54483443", "0.5443103", "0.5438223", "0.54379284", "0.5434457", "0.5424505", "0.5414718", "0.5413671", "0.5413671", "0.5412672", "0.54121757", "0.5407894", "0.5402754", "0.5399245", "0.5397943", "0.539776", "0.538568", "0.53839463", "0.5383571", "0.5380357", "0.5377687", "0.53767574", "0.5375819", "0.53733623", "0.5370772", "0.5370589", "0.5366558", "0.5360529", "0.5358604", "0.5357697", "0.5356624", "0.53480774", "0.5346475", "0.5346342", "0.53404593", "0.53395426", "0.5335509", "0.5331362" ]
0.0
-1
This contructor builds a new Sphere.
public Sphere (final Point3 c, final double r, final Material material) { super(material); this.c = c; this.r = r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sphere(){\n\t\tradius = 128;\n\t\tlightScale = 1;\n\t\tambientLight = 0.3;\t\t\t// Amount of ambient light\n\t\tdiffuseLight = 0.7;\t\t\t// Amount of diffuse light\n\t\tlightSource = new double[]{0, 0, 128};\t// Place light 128 units away from origin\n\t}", "public Sphere(final Material m) {\n super(m);\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public Sphere(float radius) {\n\t\tsuper();\n\t\tthis.radius = radius;\n\t}", "public Sphere(double radius, Point3D center) {\n super(radius);\n _center = center;\n }", "public Sphere(double nx, double ny, double nz, double size) {\n this.x = nx;\n this.y = ny;\n this.z = nz;\n this.radius = size;\n }", "public Sphere(Point3D c, double r)\r\n\t{\r\n\t\tsuper(r);\r\n\t\t_center = c;\r\n\t}", "public Sphere(String name, Material m, double radius, Vector3D pos){\n super();\n p = pos;\n r = radius;\n this.name = name;\n this.material = m;\n light = false;\n }", "public Sphere (final Material material) {\n super(material);\n\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public Sphere( double radius, Point3d center, Material material ) {\n \tsuper();\n \tthis.radius = radius;\n \tthis.center = center;\n \tthis.material = material;\n }", "public Sphere( double radius, Point3d center, Material material ) {\r\n \tsuper();\r\n \tthis.radius = radius;\r\n \tthis.center = center;\r\n \tthis.material = material;\r\n }", "public Pj3dSphere Sphere(int x)\r\n\t{\r\n \tPj3dSphere s = new Pj3dSphere(this, x);\r\n\t\treturn s;\r\n\t}", "@Override\r\n protected void initModel() {\n model = new Sphere(\"projectil Model\", 5, 5, 0.2f);\r\n model.setModelBound(new BoundingBox());\r\n model.updateModelBound();\r\n }", "public Sphere(Point3 c, double r, Material material) {\n\t\tsuper(material);\n\t\tthis.c = c;\n\t\tthis.r = r;\n\t}", "public Sphere(Point3D c, double r, Color color)\r\n\t{\r\n\t\tthis(c, r);\r\n\t\tsuper._emission = color;\r\n\t}", "public Sphere(Point3D c, double r, Color color, Material material)\r\n\t{\r\n\t\tthis(c,r, color);\r\n\t\tsuper._material = material;\r\n\t}", "public RayTracer() {\n\t\tspheres = new ArrayList<Sphere>();\n\t\tspheres.add(new Sphere(-2.0f, 0.0f, -15.0f, 4.0f, 1.00f, 0.32f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(5.0f, 5.0f, -15.0f, 2.0f, 0.00f, 0.92f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(10.0f, -8.0f, -30.0f, 6.0f, 0.36f, 0.32f, 1.00f, 0.1f, 0.8f, 100.0f));\n\n\t\tlight = new Light(5.0f, 10.0f, 10.0f, 1.0f); // (x, y, z, intensity).\n\t\tcamera = new Camera(512, 512, 50.0f); // (width, height, fov).\n\t}", "public Sphere2(\n\t\t\tString description, Vector3D centre, double radius,\n\t\t\tboolean inverse,\n\t\t\tSurfaceProperty surfaceProperty,\n\t\t\tSceneObject parent,\n\t\t\tStudio studio\n\t\t)\n\t{\n\t\tsuper(description, surfaceProperty, parent, studio);\n\t\tthis.centre = centre; //passes current sphere's center and radius\n\t\tthis.radius = radius;\n\t\tthis.inverse = inverse;\n\t}", "void setupSpheres() {\n\n // create a Switch for the spheres, allow switch changes\n spheresSwitch = new Switch(Switch.CHILD_ALL);\n spheresSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the Sphere with objColor ambient,\n // black emmissive, objColor diffuse and white specular coloring\n Material material = new Material(objColor, black, objColor, white, 32);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a sphere and put it into a shared group\n Sphere sphere = new Sphere(0.5f, appearance);\n SharedGroup sphereSG = new SharedGroup();\n sphereSG.addChild(sphere);\n\n // create a grid of spheres in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n for (int y = -2; y <= 2; y++) {\n for (int x = -2; x <= 2; x++) {\n TransformGroup tg = new TransformGroup();\n tmpVector.set(x * 1.2f, y * 1.2f, -0.1f);\n tmpTrans.set(tmpVector);\n tg.setTransform(tmpTrans);\n tg.addChild(new Link(sphereSG));\n spheresSwitch.addChild(tg);\n }\n }\n }", "private void generateSphere() {\n\t\tint segments = 14;\n\t\tint rings = 15; // Use an odd number of rings of faces so that halfway up the sphere is the middle of a ring and not a loop of edges\n\t\tverts = new Vector[segments * (rings - 1) + 2]; // There are rings + 1 rings of vertices, but the first and last of these are each a single vertex\n\t\tfaces = new int[2 * segments * (rings - 1)][3]; // Apart from the first and last, each ring has segments number of square faces, so 2 * segments triangular faces. The first and last each have segments triangular faces\n\t\tverts[0] = new Vector(3);\n\t\tverts[0].setElement(1, -1); // The lowest point of the sphere\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, 1}; // The last face involves the last vertex in the second ring and loops back to the first vertex in the second ring\n\t\t\t} else {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, i + 2}; // Triangles involving the lowest vertex and two consecutive vertices in the second ring of vertices\n\t\t\t}\n\t\t}\n\t\tdouble pitchIncrement = Math.PI / rings; // The increment in pitch (angle above horizontal) between rings of vertices\n\t\tdouble pitch = pitchIncrement - Math.PI / 2; // The lowest point had a pitch of -pi/2\n\t\tdouble headingIncrement = Math.PI * 2.0 / segments; // The increment in heading between segments\n\t\tdouble heading = -Math.PI;\n\t\tfor (int r = 0; r < rings - 1; r++) { // Last ring is a single point and must be treated separately\n\t\t\tdouble y = Math.sin(pitch); // The y co-ordinate for each vertex in this ring\n\t\t\tdouble modulus = Math.cos(pitch); // The radius of the circle which this ring lies on\n\t\t\tfor (int s = 0; s < segments; s++) {\n\t\t\t\tdouble x = modulus * Math.cos(heading); // x co-ordinate for the next vertex\n\t\t\t\tdouble z = modulus * Math.sin(heading); // z co-ordinate for the next vertex\n\t\t\t\tverts[segments * r + s + 1] = new Vector(3);\n\t\t\t\tverts[segments * r + s + 1].setElements(new double[] {x, y, z});\n\t\t\t\theading += headingIncrement;\n\t\t\t}\n\t\t\t// Make faces between the vertices just added and the next ring of vertices to be added\n\t\t\tif (r != rings - 2) { // The second to last ring doesn't make faces with the next ring up in the same way because the last ring is a single vertex\n\t\t\t\tfor (int i = 0; i < segments; i++) {\n\t\t\t\t\tif (i == segments - 1) { // The last two faces make use of the first vertex in the next ring by looping back to the start\n\t\t\t\t\t\t// Two faces in the same plane\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, segments * r + 1 + segments};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, segments * r + 1 + segments, segments * r + 1};\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Two faces that are in the same plane and appear as a quadrilateral\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, (segments * r + i + 1) + segments + 1};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments + 1, (segments * r + i + 1) + 1};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tpitch += pitchIncrement;\n\t\t}\n\t\tverts[verts.length - 1] = new Vector(3);\n\t\tverts[verts.length - 1].setElement(1, 1); // The last and highest vertex\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) { // Last face completes the ring and includes the last vertex of the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1};\n\t\t\t} else { // Faces involving the last vertex and two consecutive vertices in the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1 + i + 1};\n\t\t\t}\n\t\t}\n\t}", "private void setUp2SpheresScene() {\n camera = new Camera(\n new Point3D(0, 0, 9),\n new Point3D(0,0,0),\n new Point3D(0,1,0),\n Math.PI * 0.5, width, height\n );\n camera.moveForward(1.0);\n\n exposure = 1.0;\n ambientLight = new LightIntensity();\n ambientLight.red = 0.2;\n ambientLight.green = 0.2;\n ambientLight.blue = 0.2;\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.7, .7, .3),\n new RectFace(\n new Point3D(-1.1, 9.99, -5.0),\n new Point3D(1.1, 9.99, -5.0),\n new Point3D(-1.1, 9.99, -6.1)\n )\n ));\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.4, .3, .7),\n new RectFace(\n new Point3D(-4.1, 2.99, -5.0),\n new Point3D(-2.9, 2.99, -5.0),\n new Point3D(-4.1, 2.99, -6.1)\n )\n ));\n\n Material reflective = new Material();\n reflective.diffuseReflectivity.red = 0.2;\n reflective.diffuseReflectivity.green = 0.2;\n reflective.diffuseReflectivity.blue = 0.2;\n reflective.directReflectivity = LightIntensity.makeUniformRGB(0.5);\n\n Material glass = new Material();\n glass.diffuseReflectivity.red = 0.0;\n glass.diffuseReflectivity.green = 0.0;\n glass.diffuseReflectivity.blue = 0.0;\n glass.passthroughIntensity.red = 0.9;\n glass.passthroughIntensity.green = 0.9;\n glass.passthroughIntensity.blue = 0.9;\n glass.directReflectivity = LightIntensity.makeUniformRGB(0.1);\n glass.refractionIndex = 1.33;\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-5, -3, -5), 2.5), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(5, -3, -5), 2.5), new Material()));\n\n Box boundingBox = new Box(\n new Point3D(-10,10, 10),\n new Point3D(-10,10, -10),\n new Point3D(10,10, 10),\n new Point3D(-10,-10, 10)\n );\n\n Material leftWallMaterial = new Material();\n leftWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, 0.3);\n\n Material rightWallMaterial = new Material();\n rightWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, .7);\n\n Material frontWallMaterial = new Material();\n frontWallMaterial.diffuseReflectivity = new LightIntensity(0.3,0.3, 0.3);\n\n Material backWallMaterial = new Material();\n backWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, 0.3);\n\n Material topWallMaterial = new Material();\n topWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n\n Material bottomWallMaterial = new Material();\n bottomWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n\n try {\n bottomWallMaterial.texture = ImageIO.read(new File(\"C:\\\\Class_work\\\\checkerboard.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n solids.add(new RectFace.FaceSolid(boundingBox.left, leftWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.right, rightWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.front, frontWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.back, backWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.top, topWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.bottom, bottomWallMaterial));\n }", "private void setGeometryData() {\n // allocate vertices\n final int factorK = (innerRadius == 0 ? 1 : 2);\n final int verts = factorK * ((zSamples - 2) * (radialSamples) + 2); // rs + 1\n setVertexCoordsSize (verts);\n setNormalCoordsSize (verts);\n\n // generate geometry\n final double fInvRS = 1.0 / (radialSamples);\n final double fZFactor = 1.0 / (zSamples - 1); // 2.0 / (zSamples - 1);\n\n // Generate points on the unit circle to be used in computing the mesh\n // points on a sphere slice.\n final double[] afSin = new double[(radialSamples + 1)];\n final double[] afCos = new double[(radialSamples + 1)];\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fAngle = phi0 + dPhi * fInvRS * iR;\n afCos[iR] = Math.cos (fAngle);\n afSin[iR] = Math.sin (fAngle);\n }\n // afSin[radialSamples] = afSin[0];\n // afCos[radialSamples] = afCos[0];\n\n double radDiff = Math.abs (outerRadius - innerRadius);\n\n for ( int icnt = 0; icnt < 2; icnt++ ) {\n radius = (icnt == 0 ? innerRadius : outerRadius);\n if ( radius == 0.0 ) {\n continue;\n }\n double zNP = centerZ; // 0.0;\n double zSP = centerZ; // 0.0;\n\n // generate the sphere itself\n int i = 0;\n Vector3D tempVa;\n Vector3D kSliceCenter;\n\n for ( int iZ = 1; iZ < (zSamples - 1); iZ++ ) { // -1\n //final double fAFraction = 0.5 * Math.PI * (-1.0f + fZFactor * iZ); // in (-pi/2, pi/2)\n final double fAFraction = theta1 - iZ * fZFactor * dTheta;\n final double fZFraction = Math.sin (fAFraction); // in (-1,1)\n final double fZ = radius * fZFraction;\n\n // compute center of slice\n kSliceCenter = new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + fZ\n );\n\n // compute radius of slice\n final double fSliceRadius = Math.sqrt (\n Math.abs (\n radius * radius - fZ * fZ\n )\n );\n\n // compute slice vertices with duplication at end point\n Vector3D kNormal;\n final int iSave = i;\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fRadialFraction = iR * fInvRS; // in [0,1)\n final Vector3D kRadial = new Vector3D (\n afCos[iR],\n afSin[iR],\n 0\n );\n tempVa = new Vector3D (\n fSliceRadius * kRadial.getX (),\n fSliceRadius * kRadial.getY (),\n fSliceRadius * kRadial.getZ ()\n );\n\n zNP = Math.\n max (kSliceCenter.getZ (), zNP);\n zSP = Math.\n min (kSliceCenter.getZ (), zSP);\n\n putVertex (\n (kSliceCenter.getX () + tempVa.getX ()),\n (kSliceCenter.getY () + tempVa.getY ()),\n (kSliceCenter.getZ () + tempVa.getZ ())\n );\n tempVa = getVertexCoord (i);\n\n kNormal = new Vector3D (\n tempVa.getX () - center.getX (),\n tempVa.getY () - center.getY (),\n tempVa.getZ () - center.getZ ()\n );\n double mag = Math.sqrt (\n Math.pow (kNormal.getX (), 2) +\n Math.pow (kNormal.getY (), 2) +\n Math.pow (kNormal.getZ (), 2)\n );\n kNormal = new Vector3D (\n kNormal.getX () / mag,\n kNormal.getY () / mag,\n kNormal.getZ () / mag\n );\n if ( !viewInside ) {\n putNormal (\n kNormal.getX (),\n kNormal.getY (),\n kNormal.getZ ()\n );\n } else {\n putNormal (\n -kNormal.getX (),\n -kNormal.getY (),\n -kNormal.getZ ()\n );\n }\n i++;\n }\n\n// setVertexCoord(i, getVertexCoord(iSave));\n// setNormalCoord(i, getNormalCoord(iSave));\n putVertex (getVertexCoord (iSave));\n putNormal (getNormalCoord (iSave));\n i++;\n }\n\n // south pole\n if ( theta0 == -0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n (center.getZ () - radius)\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, -1));\n } else {\n putNormal (new Vector3D (0, 0, 1));\n }\n setNormalCount (i + 1);\n i++;\n }\n\n // north pole\n if ( theta1 == 0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + radius\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, 1));\n } else {\n putNormal (new Vector3D (0, 0, -1));\n }\n setNormalCount (i + 1);\n i++;\n }\n }\n\n }", "private void setUp9SpheresScene() {\n camera = new Camera(\n new Point3D(0, 0, 9),\n new Point3D(0,0,0),\n new Point3D(0,1,0),\n Math.PI * 0.5, width, height\n );\n camera.moveForward(1.0);\n\n exposure = 1.0;\n ambientLight = new LightIntensity();\n ambientLight.red = 0.2;\n ambientLight.green = 0.2;\n ambientLight.blue = 0.2;\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.7, .7, .7),\n new RectFace(\n new Point3D(-1.1, 9.99, -5.0),\n new Point3D(1.1, 9.99, -5.0),\n new Point3D(-1.1, 9.99, -6.0)\n )\n ));\n\n Material reflective = new Material();\n reflective.diffuseReflectivity.red = 0.2;\n reflective.diffuseReflectivity.green = 0.2;\n reflective.diffuseReflectivity.blue = 0.2;\n reflective.directReflectivity = LightIntensity.makeUniformRGB(0.5);\n\n Material glass = new Material();\n glass.diffuseReflectivity.red = 0.0;\n glass.diffuseReflectivity.green = 0.0;\n glass.diffuseReflectivity.blue = 0.0;\n glass.passthroughIntensity.red = 0.9;\n glass.passthroughIntensity.green = 0.9;\n glass.passthroughIntensity.blue = 0.9;\n glass.directReflectivity = LightIntensity.makeUniformRGB(0.1);\n glass.refractionIndex = 1.33;\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,0), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,2), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,4), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,0), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,2), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,4), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,0), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,2), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,4), 1), reflective));\n\n Box boundingBox = new Box(\n new Point3D(-10,10, 10),\n new Point3D(-10,10, -10),\n new Point3D(10,10, 10),\n new Point3D(-10,-10, 10)\n );\n\n Material leftWallMaterial = new Material();\n leftWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, 0.3);\n leftWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material rightWallMaterial = new Material();\n rightWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, .7);\n rightWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material frontWallMaterial = new Material();\n frontWallMaterial.diffuseReflectivity = new LightIntensity(0.3,0.3, 0.3);\n frontWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material backWallMaterial = new Material();\n backWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, 0.3);\n backWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material topWallMaterial = new Material();\n topWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n topWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material bottomWallMaterial = new Material();\n bottomWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n bottomWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n try {\n bottomWallMaterial.texture = ImageIO.read(new File(\"C:\\\\Class_work\\\\checkerboard.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n solids.add(new RectFace.FaceSolid(boundingBox.left, leftWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.right, rightWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.front, frontWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.back, backWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.top, topWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.bottom, bottomWallMaterial));\n }", "public Mesh() {\n this(DEFAULT_COORDS);\n }", "private Sphere renderPreviewStar() {\n int radius = 20;\n Sphere sphere = new Sphere(radius);\n\n PhongMaterial material = new PhongMaterial();\n material.setSelfIlluminationMap(PlanetarySystem.starExteriorMap);\n sphere.setMaterial(material);\n return sphere;\n }", "BlueSphere() {\n Random random = new Random();\n value[0] = random.nextInt(16) + 1;\n }", "public static void setScene() {\n\n Shape ground = new Plane(vec3(0.0, -1.0, 0.0), vec3(0, 1, -0.2), new Diffuse(new Vec3(1,1,1), white));\n \n /* Shape globe1 = new Sphere(vec3(0.0, 2, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe2 = new Sphere(vec3(2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe3 = new Sphere(vec3(-2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n*/\n Shape globe1T = new Sphere(vec3(0.0, 2, -2.0), 0.3, new Diffuse(new Vec3(1,1,1), white));\n // Shape globe2T = new Sphere(vec3(-0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1),yellow));\n // Shape globe3T = new Sphere(vec3(0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1), yellow));\n\n \n \n Shape globe4 = new Sphere(vec3(0.0, 2, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe5 = new Sphere(vec3(2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe6 = new Sphere(vec3(-2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n \n Shape globe7 = new Sphere(vec3(0.0, 2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe8 = new Sphere(vec3(2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe9 = new Sphere(vec3(-2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe7D = new Sphere(vec3(0.0, -2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n\n Shape globeC = new Sphere(vec3(0.0, 0.0, -6.0), 1.0, new Diffuse(new Vec3(1,1,1), red));\n \n ArrayList<Shape> shapes = new ArrayList<>();\n shapes.add(bg);\n shapes.add(ground);\n shapes.add(globe1T);\n // shapes.add(globe2T);\n // shapes.add(globe3T);\n //shapes.add(globe4);\n //shapes.add(globe5);\n shapes.add(globe7);\n shapes.add(globe8);\n shapes.add(globe9);\n shapes.add(globe7D);\n shapes.add(globeC);\n gr = new Group(shapes);\n /////////////////////////////--------------------------------------\n \n \n }", "@Test\n public void SphereTriangleInitial() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(0, 0, -1000), new Vector(0, 0, 1), new Vector(0, -1, 0)));\n scene.setDistance(1000);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(Color.BLACK, 0));\n\n scene.addGeometries(new Sphere(new Color(java.awt.Color.BLUE), new Material(0.5, 0.5, 30), //\n 60, new Point3D(0, 0, 200)), //\n new Triangle(new Color(java.awt.Color.BLUE), new Material(0.5, 0.5, 30), //\n new Point3D(-70, 40, 0), new Point3D(-40, 70, 0), new Point3D(-68, 68, 4)));\n\n scene.addLights(new PointLight(new Color(400, 240, 0),\n new Point3D(-100, 100, -200), 1, 1E-5, 1.5E-7).setRadius(15));\n\n ImageWriter imageWriter = new ImageWriter(\"sphereTriangleInitial\", 200, 200, 400, 400);\n Render render = new Render(imageWriter, scene).setSuperSampling(500).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "@Override\n\tpublic void create() {\n\t\tthis.mesh = new Mesh(VertexDataType.VertexArray, false, 4, 6, \n\t\t\t\tnew VertexAttribute(VertexAttributes.Usage.Position, 3, \"attr_position\"));\n\n\t\tmesh.setVertices(new float[] {\n\t\t\t\t-8192f, -512f, 0,\n\t\t\t\t8192f, -512f, 0,\n\t\t\t\t8192f, 512f, 0,\n\t\t\t\t-8192f, 512f, 0\n\t\t});\n\t\tmesh.setIndices(new short[] {0, 1, 2, 2, 3, 0});\n\n\t\t// creates the camera\n\t\tcamera = new OrthographicCamera(CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\n\t\t// Sets the positions of the camera\n\t\tcamera.position.set(CoordinateConverter.getCameraWidth()/2, CoordinateConverter.getCameraHeight()/2, 0);\n\t\tcamera.update();\n\n\t\t// Sets how much of the map that is shown on the screen\n\t\tglViewport = new Rectangle(0, 0, CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\t\t\n\t}", "private void drawCenterSphere() {\n\t\t//Draw sphere\n\t\tgl.glColor3d(0, 0, 0);\n\t\tgl.glEnable(GL2.GL_LIGHTING);\n\t\tglut.glutSolidSphere(0.01, 50, 50);\n\t}", "public PlayerSphere(float startX, float startY, GameScreen gameScreen) {\n super(startX, startY, 50.0f, 50.0f, gameScreen.getGame()\n .getAssetManager().getBitmap(\"Ball\"), gameScreen);\n }", "RedSphere() {\n Random random = new Random();\n for (int i = 0; i < 6; i++) {\n value[i] = random.nextInt(33) + 1;\n }\n }", "public static Scene scene8() {\r\n\t\t// Define basic properties of the scene\r\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */new Point(0.0, 2.0, 6.0),\r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0),\r\n\t\t\t\t\t\t/*Distance to plain =*/ 1.5)\r\n\t\t\t\t.initName(\"scene8\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initBackgroundColor(new Vec(0.81,0.93,1))\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(3);\r\n\t\t// Add Surfaces to the scene.\r\n\r\n\t\tShape plainShape = new Plain(new Vec(0.0,-1,0.0), new Point(0.0, -1, 0.0));\r\n\t\tMaterial plainMat = Material.getMetalMaterial().initKa(new Vec(0.2)).initReflectionIntensity(0.1);\r\n\t\tSurface plainSurface = new Surface(plainShape, plainMat);\r\n\t\tfinalScene.addSurface(plainSurface);\r\n\r\n\t\tShape transparentSphere = new Sphere(new Point(0, 10, -25), 10);\r\n\t\tMaterial transparentSphereMat = Material.getGlassMaterial(false)\r\n\t\t\t\t.initRefractionIndex(0).initReflectionIntensity(0.4).initKs(new Vec(1.0)).initKd(new Vec(0));\r\n\t\tSurface transparentSphereSurface = new Surface(transparentSphere, transparentSphereMat);\r\n\t\tfinalScene.addSurface(transparentSphereSurface);\r\n\r\n\t\tdouble[] radiuses = new double[] { 0.3, 0.8, 1, 1.5, 2, 1.4, 0.2, 0.9, 1.2, 2.1 };\r\n\r\n\t\tfor (int i = -10; i < 10; i+=3) {\r\n\t\t\tint sphereCenterZ = -5 + (int)(Math.random() * 3);\r\n\t\t\tint radiusIndex = (int)(Math.random() * 10);\r\n\t\t\tdouble radius = radiuses[radiusIndex];\r\n\t\t\tShape distantSphere1 = new Sphere(new Point(i, radiuses[radiusIndex] - 1, sphereCenterZ), radius);\r\n\t\t\tMaterial distantSphere1Mat = Material.getRandomMaterial();\r\n\t\t\tSurface distantSphere1Surface = new Surface(distantSphere1, distantSphere1Mat);\r\n\t\t\tfinalScene.addSurface(distantSphere1Surface);\r\n\t\t}\r\n\r\n\t\t// Add light sources:\r\n\t\tLight dirLight = new DirectionalLight(new Vec(-4.0, -1.0, -2.5), new Vec(0.3));\r\n\t\tfinalScene.addLightSource(dirLight);\r\n\r\n\t\tdirLight = new DirectionalLight(new Vec(-4.0, -1.0, -2.5), new Vec(0.3));\r\n\t\tfinalScene.addLightSource(dirLight);\r\n\r\n\t\treturn finalScene;\r\n\t}", "public void makeSphere (float radius, int slices, int stacks)\r\n {\r\n \t\r\n \tPoint lower[][] = new Point[stacks + 1][slices + 1];\r\n \tfloat rad[] = new float[stacks + 1];\r\n \tfloat vert = -0.5f;\r\n \t\r\n \t// Calculate radius for each stack\r\n \tfor(int i = 0; i <= stacks; i ++)\r\n \t{\r\n \t\trad[i] = (float)Math.sqrt((0.5f * 0.5f) - (( 0.5f - ( ( 1.0f/(float)stacks) * i ) ) * ( 0.5f - ( ( 1.0f/(float)stacks) * i ) ) ));\r\n\t\t}\r\n \t\r\n \tvert = -0.5f;\r\n \t\r\n \t// Calculate the vertices for each stack\r\n \tfor(int i = 0; i <= stacks; i ++ )\r\n \t{\r\n \t\tfor(int j = 0; j <= slices; j ++)\r\n \t\t{\r\n \t\t\tlower[i][j] = new Point();\r\n \t\t\tlower[i][j].x = rad[i] * (float)Math.cos(Math.toRadians ( (360.0f / (float)slices) * j ) );\r\n \t\t\tlower[i][j].z = rad[i] * (float)Math.sin(Math.toRadians ( (360.0f / (float)slices) * j ) );\r\n \t\t\tlower[i][j].y = vert;\r\n \t\t}\r\n \t\t// Update the y coordinate for the next stack\r\n \t\tvert += (1.0f / (float)stacks);\r\n \t}\r\n \t\r\n \t\r\n \t// Print all the triangles using the vertices\r\n \tfor(int i = 0 ; i < stacks; i++)\r\n \t\tfor(int j = 0 ; j < slices; j++)\r\n \t\t{\r\n \t\t\tthis.addTriangle(lower[i][j].x, lower[i][j].y, lower[i][j].z, lower[i][j+1].x, lower[i][j+1].y, lower[i][j+1].z, lower[i+1][j+1].x, lower[i+1][j+1].y, lower[i+1][j+1].z);\r\n \t\t\tthis.addTriangle(lower[i][j].x, lower[i][j].y, lower[i][j].z, lower[i+1][j+1].x, lower[i+1][j+1].y, lower[i+1][j+1].z, lower[i+1][j].x, lower[i+1][j].y, lower[i+1][j].z);\r\n \t\t}\r\n }", "public VolcanoWorld() {\n this(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n }", "public float getSphereRadius();", "private void construct(){\n TriangleMesh mesh;\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/bunny.obj\");\n mesh.setMaterial(new MaterialNode(0.1f, 0.1f, .5f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/cube.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 0, 0));\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/teddy.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 0, 1, 0));\n mesh.setMaterial(new MaterialNode(0.1f, .5f, 0.1f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/sphere.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 1, 0));\n mesh.setMaterial(new MaterialNode(1, 0, 0, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n scene.calculateNormals();\n scene.setupRendering();\n }", "public Mesh() {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = new ArrayList<Vertex>();\r\n tris = new ArrayList<Triangle>();\r\n }", "public DiscMesh() {\n this(1f, 25);\n }", "public CubeEarth() {\n this(1, null);\n }", "void setupGrid() {\n\n // create a Switch for the spheres, allow switch changes\n gridSwitch = new Switch(Switch.CHILD_NONE);\n gridSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the square3s with red ambient,\n // black emmissive, red diffuse and black specular coloring\n Material material = new Material(red, black, red, black, 64);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a grid of quads\n int gridSize = 20; // grid is gridSize quads along each side\n int numQuads = gridSize * gridSize;\n int numVerts = numQuads * 4; // 4 verts per quad\n // there will be 3 floats per coord and 4 coords per quad\n float[] coords = new float[3 * numVerts];\n // All the quads will use the same normal at each vertex, so\n // allocate an array to hold references to the same normal\n Vector3f[] normals = new Vector3f[numVerts];\n Vector3f vertNormal = new Vector3f(0.0f, 0.0f, 1.0f);\n float edgeLength = 5.0f; // length of each edge of the grid\n float gridGap = 0.03f; // the gap between each quad\n // length of each quad is (total length - sum of the gaps) / gridSize\n float quadLength = (edgeLength - gridGap * (gridSize - 1)) / gridSize;\n\n // create a grid of quads in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n float curX, curY;\n for (int y = 0; y < gridSize; y++) {\n curY = y * (quadLength + gridGap); // offset to lower left corner\n curY -= edgeLength / 2; // center on 0,0\n for (int x = 0; x < gridSize; x++) {\n // this is the offset into the vertex array for the first\n // vertex of the quad\n int vertexOffset = (y * gridSize + x) * 4;\n // this is the offset into the coord array for the first\n // vertex of the quad, where there are 3 floats per vertex\n int coordOffset = vertexOffset * 3;\n curX = x * (quadLength + gridGap); // offset to ll corner\n curX -= edgeLength / 2; // center on 0,0\n // lower left corner\n coords[coordOffset + 0] = curX;\n coords[coordOffset + 1] = curY;\n coords[coordOffset + 2] = 0.0f; // z\n // lower right corner\n coords[coordOffset + 3] = curX + quadLength;\n coords[coordOffset + 4] = curY;\n coords[coordOffset + 5] = 0.0f; // z\n // upper right corner\n coords[coordOffset + 6] = curX + quadLength;\n coords[coordOffset + 7] = curY + quadLength;\n coords[coordOffset + 8] = 0.0f; // z\n // upper left corner\n coords[coordOffset + 9] = curX;\n coords[coordOffset + 10] = curY + quadLength;\n coords[coordOffset + 11] = 0.0f; // z\n for (int i = 0; i < 4; i++) {\n normals[vertexOffset + i] = vertNormal;\n }\n }\n }\n // now that we have the data, create the QuadArray\n QuadArray quads = new QuadArray(numVerts, QuadArray.COORDINATES\n | QuadArray.NORMALS);\n quads.setCoordinates(0, coords);\n quads.setNormals(0, normals);\n\n // create the shape\n Shape3D shape = new Shape3D(quads, appearance);\n\n // add it to the switch\n gridSwitch.addChild(shape);\n }", "public Scene() {}", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "protected SphereRayIntersection(Point3D point, double distance, boolean outer, Sphere sphere) {\n\t\t\tsuper(point, distance, outer);\n\t\t\tthis.sphere = sphere;\n\t\t}", "private MeshUtil() {}", "protected Geometry buildSimpleShape(\r\n \tfloat\t\tpLength\r\n ,\tboolean\t\tpRotate\r\n ) {\n Material mat_csg = new Material( assetManager, \"Common/MatDefs/Misc/ShowNormals.j3md\" );\r\n \tif ( pLength > 0 ) {\r\n \tGeometry aCylinder = new Geometry( \"Cylinder\", new Cylinder( 32, 32, 1.1f, pLength, true ) );\r\n \taCylinder.setMaterial( mat_csg );\r\n\t \tif ( pRotate ) aCylinder.rotate( 0.4f, 0.4f, 0f );\r\n\t \treturn( aCylinder );\r\n \t\t\r\n \t} else {\r\n \t\t// Just a cube\r\n\t \tGeometry aCube = new Geometry( \"Box\", new Box(1,1,1) );\r\n\t \taCube.setMaterial( mat_csg );\r\n\t\r\n\t \tif ( pRotate ) aCube.rotate( 0.4f, 0.4f, 0f );\r\n\t \treturn( aCube );\r\n \t}\r\n\r\n }", "public Camera() {\r\n this(1, 1);\r\n }", "public BoundingSphere set(Vec3 center, double radius) {\n if (center == null) {\n throw new IllegalArgumentException(\n Logger.logMessage(Logger.ERROR, \"BoundingSphere\", \"set\", \"missingPoint\"));\n }\n\n if (radius < 0) {\n throw new IllegalArgumentException(\n Logger.logMessage(Logger.ERROR, \"BoundingSphere\", \"set\", \"invalidRadius\"));\n }\n\n this.center.set(center);\n this.radius = radius;\n return this;\n }", "public static Scene scene4() {\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */new Point(0.0, 2.0, 6.0), \r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0), \r\n\t\t\t\t\t\t/*Distance to plain =*/ 2.0)\r\n\t\t\t\t.initName(\"scene4\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(6);\r\n // Add Surfaces to the scene.\r\n\t\t\r\n\t\t// (2) Add two domes to make it look like we split a sphere in half. \r\n\t\tShape domeShape = new Dome(new Point(2.0, 0.0, -10.0), 5.0, new Vec(1.0, 0.0, 0.0));\r\n\t\tMaterial domeMat = Material.getRandomMaterial();\r\n\t\tSurface domeSurface = new Surface(domeShape, domeMat);\r\n\t\tfinalScene.addSurface(domeSurface);\r\n\t\t\r\n\t\tdomeShape = new Dome(new Point(-2.0, 0.0, -10.0), 5.0, new Vec(-1.0, 0.0, 0.0));\r\n\t\tdomeSurface = new Surface(domeShape, domeMat);\r\n\t\tfinalScene.addSurface(domeSurface);\r\n\t\t\r\n\t\t// Add light sources:\r\n\t\tCutoffSpotlight cutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 75.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(0.0, 6.0, -10.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(.5,0.5,0.5));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\t\r\n\t\treturn finalScene;\r\n\t}", "@Test\n public void trianglesTransparentSphere() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(0, 0, -1000), new Vector(0, 0, 1), new Vector(0, -1, 0)));\n scene.setDistance(1000);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //Right triangle\n new Point3D(-150, 150, 115), new Point3D(150, 150, 135), new Point3D(75, -75, 150)), //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //\n new Point3D(-150, 150, 115), new Point3D(-70, -70, 140), new Point3D(75, -75, 150)), //\n new Sphere(new Color(java.awt.Color.BLUE), new Material(0.2, 0.2, 30, 0, 0.3), // )\n 30, new Point3D(60, -50, 50)),\n new Triangle(Color.BLACK, new Material(0.3, 0.3, 30), new Point3D(-30, 20, 100),\n new Point3D(-15, 30, 95), new Point3D(17, 87, 122)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //\n new Point3D(60, -50, 0), 1, 4E-5, 2E-7, new Vector(0, 0, 1)).setRadius(12));\n\n ImageWriter imageWriter = new ImageWriter(\"soft shadow without transparency + triangle between - 500Ray 12Radius\", 200, 200, 600, 600);\n Render render = new Render(imageWriter, scene).setSuperSampling(500).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "public CarrierShape()\n {\n super();\n }", "public WaveSystem()\n\t{\n\t\t\n\t}", "public DiscMesh(float radius, int numVertices) {\n Validate.nonNegative(radius, \"radius\");\n Validate.inRange(\n numVertices, \"number of vertices\", 3, Integer.MAX_VALUE);\n\n setMode(Mode.TriangleFan);\n\n float[] normals = new float[numAxes * numVertices];\n float[] positions = new float[numAxes * numVertices];\n float[] texCoords = new float[2 * numVertices];\n\n for (int vi = 0; vi < numVertices; ++vi) {\n normals[numAxes * vi] = 0f;\n normals[numAxes * vi + 1] = 0f;\n normals[numAxes * vi + 2] = 1f;\n\n float theta = FastMath.TWO_PI * vi / numVertices;\n float sin = FastMath.sin(theta);\n float cos = FastMath.cos(theta);\n positions[numAxes * vi] = radius * cos;\n positions[numAxes * vi + 1] = radius * sin;\n positions[numAxes * vi + 2] = 0f;\n\n texCoords[2 * vi] = (1f + cos) / 2f;\n texCoords[2 * vi + 1] = (1f + sin) / 2f;\n }\n\n setBuffer(Type.Normal, numAxes, normals);\n setBuffer(Type.Position, numAxes, positions);\n setBuffer(Type.TexCoord, 2, texCoords);\n\n updateBound();\n setStatic();\n }", "public Vector() {\n construct();\n }", "public EarthGeometry(){\n\t\tgcl1 = new GeodeticCalculator();\n\t\trnd1 = new Random(56789);\n\t}", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "Spherical(final ParameterValueGroup parameters, final ParameterDescriptorGroup descriptor)\r\n throws ParameterNotFoundException\r\n {\r\n super(parameters, descriptor);\r\n ensureSpherical();\r\n }", "public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }", "public OpenGLModel() {\n\n\n\t}", "public Asteroid() {\n\t\t// create, seed random number\n\t\trandomNumber = new Random();\n\n\t\t// random location\n\t\tlocation = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE);\n\n\t\t// random movement vector\n\t\tmovement = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED,\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED);\n\t\t\n\t\t// random radius\n\t\tsize = randomNumber.nextInt() % 20 + 1;\n\t\t\n\t\t// create Sphere\n\t\tsphere = new Sphere(size, location);\n\n\t}", "public Solid() {\n\t\tthis.name = null;\n\t\tthis.facets = new ArrayList<Facet>(0);\n\t}", "public Point3d sampleHemisphere();", "@Test\n\tpublic void testSphereRadiusOne()\n\t{\n\t\tfinal EllipseRegionOfInterest ellipse = new EllipseRegionOfInterest( 3 );\n\t\tellipse.setOrigin( new double[] { 1, 1, 1 } );\n\t\tellipse.setRadius( 1 );\n\t\ttestEllipse( ellipse );\n\n\t}", "public QuadMesh\n (boolean isBeingSplit,\n Matrix4f cubeMatrix, \n\t\tVector3f color,\n\t\tboolean inAtmosphere, \n\t\tVector3f meshOffset, \n\t\tboolean inFrustum, \n\t\tfloat arcLengthOverSize, \n\t\tVector3f center, \n\t\tfloat intensity, \n\t\tTexture2D Heightmap, \n\t\tString f ,\n\t\tQuadMesh p, \n\t\tVector3f v1, \n\t\tVector3f v2, \n\t\tVector3f v3, \n\t\tVector3f v4,\n\t\tfloat size,\n\t\tint x, \n\t\tint y, \n\t\tboolean hasChildren, \n\t\tArrayList<QuadMesh> children, \n\t\tBoundingSphere sphere, \n\t\tGeometry mesh, \n\t\tVector3f faceIndex, \n\t\tfloat centerOff,\n\t\tGeometry bsp)\t\n{\n\t\tfirst = v1;\n\t\tsecond = v2;\n\t\tthird = v3;\n\t\tfourth = v4;\n\t\twidth = size;\n\t\tindex1 = x;\n\t\tindex2 = y;\n\t\tthis.hasChildren = hasChildren;\n\t\tthis.children = children;\n\t\tparent = p;\n\t\tface = f;\n\t\tthis.sphere = sphere;\n\t\tthis.mesh = mesh;\n\t\tthis.faceIndex = faceIndex;\n\t\tthis.centerOff = centerOff;\n\t\tthis.Heightmap = Heightmap;\n\t\tthis.intensity = intensity;\n\t\tthis.arcLengthOverSize = arcLengthOverSize;\n\t\tthis.center = center;\n\t\tthis.inFrustum = inFrustum;\n\t\tthis.meshOffset = meshOffset;\n\t\tthis.inAtmosphere = inAtmosphere;\n\t\tthis.color = color;\n\t\tthis.cubeMatrix = cubeMatrix;\n\t\tthis.bsp = bsp;\n\n\t\n\t}", "public World(double width, double height) {\n this.width = width;\n this.height = height;\n\n\n shapes = new Shape[3]; // an array of references (change to non-zero size)\n // Create the actual Shape objects (sub types)\n // ....\n\n shapes[0] = new Line(50,100,50,50, Color.BLUE);\n shapes[1] = new Circle(75,75,30,Color.BLACK);\n shapes[2] = new Rectangle(40,50,40,40,Color.GREEN);\n\n\n }", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "public Cylinder() {\n\t\tthis(1.0);\n\t}", "public MeshPart() {\n\t}", "public static Scene scene3() {\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */new Point(0.0, 2.0, 6.0), \r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0), \r\n\t\t\t\t\t\t/*Distance to plain =*/ 2.0)\r\n\t\t\t\t.initName(\"scene3\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(6);\r\n // Add Surfaces to the scene.\r\n\t\t// (1) A plain that represents the ground floor.\r\n\t\tShape plainShape = new Plain(new Vec(0.0,1.0,0.0), new Point(0.0, -1.0, 0.0));\r\n\t\tMaterial plainMat = Material.getMetalMaterial();\r\n\t\tSurface plainSurface = new Surface(plainShape, plainMat);\r\n\t\tfinalScene.addSurface(plainSurface);\r\n\t\t\r\n\t\t// (2) We will also add spheres to form a triangle shape (similar to a pool game). \r\n\t\tfor (int depth = 0; depth < 4; depth++) {\r\n\t\t\tfor(int width=-1*depth; width<=depth; width++) {\r\n\t\t\t\tShape sphereShape = new Sphere(new Point((double)width, 0.0, -1.0*(double)depth), 0.5);\r\n\t\t\t\tMaterial sphereMat = Material.getRandomMaterial();\r\n\t\t\t\tSurface sphereSurface = new Surface(sphereShape, sphereMat);\r\n\t\t\t\tfinalScene.addSurface(sphereSurface);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Add light sources:\r\n\t\tCutoffSpotlight cutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 45.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(4.0, 4.0, -3.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(1.0,0.6,0.6));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\tcutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 30.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(-4.0, 4.0, -3.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(0.6,1.0,0.6));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\tcutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 30.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(0.0, 4.0, 0.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(0.6,0.6,1.0));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\tDirectionalLight directionalLight=new DirectionalLight(new Vec(0.5,-0.5,0.0),new Vec(0.2));\r\n\t\tfinalScene.addLightSource(directionalLight);\r\n\t\t\r\n\t\treturn finalScene;\r\n\t}", "public static Scene scene7() {\r\n\t\tPoint cameraPosition = new Point(-3.0, 1.0, 6.0);\r\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */cameraPosition,\r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0),\r\n\t\t\t\t\t\t/*Distance to plain =*/ 2.0)\r\n\t\t\t\t.initName(\"scene7\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initBackgroundColor(new Vec(0.01,0.19,0.22))\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(3);\r\n\r\n\t\tShape plainShape = new Plain(new Vec(0.0,-4.3,0.0), new Point(0.0, -4.3, 0.0));\r\n\t\tMaterial plainMat = Material.getMetalMaterial()\r\n\t\t\t\t.initKa(new Vec(0.11,0.09,0.02)).initReflectionIntensity(0.1);\r\n\t\tSurface plainSurface = new Surface(plainShape, plainMat);\r\n\t\tfinalScene.addSurface(plainSurface);\r\n\r\n\t\tShape transparentSphere = new Sphere(new Point(1.5, 0, -3.5), 4);\r\n\t\tMaterial transparentSphereMat = Material.getGlassMaterial(true)\r\n\t\t\t\t.initRefractionIntensity(0.8).initRefractionIndex(1.35).initReflectionIntensity(0.4);\r\n\t\tSurface transparentSphereSurface = new Surface(transparentSphere, transparentSphereMat);\r\n\t\tfinalScene.addSurface(transparentSphereSurface);\r\n\r\n\t\tPoint sunPosition = new Point(0, 3, -45);\r\n\t\tShape sunDome = new Dome(sunPosition, 8, new Vec(0, 1, 0));\r\n\t\tMaterial sunDomeMat = Material.getMetalMaterial().initKa(new Vec(0.95,0.84,0.03));\r\n\t\tSurface sunDomeSurface = new Surface(sunDome, sunDomeMat);\r\n\t\tfinalScene.addSurface(sunDomeSurface);\r\n\r\n\t\tVec sunDirection = cameraPosition.sub(sunPosition);\r\n\t\tLight sunLight = new DirectionalLight(sunDirection, new Vec(0.95,0.84,0.03));\r\n\t\tfinalScene.addLightSource(sunLight);\r\n\r\n\t\treturn finalScene;\r\n\t}", "public Vector3 () {\n }", "public Vector3D() {\n zero();\n }", "@Override\n\t\tpublic void create() {\n\t\t\tcannon = new CannonLogic();\n\t\t\tlines = new LineLogic();\n\t\t\tboxes = new BoxLogic();\n\t\t\tcontroller = new PlayerController();\n\t\t\tshapeList = new ArrayList<Shape>();\n\t\t\t\n\t\t\tGdx.gl11.glEnableClientState(GL11.GL_VERTEX_ARRAY);\n\t\t\tGdx.gl11.glClearColor(0.4f, 0.6f, 1.0f, 1.0f);\n\t\t\tvertexBuffer = BufferUtils.newFloatBuffer(8);\n\t\t\tvertexBuffer.put(new float[] {-50,-50, -50,50, 50,-50, 50,50});\n\t\t\tvertexBuffer.rewind();\n\t\t}", "public StarsMesh() {\r\n\r\n\t\tvertices = new float[star_count * 3];\r\n\t\tindices = new short[star_count];\r\n\r\n\t\tRandom gen = new Random(System.currentTimeMillis());\r\n\r\n\t\tfor (int x = 0; x < star_count * 3; x += 3) {\r\n\t\t\tint rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(250) - 125) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(130) - 65) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 1] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(200) - 100) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 2] = rand;\r\n\r\n\t\t\t// vertices[x+2] = 0;\r\n\r\n\t\t\tindices[x / 3] = (short) ((short) x / 3);\r\n\t\t}\r\n\r\n\t\tByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);\r\n\t\tvbb.order(ByteOrder.nativeOrder());\r\n\t\tvertexBuffer = vbb.asFloatBuffer();\r\n\t\tvertexBuffer.put(vertices);\r\n\t\tvertexBuffer.position(0);\r\n\r\n\t\tByteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2);\r\n\t\tibb.order(ByteOrder.nativeOrder());\r\n\t\tindexBuffer = ibb.asShortBuffer();\r\n\t\tindexBuffer.put(indices);\r\n\t\tindexBuffer.position(0);\r\n\t}", "public void displayTown(Group parent, String name, float latitude, float longitude, PhongMaterial material, double scale) {\n Sphere sphere = new Sphere(0.002);\n Point3D city = geoCoordTo3dCoord(latitude, longitude);\n\n // Transformations on the sphere\n sphere.setTranslateX(city.getX());\n sphere.setTranslateY(city.getY());\n sphere.setTranslateZ(city.getZ());\n sphere.setScaleX(scale);\n sphere.setScaleY(scale);\n sphere.setScaleZ(scale);\n sphere.setMaterial(material);\n\n sphere.setId(name);\n\n parent.getChildren().add(sphere);\n }", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n PerspectiveCamera camera = new PerspectiveCamera(true);\n camera.setTranslateZ(-10000);\n camera.setNearClip(0.1);\n camera.setFarClip(100000.0);\n\n //Creates group that holds sphere\n Group group = new Group();\n //Create subscene that holds group\n SubScene world = new SubScene(group, 3.0 * WIDTH / 4.0, HEIGHT, true, SceneAntialiasing.DISABLED);\n\n //Container for controls\n VBox controls = new VBox(10);\n controls.setAlignment(Pos.TOP_CENTER);\n controls.setPadding(new Insets(10, 0, 0, 0));\n\n //Slider that changes G value\n Label gLabel = new Label(\"Gravitational Constant\");\n Slider gConstant = new Slider(.001, 100000, 6.67408 * Math.pow(10, 2));\n gConstant.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n VectorUpdater.G = newValue.doubleValue();\n }\n });\n\n //Slider that changes simulation speed\n Label timeLabel = new Label(\"Simulation Speed\");\n Slider timeConstant = new Slider(0, 10, 0);\n timeConstant.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n delay = newValue.longValue();\n }\n });\n\n //Slider the controls zoom\n Label zoomLabel = new Label(\"Zoom\");\n Slider zoom = new Slider(-50000, 10000, -10000);\n zoom.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n camera.setTranslateZ(newValue.doubleValue());\n }\n });\n\n //All control text fields\n TextField massField = new TextField(\"Mass\");\n TextField radiusField = new TextField(\"Radius\");\n TextField x = new TextField(\"X Coordinate\");\n TextField y = new TextField(\"Y Coordinate\");\n TextField z = new TextField(\"Z Coordinate\");\n TextField vx = new TextField(\"X Velocity\");\n TextField vy = new TextField(\"Y Velocity\");\n TextField vz = new TextField(\"Z Velocity\");\n Label pad = new Label();\n pad.setPrefHeight(40);\n\n //Control buttons\n Button addSphere = new Button(\"Add Sphere\");\n HBox buttons = new HBox(5);\n Button toggle = new Button(\"Start\");\n Button clear = new Button(\"Clear\");\n buttons.setAlignment(Pos.CENTER);\n buttons.getChildren().addAll(toggle, clear);\n\n //Adds items to control menu\n controls.getChildren().addAll(massField, radiusField, x, y, z, vx, vy, vz, addSphere, pad, gLabel, gConstant, timeLabel,\n timeConstant, zoomLabel, zoom, buttons);\n\n //Animates program\n AnimationTimer timer = new AnimationTimer() {\n long time = System.nanoTime();\n\n @Override\n public void handle(long now) {\n if ((now - time) * Math.pow(10, -7) > delay) {\n VectorUpdater.updateVectors(spheres, 0.017);\n for (PhysicalSphere sphere : spheres) {\n double dx = sphere.getVelocityVector().getX() * 0.017;\n double dy = sphere.getVelocityVector().getY() * 0.017;\n double dz = sphere.getVelocityVector().getZ() * 0.017;\n sphere.setTranslateX(sphere.getTranslateX() + dx);\n sphere.setTranslateY(sphere.getTranslateY() + dy);\n sphere.setTranslateZ(sphere.getTranslateZ() + dz);\n }\n time = now;\n }\n }\n };\n\n\n addSphere.setOnAction(event -> {\n //Checks all text fields and formats ones that are not numbers\n for (Node field : controls.getChildren()) {\n if (field instanceof TextField) {\n try {\n Double.parseDouble(((TextField) field).getText());\n } catch (Exception e) {\n ((TextField) field).setText(\"0\");\n }\n }\n }\n //Velocity vector\n Point3D velocity = new Point3D(Double.parseDouble(vx.getText()), Double.parseDouble(vy.getText()),\n Double.parseDouble(vz.getText()));\n double mass = Double.parseDouble(massField.getText());\n double radius = Double.parseDouble(radiusField.getText());\n if(mass == 0)\n mass = 500;\n if(radius == 0)\n radius = 500;\n PhysicalSphere sphere = new PhysicalSphere(radius, mass, velocity);\n group.getChildren().add(sphere);\n sphere.setTranslateX(Double.parseDouble(x.getText()));\n sphere.setTranslateY(Double.parseDouble(y.getText()));\n sphere.setTranslateZ(Double.parseDouble(z.getText()));\n spheres.add(sphere);\n massField.setText(\"Mass\");\n radiusField.setText(\"Radius\");\n vx.setText(\"X Velocity\");\n vy.setText(\"Y Velocity\");\n vz.setText(\"Z Velocity\");\n x.setText(\"X Coordinate\");\n y.setText(\"Y Coordinate\");\n z.setText(\"Z Coordinate\");\n });\n\n //Clears spheres\n clear.setOnAction(event -> {\n group.getChildren().clear();\n spheres.clear();\n });\n\n //Toggles timer\n toggle.setOnAction(event -> {\n if (toggle.getText().equals(\"Start\")) {\n timer.start();\n toggle.setText(\"Stop\");\n } else {\n timer.stop();\n toggle.setText(\"Start\");\n }\n });\n\n //Gets anchor\n world.setOnMousePressed(event -> {\n anchorX = event.getSceneX();\n anchorY = event.getSceneY();\n });\n\n //Adds drag amount to anchor\n world.setOnMouseDragged(event -> {\n camera.setTranslateX(cameraX + (anchorX - event.getSceneX()) * 10);\n camera.setTranslateY(cameraY + (anchorY - event.getSceneY()) * 10);\n });\n\n //Logs new camera location\n world.setOnMouseReleased(event -> {\n cameraX = camera.getTranslateX();\n cameraY = camera.getTranslateY();\n });\n\n //Create border layout\n BorderPane layout = new BorderPane();\n layout.setPadding(new Insets(0, 10, 0, 10));\n layout.setCenter(world);\n layout.setRight(controls);\n\n //Create main scene and add layout\n Scene scene = new Scene(layout, WIDTH, HEIGHT, true);\n world.setFill(Color.LIGHTSTEELBLUE);\n world.setCamera(camera);\n\n //Make the main stage\n primaryStage.setTitle(\"3D Physics Simulation\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "public Vector3<T> build() {\n return new Vector3<>(x, y, z);\n }", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}", "public Vector3f getSphereCenter() {\n\t\tfloat[] arr = getMinMax();\n\t\t\n\t\treturn new Vector3f((arr[0]+arr[1])/2,(arr[2]+arr[3])/2,(arr[4]+arr[5])/2);\n\t}", "@Test\n public void bonusTMoveCamera2() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(3100, -3100, -2600), new Vector(-2, 2, 2), new Vector(-1, -2, 1)));\n scene.setDistance(600);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Plane(new Material(0.4, 0.1, 60, 0, 0), new Color(java.awt.Color.DARK_GRAY),\n new Point3D(0, 400, 100), new Vector(0, -1, 0)),\n new Polygon(Color.BLACK, new Material(0.2, 0.3, 200, 0.5, 0),\n new Point3D(-1, -300, 500), new Point3D(-1, -140, 500), new Point3D(1, -140, 500), new Point3D(1, -300, 500)),\n new Sphere(new Color(java.awt.Color.yellow), new Material(0.2, 0.2, 200, 0, 0.6), // )\n 80, new Point3D(-1, -120, 500)),\n new Polygon(Color.BLACK, new Material(0.2, 0.2, 200, 0.9, 0),\n new Point3D(-150, -150, 1999), new Point3D(-150, 200, 1999), new Point3D(150, 200, 1999), new Point3D(150, -150, 1999)),\n new Sphere(new Color(800, 0, 0), new Material(0.3, 0.5, 200, 0.2, 0), // )\n 140, new Point3D(300, 260, 600)),\n new Sphere(new Color(0, 0, 200), new Material(0.25, 0.25, 20, 0, 0.25), // )\n 140, new Point3D(-260, 260, 0)),\n new Sphere(new Color(400, 20, 20), new Material(0.2, 0.5, 200, 0, 0.3), // )\n 100, new Point3D(-600, 300, 1300)),\n new Triangle(new Color(100, 300, 100), new Material(0.25, 0.5, 100, 0.25, 0),\n new Point3D(-100, 400, 150), new Point3D(100, 400, 350), new Point3D(0, 200, 250)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //no. 1\n new Point3D(0, 0, -1500), 1, 4E-5, 2E-7, new Vector(0, 0, 1)).setRadius(15),\n new PointLight(new Color(200, 400, 200), new Point3D(0.001, -100, 499), 1, 4E-5, 2E-7).setRadius(15),//no.2\n new PointLight(new Color(200, 200, 400), new Point3D(0.001, -50, 1000), 1, 4E-5, 2E-7).setRadius(25));//no.3\n\n ImageWriter imageWriter = new ImageWriter(\"The magical room moving camera to right - soft shadow 5\", 200, 200, 1000, 1000);\n Render render = new Render(imageWriter, scene).setSuperSampling(400).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "public float sphereRadius() {\r\n\t\treturn LeapJNI.Hand_sphereRadius(this.swigCPtr, this);\r\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "private PhysicsEngine() {\n\n }", "public NewShape() {\r\n\t\tsuper();\r\n\t}", "public Mesh(Primitive shape) {\n\t\tswitch (shape) {\n\t\t\tcase CUBE:\n\t\t\t\tgenerateCube();\n\t\t\t\tbreak;\n\t\t\tcase CUBOID:\n\t\t\t\tgenerateCube();\n\t\t\t\tscale(2, 1, 1); // Stretch the cube along the x-axis to give a cuboid\n\t\t\t\tbreak;\n\t\t\tcase TRIANGULAR_PRISM:\n\t\t\t\tgeneratePrism();\n\t\t\t\tbreak;\n\t\t\tcase SPHERE:\n\t\t\t\tgenerateSphere();\n\t\t\t\tbreak;\n\t\t\tcase CONVEX_LENS:\n\t\t\t\tgenerateSphere();\n\t\t\t\tscale(0.6, 2, 2); // Increase the size (to allow a better demonstration of how the lens works) and then squash the sphere along the x-axis\n\t\t\t\tbreak;\n\t\t\tcase CONCAVE_LENS:\n\t\t\t\tgenerateSphere();\n\t\t\t\tscale(0.6, 2, 2); // Increase the size and squash along the x-axis\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < verts.length; i++) {\n\t\t\t\t\tif (verts[i].getElement(0) < -0.0001) { // Don't move points in the middle of the x-axis\n\t\t\t\t\t\tverts[i].setElement(0, verts[i].getElement(0) + 0.8); // Move points on the left to the right. This part still bulges out to the left, but when it is on the right it is concave\n\t\t\t\t\t} else if (verts[i].getElement(0) > 0.0001) {\n\t\t\t\t\t\tverts[i].setElement(0, verts[i].getElement(0) - 0.8); // Move points on the right to the left.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// The faces are 'inside out', so the ordering of the vertices must be reversed in order to make the normals point the correct way\n\t\t\t\tfor (int i = 0; i < faces.length; i++) {\n\t\t\t\t\t// Swap the first and last vertices (0 and 2)\n\t\t\t\t\tint temp = faces[i][0];\n\t\t\t\t\tfaces[i][0] = faces[i][2];\n\t\t\t\t\tfaces[i][2] = temp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase HALF_CYLINDER:\n\t\t\t\tgenerateHalfCylinder();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Mesh constructor cannot take a null primitive\");\n\t\t}\n\t\tnormals = new Vector[faces.length];\n\t\tds = new double[faces.length];\n\t\tfor (int i = 0; i < faces.length; i++) {\n\t\t\tnormals[i] = normal(faces[i]); // Calculate the normal for the face\n\t\t\tds[i] = verts[faces[i][0]].dotProduct(normals[i]); // Calculate the value of d for the face\n\t\t}\n\t\tcalcBoxVerts(); // Calculate and store the vertices of the AOBB\n\t}", "public Vector(double s, double d){\n\t\tthis.magnitude = s;\n\t\tthis.direction = d;\n\t\tthis.dX = this.magnitude * Math.cos(Math.toRadians(d));\n\t\tthis.dY = this.magnitude * Math.sin(Math.toRadians(d));\n\t\t\n\t}", "public float getSphereRadius() {\n\t\treturn sphereRadius;\n\t}", "public Object3D() {\n objectVectors = new ArrayList<>();\n linesToDraw = new ArrayList<>();\n }", "private void initMesh() {\n\t\tfloat[] vertices = { -1, -1, 0, 1, -1, 0, -1, 1, 0, 1, 1, 0 };\n\t\tfloat[] texCoords = { 0, 0, 1, 0, 0, 1, 1, 1 };\n\t\tint[] indices = { 0, 1, 2, 3 };\n\t\tmesh = new StaticMesh(gl, vertices, null, texCoords, indices);\n\t\tmesh.setPositionIndex(shader.getAttributeLocation(\"aVertexPosition\"));\n\t\tmesh.setNormalIndex(-1);\n\t\tmesh.setTexCoordIndex(shader.getAttributeLocation(\"aTextureCoord\"));\n\t\tmesh.setBeginMode(BeginMode.TRIANGLE_STRIP);\n\t}", "public Shape()\n\t{\n\t\tinitShape();\n\t}", "@Model\r\n\tpublic Vector() {\r\n\t\tthis(50,50);\r\n\t}", "public Astrocylinders() {\r\n\t\tsuper(CompartmentType.ASTROCYLINDERS.numParams);\r\n\t}", "public MeshLike() {\n this.vertices = new ArrayList<Vector3>();\n this.normals = new ArrayList<Vector3>();\n this.texCoords = new ArrayList<Vector2>();\n this.faces = new ArrayList<Face>();\n this.foundNormals = false;\n this.foundTexture = false;\n this.vOffset = 0;\n this.tOffset = 0;\n this.nOffset = 0;\n }", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "void drawSphere(GL2 gl,GLU glu, double r, int lats, int longs) {\n\n\n\n GLUquadric qobj = glu.gluNewQuadric();\n\n gl.glColor4f(0.0f, 0.0f, 1.0f,0.01f);\n glu.gluQuadricDrawStyle(qobj, GLU.GLU_LINE);\n glu.gluQuadricNormals(qobj, GLU.GLU_SMOOTH);\n\n glu.gluSphere(qobj, r, 70, 70);\n\n /*\n int i, j;\n for(i = 0; i <= lats; i++) {\n float lat0 = (float) (Math.PI * (-0.5 + (double) (i - 1) / lats));\n float z0 = (float) (Math.sin(lat0));\n float zr0 = (float) (Math.cos(lat0));\n\n float lat1 = (float) (Math.PI * (-0.5 + (double) i / lats));\n float z1 = (float) (Math.sin(lat1));\n float zr1 = (float) (Math.expm1(lat1));\n\n gl.glBegin(GL_LINE_STRIP);\n gl.glColor3f(0.0f, 1.0f, 1.0f);\n for(j = 0; j <= longs; j++) {\n float lng = (float) (2. * Math.PI * (double) (j - 1) / longs);\n float x = (float) (r*Math.cos(lng));\n float y = (float) (r*Math.sin(lng));\n\n\n\n gl.glNormal3f(x * z0, y * z0,(float)r* zr0);\n gl.glVertex3f(x * z0, y * z0, (float) r*zr0);\n //gl.glNormal3f(x * zr1, y * zr1, (float) r*z1);\n //gl.glVertex3f(x * zr1, y * zr1, (float)r*z1);\n }\n gl.glEnd();\n }\n */\n }", "public Circle() {\n this(0, 0, 1);\n }", "public Vector3(double x, double y,double z){\n \n double pytago;\n \n this.x = x;\n this.y = y;\n this.z = z;\n \n pytago = (x*x) + (y*y) + (z*z);\n \n magnitude = Math.sqrt(pytago);\n }", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }" ]
[ "0.8030763", "0.76636237", "0.7605225", "0.7444311", "0.7426951", "0.7362865", "0.7272577", "0.7209964", "0.71957666", "0.71188194", "0.68535614", "0.68015134", "0.67805344", "0.67471844", "0.67273146", "0.66277605", "0.65360475", "0.6412723", "0.63743776", "0.62904745", "0.6274285", "0.62541825", "0.6216187", "0.6202065", "0.61489934", "0.61429626", "0.60926646", "0.607476", "0.5999968", "0.5993744", "0.5976917", "0.59758544", "0.59548956", "0.5911719", "0.5882891", "0.5848175", "0.58310187", "0.5830929", "0.5800655", "0.5799568", "0.5763785", "0.57560843", "0.57158786", "0.57113254", "0.567038", "0.5649157", "0.56419814", "0.56407434", "0.56033736", "0.55984765", "0.55732155", "0.5564663", "0.55495495", "0.5543107", "0.5530953", "0.55276495", "0.5527065", "0.55259436", "0.5518302", "0.5517079", "0.55150914", "0.5512402", "0.5510589", "0.5501552", "0.54958075", "0.547004", "0.54698986", "0.54675555", "0.5461035", "0.54510343", "0.54499376", "0.54229015", "0.54222083", "0.54192835", "0.54171985", "0.54158515", "0.5414439", "0.54122555", "0.54107845", "0.540959", "0.540002", "0.53924936", "0.53871185", "0.53824", "0.53789437", "0.53786707", "0.5374406", "0.5352067", "0.5351582", "0.53475356", "0.5344332", "0.53366685", "0.5333492", "0.53296846", "0.5323411", "0.5318961", "0.5316618", "0.53163266", "0.53140646", "0.5313212" ]
0.6808615
11
This constructor builds a new Sphere.
public Sphere (final Material material) { super(material); this.c = new Point3(0,0,0); this.r = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sphere(){\n\t\tradius = 128;\n\t\tlightScale = 1;\n\t\tambientLight = 0.3;\t\t\t// Amount of ambient light\n\t\tdiffuseLight = 0.7;\t\t\t// Amount of diffuse light\n\t\tlightSource = new double[]{0, 0, 128};\t// Place light 128 units away from origin\n\t}", "public Sphere(final Material m) {\n super(m);\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public Sphere(float radius) {\n\t\tsuper();\n\t\tthis.radius = radius;\n\t}", "public Sphere(double nx, double ny, double nz, double size) {\n this.x = nx;\n this.y = ny;\n this.z = nz;\n this.radius = size;\n }", "public Sphere(double radius, Point3D center) {\n super(radius);\n _center = center;\n }", "public Sphere(Point3D c, double r)\r\n\t{\r\n\t\tsuper(r);\r\n\t\t_center = c;\r\n\t}", "public Sphere(String name, Material m, double radius, Vector3D pos){\n super();\n p = pos;\n r = radius;\n this.name = name;\n this.material = m;\n light = false;\n }", "public Sphere( double radius, Point3d center, Material material ) {\n \tsuper();\n \tthis.radius = radius;\n \tthis.center = center;\n \tthis.material = material;\n }", "public Sphere( double radius, Point3d center, Material material ) {\r\n \tsuper();\r\n \tthis.radius = radius;\r\n \tthis.center = center;\r\n \tthis.material = material;\r\n }", "public Pj3dSphere Sphere(int x)\r\n\t{\r\n \tPj3dSphere s = new Pj3dSphere(this, x);\r\n\t\treturn s;\r\n\t}", "public Sphere (final Point3 c, final double r, final Material material) {\n super(material);\n\n this.c = c;\n this.r = r;\n }", "public Sphere(Point3 c, double r, Material material) {\n\t\tsuper(material);\n\t\tthis.c = c;\n\t\tthis.r = r;\n\t}", "public Sphere(Point3D c, double r, Color color, Material material)\r\n\t{\r\n\t\tthis(c,r, color);\r\n\t\tsuper._material = material;\r\n\t}", "public Sphere(Point3D c, double r, Color color)\r\n\t{\r\n\t\tthis(c, r);\r\n\t\tsuper._emission = color;\r\n\t}", "@Override\r\n protected void initModel() {\n model = new Sphere(\"projectil Model\", 5, 5, 0.2f);\r\n model.setModelBound(new BoundingBox());\r\n model.updateModelBound();\r\n }", "public RayTracer() {\n\t\tspheres = new ArrayList<Sphere>();\n\t\tspheres.add(new Sphere(-2.0f, 0.0f, -15.0f, 4.0f, 1.00f, 0.32f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(5.0f, 5.0f, -15.0f, 2.0f, 0.00f, 0.92f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(10.0f, -8.0f, -30.0f, 6.0f, 0.36f, 0.32f, 1.00f, 0.1f, 0.8f, 100.0f));\n\n\t\tlight = new Light(5.0f, 10.0f, 10.0f, 1.0f); // (x, y, z, intensity).\n\t\tcamera = new Camera(512, 512, 50.0f); // (width, height, fov).\n\t}", "public Sphere2(\n\t\t\tString description, Vector3D centre, double radius,\n\t\t\tboolean inverse,\n\t\t\tSurfaceProperty surfaceProperty,\n\t\t\tSceneObject parent,\n\t\t\tStudio studio\n\t\t)\n\t{\n\t\tsuper(description, surfaceProperty, parent, studio);\n\t\tthis.centre = centre; //passes current sphere's center and radius\n\t\tthis.radius = radius;\n\t\tthis.inverse = inverse;\n\t}", "private void generateSphere() {\n\t\tint segments = 14;\n\t\tint rings = 15; // Use an odd number of rings of faces so that halfway up the sphere is the middle of a ring and not a loop of edges\n\t\tverts = new Vector[segments * (rings - 1) + 2]; // There are rings + 1 rings of vertices, but the first and last of these are each a single vertex\n\t\tfaces = new int[2 * segments * (rings - 1)][3]; // Apart from the first and last, each ring has segments number of square faces, so 2 * segments triangular faces. The first and last each have segments triangular faces\n\t\tverts[0] = new Vector(3);\n\t\tverts[0].setElement(1, -1); // The lowest point of the sphere\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, 1}; // The last face involves the last vertex in the second ring and loops back to the first vertex in the second ring\n\t\t\t} else {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, i + 2}; // Triangles involving the lowest vertex and two consecutive vertices in the second ring of vertices\n\t\t\t}\n\t\t}\n\t\tdouble pitchIncrement = Math.PI / rings; // The increment in pitch (angle above horizontal) between rings of vertices\n\t\tdouble pitch = pitchIncrement - Math.PI / 2; // The lowest point had a pitch of -pi/2\n\t\tdouble headingIncrement = Math.PI * 2.0 / segments; // The increment in heading between segments\n\t\tdouble heading = -Math.PI;\n\t\tfor (int r = 0; r < rings - 1; r++) { // Last ring is a single point and must be treated separately\n\t\t\tdouble y = Math.sin(pitch); // The y co-ordinate for each vertex in this ring\n\t\t\tdouble modulus = Math.cos(pitch); // The radius of the circle which this ring lies on\n\t\t\tfor (int s = 0; s < segments; s++) {\n\t\t\t\tdouble x = modulus * Math.cos(heading); // x co-ordinate for the next vertex\n\t\t\t\tdouble z = modulus * Math.sin(heading); // z co-ordinate for the next vertex\n\t\t\t\tverts[segments * r + s + 1] = new Vector(3);\n\t\t\t\tverts[segments * r + s + 1].setElements(new double[] {x, y, z});\n\t\t\t\theading += headingIncrement;\n\t\t\t}\n\t\t\t// Make faces between the vertices just added and the next ring of vertices to be added\n\t\t\tif (r != rings - 2) { // The second to last ring doesn't make faces with the next ring up in the same way because the last ring is a single vertex\n\t\t\t\tfor (int i = 0; i < segments; i++) {\n\t\t\t\t\tif (i == segments - 1) { // The last two faces make use of the first vertex in the next ring by looping back to the start\n\t\t\t\t\t\t// Two faces in the same plane\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, segments * r + 1 + segments};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, segments * r + 1 + segments, segments * r + 1};\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Two faces that are in the same plane and appear as a quadrilateral\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, (segments * r + i + 1) + segments + 1};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments + 1, (segments * r + i + 1) + 1};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tpitch += pitchIncrement;\n\t\t}\n\t\tverts[verts.length - 1] = new Vector(3);\n\t\tverts[verts.length - 1].setElement(1, 1); // The last and highest vertex\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) { // Last face completes the ring and includes the last vertex of the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1};\n\t\t\t} else { // Faces involving the last vertex and two consecutive vertices in the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1 + i + 1};\n\t\t\t}\n\t\t}\n\t}", "void setupSpheres() {\n\n // create a Switch for the spheres, allow switch changes\n spheresSwitch = new Switch(Switch.CHILD_ALL);\n spheresSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the Sphere with objColor ambient,\n // black emmissive, objColor diffuse and white specular coloring\n Material material = new Material(objColor, black, objColor, white, 32);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a sphere and put it into a shared group\n Sphere sphere = new Sphere(0.5f, appearance);\n SharedGroup sphereSG = new SharedGroup();\n sphereSG.addChild(sphere);\n\n // create a grid of spheres in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n for (int y = -2; y <= 2; y++) {\n for (int x = -2; x <= 2; x++) {\n TransformGroup tg = new TransformGroup();\n tmpVector.set(x * 1.2f, y * 1.2f, -0.1f);\n tmpTrans.set(tmpVector);\n tg.setTransform(tmpTrans);\n tg.addChild(new Link(sphereSG));\n spheresSwitch.addChild(tg);\n }\n }\n }", "private Sphere renderPreviewStar() {\n int radius = 20;\n Sphere sphere = new Sphere(radius);\n\n PhongMaterial material = new PhongMaterial();\n material.setSelfIlluminationMap(PlanetarySystem.starExteriorMap);\n sphere.setMaterial(material);\n return sphere;\n }", "private void setUp2SpheresScene() {\n camera = new Camera(\n new Point3D(0, 0, 9),\n new Point3D(0,0,0),\n new Point3D(0,1,0),\n Math.PI * 0.5, width, height\n );\n camera.moveForward(1.0);\n\n exposure = 1.0;\n ambientLight = new LightIntensity();\n ambientLight.red = 0.2;\n ambientLight.green = 0.2;\n ambientLight.blue = 0.2;\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.7, .7, .3),\n new RectFace(\n new Point3D(-1.1, 9.99, -5.0),\n new Point3D(1.1, 9.99, -5.0),\n new Point3D(-1.1, 9.99, -6.1)\n )\n ));\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.4, .3, .7),\n new RectFace(\n new Point3D(-4.1, 2.99, -5.0),\n new Point3D(-2.9, 2.99, -5.0),\n new Point3D(-4.1, 2.99, -6.1)\n )\n ));\n\n Material reflective = new Material();\n reflective.diffuseReflectivity.red = 0.2;\n reflective.diffuseReflectivity.green = 0.2;\n reflective.diffuseReflectivity.blue = 0.2;\n reflective.directReflectivity = LightIntensity.makeUniformRGB(0.5);\n\n Material glass = new Material();\n glass.diffuseReflectivity.red = 0.0;\n glass.diffuseReflectivity.green = 0.0;\n glass.diffuseReflectivity.blue = 0.0;\n glass.passthroughIntensity.red = 0.9;\n glass.passthroughIntensity.green = 0.9;\n glass.passthroughIntensity.blue = 0.9;\n glass.directReflectivity = LightIntensity.makeUniformRGB(0.1);\n glass.refractionIndex = 1.33;\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-5, -3, -5), 2.5), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(5, -3, -5), 2.5), new Material()));\n\n Box boundingBox = new Box(\n new Point3D(-10,10, 10),\n new Point3D(-10,10, -10),\n new Point3D(10,10, 10),\n new Point3D(-10,-10, 10)\n );\n\n Material leftWallMaterial = new Material();\n leftWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, 0.3);\n\n Material rightWallMaterial = new Material();\n rightWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, .7);\n\n Material frontWallMaterial = new Material();\n frontWallMaterial.diffuseReflectivity = new LightIntensity(0.3,0.3, 0.3);\n\n Material backWallMaterial = new Material();\n backWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, 0.3);\n\n Material topWallMaterial = new Material();\n topWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n\n Material bottomWallMaterial = new Material();\n bottomWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n\n try {\n bottomWallMaterial.texture = ImageIO.read(new File(\"C:\\\\Class_work\\\\checkerboard.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n solids.add(new RectFace.FaceSolid(boundingBox.left, leftWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.right, rightWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.front, frontWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.back, backWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.top, topWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.bottom, bottomWallMaterial));\n }", "private void setUp9SpheresScene() {\n camera = new Camera(\n new Point3D(0, 0, 9),\n new Point3D(0,0,0),\n new Point3D(0,1,0),\n Math.PI * 0.5, width, height\n );\n camera.moveForward(1.0);\n\n exposure = 1.0;\n ambientLight = new LightIntensity();\n ambientLight.red = 0.2;\n ambientLight.green = 0.2;\n ambientLight.blue = 0.2;\n\n lightSources.add(\n new LightSource(\n new LightIntensity(.7, .7, .7),\n new RectFace(\n new Point3D(-1.1, 9.99, -5.0),\n new Point3D(1.1, 9.99, -5.0),\n new Point3D(-1.1, 9.99, -6.0)\n )\n ));\n\n Material reflective = new Material();\n reflective.diffuseReflectivity.red = 0.2;\n reflective.diffuseReflectivity.green = 0.2;\n reflective.diffuseReflectivity.blue = 0.2;\n reflective.directReflectivity = LightIntensity.makeUniformRGB(0.5);\n\n Material glass = new Material();\n glass.diffuseReflectivity.red = 0.0;\n glass.diffuseReflectivity.green = 0.0;\n glass.diffuseReflectivity.blue = 0.0;\n glass.passthroughIntensity.red = 0.9;\n glass.passthroughIntensity.green = 0.9;\n glass.passthroughIntensity.blue = 0.9;\n glass.directReflectivity = LightIntensity.makeUniformRGB(0.1);\n glass.refractionIndex = 1.33;\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,0), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,2), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-9,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-9,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-9,4), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,0), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,2), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-6,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-6,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-6,4), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,0), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,0), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,0), 1), reflective));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,2), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,2), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,2), 1), glass));\n\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(0,-3,4), 1), reflective));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-2,-3,4), 1), glass));\n solids.add(new Sphere.SphereSolid(new Sphere(new Point3D(-4,-3,4), 1), reflective));\n\n Box boundingBox = new Box(\n new Point3D(-10,10, 10),\n new Point3D(-10,10, -10),\n new Point3D(10,10, 10),\n new Point3D(-10,-10, 10)\n );\n\n Material leftWallMaterial = new Material();\n leftWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, 0.3);\n leftWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material rightWallMaterial = new Material();\n rightWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, .7);\n rightWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material frontWallMaterial = new Material();\n frontWallMaterial.diffuseReflectivity = new LightIntensity(0.3,0.3, 0.3);\n frontWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material backWallMaterial = new Material();\n backWallMaterial.diffuseReflectivity = new LightIntensity(.7,0.3, 0.3);\n backWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material topWallMaterial = new Material();\n topWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n topWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n Material bottomWallMaterial = new Material();\n bottomWallMaterial.diffuseReflectivity = new LightIntensity(.7,.7, .7);\n bottomWallMaterial.directReflectivity = LightIntensity.makeUniformRGB(.3);\n\n try {\n bottomWallMaterial.texture = ImageIO.read(new File(\"C:\\\\Class_work\\\\checkerboard.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n solids.add(new RectFace.FaceSolid(boundingBox.left, leftWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.right, rightWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.front, frontWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.back, backWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.top, topWallMaterial));\n solids.add(new RectFace.FaceSolid(boundingBox.bottom, bottomWallMaterial));\n }", "private void setGeometryData() {\n // allocate vertices\n final int factorK = (innerRadius == 0 ? 1 : 2);\n final int verts = factorK * ((zSamples - 2) * (radialSamples) + 2); // rs + 1\n setVertexCoordsSize (verts);\n setNormalCoordsSize (verts);\n\n // generate geometry\n final double fInvRS = 1.0 / (radialSamples);\n final double fZFactor = 1.0 / (zSamples - 1); // 2.0 / (zSamples - 1);\n\n // Generate points on the unit circle to be used in computing the mesh\n // points on a sphere slice.\n final double[] afSin = new double[(radialSamples + 1)];\n final double[] afCos = new double[(radialSamples + 1)];\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fAngle = phi0 + dPhi * fInvRS * iR;\n afCos[iR] = Math.cos (fAngle);\n afSin[iR] = Math.sin (fAngle);\n }\n // afSin[radialSamples] = afSin[0];\n // afCos[radialSamples] = afCos[0];\n\n double radDiff = Math.abs (outerRadius - innerRadius);\n\n for ( int icnt = 0; icnt < 2; icnt++ ) {\n radius = (icnt == 0 ? innerRadius : outerRadius);\n if ( radius == 0.0 ) {\n continue;\n }\n double zNP = centerZ; // 0.0;\n double zSP = centerZ; // 0.0;\n\n // generate the sphere itself\n int i = 0;\n Vector3D tempVa;\n Vector3D kSliceCenter;\n\n for ( int iZ = 1; iZ < (zSamples - 1); iZ++ ) { // -1\n //final double fAFraction = 0.5 * Math.PI * (-1.0f + fZFactor * iZ); // in (-pi/2, pi/2)\n final double fAFraction = theta1 - iZ * fZFactor * dTheta;\n final double fZFraction = Math.sin (fAFraction); // in (-1,1)\n final double fZ = radius * fZFraction;\n\n // compute center of slice\n kSliceCenter = new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + fZ\n );\n\n // compute radius of slice\n final double fSliceRadius = Math.sqrt (\n Math.abs (\n radius * radius - fZ * fZ\n )\n );\n\n // compute slice vertices with duplication at end point\n Vector3D kNormal;\n final int iSave = i;\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fRadialFraction = iR * fInvRS; // in [0,1)\n final Vector3D kRadial = new Vector3D (\n afCos[iR],\n afSin[iR],\n 0\n );\n tempVa = new Vector3D (\n fSliceRadius * kRadial.getX (),\n fSliceRadius * kRadial.getY (),\n fSliceRadius * kRadial.getZ ()\n );\n\n zNP = Math.\n max (kSliceCenter.getZ (), zNP);\n zSP = Math.\n min (kSliceCenter.getZ (), zSP);\n\n putVertex (\n (kSliceCenter.getX () + tempVa.getX ()),\n (kSliceCenter.getY () + tempVa.getY ()),\n (kSliceCenter.getZ () + tempVa.getZ ())\n );\n tempVa = getVertexCoord (i);\n\n kNormal = new Vector3D (\n tempVa.getX () - center.getX (),\n tempVa.getY () - center.getY (),\n tempVa.getZ () - center.getZ ()\n );\n double mag = Math.sqrt (\n Math.pow (kNormal.getX (), 2) +\n Math.pow (kNormal.getY (), 2) +\n Math.pow (kNormal.getZ (), 2)\n );\n kNormal = new Vector3D (\n kNormal.getX () / mag,\n kNormal.getY () / mag,\n kNormal.getZ () / mag\n );\n if ( !viewInside ) {\n putNormal (\n kNormal.getX (),\n kNormal.getY (),\n kNormal.getZ ()\n );\n } else {\n putNormal (\n -kNormal.getX (),\n -kNormal.getY (),\n -kNormal.getZ ()\n );\n }\n i++;\n }\n\n// setVertexCoord(i, getVertexCoord(iSave));\n// setNormalCoord(i, getNormalCoord(iSave));\n putVertex (getVertexCoord (iSave));\n putNormal (getNormalCoord (iSave));\n i++;\n }\n\n // south pole\n if ( theta0 == -0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n (center.getZ () - radius)\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, -1));\n } else {\n putNormal (new Vector3D (0, 0, 1));\n }\n setNormalCount (i + 1);\n i++;\n }\n\n // north pole\n if ( theta1 == 0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + radius\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, 1));\n } else {\n putNormal (new Vector3D (0, 0, -1));\n }\n setNormalCount (i + 1);\n i++;\n }\n }\n\n }", "private void drawCenterSphere() {\n\t\t//Draw sphere\n\t\tgl.glColor3d(0, 0, 0);\n\t\tgl.glEnable(GL2.GL_LIGHTING);\n\t\tglut.glutSolidSphere(0.01, 50, 50);\n\t}", "@Test\n public void SphereTriangleInitial() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(0, 0, -1000), new Vector(0, 0, 1), new Vector(0, -1, 0)));\n scene.setDistance(1000);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(Color.BLACK, 0));\n\n scene.addGeometries(new Sphere(new Color(java.awt.Color.BLUE), new Material(0.5, 0.5, 30), //\n 60, new Point3D(0, 0, 200)), //\n new Triangle(new Color(java.awt.Color.BLUE), new Material(0.5, 0.5, 30), //\n new Point3D(-70, 40, 0), new Point3D(-40, 70, 0), new Point3D(-68, 68, 4)));\n\n scene.addLights(new PointLight(new Color(400, 240, 0),\n new Point3D(-100, 100, -200), 1, 1E-5, 1.5E-7).setRadius(15));\n\n ImageWriter imageWriter = new ImageWriter(\"sphereTriangleInitial\", 200, 200, 400, 400);\n Render render = new Render(imageWriter, scene).setSuperSampling(500).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "public PlayerSphere(float startX, float startY, GameScreen gameScreen) {\n super(startX, startY, 50.0f, 50.0f, gameScreen.getGame()\n .getAssetManager().getBitmap(\"Ball\"), gameScreen);\n }", "public Mesh() {\n this(DEFAULT_COORDS);\n }", "BlueSphere() {\n Random random = new Random();\n value[0] = random.nextInt(16) + 1;\n }", "public static void setScene() {\n\n Shape ground = new Plane(vec3(0.0, -1.0, 0.0), vec3(0, 1, -0.2), new Diffuse(new Vec3(1,1,1), white));\n \n /* Shape globe1 = new Sphere(vec3(0.0, 2, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe2 = new Sphere(vec3(2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe3 = new Sphere(vec3(-2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n*/\n Shape globe1T = new Sphere(vec3(0.0, 2, -2.0), 0.3, new Diffuse(new Vec3(1,1,1), white));\n // Shape globe2T = new Sphere(vec3(-0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1),yellow));\n // Shape globe3T = new Sphere(vec3(0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1), yellow));\n\n \n \n Shape globe4 = new Sphere(vec3(0.0, 2, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe5 = new Sphere(vec3(2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe6 = new Sphere(vec3(-2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n \n Shape globe7 = new Sphere(vec3(0.0, 2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe8 = new Sphere(vec3(2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe9 = new Sphere(vec3(-2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe7D = new Sphere(vec3(0.0, -2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n\n Shape globeC = new Sphere(vec3(0.0, 0.0, -6.0), 1.0, new Diffuse(new Vec3(1,1,1), red));\n \n ArrayList<Shape> shapes = new ArrayList<>();\n shapes.add(bg);\n shapes.add(ground);\n shapes.add(globe1T);\n // shapes.add(globe2T);\n // shapes.add(globe3T);\n //shapes.add(globe4);\n //shapes.add(globe5);\n shapes.add(globe7);\n shapes.add(globe8);\n shapes.add(globe9);\n shapes.add(globe7D);\n shapes.add(globeC);\n gr = new Group(shapes);\n /////////////////////////////--------------------------------------\n \n \n }", "public float getSphereRadius();", "public void makeSphere (float radius, int slices, int stacks)\r\n {\r\n \t\r\n \tPoint lower[][] = new Point[stacks + 1][slices + 1];\r\n \tfloat rad[] = new float[stacks + 1];\r\n \tfloat vert = -0.5f;\r\n \t\r\n \t// Calculate radius for each stack\r\n \tfor(int i = 0; i <= stacks; i ++)\r\n \t{\r\n \t\trad[i] = (float)Math.sqrt((0.5f * 0.5f) - (( 0.5f - ( ( 1.0f/(float)stacks) * i ) ) * ( 0.5f - ( ( 1.0f/(float)stacks) * i ) ) ));\r\n\t\t}\r\n \t\r\n \tvert = -0.5f;\r\n \t\r\n \t// Calculate the vertices for each stack\r\n \tfor(int i = 0; i <= stacks; i ++ )\r\n \t{\r\n \t\tfor(int j = 0; j <= slices; j ++)\r\n \t\t{\r\n \t\t\tlower[i][j] = new Point();\r\n \t\t\tlower[i][j].x = rad[i] * (float)Math.cos(Math.toRadians ( (360.0f / (float)slices) * j ) );\r\n \t\t\tlower[i][j].z = rad[i] * (float)Math.sin(Math.toRadians ( (360.0f / (float)slices) * j ) );\r\n \t\t\tlower[i][j].y = vert;\r\n \t\t}\r\n \t\t// Update the y coordinate for the next stack\r\n \t\tvert += (1.0f / (float)stacks);\r\n \t}\r\n \t\r\n \t\r\n \t// Print all the triangles using the vertices\r\n \tfor(int i = 0 ; i < stacks; i++)\r\n \t\tfor(int j = 0 ; j < slices; j++)\r\n \t\t{\r\n \t\t\tthis.addTriangle(lower[i][j].x, lower[i][j].y, lower[i][j].z, lower[i][j+1].x, lower[i][j+1].y, lower[i][j+1].z, lower[i+1][j+1].x, lower[i+1][j+1].y, lower[i+1][j+1].z);\r\n \t\t\tthis.addTriangle(lower[i][j].x, lower[i][j].y, lower[i][j].z, lower[i+1][j+1].x, lower[i+1][j+1].y, lower[i+1][j+1].z, lower[i+1][j].x, lower[i+1][j].y, lower[i+1][j].z);\r\n \t\t}\r\n }", "RedSphere() {\n Random random = new Random();\n for (int i = 0; i < 6; i++) {\n value[i] = random.nextInt(33) + 1;\n }\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "protected SphereRayIntersection(Point3D point, double distance, boolean outer, Sphere sphere) {\n\t\t\tsuper(point, distance, outer);\n\t\t\tthis.sphere = sphere;\n\t\t}", "public static Scene scene8() {\r\n\t\t// Define basic properties of the scene\r\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */new Point(0.0, 2.0, 6.0),\r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0),\r\n\t\t\t\t\t\t/*Distance to plain =*/ 1.5)\r\n\t\t\t\t.initName(\"scene8\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initBackgroundColor(new Vec(0.81,0.93,1))\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(3);\r\n\t\t// Add Surfaces to the scene.\r\n\r\n\t\tShape plainShape = new Plain(new Vec(0.0,-1,0.0), new Point(0.0, -1, 0.0));\r\n\t\tMaterial plainMat = Material.getMetalMaterial().initKa(new Vec(0.2)).initReflectionIntensity(0.1);\r\n\t\tSurface plainSurface = new Surface(plainShape, plainMat);\r\n\t\tfinalScene.addSurface(plainSurface);\r\n\r\n\t\tShape transparentSphere = new Sphere(new Point(0, 10, -25), 10);\r\n\t\tMaterial transparentSphereMat = Material.getGlassMaterial(false)\r\n\t\t\t\t.initRefractionIndex(0).initReflectionIntensity(0.4).initKs(new Vec(1.0)).initKd(new Vec(0));\r\n\t\tSurface transparentSphereSurface = new Surface(transparentSphere, transparentSphereMat);\r\n\t\tfinalScene.addSurface(transparentSphereSurface);\r\n\r\n\t\tdouble[] radiuses = new double[] { 0.3, 0.8, 1, 1.5, 2, 1.4, 0.2, 0.9, 1.2, 2.1 };\r\n\r\n\t\tfor (int i = -10; i < 10; i+=3) {\r\n\t\t\tint sphereCenterZ = -5 + (int)(Math.random() * 3);\r\n\t\t\tint radiusIndex = (int)(Math.random() * 10);\r\n\t\t\tdouble radius = radiuses[radiusIndex];\r\n\t\t\tShape distantSphere1 = new Sphere(new Point(i, radiuses[radiusIndex] - 1, sphereCenterZ), radius);\r\n\t\t\tMaterial distantSphere1Mat = Material.getRandomMaterial();\r\n\t\t\tSurface distantSphere1Surface = new Surface(distantSphere1, distantSphere1Mat);\r\n\t\t\tfinalScene.addSurface(distantSphere1Surface);\r\n\t\t}\r\n\r\n\t\t// Add light sources:\r\n\t\tLight dirLight = new DirectionalLight(new Vec(-4.0, -1.0, -2.5), new Vec(0.3));\r\n\t\tfinalScene.addLightSource(dirLight);\r\n\r\n\t\tdirLight = new DirectionalLight(new Vec(-4.0, -1.0, -2.5), new Vec(0.3));\r\n\t\tfinalScene.addLightSource(dirLight);\r\n\r\n\t\treturn finalScene;\r\n\t}", "public BoundingSphere set(Vec3 center, double radius) {\n if (center == null) {\n throw new IllegalArgumentException(\n Logger.logMessage(Logger.ERROR, \"BoundingSphere\", \"set\", \"missingPoint\"));\n }\n\n if (radius < 0) {\n throw new IllegalArgumentException(\n Logger.logMessage(Logger.ERROR, \"BoundingSphere\", \"set\", \"invalidRadius\"));\n }\n\n this.center.set(center);\n this.radius = radius;\n return this;\n }", "public Vector3f getSphereCenter() {\n\t\tfloat[] arr = getMinMax();\n\t\t\n\t\treturn new Vector3f((arr[0]+arr[1])/2,(arr[2]+arr[3])/2,(arr[4]+arr[5])/2);\n\t}", "public CubeEarth() {\n this(1, null);\n }", "public VolcanoWorld() {\n this(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n }", "public Point3d sampleHemisphere();", "@Override\n\tpublic void create() {\n\t\tthis.mesh = new Mesh(VertexDataType.VertexArray, false, 4, 6, \n\t\t\t\tnew VertexAttribute(VertexAttributes.Usage.Position, 3, \"attr_position\"));\n\n\t\tmesh.setVertices(new float[] {\n\t\t\t\t-8192f, -512f, 0,\n\t\t\t\t8192f, -512f, 0,\n\t\t\t\t8192f, 512f, 0,\n\t\t\t\t-8192f, 512f, 0\n\t\t});\n\t\tmesh.setIndices(new short[] {0, 1, 2, 2, 3, 0});\n\n\t\t// creates the camera\n\t\tcamera = new OrthographicCamera(CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\n\t\t// Sets the positions of the camera\n\t\tcamera.position.set(CoordinateConverter.getCameraWidth()/2, CoordinateConverter.getCameraHeight()/2, 0);\n\t\tcamera.update();\n\n\t\t// Sets how much of the map that is shown on the screen\n\t\tglViewport = new Rectangle(0, 0, CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\t\t\n\t}", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "@Test\n public void trianglesTransparentSphere() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(0, 0, -1000), new Vector(0, 0, 1), new Vector(0, -1, 0)));\n scene.setDistance(1000);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //Right triangle\n new Point3D(-150, 150, 115), new Point3D(150, 150, 135), new Point3D(75, -75, 150)), //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //\n new Point3D(-150, 150, 115), new Point3D(-70, -70, 140), new Point3D(75, -75, 150)), //\n new Sphere(new Color(java.awt.Color.BLUE), new Material(0.2, 0.2, 30, 0, 0.3), // )\n 30, new Point3D(60, -50, 50)),\n new Triangle(Color.BLACK, new Material(0.3, 0.3, 30), new Point3D(-30, 20, 100),\n new Point3D(-15, 30, 95), new Point3D(17, 87, 122)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //\n new Point3D(60, -50, 0), 1, 4E-5, 2E-7, new Vector(0, 0, 1)).setRadius(12));\n\n ImageWriter imageWriter = new ImageWriter(\"soft shadow without transparency + triangle between - 500Ray 12Radius\", 200, 200, 600, 600);\n Render render = new Render(imageWriter, scene).setSuperSampling(500).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "Spherical(final ParameterValueGroup parameters, final ParameterDescriptorGroup descriptor)\r\n throws ParameterNotFoundException\r\n {\r\n super(parameters, descriptor);\r\n ensureSpherical();\r\n }", "void setupGrid() {\n\n // create a Switch for the spheres, allow switch changes\n gridSwitch = new Switch(Switch.CHILD_NONE);\n gridSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the square3s with red ambient,\n // black emmissive, red diffuse and black specular coloring\n Material material = new Material(red, black, red, black, 64);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a grid of quads\n int gridSize = 20; // grid is gridSize quads along each side\n int numQuads = gridSize * gridSize;\n int numVerts = numQuads * 4; // 4 verts per quad\n // there will be 3 floats per coord and 4 coords per quad\n float[] coords = new float[3 * numVerts];\n // All the quads will use the same normal at each vertex, so\n // allocate an array to hold references to the same normal\n Vector3f[] normals = new Vector3f[numVerts];\n Vector3f vertNormal = new Vector3f(0.0f, 0.0f, 1.0f);\n float edgeLength = 5.0f; // length of each edge of the grid\n float gridGap = 0.03f; // the gap between each quad\n // length of each quad is (total length - sum of the gaps) / gridSize\n float quadLength = (edgeLength - gridGap * (gridSize - 1)) / gridSize;\n\n // create a grid of quads in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n float curX, curY;\n for (int y = 0; y < gridSize; y++) {\n curY = y * (quadLength + gridGap); // offset to lower left corner\n curY -= edgeLength / 2; // center on 0,0\n for (int x = 0; x < gridSize; x++) {\n // this is the offset into the vertex array for the first\n // vertex of the quad\n int vertexOffset = (y * gridSize + x) * 4;\n // this is the offset into the coord array for the first\n // vertex of the quad, where there are 3 floats per vertex\n int coordOffset = vertexOffset * 3;\n curX = x * (quadLength + gridGap); // offset to ll corner\n curX -= edgeLength / 2; // center on 0,0\n // lower left corner\n coords[coordOffset + 0] = curX;\n coords[coordOffset + 1] = curY;\n coords[coordOffset + 2] = 0.0f; // z\n // lower right corner\n coords[coordOffset + 3] = curX + quadLength;\n coords[coordOffset + 4] = curY;\n coords[coordOffset + 5] = 0.0f; // z\n // upper right corner\n coords[coordOffset + 6] = curX + quadLength;\n coords[coordOffset + 7] = curY + quadLength;\n coords[coordOffset + 8] = 0.0f; // z\n // upper left corner\n coords[coordOffset + 9] = curX;\n coords[coordOffset + 10] = curY + quadLength;\n coords[coordOffset + 11] = 0.0f; // z\n for (int i = 0; i < 4; i++) {\n normals[vertexOffset + i] = vertNormal;\n }\n }\n }\n // now that we have the data, create the QuadArray\n QuadArray quads = new QuadArray(numVerts, QuadArray.COORDINATES\n | QuadArray.NORMALS);\n quads.setCoordinates(0, coords);\n quads.setNormals(0, normals);\n\n // create the shape\n Shape3D shape = new Shape3D(quads, appearance);\n\n // add it to the switch\n gridSwitch.addChild(shape);\n }", "@Test\n\tpublic void testSphereRadiusOne()\n\t{\n\t\tfinal EllipseRegionOfInterest ellipse = new EllipseRegionOfInterest( 3 );\n\t\tellipse.setOrigin( new double[] { 1, 1, 1 } );\n\t\tellipse.setRadius( 1 );\n\t\ttestEllipse( ellipse );\n\n\t}", "public Mesh() {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = new ArrayList<Vertex>();\r\n tris = new ArrayList<Triangle>();\r\n }", "public Scene() {}", "public float sphereRadius() {\r\n\t\treturn LeapJNI.Hand_sphereRadius(this.swigCPtr, this);\r\n\t}", "public float getSphereRadius() {\n\t\treturn sphereRadius;\n\t}", "public DiscMesh() {\n this(1f, 25);\n }", "protected Geometry buildSimpleShape(\r\n \tfloat\t\tpLength\r\n ,\tboolean\t\tpRotate\r\n ) {\n Material mat_csg = new Material( assetManager, \"Common/MatDefs/Misc/ShowNormals.j3md\" );\r\n \tif ( pLength > 0 ) {\r\n \tGeometry aCylinder = new Geometry( \"Cylinder\", new Cylinder( 32, 32, 1.1f, pLength, true ) );\r\n \taCylinder.setMaterial( mat_csg );\r\n\t \tif ( pRotate ) aCylinder.rotate( 0.4f, 0.4f, 0f );\r\n\t \treturn( aCylinder );\r\n \t\t\r\n \t} else {\r\n \t\t// Just a cube\r\n\t \tGeometry aCube = new Geometry( \"Box\", new Box(1,1,1) );\r\n\t \taCube.setMaterial( mat_csg );\r\n\t\r\n\t \tif ( pRotate ) aCube.rotate( 0.4f, 0.4f, 0f );\r\n\t \treturn( aCube );\r\n \t}\r\n\r\n }", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "private void construct(){\n TriangleMesh mesh;\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/bunny.obj\");\n mesh.setMaterial(new MaterialNode(0.1f, 0.1f, .5f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/cube.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 0, 0));\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/teddy.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 0, 1, 0));\n mesh.setMaterial(new MaterialNode(0.1f, .5f, 0.1f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/sphere.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 1, 0));\n mesh.setMaterial(new MaterialNode(1, 0, 0, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n scene.calculateNormals();\n scene.setupRendering();\n }", "public Asteroid() {\n\t\t// create, seed random number\n\t\trandomNumber = new Random();\n\n\t\t// random location\n\t\tlocation = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE);\n\n\t\t// random movement vector\n\t\tmovement = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED,\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED);\n\t\t\n\t\t// random radius\n\t\tsize = randomNumber.nextInt() % 20 + 1;\n\t\t\n\t\t// create Sphere\n\t\tsphere = new Sphere(size, location);\n\n\t}", "public Camera() {\r\n this(1, 1);\r\n }", "public Solid() {\n\t\tthis.name = null;\n\t\tthis.facets = new ArrayList<Facet>(0);\n\t}", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "public void displayTown(Group parent, String name, float latitude, float longitude, PhongMaterial material, double scale) {\n Sphere sphere = new Sphere(0.002);\n Point3D city = geoCoordTo3dCoord(latitude, longitude);\n\n // Transformations on the sphere\n sphere.setTranslateX(city.getX());\n sphere.setTranslateY(city.getY());\n sphere.setTranslateZ(city.getZ());\n sphere.setScaleX(scale);\n sphere.setScaleY(scale);\n sphere.setScaleZ(scale);\n sphere.setMaterial(material);\n\n sphere.setId(name);\n\n parent.getChildren().add(sphere);\n }", "public Vector3D() {\n zero();\n }", "public static Scene scene4() {\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */new Point(0.0, 2.0, 6.0), \r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0), \r\n\t\t\t\t\t\t/*Distance to plain =*/ 2.0)\r\n\t\t\t\t.initName(\"scene4\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(6);\r\n // Add Surfaces to the scene.\r\n\t\t\r\n\t\t// (2) Add two domes to make it look like we split a sphere in half. \r\n\t\tShape domeShape = new Dome(new Point(2.0, 0.0, -10.0), 5.0, new Vec(1.0, 0.0, 0.0));\r\n\t\tMaterial domeMat = Material.getRandomMaterial();\r\n\t\tSurface domeSurface = new Surface(domeShape, domeMat);\r\n\t\tfinalScene.addSurface(domeSurface);\r\n\t\t\r\n\t\tdomeShape = new Dome(new Point(-2.0, 0.0, -10.0), 5.0, new Vec(-1.0, 0.0, 0.0));\r\n\t\tdomeSurface = new Surface(domeShape, domeMat);\r\n\t\tfinalScene.addSurface(domeSurface);\r\n\t\t\r\n\t\t// Add light sources:\r\n\t\tCutoffSpotlight cutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 75.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(0.0, 6.0, -10.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(.5,0.5,0.5));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\t\r\n\t\treturn finalScene;\r\n\t}", "public Vector3 () {\n }", "public Vector(double s, double d){\n\t\tthis.magnitude = s;\n\t\tthis.direction = d;\n\t\tthis.dX = this.magnitude * Math.cos(Math.toRadians(d));\n\t\tthis.dY = this.magnitude * Math.sin(Math.toRadians(d));\n\t\t\n\t}", "public Vector3(double x, double y,double z){\n \n double pytago;\n \n this.x = x;\n this.y = y;\n this.z = z;\n \n pytago = (x*x) + (y*y) + (z*z);\n \n magnitude = Math.sqrt(pytago);\n }", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "public QuadMesh\n (boolean isBeingSplit,\n Matrix4f cubeMatrix, \n\t\tVector3f color,\n\t\tboolean inAtmosphere, \n\t\tVector3f meshOffset, \n\t\tboolean inFrustum, \n\t\tfloat arcLengthOverSize, \n\t\tVector3f center, \n\t\tfloat intensity, \n\t\tTexture2D Heightmap, \n\t\tString f ,\n\t\tQuadMesh p, \n\t\tVector3f v1, \n\t\tVector3f v2, \n\t\tVector3f v3, \n\t\tVector3f v4,\n\t\tfloat size,\n\t\tint x, \n\t\tint y, \n\t\tboolean hasChildren, \n\t\tArrayList<QuadMesh> children, \n\t\tBoundingSphere sphere, \n\t\tGeometry mesh, \n\t\tVector3f faceIndex, \n\t\tfloat centerOff,\n\t\tGeometry bsp)\t\n{\n\t\tfirst = v1;\n\t\tsecond = v2;\n\t\tthird = v3;\n\t\tfourth = v4;\n\t\twidth = size;\n\t\tindex1 = x;\n\t\tindex2 = y;\n\t\tthis.hasChildren = hasChildren;\n\t\tthis.children = children;\n\t\tparent = p;\n\t\tface = f;\n\t\tthis.sphere = sphere;\n\t\tthis.mesh = mesh;\n\t\tthis.faceIndex = faceIndex;\n\t\tthis.centerOff = centerOff;\n\t\tthis.Heightmap = Heightmap;\n\t\tthis.intensity = intensity;\n\t\tthis.arcLengthOverSize = arcLengthOverSize;\n\t\tthis.center = center;\n\t\tthis.inFrustum = inFrustum;\n\t\tthis.meshOffset = meshOffset;\n\t\tthis.inAtmosphere = inAtmosphere;\n\t\tthis.color = color;\n\t\tthis.cubeMatrix = cubeMatrix;\n\t\tthis.bsp = bsp;\n\n\t\n\t}", "public Query nearSphere(String field, double lat, double lon) {\n Preconditions.checkNotNull(field);\n Preconditions.checkArgument(lat >= -90 && lat <=90, \"Lat must be between -90 and 90\");\n Preconditions.checkArgument(lon >= -180 && lon <=180, \"Lon must be between -180 and 180\");\n return nearSphere(field, lat, lon, -1);\n }", "public StarsMesh() {\r\n\r\n\t\tvertices = new float[star_count * 3];\r\n\t\tindices = new short[star_count];\r\n\r\n\t\tRandom gen = new Random(System.currentTimeMillis());\r\n\r\n\t\tfor (int x = 0; x < star_count * 3; x += 3) {\r\n\t\t\tint rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(250) - 125) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(130) - 65) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 1] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(200) - 100) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 2] = rand;\r\n\r\n\t\t\t// vertices[x+2] = 0;\r\n\r\n\t\t\tindices[x / 3] = (short) ((short) x / 3);\r\n\t\t}\r\n\r\n\t\tByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);\r\n\t\tvbb.order(ByteOrder.nativeOrder());\r\n\t\tvertexBuffer = vbb.asFloatBuffer();\r\n\t\tvertexBuffer.put(vertices);\r\n\t\tvertexBuffer.position(0);\r\n\r\n\t\tByteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2);\r\n\t\tibb.order(ByteOrder.nativeOrder());\r\n\t\tindexBuffer = ibb.asShortBuffer();\r\n\t\tindexBuffer.put(indices);\r\n\t\tindexBuffer.position(0);\r\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "public DiscMesh(float radius, int numVertices) {\n Validate.nonNegative(radius, \"radius\");\n Validate.inRange(\n numVertices, \"number of vertices\", 3, Integer.MAX_VALUE);\n\n setMode(Mode.TriangleFan);\n\n float[] normals = new float[numAxes * numVertices];\n float[] positions = new float[numAxes * numVertices];\n float[] texCoords = new float[2 * numVertices];\n\n for (int vi = 0; vi < numVertices; ++vi) {\n normals[numAxes * vi] = 0f;\n normals[numAxes * vi + 1] = 0f;\n normals[numAxes * vi + 2] = 1f;\n\n float theta = FastMath.TWO_PI * vi / numVertices;\n float sin = FastMath.sin(theta);\n float cos = FastMath.cos(theta);\n positions[numAxes * vi] = radius * cos;\n positions[numAxes * vi + 1] = radius * sin;\n positions[numAxes * vi + 2] = 0f;\n\n texCoords[2 * vi] = (1f + cos) / 2f;\n texCoords[2 * vi + 1] = (1f + sin) / 2f;\n }\n\n setBuffer(Type.Normal, numAxes, normals);\n setBuffer(Type.Position, numAxes, positions);\n setBuffer(Type.TexCoord, 2, texCoords);\n\n updateBound();\n setStatic();\n }", "void drawSphere(GL2 gl,GLU glu, double r, int lats, int longs) {\n\n\n\n GLUquadric qobj = glu.gluNewQuadric();\n\n gl.glColor4f(0.0f, 0.0f, 1.0f,0.01f);\n glu.gluQuadricDrawStyle(qobj, GLU.GLU_LINE);\n glu.gluQuadricNormals(qobj, GLU.GLU_SMOOTH);\n\n glu.gluSphere(qobj, r, 70, 70);\n\n /*\n int i, j;\n for(i = 0; i <= lats; i++) {\n float lat0 = (float) (Math.PI * (-0.5 + (double) (i - 1) / lats));\n float z0 = (float) (Math.sin(lat0));\n float zr0 = (float) (Math.cos(lat0));\n\n float lat1 = (float) (Math.PI * (-0.5 + (double) i / lats));\n float z1 = (float) (Math.sin(lat1));\n float zr1 = (float) (Math.expm1(lat1));\n\n gl.glBegin(GL_LINE_STRIP);\n gl.glColor3f(0.0f, 1.0f, 1.0f);\n for(j = 0; j <= longs; j++) {\n float lng = (float) (2. * Math.PI * (double) (j - 1) / longs);\n float x = (float) (r*Math.cos(lng));\n float y = (float) (r*Math.sin(lng));\n\n\n\n gl.glNormal3f(x * z0, y * z0,(float)r* zr0);\n gl.glVertex3f(x * z0, y * z0, (float) r*zr0);\n //gl.glNormal3f(x * zr1, y * zr1, (float) r*z1);\n //gl.glVertex3f(x * zr1, y * zr1, (float)r*z1);\n }\n gl.glEnd();\n }\n */\n }", "public T caseSphere(Sphere object) {\r\n\t\treturn null;\r\n\t}", "@Test\n public void bonusTMoveCamera2() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(3100, -3100, -2600), new Vector(-2, 2, 2), new Vector(-1, -2, 1)));\n scene.setDistance(600);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Plane(new Material(0.4, 0.1, 60, 0, 0), new Color(java.awt.Color.DARK_GRAY),\n new Point3D(0, 400, 100), new Vector(0, -1, 0)),\n new Polygon(Color.BLACK, new Material(0.2, 0.3, 200, 0.5, 0),\n new Point3D(-1, -300, 500), new Point3D(-1, -140, 500), new Point3D(1, -140, 500), new Point3D(1, -300, 500)),\n new Sphere(new Color(java.awt.Color.yellow), new Material(0.2, 0.2, 200, 0, 0.6), // )\n 80, new Point3D(-1, -120, 500)),\n new Polygon(Color.BLACK, new Material(0.2, 0.2, 200, 0.9, 0),\n new Point3D(-150, -150, 1999), new Point3D(-150, 200, 1999), new Point3D(150, 200, 1999), new Point3D(150, -150, 1999)),\n new Sphere(new Color(800, 0, 0), new Material(0.3, 0.5, 200, 0.2, 0), // )\n 140, new Point3D(300, 260, 600)),\n new Sphere(new Color(0, 0, 200), new Material(0.25, 0.25, 20, 0, 0.25), // )\n 140, new Point3D(-260, 260, 0)),\n new Sphere(new Color(400, 20, 20), new Material(0.2, 0.5, 200, 0, 0.3), // )\n 100, new Point3D(-600, 300, 1300)),\n new Triangle(new Color(100, 300, 100), new Material(0.25, 0.5, 100, 0.25, 0),\n new Point3D(-100, 400, 150), new Point3D(100, 400, 350), new Point3D(0, 200, 250)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //no. 1\n new Point3D(0, 0, -1500), 1, 4E-5, 2E-7, new Vector(0, 0, 1)).setRadius(15),\n new PointLight(new Color(200, 400, 200), new Point3D(0.001, -100, 499), 1, 4E-5, 2E-7).setRadius(15),//no.2\n new PointLight(new Color(200, 200, 400), new Point3D(0.001, -50, 1000), 1, 4E-5, 2E-7).setRadius(25));//no.3\n\n ImageWriter imageWriter = new ImageWriter(\"The magical room moving camera to right - soft shadow 5\", 200, 200, 1000, 1000);\n Render render = new Render(imageWriter, scene).setSuperSampling(400).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "public WaveSystem()\n\t{\n\t\t\n\t}", "public Light(double xPos, double yPos, double zPos){\n this(xPos, yPos, zPos, 1.0, 1.0, 1.0, 1);\n }", "public static Scene scene7() {\r\n\t\tPoint cameraPosition = new Point(-3.0, 1.0, 6.0);\r\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */cameraPosition,\r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0),\r\n\t\t\t\t\t\t/*Distance to plain =*/ 2.0)\r\n\t\t\t\t.initName(\"scene7\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initBackgroundColor(new Vec(0.01,0.19,0.22))\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(3);\r\n\r\n\t\tShape plainShape = new Plain(new Vec(0.0,-4.3,0.0), new Point(0.0, -4.3, 0.0));\r\n\t\tMaterial plainMat = Material.getMetalMaterial()\r\n\t\t\t\t.initKa(new Vec(0.11,0.09,0.02)).initReflectionIntensity(0.1);\r\n\t\tSurface plainSurface = new Surface(plainShape, plainMat);\r\n\t\tfinalScene.addSurface(plainSurface);\r\n\r\n\t\tShape transparentSphere = new Sphere(new Point(1.5, 0, -3.5), 4);\r\n\t\tMaterial transparentSphereMat = Material.getGlassMaterial(true)\r\n\t\t\t\t.initRefractionIntensity(0.8).initRefractionIndex(1.35).initReflectionIntensity(0.4);\r\n\t\tSurface transparentSphereSurface = new Surface(transparentSphere, transparentSphereMat);\r\n\t\tfinalScene.addSurface(transparentSphereSurface);\r\n\r\n\t\tPoint sunPosition = new Point(0, 3, -45);\r\n\t\tShape sunDome = new Dome(sunPosition, 8, new Vec(0, 1, 0));\r\n\t\tMaterial sunDomeMat = Material.getMetalMaterial().initKa(new Vec(0.95,0.84,0.03));\r\n\t\tSurface sunDomeSurface = new Surface(sunDome, sunDomeMat);\r\n\t\tfinalScene.addSurface(sunDomeSurface);\r\n\r\n\t\tVec sunDirection = cameraPosition.sub(sunPosition);\r\n\t\tLight sunLight = new DirectionalLight(sunDirection, new Vec(0.95,0.84,0.03));\r\n\t\tfinalScene.addLightSource(sunLight);\r\n\r\n\t\treturn finalScene;\r\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n PerspectiveCamera camera = new PerspectiveCamera(true);\n camera.setTranslateZ(-10000);\n camera.setNearClip(0.1);\n camera.setFarClip(100000.0);\n\n //Creates group that holds sphere\n Group group = new Group();\n //Create subscene that holds group\n SubScene world = new SubScene(group, 3.0 * WIDTH / 4.0, HEIGHT, true, SceneAntialiasing.DISABLED);\n\n //Container for controls\n VBox controls = new VBox(10);\n controls.setAlignment(Pos.TOP_CENTER);\n controls.setPadding(new Insets(10, 0, 0, 0));\n\n //Slider that changes G value\n Label gLabel = new Label(\"Gravitational Constant\");\n Slider gConstant = new Slider(.001, 100000, 6.67408 * Math.pow(10, 2));\n gConstant.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n VectorUpdater.G = newValue.doubleValue();\n }\n });\n\n //Slider that changes simulation speed\n Label timeLabel = new Label(\"Simulation Speed\");\n Slider timeConstant = new Slider(0, 10, 0);\n timeConstant.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n delay = newValue.longValue();\n }\n });\n\n //Slider the controls zoom\n Label zoomLabel = new Label(\"Zoom\");\n Slider zoom = new Slider(-50000, 10000, -10000);\n zoom.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n camera.setTranslateZ(newValue.doubleValue());\n }\n });\n\n //All control text fields\n TextField massField = new TextField(\"Mass\");\n TextField radiusField = new TextField(\"Radius\");\n TextField x = new TextField(\"X Coordinate\");\n TextField y = new TextField(\"Y Coordinate\");\n TextField z = new TextField(\"Z Coordinate\");\n TextField vx = new TextField(\"X Velocity\");\n TextField vy = new TextField(\"Y Velocity\");\n TextField vz = new TextField(\"Z Velocity\");\n Label pad = new Label();\n pad.setPrefHeight(40);\n\n //Control buttons\n Button addSphere = new Button(\"Add Sphere\");\n HBox buttons = new HBox(5);\n Button toggle = new Button(\"Start\");\n Button clear = new Button(\"Clear\");\n buttons.setAlignment(Pos.CENTER);\n buttons.getChildren().addAll(toggle, clear);\n\n //Adds items to control menu\n controls.getChildren().addAll(massField, radiusField, x, y, z, vx, vy, vz, addSphere, pad, gLabel, gConstant, timeLabel,\n timeConstant, zoomLabel, zoom, buttons);\n\n //Animates program\n AnimationTimer timer = new AnimationTimer() {\n long time = System.nanoTime();\n\n @Override\n public void handle(long now) {\n if ((now - time) * Math.pow(10, -7) > delay) {\n VectorUpdater.updateVectors(spheres, 0.017);\n for (PhysicalSphere sphere : spheres) {\n double dx = sphere.getVelocityVector().getX() * 0.017;\n double dy = sphere.getVelocityVector().getY() * 0.017;\n double dz = sphere.getVelocityVector().getZ() * 0.017;\n sphere.setTranslateX(sphere.getTranslateX() + dx);\n sphere.setTranslateY(sphere.getTranslateY() + dy);\n sphere.setTranslateZ(sphere.getTranslateZ() + dz);\n }\n time = now;\n }\n }\n };\n\n\n addSphere.setOnAction(event -> {\n //Checks all text fields and formats ones that are not numbers\n for (Node field : controls.getChildren()) {\n if (field instanceof TextField) {\n try {\n Double.parseDouble(((TextField) field).getText());\n } catch (Exception e) {\n ((TextField) field).setText(\"0\");\n }\n }\n }\n //Velocity vector\n Point3D velocity = new Point3D(Double.parseDouble(vx.getText()), Double.parseDouble(vy.getText()),\n Double.parseDouble(vz.getText()));\n double mass = Double.parseDouble(massField.getText());\n double radius = Double.parseDouble(radiusField.getText());\n if(mass == 0)\n mass = 500;\n if(radius == 0)\n radius = 500;\n PhysicalSphere sphere = new PhysicalSphere(radius, mass, velocity);\n group.getChildren().add(sphere);\n sphere.setTranslateX(Double.parseDouble(x.getText()));\n sphere.setTranslateY(Double.parseDouble(y.getText()));\n sphere.setTranslateZ(Double.parseDouble(z.getText()));\n spheres.add(sphere);\n massField.setText(\"Mass\");\n radiusField.setText(\"Radius\");\n vx.setText(\"X Velocity\");\n vy.setText(\"Y Velocity\");\n vz.setText(\"Z Velocity\");\n x.setText(\"X Coordinate\");\n y.setText(\"Y Coordinate\");\n z.setText(\"Z Coordinate\");\n });\n\n //Clears spheres\n clear.setOnAction(event -> {\n group.getChildren().clear();\n spheres.clear();\n });\n\n //Toggles timer\n toggle.setOnAction(event -> {\n if (toggle.getText().equals(\"Start\")) {\n timer.start();\n toggle.setText(\"Stop\");\n } else {\n timer.stop();\n toggle.setText(\"Start\");\n }\n });\n\n //Gets anchor\n world.setOnMousePressed(event -> {\n anchorX = event.getSceneX();\n anchorY = event.getSceneY();\n });\n\n //Adds drag amount to anchor\n world.setOnMouseDragged(event -> {\n camera.setTranslateX(cameraX + (anchorX - event.getSceneX()) * 10);\n camera.setTranslateY(cameraY + (anchorY - event.getSceneY()) * 10);\n });\n\n //Logs new camera location\n world.setOnMouseReleased(event -> {\n cameraX = camera.getTranslateX();\n cameraY = camera.getTranslateY();\n });\n\n //Create border layout\n BorderPane layout = new BorderPane();\n layout.setPadding(new Insets(0, 10, 0, 10));\n layout.setCenter(world);\n layout.setRight(controls);\n\n //Create main scene and add layout\n Scene scene = new Scene(layout, WIDTH, HEIGHT, true);\n world.setFill(Color.LIGHTSTEELBLUE);\n world.setCamera(camera);\n\n //Make the main stage\n primaryStage.setTitle(\"3D Physics Simulation\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "public Cylinder() {\n\t\tthis(1.0);\n\t}", "public CarrierShape()\n {\n super();\n }", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public Query nearSphere(String field, double lat, double lon, double maxDistance) {\n Preconditions.checkNotNull(field);\n Preconditions.checkArgument(lat >= -90 && lat <=90, \"Lat must be between -90 and 90\");\n Preconditions.checkArgument(lon >= -180 && lon <=180, \"Lon must be between -180 and 180\");\n double[] arrayPoint = new double[2];\n arrayPoint[0] = lat;\n arrayPoint[1] = lon;\n builder.addLocationFilter(field, builder.getOperator(QueryFilterBuilder.Operators.NEARSPHERE),\n arrayPoint, maxDistance);\n return this;\n }", "public Vector() {\n construct();\n }", "public static Scene scene3() {\n\t\tScene finalScene = new Scene().initAmbient(new Vec(1.0))\r\n\t\t\t\t.initCamera(/* Camera Position = */new Point(0.0, 2.0, 6.0), \r\n\t\t\t\t\t\t/* Towards Vector = */ new Vec(0.0, -0.1 ,-1.0),\r\n\t\t\t\t\t\t/* Up vector = */new Vec(0.0, 1.0, 0.0), \r\n\t\t\t\t\t\t/*Distance to plain =*/ 2.0)\r\n\t\t\t\t.initName(\"scene3\").initAntiAliasingFactor(1)\r\n\t\t\t\t.initRenderRefarctions(true).initRenderReflections(true).initMaxRecursionLevel(6);\r\n // Add Surfaces to the scene.\r\n\t\t// (1) A plain that represents the ground floor.\r\n\t\tShape plainShape = new Plain(new Vec(0.0,1.0,0.0), new Point(0.0, -1.0, 0.0));\r\n\t\tMaterial plainMat = Material.getMetalMaterial();\r\n\t\tSurface plainSurface = new Surface(plainShape, plainMat);\r\n\t\tfinalScene.addSurface(plainSurface);\r\n\t\t\r\n\t\t// (2) We will also add spheres to form a triangle shape (similar to a pool game). \r\n\t\tfor (int depth = 0; depth < 4; depth++) {\r\n\t\t\tfor(int width=-1*depth; width<=depth; width++) {\r\n\t\t\t\tShape sphereShape = new Sphere(new Point((double)width, 0.0, -1.0*(double)depth), 0.5);\r\n\t\t\t\tMaterial sphereMat = Material.getRandomMaterial();\r\n\t\t\t\tSurface sphereSurface = new Surface(sphereShape, sphereMat);\r\n\t\t\t\tfinalScene.addSurface(sphereSurface);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Add light sources:\r\n\t\tCutoffSpotlight cutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 45.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(4.0, 4.0, -3.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(1.0,0.6,0.6));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\tcutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 30.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(-4.0, 4.0, -3.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(0.6,1.0,0.6));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\tcutoffSpotlight = new CutoffSpotlight(new Vec(0.0, -1.0, 0.0), 30.0);\r\n\t\tcutoffSpotlight.initPosition(new Point(0.0, 4.0, 0.0));\r\n\t\tcutoffSpotlight.initIntensity(new Vec(0.6,0.6,1.0));\r\n\t\tfinalScene.addLightSource(cutoffSpotlight);\r\n\t\tDirectionalLight directionalLight=new DirectionalLight(new Vec(0.5,-0.5,0.0),new Vec(0.2));\r\n\t\tfinalScene.addLightSource(directionalLight);\r\n\t\t\r\n\t\treturn finalScene;\r\n\t}", "public EarthGeometry(){\n\t\tgcl1 = new GeodeticCalculator();\n\t\trnd1 = new Random(56789);\n\t}", "private void initMesh() {\n\t\tfloat[] vertices = { -1, -1, 0, 1, -1, 0, -1, 1, 0, 1, 1, 0 };\n\t\tfloat[] texCoords = { 0, 0, 1, 0, 0, 1, 1, 1 };\n\t\tint[] indices = { 0, 1, 2, 3 };\n\t\tmesh = new StaticMesh(gl, vertices, null, texCoords, indices);\n\t\tmesh.setPositionIndex(shader.getAttributeLocation(\"aVertexPosition\"));\n\t\tmesh.setNormalIndex(-1);\n\t\tmesh.setTexCoordIndex(shader.getAttributeLocation(\"aTextureCoord\"));\n\t\tmesh.setBeginMode(BeginMode.TRIANGLE_STRIP);\n\t}", "public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }", "public void makeSphere(float radius, int slices, int stacks) {\n\t\tif (slices < 3)\n\t\t\tslices = 3;\n\n\t\tif (stacks < 3)\n\t\t\tstacks = 3;\n\n\t\tdouble phi = Math.PI / stacks;\n\t\tdouble theta = 2 * Math.PI / slices;\n\n\t\tloopingMethod(radius, slices, stacks, phi, theta);\n\t}", "public World(double width, double height) {\n this.width = width;\n this.height = height;\n\n\n shapes = new Shape[3]; // an array of references (change to non-zero size)\n // Create the actual Shape objects (sub types)\n // ....\n\n shapes[0] = new Line(50,100,50,50, Color.BLUE);\n shapes[1] = new Circle(75,75,30,Color.BLACK);\n shapes[2] = new Rectangle(40,50,40,40,Color.GREEN);\n\n\n }", "private MeshUtil() {}", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "public Vector3(double s)\n\t{\n\t\tx = y = z = s;\n\t}", "public OpenGLModel() {\n\n\n\t}", "public SkyBox() {\r\n\t\t\r\n\t\ttextures = new Vector<Texture>();\r\n\t\tcubeMapMode = false;\r\n\t\t\r\n\t\t//load textures\r\n\t\ttry {\r\n\t\t\ttextures.add(TextureLoader.getTexture(\"JPG\", ResourceLoader.getResourceAsStream(\"images/skybox/front.jpg\"),GL11.GL_LINEAR));\r\n\t\t\ttextures.add(TextureLoader.getTexture(\"JPG\", ResourceLoader.getResourceAsStream(\"images/skybox/left.jpg\"),GL11.GL_LINEAR));\r\n\t\t\ttextures.add(TextureLoader.getTexture(\"JPG\", ResourceLoader.getResourceAsStream(\"images/skybox/back.jpg\"),GL11.GL_LINEAR));\r\n\t\t\ttextures.add(TextureLoader.getTexture(\"JPG\", ResourceLoader.getResourceAsStream(\"images/skybox/right.jpg\"),GL11.GL_LINEAR));\r\n\t\t\ttextures.add(TextureLoader.getTexture(\"JPG\", ResourceLoader.getResourceAsStream(\"images/skybox/up.jpg\"),GL11.GL_LINEAR));\r\n\t\t\ttextures.add(TextureLoader.getTexture(\"JPG\", ResourceLoader.getResourceAsStream(\"images/skybox/down.jpg\"),GL11.GL_LINEAR));\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"skybox loading error\");\r\n\t\t}\r\n\t\t\r\n\t}", "public Vector(double x, double y, double z) {\n this(new Point3D(x, y, z));\n }", "public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}", "void insert_Sphere() {\n\t\t\n\t\tif( end == n )\n\t\t\tSystem.out.println(\"Insertion not possible as Array is full.........\");\n\t\t\n\t\telse {\n\t\t\tSystem.out.println(\"Enter radius of Sphere :-\");\n\t\t\tdouble radius = sc.nextDouble();\n\t\t\t\t\n\t\t\ts[end]= new Sphere(radius);\n\t\t\t\t\n\t\t\tend++;\t\t\t\n\t\t}\n\t}", "public Mesh(Primitive shape) {\n\t\tswitch (shape) {\n\t\t\tcase CUBE:\n\t\t\t\tgenerateCube();\n\t\t\t\tbreak;\n\t\t\tcase CUBOID:\n\t\t\t\tgenerateCube();\n\t\t\t\tscale(2, 1, 1); // Stretch the cube along the x-axis to give a cuboid\n\t\t\t\tbreak;\n\t\t\tcase TRIANGULAR_PRISM:\n\t\t\t\tgeneratePrism();\n\t\t\t\tbreak;\n\t\t\tcase SPHERE:\n\t\t\t\tgenerateSphere();\n\t\t\t\tbreak;\n\t\t\tcase CONVEX_LENS:\n\t\t\t\tgenerateSphere();\n\t\t\t\tscale(0.6, 2, 2); // Increase the size (to allow a better demonstration of how the lens works) and then squash the sphere along the x-axis\n\t\t\t\tbreak;\n\t\t\tcase CONCAVE_LENS:\n\t\t\t\tgenerateSphere();\n\t\t\t\tscale(0.6, 2, 2); // Increase the size and squash along the x-axis\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < verts.length; i++) {\n\t\t\t\t\tif (verts[i].getElement(0) < -0.0001) { // Don't move points in the middle of the x-axis\n\t\t\t\t\t\tverts[i].setElement(0, verts[i].getElement(0) + 0.8); // Move points on the left to the right. This part still bulges out to the left, but when it is on the right it is concave\n\t\t\t\t\t} else if (verts[i].getElement(0) > 0.0001) {\n\t\t\t\t\t\tverts[i].setElement(0, verts[i].getElement(0) - 0.8); // Move points on the right to the left.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// The faces are 'inside out', so the ordering of the vertices must be reversed in order to make the normals point the correct way\n\t\t\t\tfor (int i = 0; i < faces.length; i++) {\n\t\t\t\t\t// Swap the first and last vertices (0 and 2)\n\t\t\t\t\tint temp = faces[i][0];\n\t\t\t\t\tfaces[i][0] = faces[i][2];\n\t\t\t\t\tfaces[i][2] = temp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase HALF_CYLINDER:\n\t\t\t\tgenerateHalfCylinder();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Mesh constructor cannot take a null primitive\");\n\t\t}\n\t\tnormals = new Vector[faces.length];\n\t\tds = new double[faces.length];\n\t\tfor (int i = 0; i < faces.length; i++) {\n\t\t\tnormals[i] = normal(faces[i]); // Calculate the normal for the face\n\t\t\tds[i] = verts[faces[i][0]].dotProduct(normals[i]); // Calculate the value of d for the face\n\t\t}\n\t\tcalcBoxVerts(); // Calculate and store the vertices of the AOBB\n\t}", "public Circle() {\n this(0, 0, 1);\n }", "public FloatVector3D(){}" ]
[ "0.8276288", "0.79462624", "0.77486783", "0.76782686", "0.7661356", "0.7548837", "0.7450318", "0.7433006", "0.7372652", "0.7177436", "0.71048874", "0.7062574", "0.69891167", "0.6931783", "0.67286015", "0.6639419", "0.65770465", "0.6473046", "0.63680804", "0.6256927", "0.6248971", "0.6205002", "0.6160829", "0.6142866", "0.6142068", "0.6124809", "0.61237794", "0.6030056", "0.60197", "0.5992551", "0.5954524", "0.592741", "0.58907163", "0.5885409", "0.5779071", "0.57387674", "0.57361877", "0.5701977", "0.5692466", "0.56890655", "0.56738406", "0.56701106", "0.56498617", "0.5640206", "0.5637451", "0.5626626", "0.56100017", "0.5585662", "0.55652523", "0.55450624", "0.5543509", "0.5532833", "0.5514911", "0.5510695", "0.5496584", "0.54946834", "0.548875", "0.5488559", "0.5462072", "0.5430818", "0.5424877", "0.5424457", "0.5423996", "0.53991425", "0.53966177", "0.5394816", "0.5394031", "0.5388094", "0.5385351", "0.5383161", "0.5360853", "0.5356673", "0.5354639", "0.5336744", "0.53311723", "0.5308168", "0.53031456", "0.5299649", "0.52988714", "0.52977014", "0.52830744", "0.5278409", "0.52762926", "0.5276215", "0.52741414", "0.527209", "0.52719676", "0.52650815", "0.52642286", "0.52542466", "0.525178", "0.52431446", "0.52431333", "0.52176464", "0.52149016", "0.5213245", "0.5208025", "0.5204511", "0.5201807", "0.5188004" ]
0.7513383
6
This method calculates the intersections of the ray with the sphere.
public Hit hit (final Ray r) { final double a; final double b; final double cNor; final double t1; final double t2; final double d; final Point3 p; b = r.d.dot((r.o.sub(c)).mul(2)); a = r.d.dot(r.d); cNor = r.o.sub(c).dot(r.o.sub(c))-(this.r*this.r); d = (b * b) - (4 * a * cNor); if(d > 0) { t1 = (-b + Math.sqrt(d)) / (2 * a); t2 = (-b - Math.sqrt(d)) / (2 * a); if (t1 >= 0 & t2 >= 0) { p = r.at(Math.min(t1, t2)); return new Hit(Math.min(t1, t2), r, this,p.sub(c).normalized().asNormal(),texFor(p) ); }else if (t1 >= 0){ return new Hit(t1,r,this, r.at(t1).sub(c).normalized().asNormal(),texFor(r.at(t1))); }else if(t2 >= 0) { return new Hit(t2, r, this, r.at(t2).sub(c).normalized().asNormal(),texFor(r.at(t2))); } }else if (d == 0){ final double t3; t3 = -b / (2 * a); if (t3 >= 0){ return new Hit(t3, r, this, r.at(t3).sub(c).normalized().asNormal(), texFor(r.at(t3))); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void intersect( Ray ray, IntersectResult result ) {\n \t\tVector3d e = new Vector3d(ray.eyePoint);\n \t\te.sub(this.center);\n \t\tdouble a = ray.viewDirection.dot(ray.viewDirection);\n \t\tdouble b = 2 * ray.viewDirection.dot(e);\n \t\tdouble c = e.dot(e) - this.radius * this.radius;\n \t\tdouble discriminant = b*b - 4*a*c;\n \t\t\n \t\tif (discriminant == 0.0) {\n \t\t\t\n \t\t\tdouble t_pos = -0.5 * b / a;\n \t\t\t// scale ray viewDirection to be t_pos length\n\t\t\t// point of intersection is at ray.eyePoint + scaled viewDirection vector\n\t\t\tPoint3d point_of_intersection = new Point3d(ray.viewDirection);\n\t\t\tpoint_of_intersection.scale(t_pos);\n\t\t\tpoint_of_intersection.add(ray.eyePoint);\n\t\t\t\n\t\t\t// normal is point_of_intersection - sphere.center\n\t\t\tVector3d normal = new Vector3d();\n\t\t\tnormal.add(point_of_intersection);\n\t\t\tnormal.sub(this.center);\n\t\t\tnormal.normalize();\n\t\t\t\n\t\t\tresult.p.set(point_of_intersection);\n\t\t\tresult.material = this.material;\n\t\t\tresult.t = t_pos;\n\t\t\tresult.n.set(normal);\n \t\t\t\n \t\t}\n \t\telse if (discriminant > 0.0) {\n \t\t\t\n \t\t\t// solve quadratic formula\n \t\t\tdouble q = (b > 0) ? -0.5 * (b + Math.sqrt(discriminant)) : -0.5 * (b - Math.sqrt(discriminant));\n \t\t\tdouble t_pos = q / a;\n \t\t\tdouble t_neg = c / q;\n \t\t\t\n \t\t\tif (t_pos < t_neg) {\n \t\t\t\tdouble temp = t_pos;\n \t\t\t\tt_pos = t_neg;\n \t\t\t\tt_neg = temp;\n \t\t\t}\n \t\t\t\t\n \t\t\tif (t_neg > 0) {\n \t\t\t\t// scale ray viewDirection to be t_neg length\n \t\t\t\t// point of intersection is at ray.eyePoint + scaled viewDirection vector\n \t\t\tPoint3d point_of_intersection = new Point3d(ray.viewDirection);\n \t\t\tpoint_of_intersection.scale(t_neg);\n \t\t\tpoint_of_intersection.add(ray.eyePoint);\n \t\t\t\n \t\t\t// normal is point_of_intersection - sphere.center\n \t\t\tVector3d normal = new Vector3d();\n \t\t\tnormal.add(point_of_intersection);\n \t\t\tnormal.sub(this.center);\n \t\t\tnormal.normalize();\n \t\t\t\n \t\t\tresult.p.set(point_of_intersection);\n \t\t\tresult.material = this.material;\n \t\t\tresult.t = t_neg;\n \t\t\tresult.n.set(normal);\n \t\t\t}\n\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t\n \t\t\n\n }", "public Intersection[] intersectWith(Point3d S, Ray3d c) {\n Intersection[] result = null;\n\n double A = c.getX() * c.getX() + c.getY() * c.getY() + c.getZ() * c.getZ();\n\n double bx = (this.x - S.getX()); //Account for the Sphere's position\n double by = (this.y - S.getY());\n double bz = (this.z - S.getZ());\n\n double B = -(c.getX() * bx + c.getY() * by + c.getZ() * bz);\n\n double r = this.radius * this.radius;\n\n double C = bx * bx + by * by + bz * bz - r;\n\n double D = (B * B - A * C);\n if (D < 0) //no intersection\n {\n return null;\n }\n\n if (D == 0) //'graze' the sphere\n {\n result = new Intersection[1];\n Point3d P = S.plus(c.times(-B / A));\n result[0] = new Intersection(-B / A, this, true, 0, P, new Ray3d(P));\n /****/return null;\n }\n\n result = new Intersection[2];\n int hit = 0;\n\n double t1 = (-B - Math.sqrt(D)) / A;\n if (t1 > 0.00001) //The first hit\n {\n Point3d P = S.plus(c.times(t1));\n Ray3d N = P.minus(new Point3d(this.x, this.y, this.z));\n result[0] = new Intersection(t1, this, true, 0, P, N);\n hit++;\n }\n\n double t2 = (-B / A) + Math.sqrt(D) / A;\n if (t2 > 0.00000001) {\n Point3d P = S.plus(c.times(t2));\n Ray3d N = P.minus(new Point3d(this.x, this.y, this.z));\n result[hit] = new Intersection(t2, this, false, 0, P, N.reverse());\n }\n\n return result;\n }", "@Override\n // public Map<Geometry, List<Point3D>> findIntersections(Ray myRay) {\n public List<Point3D> FindIntersections(Ray myRay) {\n\n List<Point3D> geometryListMap = new ArrayList<>();\n List<Point3D> listOfIntersections = new ArrayList<Point3D>();\n\n // the bottom base of the cylinder\n Plane plane1 = new Plane(orientation.getPOO(), orientation.getDirection());\n\n // the top base of the cylinder\n Plane plane2 = new Plane(top, orientation.getDirection());\n\n List<Point3D> temp1 = plane1.FindIntersections(myRay);\n\n List<Point3D> temp2 = plane2.FindIntersections(myRay);\n\n // removing all points that beyond the radius\n if (temp1 != null)\n for (Point3D p1 : temp1) {\n if (new Vector(Point3D.substract(orientation.getPOO(), p1)).length() <= _radius && p1 != null)\n listOfIntersections.add(p1);\n\n }\n\n if (temp2 != null)\n for (Point3D p2 : temp2) {\n if (new Vector(Point3D.substract(orientation.getPOO(), p2)).length() <= _radius && p2 != null)\n listOfIntersections.add(p2);\n\n }\n\n // using the infinity cylinder to find all the intersections in the body of the limited cylinder\n geometryListMap = super.FindIntersections(myRay);\n\n for (Point3D p : geometryListMap) {\n if (isOnCylinder(p))\n listOfIntersections.add(p);\n\n }\n if (listOfIntersections.isEmpty())\n return null;\n //geometryListMap.put(this, listOfIntersections);\n return geometryListMap;\n }", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray) {\r\n\t\tList<GeoPoint> list = new ArrayList<GeoPoint>();\r\n\t\tVector rayDirection = ray.getDirection();\r\n\t\tPoint3D rayPoint = ray.getPOO();\r\n\r\n\t\t// case centerPoint same as the RayPoint\r\n\t\tif (centerPoint.equals(rayPoint)) {\r\n\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(radius))));\r\n\t\t\treturn list;\r\n\t\t}\r\n\r\n\t\t// u = centerPoint - rayPoint\r\n\t\tVector u = centerPoint.subtract(rayPoint);\r\n\t\t// tm = u * rayDirection\r\n\t\tdouble tm = rayDirection.dotProduct(u);\r\n\t\t// distance = sqrt(|u|^2 - tm^2)\r\n\t\tdouble d = Math.sqrt(u.dotProduct(u) - tm * tm);\r\n\t\t// case the distance is bigger than radius no intersections\r\n\t\tif (d > radius)\r\n\t\t\treturn list;\r\n\r\n\t\t// th = sqrt(R^2 - d^2)\r\n\t\tdouble th = Math.sqrt(radius * radius - d * d);\r\n\r\n\t\tdouble t1 = tm - th;\r\n\t\tdouble t2 = tm + th;\r\n\r\n\t\tif (Util.isZero(t1) || Util.isZero(t2)) {\r\n\t\t\tlist.add(new GeoPoint(this, rayPoint));\r\n\t\t}\r\n\t\tif (Util.isZero(th)) {\r\n\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(tm))));\r\n\t\t} else {\r\n\t\t\tif (t1 > 0 && !Util.isZero(t1))// one\r\n\t\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(t1))));\r\n\t\t\tif (t2 > 0 && !Util.isZero(t2)) {// two\r\n\t\t\t\tlist.add(new GeoPoint(this, rayPoint.addVector(rayDirection.scale(t2))));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}", "public boolean\n doIntersection(Ray inOutRay) {\n double t, min_t = Double.MAX_VALUE;\n double x2 = size.x/2; // OJO: Esto deberia venir precalculado\n double y2 = size.y/2; // OJO: Esto deberia venir precalculado\n double z2 = size.z/2; // OJO: Esto deberia venir precalculado\n Vector3D p = new Vector3D();\n GeometryIntersectionInformation info = \n new GeometryIntersectionInformation();\n\n inOutRay.direction.normalize();\n\n // (1) Plano superior: Z = size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=size.z/2\n t = (z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = new Vector3D(p);\n min_t = t;\n lastPlane = 1;\n }\n }\n }\n\n // (2) Plano inferior: Z = -size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=-size.z/2\n t = (-z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 2;\n }\n }\n }\n\n // (3) Plano frontal: Y = size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=size.y/2\n t = (y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 3;\n }\n }\n }\n\n // (4) Plano posterior: Y = -size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=-size.y/2\n t = (-y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 4;\n }\n }\n }\n\n // (5) Plano X = size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=size.x/2\n t = (x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 5;\n }\n }\n }\n\n // (6) Plano X = -size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=-size.x/2\n t = (-x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 6;\n }\n }\n }\n\n if ( min_t < Double.MAX_VALUE ) {\n inOutRay.t = min_t;\n lastInfo.clone(info);\n return true;\n }\n return false;\n }", "public static void main(String[] args){\n Mesh3D box = Mesh3D.box(10, 20, 60);\n \n Line3D lineX = box.getLineX();\n Line3D lineY = box.getLineY();\n Line3D lineZ = box.getLineZ();\n lineX.show();\n lineY.show();\n lineZ.show();\n box.translateXYZ(100, 0.0, 0.0); \n box.show();\n Line3D line = new Line3D(); \n List<Point3D> intersects = new ArrayList<Point3D>();\n \n for(int p = 0; p < 100; p++){\n double r = 600;\n double theta = Math.toRadians(90.0);//Math.toRadians(Math.random()*180.0);\n double phi = Math.toRadians(Math.random()*360.0-180.0);\n line.set(0.0,0.0,0.0, \n Math.sin(theta)*Math.cos(phi)*r,\n Math.sin(theta)*Math.sin(phi)*r,\n Math.cos(theta)*r\n );\n intersects.clear();\n box.intersectionRay(line, intersects);\n System.out.println(\"theta/phi = \" + Math.toDegrees(theta) + \" \"\n + Math.toDegrees(phi) + \" intersects = \" + intersects.size());\n \n }\n }", "public List<Point3D> FindIntersections(Ray ray) throws Exception\n {\n List<Point3D> ListInter = new LinkedList<Point3D>();\n\n //find P0\n Point3D P0 = new Point3D(ray.getPOO());\n\n //find the triangle's Normal\n Vector N = this.getNormal(this.getP1());\n\n //find Plane\n Plane plane = new Plane(N, this.getP3());\n\n //if the intersection between the ray and plane\n List<Point3D> ListIntersectionPlane = plane.FindIntersections(ray);\n\n if(ListIntersectionPlane.isEmpty())\n return ListInter;\n\n Point3D intersectionPlane = ListIntersectionPlane.get(0);\n\n //defin Vector P_P0\n Vector P_P0 = new Vector(P0, intersectionPlane);\n\n //checking side 1-2\n Vector V1_1 = new Vector(P0, this._p1);\n Vector V2_1 = new Vector(P0, this._p2);\n Vector N1 = new Vector(V1_1.crossProduct(V2_1));\n N1.normalize();\n double S1 = -P_P0.dotProduct(N1);\n\n //checking side 2-3\n Vector V1_2 = new Vector(P0, this._p2);\n Vector V2_2 = new Vector(P0, this._p3);\n Vector N2 = new Vector(V1_2.crossProduct(V2_2));\n N2.normalize();\n double S2 = -P_P0.dotProduct(N2);\n\n //checking side 3-1\n Vector V1_3 = new Vector(P0, this._p3);\n Vector V2_3 = new Vector(P0, this._p1);\n Vector N3 = new Vector(V1_3.crossProduct(V2_3));\n N3.normalize();\n double S3 = -P_P0.dotProduct(N3);\n\n if (((S1 > 0) && (S2 > 0) && (S3 > 0)) || ((S1 < 0) && (S2 < 0) && (S3 < 0)))\n ListInter.add(intersectionPlane);\n return ListInter;\n\n }", "private Map<Geometry, List<Point3D>> getSceneRayIntersections(Ray ray){\n //Map key - geometric\n //value - a list of cut points\n Map<Geometry, List<Point3D>> sceneRayIntersectPions = new HashMap<Geometry, List<Point3D>>();\n //Iterator we can go through all the geometric shapes\n Iterator<Geometry> geometries = _scene.getGeometriesIterator();\n //for each geometry finde intersection points\n while (geometries.hasNext()){\n Geometry geometry = geometries.next();\n List<Point3D> geometryIntersectionPoints = geometry.FindIntersections(ray);\n if(!geometryIntersectionPoints.isEmpty())\n //add geometryIntersectionPoints(list) to key geometry\n sceneRayIntersectPions.put(geometry, geometryIntersectionPoints);\n }\n return sceneRayIntersectPions;\n }", "@Test\n public void testGetIntersect() throws Exception {\n Vector farIntersect = sphere.getIntersect(new Vector(0,0,0),new Vector(0,-6,10));\n assertTrue(farIntersect.equals(new Vector(0,-6,10)));\n }", "public double findRayIntersection(Vec3 origin, Vec3 direction, Vec3 normal)\n {\n double scale = width/obj.getScale();\n double ox = origin.x*scale+0.5*width;\n double oy = origin.y*scale+0.5*width;\n double oz = origin.z*scale+0.5*width;\n double dx = direction.x;\n double dy = direction.y;\n double dz = direction.z;\n\n // Find the intersection of the ray with the bounding box.\n\n double mint = -Double.MAX_VALUE;\n double maxt = Double.MAX_VALUE;\n if (dx == 0.0)\n {\n if (ox < minx || ox > maxx)\n return 0.0;\n }\n else\n {\n double t1 = (minx-ox)/dx;\n double t2 = (maxx-ox)/dx;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (dy == 0.0)\n {\n if (oy < miny || oy > maxy)\n return 0.0;\n }\n else\n {\n double t1 = (miny-oy)/dy;\n double t2 = (maxy-oy)/dy;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (dz == 0.0)\n {\n if (oz < minz || oz > maxz)\n return 0.0;\n }\n else\n {\n double t1 = (minz-oz)/dz;\n double t2 = (maxz-oz)/dz;\n if (t1 < t2)\n {\n if (t1 > mint)\n mint = t1;\n if (t2 < maxt)\n maxt = t2;\n }\n else\n {\n if (t2 > mint)\n mint = t2;\n if (t1 < maxt)\n maxt = t1;\n }\n if (mint > maxt || maxt < 0.0)\n return 0.0;\n }\n if (mint < 0.0)\n mint = 0.0;\n\n // Find the first voxel and initialize variables.\n\n double xpos = ox+mint*dx;\n double ypos = oy+mint*dy;\n double zpos = oz+mint*dz;\n int x = Math.max(Math.min((int) xpos, maxx), minx);\n int y = Math.max(Math.min((int) ypos, maxy), miny);\n int z = Math.max(Math.min((int) zpos, maxz), minz);\n int stepx, stepy, stepz;\n int finalx, finaly, finalz;\n double tdeltax, tdeltay, tdeltaz;\n double tmaxx, tmaxy, tmaxz;\n if (dx < 0.0)\n {\n stepx = -1;\n finalx = minx-1;\n tdeltax = -1.0/dx;\n tmaxx = (x-ox)/dx;\n }\n else if (dx > 0.0)\n {\n stepx = 1;\n finalx = maxx+1;\n tdeltax = 1.0/dx;\n tmaxx = (x+1-ox)/dx;\n }\n else\n {\n stepx = 0;\n finalx = 0;\n tdeltax = 0.0;\n tmaxx = Double.MAX_VALUE;\n }\n if (dy < 0.0)\n {\n stepy = -1;\n finaly = miny-1;\n tdeltay = -1.0/dy;\n tmaxy = (y-oy)/dy;\n }\n else if (dy > 0.0)\n {\n stepy = 1;\n finaly = maxy+1;\n tdeltay = 1.0/dy;\n tmaxy = (y+1-oy)/dy;\n }\n else\n {\n stepy = 0;\n finaly = 0;\n tdeltay = 0.0;\n tmaxy = Double.MAX_VALUE;\n }\n if (dz < 0.0)\n {\n stepz = -1;\n finalz = minz-1;\n tdeltaz = -1.0/dz;\n tmaxz = (z-oz)/dz;\n }\n else if (dz > 0.0)\n {\n stepz = 1;\n finalz = maxz+1;\n tdeltaz = 1.0/dz;\n tmaxz = (z+1-oz)/dz;\n }\n else\n {\n stepz = 0;\n finalz = 0;\n tdeltaz = 0.0;\n tmaxz = Double.MAX_VALUE;\n }\n\n // Step through the voxels, looking for intersections.\n\n VoxelOctree voxels = obj.getVoxels();\n byte values[] = new byte[8];\n while (true)\n {\n int index = x*width*width+y*width+z;\n if ((flags[index/32]&(1<<(index%32))) != 0)\n {\n // There is a piece of the surface in this voxel, so see if the ray intersects it.\n // First find the values of t at which the ray enters and exits it.\n \n double tenter = -Double.MAX_VALUE;\n double texit = Double.MAX_VALUE;\n if (dx != 0.0)\n {\n double t1 = (x-ox)/dx;\n double t2 = (x+1-ox)/dx;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (dy != 0.0)\n {\n double t1 = (y-oy)/dy;\n double t2 = (y+1-oy)/dy;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (dz != 0.0)\n {\n double t1 = (z-oz)/dz;\n double t2 = (z+1-oz)/dz;\n if (t1 < t2)\n {\n if (t1 > tenter)\n tenter = t1;\n if (t2 < texit)\n texit = t2;\n }\n else\n {\n if (t2 > tenter)\n tenter = t2;\n if (t1 < texit)\n texit = t1;\n }\n }\n if (tenter < 0.0)\n continue; // Ignore intersections in the voxel containing the origin.\n\n // Look up the values at the eight corners of the voxel.\n\n values[0] = voxels.getValue(x, y, z);\n values[1] = voxels.getValue(x, y, z+1);\n values[2] = voxels.getValue(x, y+1, z);\n values[3] = voxels.getValue(x, y+1, z+1);\n values[4] = voxels.getValue(x+1, y, z);\n values[5] = voxels.getValue(x+1, y, z+1);\n values[6] = voxels.getValue(x+1, y+1, z);\n values[7] = voxels.getValue(x+1, y+1, z+1);\n\n // Find the positions within the voxel where the ray enters and exits.\n\n double xenter = ox+dx*tenter-x;\n double yenter = oy+dy*tenter-y;\n double zenter = oz+dz*tenter-z;\n double xexit = ox+dx*texit-x;\n double yexit = oy+dy*texit-y;\n double zexit = oz+dz*texit-z;\n\n // Interpolate the find the values at those points.\n\n double enterValue = values[0]*(1.0-xenter)*(1.0-yenter)*(1.0-zenter)\n +values[1]*(1.0-xenter)*(1.0-yenter)*zenter\n +values[2]*(1.0-xenter)*yenter*(1.0-zenter)\n +values[3]*(1.0-xenter)*yenter*zenter\n +values[4]*xenter*(1.0-yenter)*(1.0-zenter)\n +values[5]*xenter*(1.0-yenter)*zenter\n +values[6]*xenter*yenter*(1.0-zenter)\n +values[7]*xenter*yenter*zenter;\n double exitValue = values[0]*(1.0-xexit)*(1.0-yexit)*(1.0-zexit)\n +values[1]*(1.0-xexit)*(1.0-yexit)*zexit\n +values[2]*(1.0-xexit)*yexit*(1.0-zexit)\n +values[3]*(1.0-xexit)*yexit*zexit\n +values[4]*xexit*(1.0-yexit)*(1.0-zexit)\n +values[5]*xexit*(1.0-yexit)*zexit\n +values[6]*xexit*yexit*(1.0-zexit)\n +values[7]*xexit*yexit*zexit;\n if ((enterValue > 0 && exitValue <= 0) || (enterValue <= 0 && exitValue > 0))\n {\n // Find the intersection point.\n\n double weight1 = Math.abs(exitValue);\n double weight2 = Math.abs(enterValue);\n double d = 1.0/(weight1+weight2);\n weight1 *= d;\n weight2 *= d;\n double tintersect = (tenter*weight1 + texit*weight2)/scale;\n if (normal != null)\n {\n normal.set(values[0]+values[1]+values[2]+values[3]-values[4]-values[5]-values[6]-values[7],\n values[0]+values[1]-values[2]-values[3]+values[4]+values[5]-values[6]-values[7],\n values[0]-values[1]+values[2]-values[3]+values[4]-values[5]+values[6]-values[7]);\n normal.normalize();\n }\n return tintersect;\n }\n }\n\n // Advance to the next voxel.\n\n if (tmaxx < tmaxy)\n {\n if (tmaxx < tmaxz)\n {\n x += stepx;\n if (x == finalx)\n return 0.0;\n tmaxx += tdeltax;\n }\n else\n {\n z += stepz;\n if (z == finalz)\n return 0.0;\n tmaxz += tdeltaz;\n }\n }\n else\n {\n if (tmaxy < tmaxz)\n {\n y += stepy;\n if (y == finaly)\n return 0.0;\n tmaxy += tdeltay;\n }\n else\n {\n z += stepz;\n if (z == finalz)\n return 0.0;\n tmaxz += tdeltaz;\n }\n }\n }\n }", "@Override\n public int octree_function(Object... obj) //public static int\n //o_sphere(\t\t\t/* compute intersection with sphere */\n //\tOBJECT.OBJREC so,\n //\tRAY r\n //)\n {\n OBJECT.OBJREC so = (OBJECT.OBJREC) obj[0];\n RAY r = (RAY) obj[1];\n double a, b, c;\t/* coefficients for quadratic equation */\n double[] root = new double[2];\t/* quadratic roots */\n int nroots;\n double t = 0;\n double[] ap;\n int i;\n\n if (so.oargs.nfargs != 4) {\n//\t\tobjerror(so, USER, \"bad # arguments\");\n }\n ap = so.oargs.farg;\n if (ap[3] < -FVECT.FTINY) {\n//\t\tobjerror(so, WARNING, \"negative radius\");\n so.otype = (short) (so.otype == OTYPES.OBJ_SPHERE\n ? OTYPES.OBJ_BUBBLE : OTYPES.OBJ_SPHERE);\n ap[3] = -ap[3];\n } else if (ap[3] <= FVECT.FTINY) {\n//\t\tobjerror(so, USER, \"zero radius\");\n }\n /*\n *\tWe compute the intersection by substituting into\n * the surface equation for the sphere. The resulting\n * quadratic equation in t is then solved for the\n * smallest positive root, which is our point of\n * intersection.\n *\tSince the ray is normalized, a should always be\n * one. We compute it here to prevent instability in the\n * intersection calculation.\n */\n /* compute quadratic coefficients */\n a = b = c = 0.0;\n for (i = 0; i < 3; i++) {\n a += r.rdir.data[i] * r.rdir.data[i];\n t = r.rorg.data[i] - ap[i];\n b += 2.0 * r.rdir.data[i] * t;\n c += t * t;\n }\n c -= ap[3] * ap[3];\n\n nroots = ZEROES.quadratic(root, a, b, c);\t/* solve quadratic */\n\n for (i = 0; i < nroots; i++) /* get smallest positive */ {\n if ((t = root[i]) > FVECT.FTINY) {\n break;\n }\n }\n if (i >= nroots) {\n return (0);\t\t\t/* no positive root */\n }\n\n if (t >= r.rot) {\n return (0);\t\t\t/* other is closer */\n }\n\n r.ro = so;\n r.rot = t;\n /* compute normal */\n a = ap[3];\n if (so.otype == OTYPES.OBJ_BUBBLE) {\n a = -a;\t\t\t/* reverse */\n }\n for (i = 0; i < 3; i++) {\n r.rop.data[i] = r.rorg.data[i] + r.rdir.data[i] * t;\n r.ron.data[i] = (r.rop.data[i] - ap[i]) / a;\n }\n r.rod = -FVECT.DOT(r.rdir, r.ron);\n r.rox = null;\n r.pert.data[0] = r.pert.data[1] = r.pert.data[2] = 0.0;\n r.uv[0] = r.uv[1] = 0.0;\n\n return (1);\t\t\t/* hit */\n }", "public double intersect(Ray3D r) {\n\t\tdouble dn = (r.d).dot(n);\n\t\tif (dn==0.0) return Double.POSITIVE_INFINITY;\n\t\tdouble t = (p.subtract(r.p)).dot(n)/dn;\n\t\tif (t > 0) return t;\n\t\telse return Double.POSITIVE_INFINITY;\n\t}", "@Override\n public RayHit rayIntersectObj(Ray3D ray) {\n // Next check if ray hits this quadric\n Point3D hitPoint = findHitPoint(ray);\n if (hitPoint == null || !isWithinBounds(hitPoint)) {\n return RayHit.NO_HIT;\n }\n double distance = hitPoint.subtract(ray.getPoint()).length();\n Point3D normal = findNormalAtPoint(hitPoint);\n return new RayHit(hitPoint, distance, normal, this, new TextureCoordinate(0, 0));\n }", "@Override\n\tpublic Intersection intersect(Ray ray) {\n\t\tdouble maxDistance = 10;\n\t\tdouble stepSize = 0.001; \n\t\tdouble t = 0;\n\t\t\n\t\twhile(t<maxDistance) {\t\t\t\n\t\t\tVector point = ray.m_Origin.add(ray.m_Direction.mul(t));\t\t\t\n\t\t\tdouble eval = torus(point);\t\t\t\n\t\t\tif(Math.abs(eval)<0.001) {\n\t\t\t\tVector normal = estimateNormal(point);\n\t\t return new Intersection(this, ray, t, normal, point);\n\t\t\t}\t\t\t\n\t\t\tt += stepSize;\n\t\t}\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic void intersect(Ray ray, IntersectResult result) {\n\t\t\t\tdouble tmin,tmax;\n\t\t\t\tdouble xmin, xmax, ymin, ymax, zmin, zmax;\n\t\t\t\t//find which face to cross\n\n\t\t\t\tif(ray.viewDirection.x>0){\n\t\t\t\t\txmin=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}else{\n\t\t\t\t\txmin=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.y>0){\n\t\t\t\t\tymin=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}else{\n\t\t\t\t\tymin=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.z>0){\n\t\t\t\t\tzmin=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}else{\n\t\t\t\t\tzmin=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttmin=Double.max(xmin, ymin);\n\t\t\t\ttmin=Double.max(tmin, zmin);\n\t\t\t\ttmax=Double.min(xmax, ymax);\n\t\t\t\ttmax=Double.min(tmax, zmax);\n\t\t\t\t\n\t\t\t\t \n\t\t\t\tif(tmin<tmax && tmin>0){\n\t\t\t\t\t\n\t\t\t\t\tresult.material=material;\n\t\t\t\t\tresult.t=tmin;\n\t\t\t\t\tPoint3d p=new Point3d(ray.viewDirection);\n\t\t\t\t\tp.scale(tmin);\n\t\t\t\t\tp.add(ray.eyePoint);\n\t\t\t\t\tresult.p=p;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfinal double epsilon=1e-9;\n\t\t\t\t\t// find face and set the normal\n\t\t\t\t\tif(Math.abs(p.x-min.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(-1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.x-max.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.y-min.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,-1,0);\n\t\t\t\t\t}else if(Math.abs(p.y-max.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,1,0);\n\t\t\t\t\t}else if(Math.abs(p.z-min.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,-1);\n\t\t\t\t\t}else if(Math.abs(p.z-max.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t}", "@Override\r\n public void intersect( Ray ray, IntersectResult result ) {\n\t\r\n }", "@Override\n\tpublic RaySceneObjectIntersection getClosestRayIntersection(Ray ray)\n\t{\n\t\tVector3D v=Vector3D.difference(ray.getP(), pointOnAxis);\n\t\tVector3D vP = v.getDifferenceWith(v.getProjectionOnto(normalisedAxisDirection));\t// part of v that's perpendicular to a\n\t\tVector3D dP = ray.getD().getDifferenceWith(ray.getD().getProjectionOnto(normalisedAxisDirection));\t// part of ray.d that's perpendicular to a\n\t\t\n\t\t// coefficients in the quadratic equation for t\n\t\tdouble a = dP.getModSquared();\n\t\t\n\t\tif(a==0.0) return RaySceneObjectIntersection.NO_INTERSECTION;\t// would give division by zero later\n\n\t\tdouble\n\t\t\tb2 = Vector3D.scalarProduct(vP, dP),\t// b/2\n\t\t\tc = vP.getModSquared() - radius*radius,\n\t\t\tdiscriminant4 = b2*b2 - a*c;\t// discriminant/4\n\n\t\t// first check if the discriminant is >0; if it isn't, then there is no intersection at all\n\t\tif(discriminant4 < 0.0) return RaySceneObjectIntersection.NO_INTERSECTION;\n\t\t\n\t\t// okay, the discriminant is positive; take its square root, which is what we actually need\n\t\tdouble sqrtDiscriminant2 = Math.sqrt(discriminant4);\t// sqrt(discriminant)/2\n\t\t\t\n\t\t// calculate the factor t corresponding to the\n\t\t// intersection with the greater t factor;\n\t\t// the further-away intersection is then ray.p + tBigger*ray.d\n\t\tdouble tBigger=((a>0)?(-b2+sqrtDiscriminant2)/a:(-b2-sqrtDiscriminant2)/a);\n\t\t\n\t\t//if tBigger<0, then the intersection with the lesser t factor will have to be even more negative;\n\t\t// therefore, both intersections will be \"behind\" the starting point\n\t\tif(tBigger < 0.0) return RaySceneObjectIntersection.NO_INTERSECTION;\n\n\t\t// calculate the factor tSmaller corresponding to the\n\t\t// intersection with the lesser t factor\n\t\tdouble tSmaller=((a>0)?(-b2-sqrtDiscriminant2)/a:(-b2+sqrtDiscriminant2)/a);\n\n\t\tRay rayAtIntersectionPoint;\n\t\t\n\t\t// first check if the intersection point with the lesser t factor is an option\n\t\tif(tSmaller > 0.0)\n\t\t{\n\t\t\t// the intersection with the lesser t factor lies in front of the starting point, so it might correspond to the intersection point\n\t\t\t\n\t\t\t// calculate the ray advanced to the intersection point\n\t\t\trayAtIntersectionPoint = ray.getAdvancedRay(tSmaller);\n\t\t\t\n\t\t\treturn new RaySceneObjectIntersection(rayAtIntersectionPoint.getP(), this, rayAtIntersectionPoint.getT());\n\t\t}\n\t\t\n\t\t// If the program reaches this point, the intersection with the lesser t factor was not the right intersection.\n\t\t// Now try the intersection point with the greater t factor.\n\t\t\n\t\t// calculate the ray advanced to the intersection point\n\t\trayAtIntersectionPoint = ray.getAdvancedRay(tBigger);\n\n\t\treturn new RaySceneObjectIntersection(rayAtIntersectionPoint.getP(), this, rayAtIntersectionPoint.getT());\n\t}", "List<GeoPoint> findGeoIntersections(Ray ray);", "private Vec3 trace(Ray ray) {\n\t\tSphere sphere = null;\n\n\t\tfor (int i = 0; i < spheres.size(); i++) {\n\t\t\tif (spheres.get(i).intersect(ray)) {\n\t\t\t\tsphere = spheres.get(i);\n\t\t\t}\n\t\t}\n\n\t\tif (sphere == null) {\n\t\t\treturn new Vec3(0.0f); // Background color.\n\t\t}\n\n\t\tVec3 p = ray.getIntersection(); // Intersection point.\n\t\tVec3 n = sphere.normal(p); // Normal at intersection.\n\n\t\treturn light.phong(sphere, p, n);\n\t}", "@Override\n\tpublic RaySceneObjectIntersection getClosestRayIntersection(Ray ray)\n\t{\t\t//this is calculating the \"term under the square root\"\n\t\tVector3D v=Vector3D.difference(ray.getP(), centre);\t\t\t\t\t\t//which must be greater than 0 for intersection\n\n\t\t// coefficients in the quadratic equation for t\n\t\tdouble \n\t\tquadraticA = ray.getD().getModSquared(),\n\t\tquadraticB2 = Vector3D.scalarProduct(v, ray.getD()),\t// b/2\n\t\tquadraticC = v.getModSquared() - MyMath.square(radius);\n\n\t\t// discriminant/2\n\t\tdouble discriminant2 = quadraticB2*quadraticB2-quadraticA*quadraticC;\n\n\n\t\tif(discriminant2<0.0) {\n\t\t\t//returns NaN if there is no intersection\n\t\t\treturn RaySceneObjectIntersection.NO_INTERSECTION;\n\t\t}\n\n\t\tdouble t1=(-quadraticB2+Math.sqrt(discriminant2))/quadraticA;\n\n\t\tif(t1<0.0) {\n\t\t\t//if t1<0 then t2 must be less than zero\n\t\t\treturn RaySceneObjectIntersection.NO_INTERSECTION;\n\t\t}\n\n\t\tdouble t2=(-quadraticB2-Math.sqrt(discriminant2))/quadraticA;\n\t\t\n\t\tRay rayAtIntersectionPoint = ray.getAdvancedRay((t2<0.0)?t1:t2);\n\n\t\treturn new RaySceneObjectIntersection(\n\t\t\t\trayAtIntersectionPoint.getP(),\n\t\t\t\tthis,\n\t\t\t\trayAtIntersectionPoint.getT()\n\t\t\t);\n\t}", "@Override\n public boolean\n doIntersection(Ray inOut_Ray) {\n // TODO!\n return false;\n }", "default List<Point3D> findIntersections(Ray ray) {\n\tList<GeoPoint> geoList = findGeoIntersections(ray);\n\treturn geoList == null ? null\n\t: geoList .stream()\n\t.map(gp -> gp.point)\n\t.collect(Collectors.toList());\n\t}", "@Override\n public List<GeoPoint> findGeoIntersections(Ray ray , double maxDistance) {\n Point3D P0 = ray.getP0();\n Vector v = ray.getDir();\n\n if (P0.equals(_center)) {\n return List.of(new GeoPoint(this,_center.add(v.scale(_radius))));\n }\n\n Vector U = _center.subtract(P0);\n\n double tm = alignZero(v.dotProduct(U));\n double d = alignZero(Math.sqrt(U.lengthSquared() - tm * tm));\n\n // no intersections : the ray direction is above the sphere\n if (d >= _radius) {\n return null;\n }\n\n double th = alignZero(Math.sqrt(_radius * _radius - d * d));\n double t1 = alignZero(tm - th);\n double t2 = alignZero(tm + th);\n boolean validT1=alignZero(t1 - maxDistance ) <=0;\n boolean validT2=alignZero( t2 - maxDistance )<=0;\n if (t1>0 && t2>0 && validT1 && validT2) {\n Point3D P1 =ray.getPoint(t1);\n Point3D P2 =ray.getPoint(t2);\n return List.of(new GeoPoint(this,P1),new GeoPoint(this, P2));\n }\n if (t1>0 && validT1){\n Point3D P1 =ray.getPoint(t1);\n return List.of(new GeoPoint(this,P1));\n }\n if (t2>0 && validT2) {\n Point3D P2 =ray.getPoint(t2);\n return List.of(new GeoPoint(this,P2));\n }\n return null;\n }", "protected SphereRayIntersection(Point3D point, double distance, boolean outer, Sphere sphere) {\n\t\t\tsuper(point, distance, outer);\n\t\t\tthis.sphere = sphere;\n\t\t}", "private Point3 _getIntersection(Point3 eye, Point3 direction) {\n int size = NORMALS.length;\n float tresult;\n Point4 norm; // normal of face hit\n Plane plane; // plane equation\n float tnear, tfar, t, vn, vd;\n int front = 0, back = 0; // front/back face # hit\n\n tnear = -1.0e+20f; // -HUGE_VAL\n tfar = +1.0e+20f; // tmax\n for (int i = 0; i < size; i++) {\n\n plane = _planes[i];\n\n vd = plane.dot(direction);\n vn = plane.distance(eye);\n if (vd == 0.0f) {\n // ray is parallel to plane -\n // check if ray origin is inside plane's\n // half-space\n if (vn < 0.0f) {\n return null;\n }\n\n } else {\n // ray not parallel - get distance to plane\n t = -vn / vd;\n if (vd > 0.0f) {\n\n if (t > tfar) {\n return null;\n }\n if (t > tnear) {\n // hit near face, update normal\n front = i;\n tnear = t;\n }\n } else {\n // back face - T is a far point\n\n if (t < tnear) {\n return null;\n }\n if (t < tfar) {\n // hit far face, update normal\n\n back = i;\n tfar = t;\n }\n }\n }\n }\n // survived all tests\n // Note: if ray originates on polyhedron,\n // may want to change 0.0 to some\n // epsilon to avoid intersecting the originating face.\n //\n if (tnear >= 0.0f) {\n // outside, hitting front face\n norm = _planes[front]._normal;\n tresult = tnear;\n return Point3.addition(eye, direction.scaled(tresult));\n } else {\n if (tfar < 1.0e+20f) {\n // inside, hitting back face\n norm = _planes[back]._normal;\n tresult = tfar;\n return Point3.addition(eye, direction.scaled(tresult));\n } else {\n // inside, but back face beyond tmax//\n return null;\n }\n }\n }", "@Override\r\n\tpublic List<GeoPoint> findIntersections(Ray ray,double maxDistance) {\n\t List<GeoPoint> intersections = null;\r\n\r\n\t for (Intersectable geo : _geometriesList) {\r\n\t List<GeoPoint> tempIntersections = geo.findIntersections(ray,maxDistance);\r\n\t if (tempIntersections != null) {\r\n\t if (intersections == null)\r\n\t intersections = new ArrayList<GeoPoint>();\r\n\t intersections.addAll(tempIntersections);\r\n\t }\r\n\t }\r\n\t \r\n\r\n\t return intersections;\r\n\r\n\t}", "public boolean intersect(IntersectionRecord outRecord, Ray rayIn) {\n\t// TODO: Process rayIn so that it is in the same coordinates as the object.\n // This should be a single line.\n\trayIn = untransformRay(rayIn);\n Ray ray = rayIn;\n\n // Rename the common vectors so I don't have to type so much\n Vector3 d = ray.direction;\n Point3 c = center;\n Point3 o = ray.origin;\n\n double tMin = ray.start, tMax = ray.end;\n // Compute some factors used in computation\n double qx = o.x - c.x;\n double qy = o.y - c.y;\n //double qz = o.z - c.z;\n double rr = radius * radius;\n\n double dd = d.x * d.x + d.y *d.y;\n double qd = d.x * qx + d.y * qy;\n double qq = qx * qx + qy * qy;\n\n double t = 0, td1=0, td2=0;\n double zMin = c.z - height/2;\n double zMax = c.z + height/2;\n\n // z-plane cap calculations\n if (d.z >= 0) {\n td1 = (zMin- o.z) / d.z;\n td2 = (zMax - o.z) / d.z;\n }\n else {\n td1 = (zMax - o.z) / d.z;\n td2 = (zMin - o.z) / d.z;\n }\n if (tMin > td2 || td1 > tMax)\n return false;\n if (td1 > tMin)\n tMin = td1;\n if (td2 < tMax)\n tMax = td2;\n\n // solving the quadratic equation for t at the pts of intersection\n // dd*t^2 + (2*qd)*t + (qq-r^2) = 0\n double discriminantsqr = (qd * qd - dd * (qq - rr));\n\n // If the discriminant is less than zero, there is no intersection\n if (discriminantsqr < 0) {\n return false;\n }\n\n // Otherwise check and make sure that the intersections occur on the ray (t\n // > 0) and return the closer one\n double discriminant = Math.sqrt(discriminantsqr);\n double t1 = (-qd - discriminant) / dd;\n double t2 = (-qd + discriminant) / dd;\n\n if (t1 > ray.start && t1 < ray.end) {\n t = t1;\n }\n else if (t2 > ray.start && t2 < ray.end) {\n t = t2;\n }\n\n Point3 thit1 = new Point3(0,0,0); \n ray.evaluate(thit1, tMin);\n Point3 thit2 = new Point3(0,0,0); \n ray.evaluate(thit2, tMax);\n\n double dx1 = thit1.x-c.x; \n double dy1 = thit1.y-c.y; \n double dx2 = thit2.x-c.x; \n double dy2 = thit2.y-c.y; \n\n if ((t < tMin || t > tMax) && dx1 * dx1 + dy1 * dy1 > rr && dx2 * dx2 + dy2 * dy2 > rr) {\n return false;\n }\n\n // There was an intersection, fill out the intersection record\n if (outRecord != null) {\n double tside =Math.min( td1, td2);\n\n if (t <tside) {\n outRecord.t = tside;\n ray.evaluate(outRecord.location, tside);\n outRecord.normal.set(0, 0, 1);\n }\n else {\n outRecord.t = t;\n ray.evaluate(outRecord.location, t);\n outRecord.normal.sub(new Point3(outRecord.location.x,outRecord.location.y,0), new Point3(c.x,c.y,0));\n }\n\n if (outRecord.normal.dot(ray.direction) > 0)\n outRecord.normal.scale(-1);\n\n outRecord.surface = this;\n // TODO: Transform the location and normal back into world coordinates.\n // Transform the location by tMat\n tMat.rightMultiply(outRecord.location);\n // Transform the normal by tMatTInv\n tMatTInv.rightMultiply(outRecord.normal);\n \n outRecord.normal.normalize();\n }\n\n return true;\n }", "public boolean intersectSphereTriangle(Triangle t, Vec3D result) {\n\t\t// Find Vec3D P on triangle ABC closest to sphere center\n\t\tresult.set(t.closestPointOnSurface(this));\n\n\t\t// Sphere and triangle intersect if the (squared) distance from sphere\n\t\t// center to Vec3D p is less than the (squared) sphere radius\n\t\tVec3D v = result.sub(this);\n\t\treturn v.magSquared() <= radius * radius;\n\t}", "private void generateSphere() {\n\t\tint segments = 14;\n\t\tint rings = 15; // Use an odd number of rings of faces so that halfway up the sphere is the middle of a ring and not a loop of edges\n\t\tverts = new Vector[segments * (rings - 1) + 2]; // There are rings + 1 rings of vertices, but the first and last of these are each a single vertex\n\t\tfaces = new int[2 * segments * (rings - 1)][3]; // Apart from the first and last, each ring has segments number of square faces, so 2 * segments triangular faces. The first and last each have segments triangular faces\n\t\tverts[0] = new Vector(3);\n\t\tverts[0].setElement(1, -1); // The lowest point of the sphere\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, 1}; // The last face involves the last vertex in the second ring and loops back to the first vertex in the second ring\n\t\t\t} else {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, i + 2}; // Triangles involving the lowest vertex and two consecutive vertices in the second ring of vertices\n\t\t\t}\n\t\t}\n\t\tdouble pitchIncrement = Math.PI / rings; // The increment in pitch (angle above horizontal) between rings of vertices\n\t\tdouble pitch = pitchIncrement - Math.PI / 2; // The lowest point had a pitch of -pi/2\n\t\tdouble headingIncrement = Math.PI * 2.0 / segments; // The increment in heading between segments\n\t\tdouble heading = -Math.PI;\n\t\tfor (int r = 0; r < rings - 1; r++) { // Last ring is a single point and must be treated separately\n\t\t\tdouble y = Math.sin(pitch); // The y co-ordinate for each vertex in this ring\n\t\t\tdouble modulus = Math.cos(pitch); // The radius of the circle which this ring lies on\n\t\t\tfor (int s = 0; s < segments; s++) {\n\t\t\t\tdouble x = modulus * Math.cos(heading); // x co-ordinate for the next vertex\n\t\t\t\tdouble z = modulus * Math.sin(heading); // z co-ordinate for the next vertex\n\t\t\t\tverts[segments * r + s + 1] = new Vector(3);\n\t\t\t\tverts[segments * r + s + 1].setElements(new double[] {x, y, z});\n\t\t\t\theading += headingIncrement;\n\t\t\t}\n\t\t\t// Make faces between the vertices just added and the next ring of vertices to be added\n\t\t\tif (r != rings - 2) { // The second to last ring doesn't make faces with the next ring up in the same way because the last ring is a single vertex\n\t\t\t\tfor (int i = 0; i < segments; i++) {\n\t\t\t\t\tif (i == segments - 1) { // The last two faces make use of the first vertex in the next ring by looping back to the start\n\t\t\t\t\t\t// Two faces in the same plane\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, segments * r + 1 + segments};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, segments * r + 1 + segments, segments * r + 1};\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Two faces that are in the same plane and appear as a quadrilateral\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, (segments * r + i + 1) + segments + 1};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments + 1, (segments * r + i + 1) + 1};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tpitch += pitchIncrement;\n\t\t}\n\t\tverts[verts.length - 1] = new Vector(3);\n\t\tverts[verts.length - 1].setElement(1, 1); // The last and highest vertex\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) { // Last face completes the ring and includes the last vertex of the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1};\n\t\t\t} else { // Faces involving the last vertex and two consecutive vertices in the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1 + i + 1};\n\t\t\t}\n\t\t}\n\t}", "public Hit intersectsRay(Ray ray) {\n\t\tVector3D dst = Vector3D.sub(ray.b, pos);\n\t\tfloat B = dst.dot(ray.d);\n\t\tfloat C = dst.dot(dst) - radius2;\n\t\tfloat D = B*B - C;\n\t\tfloat t = (float) (-B - Math.sqrt(D));\n\t\tif (!(t > 0)) return null; // escape case: no collision or outside fov\n\t\tVector3D hitPos = Vector3D.add(ray.b, Vector3D.mult(ray.d, t));\n\t\tVector3D n = getNormal(hitPos);\n\t\treturn new Hit(this, t, hitPos, n);\n\t}", "public Point3 intersects(Plane3 p) {\n // All the constants will be the position vector, i.e., some point on the line\n if (intersect.DEBUG) System.out.println(\"Constant Terms: <\" + this.pt + \">\");\n\n // λ coefficients will be all those in the direction vector of the line\n if (intersect.DEBUG) System.out.println(\"λ coefficients: \" + this);\n\n // Plane equation is each component multiplied by the respective normal\n // vector of the plane\n if (intersect.DEBUG) System.out.printf(\"Plane equation: %.1f(%.1f + %.1fλ) + %.1f(%.1f + %.1fλ) + %.1f(%.1f + %.1fλ) = %.3f\\n\", p.v.x, pt.x, this.x, p.v.y, pt.y, this.y, p.v.z, pt.z, this.z, p.d);\n\n // Gather all constant terms from the plane equation\n double constantTerm = (p.v.x * pt.x) + (p.v.y * pt.y) + (p.v.z * pt.z);\n if (intersect.DEBUG) System.out.printf(\"K: %.2f\\t\", constantTerm);\n\n // Gather all λ terms\n double lambdaCoefficient = (p.v.x * this.x) + (p.v.y * this.y) + (p.v.z * this.z);\n if (intersect.DEBUG) System.out.printf(\"K_λ: %.1f\\n\", lambdaCoefficient);\n\n // If the coefficient for lambda is zero, we have a degenerate case\n if (lambdaCoefficient == 0) {\n // If the constant is the same as the actual magnitude of the plane's\n // normal vector, the line lies on the plane\n // Within a margin of error because rounding is a pain in the ass\n if (Math.abs(constantTerm - p.d) < 1e-6)\n intersect.overlapFlag = true;\n\n return null;\n }\n\n // Solve for the unknown, λ.\n double lambda = (p.d - constantTerm) / lambdaCoefficient;\n if (intersect.DEBUG) System.out.printf(\"λ: %.2f\\n\", lambda);\n\n // Plug in λ into the parametric equations for the line to find\n // point of intersection\n double newX = lambda * this.x + pt.x;\n double newY = lambda * this.y + pt.y;\n double newZ = lambda * this.z + pt.z;\n return new Point3(newX, newY, newZ);\n }", "@Test\n void findIntersections() {\n Cuboid cuboid1 = new Cuboid(4,4,4);\n Ray ray1 = new Ray(new Point3D(-3,0,0), new Vector3D(1,0,0));\n ArrayList<GeoPoint> actual1 = cuboid1.findIntersections(ray1);\n ArrayList<GeoPoint> expected1 = new ArrayList<>();\n expected1.add(new GeoPoint(cuboid1, new Point3D(2,0,0)));\n expected1.add(new GeoPoint(cuboid1, new Point3D(-2,0,0)));\n\n assertTrue(Util.intersectionsEqual(expected1, actual1));\n\n //Aligned with Y axis but have different dimensions\n Cuboid cuboid2 = new Cuboid(2,4,3);\n Ray ray2 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual2 = cuboid2.findIntersections(ray2);\n ArrayList<GeoPoint> expected2 = new ArrayList<>();\n expected2.add(new GeoPoint(cuboid1, new Point3D(0,2,0)));\n assertEquals(expected2.get(0).point, actual2.get(0).point);\n\n Cuboid cuboid3 = new Cuboid(2,4,3, new Ray(new Point3D(1,1,1), new Vector3D(0,0,1)));\n Ray ray3 = new Ray(new Point3D(0,100,0), new Vector3D(0,-1,0));\n ArrayList<GeoPoint> actual3 = cuboid3.findIntersections(ray3);\n ArrayList<GeoPoint> expected3 = new ArrayList<>();\n expected3.add(new GeoPoint(cuboid1, new Point3D(0,3,0)));\n assertEquals(expected3.get(0).point, actual3.get(0).point);\n\n Ray ray = new Ray(new Point3D(0,0,-200), Vector3D.zAxis);\n ArrayList<GeoPoint> interesections = cuboid1.findIntersections(ray);\n }", "public static boolean\nraysIntersectInPlane(Point2D tail0Pt, Point2D head0Pt, Point2D tail1Pt, Point2D head1Pt,\n\tPoint2D intersect, double[] uArray)\n{\n\tdouble tmp = ((head1Pt.getY() - tail1Pt.getY())*(head0Pt.getX() - tail0Pt.getX()) - (head1Pt.getX() - tail1Pt.getX())*(head0Pt.getY() - tail0Pt.getY()));\n\tif(tmp == 0.0)\n\t\treturn(false);\n\tdouble tmpv = ((tail1Pt.getX() - tail0Pt.getX())*(head0Pt.getY() - tail0Pt.getY()) - (tail1Pt.getY() - tail0Pt.getY())*(head0Pt.getX() - tail0Pt.getX())) / tmp;\n\ttmp = (head0Pt.getX() - tail0Pt.getX())*(head1Pt.getY() - tail1Pt.getY()) - (head1Pt.getX() - tail1Pt.getX())*(head0Pt.getY() - tail0Pt.getY());\n\tif(tmp == 0.0)\n\t\treturn(false);\n\tdouble tmpu = ((tail1Pt.getX() - tail0Pt.getX())*(head1Pt.getY() - tail1Pt.getY()) + (head1Pt.getX() - tail1Pt.getX())*(tail0Pt.getY() - tail1Pt.getY()))/tmp;\n\n\tintersect.setLocation(\n\t\ttail1Pt.getX() + tmpv*(head1Pt.getX() - tail1Pt.getX()),\n\t\ttail1Pt.getY() + tmpv*(head1Pt.getY() - tail1Pt.getY()));\n\n\t// intersect[ZCoor] = tail1Pt[ZCoor] + tmpv*(head1Pt[ZCoor] - tail1Pt[ZCoor]);\n\n\tuArray[0] = tmpu; // u of first ray\n\tuArray[1] = tmpv; // u of second ray\n\n\treturn (true);\n}", "public Color ray_trace(Ray ray) {\r\n int index = -1;\r\n float t = Float.MAX_VALUE;\r\n \r\n for(int i = 0; i < spheres.size(); i++) {\r\n float xd, yd, zd, xo, yo, zo, xc, yc, zc, rc, A, B, C, disc, t0, t1;\r\n \r\n xd = ray.getDirection().getX();\r\n yd = ray.getDirection().getY();\r\n zd = ray.getDirection().getZ();\r\n xo = ray.getOrigin().getX();\r\n yo = ray.getOrigin().getY();\r\n zo = ray.getOrigin().getZ();\r\n xc = spheres.get(i).getCenter().getX();\r\n yc = spheres.get(i).getCenter().getY();\r\n zc = spheres.get(i).getCenter().getZ();\r\n rc = spheres.get(i).getRadius();\r\n \r\n A = xd*xd + yd*yd + zd*zd;\r\n B = 2*(xd*(xo-xc) + yd*(yo-yc) + zd*(zo-zc));\r\n C = (xo-xc)*(xo-xc) + (yo-yc)*(yo-yc) + (zo-zc)*(zo-zc) - rc*rc;\r\n \r\n disc = B*B - (4*A*C);\r\n \r\n if(disc < 0) {\r\n continue;\r\n }\r\n\r\n if(disc == 0) {\r\n t0 = -B/(2*A);\r\n if(t0 < t && t0 > 0) {\r\n t=t0;\r\n index = i;\r\n }\r\n } else {\r\n t0 = (-B + (float) Math.sqrt(disc))/(2*A);\r\n t1 = (-B - (float) Math.sqrt(disc))/(2*A);\r\n\r\n if( t0 > t1) {\r\n float flip = t0;\r\n t0 = t1;\r\n t1 = flip;\r\n }\r\n\r\n if(t1 < 0) {\r\n continue;\r\n }\r\n\r\n if(t0 < 0 && t1 < t) {\r\n t = t1;\r\n index = i;\r\n } else if(t0 > 0 && t0 < t) {\r\n t = t0;\r\n index = i;\r\n }\r\n }\r\n }// end of for loop\r\n if(index < 0) {\r\n return background;\r\n } else {\r\n Point intersect = (ray.getDirection().const_mult(t)).point_add(window.getEye());\r\n return shade_ray(index, intersect);\r\n } \r\n }", "private Point3D findHitPoint(Ray3D ray) {\n // We plug paramaterization of x, y, z for ray into our general quartic equation\n // to get standard form: At^2 + Bt + C = 0, then use the quadratic equation to solve for t.\n // The coefficients A, B, and C are quite ugly, and the derivation is described in the linked\n // resource\n Point3D P = ray.getPoint(); // Ray starting point\n Point3D D = ray.getDirection(); // Ray direction\n // First coefficient of quadratic equation of t\n double A = a * sq(D.getX()) + b * sq(D.getY()) + c * sq(D.getZ())\n + d * D.getY() * D.getZ() + e * D.getX() * D.getZ() + f * D.getX() * D.getY();\n // Second coefficient of quadratic equation of t\n double B = 2 * (a * P.getX() * D.getX() + b * P.getY() * D.getY() + c * P.getZ() * D.getZ())\n + d * (P.getY() * D.getZ() + P.getZ() * D.getY())\n + e * (P.getX() * D.getZ() + P.getZ() * D.getX())\n + f * (P.getX() * D.getY() + P.getY() * D.getX())\n + g * D.getX() + h * D.getY() + i * D.getZ();\n // Third coefficient of quadratic equation of t\n double C = a * sq(P.getX()) + b * sq(P.getY()) + c * sq(P.getZ()) + d * P.getY() * P.getZ()\n + e * P.getX() * P.getZ() + f * P.getX() * P.getY() + g * P.getX() + h * P.getY() + i * P.getZ() + j;\n\n double discriminant = sq(B) - 4 * A * C;\n\n // Find intersection Point\n Point3D intersection = null;\n if (discriminant >= 0) {\n double t1 = (-B - Math.sqrt(discriminant)) / (2 * A);\n double t2 = (-B + Math.sqrt(discriminant)) / (2 * A);\n Point3D p1 = ray.atTime(t1);\n Point3D p2 = ray.atTime(t2);\n if (t1 > 0 && t2 > 0 && isWithinBounds(p1) && isWithinBounds(p2)) {\n intersection = t1 <= t2 ? p1 : p2;\n } else if (t1 > 0 && isWithinBounds(p1)) {\n intersection = p1;\n } else if (t2 > 0 && isWithinBounds(p2)) {\n intersection = p2;\n }\n }\n return intersection;\n }", "public double rayIntersect(Vector3D rayOrigin, Vector3D rayDirection, boolean goingOut, int[] faceIndex, LinkedTransferQueue simVis) {\n double tmin = -1;\n int x = 0;\n int y = 1;\n int z = 2;\n int face = -1;\n if (java.lang.Math.abs(rayDirection.getNorm() - 1) > 1e-8) {\n System.out.println(\"direction not normalized in rayIntersect\");\n }\n\n double ox = rayOrigin.getX();\n double oy = rayOrigin.getY();\n double oz = rayOrigin.getZ();\n\n double dx = rayDirection.getX();\n double dy = rayDirection.getY();\n double dz = rayDirection.getZ();\n\n cacheVerticesAndFaces();\n// System.out.println(\"Checking part\" + this.part.name);\n int vis = this.mesh.getVertexFormat().getVertexIndexSize();\n\n for (int i = 0; i < faces.length; i += 6) {\n double t = Util.Math.rayTriangleIntersect(ox, oy, oz, dx, dy, dz,\n vertices[3 * faces[i] + x], vertices[3 * faces[i] + y], vertices[3 * faces[i] + z],\n goingOut ? vertices[3 * faces[i + 2 * vis] + x] : vertices[3 * faces[i + vis] + x],\n goingOut ? vertices[3 * faces[i + 2 * vis] + y] : vertices[3 * faces[i + vis] + y],\n goingOut ? vertices[3 * faces[i + 2 * vis] + z] : vertices[3 * faces[i + vis] + z],\n goingOut ? vertices[3 * faces[i + vis] + x] : vertices[3 * faces[i + 2 * vis] + x],\n goingOut ? vertices[3 * faces[i + vis] + y] : vertices[3 * faces[i + 2 * vis] + y],\n goingOut ? vertices[3 * faces[i + vis] + z] : vertices[3 * faces[i + 2 * vis] + z]\n );\n if (t != -1) {\n if (tmin != -1) {\n if (t < tmin) {\n tmin = t;\n face = i;\n }\n } else {\n tmin = t;\n face = i;\n }\n }\n }\n // report back the face index if asked for\n if (faceIndex != null) {\n faceIndex[0] = face;\n }\n\n return tmin;\n }", "public int intersectionRay(final Line3D line, List<Point3D> intersections) {\n int count = 0;\n int nFaces = meshFaces.length/3;\n Triangle3D face = new Triangle3D();\n for (int f = 0; f < nFaces; f++){\n this.getFace(f, face);\n count += face.intersectionRay(line, intersections);\n }\n return count;\n }", "private static int[] intersection(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4){\n\n\t\tdouble b1 = (y2 - y1)/(x2 - x1);\n\t\tdouble a1 = y1 - (b1*x1);\n\t\tdouble b2 = (y4 - y3)/(x4 - x3);\n\t\tdouble a2 = y3 - (b2*x3);\n\t\tif(x2-x1 == 0) //vertical\n\t\t\treturn new int[]{(int)x1,(int)(a2+(b2*x1))};\n\t\tif(x3-x4 == 0) //vertical\n\t\t\treturn new int[]{(int)x3,(int)(a1+(b1*x3))};\n\t/*\tif(Math.abs(b1-b2) < 0.001)\n\t\t\treturn null;\n\t\tdouble intX = -(a1-a2)/(b1-b2);\n\t\tdouble intY = a1+(b1*intX);*/\n\t\tdouble d = ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\t\tif(d == 0)\n\t\t\treturn null; //parallel roads\n\t\tdouble a = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3))*1.0/d;\n\t\tint intX = (int)x1+(int)(a*(x2-x1));\n\t\tint intY = (int)y1+(int)(a*(y2-y1));\n\t\treturn new int[]{(int)intX,(int)intY};\n\t}", "public boolean intersect(IntersectionRecord outRecord, Ray rayIn) {\n // TODO#A2: fill in this function.\n\n Vector3d d = rayIn.direction;\n Vector3d e = rayIn.origin;\n Vector3d c = (new Vector3d()).addMultiple(1, center);\n\n Vector3d ec = e.clone().sub(c);\n double dec = d.clone().dot(ec);\n double dd = d.clone().dot(d);\n\n double discr = Math.sqrt(Math.pow(dec, 2) - dd * (ec.clone().dot(ec) - Math.pow(radius, 2)));\n\n if (discr > 0) {\n double t1 = (-dec + discr) / dd;\n double t2 = (-dec - discr) / dd;\n\n if ((t1 > rayIn.start && t1 < rayIn.end) || (t2 > rayIn.start && t2 < rayIn.end)) {\n double t;\n if (t1 < t2) {\n if (t1 > rayIn.start) {\n t = t1;\n } else {\n t = t2;\n }\n } else {\n if (t2 > rayIn.start) {\n t = t2;\n } else {\n t = t1;\n }\n }\n\n Vector3d p = e.clone().add(d.clone().mul(t));\n outRecord.location.set(p);\n outRecord.normal.set(p.clone().sub(c).div(radius).normalize());\n\n double theta = Math.acos((p.z-c.z) / radius);\n double phi = Math.atan2(p.y-c.y, p.x-c.x);\n\n if (phi < 0) {\n phi += M_2PI;\n }\n\n double u = phi / M_2PI;\n double v = (Math.PI-theta) / Math.PI;\n\n outRecord.texCoords.set(u,v);\n outRecord.surface = this;\n outRecord.t = t;\n\n rayIn.end = t;\n\n return true;\n }\n return false;\n }\n return false;\n }", "public Filter doIntersection(Filter f);", "public List<Vec3> getIntersectionPoints(Vec3 org, Vec3 ray)\n {\n Mat4 mInv = m.getInverseSimple();\n ray = mInv.multiply(ray.toDirection()).getXYZ();\n org = mInv.multiply(org.toPoint()).getXYZ();\n\n Vec3 mext = extents.getNegated();\n ArrayList<Vec3> ps = new ArrayList<Vec3>();\n for (int i = 0; i < 3; i++)\n {\n if (org.get(i) >= extents.get(i))\n {\n if (ray.get(i) >= 0)\n {\n return new ArrayList<Vec3>(); // ray points away from box\n }\n ps.addAll(lineIntersection(i, org, ray, extents));\n } else if (org.get(i) <= mext.get(i))\n {\n if (ray.get(i) <= 0)\n {\n return new ArrayList<Vec3>(); // ray points away from box\n }\n ps.addAll(lineIntersection(i, org, ray, mext));\n }\n }\n return ps;\n }", "public interface FrameSphere3DReadOnly extends Sphere3DReadOnly, FrameShape3DReadOnly\n{\n /** {@inheritDoc} */\n @Override\n FramePoint3DReadOnly getPosition();\n\n /**\n * {@inheritDoc}\n * <p>\n * Note that the centroid is also the position of this sphere.\n * </p>\n */\n @Override\n default FramePoint3DReadOnly getCentroid()\n {\n return getPosition();\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} remain unmodified.\n * </p>\n *\n * @param line the line expressed in world coordinates that may intersect this\n * sphere. Not modified.\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if the frame argument is not expressed in the same\n * reference frame as {@code this}.\n */\n default int intersectionWith(FrameLine3DReadOnly line, Point3DBasics firstIntersectionToPack, Point3DBasics secondIntersectionToPack)\n {\n return intersectionWith(line.getPoint(), line.getDirection(), firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} remain unmodified.\n * </p>\n *\n * @param line the line expressed in world coordinates that may intersect this\n * sphere. Not modified.\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if {@code line} is not expressed in the same reference\n * frame as {@code this}.\n */\n default int intersectionWith(FrameLine3DReadOnly line, FramePoint3DBasics firstIntersectionToPack, FramePoint3DBasics secondIntersectionToPack)\n {\n return intersectionWith(line.getPoint(), line.getDirection(), firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} remain unmodified.\n * </p>\n *\n * @param line the line expressed in world coordinates that may intersect this\n * sphere. Not modified.\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n */\n default int intersectionWith(Line3DReadOnly line, FramePoint3DBasics firstIntersectionToPack, FramePoint3DBasics secondIntersectionToPack)\n {\n return intersectionWith(line.getPoint(), line.getDirection(), firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} remain unmodified.\n * </p>\n *\n * @param line the line expressed in world coordinates that may intersect this\n * sphere. Not modified.\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if any of the frame arguments is not expressed in the\n * same reference frame as {@code this}.\n */\n default int intersectionWith(Line3DReadOnly line, FixedFramePoint3DBasics firstIntersectionToPack, FixedFramePoint3DBasics secondIntersectionToPack)\n {\n return intersectionWith(line.getPoint(), line.getDirection(), firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} remain unmodified.\n * </p>\n *\n * @param line the line expressed in world coordinates that may intersect this\n * sphere. Not modified.\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if any of the arguments is not expressed in the same\n * reference frame as {@code this}.\n */\n default int intersectionWith(FrameLine3DReadOnly line, FixedFramePoint3DBasics firstIntersectionToPack, FixedFramePoint3DBasics secondIntersectionToPack)\n {\n return intersectionWith(line.getPoint(), line.getDirection(), firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} are set to\n * {@link Double#NaN}.\n * </p>\n *\n * @param pointOnLine a point expressed in world located on the infinitely long line.\n * Not modified.\n * @param lineDirection the direction expressed in world of the line. Not modified.s\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if any of the frame arguments is not expressed in the\n * same reference frame as {@code this}.\n */\n default int intersectionWith(FramePoint3DReadOnly pointOnLine,\n FrameVector3DReadOnly lineDirection,\n Point3DBasics firstIntersectionToPack,\n Point3DBasics secondIntersectionToPack)\n {\n checkReferenceFrameMatch(pointOnLine, lineDirection);\n return Sphere3DReadOnly.super.intersectionWith(pointOnLine, lineDirection, firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} are set to\n * {@link Double#NaN}.\n * </p>\n *\n * @param pointOnLine a point expressed in world located on the infinitely long line.\n * Not modified.\n * @param lineDirection the direction expressed in world of the line. Not modified.s\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n */\n default int intersectionWith(Point3DReadOnly pointOnLine,\n Vector3DReadOnly lineDirection,\n FramePoint3DBasics firstIntersectionToPack,\n FramePoint3DBasics secondIntersectionToPack)\n {\n if (firstIntersectionToPack != null)\n firstIntersectionToPack.setReferenceFrame(getReferenceFrame());\n if (secondIntersectionToPack != null)\n secondIntersectionToPack.setReferenceFrame(getReferenceFrame());\n return Sphere3DReadOnly.super.intersectionWith(pointOnLine, lineDirection, firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} are set to\n * {@link Double#NaN}.\n * </p>\n *\n * @param pointOnLine a point expressed in world located on the infinitely long line.\n * Not modified.\n * @param lineDirection the direction expressed in world of the line. Not modified.s\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if any of the frame arguments is not expressed in the\n * same reference frame as {@code this}.\n */\n default int intersectionWith(Point3DReadOnly pointOnLine,\n Vector3DReadOnly lineDirection,\n FixedFramePoint3DBasics firstIntersectionToPack,\n FixedFramePoint3DBasics secondIntersectionToPack)\n {\n if (firstIntersectionToPack != null)\n checkReferenceFrameMatch(firstIntersectionToPack);\n if (secondIntersectionToPack != null)\n checkReferenceFrameMatch(secondIntersectionToPack);\n return Sphere3DReadOnly.super.intersectionWith(pointOnLine, lineDirection, firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} are set to\n * {@link Double#NaN}.\n * </p>\n *\n * @param pointOnLine a point expressed in world located on the infinitely long line.\n * Not modified.\n * @param lineDirection the direction expressed in world of the line. Not modified.s\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if either {@code pointOnLine} or {@code lineDirection} is\n * not expressed in the same reference frame as\n * {@code this}.\n */\n default int intersectionWith(FramePoint3DReadOnly pointOnLine,\n FrameVector3DReadOnly lineDirection,\n FramePoint3DBasics firstIntersectionToPack,\n FramePoint3DBasics secondIntersectionToPack)\n {\n checkReferenceFrameMatch(pointOnLine, lineDirection);\n if (firstIntersectionToPack != null)\n firstIntersectionToPack.setReferenceFrame(getReferenceFrame());\n if (secondIntersectionToPack != null)\n secondIntersectionToPack.setReferenceFrame(getReferenceFrame());\n return Sphere3DReadOnly.super.intersectionWith(pointOnLine, lineDirection, firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /**\n * Computes the coordinates of the possible intersections between a line and this sphere.\n * <p>\n * In the case the line and this sphere do not intersect, this method returns {@code 0} and\n * {@code firstIntersectionToPack} and {@code secondIntersectionToPack} are set to\n * {@link Double#NaN}.\n * </p>\n *\n * @param pointOnLine a point expressed in world located on the infinitely long line.\n * Not modified.\n * @param lineDirection the direction expressed in world of the line. Not modified.s\n * @param firstIntersectionToPack the coordinate in world of the first intersection. Can be\n * {@code null}. Modified.\n * @param secondIntersectionToPack the coordinate in world of the second intersection. Can be\n * {@code null}. Modified.\n * @return the number of intersections between the line and this sphere. It is either equal to 0, 1,\n * or 2.\n * @throws ReferenceFrameMismatchException if any of the arguments is not expressed in the same\n * reference frame as {@code this}.\n */\n default int intersectionWith(FramePoint3DReadOnly pointOnLine,\n FrameVector3DReadOnly lineDirection,\n FixedFramePoint3DBasics firstIntersectionToPack,\n FixedFramePoint3DBasics secondIntersectionToPack)\n {\n checkReferenceFrameMatch(pointOnLine, lineDirection);\n if (firstIntersectionToPack != null)\n checkReferenceFrameMatch(firstIntersectionToPack);\n if (secondIntersectionToPack != null)\n checkReferenceFrameMatch(secondIntersectionToPack);\n return Sphere3DReadOnly.super.intersectionWith(pointOnLine, lineDirection, firstIntersectionToPack, secondIntersectionToPack);\n }\n\n /** {@inheritDoc} */\n @Override\n default void getBoundingBox(BoundingBox3DBasics boundingBoxToPack)\n {\n Sphere3DReadOnly.super.getBoundingBox(boundingBoxToPack);\n }\n\n /** {@inheritDoc} */\n @Override\n default void getBoundingBox(ReferenceFrame destinationFrame, BoundingBox3DBasics boundingBoxToPack)\n {\n EuclidFrameShapeTools.boundingBoxSphere3D(this, destinationFrame, boundingBoxToPack);\n }\n\n /** {@inheritDoc} */\n @Override\n default FrameShape3DPoseReadOnly getPose()\n {\n return null;\n }\n\n /** {@inheritDoc} */\n @Override\n FixedFrameSphere3DBasics copy();\n\n /**\n * Gets a representative {@code String} of this frame sphere 3D given a specific format to use.\n * <p>\n * Using the default format {@link EuclidCoreIOTools#DEFAULT_FORMAT}, this provides a {@code String}\n * as follows:\n *\n * <pre>\n * Sphere 3D: [position: (-0.362, -0.617, 0.066 ), radius: 0.906] - worldFrame\n * </pre>\n * </p>\n */\n @Override\n default String toString(String format)\n {\n return EuclidFrameShapeIOTools.getFrameSphere3DString(format, this);\n }\n}", "boolean intersects( Geometry gmo );", "public boolean hasIntersectionRay(Line3D line) {\n List<Point3D> list = new ArrayList();\n /*for (Face3D face : faces)\n if (face.intersectionRay(line, list) > 0)\n return true;*/\n return false;\n }", "public boolean blocks(Point3d S, Ray3d c) {\n double A = c.getX() * c.getX() + c.getY() * c.getY() + c.getZ() * c.getZ();\n\n double bx = (this.x - S.getX()); //Account for the Sphere's position\n double by = (this.y - S.getY());\n double bz = (this.z - S.getZ());\n double B = -(c.getX() * bx + c.getY() * by + c.getZ() * bz);\n double r = this.radius * this.radius;\n double C = bx * bx + by * by + bz * bz - r;\n\n double D = (B * B - A * C);\n if (D < 0) //no intersection\n {\n return false;\n }\n\n if (D == 0) //'graze' the sphere\n {\n /****/return false;\n }\n\n double t1 = (-B - Math.sqrt(D)) / A;\n if (t1 > 0.00001 && t1 < 1.0) //The first hit\n {\n return true; //But need to check if it's less than 1, also!\n }\n\n double t2 = (-B / A) + Math.sqrt(D) / A;\n if (t2 > 0.00000001 && t2 < 1.0) {\n return true;\n }\n\n return false;\n }", "private int getSphere(final Sector sector) {\n if (sector == null || String.valueOf(sector.getPoliticalSphere()).length() == 0) {\n return 3;\n }\n\n final char thisNationCodeLower = String.valueOf(sector.getNation().getCode()).toLowerCase().charAt(0);\n final char thisSectorCodeLower = String.valueOf(sector.getPoliticalSphere()).toLowerCase().charAt(0);\n int sphere = 1;\n\n // Check if this is not home region\n if (thisNationCodeLower != thisSectorCodeLower) {\n sphere = 2;\n\n final char thisNationCode = String.valueOf(sector.getNation().getCode()).toLowerCase().charAt(0);\n\n // Check if this is outside sphere of influence\n if (sector.getNation().getSphereOfInfluence().toLowerCase().indexOf(thisNationCode) < 0) {\n sphere = 3;\n }\n }\n\n return sphere;\n }", "@Override\n protected void interpolate(double frac) {\n ray.project(dist * frac);\n // set the sphere to ray position\n s.setTranslateX(ray.getPosition().getX());\n s.setTranslateY(ray.getPosition().getY());\n s.setTranslateZ(ray.getPosition().getZ());\n\n }", "private Solid.Intersection castRayOnSolids(Ray ray) {\n // We need to shift the ray to avoid shadow acne\n ray = ray.getShifted(MINIMUM_RAY_LENGTH);\n\n double closestPointDistanceSquared = Double.POSITIVE_INFINITY;\n Solid.Intersection closestIntersection = null;\n for (Solid solid : solids) {\n Solid.Intersection intersection = solid.castRay(ray);\n if (intersection != null) {\n double distanceToIntersectionSquared =\n GeometryHelpers.vectorLengthSquared(intersection.info.pointOfIntersection.subtract(ray.origin));\n\n // To avoid hitting the shape from which the ray was shot, the ray has to have a minimum length\n if (distanceToIntersectionSquared > MINIMUM_RAY_LENGTH*MINIMUM_RAY_LENGTH) {\n if (distanceToIntersectionSquared < closestPointDistanceSquared) {\n closestPointDistanceSquared = distanceToIntersectionSquared;\n closestIntersection = intersection;\n }\n }\n }\n }\n return closestIntersection;\n }", "@JsMethod\n public native Cartographic findIntersectionWithLatitude(double intersectionLatitude);", "@JsMethod\n public native Cartographic findIntersectionWithLatitude(double intersectionLatitude, Cartographic result);", "public boolean intersects(MeshObject object) {\r\n return intersects(this.getCurrentCollisionCenter(), this.boundingSphereRadius, object.getCurrentCollisionCenter(), object.boundingSphereRadius);\r\n }", "public void\n doExtraInformation(Ray inRay, double inT, \n GeometryIntersectionInformation outData) {\n outData.p = lastInfo.p;\n\n switch ( lastPlane ) {\n case 1:\n outData.n.x = 0;\n outData.n.y = 0;\n outData.n.z = 1;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = 1-(outData.p.x / size.x - 0.5);\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 2:\n outData.n.x = 0;\n outData.n.y = 0;\n outData.n.z = -1;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = outData.p.x / size.x - 0.5;\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 3:\n outData.n.x = 0;\n outData.n.z = 0;\n outData.n.y = 1;\n outData.u = 1-(outData.p.x / size.x - 0.5);\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = -1;\n outData.t.y = 0;\n outData.t.z = 0;\n break;\n case 4:\n outData.n.x = 0;\n outData.n.z = 0;\n outData.n.y = -1;\n outData.u = outData.p.x / size.x - 0.5;\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 1;\n outData.t.y = 0;\n outData.t.z = 0;\n break;\n case 5:\n outData.n.x = 1;\n outData.n.y = 0;\n outData.n.z = 0;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 6:\n outData.n.x = -1;\n outData.n.y = 0;\n outData.n.z = 0;\n outData.u = 1-(outData.p.y / size.y - 0.5);\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 0;\n outData.t.y = -1;\n outData.t.z = 0;\n break;\n default:\n outData.u = 0;\n outData.v = 0;\n break;\n }\n }", "public float getSphereRadius();", "public void intersect(Shape s);", "public static Point4d intersecta(Rayo rayo, Figura figura) {\n\t\tPoint4d interseccion = null;\n\t\t//si la figura es una esfera\n\t\tif (figura instanceof Esfera) {\n\t\t\tEsfera esfera = (Esfera) figura;\n\t\t\t/*\n\t\t\t * ecuacion de la esfera:\n\t\t\t * (p-centroEsfera)^2=radioEsfera^2 y sacar los terminos a,b,c de\n\t\t\t * la ecuacion cuadrática.\n\t\t\t */\n\t\t\t// A = d . d\n\t\t\tdouble A = rayo.getDireccion().dot(rayo.getDireccion());\n\t\t\tPoint4d p = rayo.getPunto();\n\t\t\tVector4d a = new Vector4d();\n\t\t\t// ( a - c )\n\t\t\ta.sub(p, esfera.getCentro());\n\t\t\t// B = d . ( a - c )\n\t\t\tdouble B = rayo.getDireccion().dot(a);\n\t\t\t// ( a - c ) . ( a - c ) \n\t\t\tdouble C = a.dot(a);\n\t\t\t// ( a - c ) . ( a - c ) - r ^2\n\t\t\tC -= esfera.getRadio() * esfera.getRadio();\n\t\t\t// d = B ^ 2 - A * C\n\t\t\tdouble D = Math.pow(B, 2) - A * C;\n\t\t\tif (D < 0) {\n\t\t\t\t// no hay interseccion\n\t\t\t}\n\t\t\telse if (D == 0) {\n\t\t\t\t// hay una interseccion\n\t\t\t\t// lambda = -2B / 2A\n\t\t\t\tdouble lambda = -2 * B / (double) (2 * A);\n\t\t\t\tinterseccion = new Point4d();\n\t\t\t\tinterseccion.x += rayo.getPunto().x + lambda\n\t\t\t\t\t\t* rayo.getDireccion().x;\n\t\t\t\tinterseccion.y += rayo.getPunto().y + lambda\n\t\t\t\t\t\t* rayo.getDireccion().y;\n\t\t\t\tinterseccion.z += rayo.getPunto().z + lambda\n\t\t\t\t\t\t* rayo.getDireccion().z;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// hay dos intersecciones\n\t\t\t\t// -2B\t+- (( 4B^2-4AC)^1/2)/2A\n\t\t\t\tdouble lambda1 = (-2 * B + Math.sqrt(4 * Math.pow(B, 2) - 4 * A\n\t\t\t\t\t\t* C))\n\t\t\t\t\t\t/ (double) (2 * A);\n\t\t\t\tdouble lambda2 = (-2 * B - Math.sqrt(4 * Math.pow(B, 2) - 4 * A\n\t\t\t\t\t\t* C))\n\t\t\t\t\t\t/ (double) (2 * A);\n\t\t\t\tif (lambda1 < 0 && lambda2 < 0) {\n\t\t\t\t\t//intersecciones entre pantalla y ojo\n\t\t\t\t}\n\t\t\t\telse if (lambda1 > 0 && lambda2 < 0) {\n\t\t\t\t\t//rayo(lambda1) visible, pero rayo(lambda2) no\n\t\t\t\t\tinterseccion = new Point4d();\n\t\t\t\t\tinterseccion.x += rayo.getPunto().x + lambda1\n\t\t\t\t\t\t\t* rayo.getDireccion().x;\n\t\t\t\t\tinterseccion.y += rayo.getPunto().y + lambda1\n\t\t\t\t\t\t\t* rayo.getDireccion().y;\n\t\t\t\t\tinterseccion.z += rayo.getPunto().z + lambda1\n\t\t\t\t\t\t\t* rayo.getDireccion().z;\n\t\t\t\t\tinterseccion=rayo.evaluar(lambda1);\n\n\t\t\t\t}\n\t\t\t\telse if (lambda1 > lambda2 && lambda2 > 0) {\n\t\t\t\t\t//se ven las dos intersecciones, y lambda 2 esta mas cerca\n\t\t\t\t\tinterseccion = new Point4d();\n\t\t\t\t\tinterseccion.x += rayo.getPunto().x + lambda2\n\t\t\t\t\t\t\t* rayo.getDireccion().x;\n\t\t\t\t\tinterseccion.y += rayo.getPunto().y + lambda2\n\t\t\t\t\t\t\t* rayo.getDireccion().y;\n\t\t\t\t\tinterseccion.z += rayo.getPunto().z + lambda2\n\t\t\t\t\t\t\t* rayo.getDireccion().z;\n\t\t\t\t}\n\t\t\t\telse if (lambda1 < 0 && lambda2 > 0) {\n\t\t\t\t\t//rayo(lambda2) visible, pero rayo(lambda1) no\n\t\t\t\t\tinterseccion = new Point4d();\n\t\t\t\t\tinterseccion.x += rayo.getPunto().x + lambda2\n\t\t\t\t\t\t\t* rayo.getDireccion().x;\n\t\t\t\t\tinterseccion.y += rayo.getPunto().y + lambda2\n\t\t\t\t\t\t\t* rayo.getDireccion().y;\n\t\t\t\t\tinterseccion.z += rayo.getPunto().z + lambda2\n\t\t\t\t\t\t\t* rayo.getDireccion().z;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//se ven las dos intersecciones, y lambda 1 esta mas cerca\n\t\t\t\t\tinterseccion = new Point4d();\n\t\t\t\t\tinterseccion.x += rayo.getPunto().x + lambda1\n\t\t\t\t\t\t\t* rayo.getDireccion().x;\n\t\t\t\t\tinterseccion.y += rayo.getPunto().y + lambda1\n\t\t\t\t\t\t\t* rayo.getDireccion().y;\n\t\t\t\t\tinterseccion.z += rayo.getPunto().z + lambda1\n\t\t\t\t\t\t\t* rayo.getDireccion().z;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (figura instanceof Plano) {\n\t\t\tPlano plano = (Plano) figura;\n\n\t\t\t// intersecta con el plano\n\t\t\t// calculamos el punto de la interseccion\n\t\t\t// numerador(n * a + D)\n\t\t\t// (p1 -a)n\n\t\t\tdouble numerador = Operaciones.sub(plano.getPunto(),\n\t\t\t\t\trayo.getPunto()).dot(plano.getNormal(null));\n\t\t\tdouble landa = 0.0;\n\t\t\tif (numerador != 0.0) {\n\t\t\t\t// denominador (d * n)\n\t\t\t\t// d*n\n\t\t\t\tdouble denominador = rayo.getDireccion().dot(\n\t\t\t\t\t\tplano.getNormal(null));\n\t\t\t\tlanda = numerador / denominador;\n\t\t\t}\n\t\t\t// evaluamos t en la ecuacion del rayo\n\t\t\tdouble casos = rayo.getDireccion().dot(plano.getNormal(null));\n\t\t\tif (casos < 0.0) {\n\t\t\t\tif (landa >= 0.0) {\n\t\t\t\t\tinterseccion = rayo.evaluar(landa);\n\t\t\t\t}\n\t\t\t\t// else no se ve\n\t\t\t}\n\t\t\t// else no intersecta\n\t\t}\n\t\telse if (figura instanceof Triangulo) {\n\t\t\tTriangulo triangulo = (Triangulo) figura;\n\t\t\tVector4d N = triangulo.getNormal(null);\n\t\t\t// intersecta con el plano en el que esta el triangulo\n\t\t\t// calculamos el punto de interseccion de ese plano\n\t\t\t// numerador=(p1-a)* n\n\t\t\tVector4d vectorTriangulo = Operaciones.sub(triangulo.getPunto1(),\n\t\t\t\t\trayo.getPunto());\n\t\t\tdouble numerador = vectorTriangulo.dot(N);\n\t\t\tdouble landa = 0.0;\n\t\t\tif (numerador != 0.0) {\n\t\t\t\t// denominador=(d * n)\n\t\t\t\tdouble denominador = rayo.getDireccion().dot(N);\n\t\t\t\tlanda = numerador / denominador;\n\t\t\t}\n\t\t\t// comprobar si rayo(landa) se encuentra dentro\n\t\t\t// de los parametros del triangulo\n\t\t\tPoint4d p = rayo.evaluar(landa);\n\t\t\t// comprobamos que tienen el mismo signo\n\t\t\t// S1=((p2-p1)x(p-p1)) * n\n\t\t\tdouble S1 = Operaciones.crossProduct(\n\t\t\t\t\tOperaciones.sub(triangulo.getPunto2(),\n\t\t\t\t\t\t\ttriangulo.getPunto1()),\n\t\t\t\t\t\t\tOperaciones.sub(p, triangulo.getPunto1())).dot(N);\n\n\t\t\t// S2=((p3-p2)x(p-p2))* n\n\t\t\tdouble S2 = Operaciones.crossProduct(\n\t\t\t\t\tOperaciones.sub(triangulo.getPunto3(),\n\t\t\t\t\t\t\ttriangulo.getPunto2()),\n\t\t\t\t\t\t\tOperaciones.sub(p, triangulo.getPunto2())).dot(N);\n\t\t\t// S1=((p1-p3)x(p-p3)) * n\n\t\t\tdouble S3 = Operaciones.crossProduct(\n\t\t\t\t\tOperaciones.sub(triangulo.getPunto1(),\n\t\t\t\t\t\t\ttriangulo.getPunto3()),\n\t\t\t\t\t\t\tOperaciones.sub(p, triangulo.getPunto3())).dot(N);\n\n\t\t\t// else no intersecta con el triangulo\n\t\t\tdouble casos = rayo.getDireccion().dot(N);\n\t\t\tif (casos < 0.0) {\n\t\t\t\tif (landa >= 0.0) {\n\t\t\t\t\tif ((S1 >= 0 && S2 >= 0 && S3 >= 0)\n\t\t\t\t\t\t\t|| (S1 <= 0 && S2 <= 0 && S3 <= 0)) {\n\t\t\t\t\t\t// esta dentro del triangulo\n\t\t\t\t\t\t// System.out.println(landa);\n\t\t\t\t\t\tinterseccion = rayo.evaluar(landa);\n\t\t\t\t\t}\n\t\t\t\t\t// else no da en el triangulo\n\t\t\t\t}\n\t\t\t\t// else no se ve\n\t\t\t}\n\t\t\t// else no intersecta\n\t\t}\n\n\t\treturn interseccion;\n\t}", "@Override\n ArrayList<Hit> object_hit_detec(Point S_t, Vector c_t, Intersection intersection) {\n ArrayList<Hit> hit_times = new ArrayList<>();\n double A = Math.pow(c_t.get_X(), 2) + Math.pow(c_t.get_Y(), 2) + Math.pow(c_t.get_Z(), 2);\n double B = c_t.get_X() * S_t.get_X() + c_t.get_Y() * S_t.get_Y() + c_t.get_Z() * S_t.get_Z();\n double C = Math.pow(S_t.get_X(), 2) + Math.pow(S_t.get_Y(), 2) + Math.pow(S_t.get_Z(), 2) - 1;\n double Discriminant = Math.pow(B, 2) - A * C;\n// System.out.println(A);\n// System.out.println(B);\n// System.out.println(C);\n //double t_hit = 0;\n if (Discriminant < 0) {\n //System.out.println(\"Geen hitpunten\");\n } else if (Discriminant == 0) {\n double t_hit = (-B) / A;\n Hit hit = new Hit(t_hit, false);\n //System.out.println(\"hit\");\n } else {\n double t_hit1 = (-B) / A + Math.sqrt(Discriminant) / A;\n double t_hit2 = (-B) / A - Math.sqrt(Discriminant) / A;\n //Find lowest hit time (for entering hit time)\n double t_in = Math.min(t_hit1, t_hit2);\n double t_out = Math.max(t_hit1, t_hit2);\n Hit hit_in = new Hit(t_in, true);\n hit_times.add(hit_in);\n Hit hit_out = new Hit(t_out, false);\n hit_times.add(hit_out);\n //t_hit = Math.min(t_hit1, t_hit2);\n //System.out.println(\"hit\");\n }\n return hit_times;\n }", "static S2Point correctIntersectionSign(\n S2Point a0, S2Point a1, S2Point b0, S2Point b1, S2Point intersectionResult) {\n // Make sure the intersection point is on the correct side of the sphere. Since all vertices are\n // unit length, and both edge lengths are less than 180 degrees, (a0 + a1) and (b0 + b1) both\n // have positive dot product with the intersection point. We use the sum of all vertices to\n // make sure that the result is unchanged when the edges are swapped or reversed.\n if (intersectionResult.dotProd(a0.add(a1).add(b0.add(b1))) < 0) {\n intersectionResult = intersectionResult.neg();\n }\n return intersectionResult;\n }", "@Override\r\n public Double intersect(Ray3d selectionRay, double ratio) {\n\r\n double camRatio = selectionRay.getPoint().distance(getEditorCenter()) * ratio;\r\n return Ray3dUtil.intersect(selectionRay, getEditorCenter(), getEditorRadius() * camRatio);\r\n }", "@Override\n\tpublic boolean intersects(double arg0, double arg1, double arg2, double arg3) {\n\t\treturn false;\n\t}", "public native void raycast(Raycaster raycaster, Object[] intersects);", "public boolean intersects(Circle other)\n{\n if (Math.abs(center.x - other.center.x) <= (radius +other.radius) && \n Math.abs(center.y - other.center.y) <= (radius + other.radius))// true calculation needs both radius to\n return true;\n return false;\n}", "static List<PT> CircleLineIntersection(PT a, PT b, PT c, double r) {\r\n\t\tList<PT> ret = new ArrayList<PT>();\r\n\t\tb = b.subtract(a);\r\n\t\ta = a.subtract(c);\r\n\r\n\t\tdouble A = dot(b, b);\r\n\t\tdouble B = dot(a, b);\r\n\t\tdouble C = dot(a, a) - r * r;\r\n\t\tdouble D = B * B - A * C;\r\n\r\n\t\tif (D < -EPS)\r\n\t\t\treturn ret;\r\n\t\tret.add(c.add(a).add(b.multiply((-B + Math.sqrt(D + EPS))).divide(A)));\r\n\t\tif (D > EPS)\r\n\t\t\tret.add(c.add(a.add(b.multiply((-B - Math.sqrt(D))).divide(A))));\r\n\t\treturn ret;\r\n\t}", "private void setGeometryData() {\n // allocate vertices\n final int factorK = (innerRadius == 0 ? 1 : 2);\n final int verts = factorK * ((zSamples - 2) * (radialSamples) + 2); // rs + 1\n setVertexCoordsSize (verts);\n setNormalCoordsSize (verts);\n\n // generate geometry\n final double fInvRS = 1.0 / (radialSamples);\n final double fZFactor = 1.0 / (zSamples - 1); // 2.0 / (zSamples - 1);\n\n // Generate points on the unit circle to be used in computing the mesh\n // points on a sphere slice.\n final double[] afSin = new double[(radialSamples + 1)];\n final double[] afCos = new double[(radialSamples + 1)];\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fAngle = phi0 + dPhi * fInvRS * iR;\n afCos[iR] = Math.cos (fAngle);\n afSin[iR] = Math.sin (fAngle);\n }\n // afSin[radialSamples] = afSin[0];\n // afCos[radialSamples] = afCos[0];\n\n double radDiff = Math.abs (outerRadius - innerRadius);\n\n for ( int icnt = 0; icnt < 2; icnt++ ) {\n radius = (icnt == 0 ? innerRadius : outerRadius);\n if ( radius == 0.0 ) {\n continue;\n }\n double zNP = centerZ; // 0.0;\n double zSP = centerZ; // 0.0;\n\n // generate the sphere itself\n int i = 0;\n Vector3D tempVa;\n Vector3D kSliceCenter;\n\n for ( int iZ = 1; iZ < (zSamples - 1); iZ++ ) { // -1\n //final double fAFraction = 0.5 * Math.PI * (-1.0f + fZFactor * iZ); // in (-pi/2, pi/2)\n final double fAFraction = theta1 - iZ * fZFactor * dTheta;\n final double fZFraction = Math.sin (fAFraction); // in (-1,1)\n final double fZ = radius * fZFraction;\n\n // compute center of slice\n kSliceCenter = new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + fZ\n );\n\n // compute radius of slice\n final double fSliceRadius = Math.sqrt (\n Math.abs (\n radius * radius - fZ * fZ\n )\n );\n\n // compute slice vertices with duplication at end point\n Vector3D kNormal;\n final int iSave = i;\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fRadialFraction = iR * fInvRS; // in [0,1)\n final Vector3D kRadial = new Vector3D (\n afCos[iR],\n afSin[iR],\n 0\n );\n tempVa = new Vector3D (\n fSliceRadius * kRadial.getX (),\n fSliceRadius * kRadial.getY (),\n fSliceRadius * kRadial.getZ ()\n );\n\n zNP = Math.\n max (kSliceCenter.getZ (), zNP);\n zSP = Math.\n min (kSliceCenter.getZ (), zSP);\n\n putVertex (\n (kSliceCenter.getX () + tempVa.getX ()),\n (kSliceCenter.getY () + tempVa.getY ()),\n (kSliceCenter.getZ () + tempVa.getZ ())\n );\n tempVa = getVertexCoord (i);\n\n kNormal = new Vector3D (\n tempVa.getX () - center.getX (),\n tempVa.getY () - center.getY (),\n tempVa.getZ () - center.getZ ()\n );\n double mag = Math.sqrt (\n Math.pow (kNormal.getX (), 2) +\n Math.pow (kNormal.getY (), 2) +\n Math.pow (kNormal.getZ (), 2)\n );\n kNormal = new Vector3D (\n kNormal.getX () / mag,\n kNormal.getY () / mag,\n kNormal.getZ () / mag\n );\n if ( !viewInside ) {\n putNormal (\n kNormal.getX (),\n kNormal.getY (),\n kNormal.getZ ()\n );\n } else {\n putNormal (\n -kNormal.getX (),\n -kNormal.getY (),\n -kNormal.getZ ()\n );\n }\n i++;\n }\n\n// setVertexCoord(i, getVertexCoord(iSave));\n// setNormalCoord(i, getNormalCoord(iSave));\n putVertex (getVertexCoord (iSave));\n putNormal (getNormalCoord (iSave));\n i++;\n }\n\n // south pole\n if ( theta0 == -0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n (center.getZ () - radius)\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, -1));\n } else {\n putNormal (new Vector3D (0, 0, 1));\n }\n setNormalCount (i + 1);\n i++;\n }\n\n // north pole\n if ( theta1 == 0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + radius\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, 1));\n } else {\n putNormal (new Vector3D (0, 0, -1));\n }\n setNormalCount (i + 1);\n i++;\n }\n }\n\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIntersection();", "public intersection(){}", "public Pair<Boolean, Float> intersects(AxisAlignedBox box) {\r\n\t\treturn SecaMath.intersect(this, box);\r\n\t}", "public boolean contains(Vector3D point) {\n\n int x = 0;\n int y = 1;\n int z = 2;\n\n double ox = point.getX();\n double oy = point.getY();\n double oz = point.getZ();\n\n Vector3D d = Util.Math.randomDir();\n double dx = d.getX();\n double dy = d.getY();\n double dz = d.getZ();\n\n double epsilon = 1e-12;\n\n cacheVerticesAndFaces();\n int vis = this.mesh.getVertexFormat().getVertexIndexSize();\n HashSet<Double> ts = new HashSet<>();\n\n for (int i = 0; i < faces.length; i += 6) {\n // test ray \"going out\" first\n double t = Util.Math.rayTriangleIntersect(ox, oy, oz, dx, dy, dz,\n vertices[3 * faces[i] + x], vertices[3 * faces[i] + y], vertices[3 * faces[i] + z],\n vertices[3 * faces[i + 2 * vis] + x],\n vertices[3 * faces[i + 2 * vis] + y],\n vertices[3 * faces[i + 2 * vis] + z],\n vertices[3 * faces[i + vis] + x],\n vertices[3 * faces[i + vis] + y],\n vertices[3 * faces[i + vis] + z]\n );\n if (t != -1 && t > epsilon) {\n //System.out.println(\"adding outgoing \" + t);\n ts.add(t);\n\n }\n\n // test the \"going in\" direction\n t = Util.Math.rayTriangleIntersect(ox, oy, oz, dx, dy, dz,\n vertices[3 * faces[i] + x], vertices[3 * faces[i] + y], vertices[3 * faces[i] + z],\n vertices[3 * faces[i + vis] + x],\n vertices[3 * faces[i + vis] + y],\n vertices[3 * faces[i + vis] + z],\n vertices[3 * faces[i + 2 * vis] + x],\n vertices[3 * faces[i + 2 * vis] + y],\n vertices[3 * faces[i + 2 * vis] + z]\n );\n if (t != -1) {\n //System.out.println(\"adding incoming \" + t);\n if (t < epsilon) {\n t = 0.0;\n }\n ts.add(t);\n }\n\n }\n\n // catch coincident points on triangles\n if (ts.size() == 1 && ts.contains(0.0)) {\n return false;\n }\n\n if ((ts.size() % 2) == 1) {\n //System.out.println(\"unique t parameters: \" + ts.size());\n //System.out.println(\"contained: \"+point);\n return true;\n }\n //System.out.println(\"\");\n\n return false;\n }", "protected final int getSphere(final Sector sector, final Nation receiver) {\n final char thisNationCodeLower = String.valueOf(receiver.getCode()).toLowerCase().charAt(0);\n final char thisSectorCodeLower = String.valueOf(sector.getPoliticalSphere()).toLowerCase().charAt(0);\n int sphere = 1;\n\n // x2 and x3 are used only for European units if they are within SOI or outside SOI\n if (sector.getPosition().getRegion().getId() != RegionConstants.EUROPE) {\n return 1;\n }\n\n // Check if this is not home region\n if (thisNationCodeLower != thisSectorCodeLower) {\n sphere = 2;\n\n // Check if this is outside sphere of influence\n if (receiver.getSphereOfInfluence().toLowerCase().indexOf(thisSectorCodeLower) < 0) {\n sphere = 3;\n }\n }\n\n return sphere;\n }", "public void makeSphere (float radius, int slices, int stacks)\r\n {\r\n \t\r\n \tPoint lower[][] = new Point[stacks + 1][slices + 1];\r\n \tfloat rad[] = new float[stacks + 1];\r\n \tfloat vert = -0.5f;\r\n \t\r\n \t// Calculate radius for each stack\r\n \tfor(int i = 0; i <= stacks; i ++)\r\n \t{\r\n \t\trad[i] = (float)Math.sqrt((0.5f * 0.5f) - (( 0.5f - ( ( 1.0f/(float)stacks) * i ) ) * ( 0.5f - ( ( 1.0f/(float)stacks) * i ) ) ));\r\n\t\t}\r\n \t\r\n \tvert = -0.5f;\r\n \t\r\n \t// Calculate the vertices for each stack\r\n \tfor(int i = 0; i <= stacks; i ++ )\r\n \t{\r\n \t\tfor(int j = 0; j <= slices; j ++)\r\n \t\t{\r\n \t\t\tlower[i][j] = new Point();\r\n \t\t\tlower[i][j].x = rad[i] * (float)Math.cos(Math.toRadians ( (360.0f / (float)slices) * j ) );\r\n \t\t\tlower[i][j].z = rad[i] * (float)Math.sin(Math.toRadians ( (360.0f / (float)slices) * j ) );\r\n \t\t\tlower[i][j].y = vert;\r\n \t\t}\r\n \t\t// Update the y coordinate for the next stack\r\n \t\tvert += (1.0f / (float)stacks);\r\n \t}\r\n \t\r\n \t\r\n \t// Print all the triangles using the vertices\r\n \tfor(int i = 0 ; i < stacks; i++)\r\n \t\tfor(int j = 0 ; j < slices; j++)\r\n \t\t{\r\n \t\t\tthis.addTriangle(lower[i][j].x, lower[i][j].y, lower[i][j].z, lower[i][j+1].x, lower[i][j+1].y, lower[i][j+1].z, lower[i+1][j+1].x, lower[i+1][j+1].y, lower[i+1][j+1].z);\r\n \t\t\tthis.addTriangle(lower[i][j].x, lower[i][j].y, lower[i][j].z, lower[i+1][j+1].x, lower[i+1][j+1].y, lower[i+1][j+1].z, lower[i+1][j].x, lower[i+1][j].y, lower[i+1][j].z);\r\n \t\t}\r\n }", "public Pair<Boolean, Float> intersects(Plane plane) {\r\n\t\treturn SecaMath.intersect(this, plane);\r\n\t}", "public Coordinates intersection() {\n return intersection;\n }", "@JsMethod\n public native Cartographic findIntersectionWithLongitude(double intersectionLongitude, Cartographic result);", "@Test\n\tpublic void testSphereRadiusOne()\n\t{\n\t\tfinal EllipseRegionOfInterest ellipse = new EllipseRegionOfInterest( 3 );\n\t\tellipse.setOrigin( new double[] { 1, 1, 1 } );\n\t\tellipse.setRadius( 1 );\n\t\ttestEllipse( ellipse );\n\n\t}", "public float intersectsTriangle(Vector3f vertex1, Vector3f vertex2, Vector3f vertex3) {\n\t\tVector3f edge1 = new Vector3f(), edge2 = new Vector3f();\n\n\t\tedge1.sub(vertex2, vertex1);\n\t\tedge2.sub(vertex3, vertex1);\n\n\t\tVector3f nlook = new Vector3f(look);\n\t\tnlook.negate();\n\t\t// Compute the determinant.\n\t\tVector3f directionCrossEdge2 = new Vector3f();\n\t\tdirectionCrossEdge2.cross(nlook, edge2);\n\n\t\tfloat determinant = directionCrossEdge2.dot(edge1);\n\t\t// If the ray and triangle are parallel, there is no collision.\n\t\tif (determinant > -.0000001f && determinant < .0000001f) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\tfloat inverseDeterminant = 1.0f / determinant;\n\n\t\t// Calculate the U parameter of the intersection point.\n\t\tVector3f distanceVector = new Vector3f();\n\t\tdistanceVector.sub(position, vertex1);\n\n\t\tfloat triangleU = directionCrossEdge2.dot(distanceVector);\n\t\ttriangleU *= inverseDeterminant;\n\n\t\t// Make sure the U is inside the triangle.\n\t\tif (triangleU < 0 || triangleU > 1) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\t// Calculate the V parameter of the intersection point.\n\t\tVector3f distanceCrossEdge1 = new Vector3f();\n\t\tdistanceCrossEdge1.cross(distanceVector, edge1);\n\n\t\tfloat triangleV = nlook.dot(distanceCrossEdge1);\n\t\ttriangleV *= inverseDeterminant;\n\n\t\t// Make sure the V is inside the triangle.\n\t\tif (triangleV < 0 || triangleU + triangleV > 1) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\t// Get the distance to the face from our ray origin\n\t\tfloat rayDistance = distanceCrossEdge1.dot(edge2);\n\t\trayDistance *= inverseDeterminant;\n\n\t\t// Is the triangle behind us?\n\t\tif (rayDistance < 0) {\n\t\t\trayDistance *= -1;\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\t\treturn rayDistance;\n\t}", "public interface Ray3 extends Path3, Serializable, Cloneable {\r\n\r\n /**\r\n * Creates a new ray from 3 coordinates for the origin point and 3 coordinates for the direction vector.\r\n *\r\n * @param xo the x-coordinate of the origin\r\n * @param yo the y-coordinate of the origin\r\n * @param zo the z-coordinate of the origin\r\n * @param xd the x-coordinate of the direction\r\n * @param yd the y-coordinate of the direction\r\n * @param zd the z-coordinate of the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(double xo, double yo, double zo, double xd, double yd, double zd) {\r\n return new Ray3Impl(xo, yo, zo, xd, yd, zd);\r\n }\r\n\r\n /**\r\n * Creates a new ray from an origin point and a direction vector.\r\n *\r\n * @param origin the origin\r\n * @param dir the direction\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n * The origin will be a copy of the point {@code from}.\r\n * The directional vector will be a new vector from {@code from} to {@code to}.\r\n *\r\n * @param from the first point\r\n * @param to the second point\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(Vector3 from, Vector3 to) {\r\n return fromOD(from, Vector3.between(from, to));\r\n }\r\n\r\n /**\r\n * Creates a new ray between two points.\r\n *\r\n * @param ox the origin x\r\n * @param oy the origin x\r\n * @param oz the origin x\r\n * @param tx the target x\r\n * @param ty the target x\r\n * @param tz the target x\r\n * @return a new ray\r\n */\r\n @NotNull\r\n static Ray3 between(double ox, double oy, double oz, double tx, double ty, double tz) {\r\n return fromOD(ox, oy, oz, tx-ox, ty-oy, tz-oz);\r\n }\r\n\r\n // GETTERS\r\n\r\n /**\r\n * Returns the x-coordinate of the origin of this ray.\r\n *\r\n * @return the x-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgX();\r\n\r\n /**\r\n * Returns the y-coordinate of the origin of this ray.\r\n *\r\n * @return the y-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgY();\r\n\r\n /**\r\n * Returns the z-coordinate of the origin of this ray.\r\n *\r\n * @return the z-coordinate of the origin of this ray\r\n */\r\n abstract double getOrgZ();\r\n\r\n /**\r\n * Returns the x-coordinate of the direction of this ray.\r\n *\r\n * @return the x-coordinate of the direction of this ray\r\n */\r\n abstract double getDirX();\r\n\r\n /**\r\n * Returns the y-coordinate of the direction of this ray.\r\n *\r\n * @return the y-coordinate of the direction of this ray\r\n */\r\n abstract double getDirY();\r\n\r\n /**\r\n * Returns the z-coordinate of the direction of this ray.\r\n *\r\n * @return the z-coordinate of the direction of this ray\r\n */\r\n abstract double getDirZ();\r\n\r\n /**\r\n * Returns the length of this ray.\r\n *\r\n * @return the length of this ray\r\n */\r\n abstract double getLength();\r\n\r\n /**\r\n * Returns the squared length of this ray.\r\n *\r\n * @return the squared length of this ray\r\n */\r\n abstract double getLengthSquared();\r\n \r\n /**\r\n * Returns the origin of this ray in a new vector.\r\n *\r\n * @return the origin of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }\r\n \r\n /**\r\n * Returns the direction of this ray in a new vector.\r\n *\r\n * @return the direction of this ray in a new vector\r\n */\r\n default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }\r\n \r\n default AxisAlignedBB getBoundaries() {\r\n return AxisAlignedBB.between(getOrigin(), getEnd());\r\n }\r\n\r\n // PATH IMPL\r\n \r\n /**\r\n * Returns the end of this ray in a new vector. This is equal to the sum of the origin and direction of the vector.\r\n *\r\n * @return the end of this ray in a new vector\r\n */\r\n @Override\r\n default Vector3 getEnd() {\r\n return Vector3.fromXYZ(getOrgX() + getDirX(), getOrgY() + getDirY(), getOrgZ() + getDirZ());\r\n }\r\n\r\n @Override\r\n default Vector3[] getControlPoints() {\r\n return new Vector3[] {getOrigin(), getEnd()};\r\n }\r\n\r\n // CHECKERS\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(double x, double y, double z) {\r\n return Vector3.between(getOrgX(), getOrgY(), getOrgZ(), x, y, z).isMultipleOf(getDirection());\r\n }\r\n\r\n /**\r\n * Returns whether the ray is equal to the given point at any point.\r\n *\r\n * @param point the point\r\n * @return whether the ray is equal to the given point at any point\r\n */\r\n default boolean contains(Vector3 point) {\r\n return contains(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Returns whether this ray is equal to another ray. This condition is true\r\n * if both origin and direction are equal.\r\n *\r\n * @param ray the ray\r\n * @return whether this ray is equal to the ray\r\n */\r\n default boolean equals(Ray3 ray) {\r\n return\r\n getOrigin().equals(ray.getOrigin()) &&\r\n getDirection().isMultipleOf(ray.getDirection());\r\n }\r\n\r\n // SETTERS\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param x the x-coordinate of the point\r\n * @param y the y-coordinate of the point\r\n * @param z the z-coordinate of the point\r\n */\r\n abstract void setOrigin(double x, double y, double z);\r\n\r\n /**\r\n * Sets the origin of the ray to a given point.\r\n *\r\n * @param point the point\r\n */\r\n default void setOrigin(Vector3 point) {\r\n setOrigin(point.getX(), point.getY(), point.getZ());\r\n }\r\n\r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param x the x-coordinate of the vector\r\n * @param y the y-coordinate of the vector\r\n * @param z the z-coordinate of the vector\r\n */\r\n abstract void setDirection(double x, double y, double z);\r\n \r\n /**\r\n * Sets the direction of this ray to a given vector.\r\n *\r\n * @param v the vector\r\n */\r\n default void setDirection(Vector3 v) {\r\n setDirection(v.getX(), v.getY(), v.getZ());\r\n }\r\n\r\n /**\r\n * Sets the length of this ray to a given length.\r\n *\r\n * @param t the new hypot\r\n */\r\n default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }\r\n\r\n default void normalize() {\r\n setLength(1);\r\n }\r\n \r\n //TRANSFORMATIONS\r\n \r\n default void scaleOrigin(double x, double y, double z) {\r\n setDirection(getOrgX()*x, getOrgY()*y, getOrgZ()*z);\r\n }\r\n \r\n default void scaleDirection(double x, double y, double z) {\r\n setDirection(getDirX()*x, getDirY()*y, getDirZ()*z);\r\n }\r\n \r\n default void scaleOrigin(double factor) {\r\n scaleOrigin(factor, factor, factor);\r\n }\r\n \r\n default void scaleDirection(double factor) {\r\n scaleDirection(factor, factor, factor);\r\n }\r\n \r\n default void scale(double x, double y, double z) {\r\n scaleOrigin(x, y, z);\r\n scaleDirection(x, y, z);\r\n }\r\n \r\n default void scale(double factor) {\r\n scale(factor, factor, factor);\r\n }\r\n \r\n /**\r\n * Translates the ray origin by a given amount on each axis.\r\n *\r\n * @param x the x-coordinate\r\n * @param y the y-coordinate\r\n * @param z the z-coordinate\r\n */\r\n abstract void translate(double x, double y, double z);\r\n\r\n // MISC\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @param interval the interval of iteration\r\n * @return a new interval iterator\r\n */\r\n default Iterator<Vector3> intervalIterator(double interval) {\r\n return new IntervalIterator(this, interval);\r\n }\r\n\r\n /**\r\n * <p>\r\n * Returns a new interval iterator for this ray. This iterator will return all points in a given interval that\r\n * are on a ray.\r\n * </p>\r\n * <p>\r\n * For example, a ray with hypot 1 will produce an iterator that iterates over precisely 3 points if the\r\n * interval is 0.5 (or 0.4).\r\n * </p>\r\n * <p>\r\n * To get an iterator that iterates over a specified amount of points {@code x}, make use of\r\n * <blockquote>\r\n * {@code intervalIterator( getLength() / (x - 1) )}\r\n * </blockquote>\r\n * </p>\r\n *\r\n * @return a new interval iterator\r\n */\r\n default Iterator<BlockVector> blockIntervalIterator() {\r\n return new BlockIntervalIterator(this);\r\n }\r\n\r\n /**\r\n * Returns a given amount of equally distributed points on this ray.\r\n *\r\n * @param amount the amount\r\n * @return an array containing points on this ray\r\n */\r\n @Override\r\n default Vector3[] getPoints(int amount) {\r\n if (amount < 0) throw new IllegalArgumentException(\"amount < 0\");\r\n if (amount == 0) return new Vector3[0];\r\n if (amount == 1) return new Vector3[] {getOrigin()};\r\n if (amount == 2) return new Vector3[] {getOrigin(), getEnd()};\r\n\r\n int t = amount - 1, i = 0;\r\n Vector3[] result = new Vector3[amount];\r\n\r\n Iterator<Vector3> iter = intervalIterator(getLengthSquared() / t*t);\r\n while (iter.hasNext())\r\n result[i++] = iter.next();\r\n\r\n return result;\r\n }\r\n\r\n abstract Ray3 clone();\r\n\r\n}", "private boolean occluded(LightSource light, Point3D point, Geometry geometry){\n Vector lightDirection = light.getL(point);\n // we want to check the vector from the ray of the camera to the light ray\n // this is the revers direction\n lightDirection.scale(-1);\n\n Point3D geometryPoint = new Point3D(point);\n Vector epsVector = new Vector(geometry.getNormal(point));\n epsVector.scale(2);\n geometryPoint.add(epsVector);\n // create new ray\n Ray lightRay = new Ray(geometryPoint, lightDirection);\n // check for intersection points\n Map<Geometry, List<Point3D>> intersectionPoints = getSceneRayIntersections(lightRay);\n\n // Flat geometry cannot self intersect\n if (geometry instanceof FlatGeometry){\n intersectionPoints.remove(geometry);\n }\n for(Entry<Geometry, List<Point3D>> entry: intersectionPoints.entrySet()){\n if(entry.getKey().getMaterial().getKt() == 0)\n if (!(light instanceof PointLight) ||\n (light instanceof PointLight && point.distance(entry.getValue().get(0)) < point.distance(((PointLight)light).getPosition())))\n return true;\n }\n return false;\n }", "private Ray constructRefractedRay(Geometry geometry, Point3D point, Ray inRay){\n Vector N = geometry.getNormal(point);\n Vector direct = inRay.get_direction();\n double cosOi = N.dotProduct(direct);\n if (cosOi < 0) {\n N.scale(-2);\n }\n else{\n N.scale(2);\n }\n Point3D pointEps = new Point3D(point);\n pointEps.add(N);\n return new Ray(pointEps, direct);\n }", "public void addRayTrajectories()\n\t{\n\t\tclear();\n\t\t\n\t\tdouble sin = Math.sin(hyperboloidAngle);\n\n\t\t// Three vectors which form an orthogonal system.\n\t\t// a points in the direction of the axis and is of length cos(coneAngle);\n\t\t// u and v are both of length sin(coneAngle).\n\t\tVector3D\n\t\ta = axisDirection.getWithLength(Math.cos(hyperboloidAngle)),\n\t\tu = Vector3D.getANormal(axisDirection).getNormalised(),\n\t\tv = Vector3D.crossProduct(axisDirection, u).getNormalised();\n\t\t\n\t\tfor(int i=0; i<numberOfRays; i++)\n\t\t{\n\t\t\tdouble\n\t\t\t\tphi = 2*Math.PI*i/numberOfRays,\n\t\t\t\tcosPhi = Math.cos(phi),\n\t\t\t\tsinPhi = Math.sin(phi);\n\t\t\taddSceneObject(\n\t\t\t\t\tnew EditableRayTrajectory(\n\t\t\t\t\t\t\t\"trajectory of ray #\" + i,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\tstartPoint,\n\t\t\t\t\t\t\t\t\tu.getProductWith(waistRadius*cosPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith(waistRadius*sinPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tstartTime,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\tu.getProductWith(-sin*sinPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith( sin*cosPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\trayRadius,\n\t\t\t\t\t\t\tsurfaceProperty,\n\t\t\t\t\t\t\tmaxTraceLevel,\n\t\t\t\t\t\t\tfalse,\t// reportToConsole\n\t\t\t\t\t\t\tthis,\t// parent\n\t\t\t\t\t\t\tgetStudio()\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\t}", "@JsMethod\n public native Cartographic findIntersectionWithLongitude(double intersectionLongitude);", "public static float intersectRayOnLine(PointF rayPos, PointF rayDir,\n PointF line0, PointF line1){\n PointF v1 = Vec2D.subtract(rayPos, line0);\n PointF v2 = Vec2D.subtract(line1, line0);\n PointF v3 = Vec2D.perpendicular(rayDir);\n\n return Vec2D.dot(v1, v3) / Vec2D.dot(v2, v3);\n }", "static List<PT> CircleCircleIntersection(PT a, PT b, double r, double R) {\r\n\t\tList<PT> ret = new ArrayList<PT>();\r\n\t\tdouble d = Math.sqrt(dist2(a, b));\r\n\t\tif (d > r + R || d + Math.min(r, R) < Math.max(r, R))\r\n\t\t\treturn ret;\r\n\t\tdouble x = (d * d - R * R + r * r) / (2 * d);\r\n\t\tdouble y = Math.sqrt(r * r - x * x);\r\n\t\tPT v = (b.subtract(a)).divide(d);\r\n\t\tret.add(a.add(v.multiply(x).add(RotateCCW90(v).multiply(y))));\r\n\t\tif (y > 0)\r\n\t\t\tret.add(a.add(v.multiply(x).subtract(RotateCCW90(v).multiply(y))));\r\n\t\treturn ret;\r\n\t}", "public static boolean intersectLineTriangle(Vec3 p, Vec3 q, Vec3 a, Vec3 b, Vec3 c, Vec3 r) {\r\n\t // Bring points to their respective coordinate frame\r\n\t Vec3 pq = q.subtract( p);\r\n\t Vec3 pa =a.subtract(p);\r\n\t Vec3 pb = b.subtract(p);\r\n\t Vec3 pc = c.subtract(p);\r\n\t \r\n\t Vec3 m = pq.cross(pc);\r\n\t \r\n\t float u = pb.dot(m); \r\n\t float v = -pa.dot(m);\r\n\t \r\n\t if (Math.signum(u) != Math.signum(v)) {\r\n\t return false;\r\n\t }\r\n\t \r\n\t // scalar triple product\r\n\t float w = pq.dot( pb.cross(pa));\r\n\t \r\n\t if (Math.signum(u) != Math.signum(w)) {\r\n\t return false;\r\n\t }\r\n\t \r\n\t float denom = 1.0f / (u + v + w);\r\n\t \r\n\t // r = ((u * denom) * a) + ((v * denom) * b) + ((w * denom) * c);\r\n\t Vec3 compA = a.multiply(u * denom);\r\n\t Vec3 compB = b.multiply( v * denom);\r\n\t Vec3 compC = c.multiply( w * denom);\r\n\t \r\n\t // store result in Vector r\r\n\t r.x = compA.x + compB.x + compC.x;\r\n\t r.y = compA.y + compB.y + compC.y;\r\n\t r.z = compA.z + compB.z + compC.z;\r\n\t \r\n\t return true;\r\n\t}", "public double rayTriangleIntersect(double ox, double oy, double oz, double dx, double dy, double dz, boolean goingOut, int face) {\n int x = 0;\n int y = 1;\n int z = 2;\n\n cacheVerticesAndFaces();\n int vis = this.mesh.getVertexFormat().getVertexIndexSize();\n\n return Util.Math.rayTriangleIntersect(ox, oy, oz, dx, dy, dz,\n vertices[3 * faces[face] + x], vertices[3 * faces[face] + y], vertices[3 * faces[face] + z],\n goingOut ? vertices[3 * faces[face + 2 * vis] + x] : vertices[3 * faces[face + vis] + x],\n goingOut ? vertices[3 * faces[face + 2 * vis] + y] : vertices[3 * faces[face + vis] + y],\n goingOut ? vertices[3 * faces[face + 2 * vis] + z] : vertices[3 * faces[face + vis] + z],\n goingOut ? vertices[3 * faces[face + vis] + x] : vertices[3 * faces[face + 2 * vis] + x],\n goingOut ? vertices[3 * faces[face + vis] + y] : vertices[3 * faces[face + 2 * vis] + y],\n goingOut ? vertices[3 * faces[face + vis] + z] : vertices[3 * faces[face + 2 * vis] + z]\n );\n }", "@Test\n public void trianglesTransparentSphere() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(0, 0, -1000), new Vector(0, 0, 1), new Vector(0, -1, 0)));\n scene.setDistance(1000);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //Right triangle\n new Point3D(-150, 150, 115), new Point3D(150, 150, 135), new Point3D(75, -75, 150)), //\n new Triangle(Color.BLACK, new Material(0.5, 0.5, 60), //\n new Point3D(-150, 150, 115), new Point3D(-70, -70, 140), new Point3D(75, -75, 150)), //\n new Sphere(new Color(java.awt.Color.BLUE), new Material(0.2, 0.2, 30, 0, 0.3), // )\n 30, new Point3D(60, -50, 50)),\n new Triangle(Color.BLACK, new Material(0.3, 0.3, 30), new Point3D(-30, 20, 100),\n new Point3D(-15, 30, 95), new Point3D(17, 87, 122)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //\n new Point3D(60, -50, 0), 1, 4E-5, 2E-7, new Vector(0, 0, 1)).setRadius(12));\n\n ImageWriter imageWriter = new ImageWriter(\"soft shadow without transparency + triangle between - 500Ray 12Radius\", 200, 200, 600, 600);\n Render render = new Render(imageWriter, scene).setSuperSampling(500).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }", "private int cameraTouchingBoundingSphere(Frame frame, Anchor[] teapotAnchors, float teapotScaleFactor) {\n float teapot_r = (132113.73f / 2.0f) * teapotScaleFactor * 1.1f; // increase\n getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);\n float y_pos = displaymetrics.heightPixels / 2.0f;\n float x_pos = displaymetrics.widthPixels / 2.0f;\n\n //Check if camera is hitting one of the teapots\n for (int teapot_id = 0; teapot_id < 4; teapot_id++) {\n for (HitResult hit : frame.hitTest(x_pos, y_pos)) {\n Trackable trackable = hit.getTrackable();\n if (trackable instanceof AugmentedImage) {\n Pose poseHit = hit.getHitPose();\n Pose cameraPose = frame.getCamera().getPose(); // need to check if camera is decently close\n float cdx = teapotAnchors[teapot_id].getPose().tx() - cameraPose.tx();\n float cdy = teapotAnchors[teapot_id].getPose().ty() - cameraPose.ty();\n float cdz = teapotAnchors[teapot_id].getPose().tz() - cameraPose.tz();\n float cdistanceMeters = (float) Math.sqrt(cdx * cdx + cdy * cdy + cdz * cdz);\n\n float dx = teapotAnchors[teapot_id].getPose().tx() - poseHit.tx();\n float dy = teapotAnchors[teapot_id].getPose().ty() - poseHit.ty();\n float dz = teapotAnchors[teapot_id].getPose().tz() - poseHit.tz();\n float distanceMeters = (float) Math.sqrt(dx * dx + dy * dy + dz * dz);\n\n if (distanceMeters < teapot_r && cdistanceMeters <= .15f) {\n return teapot_id;\n }\n }\n }\n }\n return -1;\n }", "private Type establishIntersectionType() {\n\r\n\t\tdouble Pq0 = AngleUtil.getTurn(p0, p1, q0);\r\n\t\tdouble Pq1 = AngleUtil.getTurn(p0, p1, q1);\r\n\r\n\t\tdouble Qp0 = AngleUtil.getTurn(q0, q1, p0);\r\n\t\tdouble Qp1 = AngleUtil.getTurn(q0, q1, p1);\r\n\r\n\t\t// check if all turn have none angle. In this case, lines are collinear.\r\n\t\tif (Pq0 == AngleUtil.NONE && Pq1 == AngleUtil.NONE || Qp0 == AngleUtil.NONE && Qp1 == AngleUtil.NONE) {\r\n\t\t\t// at this point, we know that lines are collinear.\r\n\t\t\t// we must check if they overlap for segments intersection\r\n\t\t\tif (q0.getDistance(p0) <= p0.getDistance(p1) && q0.getDistance(p1) <= p0.getDistance(p1)) {\r\n\t\t\t\t// then q0 is in P limits and p0 or p1 is in Q limits\r\n\t\t\t\t// TODO this check is no sufficient\r\n\t\t\t\tinPLimits = true;\r\n\t\t\t\tinQLimits = true;\r\n\t\t\t}\r\n\t\t\treturn Type.COLLINEAR;\r\n\t\t}\r\n\t\t// check if q0 and q1 lie around P AND p0 and p1 lie around Q.\r\n\t\t// in this case, the two segments intersect\r\n\t\telse if (Pq0 * Pq1 <= 0 && Qp0 * Qp1 <= 0) {\r\n\t\t\t// else if(Pq0 <= 0 && Pq1 >= 0 && Qp0 <= 0 && Qp1 >= 0 ||\r\n\t\t\t// Pq0 >= 0 && Pq1 <= 0 && Qp0 >= 0 && Qp1 <= 0){\r\n\r\n\t\t\tinPLimits = true;\r\n\t\t\tinQLimits = true;\r\n\t\t\treturn Type.INTERSECT;\r\n\t\t}\r\n\r\n\t\t// At this point, we know that segments are not crossing\r\n\t\t// check if q0 and q1 lie around P or p0 and p1 lie around Q.\r\n\t\t// in this case, a segment cross a line\r\n\t\telse if (Pq0 * Pq1 <= 0) {\r\n\t\t\tinQLimits = true;\r\n\t\t\treturn Type.INTERSECT;\r\n\t\t} else if (Qp0 * Qp1 <= 0) {\r\n\t\t\tinPLimits = true;\r\n\t\t\treturn Type.INTERSECT;\r\n\t\t}\r\n\r\n\t\t// At this point, we know that each segment lie on one side of the other\r\n\t\t// We now check the slope to know if lines are Type.PARALLEL\r\n\t\tdouble pSlope = p0.getSlope(p1);\r\n\t\tdouble qSlope = q0.getSlope(q1);\r\n\t\tif (PrecisionUtil.areEquals(pSlope, qSlope))\r\n\t\t\t// TODO check the infinity case\r\n\t\t\t// this test works even if the slopes are \"Double.infinity\" due to the verticality of the lines and division\r\n\t\t\t// by 0\r\n\t\t\treturn Type.PARALLEL;\r\n\t\telse\r\n\t\t\treturn Type.INTERSECT;\r\n\t}", "private LightSource.Intersection castRayOnLights(Ray ray) {\n double closestPointDistanceSquared = Double.POSITIVE_INFINITY;\n LightSource.Intersection closestIntersection = null;\n for (LightSource light : lightSources) {\n LightSource.Intersection intersection = light.castRay(ray);\n if (intersection != null) {\n double distanceToIntersectionSquared =\n GeometryHelpers.vectorLengthSquared(intersection.info.pointOfIntersection.subtract(ray.origin));\n\n // To avoid hitting the shape from which the ray was shot, the ray has to have a minimum length\n if (distanceToIntersectionSquared > MINIMUM_RAY_LENGTH*MINIMUM_RAY_LENGTH) {\n if (distanceToIntersectionSquared < closestPointDistanceSquared) {\n closestPointDistanceSquared = distanceToIntersectionSquared;\n closestIntersection = intersection;\n }\n }\n }\n }\n return closestIntersection;\n }", "@Override\n\tpublic List<BoundingSphere> getBoundingSpheres() {\n\t\tLinkedList<BoundingSphere> res = new LinkedList<BoundingSphere>();\n\t\tBoundingSphere s1 = new BoundingSphere(0.9, new Point(0,0,0));\n\t\ts1.setSphereColore3d(0,0,0);\n\t\tres.add(s1);\n\t\tBoundingSphere temp = this.carFront.getBoundingSpheres().get(0);\n\t\tres.add(temp);\n\t\ttemp = this.carCenter.getBoundingSpheres().get(0);\n\t\tres.add(temp);\n\t\ttemp = this.carBack.getBoundingSpheres().get(0);\n\t\tres.add(temp);\n\n\t\treturn res;\n\n\n\t}", "private ArrayList<ColorMixerModel.ColorItem> pathIntersection(){\n ArrayList<ColorMixerModel.ColorItem> toDel = new ArrayList<>();\n for(ColorMixerModel.ColorItem c: cmModel.colorSet){\n Ellipse2D.Float cobj = new Ellipse2D.Float(c.getPos().x,c.getPos().y, c.getR(),c.getR());\n if(mouseTrace.intersects(cobj.getBounds2D())){\n toDel.add(c);\n }\n }\n return toDel;\n }", "public void getIntersection(int[] A, int[] B, ArrayList<int[]> intersections) \n {\n if (A[0] >= B[0] && A[0] <= B[1]) \n {\n if (A[1] >= B[0] && A[1] <= B[1]) \n {\n // Take the entirety of A\n intersections.add(A);\n } \n else \n {\n // Take the start of A to end of B\n int[] intersection = new int[]{A[0], B[1]};\n intersections.add(intersection);\n }\n } \n else \n {\n if (A[1] >= B[0] && A[1] <= B[1]) \n {\n // Take start of B to end of A\n int[] intersection = new int[]{B[0], A[1]};\n intersections.add(intersection);\n } \n else \n {\n if (A[0] < B[0] && A[1] > B[1]) \n {\n // Take the entirety of B\n intersections.add(B);\n } \n else \n {\n // No intersection at all\n return;\n }\n }\n }\n }", "private double intersect(double start0, double end0, double start1, double end1)\n {\n double length = Double.min(end0, end1) - Double.max(start0, start1);\n return Double.min(Double.max(0, length), 1.0);\n }", "public ArrayList<Point> intersection(Camera camera) {\n\t\tArrayList<Point> arrayPoint = new ArrayList<>();\n\n\t\tarrayPoint.add(A2);\n\t\tarrayPoint.addAll(camera.intersection(A2, B2));\n\n\t\tarrayPoint.add(B2);\n\t\tarrayPoint.addAll(camera.intersection(B2, C2));\n\n\t\tarrayPoint.add(C2);\n\t\tarrayPoint.addAll(camera.intersection(C2, D2));\n\n\t\tarrayPoint.add(D2);\n\t\tarrayPoint.addAll(camera.intersection(D2, A2));\n\n\t\tarrayPoint.add(A2);\n\n\t\treturn arrayPoint;\n\t}", "@Test\n\tpublic void testConstructRayThroughPixel() {\n\n\t\tCamera camera1 = new Camera(Point3D.ZERO, new Vector(0, 1, 0), new Vector(0, 0, 1));\n\n\t\t// 3X3\n\t\tRay ray11 = camera1.constructRayThroughPixel(3, 3, 1, 1, 100, 150, 150);\n\t\tRay expectedRay11 = new Ray(Point3D.ZERO, new Vector(50, 50, 100).normalize());\n\t\tassertEquals(\"positive up to vectors testing at 3X3 in pixel (1,1)\", ray11, expectedRay11);\n\n\t\tRay ray33 = camera1.constructRayThroughPixel(3, 3, 3, 3, 100, 150, 150);\n\t\tRay expectedRay33 = new Ray(Point3D.ZERO, new Vector(-50, -50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (3,3)\", ray33, expectedRay33);\n\n\t\tRay ray21 = camera1.constructRayThroughPixel(3, 3, 2, 1, 100, 150, 150);\n\t\tRay expectedRay21 = new Ray(Point3D.ZERO, new Vector(0, 50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (2,1)\", ray21, expectedRay21);\n\n\t\tRay ray23 = camera1.constructRayThroughPixel(3, 3, 2, 3, 100, 150, 150);\n\t\tRay expectedRay23 = new Ray(Point3D.ZERO, new Vector(0, -50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (2,3)\", ray23, expectedRay23);\n\n\t\tRay ray12 = camera1.constructRayThroughPixel(3, 3, 1, 2, 100, 150, 150);\n\t\tRay expectedRay12 = new Ray(Point3D.ZERO, new Vector(50, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (1,2)\", ray12, expectedRay12);\n\n\t\tRay ray32 = camera1.constructRayThroughPixel(3, 3, 3, 2, 100, 150, 150);\n\t\tRay expectedRay32 = new Ray(Point3D.ZERO, new Vector(-50, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (3,2)\", ray32, expectedRay32);\n\n\t\tRay ray22 = camera1.constructRayThroughPixel(3, 3, 2, 2, 100, 150, 150);\n\t\tRay expectedRay22 = new Ray(Point3D.ZERO, new Vector(0, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X3 in pixel (2,2) - A case test that Pij is equal to Pc\", ray22,\n\t\t\t\texpectedRay22);\n\n\t\t// 3X4 Py={1,2,3} Px={1,2,3,4}\n\n\t\tRay rayS22 = camera1.constructRayThroughPixel(4, 3, 2, 2, 100, 200, 150);\n\t\tRay expectedRayS22 = new Ray(Point3D.ZERO, new Vector(25, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (2,2)\", rayS22, expectedRayS22);\n\n\t\tRay rayS32 = camera1.constructRayThroughPixel(4, 3, 3, 2, 100, 200, 150);\n\t\tRay expectedRayS32 = new Ray(Point3D.ZERO, new Vector(-25, 0, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (3,2)\", rayS32, expectedRayS32);\n\n\t\tRay rayS11 = camera1.constructRayThroughPixel(4, 3, 1, 1, 100, 200, 150);\n\t\tRay expectedRayS11 = new Ray(Point3D.ZERO, new Vector(75, 50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (1,1)\", rayS11, expectedRayS11);\n\n\t\tRay rayS43 = camera1.constructRayThroughPixel(4, 3, 4, 3, 100, 200, 150);\n\t\tRay expectedRayS43 = new Ray(Point3D.ZERO, new Vector(-75, -50, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 3X4 in pixel (4,3)\", rayS43, expectedRayS43);\n\n\t\t// 4X3 Py={1,2,3,4} Px={1,2,3}\n\n\t\tRay ray_c22 = camera1.constructRayThroughPixel(3, 4, 2, 2, 100, 150, 200);\n\t\tRay expectedRay_c22 = new Ray(Point3D.ZERO, new Vector(0, 25, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (2,2)\", ray_c22, expectedRay_c22);\n\n\t\tRay ray_c32 = camera1.constructRayThroughPixel(3, 4, 3, 2, 100, 150, 200);\n\t\tRay expectedRay_c32 = new Ray(Point3D.ZERO, new Vector(-50, 25, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (3,2)\", ray_c32, expectedRay_c32);\n\n\t\tRay ray_c11 = camera1.constructRayThroughPixel(3, 4, 1, 1, 100, 150, 200);\n\t\tRay expectedRay_c11 = new Ray(Point3D.ZERO, new Vector(50, 75, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (1,1)\", ray_c11, expectedRay_c11);\n\n\t\tRay ray_c43 = camera1.constructRayThroughPixel(3, 4, 3, 4, 100, 150, 200);\n\t\tRay expectedRay_c43 = new Ray(Point3D.ZERO, new Vector(-50, -75, 100).normalize());\n\t\tassertEquals(\"pozitiv up to vectors testing at 4X3 in pixel (4,3)\", ray_c43, expectedRay_c43);\n\n\t\t// ======\n\t\t// Negative vectors.\n\t\tCamera camera2 = new Camera(Point3D.ZERO, new Vector(0, -1, 0), new Vector(0, 0, -1));\n\n\t\t// 3X3\n\t\tRay ray1 = camera2.constructRayThroughPixel(3, 3, 3, 3, 100, 150, 150);\n\t\tRay resultRay = new Ray(Point3D.ZERO,\n\t\t\t\tnew Vector(-1 / Math.sqrt(6), 1 / Math.sqrt(6), -(Math.sqrt((double) 2 / 3))));\n\t\tassertEquals(\"Negative vectors testing at 3X3 in pixel (3,3)\", ray1, resultRay);\n\n\t\t// 3X3\n\t\tRay ray_d11 = camera2.constructRayThroughPixel(3, 3, 1, 1, 100, 150, 150);\n\t\tRay expectedRay_d11 = new Ray(Point3D.ZERO, new Vector(50, -50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (1,1)\", ray_d11, expectedRay_d11);\n\n\t\tRay ray_d33 = camera2.constructRayThroughPixel(3, 3, 3, 3, 100, 150, 150);\n\t\tRay expectedRay_d33 = new Ray(Point3D.ZERO, new Vector(-50, 50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (3,3)\", ray_d33, expectedRay_d33);\n\n\t\tRay ray_d21 = camera2.constructRayThroughPixel(3, 3, 2, 1, 100, 150, 150);\n\t\tRay expectedRay_d21 = new Ray(Point3D.ZERO, new Vector(0, -50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (2,1)\", ray_d21, expectedRay_d21);\n\n\t\tRay ray_d23 = camera2.constructRayThroughPixel(3, 3, 2, 3, 100, 150, 150);\n\t\tRay expectedRay_d23 = new Ray(Point3D.ZERO, new Vector(0, 50, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (2,3)\", ray_d23, expectedRay_d23);\n\n\t\tRay ray_d12 = camera2.constructRayThroughPixel(3, 3, 1, 2, 100, 150, 150);\n\t\tRay expectedRay_d12 = new Ray(Point3D.ZERO, new Vector(50, 0, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (1,2)\", ray_d12, expectedRay_d12);\n\n\t\tRay ray_d32 = camera2.constructRayThroughPixel(3, 3, 3, 2, 100, 150, 150);\n\t\tRay expectedRay_d32 = new Ray(Point3D.ZERO, new Vector(-50, 0, -100).normalize());\n\t\tassertEquals(\"negative up to vectors testing at 3X3 in pixel (3,2)\", ray_d32, expectedRay_d32);\n\n\t\t// vTo negative vUp positive\n\t\tCamera camera3 = new Camera(Point3D.ZERO, new Vector(0, 1, 0), new Vector(0, 0, -1));\n\n\t\t// 3X4\n\n\t\tRay ray_e22 = camera3.constructRayThroughPixel(4, 3, 2, 2, 100, 200, 150);\n\t\tRay expectedRay_e22 = new Ray(Point3D.ZERO, new Vector(-25, 0, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (2,2)\", ray_e22, expectedRay_e22);\n\n\t\tRay ray_e32 = camera3.constructRayThroughPixel(4, 3, 3, 2, 100, 200, 150);\n\t\tRay expectedRay_e32 = new Ray(Point3D.ZERO, new Vector(25, 0, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (3,2)\", ray_e32, expectedRay_e32);\n\n\t\tRay ray_e11 = camera3.constructRayThroughPixel(4, 3, 1, 1, 100, 200, 150);\n\t\tRay expectedRay_e11 = new Ray(Point3D.ZERO, new Vector(-75, 50, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (1,1)\", ray_e11, expectedRay_e11);\n\n\t\tRay ray_e43 = camera3.constructRayThroughPixel(4, 3, 4, 3, 100, 200, 150);\n\t\tRay expectedRay_e43 = new Ray(Point3D.ZERO, new Vector(75, -50, -100).normalize());\n\t\tassertEquals(\"vTo negative vUp positive vectors testing at 3X4 in pixel (4,3)\", ray_e43, expectedRay_e43);\n\n\t\t// ======\n\t\tCamera littlCam = new Camera(Point3D.ZERO, new Vector(0, 1, 0), new Vector(0, 0, 1));\n\t\tRay littl33 = littlCam.constructRayThroughPixel(3, 3, 3, 3, 10, 6, 6);\n\t\tRay checklittl33 = new Ray(Point3D.ZERO, new Vector(-2, -2, 10).normalize());\n\t\tRay littl11 = littlCam.constructRayThroughPixel(3, 3, 1, 1, 10, 6, 6);\n\t\tRay checklittl11 = new Ray(Point3D.ZERO, new Vector(2, 2, 10).normalize());\n\n\t\tassertEquals(\"3,3\", littl33, checklittl33);\n\t\tassertEquals(\"1,1\", littl11, checklittl11);\n\t}", "public float sphereRadius() {\r\n\t\treturn LeapJNI.Hand_sphereRadius(this.swigCPtr, this);\r\n\t}", "public ArrayList<QuadTreeNode<E>> getIntersecting(Circle range) {\n\t\tif (!divided) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<QuadTreeNode<E>> intersecting = new ArrayList<QuadTreeNode<E>>();\n\t\t\n\t\tfor (QuadTreeNode<E> n : nodes) {\n\t\t\tif (n.intersects(range)) {\n\t\t\t\tintersecting.add(n);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn intersecting;\n\t}", "Multimap<String, String> intersects(Circle bounds);", "public float shadows(float var1, float var2, float var3, float var4, float var5, Point intersect, int index) {\r\n float second = 0;\r\n \r\n for(int i = 0; i < lights.size(); i++) {\r\n Vec N, L, V, H;\r\n \r\n Point center = spheres.get(index).getCenter();\r\n \r\n N = (intersect.point_sub(center)).normalize();\r\n L = (lights.get(i).getPoint().point_sub(intersect)).normalize();\r\n V = (window.getEye().point_sub(intersect)).normalize();\r\n H = (L.vec_add(V)).const_div(((L.vec_add(V)).length()));\r\n \r\n float S = 1;\r\n for(int j=0; j < spheres.size(); j++) {\r\n float xd, yd, zd, xo, yo, zo, xc, yc, zc, rc, A, B, C, disc, t0, t1;\r\n \r\n xd = L.getX();\r\n yd = L.getY();\r\n zd = L.getZ();\r\n xo = intersect.getX();\r\n yo = intersect.getY();\r\n zo = intersect.getZ();\r\n xc = spheres.get(j).getCenter().getX();\r\n yc = spheres.get(j).getCenter().getY();\r\n zc = spheres.get(j).getCenter().getZ();\r\n rc = spheres.get(j).getRadius();\r\n \r\n A = xd*xd + yd*yd + zd*zd;\r\n B = 2*(xd*(xo-xc) + yd*(yo-yc) + zd*(zo-zc));\r\n C = (xo-xc)*(xo-xc) + (yo-yc)*(yo-yc) + (zo-zc)*(zo-zc) - rc*rc;\r\n\r\n disc = B*B - 4*A*C;\r\n \r\n t0 = -B + (float) Math.sqrt(disc)/(2*A);\r\n t1 = -B - (float) Math.sqrt(disc)/(2*A);\r\n \r\n if(t0 > t1) {\r\n float flip = t0;\r\n t0 = t1;\r\n t1 = flip;\r\n }\r\n \r\n if(disc >= 0 && t0 > 0 && t0 < (intersect.point_sub(lights.get(i).getPoint())).length()) {\r\n S = 0;\r\n }\r\n } // end spheres for loop\r\n float temp;\r\n if(N.dot(L) < 0) { \r\n temp = 0; \r\n } else {\r\n temp = N.dot(L);\r\n }\r\n \r\n second = second + S*(((var1*var2)*temp) + (float) ((var3*var4)*Math.pow(N.dot(H), var5)));\r\n } // end lights for loop\r\n return second;\r\n }", "private float[] calculateMouseRay(int mouseX, int mouseY) {\n\t\tfloat[] normalizedDeviceCoords = getNormalizedDeviceCoords(mouseX, mouseY);\r\n\t\t\r\n\t\t//Creating a 4D vector out of the normalizedDeviceCoords, defining z as -1 (clipping Plane):\r\n\t\tfloat[] clipCoords = {normalizedDeviceCoords[0], normalizedDeviceCoords[1], -1f, 1f};\r\n\t\t\r\n\t\t//4D vector containing the inverted projection\r\n\t\tfloat[] eyeCoords = toEyeCoords(clipCoords);\r\n\t\t\r\n\t\t//3D vector containing the world coords of our mouse ray\r\n\t\tfloat[] worldCoords = toWorldCoords(eyeCoords);\r\n\t\t\r\n\t\treturn worldCoords;\r\n\t}", "@Override\n\tpublic Point3D findFirstIntersect(Ray3D ray) {\n\t\tPoint3D p = plane.findFirstIntersect(ray);\n\t\tif(isOnSurface(p))\n\t\t\treturn p;\n\t\telse\n\t\t\treturn Point3D.nullVal;\n\t}", "public Filter intersection(Filter f);" ]
[ "0.75398886", "0.7216313", "0.69479614", "0.68932164", "0.6885585", "0.679529", "0.6786806", "0.67297286", "0.66573066", "0.6657181", "0.6655956", "0.6640155", "0.6513612", "0.6472092", "0.64613175", "0.6442126", "0.6293883", "0.62490016", "0.6248047", "0.6240281", "0.6235967", "0.6188541", "0.61277467", "0.61088365", "0.6091321", "0.6044796", "0.60113543", "0.59791297", "0.594983", "0.5939576", "0.590373", "0.5823913", "0.57713133", "0.57672906", "0.57348245", "0.57253534", "0.56794626", "0.5656454", "0.56501484", "0.5617374", "0.56147873", "0.5605815", "0.55821717", "0.5554464", "0.5539183", "0.54952973", "0.54916435", "0.5489791", "0.54894763", "0.5482641", "0.54441667", "0.54358125", "0.5414401", "0.54114175", "0.540734", "0.53928334", "0.53778124", "0.5375001", "0.537472", "0.53672624", "0.5363437", "0.53477436", "0.5314647", "0.52936816", "0.52864486", "0.5281748", "0.52816784", "0.5260596", "0.52558136", "0.5242134", "0.5227836", "0.52254575", "0.52171016", "0.5214193", "0.5197237", "0.51746285", "0.51679194", "0.5165817", "0.51649755", "0.51514554", "0.514804", "0.5133729", "0.51079524", "0.50971675", "0.508384", "0.50566375", "0.50561714", "0.50548804", "0.5052553", "0.50446224", "0.5029494", "0.5022205", "0.50173295", "0.50075877", "0.5005843", "0.5001089", "0.49960366", "0.49906778", "0.49645796", "0.49642408" ]
0.5101286
83
This method calculates the texture for a given point.
public TextureCoord2D texFor (final Point3 point) { if (point == null)throw new IllegalArgumentException("The Point cannot be null!"); double teta = Math.acos(point.y); double phi = Math.atan2(point.x, point.z); return new TextureCoord2D(phi / (Math.PI*2), -teta/Math.PI); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float[] getHitTexCoord();", "void addTextureCoordinate(Vector t);", "public void texCoord(TexCoordType p)\r\n\t{\r\n\t // System.out.println(\"tex: \"+p.x+\", \"+p.y);\r\n\t\tgl.glTexCoord2d(p.x, p.y);\t\t\r\n\t}", "private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}", "public void createTexture(int textureSize) {\n\t\tsuper.createTexture(textureSize);\n\n\t\tBufferedImage img = new BufferedImage(textureSize, textureSize, BufferedImage.TYPE_INT_RGB);\n\t\tBufferedImage splatTexture;\n\t\tBufferedImage splatMap;\n\n\t\tfloat alpha;\n\t\tint scaledX;\n\t\tint scaledY;\n\n\t\tint rgb;\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint splatSize = splatTextures.size();\n\n\t\timg.getGraphics().drawImage(proceduralTexture.getImage(), 0, 0, null);\n\n\t\tfor (int x = 0; x < textureSize; x++) {\n\t\t\tfor (int y = 0; y < textureSize; y++) {\n\t\t\t\trgb = img.getRGB(x, y);\n\t\t\t\tred = (rgb & 0x00FF0000) >> 16;\n\t\t\t\tgreen = (rgb & 0x0000FF00) >> 8;\n\t\t\t\tblue = (rgb & 0x000000FF);\n\n\t\t\t\tfor (int i = 0; i < splatSize; i++) {\n\t\t\t\t\tsplatMap = splatMaps.get(i);\n\t\t\t\t\tsplatTexture = splatTextures.get(i);\n\n\t\t\t\t\t// Retrieve the amount of the color to use for this texture.\n\t\t\t\t\tscaledX = (int) (x * (splatMap.getWidth() / (float) textureSize));\n\t\t\t\t\tscaledY = (int) (splatMap.getHeight() - ((y * (splatMap.getHeight() / (float) textureSize)) + 1));\n\n\t\t\t\t\talpha = ((splatMap.getRGB(scaledX, scaledY) >> 24) & 0x000000FF) / 255.0f;\n\n\t\t\t\t\t// We may have to tile the texture if the terrain is larger\n\t\t\t\t\t// than the texture.\n\t\t\t\t\tscaledX = x % splatTexture.getWidth();\n\t\t\t\t\tscaledY = y % splatTexture.getHeight();\n\n\t\t\t\t\t// perform alpha composite\n\t\t\t\t\tif (alpha > 0) {\n\t\t\t\t\t\tred = (int) ((red * (1.0f - alpha)) + (((splatTexture.getRGB(scaledX, scaledY) & 0x00FF0000) >> 16) * alpha));\n\t\t\t\t\t\tgreen = (int) ((green * (1.0f - alpha)) + (((splatTexture.getRGB(scaledX, scaledY) & 0x0000FF00) >> 8) * alpha));\n\t\t\t\t\t\tblue = (int) ((blue * (1.0f - alpha)) + (((splatTexture.getRGB(scaledX, scaledY) & 0x000000FF)) * alpha));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// set the color for the final texture.\n\t\t\t\trgb = red << 16 | green << 8 | blue;\n\t\t\t\timg.setRGB(x, y, rgb);\n\n\t\t\t\tred = 0;\n\t\t\t\tgreen = 0;\n\t\t\t\tblue = 0;\n\t\t\t}\n\t\t}\n\n\t\t// create the new image from the data.\n\t\tproceduralTexture = new ImageIcon(img);\n\t\tproceduralTexture.setDescription(\"TerrainTexture\");\n\n\t\tlogger.fine(\"Created splat texture successfully.\");\n\t}", "void texImage2D(int target, int level, int resourceId, int border);", "@ThreadOpenGL\n public void glTexCoord2f()\n {\n GL11.glTexCoord2f(this.x, this.y);\n }", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.func_110914_a((EntitySpiritWolf)par1Entity);\n }", "SurfaceTexture mo17006a();", "void glBindTexture(int target, int texture);", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCaveSpiderTextures((EntityCaveSpider)par1Entity);\n }", "SurfaceTexture mo17015a();", "public abstract TextureObject getTexture();", "public SbVec4f get(final SbVec3f point, final SbVec3f normal) \n { return texCoordElt.get(point, normal); }", "public E3DVector2F getTextureCoordB(){\r\n return vertices[1].getTextureCoord();\r\n }", "private void drawsegment_texture8(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) { \n // Accurate texture mode added - comments stripped from dupe code, \n // see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode) {\n // see if the precomputation goes well, if so finish the setup\n if (precomputeAccurateTexturing()) { \n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n // if the matrix inversion screwed up, revert to normal rendering \n // (something is degenerate)\n accurateMode = false; \n }\n }\n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n \n int red = m_fill & 0xFF0000;\n int grn = m_fill & 0xFF00;\n int blu = m_fill & 0xFF;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n \n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode && goingIn) {\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU;\n iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else {\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n for ( ; xstart < xend; xstart++ ) {\n if (accurateMode) {\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else {\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n // try-catch just in case pixel offset it out of range\n try {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n //m_zbuffer[xstart] = iz;\n \n int al0;\n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = iu & 0xFFFF;\n al0 = m_texture[ofs] & 0xFF;\n int al1 = m_texture[ofs + 1] & 0xFF;\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int al2 = m_texture[ofs] & 0xFF;\n int al3 = m_texture[ofs + 1] & 0xFF;\n al0 = al0 + (((al1-al0) * iui) >> 16);\n al2 = al2 + (((al3-al2) * iui) >> 16);\n al0 = al0 + (((al2-al0) * (iv & 0xFFFF)) >> 16);\n } else {\n al0 = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)] & 0xFF;\n }\n \n int br = m_pixels[xstart];\n int bg = (br & 0xFF00);\n int bb = (br & 0xFF);\n br = (br & 0xFF0000);\n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al0) >> 8)) & 0xFF0000) | \n ((bg + (((grn - bg) * al0) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al0) >> 8)) & 0xFF);\n // m_stencil[xstart] = p;\n }\n }\n catch (Exception e) {\n }\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n iz+=izadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n zleft+=zleftadd;\n }\n }", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCowTextures((EntityCow)par1Entity);\n }", "public BufferedImage generateTexture() {\n BufferedImage texture = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n WritableRaster raster = texture.getRaster();\n \n int[] rasterData = new int[width * height];\n for (int i = 0; i < width * height; i++) {\n rasterData[i] = Color.BLACK.getRGB();\n }\n \n Color color;\n \n double max = Math.min(upperZ, cache.max);\n double min = Math.max(lowerZ, cache.min);\n double dz = (max - min) / (double)contours;\n boolean matched;\n for (int i = 0; i < width; i++) {\n for (int j = 0; j < height; j++) {\n PointDouble in = graphToValue(new PointDouble(i, j));\n double val = cache.get(in.getX(), in.getY());\n matched = false;\n if (alternateContours && contours > 0) {\n for (int k = 0; k <= contours; k++) {\n if (val >= min + (k - 0.5 * contourWidth + contourOffset + 0.5) * dz && val <= min + (k + 0.5 * contourWidth + contourOffset + 0.5) * dz) {\n matched = true;\n break;\n }\n }\n }\n if (matched) {\n color = CONTOUR_COLOR;\n }\n else {\n color = interpolate(LOW_COLOR, HIGH_COLOR, Math.min(Math.max((val - min) / (max - min), 0), 1));\n }\n \n rasterData[j * width + i] = color.getRGB();\n /*val = new PointDouble(val.getX(), op.applyAsDouble(val.getX()));\n val = valueToGraph(val);\n if (i != 0) {\n g.drawLine(MARGIN_X + i - 1, prev, (int) Math.round(val.getX()), (int) Math.round(val.getY()));\n }\n prev = (int) Math.round(val.getY());*/\n \n }\n }\n //Draw contours\n if (!alternateContours) {\n for (int k = 0; k < contours; k++) {\n double target = min + (k + contourOffset + 0.5) * dz;\n \n //Map of all points higher/lower then the target\n ArrayList<ArrayList<Boolean>> data = new ArrayList<>(width);\n for (int i = 0; i < width; i++) {\n data.add(new ArrayList<>(height));\n for (int j = 0; j < height; j++) {\n PointDouble in = graphToValue(new PointDouble(i, j));\n double val = cache.get(in.getX(), in.getY());\n data.get(i).add(val > target);\n }\n }\n \n //Edge detection filter\n ArrayList<ArrayList<Boolean>> filteredData = new ArrayList<>(width);\n for (int i = 0; i < width; i++) {\n filteredData.add(new ArrayList<>(height));\n for (int j = 0; j < height; j++) {\n boolean tl = data.get(Math.max(Math.min(i - 1, width - 1), 0)).get(Math.max(Math.min(j + 1, height - 1), 0));\n boolean tc = data.get(Math.max(Math.min(i, width - 1), 0)).get(Math.max(Math.min(j + 1, height - 1), 0));\n boolean tr = data.get(Math.max(Math.min(i + 1, width - 1), 0)).get(Math.max(Math.min(j + 1, height - 1), 0));\n \n boolean cl = data.get(Math.max(Math.min(i - 1, width - 1), 0)).get(Math.max(Math.min(j, height - 1), 0));\n boolean cc = data.get(Math.max(Math.min(i, width - 1), 0)).get(Math.max(Math.min(j, height - 1), 0));\n boolean ct = data.get(Math.max(Math.min(i + 1, width - 1), 0)).get(Math.max(Math.min(j, height - 1), 0));\n \n boolean bl = data.get(Math.max(Math.min(i - 1, width - 1), 0)).get(Math.max(Math.min(j - 1, height - 1), 0));\n boolean bc = data.get(Math.max(Math.min(i, width - 1), 0)).get(Math.max(Math.min(j - 1, height - 1), 0));\n boolean br = data.get(Math.max(Math.min(i + 1, width - 1), 0)).get(Math.max(Math.min(j - 1, height - 1), 0));\n \n boolean res;\n if (contourWidth > 0.5) {\n res = (cc && (!tl || !tc || !tr || !cl || !ct || !bl || !bc || !br)) || (!cc && (tl || tc || tr || cl || ct || bl || bc || br));\n }\n else {\n if (contourWidth > 0.25) {\n res = (cc && (!tc || !cl || !ct || !bc)) || (!cc && (tc || cl || ct || bc));\n }\n else {\n res = cc && (!tc || !cl || !ct || !bc);\n }\n }\n filteredData.get(i).add(res);\n }\n }\n \n //Draw contour\n color = CONTOUR_COLOR;\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n if (filteredData.get(j).get(i)) {\n rasterData[i * width + j] = color.getRGB();\n }\n }\n }\n }\n }\n raster.setDataElements(0, 0, width, height, rasterData);\n return texture;\n }", "public void loadGLTexture(GL10 gl, Location location)\n\t{\n\t\tgl.glGenTextures(2, textures, 0);\n\n\t\t// loading texture\n\t\tBitmap bitmap;\n\t\tfloat width;\n\t\tfloat height;\n\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble longitude = location.getLongitude();\n\t\t\tif (longitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" E\" + df.format(Math.abs(longitude)) );\n\t\t\telse if (longitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" W\" + df.format(Math.abs(longitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_long[0] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[3] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_long[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle();\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[1]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble latitude = location.getLatitude();\n\t\t\tif (latitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" N\" + df.format(Math.abs(latitude)) );\n\t\t\telse if (latitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" S\" + df.format(Math.abs(latitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_lat[6] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[9] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_lat[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle(); \n\t}", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityBat)p_110775_1_);\n }", "public TextureComponent2D getTexture(int side)\n {\n return texture[side];\n }", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture0((EntityEnderPig)p_110775_1_);\n }", "public E3DVector2F getTextureCoordA(){\r\n return vertices[0].getTextureCoord();\r\n }", "public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }", "@Override\n\tprotected ResourceLocation getEntityTexture(Entity entity) {\n\t\treturn texture;\n\t}", "public ResourceLocation getEntityTexture(T entity) {\n return MINECART_TEXTURES;\n }", "@Nullable\n Identifier getTexture(Entity entity);", "private void drawsegment_gouraud_texture32\n (\n float leftadd,\n float rghtadd,\n int ytop,\n int ybottom\n ) {\n \n //Accurate texture mode added - comments stripped from dupe code, see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode){\n if(precomputeAccurateTexturing()){ //see if the precomputation goes well, if so finish the setup\n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n accurateMode = false; //if the matrix inversion screwed up, revert to normal rendering (something is degenerate)\n }\n }\n \n ytop*=SCREEN_WIDTH;\n ybottom*=SCREEN_WIDTH;\n //int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n float irf = iradd;\n float igf = igadd;\n float ibf = ibadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n \n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n int ir = (int) (irf * xdiff + rleft);\n int ig = (int) (igf * xdiff + gleft);\n int ib = (int) (ibf * xdiff + bleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode&&goingIn){\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU; iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else{\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n \n for ( ; xstart < xend; xstart++ ) {\n if(accurateMode){\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else{\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n \n try {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n //m_zbuffer[xstart] = iz;\n \n int red;\n int grn;\n int blu;\n int al;\n \n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = (iu & 0xFFFF) >> 9;\n int ivi = (iv & 0xFFFF) >> 9;\n \n // get texture pixels\n int pix0 = m_texture[ofs];\n int pix1 = m_texture[ofs + 1];\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int pix2 = m_texture[ofs];\n int pix3 = m_texture[ofs + 1];\n \n // red\n int red0 = (pix0 & 0xFF0000);\n int red2 = (pix2 & 0xFF0000);\n int up = red0 + ((((pix1 & 0xFF0000) - red0) * iui) >> 7);\n int dn = red2 + ((((pix3 & 0xFF0000) - red2) * iui) >> 7);\n red = (up + (((dn-up) * ivi) >> 7)) >> 16;\n \n // grn\n red0 = (pix0 & 0xFF00);\n red2 = (pix2 & 0xFF00);\n up = red0 + ((((pix1 & 0xFF00) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF00) - red2) * iui) >> 7);\n grn = (up + (((dn-up) * ivi) >> 7)) >> 8;\n \n // blu\n red0 = (pix0 & 0xFF);\n red2 = (pix2 & 0xFF);\n up = red0 + ((((pix1 & 0xFF) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF) - red2) * iui) >> 7);\n blu = up + (((dn-up) * ivi) >> 7);\n \n // alpha\n pix0>>>=24;\n pix2>>>=24;\n up = pix0 + ((((pix1 >>> 24) - pix0) * iui) >> 7);\n dn = pix2 + ((((pix3 >>> 24) - pix2) * iui) >> 7);\n al = up + (((dn-up) * ivi) >> 7);\n } else {\n // get texture pixel color\n blu = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)];\n al = (blu >>> 24);\n red = (blu & 0xFF0000) >> 16;\n grn = (blu & 0xFF00) >> 8;\n blu = blu & 0xFF;\n }\n \n // multiply with gouraud color\n red = (red * ir) >>> 8; // 0x00FF????\n grn = (grn * ig) >>> 16; // 0x0000FF??\n blu = (blu * ib) >>> 24; // 0x000000FF\n \n // get buffer pixels\n int bb = m_pixels[xstart];\n int br = (bb & 0xFF0000); // 0x00FF0000\n int bg = (bb & 0xFF00); // 0x0000FF00\n bb = (bb & 0xFF); // 0x000000FF\n \n //\n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al) >> 8)) & 0xFF0000) |\n ((bg + (((grn - bg) * al) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al) >> 8)) & 0xFF);\n }\n } catch (Exception e) { }\n \n //\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n ir+=iradd;\n ig+=igadd;\n ib+=ibadd;\n iz+=izadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n rleft+=rleftadd;\n gleft+=gleftadd;\n bleft+=bleftadd;\n zleft+=zleftadd;\n }\n }", "@Override\n\t\tprotected ResourceLocation getEntityTexture(EntityLivingBase entity) {\n\t\t\treturn texture;\n\t\t}", "int getNumberOfTextureCoordinates();", "public void backBufferIntoTexture()\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tif (InternalTexture[0] == 0) {\r\n\t\t\tgl.glGenTextures(1,InternalTexture);\r\n\t\t\tSystem.out.print(\"Initializing internal texture \"+InternalTexture[0]+\":[\"+getWidth()+\",\"+getHeight()+\"]\\n\");\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, this.getWidth(), this.getHeight(), 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, this.getWidth(), this.getHeight());\r\n\t\t}\r\n\t\tglut.glutReportErrors();\r\n\t}", "TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);", "private void DrawPlait(GL gl, float x, float y, float xP, float yP,\n\t\t\tdouble costheta, double sintheta, TextureCoords tc) {\n\n\t\tgl.glPushMatrix();\n\t\tgl.glMatrixMode(gl.GL_MODELVIEW);\n\t\t//gl.glScalef(0.5f, 0.5f, 1f);\n\t\tgl.glTranslatef(x, y, 0.0f);\n\n\t\tgl.glEnable(gl.GL_TEXTURE_2D);\n\t\tgl.glAlphaFunc(gl.GL_GREATER, 0.3f);\n\t\tgl.glEnable(gl.GL_ALPHA_TEST);\n\t\tgl.glEnable(gl.GL_MODULATE);\n\t\tgl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA);\n\t\tgl.glTexEnvf(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_ENV_MODE, GL.GL_REPLACE);\n\t\tgl.glDepthMask(false);\n\n\t\tm_txt.enable();\n\t\tm_txt.bind();\n\t\tgl.glBegin(gl.GL_QUADS);\n\t\tgl.glColor3f(m_r, m_g, m_b);\n\t\tgl.glRotatef((float) 180, 1.0f, 0.0f, 0.0f);\n\n\t\tgl.glTexCoord2d(tc.left(), tc.top());\n\t\tgl.glVertex2f((float) (costheta * (-xP) - sintheta * (yP)),\n\t\t\t\t(float) (sintheta * (-xP) + costheta * (yP)));\n\t\tgl.glTexCoord2d(tc.right(), tc.top());\n\t\tgl.glVertex2f((float) (costheta * (xP) - sintheta * (yP)),\n\t\t\t\t(float) (sintheta * (xP) + costheta * (yP)));\n\t\tgl.glTexCoord2d(tc.right(), tc.bottom());\n\t\tgl.glVertex2f((float) (costheta * (xP) - sintheta * (-yP)),\n\t\t\t\t(float) (sintheta * (xP) + costheta * (-yP)));\n\t\tgl.glTexCoord2d(tc.left(), tc.bottom());\n\t\tgl.glVertex2f((float) (costheta * (-xP) - sintheta * (-yP)),\n\t\t\t\t(float) (sintheta * (-xP) + costheta * (-yP)));\n\t\tgl.glEnd();\n\n\t\tm_txt.disable();\n\t\tgl.glTexEnvi(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_MODULATE);\n\t\tgl.glDisable(GL.GL_ALPHA);\n\t\tgl.glDisable(gl.GL_BLEND);\n\t\tgl.glDisable(gl.GL_TEXTURE_2D);\n\t\tgl.glDisable(gl.GL_DEPTH_TEST);\n\t\tgl.glDepthMask(true);\n\n\t\tgl.glPopMatrix();\n\t}", "public void onUpdateTextureCoordinates() {\n getVertexBufferObject().onUpdateTextureCoordinates(this);\n }", "private void drawsegment_texture8_alpha(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) { \n // Accurate texture mode added - comments stripped from dupe code, \n // see drawsegment_texture24() for details\n \n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode) {\n // see if the precomputation goes well, if so finish the setup\n if (precomputeAccurateTexturing()) { \n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else {\n // if the matrix inversion screwed up, \n // revert to normal rendering (something is degenerate)\n accurateMode = false; \n }\n }\n ytop*=SCREEN_WIDTH;\n ybottom*=SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n float iaf = iaadd;\n \n int red = m_fill & 0xFF0000;\n int grn = m_fill & 0xFF00;\n int blu = m_fill & 0xFF;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n \n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n int ia = (int) (iaf * xdiff + aleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode&&goingIn){\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU; iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else{\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n \n for ( ; xstart < xend; xstart++ ) {\n if(accurateMode){\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else{\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n // try-catch just in case pixel offset it out of range\n try\n {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n //m_zbuffer[xstart] = iz;\n \n int al0;\n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = iu & 0xFFFF;\n al0 = m_texture[ofs] & 0xFF;\n int al1 = m_texture[ofs + 1] & 0xFF;\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int al2 = m_texture[ofs] & 0xFF;\n int al3 = m_texture[ofs + 1] & 0xFF;\n al0 = al0 + (((al1-al0) * iui) >> 16);\n al2 = al2 + (((al3-al2) * iui) >> 16);\n al0 = al0 + (((al2-al0) * (iv & 0xFFFF)) >> 16);\n } else {\n al0 = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)] & 0xFF;\n }\n al0 = (al0 * (ia >> 16)) >> 8;\n \n int br = m_pixels[xstart];\n int bg = (br & 0xFF00);\n int bb = (br & 0xFF);\n br = (br & 0xFF0000);\n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al0) >> 8)) & 0xFF0000) | \n ((bg + (((grn - bg) * al0) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al0) >> 8)) & 0xFF);\n // m_stencil[xstart] = p;\n }\n }\n catch (Exception e) {\n }\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n iz+=izadd;\n ia+=iaadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n zleft+=zleftadd;\n aleft+=aleftadd;\n }\n }", "private void drawsegment_gouraud_texture32_alpha\n (\n float leftadd,\n float rghtadd,\n int ytop,\n int ybottom\n ) {\n //Accurate texture mode added - comments stripped from dupe code, see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode){\n if(precomputeAccurateTexturing()){ //see if the precomputation goes well, if so finish the setup\n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n accurateMode = false; //if the matrix inversion screwed up, revert to normal rendering (something is degenerate)\n }\n }\n \n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n float irf = iradd;\n float igf = igadd;\n float ibf = ibadd;\n float iaf = iaadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n \n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n int ir = (int) (irf * xdiff + rleft);\n int ig = (int) (igf * xdiff + gleft);\n int ib = (int) (ibf * xdiff + bleft);\n int ia = (int) (iaf * xdiff + aleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode&&goingIn){\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU; iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else{\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n for ( ;xstart < xend; xstart++ ) {\n if(accurateMode){\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else{\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n \n // get texture pixel color\n try {\n //if (iz < m_zbuffer[xstart]) {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) { // [fry 041114]\n //m_zbuffer[xstart] = iz;\n \n // blend\n int al = ia >> 16;\n \n int red;\n int grn;\n int blu;\n \n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = (iu & 0xFFFF) >> 9;\n int ivi = (iv & 0xFFFF) >> 9;\n \n // get texture pixels\n int pix0 = m_texture[ofs];\n int pix1 = m_texture[ofs + 1];\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int pix2 = m_texture[ofs];\n int pix3 = m_texture[ofs + 1];\n \n // red\n int red0 = (pix0 & 0xFF0000);\n int red2 = (pix2 & 0xFF0000);\n int up = red0 + ((((pix1 & 0xFF0000) - red0) * iui) >> 7);\n int dn = red2 + ((((pix3 & 0xFF0000) - red2) * iui) >> 7);\n red = (up + (((dn-up) * ivi) >> 7)) >> 16;\n \n // grn\n red0 = (pix0 & 0xFF00);\n red2 = (pix2 & 0xFF00);\n up = red0 + ((((pix1 & 0xFF00) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF00) - red2) * iui) >> 7);\n grn = (up + (((dn-up) * ivi) >> 7)) >> 8;\n \n // blu\n red0 = (pix0 & 0xFF);\n red2 = (pix2 & 0xFF);\n up = red0 + ((((pix1 & 0xFF) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF) - red2) * iui) >> 7);\n blu = up + (((dn-up) * ivi) >> 7);\n \n // alpha\n pix0>>>=24;\n pix2>>>=24;\n up = pix0 + ((((pix1 >>> 24) - pix0) * iui) >> 7);\n dn = pix2 + ((((pix3 >>> 24) - pix2) * iui) >> 7);\n al = al * (up + (((dn-up) * ivi) >> 7)) >> 8;\n } else {\n blu = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)];\n al = al * (blu >>> 24) >> 8;\n red = (blu & 0xFF0000) >> 16; // 0 - 255\n grn = (blu & 0xFF00) >> 8; // 0 - 255\n blu = (blu & 0xFF); // 0 - 255\n }\n \n // multiply with gouraud color\n red = (red * ir) >>> 8; // 0x00FF????\n grn = (grn * ig) >>> 16; // 0x0000FF??\n blu = (blu * ib) >>> 24; // 0x000000FF\n \n // get buffer pixels\n int bb = m_pixels[xstart];\n int br = (bb & 0xFF0000); // 0x00FF0000\n int bg = (bb & 0xFF00); // 0x0000FF00\n bb = (bb & 0xFF); // 0x000000FF\n \n //\n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al) >> 8)) & 0xFF0000) |\n ((bg + (((grn - bg) * al) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al) >> 8)) & 0xFF);\n // m_stencil[xstart] = p;\n }\n } catch (Exception e) { }\n \n //\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n ir+=iradd;\n ig+=igadd;\n ib+=ibadd;\n ia+=iaadd;\n iz+=izadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n rleft+=rleftadd;\n gleft+=gleftadd;\n bleft+=bleftadd;\n aleft+=aleftadd;\n zleft+=zleftadd;\n }\n }", "private void drawsegment_gouraud_texture8(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) {\n //Accurate texture mode added - comments stripped from dupe code, see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode){\n if(precomputeAccurateTexturing()){ //see if the precomputation goes well, if so finish the setup\n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n accurateMode = false; //if the matrix inversion screwed up, revert to normal rendering (something is degenerate)\n }\n }\n \n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n float irf = iradd;\n float igf = igadd;\n float ibf = ibadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n \n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n int ir = (int) (irf * xdiff + rleft);\n int ig = (int) (igf * xdiff + gleft);\n int ib = (int) (ibf * xdiff + bleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode&&goingIn){\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU; iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else{\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n \n for ( ; xstart < xend; xstart++ ) {\n if(accurateMode){\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else{\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n \n try\n {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n //m_zbuffer[xstart] = iz;\n \n int al0;\n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = iu & 0xFFFF;\n al0 = m_texture[ofs] & 0xFF;\n int al1 = m_texture[ofs + 1] & 0xFF;\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int al2 = m_texture[ofs] & 0xFF;\n int al3 = m_texture[ofs + 1] & 0xFF;\n al0 = al0 + (((al1-al0) * iui) >> 16);\n al2 = al2 + (((al3-al2) * iui) >> 16);\n al0 = al0 + (((al2-al0) * (iv & 0xFFFF)) >> 16);\n } else {\n al0 = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)] & 0xFF;\n }\n \n // get RGB colors\n int red = ir & 0xFF0000;\n int grn = (ig >> 8) & 0xFF00;\n int blu = (ib >> 16);\n \n // get buffer pixels\n int bb = m_pixels[xstart];\n int br = (bb & 0xFF0000); // 0x00FF0000\n int bg = (bb & 0xFF00); // 0x0000FF00\n bb = (bb & 0xFF); // 0x000000FF\n m_pixels[xstart] = 0xFF000000 |\n ((br + (((red - br) * al0) >> 8)) & 0xFF0000) |\n ((bg + (((grn - bg) * al0) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al0) >> 8)) & 0xFF);\n \n // write stencil\n // m_stencil[xstart] = p;\n }\n }\n catch (Exception e) {\n \n }\n \n //\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n ir+=iradd;\n ig+=igadd;\n ib+=ibadd;\n iz+=izadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n \n uleft+=uleftadd;\n vleft+=vleftadd;\n rleft+=rleftadd;\n gleft+=gleftadd;\n bleft+=bleftadd;\n zleft+=zleftadd;\n }\n }", "private void drawsegment_gouraud_texture8_alpha(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) {\n // Accurate texture mode added - comments stripped from dupe code, \n // see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode) {\n // see if the precomputation goes well, if so finish the setup\n if (precomputeAccurateTexturing()) { \n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n // if the matrix inversion screwed up, \n // revert to normal rendering (something is degenerate)\n accurateMode = false; \n }\n }\n \n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n float irf = iradd;\n float igf = igadd;\n float ibf = ibadd;\n float iaf = iaadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n \n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n int ir = (int) (irf * xdiff + rleft);\n int ig = (int) (igf * xdiff + gleft);\n int ib = (int) (ibf * xdiff + bleft);\n int ia = (int) (iaf * xdiff + aleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode&&goingIn){\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU; iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else{\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n \n for ( ; xstart < xend; xstart++ ) {\n if(accurateMode){\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else{\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n \n try {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n //m_zbuffer[xstart] = iz;\n \n int al0;\n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = iu & 0xFFFF;\n al0 = m_texture[ofs] & 0xFF;\n int al1 = m_texture[ofs + 1] & 0xFF;\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int al2 = m_texture[ofs] & 0xFF;\n int al3 = m_texture[ofs + 1] & 0xFF;\n al0 = al0 + (((al1-al0) * iui) >> 16);\n al2 = al2 + (((al3-al2) * iui) >> 16);\n al0 = al0 + (((al2-al0) * (iv & 0xFFFF)) >> 16);\n } else {\n al0 = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)] & 0xFF;\n }\n al0 = (al0 * (ia >> 16)) >> 8;\n \n // get RGB colors\n int red = ir & 0xFF0000;\n int grn = (ig >> 8) & 0xFF00;\n int blu = (ib >> 16);\n \n // get buffer pixels\n int bb = m_pixels[xstart];\n int br = (bb & 0xFF0000); // 0x00FF0000\n int bg = (bb & 0xFF00); // 0x0000FF00\n bb = (bb & 0xFF); // 0x000000FF\n \n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al0) >> 8)) & 0xFF0000) |\n ((bg + (((grn - bg) * al0) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al0) >> 8)) & 0xFF);\n \n // write stencil\n // m_stencil[xstart] = p;\n }\n } catch (Exception e) { }\n \n //\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n ir+=iradd;\n ig+=igadd;\n ib+=ibadd;\n ia+=iaadd;\n iz+=izadd;\n }\n ypixel++;//accurate mode\n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n rleft+=rleftadd;\n gleft+=gleftadd;\n bleft+=bleftadd;\n aleft+=aleftadd;\n zleft+=zleftadd;\n }\n }", "private void renderTex() {\n final float\n w = xdim(),\n h = ydim(),\n x = xpos(),\n y = ypos() ;\n GL11.glBegin(GL11.GL_QUADS) ;\n GL11.glTexCoord2f(0, 0) ;\n GL11.glVertex2f(x, y + (h / 2)) ;\n GL11.glTexCoord2f(0, 1) ;\n GL11.glVertex2f(x + (w / 2), y + h) ;\n GL11.glTexCoord2f(1, 1) ;\n GL11.glVertex2f(x + w, y + (h / 2)) ;\n GL11.glTexCoord2f(1, 0) ;\n GL11.glVertex2f(x + (w / 2), y) ;\n GL11.glEnd() ;\n }", "private void drawsegment_gouraud_texture24(float leftadd,\n float rghtadd,\n int ytop,\n int ybottom) {\n //Accurate texture mode added - comments stripped from dupe code, see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode){\n if(precomputeAccurateTexturing()){ //see if the precomputation goes well, if so finish the setup\n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n accurateMode = false; //if the matrix inversion screwed up, revert to normal rendering (something is degenerate)\n }\n }\n \n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n float irf = iradd;\n float igf = igadd;\n float ibf = ibadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n \n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n int ir = (int) (irf * xdiff + rleft);\n int ig = (int) (igf * xdiff + gleft);\n int ib = (int) (ibf * xdiff + bleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode&&goingIn){\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU; iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else{\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n for ( ; xstart < xend; xstart++ ) {\n if(accurateMode){\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else{\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n \n try {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) {\n m_zbuffer[xstart] = iz;\n \n int red;\n int grn;\n int blu;\n \n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = (iu & 0xFFFF) >> 9;\n int ivi = (iv & 0xFFFF) >> 9;\n \n // get texture pixels\n int pix0 = m_texture[ofs];\n int pix1 = m_texture[ofs + 1];\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int pix2 = m_texture[ofs];\n int pix3 = m_texture[ofs + 1];\n \n // red\n int red0 = (pix0 & 0xFF0000);\n int red2 = (pix2 & 0xFF0000);\n int up = red0 + ((((pix1 & 0xFF0000) - red0) * iui) >> 7);\n int dn = red2 + ((((pix3 & 0xFF0000) - red2) * iui) >> 7);\n red = up + (((dn-up) * ivi) >> 7);\n \n // grn\n red0 = (pix0 & 0xFF00);\n red2 = (pix2 & 0xFF00);\n up = red0 + ((((pix1 & 0xFF00) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF00) - red2) * iui) >> 7);\n grn = up + (((dn-up) * ivi) >> 7);\n \n // blu\n red0 = (pix0 & 0xFF);\n red2 = (pix2 & 0xFF);\n up = red0 + ((((pix1 & 0xFF) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF) - red2) * iui) >> 7);\n blu = up + (((dn-up) * ivi) >> 7);\n } else {\n // get texture pixel color\n blu = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)];\n red = (blu & 0xFF0000);\n grn = (blu & 0xFF00);\n blu = blu & 0xFF;\n }\n \n //\n int r = (ir >> 16);\n int g = (ig >> 16);\n // oops, namespace collision with accurate \n // texture vector b...sorry [ewjordan]\n int bb2 = (ib >> 16); \n \n m_pixels[xstart] = 0xFF000000 | \n ((((red * r) & 0xFF000000) | ((grn * g) & 0xFF0000) | (blu * bb2)) >> 8);\n // m_stencil[xstart] = p;\n }\n } catch (Exception e) { }\n \n //\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n ir+=iradd;\n ig+=igadd;\n ib+=ibadd;\n iz+=izadd;\n }\n ypixel++;//accurate mode\n \n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n rleft+=rleftadd;\n gleft+=gleftadd;\n bleft+=bleftadd;\n zleft+=zleftadd;\n }\n }", "protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }", "private void renderImage(Point point, BufferedImage img, int size, double rotation) {\n renderImage(point.getX(), point.getY(), img, size, rotation);\n }", "protected Image drawAsset(String asset, int x, int y) {\n // Generate texture\n Texture texture = null;\n\n // Make sure the asset is loaded\n if (!assets.contains(asset)) {\n logger.error(\"Lazy loading asset: \" + asset);\n assets.load(asset, Texture.class, GamePart.MENU);\n }\n if (assets.isLoaded(asset)) {\n texture = assets.get(asset, Texture.class);\n } else {\n assets.finishLoadingAsset(asset);\n texture = assets.get(asset, Texture.class);\n }\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n\n // Generate image\n Image image = new Image(texture);\n image.setPosition(x, y);\n\n // Add to screen\n stage.addActor(image);\n\n return image;\n }", "public static float[] createQuadTextureCoords() {\n float[] tex = new float[]{0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f};\n return tex;\n }", "void glActiveTexture(int texture);", "void glActiveTexture(int texture);", "private void drawsegment_gouraud_texture24_alpha\n (\n float leftadd,\n float rghtadd,\n int ytop,\n int ybottom\n ) {\n \n //Accurate texture mode added - comments stripped from dupe code, see drawsegment_texture24() for details\n int ypixel = ytop;\n int lastRowStart = m_texture.length - TEX_WIDTH - 2;\n boolean accurateMode = parent.hints[ENABLE_ACCURATE_TEXTURES];\n float screenx = 0; float screeny = 0; float screenz = 0;\n float a = 0; float b = 0; float c = 0;\n int linearInterpPower = TEX_INTERP_POWER;\n int linearInterpLength = 1 << linearInterpPower;\n if (accurateMode){\n if(precomputeAccurateTexturing()){ //see if the precomputation goes well, if so finish the setup\n newax *= linearInterpLength;\n newbx *= linearInterpLength;\n newcx *= linearInterpLength;\n screenz = nearPlaneDepth;\n firstSegment = false;\n } else{\n accurateMode = false; //if the matrix inversion screwed up, revert to normal rendering (something is degenerate)\n }\n }\n \n ytop *= SCREEN_WIDTH;\n ybottom *= SCREEN_WIDTH;\n // int p = m_index;\n \n float iuf = iuadd;\n float ivf = ivadd;\n float irf = iradd;\n float igf = igadd;\n float ibf = ibadd;\n float iaf = iaadd;\n \n while (ytop < ybottom) {\n int xstart = (int) (xleft + PIXEL_CENTER);\n if (xstart < 0)\n xstart = 0;\n \n int xpixel = xstart;//accurate mode\n \n int xend = (int) (xrght + PIXEL_CENTER);\n if (xend > SCREEN_WIDTH)\n xend = SCREEN_WIDTH;\n float xdiff = (xstart + PIXEL_CENTER) - xleft;\n \n int iu = (int) (iuf * xdiff + uleft);\n int iv = (int) (ivf * xdiff + vleft);\n int ir = (int) (irf * xdiff + rleft);\n int ig = (int) (igf * xdiff + gleft);\n int ib = (int) (ibf * xdiff + bleft);\n int ia = (int) (iaf * xdiff + aleft);\n float iz = izadd * xdiff + zleft;\n \n xstart+=ytop;\n xend+=ytop;\n \n if (accurateMode){\n screenx = xmult*(xpixel+.5f-(SCREEN_WIDTH/2.0f));\n screeny = ymult*(ypixel+.5f-(SCREEN_HEIGHT/2.0f));\n a = screenx*ax+screeny*ay+screenz*az;\n b = screenx*bx+screeny*by+screenz*bz;\n c = screenx*cx+screeny*cy+screenz*cz;\n }\n boolean goingIn = ( (newcx > 0) == (c > 0) )?false:true;\n int interpCounter = 0;\n int deltaU = 0; int deltaV = 0;\n float fu = 0; float fv = 0;\n float oldfu = 0; float oldfv = 0;\n \n if (accurateMode&&goingIn){\n int rightOffset = (xend-xstart-1)%linearInterpLength;\n int leftOffset = linearInterpLength-rightOffset;\n float rightOffset2 = rightOffset / ((float)linearInterpLength);\n float leftOffset2 = leftOffset / ((float)linearInterpLength);\n interpCounter = leftOffset;\n float ao = a-leftOffset2*newax;\n float bo = b-leftOffset2*newbx;\n float co = c-leftOffset2*newcx;\n float oneoverc = 65536.0f/co;\n oldfu = (ao*oneoverc); oldfv = (bo*oneoverc);\n a += rightOffset2*newax;\n b += rightOffset2*newbx;\n c += rightOffset2*newcx;\n oneoverc = 65536.0f/c;\n fu = a*oneoverc; fv = b*oneoverc;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n iu = ( (int)oldfu )+(leftOffset-1)*deltaU; iv = ( (int)oldfv )+(leftOffset-1)*deltaV; //another \"off-by-one\" hack\n } else{\n float preoneoverc = 65536.0f/c;\n fu = (a*preoneoverc);\n fv = (b*preoneoverc);\n }\n \n for ( ;xstart < xend; xstart++ ) {\n if(accurateMode){\n if (interpCounter == linearInterpLength) interpCounter = 0;\n if (interpCounter == 0){\n a += newax;\n b += newbx;\n c += newcx;\n float oneoverc = 65536.0f/c;\n oldfu = fu; oldfv = fv;\n fu = (a*oneoverc); fv = (b*oneoverc);\n iu = (int)oldfu; iv = (int)oldfv;\n deltaU = ((int)(fu - oldfu)) >> linearInterpPower;\n deltaV = ((int)(fv - oldfv)) >> linearInterpPower;\n } else{\n iu += deltaU;\n iv += deltaV;\n }\n interpCounter++;\n }\n \n // get texture pixel color\n try\n {\n //if (iz < m_zbuffer[xstart]) {\n if (noDepthTest || (iz <= m_zbuffer[xstart])) { // [fry 041114]\n //m_zbuffer[xstart] = iz;\n \n // blend\n int al = ia >> 16;\n \n int red;\n int grn;\n int blu;\n \n if (m_bilinear) {\n int ofs = (iv >> 16) * TEX_WIDTH + (iu >> 16);\n int iui = (iu & 0xFFFF) >> 9;\n int ivi = (iv & 0xFFFF) >> 9;\n \n // get texture pixels\n int pix0 = m_texture[ofs];\n int pix1 = m_texture[ofs + 1];\n if (ofs < lastRowStart) ofs+=TEX_WIDTH;\n int pix2 = m_texture[ofs];\n int pix3 = m_texture[ofs + 1];\n \n // red\n int red0 = (pix0 & 0xFF0000);\n int red2 = (pix2 & 0xFF0000);\n int up = red0 + ((((pix1 & 0xFF0000) - red0) * iui) >> 7);\n int dn = red2 + ((((pix3 & 0xFF0000) - red2) * iui) >> 7);\n red = (up + (((dn-up) * ivi) >> 7)) >> 16;\n \n // grn\n red0 = (pix0 & 0xFF00);\n red2 = (pix2 & 0xFF00);\n up = red0 + ((((pix1 & 0xFF00) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF00) - red2) * iui) >> 7);\n grn = (up + (((dn-up) * ivi) >> 7)) >> 8;\n \n // blu\n red0 = (pix0 & 0xFF);\n red2 = (pix2 & 0xFF);\n up = red0 + ((((pix1 & 0xFF) - red0) * iui) >> 7);\n dn = red2 + ((((pix3 & 0xFF) - red2) * iui) >> 7);\n blu = up + (((dn-up) * ivi) >> 7);\n } else {\n blu = m_texture[(iv >> 16) * TEX_WIDTH + (iu >> 16)];\n red = (blu & 0xFF0000) >> 16; // 0 - 255\n grn = (blu & 0xFF00) >> 8; // 0 - 255\n blu = (blu & 0xFF); // 0 - 255\n }\n \n // multiply with gouraud color\n red = (red * ir) >>> 8; // 0x00FF????\n grn = (grn * ig) >>> 16; // 0x0000FF??\n blu = (blu * ib) >>> 24; // 0x000000FF\n \n // get buffer pixels\n int bb = m_pixels[xstart];\n int br = (bb & 0xFF0000); // 0x00FF0000\n int bg = (bb & 0xFF00); // 0x0000FF00\n bb = (bb & 0xFF); // 0x000000FF\n \n //\n m_pixels[xstart] = 0xFF000000 | \n ((br + (((red - br) * al) >> 8)) & 0xFF0000) |\n ((bg + (((grn - bg) * al) >> 8)) & 0xFF00) | \n ((bb + (((blu - bb) * al) >> 8)) & 0xFF);\n // m_stencil[xstart] = p;\n }\n }\n catch (Exception e) {\n }\n \n //\n xpixel++;//accurate mode\n if (!accurateMode){\n iu+=iuadd;\n iv+=ivadd;\n }\n ir+=iradd;\n ig+=igadd;\n ib+=ibadd;\n ia+=iaadd;\n iz+=izadd;\n }\n \n ypixel++;//accurate mode\n \n ytop+=SCREEN_WIDTH;\n xleft+=leftadd;\n xrght+=rghtadd;\n uleft+=uleftadd;\n vleft+=vleftadd;\n rleft+=rleftadd;\n gleft+=gleftadd;\n bleft+=bleftadd;\n aleft+=aleftadd;\n zleft+=zleftadd;\n }\n }", "public void setTexture(PImage image) {\n //m_tImage = image;\n m_texture = image.pixels;\n TEX_WIDTH = image.width;\n TEX_HEIGHT = image.height;\n F_TEX_WIDTH = TEX_WIDTH-1;\n F_TEX_HEIGHT = TEX_HEIGHT-1;\n INTERPOLATE_UV = true;\n \n if (image.format == ARGB) {\n m_drawFlags |= R_TEXTURE32;\n } else if (image.format == RGB) {\n m_drawFlags |= R_TEXTURE24;\n } else if (image.format == ALPHA) {\n m_drawFlags |= R_TEXTURE8;\n }\n }", "private void renderGeom(GL2 gl, int side)\n {\n if(texture[side] == null)\n return;\n\n Integer t_id = textureIdMap[side].get(gl);\n if(t_id != null)\n {\n gl.glBindTexture(GL.GL_TEXTURE_2D, t_id.intValue());\n }\n else\n {\n // NOTE:\n // Assume, for now, that we need to regenerate the entire texture\n // because the imageComponent has changed. Once sub-image update is\n // implemented, we may want to change this logic\n int[] tex_id_tmp = new int[1];\n gl.glGenTextures(1, tex_id_tmp, 0);\n textureIdMap[side].put(gl, new Integer(tex_id_tmp[0]));\n\n gl.glBindTexture(GL.GL_TEXTURE_2D, tex_id_tmp[0]);\n\n gl.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, 1);\n gl.glTexParameteri(GL.GL_TEXTURE_2D,\n GL.GL_TEXTURE_WRAP_S,\n GL.GL_CLAMP_TO_EDGE);\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D,\n GL.GL_TEXTURE_WRAP_T,\n GL.GL_CLAMP_TO_EDGE);\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D,\n GL.GL_TEXTURE_MAG_FILTER,\n GL.GL_LINEAR);\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D,\n GL.GL_TEXTURE_MIN_FILTER,\n GL.GL_LINEAR);\n\n ByteBuffer pixels = texture[side].getData(0);\n\n int comp_format = texture[side].getFormat(0);\n int width = texture[side].getWidth();\n int height = texture[side].getHeight();\n int int_format = GL.GL_RGB;\n int ext_format = GL.GL_RGB;\n\n switch(comp_format)\n {\n case TextureComponent.FORMAT_RGB:\n int_format = GL.GL_RGB;\n ext_format = GL.GL_RGB;\n break;\n\n case TextureComponent.FORMAT_RGBA:\n int_format = GL.GL_RGBA;\n ext_format = GL.GL_RGBA;\n break;\n\n case TextureComponent.FORMAT_BGR:\n int_format = GL2.GL_BGR;\n ext_format = GL2.GL_BGR;\n break;\n\n case TextureComponent.FORMAT_BGRA:\n int_format = GL.GL_BGRA;\n ext_format = GL.GL_BGRA;\n break;\n\n case TextureComponent.FORMAT_INTENSITY_ALPHA:\n int_format = GL.GL_LUMINANCE_ALPHA;\n ext_format = GL.GL_LUMINANCE_ALPHA;\n break;\n\n case TextureComponent.FORMAT_SINGLE_COMPONENT:\n int_format = GL.GL_LUMINANCE;\n ext_format = GL.GL_LUMINANCE;\n break;\n\n default:\n }\n\n gl.glTexImage2D(GL.GL_TEXTURE_2D,\n 0,\n int_format,\n width,\n height,\n 0,\n ext_format,\n GL.GL_UNSIGNED_BYTE,\n pixels);\n\n }\n\n gl.glEnableClientState(GL2.GL_VERTEX_ARRAY);\n gl.glEnableClientState(GL2.GL_NORMAL_ARRAY);\n gl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n gl.glVertexPointer(3, GL.GL_FLOAT, 0, vertexBuffer[side]);\n gl.glNormalPointer(GL.GL_FLOAT, 0, normalBuffer[side]);\n gl.glTexCoordPointer(2, GL.GL_FLOAT, 0, textureBuffer);\n\n gl.glDrawArrays(GL2.GL_QUADS, 0, 4);\n\n gl.glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n gl.glDisableClientState(GL2.GL_NORMAL_ARRAY);\n gl.glDisableClientState(GL2.GL_VERTEX_ARRAY);\n }", "@Override\n public void loadTexture() {\n\n }", "public static float[] createTexCube(float x, float y, Block block) {\r\n float offset = 1/16f;\r\n switch(type.getID()) {\r\n case 0:\r\n switch(block.getID()) {\r\n case 0:\r\n return new float[] {\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 0, y + offset * 1,\r\n x + offset * 0, y + offset * 0,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1\r\n };\r\n case 1:\r\n return new float[] {\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1\r\n };\r\n case 2:\r\n return new float[] {\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12\r\n };\r\n case 3:\r\n return new float[] {\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0\r\n };\r\n case 4:\r\n return new float[] {\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0\r\n };\r\n case 5:\r\n return new float[] {\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1\r\n };\r\n }\r\n case 1:\r\n switch(block.getID()) {\r\n case 0:\r\n return new float[] {\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1\r\n };\r\n case 1:\r\n return new float[] {\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6\r\n };\r\n case 2:\r\n return new float[] {\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14\r\n };\r\n case 3:\r\n return new float[] {\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6\r\n };\r\n case 4:\r\n return new float[] {\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14\r\n };\r\n case 5:\r\n return new float[] {\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1\r\n };\r\n }\r\n }\r\n \r\n return new float[] {\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2\r\n };\r\n }", "public void func_180435_a(TextureAtlasSprite p_180435_1_) {\n/* 215 */ int var2 = getFXLayer();\n/* */ \n/* 217 */ if (var2 == 1) {\n/* */ \n/* 219 */ this.particleIcon = p_180435_1_;\n/* */ }\n/* */ else {\n/* */ \n/* 223 */ throw new RuntimeException(\"Invalid call to Particle.setTex, use coordinate methods\");\n/* */ } \n/* */ }", "@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}", "public int getBlockTextureFromSideAndMetadata(int par1, int par2)\n {\n par2 &= 3;\n return par2 == 1 ? 63 : (par2 == 2 ? 79 : (par2 == 3 ? 30 : super.getBlockTextureFromSideAndMetadata(par1, par2)));\n }", "public void setParticleTextureIndex(int p_70536_1_) {\n/* 232 */ if (getFXLayer() != 0)\n/* */ {\n/* 234 */ throw new RuntimeException(\"Invalid call to Particle.setMiscTex\");\n/* */ }\n/* */ \n/* */ \n/* 238 */ this.particleTextureIndexX = p_70536_1_ % 16;\n/* 239 */ this.particleTextureIndexY = p_70536_1_ / 16;\n/* */ }", "protected ResourceLocation getEntityTexture(EntityZombie p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }", "protected ResourceLocation getEntityTexture(EntitySentientSpecter entity)\n {\n return texture;\n }", "int GL_ACTIVE_TEXTURE();", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }", "public static Texture getTex(int type)\n {\n switch(type)\n {\n case FIREBALL:\n return JTactics.assets.fireball;\n case DEFEND:\n return JTactics.assets.shield;\n case SPIRIT_BURST:\n return JTactics.assets.boulder;\n case INVINCIBILITY:\n return JTactics.assets.starPower;\n }\n return null;\n }", "@Override\n public ResourceLocation getTextureLocation(DroneEntity entity) {\n return entity.isAttacking() ? mobShootingTexture : mobTexture;\n }", "protected ResourceLocation getEntityTexture(EntitySquid entity)\n {\n return SQUID_TEXTURES;\n }", "@Override\r\n\tprotected ResourceLocation getEntityTexture(EntityAngel entity)\r\n {\r\n return ANGEL_TEXTURE;\r\n }", "public SbVec4f\ngetObjectTextureCoords(final SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n return multVecMatrix4(getImageToObject(node), imageTexCoords);\n}", "public static boolean render(int coordX, int coordY, int coordZ, int texture, Texture[] textureMap) {\r\n GL11.glTranslatef(coordX, coordY, coordZ); // Absolute position in game\r\n// GL11.glRotatef(xrot, 1.0f, 0.0f, 0.0f); // Rotate On The X Axis\r\n// GL11.glRotatef(yrot, 0.0f, 1.0f, 0.0f); // Rotate On The Y Axis\r\n// GL11.glRotatef(zrot, 0.0f, 0.0f, 1.0f); // Rotate On The Z Axis\r\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, textureMap[texture].getTextureID()); // Select Our Texture\r\n GL11.glBegin(GL11.GL_QUADS);\r\n // Front Face\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Left Of The Texture and Quad\r\n // Back Face\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Bottom Left Of The Texture and Quad\r\n // Top Face\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n // Bottom Face\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n // Right face\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n // Left Face\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glEnd();\r\n\r\n// xrot += 0.3f; // X Axis Rotation\r\n// yrot += 0.2f; // Y Axis Rotation\r\n// zrot += 0.4f; // Z Axis Rotation\r\n\r\n return true;\r\n }", "private Point getPixel(Point source) {\n float stepWidth = /*canvasWidth*/ canvasHeight / mapWidth;\n float stepHeight = canvasHeight / mapHeight;\n\n float centerX = canvasWidth / 2;\n float centerY = canvasHeight / 2;\n\n return new Point((int) (centerX + source.X * stepWidth), (int) (centerY + source.Y * stepHeight));\n }", "public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }", "String getTextureName();", "@Override\n\tpublic void setTexture(int texID) {\n\n\t}", "public static WritableImage getSphereTexture(double[][][] noise, int width, int height) {\n\t\tWritableImage result = new WritableImage(width, height);\n\t\tPixelWriter writer = result.getPixelWriter();\n\t\t\n\t\tfor (int y = 0; y < height; y ++) {\n\t\t\tfor (int x = 0; x < width; x ++) {\n\t\t\t\tdouble u = (double)x/width;\n\t\t\t\tdouble v = (double)y/height;\n\t\t\t\t\n\t\t\t\tdouble lat = u * 2 * Math.PI;\n\t\t\t\tdouble lng = v * 2 * Math.PI;\n\t\t\t\t\n\t\t\t\tdouble xt = Math.sin(lng)*Math.cos(lat);\n\t\t\t\tdouble yt = Math.sin(lng)*Math.sin(lat);\n\t\t\t\tdouble zt = Math.cos(lng);\n\t\t\t\t\n\t\t\t\txt = MathUtils.map(xt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t\tyt = MathUtils.map(yt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t zt = MathUtils.map(zt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t\t\n\t\t\t\t//System.out.printf(\"%f %f\\n\", lat, lng);\n\t\t\t\t//System.out.printf(\"%d %d => %d %d %d\\n\", x, y, dX, dY, dZ);\n\t\t\t\t\n\t\t\t /* get remainders to weight values */\n\t\t\t double xrem = xt - Math.floor(xt);\n\t\t\t double yrem = yt - Math.floor(yt);\n\t\t\t double zrem = zt - Math.floor(zt);\n\t\t\t \n\t\t\t /* Weights of all adjacent cells */\n\t\t\t \n\t\t\t /* Values of all adjacent cells */\n\t\t\t double brf = noise[(int)Math.ceil(zt)][(int)Math.ceil(yt)][(int)Math.ceil(xt)];\n\t\t\t double blf = noise[(int)Math.ceil(zt)][(int)Math.ceil(yt)][(int)Math.floor(xt)];\n\t\t\t double tlf = noise[(int)Math.ceil(zt)][(int)Math.floor(yt)][(int)Math.floor(xt)];\n\t\t\t double trf = noise[(int)Math.ceil(zt)][(int)Math.floor(yt)][(int)Math.ceil(xt)];\n\t\t\t double brb = noise[(int)Math.floor(zt)][(int)Math.ceil(yt)][(int)Math.ceil(xt)];\n\t\t\t double blb = noise[(int)Math.floor(zt)][(int)Math.ceil(yt)][(int)Math.floor(xt)];\n\t\t\t double tlb = noise[(int)Math.floor(zt)][(int)Math.floor(yt)][(int)Math.floor(xt)];\n\t\t\t double trb = noise[(int)Math.floor(zt)][(int)Math.floor(yt)][(int)Math.ceil(xt)];\n\t\t\t \n\t\t\t /* weighted average of all adjacent cells */\n\t\t\t\tdouble val = 0.0;\n\t\t\t\tval += brf*xrem*yrem*zrem;\n\t\t\t\tval += blf*(1-xrem)*yrem*zrem;\n\t\t\t\tval += tlf*(1-xrem)*(1-yrem)*zrem;\n\t\t\t\tval += trf*xrem*(1-yrem)*zrem;\n\t\t\t\tval += brb*xrem*yrem*(1-zrem);\n\t\t\t\tval += blb*(1-xrem)*yrem*(1-zrem);\n\t\t\t\tval += tlb*(1-xrem)*(1-yrem)*(1-zrem);\n\t\t\t\tval += trb*xrem*(1-yrem)*(1-zrem);\n\t\t\t\t\t\t\n\t\t\t\t//val /= 8;\n\t\t\t\t\n\t\t\t\twriter.setColor(x, y, new Color(val,val,val,1.0));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "protected ResourceLocation getEntityTexture(EntityBat entity)\n {\n return BAT_TEXTURES;\n }", "@Override\n public boolean intersectsAt(Point point){\n if (planeImage.getBoundingBoxAt(currPos).intersects(point)){\n return true;\n }\n else\n return false;\n }", "public void texturedSphere(float r, PImage t) {\n int v1, v11, v2;\n r = (r + 240 ) * 0.33f;\n// tint(255, 48);\n beginShape(TRIANGLE_STRIP);\n texture(t);\n float iu=(float)(t.width-1)/(sDetail);\n float iv=(float)(t.height-1)/(sDetail);\n float u=0, v=iv;\n for (int i = 0; i < sDetail; i++) {\n vertex(0, -r, 0, u, 0);\n vertex(sphereX[i]*r, sphereY[i]*r, sphereZ[i]*r, u, v);\n u+=iu;\n }\n vertex(0, -r, 0, u, 0);\n vertex(sphereX[0]*r, sphereY[0]*r, sphereZ[0]*r, u, v);\n endShape(); \n \n // Middle rings\n int voff = 0;\n for (int i = 2; i < sDetail; i++) {\n v1=v11=voff;\n voff += sDetail;\n v2=voff;\n u=0;\n// tint(255, 255);\n beginShape(TRIANGLE_STRIP);\n texture(t);\n for (int j = 0; j < sDetail; j++) {\n vertex(sphereX[v1]*r, sphereY[v1]*r, sphereZ[v1++]*r, u, v);\n vertex(sphereX[v2]*r, sphereY[v2]*r, sphereZ[v2++]*r, u, v+iv);\n u+=iu;\n }\n \n // Close each ring\n v1=v11;\n v2=voff;\n vertex(sphereX[v1]*r, sphereY[v1]*r, sphereZ[v1]*r, u, v);\n vertex(sphereX[v2]*r, sphereY[v2]*r, sphereZ[v2]*r, u, v+iv);\n endShape();\n v+=iv;\n }\n u=0;\n \n // Add the northern cap\n// tint(255, 131);\n beginShape(TRIANGLE_STRIP);\n texture(t);\n for (int i = 0; i < sDetail; i++) {\n v2 = voff + i;\n vertex(sphereX[v2]*r, sphereY[v2]*r, sphereZ[v2]*r, u, v);\n vertex(0, r, 0, u, v+iv); \n u+=iu;\n }\n vertex(sphereX[voff]*r, sphereY[voff]*r, sphereZ[voff]*r, u, v);\n endShape();\n }", "public void computeTextureUVCoordinates()\n\t{\n\t\tthis.faceTextureUCoordinates = new float[faceCount][];\n\t\tthis.faceTextureVCoordinates = new float[faceCount][];\n\n\t\tfor (int i = 0; i < faceCount; i++)\n\t\t{\n\t\t\tint textureCoordinate;\n\t\t\tif (textureCoordinates == null)\n\t\t\t{\n\t\t\t\ttextureCoordinate = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureCoordinate = textureCoordinates[i];\n\t\t\t}\n\n\t\t\tint textureIdx;\n\t\t\tif (faceTextures == null)\n\t\t\t{\n\t\t\t\ttextureIdx = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureIdx = faceTextures[i] & 0xFFFF;\n\t\t\t}\n\n\t\t\tif (textureIdx != -1)\n\t\t\t{\n\t\t\t\tfloat[] u = new float[3];\n\t\t\t\tfloat[] v = new float[3];\n\n\t\t\t\tif (textureCoordinate == -1)\n\t\t\t\t{\n\t\t\t\t\tu[0] = 0.0F;\n\t\t\t\t\tv[0] = 1.0F;\n\n\t\t\t\t\tu[1] = 1.0F;\n\t\t\t\t\tv[1] = 1.0F;\n\n\t\t\t\t\tu[2] = 0.0F;\n\t\t\t\t\tv[2] = 0.0F;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttextureCoordinate &= 0xFF;\n\n\t\t\t\t\tbyte textureRenderType = 0;\n\t\t\t\t\tif (textureRenderTypes != null)\n\t\t\t\t\t{\n\t\t\t\t\t\ttextureRenderType = textureRenderTypes[textureCoordinate];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (textureRenderType == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint faceVertexIdx1 = faceVertexIndices1[i];\n\t\t\t\t\t\tint faceVertexIdx2 = faceVertexIndices2[i];\n\t\t\t\t\t\tint faceVertexIdx3 = faceVertexIndices3[i];\n\n\t\t\t\t\t\tshort triangleVertexIdx1 = textureTriangleVertexIndices1[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx2 = textureTriangleVertexIndices2[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx3 = textureTriangleVertexIndices3[textureCoordinate];\n\n\t\t\t\t\t\tfloat triangleX = (float) vertexPositionsX[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleY = (float) vertexPositionsY[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleZ = (float) vertexPositionsZ[triangleVertexIdx1];\n\n\t\t\t\t\t\tfloat f_882_ = (float) vertexPositionsX[triangleVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_883_ = (float) vertexPositionsY[triangleVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_884_ = (float) vertexPositionsZ[triangleVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_885_ = (float) vertexPositionsX[triangleVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_886_ = (float) vertexPositionsY[triangleVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_887_ = (float) vertexPositionsZ[triangleVertexIdx3] - triangleZ;\n\t\t\t\t\t\tfloat f_888_ = (float) vertexPositionsX[faceVertexIdx1] - triangleX;\n\t\t\t\t\t\tfloat f_889_ = (float) vertexPositionsY[faceVertexIdx1] - triangleY;\n\t\t\t\t\t\tfloat f_890_ = (float) vertexPositionsZ[faceVertexIdx1] - triangleZ;\n\t\t\t\t\t\tfloat f_891_ = (float) vertexPositionsX[faceVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_892_ = (float) vertexPositionsY[faceVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_893_ = (float) vertexPositionsZ[faceVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_894_ = (float) vertexPositionsX[faceVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_895_ = (float) vertexPositionsY[faceVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_896_ = (float) vertexPositionsZ[faceVertexIdx3] - triangleZ;\n\n\t\t\t\t\t\tfloat f_897_ = f_883_ * f_887_ - f_884_ * f_886_;\n\t\t\t\t\t\tfloat f_898_ = f_884_ * f_885_ - f_882_ * f_887_;\n\t\t\t\t\t\tfloat f_899_ = f_882_ * f_886_ - f_883_ * f_885_;\n\t\t\t\t\t\tfloat f_900_ = f_886_ * f_899_ - f_887_ * f_898_;\n\t\t\t\t\t\tfloat f_901_ = f_887_ * f_897_ - f_885_ * f_899_;\n\t\t\t\t\t\tfloat f_902_ = f_885_ * f_898_ - f_886_ * f_897_;\n\t\t\t\t\t\tfloat f_903_ = 1.0F / (f_900_ * f_882_ + f_901_ * f_883_ + f_902_ * f_884_);\n\n\t\t\t\t\t\tu[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tu[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tu[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\n\t\t\t\t\t\tf_900_ = f_883_ * f_899_ - f_884_ * f_898_;\n\t\t\t\t\t\tf_901_ = f_884_ * f_897_ - f_882_ * f_899_;\n\t\t\t\t\t\tf_902_ = f_882_ * f_898_ - f_883_ * f_897_;\n\t\t\t\t\t\tf_903_ = 1.0F / (f_900_ * f_885_ + f_901_ * f_886_ + f_902_ * f_887_);\n\n\t\t\t\t\t\tv[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tv[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tv[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.faceTextureUCoordinates[i] = u;\n\t\t\t\tthis.faceTextureVCoordinates[i] = v;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tVector calcUV(Vector hitPoint) {\n\t\treturn null;\n\t}", "private TextureImpl getTexture(InputStream in, String resourceName, int target, int magFilter, int minFilter, boolean flipped, int[] transparent) throws IOException {\n/* 291 */ LoadableImageData imageData = ImageDataFactory.getImageDataFor(resourceName);\n/* 292 */ ByteBuffer textureBuffer = imageData.loadImage(new BufferedInputStream(in), flipped, transparent);\n/* */ \n/* 294 */ int textureID = createTextureID();\n/* 295 */ TextureImpl texture = new TextureImpl(resourceName, target, textureID);\n/* */ \n/* 297 */ GL.glBindTexture(target, textureID);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 306 */ int width = imageData.getWidth();\n/* 307 */ int height = imageData.getHeight();\n/* 308 */ boolean hasAlpha = (imageData.getDepth() == 32);\n/* */ \n/* 310 */ texture.setTextureWidth(imageData.getTexWidth());\n/* 311 */ texture.setTextureHeight(imageData.getTexHeight());\n/* */ \n/* 313 */ int texWidth = texture.getTextureWidth();\n/* 314 */ int texHeight = texture.getTextureHeight();\n/* */ \n/* 316 */ IntBuffer temp = BufferUtils.createIntBuffer(16);\n/* 317 */ GL.glGetInteger(3379, temp);\n/* 318 */ int max = temp.get(0);\n/* 319 */ if (texWidth > max || texHeight > max) {\n/* 320 */ throw new IOException(\"Attempt to allocate a texture to big for the current hardware\");\n/* */ }\n/* */ \n/* 323 */ int srcPixelFormat = hasAlpha ? 6408 : 6407;\n/* 324 */ int componentCount = hasAlpha ? 4 : 3;\n/* */ \n/* 326 */ texture.setWidth(width);\n/* 327 */ texture.setHeight(height);\n/* 328 */ texture.setAlpha(hasAlpha);\n/* */ \n/* 330 */ if (this.holdTextureData) {\n/* 331 */ texture.setTextureData(srcPixelFormat, componentCount, minFilter, magFilter, textureBuffer);\n/* */ }\n/* */ \n/* 334 */ GL.glTexParameteri(target, 10241, minFilter);\n/* 335 */ GL.glTexParameteri(target, 10240, magFilter);\n/* */ \n/* */ \n/* 338 */ GL.glTexImage2D(target, \n/* 339 */ 0, \n/* 340 */ this.dstPixelFormat, \n/* 341 */ get2Fold(width), \n/* 342 */ get2Fold(height), \n/* 343 */ 0, \n/* 344 */ srcPixelFormat, \n/* 345 */ 5121, \n/* 346 */ textureBuffer);\n/* */ \n/* 348 */ return texture;\n/* */ }", "private float a(int paramInt, boolean paramBoolean)\r\n/* 161: */ {\r\n/* 162:172 */ float f1 = paramInt % 16 * 8;\r\n/* 163:173 */ float f2 = paramInt / 16 * 8;\r\n/* 164:174 */ float f3 = paramBoolean ? 1.0F : 0.0F;\r\n/* 165: */ \r\n/* 166:176 */ this.h.a(this.g);\r\n/* 167: */ \r\n/* 168:178 */ float f4 = this.d[paramInt] - 0.01F;\r\n/* 169: */ \r\n/* 170:180 */ GL11.glBegin(5);\r\n/* 171:181 */ GL11.glTexCoord2f(f1 / 128.0F, f2 / 128.0F);\r\n/* 172:182 */ GL11.glVertex3f(this.i + f3, this.j, 0.0F);\r\n/* 173:183 */ GL11.glTexCoord2f(f1 / 128.0F, (f2 + 7.99F) / 128.0F);\r\n/* 174:184 */ GL11.glVertex3f(this.i - f3, this.j + 7.99F, 0.0F);\r\n/* 175:185 */ GL11.glTexCoord2f((f1 + f4 - 1.0F) / 128.0F, f2 / 128.0F);\r\n/* 176:186 */ GL11.glVertex3f(this.i + f4 - 1.0F + f3, this.j, 0.0F);\r\n/* 177:187 */ GL11.glTexCoord2f((f1 + f4 - 1.0F) / 128.0F, (f2 + 7.99F) / 128.0F);\r\n/* 178:188 */ GL11.glVertex3f(this.i + f4 - 1.0F - f3, this.j + 7.99F, 0.0F);\r\n/* 179:189 */ GL11.glEnd();\r\n/* 180: */ \r\n/* 181:191 */ return this.d[paramInt];\r\n/* 182: */ }", "public void updatePixel(int[] location, double[] parameters);", "abstract protected boolean mustApplyTexture(DrawContext dc);", "private void createTexture(String file) {\n TextureRegion region = new TextureRegion(get(file, Texture.class));\n region.getTexture().setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n region.getTexture().setWrap(Texture.TextureWrap.Repeat, Texture.TextureWrap.Repeat);\n processedTextureMap.put(file, region);\n }", "protected ResourceLocation getEntityTexture(EntityLiving entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }", "protected ResourceLocation getEntityTexture(T entity) {\n\t\treturn ORECART_TEXTURES;\n\t}", "private void drawSprite(int x, int y, int u, int v)\n {\n GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.getTextureManager().bindTexture(STAT_ICONS);\n float f = 0.0078125F;\n float f1 = 0.0078125F;\n int i = 18;\n int j = 18;\n Tessellator tessellator = Tessellator.getInstance();\n BufferBuilder bufferbuilder = tessellator.getBuffer();\n bufferbuilder.begin(7, DefaultVertexFormats.POSITION_TEX);\n bufferbuilder.pos((double)(x + 0), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 0), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n tessellator.draw();\n }", "protected ResourceLocation getEntityTexture(Entity entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }", "public E3DVector2F getTextureCoordC(){\r\n return vertices[2].getTextureCoord();\r\n }", "public void setTextureCoordA(E3DVector2F textureCoord){\r\n this.vertices[0].setTextureCoord(textureCoord);\r\n }", "public native void textureImage(MagickImage image) throws MagickException;", "protected ResourceLocation getEntityTexture(EntityBat p_110775_1_)\n {\n return batTextures;\n }", "@SideOnly(Side.CLIENT)\n public static void drawTexture(int x, int y, IIcon icon, int width, int height, float zLevel)\n {\n for(int i = 0; i < width; i += 16)\n for(int j = 0; j < height; j += 16)\n drawScaledTexturedRect(x + i, y + j, icon, Math.min(width - i, 16), Math.min(height - j, 16),zLevel);\n \n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n }", "public static Texture getTexture(String resourceName, BufferedImage resourceimage, int target, int dstPixelFormat, int minFilter, int magFilter) throws IOException {\n/* 92 */ ImageIOImageData data = new ImageIOImageData(); int srcPixelFormat = 0;\n/* */ \n/* */ \n/* 95 */ int textureID = InternalTextureLoader.createTextureID();\n/* 96 */ TextureImpl texture = new TextureImpl(resourceName, target, textureID);\n/* */ \n/* */ \n/* 99 */ Renderer.get().glEnable(3553);\n/* */ \n/* */ \n/* 102 */ Renderer.get().glBindTexture(target, textureID);\n/* */ \n/* 104 */ BufferedImage bufferedImage = resourceimage;\n/* 105 */ texture.setWidth(bufferedImage.getWidth());\n/* 106 */ texture.setHeight(bufferedImage.getHeight());\n/* */ \n/* 108 */ if (bufferedImage.getColorModel().hasAlpha()) {\n/* 109 */ srcPixelFormat = 6408;\n/* */ } else {\n/* 111 */ srcPixelFormat = 6407;\n/* */ } \n/* */ \n/* */ \n/* 115 */ ByteBuffer textureBuffer = data.imageToByteBuffer(bufferedImage, false, false, null);\n/* 116 */ texture.setTextureHeight(data.getTexHeight());\n/* 117 */ texture.setTextureWidth(data.getTexWidth());\n/* 118 */ texture.setAlpha((data.getDepth() == 32));\n/* */ \n/* 120 */ if (target == 3553) {\n/* 121 */ Renderer.get().glTexParameteri(target, 10241, minFilter);\n/* 122 */ Renderer.get().glTexParameteri(target, 10240, magFilter);\n/* */ \n/* 124 */ if (Renderer.get().canTextureMirrorClamp()) {\n/* 125 */ Renderer.get().glTexParameteri(3553, 10242, 34627);\n/* 126 */ Renderer.get().glTexParameteri(3553, 10243, 34627);\n/* */ } else {\n/* 128 */ Renderer.get().glTexParameteri(3553, 10242, 10496);\n/* 129 */ Renderer.get().glTexParameteri(3553, 10243, 10496);\n/* */ } \n/* */ } \n/* */ \n/* 133 */ Renderer.get().glTexImage2D(target, \n/* 134 */ 0, \n/* 135 */ dstPixelFormat, \n/* 136 */ texture.getTextureWidth(), \n/* 137 */ texture.getTextureHeight(), \n/* 138 */ 0, \n/* 139 */ srcPixelFormat, \n/* 140 */ 5121, \n/* 141 */ textureBuffer);\n/* */ \n/* 143 */ return (Texture)texture;\n/* */ }", "@Override\n public Color getIntensity(Point3D point) {\n\n Color pointLight = super.getIntensity(point); // the point light intensity\n // multiply the dot product between the direction and the L vector\n // (if it's far from direction - it's more weak. if it's close, it's stronger.\n double k = getL(point).dotProduct(getDirection().normalize());\n k = Math.abs(k);\n\n if (k > 1) k = 1;\n\n return new Color((int) (pointLight.getRed() * k), (int) (pointLight.getGreen() * k), (int) (pointLight.getBlue() * k)); // scale and return\n }", "Texture getIcon();", "public E3DVector2F getTextureCoordDetail0B(){\r\n return vertices[1].getTextureCoordDetail0();\r\n }", "public Texture loadTexture(String file, Format format, boolean useMipMap);", "public void renderImage() {\n Camera camera = scene.getCamera();//fot the function thats in the camera.constr.. to build the rays.\n Intersectable geometries = scene.getGeometries();//list of geomertries for the functon in geometries.findinter..\n java.awt.Color background = scene.getBackground().getColor();\n double distance = scene.getDistance();\n\n\n int width = (int) imageWriter.getWidth(); //width of the view plane\n int height = (int) imageWriter.getHeight();//height of the view plane\n int Nx = imageWriter.getNx(); // number of squares in the Row (shura). we need it for the for\n int Ny = imageWriter.getNy(); //number of squares in the column.(amuda). we need it for the for\n\n /**for each pixel we will send ray, and with the function findIntersection\n * we will get the Geo points(point 3d, color).\n * if we got nothing so we will color with the back round color\n * if we got the GeoPoints We will send to the function getClosestPoint and color*/\n Color pixelColor;\n for (int row = 0; row < Ny; ++row) {\n for (int column = 0; column < Nx; ++column) {\n if (amountRays > 1) { //if there is superSampling\n List<Ray> rays = camera.constructNRaysThroughPixel(Nx, Ny, column, row, distance, width, height,superSamplingRate, amountRays);\n Color averageColor;\n pixelColor = scene.getBackground();\n for (Ray ray : rays) {//for each ray from the list give the list of intersection geo-points.\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n averageColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);//get the closest point for each ray.\n averageColor = calcColor(closestPoint, ray);//calculate the color and put in averageColor\n }\n pixelColor = pixelColor.add(averageColor);//befor we go to the next ray we add the averageColor to pixelColor.\n }\n pixelColor = pixelColor.reduce(rays.size());//we are doing the (memuza) and that is the color of that pixel.\n }\n else {//if there is no supersampling\n Ray ray = camera.constructRayThroughPixel(Nx, Ny, column, row, distance, width, height);\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n pixelColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);\n pixelColor = calcColor(closestPoint, ray);\n }\n }\n imageWriter.writePixel(column, row, pixelColor.getColor());\n }\n }\n }", "protected ResourceLocation getEntityTexture0(EntityEnderPig p_110775_1_)\n {\n return enderPigTextures;\n }", "public int getBlockTextureFromSide(int var1)\r\n {\r\n return var1 == 1 ? 72 : (var1 == 0 ? 74 : 73);\r\n }", "private Quad getQuad() {\n final BufferedImage img = getImage();\n if(img == null){\n logger.severe(\"[tweet node] image is null!!!\");\n }\n\n float w = img.getWidth();\n float h = img.getHeight();\n \n height3D = h * fontSizeModifier;\n final Quad ret = new Quad(\"tweet node\", w * fontSizeModifier, height3D);\n\n ClientContextJME.getWorldManager().addRenderUpdater(new RenderUpdater() {\n public void update(Object arg0) {\n TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();\n Texture tex = TextureManager.loadTexture(img, MinificationFilter.BilinearNoMipMaps, MagnificationFilter.Bilinear, true);\n \n ts.setTexture(tex);\n ts.setEnabled(true);\n ret.setRenderState(ts);\n\n ret.setRenderQueueMode(Renderer.QUEUE_TRANSPARENT);\n\n BlendState as = DisplaySystem.getDisplaySystem().getRenderer().createBlendState();\n as.setBlendEnabled(true);\n as.setTestEnabled(true);\n as.setTestFunction(TestFunction.GreaterThan);\n as.setEnabled(true);\n ret.setRenderState(as);\n\n ret.setLightCombineMode(LightCombineMode.Off);\n ret.updateRenderState();\n\n ClientContextJME.getWorldManager().addToUpdateList(TweetNode.this);\n }\n }, null);\n\n return ret;\n }", "private void setTexture(Graphics2D graphic, Graphic gr, Feature feature) {\n BufferedImage image = getExternalGraphic(gr);\n \n if (image != null) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"got an image in graphic fill\");\n }\n } else {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"going for the mark from graphic fill\");\n }\n \n Mark mark = getMark(gr, feature);\n int size = 200;\n \n image = new BufferedImage(size, size, BufferedImage.TYPE_INT_ARGB);\n \n Graphics2D g1 = image.createGraphics();\n double rotation = 0.0;\n \n rotation = ((Number) gr.getRotation().getValue(feature)).doubleValue();\n \n fillDrawMark(g1, markCentrePoint, mark, (int) (size * .9), rotation, feature);\n \n MediaTracker track = new MediaTracker(obs);\n track.addImage(image, 1);\n \n try {\n track.waitForID(1);\n } catch (InterruptedException e) {\n LOGGER.warning(e.toString());\n }\n }\n \n double width = image.getWidth();\n double height = image.getHeight();\n double unitSize = Math.max(width, height);\n int size = 6;\n \n size = ((Number) gr.getSize().getValue(feature)).intValue();\n \n double drawSize = (double) size / unitSize;\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"size = \" + size + \" unitsize \" + unitSize + \" drawSize \" + drawSize);\n }\n \n AffineTransform at = graphic.getTransform();\n double scaleX = drawSize / at.getScaleX();\n double scaleY = drawSize / -at.getScaleY();\n \n /* This is needed because the image must be a fixed size in pixels\n * but when the image is used as the fill it is transformed by the\n * current transform.\n * However this causes problems as the image size can become very\n * small e.g. 1 or 2 pixels when the drawScale is large, this makes\n * the image fill look very poor - I have no idea how to fix this.\n */\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"scale \" + scaleX + \" \" + scaleY);\n }\n \n width *= scaleX;\n height *= scaleY;\n \n Double rect = new Double(0.0, 0.0, width, height);\n TexturePaint imagePaint = new TexturePaint(image, rect);\n graphic.setPaint(imagePaint);\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"applied TexturePaint \" + imagePaint);\n }\n }", "public void render() { image.drawFromTopLeft(getX(), getY()); }" ]
[ "0.6338768", "0.61733234", "0.6028781", "0.60020113", "0.58713573", "0.5812206", "0.57097393", "0.56842655", "0.5642547", "0.5628441", "0.5560756", "0.555758", "0.5552862", "0.5551519", "0.5522619", "0.5516132", "0.55060256", "0.5499995", "0.5494672", "0.5494235", "0.54673433", "0.54646367", "0.5447371", "0.5401823", "0.53923476", "0.53829217", "0.53815085", "0.5377887", "0.53752524", "0.5373859", "0.5359149", "0.534717", "0.5343768", "0.5330677", "0.5321717", "0.53211516", "0.53079176", "0.528932", "0.52891785", "0.5288713", "0.52868825", "0.52808857", "0.5275512", "0.5267498", "0.52599245", "0.52599245", "0.52500355", "0.52475876", "0.52466553", "0.52198684", "0.5211792", "0.52085906", "0.5206725", "0.52052504", "0.51992655", "0.5190928", "0.5183017", "0.5179501", "0.51681286", "0.51502097", "0.5146837", "0.51354957", "0.513055", "0.5117666", "0.51123875", "0.50944024", "0.5092066", "0.5084801", "0.5083797", "0.50806445", "0.5075642", "0.507436", "0.50616026", "0.5061303", "0.5040531", "0.5040362", "0.50345206", "0.5016102", "0.5012404", "0.50079995", "0.50033855", "0.49996585", "0.49967328", "0.49962527", "0.49960744", "0.4988902", "0.49820006", "0.49818707", "0.49659702", "0.49526584", "0.49465248", "0.49455473", "0.49395373", "0.4933924", "0.4932914", "0.4915138", "0.49117607", "0.49106348", "0.49070466", "0.4904906" ]
0.75940293
0
Gets the property value and converts it to an int.
public int getPropertyInt(String key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}", "public int getIntValue(){\n\t\treturn value.intValue();\n\t}", "public int getIntValue() {\n return (int)getValue();\n }", "public int getIntegerProperty(String key) {\n String val = getProperty(key);\n return (null == val ? 1 : Integer.parseInt(val));\n }", "public int getIntegerProperty(String key) {\n\t\treturn Integer.parseInt(this.getProperty(key));\n\t}", "public static int getValueInt()\n {\n return Util.valueInt;\n }", "public Integer toInteger() {\n\t\treturn this.getValue().intValue();\n\t}", "public int intValue() {\n return value;\n }", "public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}", "public int getInt(){\n return new BigInteger(this.value).intValue();\n }", "public int intValue() {\n return m_value;\n }", "public\n int getProperty_int(String key)\n {\n if (key == null)\n return 0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0;\n\n int ret_int = 0;\n try\n {\n Integer workint = new Integer(val);\n ret_int = workint.intValue();\n }\n catch(NumberFormatException e)\n {\n ret_int = 0;\n }\n\n return ret_int;\n }", "public int intValue() {\r\n return _value;\r\n }", "public final int getInt()\n {\n return intValue;\n }", "private static int getIntegerProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0;\n }\n return Integer.parseInt(value);\n }", "public int getIntValue() {\n return intValue_;\n }", "public int intValue()\n\t\t{\n\t\t\treturn (int) doubleValue();\n\t\t}", "public int getIntValue() {\n return intValue_;\n }", "public int intValue( )\n {\n return value;\n }", "public int getValue() {\n return intValue;\n }", "public int getValue() {\n return intValue;\n }", "public int toInt()\n\t{\n\t\treturn (int) toLong();\n\t}", "int getInt(int index) throws PropertyException {\n return this.getNumber(index).intValue();\n }", "@Override\n public int getIntValue()\n {\n return value;\n }", "public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}", "public final int getValue() {\n return mValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getIntegerValue() {\r\n\t\t\treturn val;\r\n\t\t}", "public int getInt(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\tthrow new PropertiesPlusException(property+\" is not defined.\");\n\t\ttry\n\t\t{\n\t\t\treturn Integer.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type int\", property, value));\n\t\t}\n\t}", "private int getIntProperty(String p) {\n\t\tString propval=env.getProperty(p);\n\t\tint propvalint=Integer.parseInt(propval);\n\t\treturn propvalint;\n\t}", "Integer getValue();", "Integer getValue();", "private static Integer getIntegerProperty(Dictionary<?, ?> properties,\n String propertyName) {\n Integer value = null;\n try {\n String s = Tools.get(properties, propertyName);\n value = isNullOrEmpty(s) ? value : Integer.parseInt(s);\n } catch (NumberFormatException | ClassCastException e) {\n value = null;\n }\n return value;\n }", "public int getValue() {\n\t\t// Precondition -- The value is a non-negative integer.\n\t\tassert(value >= 0);\n\t\t\n\t\treturn value;\n\t}", "public Integer getIntValue() {\n\t\treturn this.intValue;\r\n\t}", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "public int getValue() {\n\t\treturn this.value;\n\t}", "public static int getPropertyInt(String prop) {\n int ret = 0;\n try{\n ret = Integer.valueOf(properties.getProperty(prop));\n } catch (NumberFormatException e){\n log.log(Level.SEVERE, \"Integer return could not be found for property: \" + prop + \" - Exception: \" + e, e);\n }\n return ret;\n }", "public int getValue() {\n return m_value;\n }", "public int getIntValue(){\n return value;\n }", "public int getValue() {\n\t\treturn mValue;\n\t}", "public int getValue() {\n return value_;\n }", "public static int getIntProperty(String key) {\r\n\t\treturn getIntProperty(key, 0);\r\n\t}", "protected synchronized int getIntegerValue(String tag) {\n int returnInt = 0;\n if (actualProperties != null) {\n returnInt = Integer.decode(actualProperties.getProperty(tag, \"0\"));\n }\n return returnInt;\n }", "public int getValue() {\n\t\treturn _value;\n\t}", "public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public Integer getPropertyAsInteger(String property) {\n try {\n return Integer.valueOf(properties.getProperty(property));\n } catch (NumberFormatException e) {\n }\n return null;\n }", "public int getValue() {\n return mValue;\n }", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int intValue(Map<Prop, Object> map) {\n assert type == Integer.class;\n Object o = map.get(this);\n return this.<Integer>typeValue(o);\n }", "public int getValue() {\n\t\t\treturn value;\n\t\t}", "public int getValue() {\n return mValue;\n }", "public int getValue() {\n return value_;\n }", "public int getValue() {\n return value_;\n }", "public int getValue() {\n return _value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\r\n return value;\r\n }", "public int getValue() {\n\t\treturn this.getValue();\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}" ]
[ "0.74833566", "0.7476215", "0.7399291", "0.7391685", "0.7353793", "0.7348153", "0.7160763", "0.71569294", "0.71397024", "0.7135242", "0.70975995", "0.70498204", "0.70391726", "0.7026461", "0.7018298", "0.7005802", "0.6999585", "0.6994922", "0.69856536", "0.69690824", "0.69690824", "0.6953077", "0.69312054", "0.69245034", "0.691613", "0.6913142", "0.6912794", "0.6912794", "0.68827313", "0.68816566", "0.68626815", "0.6845638", "0.6845638", "0.6838887", "0.68146443", "0.67767006", "0.67726576", "0.67726576", "0.6772114", "0.6763241", "0.67510515", "0.6749943", "0.6748911", "0.6747514", "0.6730365", "0.672821", "0.6723843", "0.67215127", "0.67076224", "0.67076224", "0.67076224", "0.67076224", "0.67027885", "0.67027885", "0.67027885", "0.67027885", "0.67027885", "0.67027885", "0.67027885", "0.67027885", "0.66969454", "0.66931", "0.6690367", "0.6690367", "0.6690367", "0.6690367", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66746396", "0.66737086", "0.6668064", "0.6665411", "0.66633064", "0.6660241", "0.6658319", "0.6658319", "0.66561526", "0.6642635", "0.6642635", "0.664227", "0.664227", "0.664227", "0.664227", "0.664227", "0.664227", "0.6634088", "0.66181284", "0.6615642", "0.6615642" ]
0.0
-1
Gets the property value and converts it to an int. If no property is found for the given key, use the default value.
public int getPropertyInt(String key, int defaultValue);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getIntegerProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0;\n }\n return Integer.parseInt(value);\n }", "public int getIntegerProperty(String key) {\n String val = getProperty(key);\n return (null == val ? 1 : Integer.parseInt(val));\n }", "public\n int getProperty_int(String key)\n {\n if (key == null)\n return 0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0;\n\n int ret_int = 0;\n try\n {\n Integer workint = new Integer(val);\n ret_int = workint.intValue();\n }\n catch(NumberFormatException e)\n {\n ret_int = 0;\n }\n\n return ret_int;\n }", "public int getIntegerProperty(String key) {\n\t\treturn Integer.parseInt(this.getProperty(key));\n\t}", "public static int getIntProperty(String key) {\r\n\t\treturn getIntProperty(key, 0);\r\n\t}", "public int getAsInt(String key, int defaultVal) {\n String val = entries.getProperty(key);\n return val == null ? defaultVal : Integer.parseInt(val);\n }", "public int getInteger(String key) {\n\t\tint defaultValue = 0;\n\t\tif (getDefault(key) != null)\n\t\t\tdefaultValue = (Integer) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(sp);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}", "public static int getIntProperty(String key, int defaultValue) {\r\n\t\treturn CommonUtil.parseAsInt(prop.getProperty(key), defaultValue);\r\n\t}", "public static int getIntProperty(final String key, final int defaultValue) {\n int intValue;\n final String value = PropertyUtils.getInstance().properties.getProperty(key);\n\n if (value == null) {\n return defaultValue;\n }\n\n intValue = Integer.parseInt(value);\n\n return intValue;\n }", "public int getProperty(String key,\n int defaultValue) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n String val = this.attributes.getProperty(key);\n\n if (val == null) {\n return defaultValue;\n }\n else {\n try {\n return Integer.parseInt(val);\n } catch (NumberFormatException e) {\n throw this.invalidValue(key, val, this.lineNr);\n }\n }\n }", "public static int getInt(final String key, final int defaultValue) {\r\n if (PROP == null) {\r\n return defaultValue;\r\n }\r\n if (PROP.containsKey(key)) {\r\n try {\r\n return Integer.parseInt(PROP.getProperty(key));\r\n } catch (NumberFormatException e) {\r\n return defaultValue;\r\n }\r\n }\r\n\r\n return defaultValue;\r\n }", "private static Integer getIntegerProperty(Dictionary<?, ?> properties,\n String propertyName) {\n Integer value = null;\n try {\n String s = Tools.get(properties, propertyName);\n value = isNullOrEmpty(s) ? value : Integer.parseInt(s);\n } catch (NumberFormatException | ClassCastException e) {\n value = null;\n }\n return value;\n }", "public int getInt(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? ((Long)value).intValue() : 0);\n }", "public int getPropertyInt(String key);", "public Integer getInteger(String key, Integer defaultValue);", "public int getAsInt(String key) {\n return getAsInt(key, 0);\n }", "public int getInt(String key, int defaultValue);", "public int getSpecialIntProperty(String key,\n Hashtable valueSet,\n String defaultValue) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n String val = this.attributes.getProperty(key);\n Integer result;\n\n if (val == null) {\n val = defaultValue;\n }\n\n try {\n result = (Integer) (valueSet.get(val));\n } catch (ClassCastException e) {\n throw this.invalidValueSet(key);\n }\n\n if (result == null) {\n try {\n return Integer.parseInt(val);\n } catch (NumberFormatException e) {\n throw this.invalidValue(key, val, this.lineNr);\n }\n }\n\n return result.intValue();\n }", "public int getInt( String key )\n {\n int value = 0;\n try\n {\n if ( config != null )\n {\n value = config.getInt( key );\n LOG.debug( \"getInt name [{}] value [{}]\", key, value );\n }\n else\n {\n LOG.warn( \"getInt invalid config, can't read prop [{}]\", key );\n }\n }\n catch (org.apache.commons.configuration.ConversionException e)\n {\n LOG.debug( \"getInt can't read prop [{}], exception [{}]\", key, e );\n }\n return value;\n }", "public static int verifyAndFetchOptionalProperty(String key,\r\n\t\t\tint defaultValue, Properties prop) {\r\n\t\tString property;\r\n\t\tproperty = fetchProperty(key, prop);\r\n\r\n\t\t// Property should not be blank.\r\n\t\tif (property == null || (property != null && property.trim().isEmpty())) {\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn Integer.parseInt(property);\r\n\t\t} catch (NumberFormatException numEx) {\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t}", "private int getOptionalIntegerProperty(String property, int defaultValue) {\n\t\ttry {\n\t\t\tString value = testProperties.getProperty(property);\n\t\t\tif (value == null)\n\t\t\t\treturn defaultValue;\n\t\t\treturn Integer.parseInt(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn defaultValue;\n\t\t}\n\t}", "private int getIntegerProperty(ParameterList key, int defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Integer.parseInt(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to int.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }", "public int getIntProperty(String key,\n Hashtable valueSet,\n String defaultValue) {\n String val = this.attributes.getProperty(key);\n Integer result;\n\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n if (val == null) {\n val = defaultValue;\n }\n\n try {\n result = (Integer) (valueSet.get(val));\n } catch (ClassCastException e) {\n throw this.invalidValueSet(key);\n }\n\n if (result == null) {\n throw this.invalidValue(key, val, this.lineNr);\n }\n\n return result.intValue();\n }", "int getInt(String key, int defaultValue);", "public int getInt(String property, int defaultValue)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\t\n\t\tif (value == null)\n\t\t{\n\t\t\taddRequestedProperty(property, Integer.toString(defaultValue));\n\t\t\treturn defaultValue;\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\treturn Integer.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type int\", property, value));\n\t\t}\n\t}", "public int getInt(String key)\n {\n return getInt(key, 0);\n }", "public int getInt(String key, int defaultValue) {\n String lowerCaseKey = validateAndGetLowerCaseKey(key);\n\n if(map.containsKey(lowerCaseKey)) {\n String value = map.get(lowerCaseKey);\n\n try {\n return Integer.parseInt(value);\n } catch (NumberFormatException ex) {\n System.err.println(\"Unable to parse number: \" + ex.getMessage());\n }\n }\n return defaultValue;\n }", "public static Integer getInteger(String inKey) {\r\n Object o = getProperties().get(inKey);\r\n\r\n if (o == null) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result null\");\r\n }\r\n return null;\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result \" + o);\r\n }\r\n if (o instanceof Integer) {\r\n return (Integer) o;\r\n }\r\n if (!(o instanceof String)) {\r\n throw new IllegalArgumentException(\"Config property: \" + inKey\r\n + \" is not an Integer or String: \" + o.getClass());\r\n }\r\n try {\r\n return new Integer((String) o);\r\n } catch (Exception e) {\r\n LOG.warn(\"Not an integer value: \" + o + \" for property \" + inKey);\r\n return null;\r\n }\r\n }", "public int getInt(String key) {\n return Integer.parseInt(mMap.get(key));\n }", "public Integer getInteger(String key, Integer defaultValue) {\n if (!jsonData.has(key)) {\n return defaultValue;\n }\n try {\n return jsonData.getInt(key);\n } catch (Exception ex) {\n return null;\n }\n }", "public int getInt( String key, int defaultValue )\n {\n int value = defaultValue;\n try\n {\n if ( config != null )\n {\n value = config.getInt( key, defaultValue );\n LOG.debug( \"getInt name [{}] value [{}]\", key, value );\n }\n else\n {\n LOG.warn( \"getInt invalid config, can't read prop [{}], using default [{}]\", key, defaultValue );\n }\n }\n catch (java.lang.IllegalStateException e )\n {\n LOG.debug( \"getInt - illegal state exception [{}], using default [{}]\", key, defaultValue );\n }\n catch (org.apache.commons.configuration.ConversionException e)\n {\n LOG.debug( \"getInt name [{}], conversion exception using default [{}]\", key, defaultValue );\n }\n return value;\n }", "public static int getInt(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n return Integer.parseInt(PROP.getProperty(key));\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\");\r\n }", "public Integer getInt(String key)\n\t{\n\t\tLong l = getLong(key);\n\t\tif(l == null)\n\t\t\treturn null;\n\t\treturn l.intValue();\n\t}", "public Integer getPropertyAsInteger(String property) {\n try {\n return Integer.valueOf(properties.getProperty(property));\n } catch (NumberFormatException e) {\n }\n return null;\n }", "public int getInteger(String key) {\r\n try {\r\n return Integer.decode(getString(key)).intValue();\r\n }\r\n catch (Exception e) {\r\n return 0;\r\n }\r\n }", "public Integer getInteger(String key) {\n if (!jsonData.has(key))\n return null;\n try {\n return jsonData.getInt(key);\n } catch (Exception ex) {\n return null;\n }\n }", "public Integer getInt(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tInteger result = PrimitiveDataTypeConvertor.toInteger(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Integer\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static int getPropertyInt(String prop) {\n int ret = 0;\n try{\n ret = Integer.valueOf(properties.getProperty(prop));\n } catch (NumberFormatException e){\n log.log(Level.SEVERE, \"Integer return could not be found for property: \" + prop + \" - Exception: \" + e, e);\n }\n return ret;\n }", "private int getIntProperty(String propName) {\n return Integer.parseInt(Objects.requireNonNull(env.getProperty(propName)));\n }", "public static int getIntForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserIntPref(key, -1);\n\t}", "public int getInt(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for integer configuration parameter: \" + key);\n\t\t}\n\t}", "private int getIntProperty(String propName) {\n\t\t\n\t\tString propVal = env.getProperty(propName);\n\t\t\n\t\t// convert to int \n\t\tint intPropVal = Integer.parseInt(propVal);\n\t\t\n\t\treturn intPropVal;\n\t}", "public static int getConfigValueAsInt(Map config, String key, int defaultValue) {\n Object value = getConfigValue(config, key, defaultValue);\n return DefaultTypeTransformation.castToNumber(value).intValue();\n }", "public static int getInt(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as an integer.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}", "public int getInt(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\tthrow new PropertiesPlusException(property+\" is not defined.\");\n\t\ttry\n\t\t{\n\t\t\treturn Integer.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type int\", property, value));\n\t\t}\n\t}", "public int getIdAsInt(String key) {\n Object obj = ids.get(key);\n if (obj == null) {\n return 0;\n }\n if (obj instanceof Integer) {\n return (Integer) obj;\n }\n\n if (obj instanceof String) {\n try {\n return Integer.parseInt((String) obj);\n }\n catch (Exception e) {\n LOGGER.trace(\"could not parse int: {}\", e.getMessage());\n }\n }\n\n return 0;\n }", "public Integer getInt(K key) throws ClassCastException;", "int getInt( String key, int def);", "public static Integer getInteger(String key, int defaultValue, String consumer) {\n systemPropertyQueried(key, consumer);\n return Integer.getInteger(key, defaultValue);\n }", "public int getIntValue(String keyName)\n {\n return Integer.parseInt(getValue(keyName));\n }", "public int getInt(String key) {\n int value = 0;\n try {\n value = mConfigurations.getInt(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving integer from JSONObject.\");\n }\n return value;\n }", "public int getInt(String key) throws AgentBuilderRuntimeException {\n\t\treturn getInteger(key).intValue();\n\t}", "int getInt(String key) throws KeyValueStoreException;", "public static Integer getInteger(String key, Integer defaultValue, String consumer) {\n systemPropertyQueried(key, consumer);\n return Integer.getInteger(key, defaultValue);\n }", "public static int getIntPreference(String key, int defaultValue) {\n return sharedPreferences.getInt(key, defaultValue);\n }", "public static int getInt(String pName) {\n int out = 0;\n try {\n out = Integer.parseInt(properties.getProperty(pName));\n } catch (NumberFormatException e) {\n out = Integer.parseInt(defaults.getProperty(pName));\n Log.debug(\"Cannot parse property: \" + pName);\n Log.debug(e);\n }\n return out;\n }", "@Override\n public int getInt(String key, int defaultVal) {\n return mSharedPreferences.getInt(key, defaultVal);\n }", "public int intValue(Map<Prop, Object> map) {\n assert type == Integer.class;\n Object o = map.get(this);\n return this.<Integer>typeValue(o);\n }", "protected final Integer getInt(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getInt(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }", "private int getIntProperty(String p) {\n\t\tString propval=env.getProperty(p);\n\t\tint propvalint=Integer.parseInt(propval);\n\t\treturn propvalint;\n\t}", "int getInt(String key);", "public int getInt(String key, int fallback)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? fallback : section.getInt(pieces[1], fallback);\n }\n\n if (!data.containsKey(key)) return fallback;\n Object obj = data.get(key);\n try\n {\n return Integer.parseInt(obj.toString());\n }\n catch (Exception ex)\n {\n return fallback;\n }\n }", "public int get(String key, int def)\n {\n try\n {\n String val = get(key);\n return Integer.parseInt(val);\n }\n catch(Exception e)\n {\n return def;\n }\n }", "public int getInt(String urlKey) {\n\t\tint value = 0;\n\t\tString text = null;\n\t\ttry{\n\t\t\ttext = properties.getProperty(urlKey).trim();\n\t\t\tvalue = Integer.parseInt(text);\n\t\t}catch(Exception e){\n\t\t\tLOGGER.error(\"Couldn't parse \"+urlKey +\":\" + text+\"\\n\"+e);\n\t\t}\n\t\treturn value;\t\t\t\t\n\t}", "public Integer getIntegerData(String key) {\n return pref.getInt(key, 0);\n }", "private int getRequiredProperty(String propName, Properties prop)\n {\n if ((propName == null) || (propName.trim().length() < 1))\n throw new IllegalArgumentException(\"propName may not be null or empty\");\n if (prop == null)\n throw new IllegalArgumentException(\"prop may not be null\");\n\n String strValue = prop.getProperty(propName);\n if ((strValue == null) || (strValue.trim().length() < 1))\n {\n PSLogger.logInfo(\n \"Value of property : \" + propName + \" is null or empty.\");\n return -1;\n }\n\n int value = -1;\n try\n {\n value = Integer.parseInt(strValue);\n }\n catch (Throwable t)\n {\n PSLogger.logInfo(\n \"Value of property : \" + propName + \" is invalid.\");\n PSLogger.logInfo(t.getLocalizedMessage());\n return -1;\n }\n return value;\n }", "protected synchronized int getIntegerValue(String tag) {\n int returnInt = 0;\n if (actualProperties != null) {\n returnInt = Integer.decode(actualProperties.getProperty(tag, \"0\"));\n }\n return returnInt;\n }", "public int getValue(String key, int defaultValue) {\n return mSharedPreferences.getInt(key, defaultValue);\n }", "public int getInt(String key, int defValue) {\r\n\t\treturn getInt(Global.getContext(), key, defValue);\r\n\t}", "public Integer getInt(String jsonData, String key, Integer defaultValue) {\n\t\tif (TextUtils.isEmpty(jsonData)) {\n\t\t\treturn defaultValue;\n\t\t}\n\n\t\ttry {\n\t\t\tJSONObject jsonObject = new JSONObject(jsonData);\n\t\t\treturn getInt(jsonObject, key, defaultValue);\n\t\t} catch (JSONException e) {\n\t\t\tif (isPrintException) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn defaultValue;\n\t\t}\n\t}", "public static int getIntParam(String key) throws InvalidParam {\n return getCurrentConfig().getInt(key);\n }", "public static final int getIntegerParam(Map<String,String> params, String key, int def) {\n\t\ttry {\n\t\t\treturn Integer.parseInt(params.get(key));\n\t\t} catch (Exception e) {\n\t\t\treturn def;\n\t\t}\n\t}", "public static final int getInt(String pname, int defaultValue)\n\t{\n\t\tConfigReader cr = getCR();\n\t\tString p = cr.m_properties.getProperty(pname);\n\t\t\n\t\ttry {\n\t\t\treturn Integer.parseInt(p);\n\t\t} catch(Exception e) {\n\t\t\tput(pname, defaultValue);\n\t\t\treturn defaultValue;\n\t\t}\n\t}", "public static int getInt(String sPropertyName, int iDefaultValue) {\r\n try {\r\n String sProperty = getProperty(sPropertyName);\r\n return Integer.parseInt(sProperty);\r\n } catch (Exception e) {\r\n return iDefaultValue;\r\n }\r\n }", "private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}", "public static int getIntValue1(final String prefFile, final String key, final int defaultvalue) {\n return getSharedPreferences(prefFile).getInt(key, defaultvalue);\n }", "public static int getIntPreference(Context ctx, String key) {\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n return sharedPreferences.getInt(key, 0);\n }", "private static int getIntFromJson(final JsonObject jsonObject,\n final String key, final int defaultValue) throws ClassCastException\n {\n if (jsonObject != null && jsonObject.get(key) != null\n && !jsonObject.get(key).isJsonNull())\n {\n return jsonObject.get(key).getAsInt();\n }\n return defaultValue;\n }", "protected int getIntPrefOrDefault(String key, int defValue) {\n try {\n return getPrefs().getInt(key, defValue);\n } catch (ClassCastException ex) {\n Log.w(\"SpeakerPhone_preference\", \"Bad preference: \" + key, ex);\n return defValue;\n }\n }", "public Integer getAsInt(final String name) {\r\n Integer returnValue = null;\r\n try {\r\n returnValue = Integer.parseInt(getProperty(name));\r\n }\r\n catch (final NumberFormatException e) {\r\n LOGGER.error(\"Error on parsing configuration property '\" + name + \"'. Property must be a integer!.\");\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on parsing configuration property '\" + name + \"'. Property must be a integer!\", e);\r\n }\r\n }\r\n return returnValue;\r\n }", "int getInt(int index) throws PropertyException {\n return this.getNumber(index).intValue();\n }", "private int getOptionalIntegerProperty(String[] propertyNameList, int defaultValue) {\n\t\ttry {\n\t\t\tString value = getOptionalStringProperty(propertyNameList);\n\t\t\tif (value == null)\n\t\t\t\treturn defaultValue;\n\t\t\treturn Integer.parseInt(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\t\n\t}", "public Integer getInteger(JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null )\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isNull() !=null)\r\n\t\t\treturn null ; \r\n\t\tif ( actualVal.isNumber() !=null)\r\n\t\t\treturn ((Double)actualVal.isNumber().doubleValue()).intValue();\r\n\t\treturn null ; \r\n\t}", "private int getInt(String whatProperty, String levelConfigFilePath) {\n return getInt(levelConfig, whatProperty, levelConfigFilePath);\n }", "public Integer getInt(String key,int defautl){\n\t\treturn this.getParam(key,defautl);\n\t}", "public static int getValueInt()\n {\n return Util.valueInt;\n }", "protected synchronized int getIntegerValue(String tag, int defaultValue) {\n int returnInt = defaultValue;\n String defaultReturnString = Integer.toString(defaultValue);\n if (actualProperties != null) {\n returnInt = Integer.decode(actualProperties.getProperty(tag, defaultReturnString));\n }\n return returnInt;\n }", "public Integer getInt(String propertyName) {\n if (this.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n return Integer.valueOf(this.propertyBag.getInt(propertyName));\n } else {\n return null;\n }\n }", "public static int getIntegerValue(Node node, String attrName, int defaultValue) {\r\n String value = getValue(node, attrName, null);\r\n\r\n if (value == null)\r\n return defaultValue;\r\n\r\n try {\r\n return Integer.valueOf(value);\r\n } catch (NumberFormatException e) {\r\n return defaultValue;\r\n }\r\n }", "public static int getIntValue(final String prefFile, final String key) {\n return getSharedPreferences(prefFile).getInt(key, 0);\n }", "@Api(1.0)\n @Nullable\n public Integer getInteger(@NonNull String propertyName, @Nullable Integer value) {\n if (getSharedPreferences().contains(propertyName)) {\n int val = value != null ? value : 0;\n return getSharedPreferences().getInt(propertyName, val);\n }\n return value;\n }", "public Integer getInt(JSONObject jsonObject, String key,\n\t\t\tInteger defaultValue) {\n\t\tif (jsonObject == null || TextUtils.isEmpty(key)) {\n\t\t\treturn defaultValue;\n\t\t}\n\n\t\ttry {\n\t\t\treturn jsonObject.getInt(key);\n\t\t} catch (JSONException e) {\n\t\t\tif (isPrintException) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn defaultValue;\n\t\t}\n\t}", "protected Object getMapKeyForTradingProperty(TradingProperty tradingProperty)\n {\n return new Integer(((SimpleIntegerTradingProperty)tradingProperty).getIntegerValue());\n }", "public static Integer getInteger(String key)\n\t\t\tthrows MissingResourceException {\n\t\treturn Integer.valueOf(resourceBundle.getString(key));\n\t}", "public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}", "public int getMandatoryInt(String key) throws ConfigNotFoundException;", "public static double getInteger(String prop, int def)\n {\n return Integer.parseInt(props.getProperty(prop, \"\" + def));\n }", "public int get(int key) {\n return 1;\n }", "public static int getInt(String key, int i) {\n\t\tString token = getSystemString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Integer.parseInt(token);\n\t}", "public static Integer getInteger(String key, String consumer) {\n systemPropertyQueried(key, consumer);\n return Integer.getInteger(key);\n }" ]
[ "0.83250684", "0.8281877", "0.8025156", "0.80093396", "0.8000306", "0.79824954", "0.78288054", "0.77726865", "0.75525343", "0.7487649", "0.7420948", "0.73140335", "0.7202579", "0.7149765", "0.71292186", "0.7118114", "0.71102107", "0.7081332", "0.7080028", "0.70243305", "0.69991297", "0.695939", "0.6953436", "0.6913757", "0.6812717", "0.6791253", "0.67793345", "0.6769242", "0.67649686", "0.66492987", "0.664826", "0.66089255", "0.659464", "0.6564384", "0.652551", "0.65054756", "0.64999044", "0.6499002", "0.64973783", "0.64914984", "0.64893776", "0.6459797", "0.64461714", "0.640983", "0.6402191", "0.6401811", "0.63816375", "0.6369399", "0.6354383", "0.6350472", "0.6330735", "0.6318184", "0.6273784", "0.6258418", "0.62564415", "0.6240059", "0.6234337", "0.6222098", "0.62090826", "0.62003434", "0.6191641", "0.6190066", "0.6161283", "0.6150434", "0.6142697", "0.61312073", "0.60976094", "0.60771877", "0.6035608", "0.60182256", "0.60061145", "0.6004708", "0.60027945", "0.5986575", "0.5976065", "0.59554374", "0.5954083", "0.59518546", "0.59450555", "0.59203637", "0.5896329", "0.5890606", "0.58809143", "0.5876683", "0.5867267", "0.58530366", "0.5845091", "0.58401334", "0.5832974", "0.5817682", "0.5811795", "0.57975614", "0.5775792", "0.5766754", "0.57526565", "0.5750849", "0.574383", "0.57413554", "0.5724685", "0.5724036" ]
0.783341
6
Include Springlets Starter project dependencies and properties
@Override public void setupJpaAudit(Pom module) { getProjectOperations().addProperty("", SPRINGLETS_VERSION_PROPERTY); // If current project is a multimodule project, include dependencies first // on dependencyManagement and then on current module getProjectOperations().addDependency(module.getModuleName(), SPRINGLETS_DATA_JPA_STARTER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void configureResourceBundles() {\n getResourceBundles().addJavaScriptBundle(XKonneXRepoApplication.class, \"core.js\",\n (JavaScriptResourceReference) getJavaScriptLibrarySettings().getJQueryReference(),\n (JavaScriptResourceReference) getJavaScriptLibrarySettings().getWicketEventReference(),\n (JavaScriptResourceReference) getJavaScriptLibrarySettings().getWicketAjaxReference()\n );\n\n getResourceBundles().addCssBundle(XKonneXRepoApplication.class, \"application.css\",\n org.xkonnex.repo.server.web.layout.FixBootstrapStylesCssResourceReference.INSTANCE\n );\n }", "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}", "SpringLoader getSpringLoader();", "@Override\n public void init() {\n String[] args = this.getParameters().getRaw().toArray(new String[0]);\n // We run Spring context initialization at the time of JavaFX initialization:\n springContext = SpringApplication.run(MainApp.class, args);\n }", "private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }", "protected Spring() {}", "@Override\n protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {\n return application.sources(DemowebosApplication.class);\n }", "void setSpringLoader(final SpringLoader springLoader);", "public static void main(String[] args) {\r\n\r\n\t \tSystem.setProperty(\"spring.config.name\", \"sandun-personal-project\");\r\n\t\tSpringApplication.run(ApplicationServer.class, args);\r\n\t}", "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);\n }", "public static void main(String[] args) {\n \n ApplicationContext context =\n new ClassPathXmlApplicationContext(\"spring-beans.xml\");\n \n \n Dependant dependant = context.getBean(\"dependant\", Dependant.class);\n \n }", "@Before\n public void setup() throws IOException {\n TemplateLoader normalLoader = freemarkerConfig.getConfiguration().getTemplateLoader();\n freemarkerConfig.getConfiguration().setTemplateLoader(new MultiTemplateLoader(new TemplateLoader[] {\n new FileTemplateLoader(new File(\"CommonWeb/web/WEB-INF/freemarker\")),\n normalLoader\n }));\n\n // Setup Spring test in standalone mode\n this.mockMvc = MockMvcBuilders\n .webAppContextSetup(webApplicationContext)\n .build();\n }", "public static void main(String[] args){\n\t\tAnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);\n\t\t//applicationContext.addApplicationListener(new MyApplicationStartListener());\n\t\tapplicationContext.setParent(new ClassPathXmlApplicationContext(\"WEB-INF/application-context.xml\"));\n\t\tapplicationContext.start();\n\t\t\n\t\tHelloWorld helloWorld = (HelloWorld) applicationContext.getBean(\"helloWorld\");\n\t\thelloWorld.sayHello();\n\t\t\n\t\t/*BookJdbcTemplate bookJdbcTemplate = new BookJdbcTemplate();\n\t\tJdbcTemplate jdbcTemplate = (JdbcTemplate) applicationContext.getBean(\"jdbcTemplate\");\n\t\tbookJdbcTemplate.setJdbcTemplate(jdbcTemplate);\n\t\tSystem.out.println(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));\n\t\tlogger.debug(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));*/\n\t}", "@Bean\n public static PropertySourcesPlaceholderConfigurer properties(){\n PropertySourcesPlaceholderConfigurer pspc\n = new PropertySourcesPlaceholderConfigurer();\n Resource[] resources = new ClassPathResource[ ]\n { new ClassPathResource(\"app-attribute.properties\") };\n pspc.setLocations( resources );\n pspc.setIgnoreUnresolvablePlaceholders( true );\n return pspc;\n }", "@Override\n public void initialize(ConfigurableApplicationContext applicationContext) {\n\n System.out.println(\"========ApplicationContextInitializer===================\");\n\n ConfigurableEnvironment environment = applicationContext.getEnvironment();\n\n\n MutablePropertySources propertySources = environment.getPropertySources();\n\n // 模拟远程拉配置信息\n Map<String, Object> config = ConfigServer.getRemoteConfig();\n\n MapPropertySource propertySource = new MapPropertySource(\"test-config\", config);\n propertySources.addFirst(propertySource);\n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "@PostConstruct\r\n\tpublic void demoOnly() {\r\n\t\t// Can't do this in the constructor because the RestTemplate injection\r\n\t\t// happens afterwards.\r\n\t\tlogger.warning(\"The RestTemplate request factory is \"\r\n\t\t\t\t+ restTemplate.getRequestFactory());\r\n\t}", "public static void main(final String[] args) throws Exception {\n Resource.setDefaultUseCaches(false);\n Integer SERVER_PORT = Integer.parseInt(ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.port\"));\n String SERVER_HOST = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.host\");\n String CONTEXT_PATH = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.context_path\");\n \n final Server server = new Server(SERVER_PORT);\n System.setProperty(AppConfig.SERVER_PORT, SERVER_PORT.toString());\n System.setProperty(AppConfig.SERVER_HOST, SERVER_HOST);\n System.setProperty(AppConfig.CONTEXT_PATH, CONTEXT_PATH);\n \n\n // Configuring Apache CXF servlet and Spring listener \n final ServletHolder servletHolder = new ServletHolder(new CXFServlet());\n final ServletContextHandler context = new ServletContextHandler();\n context.setContextPath(\"/\");\n context.addServlet(servletHolder, \"/\" + CONTEXT_PATH + \"/*\");\n context.addEventListener(new ContextLoaderListener());\n context.setInitParameter(\"contextClass\", AnnotationConfigWebApplicationContext.class.getName());\n context.setInitParameter(\"contextConfigLocation\", AppConfig.class.getName());\n \n FilterHolder filterHolder = context.addFilter(CrossOriginFilter.class,\"/*\",EnumSet.allOf(DispatcherType.class));\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_ORIGINS_PARAM,\"*\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_HEADERS_PARAM,\"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_METHODS_PARAM,\"GET,PUT,POST,DELETE,OPTIONS\");\n filterHolder.setInitParameter(CrossOriginFilter.PREFLIGHT_MAX_AGE_PARAM,\"5184000\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOW_CREDENTIALS_PARAM,\"true\");\n\n\n // Configuring Swagger as static web resource\n final ServletHolder swaggerHolder = new ServletHolder(new DefaultServlet());\n final ServletContextHandler swagger = new ServletContextHandler();\n swagger.setContextPath(\"/swagger\");\n swagger.addServlet(swaggerHolder, \"/*\");\n swagger.setResourceBase(new ClassPathResource(\"/webapp\").getURI().toString());\n\n final HandlerList handlers = new HandlerList();\n handlers.addHandler(swagger);\n handlers.addHandler(context);\n\n server.setHandler(handlers);\n server.start();\n server.join();\n }", "@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }", "@Before\n\tpublic static void setup() {\n\t\trenderArgs.put(\"base\", request.getBase());\n\t\tString location = request.getBase() + \"/services/MonitoringService\";\n\t\trenderArgs.put(\"location\", location);\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\ttoolsClient = galaxyApiService.getGalaxyInstance().getToolsClient();\n\t}", "public MyDemoApplication(){\n\t\t//System.out.println(\"hi\");\n\t\t/*register(RequestContextFilter.class);\n\t\tregister(RestServiceUsingJersey.class);\n\t\tregister(ServiceYearImpl.class);\n\t\tregister(YearDaoImpl.class);\n\t\tregister(JacksonFeature.class);*/\n\t\t\n\t\t/**\n\t\t * Register JAX-RS application components.\n\t\t */\n\t\t\n\t\t\t\n\t packages(\"com.reporting.webapi\");\n\n\t\t\t// register features\n\t\t\tEncodingFilter.enableFor(this, GZipEncoder.class);\t\t\n\t\t\t\n\t\n\n\t}", "@Override\n public void onStartup(ServletContext container) {\n AnnotationConfigWebApplicationContext rootContext =\n new AnnotationConfigWebApplicationContext();\n rootContext.register(ApplicationConfig.class);\n rootContext.setConfigLocation(\"example.spring\");\n\n // Manage the lifecycle of the root application context\n container.addListener(new ContextLoaderListener(rootContext));\n container.addListener(new RequestContextListener());\n\n // The following line is required to avoid having jersey-spring3 registering it's own Spring root context.\n container.setInitParameter(\"contextConfigLocation\", \"\");\n\n }", "public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "public static void main(String[] args) {\n AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();\n ctx.register(ApplicationConfig.class);\n ctx.register(ApplicationContext.class);\n ctx.register(PersistenceContext.class);\n ctx.register(ProductionContext.class);\n ctx.register(SwaggerConfig.class);\n\n SpringApplication.run(Application.class);\n }", "public static void main(String[] args) {\n\t\t\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);\n\nStudent s1 = context.getBean(\"s1\", Student.class);\n\nSystem.out.println(s1);\n\n\n\t}", "@Override\n public void initialize(Bootstrap<AppConfig> bootstrap) {\n bootstrap.setConfigurationSourceProvider(\n new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(),\n new EnvironmentVariableSubstitutor(false)\n )\n );\n \n bootstrap.addBundle(new FlywayBundle<AppConfig>() {\n \n @Override\n public DataSourceFactory getDataSourceFactory(AppConfig configuration) {\n return configuration.getDataSourceFactory();\n }\n \n @Override\n public FlywayFactory getFlywayFactory(AppConfig configuration) {\n return configuration.getFlywayFactory();\n }\n });\n }", "public static void main(String[] args) {\n\t\tApplicationContext ctx = new ClassPathXmlApplicationContext(\"classpath:spring-config.xml\");\n\t\tStage stage = (Stage)ctx.getBean(\"Stage\");\n\t\tstage.says();\n\t\tstage.says();\n\t}", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n final WebEngine webEngine = web.getEngine();\n String newUrl = \"https://dounder.github.io/bootstrap4\";\n webEngine.load(newUrl);\n }", "@PostConstruct\n\tpublic void setup() throws ServletException {\n\t\tif (StringUtils.isEmpty(adminId) || StringUtils.isEmpty(adminPwd)) {\n\t\t\tthrow new ServletException(\"System admin ID/password are not defined in properties file.\");\n\t\t}\n\n\t\tsecret = adminId + \":\" + adminPwd;\n\t}", "public static void main(String[] args){\n System.setProperty(\"spring.jackson.serialization.INDENT_OUTPUT\", \"true\");\n\n SpringApplication application = new SpringApplication(Application.class);\n application.addListeners(new ApplicationPidFileWriter(\"ms-recommendation.pid\"));\n application.run(args);\n }", "@Autowired\n public void setGreetingService(GreetingsServiceUsingSpring greetingsServiceUsingSpring) {\n this.greetingsServiceImplUsingSpring = greetingsServiceUsingSpring;\n }", "public static void main(String[] args) {\n\t\t Resource res = new ClassPathResource(\"applicationContext.xml\");\n\t BeanFactory factory = new XmlBeanFactory(res);\n\t \n\t Object o = factory.getBean(\"department\");\n\t Department dep = (Department)o;\n\t \n\t dep.show();\n\t}", "@Bean\n public HawtPlugin samplePlugin() {\n return new HawtPlugin(\"sample-plugin\", \"plugins\", \"\", new String[] { \"sample-plugin/js/sample-plugin.js\" });\n }", "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "@Before\n public void setUp() {\n configuration.resolveAdditionalDependenciesFromClassPath(false);\n }", "@RequestMapping(value = \"/bootstrap/angular/init.js\", method = RequestMethod.GET)\n public String init() {\n return \"WEB-INF/bootstrap/angular/init\";\n }", "@Test\n\tpublic void testMain() {\n\t\tProjectManagerRestfulApiApp.main(new String[] {\n\t\t\t\t\"spring.profiles.active=test\"\n\t\t});\n\t}", "public static void main(String[] args) {\t\t\n\t\t\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"com/newlecture/web/spring-context.xml\");\n\t\t\n\t\tNoticeConsole console = (NoticeConsole) context.getBean(\"console\");\n\t\tconsole.print();\n\t}", "public void init() \n { Prepare the FreeMarker configuration;\n // - Load templates from the WEB-INF/templates directory of the Web app.\n //\n cfg = new Configuration();\n cfg.setServletContextForTemplateLoading(\n getServletContext(), \n \"WEB-INF/templates\"\n );\n }", "@Override public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n\n }", "public static void main(String[] args) {\n Greet visitor = getClassContext().getBean(\"visitorGreet\" , Greet.class);\n\n System.out.println(visitor.getGreeting());\n System.out.println(visitor.getGoodSpecialGreeting());\n System.out.println(visitor.getBadSpecialGreeting());\n System.out.println(\"Name: \" + visitor.getName());\n System.out.println(\"Email: \" + visitor.getEmail());\n\n //beans in config class\n AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DanceConfig.class);\n Dancer dancer = context.getBean(\"dancer\" , Dancer.class);\n System.out.println(dancer.getStyle());\n }", "public static void main(String[] args) throws ClassNotFoundException {\n AnotherSpring anotherSpring = new AnotherSpring();\n anotherSpring.loadComponent(args);\n anotherSpring.startServer();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Sample Spring Application!!\");\n\t\t\n\t\t//EmployeeService employeeService = new EmployeeServiceImpl();\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t\n\t\t\n\t\tEmployeeService employeeService = applicationContext.getBean(\"employeeService\", EmployeeService.class);\n\t\tSystem.out.println(employeeService.getAllEmployee().get(0).getName());\n\t}", "public static void main(String[] args) {\n\t\tlogger.info(\"Initializing Spring boot\");\r\n\t\tSpringApplication.run(TesterMain.class, args);\r\n\t\tlogger.info(\"Spring boot initialized\");\r\n\r\n\t}", "@Override\n public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n }", "private void loadStyles() {\n ShowcaseResources.INSTANCE.showcaseCss().ensureInjected();\n RoundedCornersResource.INSTANCE.roundCornersCss().ensureInjected();\n }", "@BeforeAll\n public static void configInitialization() {\n System.setProperty(\"VSAC_DRC_URL\", \"https://vsac.nlm.nih.gov/vsac\");\n System.setProperty(\"SERVER_TICKET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/Ticket\");\n System.setProperty(\"SERVER_SINGLE_VALUESET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/RetrieveValueSet?\");\n System.setProperty(\"SERVER_MULTIPLE_VALUESET_URL_NEW\", \"https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets?\");\n System.setProperty(\"SERVICE_URL\", \"http://umlsks.nlm.nih.gov\");\n System.setProperty(\"PROFILE_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/profiles\");\n System.setProperty(\"VERSION_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/oid/\");\n }", "public static void main(String[] args) {\n AbstractApplicationContext context = new AnnotationConfigApplicationContext(\"com.ravindra\");\n Product p =(Product)context.getBean(\"product \");\n p.setId(\"123\");\n p.setName(\"Dell\");\n p.setPrice(400);\n System.out.println(p.toString());\n }", "public static void main(String[] args) {\n\n SpringApplication app = new SpringApplication(Main.class);\n app.run(args);\n// SpringApplication.run(Main.class);\n }", "@Autowired\n public void setWebApp( WebApp sysDesc ) {\n webapp = sysDesc;\n }", "protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }", "public TestGenericWebXmlContextLoader() {\r\n\t\tsuper(\"/src/main/wepapp\", false);\r\n\t}", "@Bean\n public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer()\n {\n return new PropertySourcesPlaceholderConfigurer();\n }", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "@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 }", "public static void main(String[] args) {\n\t\tlogger.debug(\"Welcome to Spring concept demo\");\n\t\tApplicationContext context=SpringApplication.run(NewHelloWorldApplication.class, args);\n\t\tDemoBean demoBean=context.getBean(DemoBean.class);\n\t\t//System.out.println(\"Demo Bean= \"+demoBean.toString());\n\t\t//System.out.println(context.getBean(HelloRestController.class));\n\t\tlogger.debug(\"Demo Bean= \"+demoBean.toString());\n\t\t\n\t\tEmployeeBean employeeBean=context.getBean(EmployeeBean.class);\n\t\temployeeBean.setEid(104);\n\t\temployeeBean.setEname(\"Spring Framework Guru\");\n\t\temployeeBean.showEmployeeDetails();\n\t}", "public void configureServerInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);", "@Override\n\tpublic void contextInitialized(ServletContextEvent event) {\n\n\t\t// Remember the application's root so we can load properties from it later\n\t\tR.STAREXEC_ROOT = event.getServletContext().getRealPath(\"/\");\n\n\t\tlog = StarLogger.getLogger(Starexec.class);\n\n\t\t/* uncomment to debug what is happening with logback configuration:\n\t\tLoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();\n\t\tch.qos.logback.core.util.StatusPrinter.print(context); */\n\n\t\t// HERE\n\t\tlog.debug(\"\\n\\nHERE: Java Version: \"+System.getProperty(\"java.version\")+\"\\n\\n\");\n\n\t\t// Log info on the initialization stack\n\t\t/*\n\t\tlog.info( \"\\n\\nstarting Starexec.contextInitialized()\\n\" );\n\t\tStackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();\n\t\tString stackString = \"\";\n\t\tfor ( StackTraceElement element : stacktrace ) {\n\t\t\tstackString += element.toString()+\"\\n\";\n\t\t}\n\t\tlog.debug( \"\\n\\ncontextInitialized() stackString:\\n\"+stackString+\"\\n\" );\n\t\t\n\t\tlog.debug( \"\\n\\nR.STAREXEC_ROOT: \"+R.STAREXEC_ROOT+\"\\nenvvar SGE_ROOT: \"+System.getenv(\"SGE_ROOT\")+\"\\nR.BACKEND_ROOT: \"+R.BACKEND_ROOT+\"\\n\" );\n\t\t*/\n\n\t\tlog.info(String.format(\"StarExec started at [%s]\", R.STAREXEC_ROOT));\n\t\ttry {\n\t\t\tlog.info(\"Starexec running as \" + Util.executeCommand(\"whoami\"));\n\t\t} catch (IOException e1) {\n\t\t\tlog.error(\"unable to execute whoami\");\n\t\t}\n\t\t// Setup the path to starexec's configuration files\n\t\tR.CONFIG_PATH = new File(R.STAREXEC_ROOT, \"/WEB-INF/classes/org/starexec/config/\").getAbsolutePath();\n\t\tR.RUNSOLVER_PATH = new File(R.getSolverPath(), \"runsolver\").getAbsolutePath();\n\n\t\t// Initialize the datapool after properties are loaded\n\t\tCommon.initialize();\n\n\t\tR.logProperties();\n\n\t\ttry {\n\t\t\tFileUtils.copyFile(new File(R.CONFIG_PATH, \"sge/runsolver\"), new File(R.RUNSOLVER_PATH));\n\t\t\tUtil.chmodDirectory(R.RUNSOLVER_PATH, false);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e.getMessage(), e);\n\t\t}\n\n\t\t// Initialize the validator (compile regexes) after properties are loaded\n\t\tValidator.initialize();\n\n\n\t\tif (R.IS_FULL_STAREXEC_INSTANCE) {\n\t\t\t// log.debug( \"\\n\\nR.BACKEND_ROOT: \"+R.BACKEND_ROOT+\"\\n\" );\n\n\t\t\tR.BACKEND.initialize(R.BACKEND_ROOT);\n\t\t}\n\n\t\ttry {\n\t\t\tR.PUBLIC_USER_ID = Users.get(\"public\").getId();\n\t\t} catch (Exception e) {\n\t\t\tlog.fatal(\"!!! No public user found !!! Cannot continue !!!\", e);\n\t\t\tthrow e;\n\t\t}\n\n\t\tSystem.setProperty(\"http.proxyHost\", R.HTTP_PROXY_HOST);\n\t\tSystem.setProperty(\"http.proxyPort\", R.HTTP_PROXY_PORT);\n\n\t\torg.starexec.data.security.GeneralSecurity.test();\n\n\t\t// Schedule necessary periodic tasks to run\n\t\tthis.scheduleRecurringTasks();\n\n\t\t// Set any application variables to be used on JSP's with EL\n\t\tevent.getServletContext().setAttribute(\"buildVersion\", R.buildVersion);\n\t\tevent.getServletContext().setAttribute(\"buildDate\", R.buildDate);\n\t\tevent.getServletContext().setAttribute(\"buildUser\", R.buildUser);\n\t\tevent.getServletContext().setAttribute(\"contactEmail\", R.CONTACT_EMAIL);\n\n\t\tAnalytics.STAREXEC_DEPLOY.record();\n\n\t\tlog.info( \"finishing Starexec.contextInitialized()\" );\n\t}", "public static void main(String[] args){\n // app.run(args);\r\n new SpringApplicationBuilder(MainApplication.class).web(true).run(args);\r\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);\n\t\tSamsung s8 = factory.getBean(Samsung.class);\n\t\ts8.config();\n\n\t}", "public static void main(String[] args) \r\n\t{\n\t\tString s = \"resources/spring.xml\";\r\nApplicationContext ac = new ClassPathXmlApplicationContext(s);\r\nCar c=(Car)ac.getBean(\"c\");\r\nc.printCarDetails();\r\n\t}", "public static void main( String[] args )\n {\n \tApplicationContext context=new FileSystemXmlApplicationContext(\"beans.xml\");\n \tTraveller traveller=(Traveller)context.getBean(\"traveller\"); //SPRING CONTAINER\n \tSystem.out.println(traveller.getTravelDetails());\n\n }", "protected void initMergedResources()\n {\n // Tell fiftyfive-wicket-js where to find custom JS libs for this app\n // (i.e. those that can be referenced via //= require <lib>).\n // This corresponds to src/main/resources/.../scripts.\n JavaScriptDependencySettings.get().addLibraryPath(\n WicketApplication.class, \"scripts\"\n );\n \n // Mount merged JS\n new MergedJavaScriptBuilder()\n .setPath(\"/scripts/all.js\")\n .addJQueryUI()\n .addLibrary(\"cookies\")\n .addLibrary(\"strftime\")\n .addLibrary(\"55_utils\")\n .addLibrary(\"jquery.55_utils\")\n .addAssociatedScript(BasePage.class)\n .addWicketAjaxLibraries()\n .build(this);\n }", "public void init() {\n- newProject = new Project();\n- newProject.setDefaultInputStream(getProject().getDefaultInputStream());\n+ newProject = getProject().createSubProject();\n newProject.setJavaVersionProperty();\n }", "public static void main(String [] args) {\n context = new AnnotationConfigApplicationContext(Config.class);\n // For the destroy method to work.\n context.registerShutdownHook();\n\n\n //TestService service = (TestService) context.getBean(\"test_service\");\n //PollingConsumer consumer = (PollingConsumer) context.getBean(\"test_consumer\");\n\n // Start tcp and flash servers\n Map<String, Initializer> initializers = context.getBeansOfType(Initializer.class);\n if (initializers != null) {\n for(Initializer initializer : initializers.values()) {\n initializer.initialize();\n }\n }\n\n NettyManager manager = context.getBean(NettyManager.class);\n try\n {\n manager.startServer();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "@Override\n protected void injectDependencies(Context context) {\n }", "public abstract void injectDependencies(@SuppressWarnings(\"rawtypes\") Feature feature);", "public static void main(String[] args) {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConfigClass.class);\n\t\t//Bean1 b1 = (Bean1) context.getBean(\"Bean1\");\n\t\tBean2 b2 = context.getBean(Bean2.class);\n\t\tb2.getProp1();\n\t\t\n\t}", "private SpringBoHelper() {\n\n\t}", "@Before\n public void setup() {\n // appContext = new AnnotationConfigApplicationContext(LibraryConfig.class);\n // subject = appContext.getBean(RemoveBookServiceValidator.class);\n // database = appContext.getBean(BookRepository.class);\n getBooks();\n }", "@Override\n protected SpringApplicationBuilder configure(SpringApplicationBuilder application){\n return application.sources(StartUpApplication.class);\n }", "private SpringApplicationContext() {}", "@Bean\n public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {\n return new PropertySourcesPlaceholderConfigurer();\n }", "@Bean\r\n\tpublic ServletContextInitializer initializer() {\r\n\t return new ServletContextInitializer() {\r\n\r\n\t\t\tpublic void onStartup(ServletContext servletContext) throws ServletException {\r\n\t\t\t\tservletContext.setInitParameter(\"log4jConfigLocation\", \"classes/log4j.properties\");\r\n\t\t\t\tservletContext.addListener(\"org.springframework.web.util.Log4jConfigListener\");\r\n\t\t\t\tservletContext.addListener(\"org.springframework.web.util.IntrospectorCleanupListener\");\r\n\t\t\t}\r\n\t \t\r\n\t };\r\n\t}", "private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props;\n }", "@Test\r\n void testCafeDsl() throws Exception {\n try(ConfigurableApplicationContext context= new SpringApplicationBuilder()\r\n .headless(true)\r\n .registerShutdownHook(true)\r\n .web(WebApplicationType.NONE)\r\n .bannerMode(Banner.Mode.OFF)\r\n .sources(de.freese.spring.integration.cafe.dsl.Application.class)\r\n .build()\r\n .run())\r\n //@formatter:on\r\n {\r\n testCafe(context);\r\n }\r\n }", "private SpringProfile() {}", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"springconfig.xml\");\n\t\t\n\t\t//2.Retrive Bean object from Bean Factory\n\t\tPhysicsTeacher teacherService = applicationContext.getBean(\"teacherService\", PhysicsTeacher.class);\n\t\t\n\t\t//3.1 Call the methods of bean to check dependency injection using setter injection\n\t\tteacherService.getHomeWork();\n\t\tteacherService.getQuotes();\n\t\t\n\t\t//3.2 Call the getters of literal values which are set through config file\n\t\tSystem.out.println(\"Name is: \"+teacherService.getName());\n\t\tSystem.out.println(\"Age is: \"+teacherService.getAge());\n\t\tSystem.out.println(\"City : \"+teacherService.getCity());\n\n\t\t\n\t\t//4 Close the Context\n\t\tapplicationContext.close();\n\n\t}", "public JerseyInitializer() {\n this.register(new JacksonJsonProvider(ObjectMapperFactory.create()));\n this.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n this.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n this.packages(true, \"com.hh.resources\");\n }", "private void installProcessingBeanProperties() {\n ProcessingBeanUpdater.getInstance();\r\n }", "public static void main(String[] args) {\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\n\t\t \r\n\t\tIMensaje mensaje = context.getBean(\"miBean\", Mensaje.class);\r\n\t\t\r\n\t\tmensaje.printHelloWorld(\"prueba Spring\");\r\n\t\t\r\n\t\t((AnnotationConfigApplicationContext) context).close();\r\n\t}", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void initOsgi();", "@ForApplication\n@Component(modules = {AppModule.class, NetworkModule.class})\npublic interface AppComponent {\n Context appContext();\n Resources resources();\n PreferencesHelper preferencesHelper();\n void inject(NewsPresenter newsPresenter);\n void inject(FeedStorage feedStorage);\n}", "@Activate\n protected void activate(ComponentContext context) {\n try {\n registerServlet(context.getBundleContext());\n log.debug(\"******* Governance S-Ramp bundle is activated ******* \");\n } catch (Throwable e) {\n log.error(\"******* Failed to activate Governance S-Ramp bundle ******* \", e);\n }\n }", "public static void main(String[] args) {\n\n SpringApplication.run(Application.class, args);\n // AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();\n }", "public AngularPageConfigurator()\n\t{\n\t\t//No config required\n\t}", "private SpringApplicationContextProvider() {\r\n\t}", "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }", "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\n//\n// SpeakerService service = context.getBean(\"speakerService\", SpeakerService.class);\n//\n// System.out.println(service);\n//\n// System.out.println(service.findAll().get(0).getFirstName());\n//\n /*\n * In case of Singleton\n * This will not instantiate new object of SpeakerService because it is singleton\n * Same reference will be returned\n * */\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n\n // XML Configuration\n// ApplicationContext context = new ClassPathXmlApplicationContext(\"ApplicationContext.xml\");\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n }", "boolean includeLibsComponent();", "private void setup(){\n\n // menginisialisasi variabel component\n component = DaggerApplicationComponent.builder()\n .applicationModule(new ApplicationModule(this)).build();\n\n // memanggil fungsi inject\n component.inject(this);\n }", "private void initializeWithDefaultValues() {\n setProjectFolder(\"projectFolder\");\n setContext(\"context\");\n setGroupId(\"com.company.project\");\n setArtifactId(\"project\");\n setModulePrefix(\"project-\");\n setVersion(\"0.0.1-SNAPSHOT\");\n setName(\"Project Name\");\n setDescription(\"Project Description\");\n setUrl(\"https://www.company-project.com\");\n setInceptionYear(String.valueOf(LocalDateTime.now().getYear()));\n setOrganizationName(\"Your Company Name\");\n setOrganizationUrl(\"https://www.company.com\");\n setLicenseName(\"apache_v2\");\n setLicenseUrl(\"https://www.license-url.com\");\n setScmConnection(\"\");\n setScmDeveloperConnection(\"\");\n setScmUrl(\"\");\n setDistributionProfile(\"\");\n setExtraModules(new LinkedHashSet<>());\n setContextDescriptions(new LinkedHashSet<>());\n setAppConfigLocationType(AppConfigLocationType.INSIDE);\n }", "public void start( BundleContext bc ) throws Exception\n {\n String configLocation = \"file://\"+System.getProperty(\"settings.folder.location\")+\"snomed-db.properties\";\n logger.debug(\"configLocation = \" + configLocation);\n logger.info( \"STARTING Terminology DAO Service\" );\n }", "private void setEnvPropertySources(\r\n\t\t\tfinal ConfigurableApplicationContext applicationContext,\r\n\t\t\tfinal String appName) throws IOException {\r\n\r\n\t\tfinal ConfigurableEnvironment contextEnv = applicationContext\r\n\t\t\t\t.getEnvironment();\r\n\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\t// If environment profile is active, add the corresponding property\r\n\t\t\t// source\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tcontextEnv\r\n\t\t\t\t\t\t.getPropertySources()\r\n\t\t\t\t\t\t.addFirst(\r\n\t\t\t\t\t\t\t\tnew ResourcePropertySource(\r\n\t\t\t\t\t\t\t\t\t\tBasePropertiesConfig.CLASSPATH_CONFIG_PREFIX\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ appName\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.DASH\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ profile\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.PROPERTIES_FILE_EXT));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Autowired\n public DevBootstrap(AuthorRepository authorRepository, BookRepository bookRepository, PublisherRepository publisherRepository) {\n this.authorRepository = authorRepository;\n this.bookRepository = bookRepository;\n this.publisherRepository = publisherRepository;\n }", "@Override\n\tpublic String getInfo() {\n\t\treturn \"Jersey + Spring!!!\";\n\t}", "@Override\n\tprotected SpringApplicationBuilder configure(SpringApplicationBuilder application) {\n\n\t\treturn application.sources(PatyalApplication.class);\n\t}", "public final void include(RuntimeEnv env, RuntimeStack stack, Scope3202 scope)\n throws IncludeEventException {\n env.addManualClassLoad(\"Symfony\\\\Component\\\\Console\\\\Logger\\\\ConsoleLogger\");\n }" ]
[ "0.5509798", "0.5332401", "0.52979463", "0.52191067", "0.5193104", "0.51691806", "0.5168422", "0.5147887", "0.5137547", "0.5123966", "0.51083946", "0.51078624", "0.510024", "0.5018943", "0.5007606", "0.4988722", "0.49843943", "0.49607542", "0.49340662", "0.49011815", "0.49007034", "0.4886142", "0.48776692", "0.4861411", "0.4857739", "0.48548657", "0.48407343", "0.4833655", "0.48270357", "0.4822872", "0.48014712", "0.47906908", "0.47814286", "0.4779626", "0.4778722", "0.4777264", "0.4776397", "0.47574607", "0.4755732", "0.47531968", "0.47380865", "0.4720015", "0.4706738", "0.47022104", "0.46887025", "0.46865696", "0.46841013", "0.4679961", "0.46781603", "0.4674555", "0.46739623", "0.4673813", "0.46727267", "0.46654987", "0.46633616", "0.46555436", "0.4653479", "0.46508855", "0.46488476", "0.4648419", "0.46480393", "0.46466088", "0.46455756", "0.4638069", "0.46218023", "0.4613251", "0.4611484", "0.46011937", "0.4600331", "0.45942155", "0.45885333", "0.45869467", "0.4586135", "0.45849973", "0.4581044", "0.45776802", "0.4576257", "0.45754704", "0.45739093", "0.4573229", "0.45707262", "0.45672148", "0.45663103", "0.45661116", "0.45615306", "0.45597744", "0.45595652", "0.45591685", "0.4556523", "0.45517987", "0.45515722", "0.4550521", "0.4548988", "0.45452228", "0.45395595", "0.45383447", "0.45373148", "0.4535653", "0.45353392", "0.45313972", "0.45311788" ]
0.0
-1
POST /technologycategories : Create a new technologyCategory.
@RequestMapping(value = "/technology-categories", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<TechnologyCategoryDTO> createTechnologyCategory(@RequestBody TechnologyCategoryDTO technologyCategoryDTO) throws URISyntaxException { log.debug("REST request to save TechnologyCategory : {}", technologyCategoryDTO); if (technologyCategoryDTO.getId() != null) { return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert("technologyCategory", "idexists", "A new technologyCategory cannot already have an ID")).body(null); } TechnologyCategoryDTO result = technologyCategoryService.save(technologyCategoryDTO); return ResponseEntity.created(new URI("/api/technology-categories/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert("technologyCategory", result.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CreateCategoryResponse createCategory(CreateCategoryRequest request);", "@PostMapping // /products (POST)\n public ResponseEntity<Technologies> createTechnologies(@RequestBody Technologies technologies){\n Technologies newTechnologies = technologiesDAO.save(technologies);\n return ResponseEntity.ok(newTechnologies);\n }", "Category addNewCategory(Category category);", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(method=RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<CategoryDTO> createCategory(@RequestBody CategoryDTO categoryDTO){\n Category cat;\n try {\n cat = catService.create(catMapper.toEntity(categoryDTO));\n } catch (Exception e) {\n return new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n }\n\n return new ResponseEntity<>(catMapper.toDto(cat), HttpStatus.CREATED);\n }", "@PostMapping(path=\"/category/add\")\n\tpublic @ResponseBody String addNewCategory(@RequestBody Category n) {\n\t\tcategoryRepository.save(n);\n\t\treturn \"Saved\";\n\t}", "@POST\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @ApiOperation(value = \"Create a category\", response = CategoryDTO.class)\n @ApiResponses(value = {\n @ApiResponse(code = 201, message = \"The category is created\"),\n @ApiResponse(code = 400, message = \"Invalid input\"),\n @ApiResponse(code = 415, message = \"Format is not JSon\")\n })\n public Response createCategory(@ApiParam(value = \"Category to be created\", required = true) @Valid CategoryDTO categoryDTO, @Context UriInfo uriInfo) throws URISyntaxException {\n log.debug(\"REST request to save Category : {}\", categoryDTO);\n if (categoryDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new category cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CategoryDTO result = categoryService.save(categoryDTO);\n URI createdURI = uriInfo.getBaseUriBuilder().path(String.valueOf(result.getId())).build();\n return Response.created(createdURI).entity(result).build();\n }", "@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<Category> create(@RequestBody Category category) {\r\n\t\ttry {\r\n\t\t\tLong id = categoryService.create(category);\r\n\t\t\tcategory = categoryService.findById(id);\r\n\t\t\treturn new ResponseEntity<Category>(category, HttpStatus.OK);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Failed to create the category\", e);\r\n\t\t\treturn new ResponseEntity<Category>(category, HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "@PostMapping(\"/reasoncategory\")\r\n\tpublic ResponseEntity<CodeAndLanguageCodeID> createReasonCategories(@Valid@RequestBody RequestDto<PostReasonCategoryDto> requestDto) {\r\n \r\n\t\treturn new ResponseEntity<>(reasonService.createReasonCategories(requestDto),HttpStatus.CREATED);\r\n\t}", "void createCodeCategory(CodeCategory codeCategory)\n throws DAOException;", "public void addNewCategory(Category category) throws CostManagerException;", "@Test\n public void postCadastrarCategoriaTest() throws ApiException {\n Integer productCategoryCode = null;\n String product = null;\n api.postCadastrarCategoria(productCategoryCode, product);\n\n // TODO: test validations\n }", "@Test\n\tpublic void testCreateCategory() throws Exception {\n\n\t\tList<Category> categories = new ArrayList<>();\n\t\tCategory category = new Category();\n\t\tcategory.setTenantId(\"default\");\n\n\t\tAuditDetails auditDetails = new AuditDetails();\n\t\tcategory.setAuditDetails(auditDetails);\n\n\t\tCategoryResponse categoryResponse = new CategoryResponse();\n\t\tcategories.add(category);\n\n\t\tcategoryResponse.setResponseInfo(new ResponseInfo());\n\t\tcategoryResponse.setCategories(categories);\n\n\t\ttry {\n\n\t\t\twhen(categoryService.createCategoryMaster(any(CategoryRequest.class),any(String.class))).thenReturn(categoryResponse);\n\n\t\t\tmockMvc.perform(post(\"/category/v1/_create\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t\t.content(getFileContents(\"categoryCreateRequest.json\")))\n\t\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t\t.andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON))\n\t\t\t\t\t.andExpect(content().json(getFileContents(\"categoryCreateResponse.json\")));\n\n\t\t} catch (Exception e) {\n\n\t\t\tassertTrue(Boolean.FALSE);\n\t\t}\n\n\t\tassertTrue(Boolean.TRUE);\n\n\t}", "public void create(Category category) {\n category_dao.create(category);\n }", "@Override\n\tpublic Categories create(Categories cate) {\n\t\treturn categoriesDAO.create(cate);\n\t}", "@Override\n public void createTechnicalTestService(\n @RequestBody CreateProblemSetRequest createProblemSetRequest)\n {\n List<Problem> problemSet = createProblemSetService(createProblemSetRequest);\n TechnicalTest technicalTest = new TechnicalTest();\n\n technicalTest.setProblems(problemSet);\n technicalTest.setCv(cvRepository.findOne(createProblemSetRequest.getIdCV()));\n\n technicalTestRepository.save(technicalTest);\n\n }", "public PortletCategory createPortletCategory(String name,\n\t\t\tString description, String creatorId);", "public TCustCategory createTCustCategory(final TCustCategory tCustCategory) {\n\t\tLOGGER.info(\"=========== Create TCustCategory ===========\");\n\t\treturn genericDAO.store(tCustCategory);\n\t}", "void addCategory(Category category);", "@PostMapping(\"/add\")\n\tpublic ResponseEntity<?> add(@RequestBody String body){\n\t\tCategoryVO newCat = null;\n\t\ttry {\n\t\t\tnewCat = new ObjectMapper().readValue(body, CategoryVO.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tCategoryVO cat = catService.add(newCat);\n\t\treturn checkNull(cat);\n\t}", "@RequestMapping(value = \"/Category\", method = RequestMethod.POST)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n @ResponseBody\n public void addCategory(@RequestBody Category category) {\n blogDAO.addCategory(category);\n }", "public void newCategory() {\n btNewCategory().push();\n }", "@PostMapping()\n\t@ApiOperation(value = \"categoryAPI\")\n\t@ApiResponses(value = { @ApiResponse(code = 201, message = \"Category added\", response = String.class),\n\t\t\t@ApiResponse(code = 400, message = \"Invalid Category\", response = Category.class) })\n\n\tpublic ResponseEntity<?> addCategory(@RequestBody CategoryDTO categoryDTO) throws ValidatorException {\n\n\t\ttry {\n\t\t\tcategoryService.addCategory(categoryDTO);\n\t\t\treturn new ResponseEntity<>(HttpStatus.CREATED);\n\n\t\t} catch (ServiceException e) {\n\t\t\tMessage message = new Message(e.getMessage());\n\t\t\treturn new ResponseEntity<>(message,HttpStatus.BAD_REQUEST);\n\t\t}\n\n\t}", "public void createCategory(String categoryName) {\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.className(\"page-title\"))));\n Actions builder = new Actions(driver);\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCatalog\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminProducts\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCategories\")));\n builder.click(driver.findElement(By.id(\"subtab-AdminCategories\"))).perform();\n\n waitForContentLoad(\"Women\");\n WebElement creatNew = driver.findElement(By.id(\"page-header-desc-category-new_category\"));\n creatNew.click();\n WebElement newName = driver.findElement(By.id(\"name_1\"));\n newName.sendKeys(categoryName);\n WebElement saveBtn = driver.findElement(By.id(\"category_form_submit_btn\"));\n saveBtn.click();\n // TODO implement logic for new category creation\n if (categoryName == null) {\n throw new UnsupportedOperationException();\n }\n }", "private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }", "@PostMapping(path = \"menus/{id}/categories\")\n ResponseEntity<?> post(@RequestBody Category body, @PathVariable String id) {\n Menu findMenu = menuRepository.findById(id)\n .orElseThrow(() -> new CategoryNotFound(\"Category with id: \" + id + \" Not Found\"));\n Category newCategory = repository.save(body);\n findMenu.getCategories().add(newCategory);\n Menu SavedMenu = menuRepository.save(findMenu);\n // must be created\n return ResponseEntity.ok(SavedMenu);\n }", "@PostMapping(\"/categoriesfu\")\n\t@Secured({ AuthoritiesConstants.ADMIN, AuthoritiesConstants.BOSS, AuthoritiesConstants.MANAGER })\n public synchronized ResponseEntity<Category> createCategory(@Valid @RequestBody Category category) throws URISyntaxException {\n log.debug(\"REST request to save Category : {}\", category);\n \n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n category.setRestaurant(restaurant);\n \n if (category.getId() != null) {\n throw new BadRequestAlertException(\"A new category cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Category result = categoryRepository.save(category);\n return ResponseEntity.created(new URI(\"/api/categoriesfu/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(applicationName, true, ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public @NotNull Category newCategory();", "public Category createCategory(Category category) throws Exception\r\n\t{\n\t\tif(category.getId() != 0 && categoryDao.findById(category.getId()).isPresent())\r\n\t\t\tthrow new Exception(\"category exists\");\r\n\t\tcategory = categoryDao.save(category);\r\n\t\treturn category;\r\n\t}", "@RequestMapping(value = \"/_search/technology-categories\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<TechnologyCategoryDTO> searchTechnologyCategories(@RequestParam String query) {\n log.debug(\"REST request to search TechnologyCategories for query {}\", query);\n return technologyCategoryService.search(query);\n }", "void add(ProductCategory category);", "public WebDriver add_category(String category_name)\n {\n driver.findElement(By.xpath(\"//*[@id=\\\"go_add_category\\\"]\")).click();\n\n driver.findElement(By.xpath(\"//*[@id=\\\"name\\\"]\")).sendKeys(category_name);\n\n driver.findElement(By.xpath(\"//*[@id=\\\"submit\\\"]\")).click();\n\n return driver;\n }", "CategoriesType createCategoriesType();", "CategoriesType createCategoriesType();", "CategoryType createCategoryType();", "@Override\n public Category createCategory(Category newCategory)\n {\n // format the string\n String query = \"INSERT INTO Categories(CategoryName, Description, CreationDate)\";\n query += \" VALUES ('%1$s', '%2$s', '%3$s')\";\n \n query = String.format(query, newCategory.getCategoryName(), newCategory.getDescription(),\n newCategory.getCreationDate());\n \n // if everything worked, inserted id will have the identity key\n // or primary key\n int insertedId = DataService.executeCreate(query);\n if (insertedId > 0)\n {\n return getCategoryById(insertedId);\n }\n \n return null;\n }", "@Override\n\tpublic void createCategory(Category category) { \n\t\tif (categoryExists(category))\n\t\t\treturn; \n\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tsession.save(category);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t}", "@RequestMapping(path = \"/create_category\", method = { RequestMethod.GET })\n public Category createCategoryGet(@RequestParam(name = \"name\", required = true) String name) {\n\n Category category = new Category(name);\n categoryRepository.save(category);\n return category;\n }", "public Response addTechnology(TechResponse technologyResponse);", "@Override\n\tpublic Category create(long categoryId) {\n\t\tCategory category = new CategoryImpl();\n\n\t\tcategory.setNew(true);\n\t\tcategory.setPrimaryKey(categoryId);\n\n\t\tcategory.setCompanyId(CompanyThreadLocal.getCompanyId());\n\n\t\treturn category;\n\t}", "@PostMapping(\"/saveCategories\")\n public String saveCategories(@ModelAttribute(\"categories\") Categories theCategories) {\n List<Product> products =null;\n if(theCategories.getId()!= 0)\n {\n products= categoriesService.getProducts(theCategories.getId());\n }\n theCategories.setProducts(products);\n categoriesService.saveCategories(theCategories);\t\n return \"redirect:/admin/loaisanpham/list\";\n }", "@RequestMapping(value = \"/technology-categories/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TechnologyCategoryDTO> getTechnologyCategory(@PathVariable Long id) {\n log.debug(\"REST request to get TechnologyCategory : {}\", id);\n TechnologyCategoryDTO technologyCategoryDTO = technologyCategoryService.findOne(id);\n return Optional.ofNullable(technologyCategoryDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public void createProductCategory(HttpServletRequest request){\n \n HttpSession session = request.getSession();\n \n DAOFactory mySqlFactory = DAOFactory.getDAOFactory();\n ProductCategoryDAO riverProductCategoryDAO = mySqlFactory.getProductCategoryDAO();\n ProductCategoryDAO productCategoryDAO = new MySQLProductCategoryDAOImpl();\n \n List productCategories = productCategoryDAO.getAllProductCategories();\n \n //productCategories\n ProductCategory tmp3 = null;\n String[][] productCategoriesMatrix = new String[productCategories.size()][2];\n\n for(int i=0; i<productCategories.size(); i++){\n\n tmp3 = (ProductCategory)productCategories.get(i);\n\n productCategoriesMatrix[i][0] = Integer.toString(tmp3.getPCID());\n productCategoriesMatrix[i][1] = tmp3.getName();\n \n }\n \n session.setAttribute(\"productCategories\", productCategoriesMatrix);\n \n }", "Category saveCategory(Category category);", "@RequestMapping(value = \"/technology-categories/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTechnologyCategory(@PathVariable Long id) {\n log.debug(\"REST request to delete TechnologyCategory : {}\", id);\n technologyCategoryService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"technologyCategory\", id.toString())).build();\n }", "@RequestMapping(value = \"/technology-categories\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<TechnologyCategoryDTO> getAllTechnologyCategories() {\n log.debug(\"REST request to get all TechnologyCategories\");\n return technologyCategoryService.findAll();\n }", "@Transactional\n public abstract OnmsCategory createCategoryIfNecessary(String name);", "public String createCategory()\n {\n logger.info(\"**** In createCategory in Controller ****\");\n if (category != null && StringUtils.isNotEmpty(category.getCategoryName()))\n {\n String creationMessage = categoryService.createCategory(category);\n if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_CREATION_SUCCESS))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_CREATION_SUCCESS, Constants.CATEGORY_CREATION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_ALREADY_EXISTS))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_ALREADY_EXISTS, Constants.CATEGORY_ALREADY_EXISTS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_CREATION_EXCEPTION))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_CREATION_EXCEPTION, Constants.CATEGORY_CREATION_EXCEPTION);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.FAILURE))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_CREATION_FAILURE, Constants.CATEGORY_CREATION_FAILURE);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n }\n\n return Constants.CREATE_CATEGORY_VIEW;\n }", "public void crearCategoria(Categoria categoria){\n categoriaRepo.save(categoria); \n }", "@Override\n\tpublic ItemTypeCategory create(long itemTypeCategoryId) {\n\t\tItemTypeCategory itemTypeCategory = new ItemTypeCategoryImpl();\n\n\t\titemTypeCategory.setNew(true);\n\t\titemTypeCategory.setPrimaryKey(itemTypeCategoryId);\n\n\t\treturn itemTypeCategory;\n\t}", "public void create(int id, DVD dvd, Categorie categorie);", "public Categorie addCategorie(Categorie c);", "public void createCategory(String name, String passw)\n throws InvalidActionException, IncorrectPasswordException, NullPointerException{\n\n if(name == null || passw == null) throw new NullPointerException();\n if(!this.MasterPassw.equals(passw)) throw new IncorrectPasswordException(\"Password Errata\");\n if(categories.containsKey(name)) throw new InvalidActionException(\"Categoria gia' presente\");\n\n categories.put(name, new Category<>());\n numCategories++;\n }", "public void create(CategoriaDTO dto) throws SQLException{\n getConnection();\n CallableStatement callableStatement = null;\n \n try {\n callableStatement = (CallableStatement) connection.prepareCall(SQL_INSERT);\n callableStatement.setString(1, dto.getEntidad().getNombreCategoria());\n callableStatement.setString(2, dto.getEntidad().getDescripcionCategoria());\n callableStatement.executeUpdate(); // review\n } finally {\n if(callableStatement != null){\n callableStatement.close();\n }\n if(connection != null){\n connection.close();\n }\n }\n }", "@Test\n\tpublic void testAddCategory() {\n\t\tcategory = new Category();\n\t\tcategory.setName(CATEGORY_NAME);\n\t\tcategory.setDescription(\"A wonderful addition to your home. 80 inches\");\n\t\tcategory.setImageURL(\"CAT_1.png\");\n\n\t\tassertEquals(\"Successfully added a category to the database table\", true, categoryDAO.add(category));\n\t}", "@Override\n\tpublic Result postProcessorCreateCategory(CreateCategoryMessageEntity categoryRequestMessageEntity) {\n\t\treturn new Result(ResultStatus.SUCCESS);\n\t}", "public long createCategory(CategoryModel categoryModel){\n //access the database\n SQLiteDatabase db = this.getWritableDatabase();\n\n //set the parameters\n ContentValues values = new ContentValues();\n values.put(InventoryContract.CategoryEntry.COLUMN_CATEGORY_NAME, categoryModel.getName());\n\n //insert the row\n long category_id = db.insert(CategoryEntry.TABLE_NAME, null, values);\n\n return category_id;\n }", "@Test\n\tpublic void testCreateCategoryDetails() throws Exception {\n\n\t\tList<Category> categories = new ArrayList<>();\n\t\tCategory category = new Category();\n\t\tcategory.setTenantId(\"default\");\n\n\t\tAuditDetails auditDetails = new AuditDetails();\n\t\tcategory.setAuditDetails(auditDetails);\n\n\t\tCategoryDetail categoryDetail = new CategoryDetail();\n\n\t\tList<CategoryDetail> categoryDetails = new ArrayList<>();\n\t\tcategoryDetails.add(categoryDetail);\n\t\tcategory.setDetails(categoryDetails);\n\t\tcategories.add(category);\n\n\t\tCategoryResponse categoryResponse = new CategoryResponse();\n\t\tcategoryResponse.setResponseInfo(new ResponseInfo());\n\t\tcategoryResponse.setCategories(categories);\n\n\t\ttry {\n\n\t\t\twhen(categoryService.createCategoryMaster(any(CategoryRequest.class),any(String.class))).thenReturn(categoryResponse);\n\n\t\t\tmockMvc.perform(\n\t\t\t\t\tpost(\"/category/v1/_create\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t\t.content(getFileContents(\"categoryDetailsCreateRequest.json\")))\n\t\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t\t.andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON))\n\t\t\t\t\t.andExpect(content().json(getFileContents(\"categoryDetailsCreateResponse.json\")));\n\n\t\t} catch (Exception e) {\n\n\t\t\tassertTrue(Boolean.FALSE);\n\t\t}\n\n\t\tassertTrue(Boolean.TRUE);\n\n\t}", "@RequestMapping(value = \"/createAjaxCategory\", method = RequestMethod.POST, headers = { \"Content-type=application/json\" })\n public @ResponseBody Category ajaxCreateCategory(@RequestBody Category category) {\n\n Category savedCategory = null;\n try {\n savedCategory = courseService.createCategoryForCourse(category);\n } catch (JobCodeException e) {\n //model.addAttribute(\"error\", e.getMessage());\n }\n\n\n return savedCategory;\n }", "@RequestMapping(value = \"/add\", method = GET)\n public String addCategory(Model model) {\n model.addAttribute(\"action\", ADD_ACTION);\n model.addAttribute(\"category\", new Category());\n return FORM_VIEW;\n }", "public int create(Category category) {\n \tLog.i(LOG_TAG, \"int create(Category) | .getId()\" + category.getId());\n \tif ( category.isValid() ) {\n\t try {\n\t return categoriesDao.create(category);\n\t } catch (SQLException e) {\n\t // TODO: Exception Handling\n\t e.printStackTrace();\n\t }\n \t}\n return 0;\n }", "public es.davinciti.liferay.model.LineaGastoCategoria create(\n\t\tlong categoriaId);", "public void createCategory(String name, int fatherId) throws SQLException {\n \t\tString query = \"INSERT INTO category (name, `index`, father_id) VALUES (?, ?, ?)\";\n\n \t\ttry {\n \t \t\tint index = getNextIndex(fatherId);\n \t\t\tPreparedStatement pstatement = connection.prepareStatement(query);\n \t\t\tpstatement.setString(1, name);\n \t\t\tpstatement.setInt(2, index);\n \t\t\tpstatement.setObject(3, fatherId);\n \t\t\tpstatement.executeUpdate();\n \t\t} catch (SQLException e) {\n \t\t\tthrow new SQLException(\"Failed to create the category.\");\n \t\t}\n \t}", "private void insererCategorie(final JSONObject categorie) {\n //preparation du JSON pour le passer dans le corps de la requete HTTP\n StringEntity entityJson = null;\n try {\n entityJson = new StringEntity(categorie.toString());\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n //preparation de l'URL\n String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_INSERT, null);\n\n //requete pour inserer la nouvelle categorie (asynchrone)\n asyncHttpClient.post(getActivity(), url, entityJson, DATA_TYPE, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n dialogCreationCategorieBuilder\n .setMessage(getString(R.string.dialog_ajout_categorie_succes))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n FormulaireCategorieFragment.this.listener.OnValidCategorie();\n }\n }).show();\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n dialogCreationCategorieBuilder\n .setMessage(getString(R.string.dialog_ajout_categorie_echec))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }\n });\n }", "private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }", "@Test\n\tpublic void testCreateTechnology() throws InterruptedException {\n\n\t\t// GIVEN\n\t\tString title = \"Virtual reality\" + System.currentTimeMillis();\n\n\t\t// WHEN\n\t\tTechnologiesPage technologiesPage = new TechnologiesPage(driver);\n\t\ttechnologiesPage.openPlaygroundCard();\t\t\n\t\ttechnologiesPage.navigateToTechnologiesPage();\n\t\ttechnologiesPage.clickCreateTechnologyButton();\n\t\ttechnologiesPage.enterTechnologyTitle(title);\n\t\ttechnologiesPage.clickSubmitButton();\n\n\t\tassertThat(technologiesPage.checkIfTechnologyExists(title)).isTrue();\n\t}", "public void setCategoryId(long categoryId);", "public void setCategory(String category);", "public int saveNewCatalog(String catName) throws BackendException;", "public void createCategory(String name) {\n\t\t\n\t\tFlashCategory cat = (\n\t\t\t\t\t\t\t\t\t\t\tselectionListener.selectedComponents.size() == 0\n\t\t\t\t\t\t\t\t\t\t?\troot\n\t\t\t\t\t\t\t\t\t\t:\t(FlashCategory) selectionListener.selectedComponents.iterator().next()\n\t\t);\n\t\t\n\t\tcat.add(new FlashCategory(name));\n\t\t\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "@RequestMapping(value = \"addCategory\", method = RequestMethod.POST)\r\n\tpublic ModelAndView addCategory(@ModelAttribute AdminFormBean formBean) {\r\n\t\tCategory category = formBean.getCategory();\r\n\t\tcategoryService.addCategory(category);\r\n\t\treturn new ModelAndView(\"redirect:/admin\");\r\n\t}", "public Category newCategory() {\n\t\tCategory page = new Category();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\tpage.setWpWeight(0);\r\n\t\treturn page;\r\n\t}", "@Test\n @WithMockUser(\"test@test.test\")\n public void testNewExpenseCategoryData () throws Exception {\n mvc.perform(post(\"/api/newExpenseCategory\")\n .contentType(MediaType.APPLICATION_JSON)\n .param(\"name\",\"Test expense category\")\n .param(\"color\", \"#111111\")\n .param(\"note\", \"Test expense category note\")\n ).andExpect(matchAll(\n status().isOk()\n ));\n\n mvc.perform(get(\"/api/getExpenseCategory\"))\n .andExpect(matchAll(\n status().isOk(),\n jsonPath(\"$.category\", hasSize(1))\n ));\n }", "@PostMapping(\"/save\")\n @ResponseStatus(HttpStatus.CREATED)\n public Admin save(@RequestBody Admin category){\n return adminService.save(category);\n }", "@Override\r\n\tpublic boolean addCategory(List<Category> categories) throws CategoryCreationException {\n\t\tboolean stat=false;\r\n\t\ttry {\r\n\t\t\tstat=categoryDao.addCategory(categories);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new CategoryCreationException(\"Error in creating object check your inputs\");\r\n\t\t}\r\n\t\treturn stat;\r\n\t}", "public static ExerciseCategory createEntity() {\n ExerciseCategory exerciseCategory = new ExerciseCategory()\n .name(DEFAULT_NAME);\n return exerciseCategory;\n }", "public DocCategory createDocCategory(DocCategory docCategory) {\n if (docCategoryRepository.findDocCategoryByName(docCategory.getName()).isPresent()) {\n return null;\n }\n return docCategoryRepository.save(docCategory);\n }", "public void addCategory(Category c) {\n\t\tcategoryDao.save(c);\n\t}", "@Override\r\n\tpublic boolean add(ServicesDto servicesDto) {\r\n\t\ttry {\r\n\t\t\t// add the category to database table\r\n\t\t\tsessionFactory.getCurrentSession().persist(servicesDto);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@PostMapping(\"/categorie/save\")\n CategorieProduitDTO saveCategorie(@RequestBody CategorieProduitDTO categorieProduitDTO) {\n return categorieProduitMetier.saveCategorie(categorieProduitDTO);\n }", "public final void mT__21() throws RecognitionException {\n try {\n int _type = T__21;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:19:7: ( 'category' )\n // InternalMyDsl.g:19:9: 'category'\n {\n match(\"category\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setCategories(Categories categories) {\n this.categories = categories;\n }", "Category selectCategory(String name);", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "public Category(String categoryName) {\n this.categoryName = categoryName;\n }", "public ProductCategoryController() {\n }", "private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }", "public void addCategory(ProductCatagory pCatagory)\n\t\t\tthrows BusinessException;", "public static Category create(@NotBlank String name) {\n return new Category(name);\n }", "public static void addCategoryType(String description) {\n\t\tConnection conn = null;\n PreparedStatement ps = null;\n try {\n \t// Get a connection to the specified JDBC URL.\n \t\tconn = JDBCConnection.getConnection();\n // Create a Statement object for sending SQL statements to the database.\n \t\t// Statement: The object used for executing a static SQL statement and returning the results it produces.\n \t\tps = conn.prepareStatement(\"INSERT INTO observation_categories ( description ) VALUES ( ? )\");\n \t\tps.setString( 1, description );\n \t\tps.execute();\n \t} catch(SQLException e) {\n \te.printStackTrace();\n } finally {\n\t\t\tJDBCConnection.closeConnection(conn, ps, null);\n\t\t}\n }", "public static void addCategory(Context context, String category) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n // Don't allow adding if there's already a non-deleted category with that name\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0 AND \" + CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category},\r\n null,\r\n null,\r\n null\r\n );\r\n\r\n if(cursor.getCount() > 0) {\r\n cursor.close();\r\n throw new IllegalArgumentException(\"Category with name already exists\");\r\n }\r\n cursor.close();\r\n\r\n // Check if there's a deleted category that can be re-enabled\r\n ContentValues updateValues = new ContentValues();\r\n updateValues.put(CategoryTable.COLUMN_NAME_IS_DELETED, 0);\r\n\r\n int count = db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n updateValues,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" = ?\",\r\n new String[]{category}\r\n );\r\n if(count > 0) return;\r\n\r\n // Otherwise add it as normal\r\n ContentValues insertValues = new ContentValues();\r\n insertValues.put(CategoryTable.COLUMN_NAME_CATEGORY_NAME, category);\r\n db.insert(CategoryTable.TABLE_NAME, null, insertValues);\r\n db.close();\r\n }", "@ResponseStatus(HttpStatus.CREATED)\r\n @PostMapping(\"/products\")\r\n public Product addProduct(@RequestBody ProductDTO productDto) {\r\n return productService.addNewProduct(productDto);\r\n }", "public Category() {}", "@Query(\"create (n:RecommendationCategories) set n.categories_id={id} return n;\")\n List<RecommendationCategories> addCategory(@Param(\"id\") int id);", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public static int insertNewCategory(String categoryname, int level) {\r\n\r\n\t\tsqlQuery = \"INSERT INTO flipkart_category(categoryName, status, createdBy, modifiedBy, level) \" +\r\n\t\t\t\t\"VALUES (?,?,?,?,?);\";\r\n\r\n\t\ttry{\r\n\t\t\tconn=DbConnection.getConnection();\r\n\t\t\tps=conn.prepareStatement(sqlQuery);\r\n\r\n\t\t\tps.setString(1, categoryname);\r\n\t\t\tps.setInt(2, 0); /* 0=pending, 1=active, 2=inactive*/\r\n\t\t\tps.setString(3, \"Admin\");\r\n\t\t\tps.setString(4, \"Admin\");\r\n\t\t\tps.setInt(5, level);\r\n\r\n\t\t\tps.executeUpdate();\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\t//e.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "Boolean insertCategory(DvdCategory category) throws DvdStoreException;", "@PostMapping()\n @ApiOperation(value = \"생성\")\n public ApiResult create(@RequestBody SampleDto sampleDto){\n log.info(\"Create\");\n\n return OK(\n sampleService.create(\n sampleDto.getTitle(), sampleDto.getDescription()\n )\n );\n }", "public category() {\r\n }", "@PostMapping(\"/new\")\n public ResponseEntity create(@RequestBody CityInfo cityInfo){\n service.create(cityInfo);\n return new ResponseEntity(HttpStatus.CREATED);\n }" ]
[ "0.67770535", "0.642966", "0.6405545", "0.63651454", "0.61435455", "0.60816336", "0.6033726", "0.60067713", "0.59981203", "0.5990025", "0.59659725", "0.59442866", "0.592379", "0.59172195", "0.58761156", "0.5842908", "0.5811098", "0.57797384", "0.5764325", "0.5756704", "0.57451606", "0.57196194", "0.56921583", "0.56786066", "0.5645301", "0.5613433", "0.56060576", "0.5564845", "0.55588883", "0.55556196", "0.55515", "0.55457866", "0.55381995", "0.55381995", "0.5521265", "0.5462171", "0.5452809", "0.54426515", "0.5438262", "0.5434604", "0.5432021", "0.539712", "0.53877693", "0.53855675", "0.5355245", "0.53413284", "0.5336862", "0.52969956", "0.5275413", "0.5272131", "0.5269934", "0.5264442", "0.5255415", "0.51812166", "0.51716954", "0.51676977", "0.5162709", "0.51604915", "0.51454264", "0.51282084", "0.5125425", "0.50694466", "0.5061544", "0.50507253", "0.5024193", "0.49984634", "0.499009", "0.49579564", "0.49563807", "0.4954442", "0.49541706", "0.49413246", "0.49373323", "0.49209234", "0.49124667", "0.4904231", "0.48955792", "0.48945197", "0.48889545", "0.4888443", "0.4863907", "0.48609605", "0.48599076", "0.48567176", "0.48567176", "0.48563498", "0.48172408", "0.48105046", "0.48104736", "0.480606", "0.48022845", "0.47968298", "0.47892317", "0.47883373", "0.47722548", "0.47694793", "0.47690696", "0.47622064", "0.4754623", "0.47452253" ]
0.7929936
0
GET /technologycategories : get all the technologyCategories.
@RequestMapping(value = "/technology-categories", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public List<TechnologyCategoryDTO> getAllTechnologyCategories() { log.debug("REST request to get all TechnologyCategories"); return technologyCategoryService.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/_search/technology-categories\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<TechnologyCategoryDTO> searchTechnologyCategories(@RequestParam String query) {\n log.debug(\"REST request to search TechnologyCategories for query {}\", query);\n return technologyCategoryService.search(query);\n }", "@RequestMapping(value = \"/categories\", method = RequestMethod.GET, produces = \"application/json\")\n public Collection<String> getCategories() {\n return this.datasetService.getCategories();\n }", "List<Category> getAllCategories();", "@RequestMapping(value = \"/technology-categories/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TechnologyCategoryDTO> getTechnologyCategory(@PathVariable Long id) {\n log.debug(\"REST request to get TechnologyCategory : {}\", id);\n TechnologyCategoryDTO technologyCategoryDTO = technologyCategoryService.findOne(id);\n return Optional.ofNullable(technologyCategoryDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@GetMapping(\"/category\")\n\t public ResponseEntity<List<Category>> getcategorys() {\n\n\t List<Category> list = categoryService.getAllcategorys();\n\t if (list.size() <= 0) {\n\t return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n\t }\n\t return ResponseEntity.status(HttpStatus.CREATED).body(list);\n\t }", "public List<Categorie> getAllCategories();", "public List<Category> getCategories() {\n CategoryRecords cr = company.getCategoryRecords();\n List<Category> catList = cr.getCategories();\n return catList;\n }", "public List<String> getCategories();", "@GetMapping\n\t public List<Categories> touslescategories() {\n\t\treturn catsociete.findAll();}", "List<Category> getAllCategories() throws DataBaseException;", "@GET\n @Produces(APPLICATION_JSON)\n @ApiOperation(value = \"Find all authors\", response = CategoryDTO.class, responseContainer = \"List\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"All categories found\"),\n @ApiResponse(code = 404, message = \"Categories not found\")}\n )\n public Response getAllCategories() {\n log.debug(\"REST request to get all Categories\");\n List<CategoryDTO> result = categoryService.findAll();\n return ok(result).build();\n }", "public List<ProductCatagory> getAllCategory() throws BusinessException;", "public static List<Category> getAllCategory() {\n\n List<Category> categoryList = new ArrayList<>();\n try {\n categoryList = Category.listAll(Category.class);\n } catch (Exception e) {\n\n }\n return categoryList;\n\n }", "@WebMethod(exclude=true, action=\"fetch_categories\", operationName=\"fetch_categories_op\")\n\tList<String> getProductCategories();", "public List<String> findAllCategories() {\r\n\t\tList<String> result = new ArrayList<>();\r\n\r\n\t\t// 1) get a Connection from the DataSource\r\n\t\tConnection con = DB.gInstance().getConnection();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 2) create a PreparedStatement from a SQL string\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GET_CATEGORIES_SQL);\r\n\r\n\t\t\t// 3) execute the SQL\r\n\t\t\tResultSet resultSet = ps.executeQuery();\r\n\t\t\twhile (resultSet.next()) {\r\n\r\n\t\t\t\tString cat = resultSet.getString(1);\r\n\t\t\t\tresult.add(cat);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tDB.gInstance().returnConnection(con);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public Flowable<List<Category>> getCategories() {\n return findAllData(Category.class);\n }", "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn category.selectAllCategory();\n\t}", "public List<Category> findAll() {\n\t\treturn categoryMapper.selectAll();\n\t}", "@GetMapping\n\t@ResponseStatus(code = HttpStatus.OK)\n\tpublic List<CategoryDTO> viewCategory() throws ServiceException {\n\t\tList<CategoryDTO> viewResponse = categoryService.listCategory();\n\t\treturn viewResponse;\n\t\t\n\t}", "List<ProductCategory> getAll();", "public List<Category> findAllCategoryt_id() {\n\t\treturn null;\n\t\t\n\t}", "@GET\n @Path(\"/list\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response getCategories(@javax.ws.rs.core.Context UriInfo uriInfo) {\n List categoryList = categoryRepository.selectAllVisible();\n Category category;\n SuccessMessage successMessage = new SuccessMessage();\n successMessage.setCode(Response.Status.OK.getStatusCode());\n successMessage.setStatus(\"success\");\n String url = uriInfo.getAbsolutePath().toString();\n successMessage.addLink(url, \"self\");\n\n if (categoryList.size() != 0) {\n successMessage.setMessage(\"categories retrieved\");\n for (int i = 0; i < categoryList.size(); i++) {\n JSONObject jsonObject = new JSONObject();\n category = (Category) categoryList.get(i);\n jsonObject.put(\"name\", category.getCategoryName());\n jsonObject.put(\"description\", category.getCatDescription());\n successMessage.addData(jsonObject);\n successMessage.addLink(BASE_URL + \"subcategories/category/\" + category.getCategoryName().replaceAll(\" \", \"%20\"), \"subcategories of \" + category.getCategoryName().toString());\n }\n } else {\n successMessage.setMessage(\"no categories to retrieve\");\n }\n return Response.status(Response.Status.OK).entity(successMessage)\n .header(\"Access-Control-Allow-Origin\", propertyReader.readProperty(\"Access-Control-Allow-Origin\"))\n .build();\n }", "List<Category> getAllCategories() throws DaoException;", "@Override\n\tpublic List<Category> findAllCategory() {\n\t\treturn categoryRepository.findAllCategory();\n\t}", "public String getCategories() {\n return getProperty(Property.CATEGORIES);\n }", "public io.reactivesw.catalog.grpc.CategoryList getCategories(io.reactivesw.catalog.grpc.Empty request) {\n return blockingUnaryCall(\n getChannel(), METHOD_GET_CATEGORIES, getCallOptions(), request);\n }", "@Override\n\tpublic List<Categories> getListCat() {\n\t\treturn categoriesDAO.getListCat();\n\t}", "ListCategoryResponse listCategories(ListCategoryRequest request);", "public List<Category> getAllCategories() {\n\t\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\tQuery q = session.createQuery(\"from Category\");\n\t\t\tList<Category> catlist = q.list();\n\t\t\t\n\t\t\treturn catlist;\n\t\t}", "public List<Category> getCategories() {\n this.catr = m_oCompany.getCategoryRecords();\n return catr.getCategories();\n }", "public List<Category> findAll() {\n\t\treturn categoryDao.getAll();\n\t}", "List<Category> lisCat() {\n return dao.getAll(Category.class);\n }", "public com.google.common.util.concurrent.ListenableFuture<io.reactivesw.catalog.grpc.CategoryList> getCategories(\n io.reactivesw.catalog.grpc.Empty request) {\n return futureUnaryCall(\n getChannel().newCall(METHOD_GET_CATEGORIES, getCallOptions()), request);\n }", "public Categories getCategories() {\n return this.categories;\n }", "public List<Category> getAllCategories() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = (Query) session.createQuery(\"from Category\");\r\n\t\tList<Category> categories = query.list();\r\n\r\n\t\treturn categories;\r\n\t}", "@RequestMapping(value = \"/categories\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Category> categoryListRest() {\n\t\treturn (List<Category>) CatRepo.findAll();\n\t}", "@ModelAttribute(\"categories\")\r\n\tpublic List<Category> getCategoryList() {\r\n\t\treturn categoryDAO.list();\r\n\t}", "public List<StadiumCategoryDTO> getCategories() {\n\t\treturn categories;\n\t}", "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn dao.getAllCategory();\n\t}", "@GetMapping(\"/categoriesfu\")\n public synchronized List<Category> getAllCategories() {\n log.debug(\"REST request to get a page of Categories\");\n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n return categoryRepository.findAllByRestaurant(restaurant);\n }", "List<Category> getCategories() throws DAOExceptionHandler;", "@Override\n\tpublic Iterable<Category> findAllCategory() {\n\t\treturn categoryRepository.findAll();\n\t}", "@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}", "@GetMapping(\"category\")\n\t\tpublic List<String> getCategory(){\n\t\t\tList<String> list = repo.findByCat();\n\t\t\treturn list;\n\t\t\t\n\t\t\t\n\t\t}", "public ArrayList<Categories> getAllCategories() {\n\t\t\n\t\tCategories cg;\n\t\tArrayList<Categories> list=new ArrayList<Categories>();\n\t\t\n\t\ttry {\n\t\t\t String query=\"select * from categories;\";\n\t\t\tPreparedStatement pstm=con.prepareStatement(query);\n\t\t\tResultSet set= pstm.executeQuery();\n\t\t\t\n\t\t\twhile(set.next()) {\n\t\t\t\tint cid=set.getInt(1);\n\t\t\t\tString cname=set.getString(2);\n\t\t\t\tString cdes=set.getString(3);\n\t\t\t\t\n\t\t\t\tcg=new Categories(cid, cname, cdes);\n\t\t\t\tlist.add(cg);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\treturn categoryDao.getAll();\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "@Override\n\tpublic List<Category> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public static List<Category> findAll() {\n List<Category> categories = categoryFinder.findList();\n if(categories.isEmpty()){\n categories = new ArrayList<>();\n }\n return categories;\n }", "public List<Category> getAllAvailableCategory() {\n\t\treturn categoryManager.getAllAvailable();\n\t}", "public static ArrayList<String> getCategories() {\n String query;\n ArrayList<String> categories = new ArrayList<String>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n categories.add(rs.getString(\"category\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return categories;\n }", "public String getCategoryListing(){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\tString result = \"\";\n\t\t/*if(requestCall.equalsIgnoreCase(\"table\")){\n\t\t\t//System.out.println(\"in getCategoryListing service call table\");\n\t\t\tresult = daoObject.getCategoriesAndSubCategories();\n\t\t}else{\n\t\t\tresult = daoObject.getCategories(); \n\t\t}*/\n\t\t//result = daoObject.getCategoriesAndSubCategories();\n\t\tresult = daoObject.getCategories();\n\t\treturn result;\n\t}", "@Override\n public List<Category> getAll()\n {\n \n ResultSet rs = DataService.getData(\"SELECT * FROM Categories\");\n \n List<Category> categories = new ArrayList<Category>();\n \n try\n {\n while (rs.next())\n {\n categories.add(convertResultSetToCategory(rs));\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return categories;\n }", "List<RadarTechnologies> getAllRadarTechnologies();", "@Override\n\tpublic List<Category> getCategories(){\n\t\treturn null;\n\t}", "public @NotNull Set<Category> findAllCategories() throws BazaarException;", "@Override\n\tpublic List<Category> getAllCategories() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM \"+Category.class.getName());\n\t\treturn (List<Category>)query.list();\t\t\n\t}", "@GetMapping\n\tpublic ResponseEntity<List<Category>> findAll(){\n\t\t\t//Category u = new Category(1L, \"Maria\", \"maria@gmail.com\", \"92313323\", \"12345\");\t\n\t\t\n\t\tList<Category> list = service.findAll();\n\t\t\n\t\t//criar resposta http e no corpo da resposta colocar lista\n\t\treturn ResponseEntity.ok().body(list);\t\n\t\t\n\t}", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public List<DocCategory> getAllDocCategories() {\n return docCategoryRepository.findAll();\n }", "@Override\n\tpublic List<EventCategory> getAllCategories() {\n\t\treturn categoriesRepository.findAll();\n\t}", "public List<String> getCategories(Boolean internationalSelected){\n\t\tif (internationalSelected) {\n\t\t\treturn _intCategories;\n\t\t}\n\t\telse {\n\t\t\treturn _nzCategories;\n\t\t}\n\t}", "public List<String> categories() {\n return this.categories;\n }", "public static ResultSet getAllCategory() {\n try {\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"SELECT catName FROM category\");\n return rs;\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "@GetMapping //método abaixo retorna todas categorias\n\tpublic ResponseEntity<List<Product>> findAll() {\n\t\tList<Product> list = categoryRepository.findAll();\n\t\t\n\t\t\n\t\treturn ResponseEntity.ok().body(list);\n\t}", "@Override\n public Single<List<CategoryModel>> getCategories() {\n return api.getCategories().map(categories -> iVmMapper.mapToViewModel(categories));\n }", "@ApiMethod(name = \"getCategories\", path = \"category\", httpMethod = \"GET\")\n public List<Category> getCategories(@Nullable @Named(\"search\") String search) {\n\n if (search == null || search.isEmpty()) {\n return mCategoryService.list();\n } else {\n return mCategoryService.list(search);\n }\n }", "@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\tString hql = \"from Category\";\r\n\t\treturn (List<Category>) getHibernateTemplate().find(hql);\r\n\t}", "@RequestMapping(method=RequestMethod.GET,\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Collection<Category>> getCategories(@RequestParam(value = \"categoryName\", required = false) String categoryName){\n\t\t\n\t\tCollection<Category> categories = new ArrayList<>();\n\t\tif (categoryName != null) {\n\t\t\tCategory category = categoryService.findByName(categoryName);\n\t\t\tcategories.add(category);\n\t\t} else {\n\t\t\tCollection<Category> allCategories = categoryService.findAll();\n\t\t\tcategories.addAll(allCategories);\n\t\t}\n\t\treturn new ResponseEntity<Collection<Category>>(categories, HttpStatus.OK);\n\t\t\n\t}", "private void loadCategories() {\n\t\tcategoryService.getAllCategories(new CustomResponseListener<Category[]>() {\n\t\t\t@Override\n\t\t\tpublic void onHeadersResponse(Map<String, String> headers) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\tLog.e(\"EditTeamProfileActivity\", \"Error while loading categories\", error);\n\t\t\t\tToast.makeText(EditTeamProfileActivity.this, \"Error while loading categories \" + error.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(Category[] response) {\n\t\t\t\tCollections.addAll(categories, response);\n\n\t\t\t\tif (null != categoryRecyclerAdapter) {\n\t\t\t\t\tcategoryRecyclerAdapter.setSelected(0);\n\t\t\t\t\tcategoryRecyclerAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\n\t\t\t\tupdateSelectedCategory();\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic List<Categorie> getAllCategorie() {\n\t\treturn cateDao.getAllCategorie();\r\n\t}", "public List<Category> findAll();", "public List<Cvcategory> findAllCvcategories();", "@GetMapping(\"/categorie/getallcategories\")\n Page<CategorieProduit> getAllCategories(Pageable pageable) {\n return categorieProduitMetier.getAllCategorie(pageable);\n }", "@GetMapping(\"/active\")\n\t@ResponseStatus(code = HttpStatus.OK)\n\tpublic List<Category> viewActiveCategory() throws ServiceException {\n\t\tList<Category> viewResponse = categoryService.listActiveCategory();\n\t\treturn viewResponse;\n\n\t}", "public void getCategories(io.reactivesw.catalog.grpc.Empty request,\n io.grpc.stub.StreamObserver<io.reactivesw.catalog.grpc.CategoryList> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(METHOD_GET_CATEGORIES, getCallOptions()), request, responseObserver);\n }", "@Override\r\n\tpublic List<SubCategory> getAllSubCategories() throws IOException {\n\t\treturn categoryDao.getAllSubCategories();\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ServiceCat> listServiceCat() {\r\n\t\tList<ServiceCat> courses = null;\r\n\t\ttry {\r\n\t\t\tcourses = session.createQuery(\"from ServiceCat\").list();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn courses;\r\n\t}", "public ObservableList<String> getCategories()\n {\n ArrayList<Category> categoryList = rentalModel.getCategoryList();\n ArrayList<String> categoryListString = new ArrayList<>();\n for (int i = 0; i < categoryList.size(); i++)\n {\n categoryListString.add(categoryList.get(i).toString());\n }\n categoriesList = FXCollections.observableArrayList(categoryListString);\n return categoriesList;\n }", "WebBookNewsCateListResult listAllBookNewsCategories();", "public List<Category> getCategoriesList() {\n\t\treturn categoriesList;\n\t}", "@NonNull\n public static List<Category> getCategories() {\n if (CATEGORY == null) {\n CATEGORY = new ArrayList<>();\n CATEGORY.add(new Category(\"Bollywood\", R.drawable.bollywood, 1));\n CATEGORY.add(new Category(\"Hollywood\", R.drawable.hollywood3, 2));\n CATEGORY.add(new Category(\"Cricket\", R.drawable.cricket4, 3));\n CATEGORY.add(new Category(\"Science\", R.drawable.science1, 4));\n CATEGORY.add(new Category(\"Geography\", R.drawable.geography, 5));\n CATEGORY.add(new Category(\"History\", R.drawable.history, 6));\n }\n return CATEGORY;\n }", "@WebMethod\n\tList<String> getProductCategories2();", "public void getCategories(io.reactivesw.catalog.grpc.Empty request,\n io.grpc.stub.StreamObserver<io.reactivesw.catalog.grpc.CategoryList> responseObserver) {\n asyncUnimplementedUnaryCall(METHOD_GET_CATEGORIES, responseObserver);\n }", "@Override\r\n\tpublic List<Category> getAllCategories() throws CategoryRetrievalException {\n\t\ttry {\r\n\t\t\treturn categoryDao.getAllCategories();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new CategoryRetrievalException(\"error in retriving Category\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Category> findAll() {\n\t\treturn(List<Category>) em.createNamedQuery(\"findAllCategories\").getResultList();\r\n\t}", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Category> getCategoryFindAll() {\n return em.createNamedQuery(\"Category.findAll\", Category.class).getResultList();\n }", "public List<Category> list() {\n\t\tSession session = getSession();\n\n\t\tQuery query = session.createQuery(\"from Category\");\n\t\tList<Category> categoryList = query.list();\n session.close();\n\t\treturn categoryList;\n\t}", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "public List<Category> getAllCategories() {\n\t dbUtil = new DBUtil();\n\t StringBuffer sbQuery = dbUtil.getQueryBuffer();\n\t ArrayList<String> args = dbUtil.getArgs();\n\t ResultSet rs = null;\n\t List<Category> listCategory = null;\n\t \n\t /*** Get the details of a particular Category ***/\n\t /*** QUERY ***/\n\t sbQuery.setLength(0);\n\t sbQuery.append(\" SELECT \");\n\t sbQuery.append(\" id, \");\n\t sbQuery.append(\" name, \");\n\t sbQuery.append(\" userid \");\n\t sbQuery.append(\" FROM lookup.category \");\n\t \n\t /*** Prepare parameters for query ***/\n\t args.clear();\n\t \n\t \n\t /*** Pass the appropriate arguments to DBUtil class ***/\n\t rs = dbUtil.executeSelect(sbQuery.toString(), args);\n\t \n\t /*** Convert the result set into a User object ***/\n\t if(rs!=null)\n\t listCategory = TransformUtil.convertToListCategory(rs);\n\t \n\t dbUtil.closeConnection();\n\t dbUtil = null;\n\t \n\t return listCategory;\n\t}", "@GetMapping(\"/listAll\")\n\tpublic ResponseEntity<?> findAll(){\n\t\treturn new ResponseEntity<>(catService.listAll(),HttpStatus.OK);\n\t}", "@GetMapping(\"/list\")\n public String listCategories(Model theModel) {\n List<Categories> theCategories = categoriesService.getCategories();\n theModel.addAttribute(\"categories\", theCategories);\n return \"loaisanpham-list\"; }", "public Set<CategoryRefPathDTO> getCategories() {\n\t\tif (categories == null) {\n\t\t\tcategories = new HashSet<CategoryRefPathDTO>();\n\t\t}\n\t\treturn categories;\n\t}", "List<Category> findAll();", "public LinkedHashMap<String, String> getCategories() {\r\n\t\treturn this.categories;\r\n\t}", "VendorData getVendorCategories(String vendorCode);", "public List<VehicleCategoryMasterBean> categoryList() throws Exception;", "public ArrayList<Category> getCategories() {\n ArrayList<Category> categories = new ArrayList<>();\n Cursor cursor = database.rawQuery(\"SELECT * FROM tbl_categories\", null);\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Category category = new Category();\n category.setCategory_id(cursor.getInt(cursor.getColumnIndex(\"category_id\")));\n category.setCategory_name(cursor.getString(cursor.getColumnIndex(\"category_name\")));\n\n\n categories.add(category);\n cursor.moveToNext();\n }\n cursor.close();\n return categories;\n }", "public String categoryTech() {\n\t\treturn \"Computer Science\";\n\t}", "public void getCategorory(){\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(AssetCategory.class, \"category\", PortalClassLoaderUtil.getClassLoader());\n\t\ttry {\n\t\t\tList<AssetCategory> assetCategories = AssetCategoryLocalServiceUtil.dynamicQuery(dynamicQuery);\n\t\t\tfor(AssetCategory category : assetCategories){\n\t\t\t\tlog.info(category.getName());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}" ]
[ "0.738799", "0.70253915", "0.6782151", "0.6717574", "0.6709037", "0.66368574", "0.6565318", "0.6412008", "0.6411285", "0.63908", "0.63817734", "0.6355431", "0.63539386", "0.6330193", "0.62897056", "0.6282062", "0.6262232", "0.6257864", "0.62456733", "0.6235546", "0.6213018", "0.621093", "0.6196451", "0.6193186", "0.6192273", "0.619196", "0.6189089", "0.6188269", "0.61864394", "0.61608344", "0.61557037", "0.6155575", "0.6153039", "0.61498475", "0.6139253", "0.61391866", "0.61270875", "0.61049587", "0.6099215", "0.60989684", "0.6096137", "0.6061802", "0.605906", "0.6057968", "0.6037099", "0.6027154", "0.5979349", "0.5969", "0.5937262", "0.5917575", "0.58915454", "0.5889447", "0.5888766", "0.5886896", "0.5884021", "0.58768296", "0.5872064", "0.58630747", "0.5849528", "0.5822354", "0.58101714", "0.5803305", "0.58020794", "0.5799996", "0.5797721", "0.5757475", "0.57569575", "0.575392", "0.57501155", "0.5744987", "0.5730163", "0.5729516", "0.572626", "0.57246906", "0.5718486", "0.5708968", "0.5703243", "0.5698288", "0.56921107", "0.5691624", "0.56776166", "0.5672146", "0.56716967", "0.56661034", "0.5663053", "0.56584084", "0.56527823", "0.56467634", "0.564287", "0.5618157", "0.561548", "0.5584024", "0.557497", "0.55722374", "0.55656785", "0.5561604", "0.55580974", "0.5553632", "0.55432063", "0.55350536" ]
0.8539031
0
GET /technologycategories/:id : get the "id" technologyCategory.
@RequestMapping(value = "/technology-categories/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<TechnologyCategoryDTO> getTechnologyCategory(@PathVariable Long id) { log.debug("REST request to get TechnologyCategory : {}", id); TechnologyCategoryDTO technologyCategoryDTO = technologyCategoryService.findOne(id); return Optional.ofNullable(technologyCategoryDTO) .map(result -> new ResponseEntity<>( result, HttpStatus.OK)) .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Category getCategoryById(int id);", "Category getCategoryById(int categoryId);", "Category getCategoryById(Integer categoryId);", "@RequestMapping(value = RestConstant.BY_ID, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<Category> getCategoryById(@PathVariable(\"id\") Long id) {\r\n\t\ttry {\r\n\t\t\tCategory category = categoryService.findById(id);\r\n\t\t\treturn new ResponseEntity<Category>(category, HttpStatus.OK);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Failed to read category \" + id, e);\r\n\t\t\treturn new ResponseEntity<Category>(HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/technology-categories\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<TechnologyCategoryDTO> getAllTechnologyCategories() {\n log.debug(\"REST request to get all TechnologyCategories\");\n return technologyCategoryService.findAll();\n }", "@ApiMethod(name = \"getCategory\", path = \"category/{id}\", httpMethod = ApiMethod.HttpMethod.GET)\n public Category getCategory(@Named(\"id\") Long id)\n throws NotFoundException {\n\n return mCategoryService.getById(id);\n }", "@RequestMapping(value=\"/{categoryId}\",\n\t\t\tmethod=RequestMethod.GET, \n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Category> getCategoryById(@PathVariable(\"categoryId\") Long categoryId){\n\t\t\n\t\tCategory category = categoryService.findById(categoryId);\n\t\tif (category == null) {\n\t\t\treturn new ResponseEntity<Category>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<Category>(category, HttpStatus.OK);\n\t}", "@Override\n\tpublic Category getCategory(int id) {\n\t\treturn categoryRepository.getOne(id);\n\t}", "public Category getCategoryById()\r\n {\r\n return cdb.getCategoryById();\r\n }", "@GET\n @Path(\"/{id : \\\\d+}\")\n @Produces(APPLICATION_JSON)\n @ApiOperation(value = \"Find a category by the Id.\", response = CategoryDTO.class)\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Category found\"),\n @ApiResponse(code = 400, message = \"Invalid input\"),\n @ApiResponse(code = 404, message = \"Category not found\")\n })\n public Response getCategory(@PathParam(\"id\") Long id) {\n log.debug(\"REST request to get Category : {}\", id);\n Optional<CategoryDTO> categoryDTO = categoryService.findOne(id);\n return ofNullable(categoryDTO)\n .map(Response::ok)\n .orElse(status(NOT_FOUND))\n .build();\n }", "public Categorie getCategorieById(long id);", "@RequestMapping(value = \"/technology-categories/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTechnologyCategory(@PathVariable Long id) {\n log.debug(\"REST request to delete TechnologyCategory : {}\", id);\n technologyCategoryService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"technologyCategory\", id.toString())).build();\n }", "@Override\n\tpublic Category getCategoryById(String id) {\n\t\tSession session = sessionFactory.openSession();\n\t\tsession.beginTransaction();\n\t\tint catId = Integer.parseInt(id);\n\t\tQuery query = session.getNamedQuery(Category.GET);\n\t\tquery.setInteger(\"id\", catId);\n\t\tCategory category = (Category) query.uniqueResult();\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\treturn category;\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<ArticleCategoryDTO> getArticleCategory(@PathVariable String id) {\n\t\tArticleCategory article = articleCategoryService.findOne(id);\n\t\tif (article == null) {\n\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\treturn new ResponseEntity<>(new ArticleCategoryDTO(article), HttpStatus.OK);\n\t}", "public static Category getCategoryById(int id){\n\t\treturn CategoryDAO.getCategoryById(id);\n\t}", "@Override\r\n\tpublic Category getCategoryById(int id) {\n\t\treturn getHibernateTemplate().get(Category.class, id);\r\n\t}", "@CrossOrigin(origins = \"http://localhost:8080\")\r\n @GetMapping(\"/{id}\")\r\n public ResponseEntity<Category> get(@PathVariable Integer id) {\r\n try {\r\n Category category = categoryService.getCategoryById(id);\r\n return new ResponseEntity<Category>(category, HttpStatus.OK);\r\n } catch (NoSuchElementException e) {\r\n return new ResponseEntity<Category>(HttpStatus.NOT_FOUND);\r\n \r\n }\r\n }", "Category selectCategory(long id);", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(value=\"/{id}\", method= RequestMethod.GET)\n public ResponseEntity<CategoryDTO> getCategory(@PathVariable Long id){\n\n Category cat = catService.findOne(id);\n\n if(cat == null){\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n\n return new ResponseEntity<>(catMapper.toDto(cat), HttpStatus.OK);\n }", "Category getCategoryByName(String categoryName);", "public Technology getTechnologyById(int id) {\n Technology foundedTechnology = null;\n String SQL = \"SELECT * FROM `technologies` WHERE `idTechnology` =\" + id + \"\";\n MysqlDbManager dbManager = MysqlDbManager.getInstance();\n try {\n ResultSet resultSet = dbManager.getResultSet(SQL);\n while (resultSet.next()) {\n foundedTechnology = new Technology(resultSet);\n }\n } catch (SQLException e) {\n LOGGER.log(Level.SEVERE, \"SQLException\" + e.toString());\n } finally {\n try {\n if (!dbManager.getPreparedStatement().isClosed()) {\n dbManager.getPreparedStatement().close();\n }\n if (!dbManager.getResultSet().isClosed()) {\n dbManager.getResultSet().close();\n }\n } catch (SQLException e) {\n LOGGER.log(Level.SEVERE, \"SQLException\" + e.toString());\n }\n }\n return foundedTechnology;\n }", "@RequestMapping(value = \"/category/{id}\", method = RequestMethod.GET)\n\tpublic @ResponseBody Optional<Category> findCategoryRest(@PathVariable(\"id\") Long categoryId) {\n\t\treturn CatRepo.findById(categoryId);\n\t}", "@GetMapping(\"{id}\")\n\t@ApiOperation(value = \"categoryAPI\")\n\t@ApiResponses(value = { @ApiResponse(code = 200, message = \"Category detail\", response = String.class),\n\t\t\t@ApiResponse(code = 400, message = \"Invalid Category\", response = Category.class) })\n\t\n\tpublic ResponseEntity<?> view(@PathVariable(\"id\") Integer categoryId) throws ServiceException {\n\n\t\t\n\t\ttry {\n\t\t\tCategory category = categoryService.viewCategory(categoryId);\n\t\t\treturn new ResponseEntity<>(category, HttpStatus.OK);\n\n\t\t} catch (ServiceException e) {\n\t\t\tMessage message = new Message(e.getMessage());\n\t\t\treturn new ResponseEntity<>(message,HttpStatus.BAD_REQUEST);\n\t\t}\n\n\t}", "ConfigCategory getCategoryById(long categoryId);", "Optional<Category> getCategory(Integer id);", "@RequestMapping(value = \"/_search/technology-categories\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<TechnologyCategoryDTO> searchTechnologyCategories(@RequestParam String query) {\n log.debug(\"REST request to search TechnologyCategories for query {}\", query);\n return technologyCategoryService.search(query);\n }", "@Override\n public Category getCategoryById(int categoryId)\n {\n String query = \"SELECT * FROM Categories WHERE CategoryID = \" + categoryId;\n ResultSet rs = DataService.getData(query);\n \n try\n {\n if (rs.next())\n {\n return convertResultSetToCategory(rs);\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return null;\n }", "public DVDCategorie getDVDCategorie(int id);", "String getCategory();", "String getCategory();", "@Override\n\tpublic Category getCategory(int idCat) {\n\t\treturn dao.getCategory(idCat);\n\t}", "@Override\n\tpublic Category getById(long id) {\n\t\treturn getById(id);\n\t}", "public PortletCategory getPortletCategory(String portletCategoryId);", "public String getCategory();", "public Category get(int id) {\n\t\treturn (Category) this.getCurrentSession().get(Category.class, id);\r\n\t}", "@Override\n\tpublic Categories findById(Integer catId) {\n\t\treturn categoriesDAO.findById(catId);\n\t}", "@ApiMethod(name = \"getSubCategory\",\n path = \"subcategory/{id}\",\n httpMethod = ApiMethod.HttpMethod.GET)\n public SubCategory getSubCategory(@Named(\"id\") Long id)\n throws NotFoundException {\n\n return mSubCategoryService.getById(id);\n }", "Category findCategoryById(Long id);", "public static Category getCategory(int id) {\n List<Category> categories = getCategories();\n for (Category c : categories) {\n if (c.getId() == id) {\n return c;\n }\n }\n return null;\n }", "@Override\n\tpublic Category getCategory(String categoryId) throws Exception {\n\t\treturn null;\n\t}", "@GetMapping(value = \"/{id}\")\n\tpublic ResponseEntity<Product> findById(@PathVariable Long id) {\n\t\tProduct cat = categoryRepository.findById(id).get();\n\t\treturn ResponseEntity.ok().body(cat);\n\t}", "public Category getCategory();", "Category getByName(String name);", "public static Category findCategoryById(Long id){\n return categoryFinder.where().eq(\"category-id\", id).findUnique();\n }", "CodeCategory getCodeCategory(UUID id)\n throws DAOException;", "@GetMapping(\"/categoriesfu/{id}\")\n public synchronized ResponseEntity<Category> getCategory(@PathVariable Long id) {\n log.debug(\"REST request to get Category : {}\", id);\n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n Optional<Category> category = categoryRepository.findById(id);\n \tif(category != null && category.get().getRestaurant().getId()!=restaurant.getId()){\n \t\tlog.debug(\"zła restauracja \"+restaurant.getName() + ' ' + category.get().getRestaurant().getName());\n \t\tcategory=null;\n \t}\n return ResponseUtil.wrapOrNotFound(category);\n }", "public com.google.common.util.concurrent.ListenableFuture<io.reactivesw.catalog.grpc.GrpcCategory> getCategoryById(\n io.reactivesw.catalog.grpc.LongValue request) {\n return futureUnaryCall(\n getChannel().newCall(METHOD_GET_CATEGORY_BY_ID, getCallOptions()), request);\n }", "public Category getCategoryById(Long id) {\n if (allCategories == null || sortedCategories == null) {\n buildCategories();\n }\n\n Category categoryToReturn = null;\n for (Category category : allCategories) {\n if (category.getId().equals(id)) {\n categoryToReturn = category;\n }\n }\n return categoryToReturn;\n }", "Category findById(int id);", "public Category getById(final Long id) {\r\n return this.manager.find(Category.class, id);\r\n }", "Category selectCategory(String name);", "int getCategoryId();", "public DocCategory getDocCategoryById(Integer id) {\n return docCategoryRepository.findById(id).orElseThrow(EntityNotFoundException::new);\n }", "public Cvcategory findCvcategoryById(Long id);", "@RequestMapping(value = \"/restful/referencecategory\", method = RequestMethod.GET)\n\t@ResponseBody\n public ReferenceCategory getReferenceCategory(Authentication authentication, @RequestParam(value=\"id\") String id) {\n\t\tlogger.info(\"Inside restful getReferenceCategory method...\");\n\t\tReferenceCategory referenceCategory = null;\n\t\tSecurityUser user = (SecurityUser)authentication.getPrincipal();\n Long userId = user.getApplicationUser().getId();\t\t\n\t\t\n\t\ttry{\n\t\t\t// TODO: Needs exception handling policy\n\t \treferenceCategory = referenceCategoryService.load(Long.valueOf(id), userId);\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tlogger.error(\"Exception caught !!!!!!!!!!!!!!\", ex);\n\t\t}\t\t\n\t\t\n\t\t\n \treturn referenceCategory;\n }", "@GetMapping(\"/find/{idcategory}\")\n\tpublic ResponseEntity<?> findById(@PathVariable int idcategory){\n\t\tCategoryVO cat = catService.findById(idcategory);\n\t\treturn checkNull(cat);\n\t}", "@GetMapping(\"/category/{id}\")\n ResponseEntity<?> getCategory(@PathVariable Long id){\n Optional<Category> category = categoryRepository.findById(id);\n\n //map it to response if OK... create new response entity and send back NOT FOUND to browser if invalid id\n return category.map(response -> ResponseEntity.ok().body(response)).orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public Category getCategory(int categoryId) {\n\t\treturn categoryService.getCategory(categoryId);\n\t}", "@Override\n\tpublic Category getCategory(String catId) {\n\t\tString cat=\"From Category where catId='\"+catId+\"'\";\n\t\tQuery q=sessionFactory.getCurrentSession().createQuery(cat);\n\t\tList<Category> catlist=(List<Category>) q.list();\n\t\tif(catlist==null||catlist.isEmpty())\n\t\t{\n\t\treturn null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn catlist.get(0);\n\t\t\n\t\t}\n\t}", "public String getCategoryid() {\r\n return categoryid;\r\n }", "public Category getCategoryById(int categoryId) {\n\t\tSession session = getSession();\n\t\t\n\t\tQuery query = session.createQuery(\"from Category where categoryId = ?\");\n\t\tquery.setInteger(0, categoryId);\n\t\treturn(Category) query.uniqueResult();\n\t}", "DvdCategory searchCategoryById(Integer id) throws DvdStoreException;", "public String getCategoryId() {\n return categoryId;\n }", "@Override\n\tpublic Category getCategory(Long id) {\n\t\treturn (Category)sessionFactory.getCurrentSession().get(Category.class.getName(), id);\n\t}", "public TCustCategory findTCustCategoryById(final Integer tCustCategoryId) {\n\t\tLOGGER.info(\"find TCustCategory instance with categoryId: \" + tCustCategoryId);\n\t\treturn genericDAO.get(clazz, tCustCategoryId);\n\t}", "public io.reactivesw.catalog.grpc.GrpcCategory getCategoryById(io.reactivesw.catalog.grpc.LongValue request) {\n return blockingUnaryCall(\n getChannel(), METHOD_GET_CATEGORY_BY_ID, getCallOptions(), request);\n }", "@RequestMapping(value = \"category\", method = RequestMethod.GET)\n public String category(Model model, @RequestParam int id){\n Category cat = categoryDao.findOne(id);\n List<Recipe> recipes = cat.getRecipes();\n model.addAttribute(\"recipes\", recipes);\n model.addAttribute(\"title\", cat.getCategoryName() + \" recipes\");\n return \"recipe/list-under\";\n }", "public static String getCategoryNameById(int id) {\n\n String categoryName = \"\";\n try {\n Category category = Category.find(Category.class, \"category_id=\" + id, null).get(0);\n categoryName = category.getCategoryName();\n } catch (Exception e) {\n\n }\n return categoryName;\n\n }", "ProductCategory find(int id)throws IllegalArgumentException;", "@RequestMapping(value = \"/technology-categories\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TechnologyCategoryDTO> createTechnologyCategory(@RequestBody TechnologyCategoryDTO technologyCategoryDTO) throws URISyntaxException {\n log.debug(\"REST request to save TechnologyCategory : {}\", technologyCategoryDTO);\n if (technologyCategoryDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"technologyCategory\", \"idexists\", \"A new technologyCategory cannot already have an ID\")).body(null);\n }\n TechnologyCategoryDTO result = technologyCategoryService.save(technologyCategoryDTO);\n return ResponseEntity.created(new URI(\"/api/technology-categories/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"technologyCategory\", result.getId().toString()))\n .body(result);\n }", "public long getCategoryId();", "@GetMapping(\"/category\")\n @TokenRequired\n @ApiOperation(value = \"Gets a Category\", httpMethod = \"GET\")\n public ServiceResponse<CategoryDto> getCategory(@RequestParam(value = \"categoryId\", required = false) String categoryId,\n @RequestParam(value = \"slug\", required = false) String slug,\n HttpServletResponse response) {\n ServiceResponse<CategoryDto> serviceResponse = new ServiceResponse<>();\n ServiceRequest<CategoryDto> serviceRequest = new ServiceRequest<>();\n try {\n checkRequiredParameters(categoryId, slug);\n serviceRequest.setParameter(createDto(categoryId, slug));\n Category categoryResult = categoryService.getCategoryByIdOrSlug(convertToEntity(serviceRequest.getParameter()));\n handleResponse(serviceResponse, convertToDto(categoryResult), response, true);\n } catch (Exception e) {\n exceptionHandler.handleControllerException(serviceResponse, serviceRequest, e, getMethodName(), response);\n }\n return serviceResponse;\n }", "public ResponseEntity<Category> getProductById(Long categoryID) \n throws NotFoundException{\n Category category = categoryRepository.findById(categoryID)\n .orElseThrow(() -> new NotFoundException(categoryID));\n return ResponseEntity.ok().body(category);\n }", "@Override\n\tpublic Cat getById(Integer id) {\n\t\tOptional<Cat> cat = catRepository.findById(id);\n\t\tif(cat.isPresent()) {\n\t\t\treturn cat.get();\n\t\t} else {\n\t\t\tthrow new CatNotFoundException();\n\t\t}\n\t}", "public List<String> getTierOneAnswersCategories(Integer productId) {\n\tList<String> list = getHibernateTemplate().find(\"select cat.name from Category cat , Response resp, Request req where resp.requestId = req.id and req.productId=? and req.tier=1 and cat.categoryCode= resp.answer)\", productId); \n\treturn list;\n\n }", "public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}", "@Override\n\tpublic Category findById(String id) {\n\t\treturn null;\n\t}", "TrackerListCategory getTrackerListCategory(final Integer id);", "@GetMapping(\"category\")\n\t\tpublic List<String> getCategory(){\n\t\t\tList<String> list = repo.findByCat();\n\t\t\treturn list;\n\t\t\t\n\t\t\t\n\t\t}", "public Integer getCategoryId() {\n return categoryId;\n }", "public Integer getCategoryId() {\n return categoryId;\n }", "public int getCategory(){\n\t\treturn this.cat;\n\t}", "public List<Category> findAllCategoryt_id() {\n\t\treturn null;\n\t\t\n\t}", "public SubCategory getSubCategoryId(Integer catId);", "public int getCategory() {\r\n\t\treturn category;\r\n\t}", "@Override\r\n\tpublic Category findCategory(int idCategory) {\n\t\treturn em.find(Category.class, idCategory);\r\n\t}", "google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory();", "public List<String> getCategories(int id){\r\n List<String> categories = new LinkedList<>();\r\n String sql = \"SELECT * FROM Categories WHERE productID = ?\";\r\n\r\n try {\r\n\r\n PreparedStatement categoryStatement = conn.prepareStatement(sql);\r\n categoryStatement.setInt(1, id);\r\n\r\n ResultSet rs = categoryStatement.executeQuery();\r\n\r\n // loop through the result set\r\n while (rs.next()) {\r\n categories.add(rs.getString(\"category\"));\r\n\r\n }\r\n } catch (SQLException e) {\r\n System.err.println(e.getMessage() + \" from here\");\r\n }\r\n\r\n return categories;\r\n }", "Categorie findOne(Long id);", "public String categoryTech() {\n\t\treturn \"Computer Science\";\n\t}", "TrackerListCategory loadTrackerListCategory(final Integer id);", "@RequestMapping(value = \"/loadCategoryDetails\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody Category loadCategoryDetails(@RequestParam String categoryId) {\r\n\t\tCategory category = new Category();\r\n\t\tif (null != categoryId && !categoryId.equalsIgnoreCase(\"\")) {\r\n\t\t\tcategory = categoryService.getCategoryById(Integer.parseInt(categoryId));\r\n\t\t}\r\n\t\treturn category;\r\n\t}", "String category();", "@Override\n public CategoryDTO get(Long id) {\n Category category = categoryRepository.findById(id).get();\n CategoryDTO result = categoryConverter.toDTO(category);\n return result;\n }", "public Category getCategory() {\r\n\t\treturn entity.getCategory();\r\n\t}", "public abstract String getCategory();", "public abstract String getCategory();", "@GetMapping(\"/category\")\n\t public ResponseEntity<List<Category>> getcategorys() {\n\n\t List<Category> list = categoryService.getAllcategorys();\n\t if (list.size() <= 0) {\n\t return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n\t }\n\t return ResponseEntity.status(HttpStatus.CREATED).body(list);\n\t }", "public int getCategory_id() {\n return category_id;\n }", "public void getRemoteCategoryById(long category_id) {\n url = Constants.getCategoryById;\n params = new HashMap<>();\n params.put(param_category_id, \"\" + category_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getCategoryById(category_id, mIRestApiCallBack, true, url, params);\n } else {\n\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection),\n // Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }" ]
[ "0.72093385", "0.7118511", "0.704908", "0.7009744", "0.68804353", "0.6876412", "0.675882", "0.66986734", "0.66892034", "0.6664045", "0.6660461", "0.6654268", "0.66083544", "0.65952814", "0.659255", "0.6555543", "0.6527165", "0.65246695", "0.65095675", "0.6505685", "0.64530253", "0.64234865", "0.640552", "0.64005953", "0.6389415", "0.6382031", "0.6372617", "0.63552153", "0.6333628", "0.6333628", "0.6321598", "0.63106114", "0.6303241", "0.6290924", "0.62508106", "0.6250556", "0.6245709", "0.62455034", "0.62398356", "0.62325203", "0.62197024", "0.62054473", "0.61812365", "0.6168956", "0.61683035", "0.6153993", "0.6153752", "0.6147871", "0.61201817", "0.610589", "0.6097553", "0.60940796", "0.6050234", "0.60427845", "0.6026983", "0.6020734", "0.60167426", "0.60148776", "0.60110545", "0.6002534", "0.5995395", "0.5983011", "0.5970043", "0.5967785", "0.5967462", "0.59641093", "0.5949291", "0.59447175", "0.5930407", "0.5921372", "0.59132236", "0.5912433", "0.5910386", "0.5890249", "0.5883865", "0.58805555", "0.5866332", "0.5857356", "0.5845437", "0.58422625", "0.58422625", "0.5839445", "0.5831182", "0.5828688", "0.58117676", "0.57929236", "0.5786021", "0.57442164", "0.57361645", "0.57355744", "0.57347673", "0.5729112", "0.5728575", "0.57173806", "0.5716301", "0.5705679", "0.5705679", "0.5705455", "0.57039535", "0.5691762" ]
0.8396375
0
DELETE /technologycategories/:id : delete the "id" technologyCategory.
@RequestMapping(value = "/technology-categories/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Void> deleteTechnologyCategory(@PathVariable Long id) { log.debug("REST request to delete TechnologyCategory : {}", id); technologyCategoryService.delete(id); return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert("technologyCategory", id.toString())).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteCategoryById(int categoryId);", "void deleteCategory(Integer id);", "void deleteCategory(long id);", "public void deleteCategory(Long id) throws BusinessException;", "@DELETE\n @Path(\"/{id : \\\\d+}\")\n @ApiOperation(value = \"Delete a category\")\n @ApiResponses(value = {\n @ApiResponse(code = 204, message = \"Category has been deleted\"),\n @ApiResponse(code = 400, message = \"Invalid input\")\n })\n public Response deleteCategory(@PathParam(\"id\") Long id) {\n log.debug(\"REST request to delete Category : {}\", id);\n categoryService.delete(id);\n return noContent().build();\n }", "@DeleteMapping(\"/category/{id}\")\n ResponseEntity<Category> deleteCategory(@PathVariable Long id){\n categoryRepository.deleteById(id);\n return ResponseEntity.ok().build();\n }", "void deleteCategoryByName(String categoryName);", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(value=\"/{id}\", method=RequestMethod.DELETE)\n public ResponseEntity<Void> deleteCategory(@PathVariable Long id){\n try {\n catService.delete(id);\n } catch (Exception e) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n\n return new ResponseEntity<>(HttpStatus.OK);\n }", "@RequestMapping(value = { \"/delete/category/{id}\" }, method = RequestMethod.GET)\r\n\tpublic String deleteCategory(@PathVariable int id) {\r\n\t\tcategory = categoryDAO.get(id);\r\n\t\tcategoryDAO.deleteCategory(category);\r\n\t\treturn \"redirect:/admin/addcategory?op=delete&status=success&id=\" + id;\r\n\t}", "@RequestMapping(value = RestConstant.BY_ID, method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<Category> deleteById(@PathVariable(\"id\") Long id) {\r\n\t\ttry {\r\n\t\t\tcategoryService.deleteById(id);\r\n\t\t\treturn new ResponseEntity<Category>(HttpStatus.NO_CONTENT);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Failed to delete the category for the id \" + id, e);\r\n\t\t\treturn new ResponseEntity<Category>(HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t}\r\n\t}", "public void deleteTCustCategory(final Integer categoryId) {\n\t\tLOGGER.info(\"=========== Delete TCustCategory ===========\");\n\t\tfinal TCustCategory tCustCategory = genericDAO.get(clazz, categoryId);\n\t\tgenericDAO.remove(tCustCategory);\n\t}", "void deleteCategoryProducts(long id);", "@DeleteMapping(\"/categoriesfu/{id}\")\n\t@Secured({ AuthoritiesConstants.ADMIN, AuthoritiesConstants.BOSS, AuthoritiesConstants.MANAGER })\n public synchronized ResponseEntity<Void> deleteCategory(@PathVariable Long id) {\n log.debug(\"REST request to delete Category : {}\", id);\n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n final Optional<Category> category = categoryRepository.findById(id);\n if(category.get().getRestaurant().getId()!=restaurant.getId()) {\n \tid = null;\n }\n categoryRepository.deleteById(id);\n return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, true, ENTITY_NAME, id.toString())).build();\n }", "@Override\n\tpublic void deleteCateogry(int id) {\n\t\tcategoryRepository.deleteById(id);\n\t\t\n\t}", "@DeleteMapping(\"/delete/{idcategory}\")\n\tpublic ResponseEntity<?> deleteById(@PathVariable int idcategory){\n\t\tCategoryVO cat = catService.deleteById(idcategory);\n\t\treturn checkNull(cat);\n\t}", "@Override\n\tpublic Categories delete(Integer catId) {\n\t\treturn categoriesDAO.delete(catId);\n\t}", "void deleteCategory(Category category);", "void deleteTrackerListCategory(final Integer id);", "public void delete(Long id) {\n log.debug(\"Request to delete Categoria : {}\", id);\n categoriaRepository.delete(id);\n }", "@Override\n public void delete(long id) {\n categoryRepository.deleteById(id);\n }", "Boolean deleteCategory(Integer category_Id) throws DvdStoreException;", "public void deletePortletCategory(PortletCategory category);", "@Delete\n void delete(SpeciesCategory speciesCategory);", "void deleteCodeCategory(UUID id)\n throws DAOException;", "public void deleteRemoteCategory(long category_id) {\n url = Constants.deleteCategory;\n params = new HashMap<>();\n params.put(param_category_id, \"\" + category_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.deleteCategoryById(category_id, mIRestApiCallBack, false, url, params);\n } else {\n mIRestApiCallBack.onNoInternet();\n }\n\n }", "public void deleteCategory(int id){\n\t\t// delete all the values in location\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY +\" = ?\", new String[]{String.valueOf(id)});\n\t\t// delete the category\n\t\tdb.delete(DBEntryContract.CategoryEntry.TABLE_NAME, DBEntryContract.CategoryEntry._ID+\"= ?\", new String[]{String.valueOf(id)});\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete TechPractices : {}\", id);\n techPracticesRepository.deleteById(id);\n }", "@RequestMapping(value = \"/delete/{categoryId}\")\n public String deleteCategory(@PathVariable Long categoryId, RedirectAttributes redirectAttributes) {\n try {\n categoryService.delete(categoryId);\n } catch (RuntimeException e) {\n redirectAttributes.addFlashAttribute(\"error\",e.getMessage());\n }\n\n return \"redirect:/admin/categories\";\n }", "public void delete(int id) {\n\t\tCategory function = this.get(id) ;\r\n\t\tthis.getCurrentSession().delete(function);\r\n\t}", "@DeleteMapping(\"{id}\")\n\t@ApiOperation(value = \"categoryAPI\")\n\t@ApiResponses(value = { @ApiResponse(code = 201, message = \"Category deleted\", response = String.class),\n\t\t\t@ApiResponse(code = 400, message = \"Invalid Category\", response = Category.class) })\n\t\n\tpublic ResponseEntity<?> deleteByCategory(@PathVariable(\"id\") Integer categoryId) throws ServiceException {\n\n\t\ttry {\n\t\t\tcategoryService.deleteCategory(categoryId);\n\t\t\treturn new ResponseEntity<>(HttpStatus.CREATED);\n\n\t\t} catch (ServiceException e) {\n\t\t\tMessage message = new Message(e.getMessage());\n\t\t\treturn new ResponseEntity<>(message,HttpStatus.BAD_REQUEST);\n\t\t}\n\n\t}", "void deleteCatFood(Long catId, Long foodId);", "public void delete(Long id) {\n log.debug(\"Request to delete SubCategory : {}\", id);\n subCategoryRepository.delete(id);\n }", "@Override\n\tpublic int deleteById(String id) {\n\t\treturn SApplicationcategorydao.deleteById(SApplicationcategory.class, id);\n\t}", "void delete(Category category);", "public void delete(int id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tCategoriesTypePojo categoriesTypePojo = findById(id);\n\t\tsession.delete(categoriesTypePojo);\n\t}", "@Override\n\tpublic ZuelResult removeContentCategoryById(Long id) throws ServiceException {\n\t\ttry {\n TbContentCategory contentCategory = new TbContentCategory();\n contentCategory.setId(id);\n contentCategory.setUpdated(new Date());\n contentCategory.setStatus(ZuelContentStatus.CONTENT_CATEGORY_DELETED);\n boolean isDeleted = service.removeContentCategory(contentCategory);\n if (isDeleted) {\n return ZuelResult.ok();\n }\n }catch (ServiceException e){\n e.printStackTrace();\n throw e;\n }\n return ZuelResult.error(\"服务器忙,请稍后重试\");\n\t}", "public Result deleteCategories(int id){\r\n Result result = new Result();\r\n int numRowsDeleted;\r\n String deleteCommand = \"DELETE FROM Categories WHERE productID= ?\";\r\n\r\n try {\r\n PreparedStatement statement = conn.prepareStatement(deleteCommand);\r\n statement.setInt(1, id);\r\n\r\n numRowsDeleted = statement.executeUpdate();\r\n\r\n if(numRowsDeleted >0)\r\n result.successful();\r\n else\r\n result.failure(\"Failed to delete category\");\r\n\r\n }catch (SQLException e){\r\n result.failure(\"Failed to create a statement\");\r\n }\r\n\r\n return result;\r\n }", "@Override\n public boolean deleteCategory(int categoryId)\n {\n String query = \"DELETE FROM Categories WHERE CategoryID = \" + categoryId;\n return DataService.executeDelete(query);\n }", "@Override\n\tpublic int delete(Long id) {\n\t\treturn foodCategoryDao.delete(id);\n\t}", "public void delete(Integer id) {\n\t\tfindById(id);\n\n\t\t//fazendo isso pois se tentar remover algum obj que tenha objetos associados com ele\n\t\t//quero que der uma exceção personalizada, em vez de erro 500\n\t\ttry {\n\t\t\trepo.deleteById(id);\n\t\t} catch (Exception e) {\n\t\t\tthrow new DataIntegrityException(\"Não é possível excluir categoria que não possui produto\");\n\t\t}\n\t}", "void deleteCategoryParameterProductDetails(long id);", "void removeCategory(Category category);", "public void deleteCategorie(Categorie c);", "@Test\n public void deletarProductCategoryTest() throws ApiException {\n Integer productCategoryCode = null;\n api.deletarProductCategory(productCategoryCode);\n\n // TODO: test validations\n }", "public void delete(Long categoriaId) {\n LOGGER.log(Level.INFO, \"Borrando categoria con id = {0}\", categoriaId);\n CategoriaEntity categoriaEntity = em.find(CategoriaEntity.class, categoriaId);\n em.remove(categoriaEntity);\n LOGGER.log(Level.INFO, \"Saliendo de borrar la categoria con id = {0}\", categoriaId);\n }", "public void delete(Category category) {\n category_dao.delete(category);\n }", "public static void deleteProductByCategoryId(int categoryId) throws SQLException\n\t{\n\t\tpreparedStatement = connection.prepareStatement(deleteQuery);\n\t\tpreparedStatement.setInt(1, categoryId);\n\t\t\n\t\tpreparedStatement.executeUpdate();\n\t}", "@Override\n @CacheEvict\n public void delete(Long id) {\n log.debug(\"Request to delete Category : {}\", id);\n categoryRepository.delete(id);\n }", "@Override\n\tprotected void destroyRecord(int id) {\n\t\tCategory category = new Category();\n\t\tcategory.setId(id);\n\t\tnew Categories().destroy(category);\t\n\t}", "@RequestMapping(value = \"/deleteCategory\", method = RequestMethod.POST)\r\n\tpublic ModelAndView deleteCategory(@RequestParam String categoryId) {\r\n\t\tcategoryService.deleteCategoryByCategoryId(Integer.parseInt(categoryId));\r\n\t\treturn new ModelAndView(\"redirect:/admin\");\r\n\t}", "@RequestMapping(value = \"/charitys/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Charity : {}\", id);\n charityRepository.delete(id);\n }", "@Override\n\tpublic void deleteCategory(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\n\t}", "@Override\n\tpublic void delete(Category entity) {\n\n\t}", "public void clearCategories(int id) {\n\t\tdb.delete(CATEGORIES_TABLE, \"blog_id=\" + id, null);\n\t\t\n\t}", "@Override\n\tpublic void delete(Category entity) {\n\t\t\n\t}", "public void deleteCatMovies(CatMovie selectedCatMovie) throws DalException\n {\n // Attempts to connect to the database.\n try ( Connection con = dbCon.getConnection())\n {\n // SQL code. \n String sql = \"DELETE FROM CatMovie WHERE id=?;\";\n // Prepared statement. \n PreparedStatement ps = con.prepareStatement(sql);\n ps.setInt(1, selectedCatMovie.getId());\n // Attempts to execute the statement.\n ps.execute();\n } catch (SQLException ex)\n {\n Logger.getLogger(CatMovieDBDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }", "@Delete({\n \"delete from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer cateId);", "@RequestMapping(value = \"/technology-categories/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TechnologyCategoryDTO> getTechnologyCategory(@PathVariable Long id) {\n log.debug(\"REST request to get TechnologyCategory : {}\", id);\n TechnologyCategoryDTO technologyCategoryDTO = technologyCategoryService.findOne(id);\n return Optional.ofNullable(technologyCategoryDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "int delTravelById(Long id_travel) throws TravelNotFoundException;", "@Override\r\n\tpublic void deleteCategory(Category c) {\n\t\tem.remove(em.find(Category.class, c.getIdCategory()));\r\n\t\t\r\n\t}", "public static void deleteCategoryName(Context context, int id) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(CategoryTable.COLUMN_NAME_IS_DELETED, 1);\r\n\r\n db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n values,\r\n DbContract.CategoryTable._ID + \" = ?\",\r\n new String[]{Integer.toString(id)}\r\n );\r\n db.close();\r\n }", "@RequestMapping(value = \"/threads/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ResponseStatus(HttpStatus.OK)\n @ApiOperation(value = \"Delete the \\\"id\\\" thread\")\n public void delete(@PathVariable String id) throws KalipoException {\n log.debug(\"REST request to delete Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n threadService.delete(id);\n }", "@DeleteMapping(\"/localisations/{id}\")\n @Timed\n public ResponseEntity<Void> deleteLocalisation(@PathVariable Long id) {\n log.debug(\"REST request to delete Localisation : {}\", id);\n localisationService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@DeleteMapping(\"/delete\")\n\tpublic ResponseEntity<?> delete(@RequestBody String body){\n\t\tCategoryVO CategoryToBeDeleted = null;\n\t\ttry {\n\t\t\tCategoryToBeDeleted = new ObjectMapper().readValue(body, CategoryVO.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tCategoryVO cat = catService.delete(CategoryToBeDeleted);\n\t\treturn checkNull(CategoryToBeDeleted);\n\t}", "@GetMapping(\"/deleteTopic/{id}\")\n public String deleteTopic(@PathVariable(\"id\") Integer topicId, Model model) {\n Topic topic = topicService.getTopicById(topicId);\n topicService.deleteTopic(topic);\n return \"redirect:/dashboard\";\n }", "@DeleteMapping(\"{id}\")\n public void deleteBlog(@PathVariable Long id) {\n }", "@DeleteMapping(value=\"/ticket/{ticketId}\")\n\tpublic void deleteTicket(@PathVariable(\"ticketId\") Integer ticketId){\n\t\tticketBookingService.deleteTicket(ticketId);\n\t}", "@Transactional\r\n\tpublic void delete(final String pk) {\r\n\t\tdao.delete(CmVocabularyCategory.class, pk);\r\n\t}", "@DELETE\n @Path(\"{id:\\\\d+}\")\n public String eliminarProductora(@PathParam(\"id\") Long id) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"ProdcutoraResource eliminarcategoria: input: {0}\", id);\n CategoriaEntity entity = categoriaLogic.getCategoria(id);\n if (entity == null) {\n throw new WebApplicationException(\"El recurso /productoras/\" + id + \" no existe.\", 404);\n }\n categoriaLogic.borrarCategoria(id);\n LOGGER.info(\"ProduccionResource eliminarProduccion: output: void\");\n return \"Se borro exitosamente la categoria con id: \" + id;\n }", "@RequestMapping(value = \"/tshirt/{id}\", method = RequestMethod.DELETE)\n @ResponseStatus(value = HttpStatus.OK)\n public void deleteTShirt(@PathVariable Long id) {\n // Get the requested TShirt from the database\n TShirt tShirt = serviceLayer.getTShirt(id);\n\n // Delete the TShirt if it is found in the database\n if (tShirt != null) {\n serviceLayer.deleteTShirt(id);\n } else {\n throw new IllegalArgumentException(\"There is no T-Shirt with id: \" + id);\n }\n }", "@ApiOperation(value = \"delete by ID\")\n\t@ApiResponses({\n\t\t\t@ApiResponse(code = ResponseStatusConstants.CREATED, message = \"delete by ID.\", response = TopicRO.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.INTERNAL_SERVER_ERROR, message = ResponseStatusConstants.INTERNAL_SERVER_ERROR_MESSAGE, response = RestException.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.BAD_REQUEST, message = ResponseStatusConstants.BAD_REQUEST_MESSAGE, response = RestException.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.NOT_FOUND, message = ResponseStatusConstants.NOT_FOUND_MESSAGE, response = RestException.class),\n\t\t\t@ApiResponse(code = 412, message = \"Precondition Failed\", response = RestException.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.FORBIDDEN, message = ResponseStatusConstants.FORBIDDEN_MESSAGE, response = RestException.class) })\n @DeleteMapping(\"/api/topic/{id}\")\n public HttpStatus deleteTopicById(@PathVariable(\"id\") Long id) throws RestException {\n mTopicService.deleteTopicById(id);\n return HttpStatus.FORBIDDEN;\n }", "@DeleteMapping(\"/{id}\")\n public void deleteById(@PathVariable Long id, Locale locale) {\n teacherService.deleteById(id, locale);\n }", "public void delete(int id) {\n\t\tcat_vo cv = new cat_vo();\n\t\tcv.setId(id);\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tTransaction tr = s.beginTransaction();\n\n\t\ts.delete(cv);\n\t\ttr.commit();\n\t}", "@RequestMapping( value = \"/{id}\", method = RequestMethod.DELETE )\n public void delete(@PathVariable(value=\"id\") int id){\n classService.delete(id);\n }", "void deleteCachedCodeCategory(UUID id)\n throws DAOException;", "@RequestMapping(value = \"/temperaturas/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTemperatura(@PathVariable Long id) {\n log.debug(\"REST request to delete Temperatura : {}\", id);\n temperaturaRepository.delete(id);\n temperaturaSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"temperatura\", id.toString())).build();\n }", "void deleteDepartmentById(Long id);", "@Override\n\tpublic void deleteTeacherCourse(int tcId) {\n\t\tcd.deleteTourse(tcId);\n\t}", "@Override\n\tpublic Category removeCategory(String categoryId) throws Exception {\n\t\treturn null;\n\t}", "public String deleteCategory()\n {\n logger.info(\"**** In deleteCategory in Controller ****\");\n boolean deleteFlag = categoryService.deleteCategory(categoryId);\n if (deleteFlag)\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_DELETION_SUCCESS, Constants.CATEGORY_DELETION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n\n return searchCategory();\n }", "@RequestMapping(\"/recipe/delete/{id}\")\n public String deleteRecipe(@PathVariable String id){\n recipeService.deleteById(new Long(id));\n \n return \"redirect:/\";\n }", "@RequestMapping(value = \"/designs/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Void> deleteDesign(@PathVariable Long id) {\n log.debug(\"REST request to delete Design : {}\", id);\n this.designService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"design\", id.toString())).build();\n }", "@DeleteMapping(\"/api/classic/{identification}\")\r\n\t@ApiOperation(value=\"Removing Classic\", notes =\"Service to remove a classic\")\r\n\t@ApiResponses(value = {@ApiResponse (code =201 , message =\"Classic removed successfully \"), \r\n\t\t\t@ApiResponse (code =404 , message= \"Classic not Founded\") })\r\n\tpublic void removeClassic(@PathVariable int identification) {\r\n\t Classic classic = this.classicService.findIdClassic(identification);\r\n\tif (classic != null ) {\r\n\t this.classicService.delete(classic);\r\n\t}\r\n\t\r\n\t}", "@RequestMapping(\"/hotel/delete/{id}\")\r\n public String deleteTrip(@PathVariable(\"id\") String hotelId) {\r\n Long idhotel = Long.parseLong(hotelId);\r\n this.hotel.removeById(idhotel);\r\n\r\n return \"redirect:/hotel/list\";\r\n }", "@DeleteMapping(\"{id}\")\n public Lesson deleteLesson(@PathVariable long id) {\n //code\n return null;\n }", "public int deleteByPrimaryKey(Integer id) {\n\t\treturn animationcategoryMapper.deleteByPrimaryKey(id);\r\n\t}", "@RequestMapping(method = RequestMethod.DELETE, value = \"/teams/{id}\")\n public void deleteTeam(@PathVariable Integer id) {\n teamService.deleteTeam(id);\n }", "public void deleteProductById(long id) {\n\t\tif(existById(id))\n\t\t\tadminCategoryRepoIF.deleteById(id);\n\t}", "@GetMapping(value = \"/delete/{id}\")\n public String deleteSector(@PathVariable(\"id\") Long id) {\n log.info(\"DELETE itinerary by ID : {}\", id);\n \n itineraryService.delete(id);\n \n return \"redirect:/itineraries/view\";\n }", "public Medicine deleteMedicineCategory(Integer medicine_id_1, Integer related_category_id);", "public void delete(Long id){\n try {\n categoriaUsuarioRepository.deleteById(id);\n }catch (Exception e){\n System.out.println(e);\n }\n }", "public int deleteByPrimaryKey(Integer categoryId) throws SQLException {\r\n Category key = new Category();\r\n key.setCategoryId(categoryId);\r\n int rows = sqlMapClient.delete(\"CATEGORY.abatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @DeleteMapping(value = \"/cake-application/cakes/{id}\")\n public void delete(@PathVariable(\"id\") String id) {\n cakeService.delete(id);\n }", "public void deleteById(String id);", "@RequestMapping(value = \"/cancelTreatment/{id}\",\r\n method = RequestMethod.DELETE)\r\n public ResponseEntity<Treatment> cancelTreatment(@PathVariable(\"id\") String id)\r\n {\r\n Treatment treatment = treatmentService.findById(id);\r\n if(treatment == null)\r\n {\r\n return new ResponseEntity<Treatment>(HttpStatus.INTERNAL_SERVER_ERROR);\r\n }\r\n treatmentService.delete(treatment);\r\n return new ResponseEntity<Treatment>(HttpStatus.NO_CONTENT);\r\n }", "public String deleteView()\n {\n logger.info(\"**** In deleteView in Controller ****\" + categoryId);\n this.category = categoryService.getCategoryByCategoryId(categoryId);\n return Constants.DELETE_CATEGORY_VIEW;\n }", "@DEL\n @Path(\"/{id}\")\n @Consumes({\"application/json\"})\n @Produces({\"application/json\"})\n public RestRsp<Tp> deleteSite(@PathParam(\"id\") final String id) throws ServiceException {\n if(!UuidUtil.validate(id)) {\n ServiceExceptionUtil.throwBadRequestException();\n }\n return new RestRsp<Tp>(ResultConstants.SUCCESS, service.deleteTp(id));\n }", "@DeleteMapping(\"/ref-categories-streams/{id}\")\n public ResponseEntity<Void> deleteRefCategoriesStream(@PathVariable Long id) {\n log.debug(\"REST request to delete RefCategoriesStream : {}\", id);\n refCategoriesStreamRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@ApiMethod(name = \"removeCategory\",\n path = \"category/{id}\",\n httpMethod = ApiMethod.HttpMethod.DELETE)\n public void removeCategory(final User user, @Named(\"id\") Long id)\n throws NotFoundException, UnauthorizedException {\n\n if (user == null) {\n throw new UnauthorizedException(Constants.AUTHORIZATION_REQUIRED);\n }\n\n mCategoryService.remove(id);\n }" ]
[ "0.75350064", "0.7272265", "0.7071625", "0.7008395", "0.68888634", "0.6870258", "0.6838205", "0.6739474", "0.6728067", "0.6686293", "0.66615796", "0.6616384", "0.6565023", "0.6542564", "0.6537695", "0.6536502", "0.65013856", "0.6465778", "0.64183503", "0.6415606", "0.639635", "0.6347987", "0.6303521", "0.62621033", "0.6203532", "0.61738473", "0.6161988", "0.6149418", "0.61327994", "0.611788", "0.61163497", "0.61147106", "0.6095504", "0.60913146", "0.6060802", "0.6059731", "0.6055572", "0.60422677", "0.60351485", "0.5982876", "0.5975361", "0.59562945", "0.59514093", "0.5930442", "0.5928343", "0.5902343", "0.58786637", "0.5876649", "0.5866791", "0.58347225", "0.58311856", "0.5825147", "0.58021325", "0.57798296", "0.57790864", "0.57774293", "0.57756287", "0.5744975", "0.5725844", "0.5725412", "0.57216734", "0.5720457", "0.5704087", "0.56827503", "0.56727576", "0.56724006", "0.56686014", "0.5642851", "0.56315804", "0.56311285", "0.56302744", "0.5610635", "0.5608652", "0.5607914", "0.5606331", "0.5584174", "0.55770284", "0.5576366", "0.55750144", "0.5574453", "0.5573252", "0.55717194", "0.5571021", "0.5567495", "0.5556248", "0.55547404", "0.55530435", "0.55486923", "0.55467105", "0.5529678", "0.55145895", "0.5508912", "0.55053365", "0.5495248", "0.54893327", "0.54879725", "0.5487894", "0.5487494", "0.54841065", "0.54804957" ]
0.8336998
0
SEARCH /_search/technologycategories?query=:query : search for the technologyCategory corresponding to the query.
@RequestMapping(value = "/_search/technology-categories", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public List<TechnologyCategoryDTO> searchTechnologyCategories(@RequestParam String query) { log.debug("REST request to search TechnologyCategories for query {}", query); return technologyCategoryService.search(query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String searchCategory()\n {\n logger.info(\"**** In searchCategory in Controller ****\");\n categoryList = categoryService.getCategories();\n return Constants.SEARCH_CATEGORY_VIEW;\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);", "public void searchByCategory(View v){\n category = searchSpinner.getSelectedItem().toString();\n if(category!=null && connection.isOnline(this)){\n new SearchByCategoryAsync().execute();\n }\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/search\")\n public List<String> search(@RequestParam(name = \"query\") String query) {\n return searchService.search(query);\n }", "List<Corretor> search(String query);", "List<SearchResult> search(SearchQuery searchQuery);", "public String searchCategoriesByCriteria()\n {\n logger.info(\"**** In searchCategoriesByCriteria in Controller ****\");\n if (category != null && (StringUtils.isNotEmpty(category.getCategoryName()) || StringUtils.isNotEmpty(category.getCategoryDescription())))\n {\n categoryList = categoryService.searchCategoriesByCriteria(category);\n }\n else\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.NO_SEARCH_CRITERIA, Constants.NO_SEARCH_CRITERIA);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return Constants.SEARCH_CATEGORY_VIEW;\n }", "List<TypeTreatmentPlanStatuses> search(String query);", "@ApiMethod(name = \"getCategories\", path = \"category\", httpMethod = \"GET\")\n public List<Category> getCategories(@Nullable @Named(\"search\") String search) {\n\n if (search == null || search.isEmpty()) {\n return mCategoryService.list();\n } else {\n return mCategoryService.list(search);\n }\n }", "SearchResultCompany search(String keywords);", "@Override\n\tpublic List<Literature> searchCategory(String category) {\n\t\treturn null;\n\t}", "public void search(String query) {\n Log.i(TAG, \"search: \" + query);\n artistInteractor.searchInItunes(query, this);\n }", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "Page<Tbc_analises_componente> search(String query, Pageable pageable);", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "public SearchResults search(String queryString) {\n\n Timer.Context ctx = m_searchTimer.time();\n\n SearchResults searchResults = new SearchResults();\n\n for (String term : s_tokenSplitter.splitToList(queryString)) {\n\n Term t = Term.parse(term);\n\n Statement searchQuery = select(Constants.Schema.C_TERMS_RESOURCE).from(Constants.Schema.T_TERMS)\n .where(eq(Constants.Schema.C_TERMS_CONTEXT, Context.DEFAULT_CONTEXT.getId()))\n .and( eq(Constants.Schema.C_TERMS_FIELD, t.getField()))\n .and( eq(Constants.Schema.C_TERMS_VALUE, t.getValue()));\n\n // TODO: Use async DB calls; Get attrs and metrics concurrently\n for (Row row : m_session.execute(searchQuery.toString())) { // FIXME: toString()?\n String id = row.getString(Constants.Schema.C_TERMS_RESOURCE);\n Optional<Map<String, String>> attrs = fetchResourceAttributes(Context.DEFAULT_CONTEXT, id);\n Collection<String> metrics = fetchMetricNames(Context.DEFAULT_CONTEXT, id);\n\n searchResults.addResult(new Resource(id, attrs), metrics);\n }\n }\n\n try {\n return searchResults;\n }\n finally {\n ctx.stop();\n }\n }", "@Test\n\tpublic void testSearchCategory() throws Exception {\n\n\t\tCategorySearchResponse categoryResponse = new CategorySearchResponse();\n\t\tList<CategorySearch> categories = new ArrayList<>();\n\t\tCategorySearch category = new CategorySearch();\n\t\tcategory.setTenantId(\"default\");\n\n\t\tAuditDetails auditDetails = new AuditDetails();\n\t\tcategory.setAuditDetails(auditDetails);\n\n\t\tcategories.add(category);\n\n\t\tcategoryResponse.setResponseInfo(new ResponseInfo());\n\t\tcategoryResponse.setCategories(categories);\n\n\t\ttry {\n\n\t\t\twhen(categoryService.getCategoryMaster(any(RequestInfo.class), any(String.class), any(Integer[].class),\n\t\t\t\t\tany(String.class), any(String.class), any(String.class), any(String.class), any(String.class), any(Integer.class),\n\t\t\t\t\tany(String.class), any(String.class), any(Integer.class), any(Integer.class), any(Integer.class))).thenReturn(categoryResponse);\n\n\t\t\tmockMvc.perform(post(\"/category/v1/_search\").param(\"tenantId\", \"default\").param(\"type\", \"SUBCATEGORY\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON).content(getFileContents(\"categorySearchRequest.json\")))\n\t\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t\t.andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON))\n\t\t\t\t\t.andExpect(content().json(getFileContents(\"categorySearchResponse.json\")));\n\n\t\t} catch (Exception e) {\n\t\t\tassertTrue(Boolean.FALSE);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertTrue(Boolean.TRUE);\n\n\t}", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "List<DataTerm> search(String searchTerm);", "List<LectureDTO> search(String query);", "public void doSearch(String query)\n \t{\n \t\tlistener.onQueryTextSubmit(query);\n \t}", "List<Cemetery> search(String query);", "public void onSearchSubmit(String queryTerm);", "public List<Product> search(String searchString);", "@Override\n\tpublic List<SApplicationcategory> find(String searchinfo, int page, int rows) {\n\t\tString hql=\"from \"+tablename +\" where 1=1 \";\t\t\n\t\tif(searchinfo!=null&& !searchinfo.equals(\"\")){\t\t\t\n\t\t\thql+=\" and t.name like '%\"+ searchinfo+\"%' \";\n\t\t}\t\t\n\t\treturn SApplicationcategorydao.find(hql, page, rows);\n\t}", "@GetMapping(\"/_search/company-types\")\n @Timed\n public List<CompanyType> searchCompanyTypes(@RequestParam String query) {\n log.debug(\"REST request to search CompanyTypes for query {}\", query);\n return StreamSupport\n .stream(companyTypeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "@GetMapping(path = \"/products/search/{query}\")\n public ResponseEntity<List<Product>> searchProducts(@PathVariable(name=\"query\") String query){\n return ResponseEntity.ok(productService.search(query));\n }", "SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);", "List<TypePatientPropertyCondition> search(String query);", "@GetMapping(\"/_search/localisations\")\n @Timed\n public List<Localisation> searchLocalisations(@RequestParam String query) {\n log.debug(\"REST request to search Localisations for query {}\", query);\n return localisationService.search(query);\n }", "@RequestMapping(value=\"/searchcategory\",method=RequestMethod.GET)\r\n\tpublic List<ProductBean> searchByProductCategory(String category) throws SearchException {\r\n\t\treturn service.searchProductByCategory(category);\r\n\t\t\r\n\t}", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "private void searchSubreddit(String searchQuery) {\n mLoadingIndicatorPB.setVisibility(View.VISIBLE);\n\n // Create url string\n Bundle loaderArgs = new Bundle();\n String searchSubredditUrl = SubredditSearchUtils.buildSubredditSearchURL(searchQuery, \"25\", \"relevancy\");\n loaderArgs.putString(SEARCH_URL_KEY, searchSubredditUrl);\n LoaderManager loaderManager = getSupportLoaderManager();\n loaderManager.restartLoader(SEARCH_LOADER_ID, loaderArgs, this);\n }", "List<ResultDTO> search(String query);", "@Transactional(readOnly = true) \n public List<Product> search(String query) {\n \n log.debug(\"REST request to search Products for query {}\", query);\n return StreamSupport\n .stream(productSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "Search getSearch();", "public void search(Map<String, String> searchParam);", "@RequestMapping(value = \"/technology-categories\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<TechnologyCategoryDTO> getAllTechnologyCategories() {\n log.debug(\"REST request to get all TechnologyCategories\");\n return technologyCategoryService.findAll();\n }", "List<Codebadge> search(String query);", "@Test\n\tpublic void testKeywordQuery(){\n\t\t//manager.getResponse(\"american football \"); //match multiple keywords\n//\t\tmanager.getResponse(\"list of Bond 007 movies\");\n//\tmanager.getResponse(\"Disney movies\");\n\t\t//manager.keywordQuery(\"Paul Brown Stadium location\");\n\t\t//manager.keywordQuery(\"0Francesco\");\n System.out.println(\"******* keyword query *******\");\n\t\t//manager.keywordQuery(\"sportspeople in tennis\");\n\t\t//manager.keywordSearch(\"list of movies starring Sean Connery\",ElasticIndex.analyzed,100 );\n//\t\tmanager.keywordSearch(\"movies starring Sean Connery\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"musical movies tony award\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"United states professional sports teams\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"movies academy award nominations\",ElasticIndex.notStemmed,100 );\n System.out.println(SearchResultUtil.toSummary(manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.notLowercased,20 )));\n //manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notAnalyzed,100 );\n //(better than analyzed) manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notStemmed,100 );\n System.out.println(\"*****************************\");\n\n\t\t//manager.keywordQuery(\"Disney movies\");\n\t}", "public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n @Transactional(readOnly = true)\n public List<WorkType> search(String query) {\n log.debug(\"Request to search WorkTypes for query {}\", query);\n return StreamSupport\n .stream(workTypeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "private void search(String product) {\n // ..\n }", "private SearchQuery(String _query, WebSearchType webSearchType) {\n this._query = _query;\n this._Web_search = webSearchType;\n }", "public void setSearchQuery(String searchQuery) {\n this.searchQuery = searchQuery;\n }", "public CorpusSearch(Path searchRoot, MdCSearchQuery query) {\n try {\n this.searchRoot = searchRoot;\n this.query = query;\n extensions = new String[]{\n \".gly\", \".GLY\", \".hie\", \".HIE\"\n };\n fileIterator = Files\n .walk(searchRoot)\n .filter(this::isJSeshPath)\n .iterator();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "private void doSearch(String query, boolean art,\n boolean music,\n boolean tech,\n boolean careers,\n boolean culture,\n boolean sports,\n boolean science,\n boolean education){\n ArrayList<String> categories = new ArrayList<String>();\n if(art) categories.add(\"Art\");\n if(music) categories.add(\"Music\");\n if(tech) categories.add(\"Tech\");\n if(careers) categories.add(\"Careers\");\n if(culture) categories.add(\"Culture\");\n if(sports) categories.add(\"Sports\");\n if(science) categories.add(\"Science\");\n if(education) categories.add(\"Education\");\n\n //if none selected search for all categories\n if(!art && !music && !tech && !careers && !culture && !sports && !science && !education){\n categories.add(\"Art\");\n categories.add(\"Music\");\n categories.add(\"Tech\");\n categories.add(\"Careers\");\n categories.add(\"Culture\");\n categories.add(\"Sports\");\n categories.add(\"Science\");\n categories.add(\"Education\");\n }\n eventServices.searchEventFeed(query, null, null, categories, new AppCallback<List<Event>>() {\n @Override\n public void call(final List<Event> events) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n eventList.addAll(events);\n adapter.notifyDataSetChanged();\n }\n });\n }\n\n @Override\n public void call() {\n\n }\n });\n\n// Log.d(TAG, \"doSearch: \" + query + \" \" + SearchActivity.DATE_RANGE_LABELS[dateRange] + \" \");\n adapter.notifyDataSetChanged();\n }", "public interface SearchCategory {\n /**\n * @return Internal name of the category as a search field.\n */\n public String getFieldName();\n\n /**\n * @return Human readable name for the category.\n */\n public String getCategoryLabel();\n}", "public abstract AutoCompleteDictionary getDictionary(SearchCategory categoryToSearch);", "private void searchCharacter(String query) {\n String filter = this.characterFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Character> c = getCharacterComparator(filter, sort);\n\n // Create a character used for comparison\n Character character = createCharacterForQuery(filter, query);\n \n // Find all matches\n GenericList<Character> results = DashboardController.library.getCharacterTable().findAll(character, c);\n\n // Cast results to an array\n Character[] characterResults = characterResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadCharacterResultsView(characterResults);\n }", "public List<TCustCategory> findTCustCategorys(final SearchFilter<TCustCategory> searchFilter) {\n\t\tLOGGER.info(\"=========== Find TCustCategorys ===========\");\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\n\t\tfinal TCustCategory tCustCategory = searchFilter.getEntityClass();\n\t\t\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\t\t//int maxresult = 3;\n\t\t//int index=0;\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\n\t\tfinal JPAQuery jpaQuery = new JPAQuery(\"tCustCategoryentity\", tCustCategory);\n\t\tjpaQuery.setJPAql(JPAQL);\n\t\tjpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaQuery.setLogicalOperatorEnum(logOpEnum);\n\t\tjpaQuery.setCacheable(true);\n\t\treturn genericDAO.findEntities(jpaQuery, index, maxresult);\n\t}", "private void searchQuery(String query) {\n mSearchAheadServiceV3 = new SearchAheadService(this, API_KEY);\n\n String queryString = query;\n\n LatLng surreyBC = new LatLng(49.104599F, -122.823509F);\n\n List searchCollections = Arrays.asList(SearchCollection.AIRPORT, SearchCollection.ADMINAREA,\n SearchCollection.ADDRESS, SearchCollection.FRANCHISE, SearchCollection.POI);\n try {\n SearchAheadQuery searchAheadQuery = new SearchAheadQuery\n .Builder(queryString, searchCollections)\n .location(surreyBC)\n .limit(5)\n .build();\n\n mSearchAheadServiceV3.predictResultsFromQuery(searchAheadQuery,\n new SearchAheadService.SearchAheadResponseCallback() {\n\n @Override\n public void onSuccess(@NonNull SearchAheadResponse searchAheadResponse) {\n\n //Get search results from the request response\n List<SearchAheadResult> searchAheadResults = searchAheadResponse.getResults();\n\n //if we have requests\n if (searchAheadResults.size() > 0) {\n\n //clear the current data to display\n searchResultsData.clear();\n\n try {\n\n int size = (searchAheadResults.size() < 5) ? searchAheadResults.size() : 5;\n\n for (int i = size - 1; i >= 0; i--) {\n // create a hashmap\n HashMap<String, String> hashMap = new HashMap<>();\n\n AddressProperties addressProperties = searchAheadResults.get(i).getPlace().getAddressProperties();\n\n // convert image int to a string and place it into the hashmap with an images key\n hashMap.put(\"address\", searchAheadResults.get(i).getName());\n hashMap.put(\"city\", addressProperties.getCity() + \", \" + addressProperties.getStateCode());\n hashMap.put(\"lat\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLatitude()));\n hashMap.put(\"long\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLongitude()));\n\n\n // add this hashmap to the list\n searchResultsData.add(hashMap);\n }\n\n //handle null pointer exception on address properties\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n //adapter inputs\n String[] from = {\n \"address\",\n \"city\",\n \"lat\",\n \"long\"\n };\n\n int[] to = {R.id.text_result_address, R.id.text_result_city, R.id.hidden_location_lat, R.id.hidden_location_long};\n\n searchAdapter = new SimpleAdapter(getApplicationContext(), searchResultsData, R.layout.item_search_result, from, to);\n mListViewSearch.setAdapter(searchAdapter);\n mListViewSearch.setVisibility(View.VISIBLE);\n } else {\n resetSearchAheadList();\n }\n }\n\n @Override\n public void onError(Exception e) {\n Log.e(\"MAPQUEST\", \"Search Ahead V3 Failure\", e);\n }\n });\n } catch (IllegalQueryParameterException e) {\n Log.e(\"Error performing search\", e.getMessage());\n }\n }", "private void searchLeisure(String searchQuery) {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Leisure\");\n //get all data from this ref\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n postList.clear();\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n LeisureModel leisureModel = ds.getValue(LeisureModel.class);\n if (leisureModel.getName().toLowerCase().contains(searchQuery.toLowerCase())) {\n postList.add(leisureModel);\n }\n //adapter\n postAdapter = new LeisureAdapter(SearchAllLeisure.this, postList);\n //set adapter to recyclerview\n rvLeisureCategory.setAdapter(postAdapter);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n //in case of error\n Toast.makeText(SearchAllLeisure.this, \"\" + databaseError.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@RequestMapping(value = \"search\")\n \tpublic String search(@RequestParam String q) {\n \t\tLong incidentId = Long.valueOf(q);\n \t\treturn \"forward:/incident/\" + incidentId;\n \t}", "@Override\n @Transactional(readOnly = true)\n public List<CollegeDTO> search(String query) {\n log.debug(\"Request to search Colleges for query {}\", query);\n return StreamSupport\n .stream(collegeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(collegeMapper::toDto)\n .collect(Collectors.toList());\n }", "@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "@GET(\"search.php\")\n Call<MealData> getMealsBySearchQuery(@Query(\"s\") String searchKeyword);", "@Test\n @OperateOnDeployment(\"server\")\n public void shouldGetResourceByQuery() {\n given().header(\"Authorization\", \"Bearer access_token\").expect().statusCode(200).and().expect().body(\"size\",\n equalTo(1)).and().expect().body(\"items.item.name\", hasItem(\"Technologies\")).and().expect().body(\"items.item.sort\",\n hasItem(20)).when().get(getBaseTestUrl() + \"/1/categories/get/json/query;catName=Technologies?expand=\" +\n \"{\\\"branches\\\":[{\\\"trunk\\\":{\\\"name\\\":\\\"categories\\\"}}]})\");\n }", "@GetMapping(\"/_search/selo-cartaos\")\n public List<SeloCartao> searchSeloCartaos(@RequestParam String query) {\n log.debug(\"REST request to search SeloCartaos for query {}\", query);\n return seloCartaoService.search(query);\n }", "public Utwor search2(String query) {\n for (Utwor utwor : utwory) {\n if (utwor.getTitle().equals(query)) {\n return utwor;\n }\n }\n return null;\n }", "public void searchMovieApi(String query, int pageNumber){\n movieListViewModel.searchMovieApi(query, pageNumber);\n }", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void doSearch(String searchText){\n }", "@GET(\"list_movies.json\")\n Call<MoviesResponse> searchMovie(@Query(\"query_term\") String queryTerm);", "@RequestMapping(\"items/search/itemtag\")\n public String searchByItemTags(HttpServletRequest request, Model model)\n {\n String searchString = request.getParameter(\"search\");\n model.addAttribute(\"search\", searchString);\n model.addAttribute(\"items\",\n items.findAllByItemTagsContainingIgnoreCase(searchString));\n return \"allitems\";\n }", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "@GetMapping(\"/_search/charts\")\n @Timed\n public List<Chart> searchCharts(@RequestParam String query) {\n log.debug(\"REST request to search Charts for query {}\", query);\n List<Chart> list = StreamSupport\n .stream(chartSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return list;\n }", "@Override\r\n\tpublic ResponseWrapper searchMedia(RequestWrapper request ) {\r\n\r\n\t\tIHandler handler = HandlerFactory.getHandler(request.getcategoryType());\r\n\t\t\t\t\t\t\r\n\t\tResponseWrapper response = handler.search(request);\r\n\t\treturn response;\r\n\t}", "private void searchBook(String query) {\n String filter = this.bookFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Book> c = getBookComparator(filter, sort);\n\n // Create a book used for comparison\n Book book = createBookForQuery(filter, query);\n \n // Find all matches\n GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c);\n\n // Cast results to an array\n Book[] bookResults = bookResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadBookResultsView(bookResults);\n }", "@GetMapping(\"/searchItems/{branchId}/{searchText}\")\n\tpublic ResponseEntity<Set<Item>> searchItems(@PathVariable int branchId, @PathVariable String searchText)\n\t{\n\t\tlogger.trace(\"Requested to search items,categories with names containing the searchtext\");\n\t\tSet<Item> items= service.searchItems(branchId,searchText);\n\t\tlogger.trace(\"Completed request to search items,categories with names containing the searchtext\");\n\t\treturn ResponseEntity.ok(items);\n\t}", "private void suggestCategory() {\n String[] allCat = {\"Pizza\", \"Pasta\", \"Dessert\", \"Salad\", \"SoftDrinks\"};\n// for (ItemDTO i : allDetails) {\n// names.add(i.getName());\n// }\n\n TextFields.bindAutoCompletion(txtCat, allCat);\n }", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "@Transactional(readOnly = true)\n public List<Ticket> search(String query) {\n log.debug(\"Request to search Tickets for query {}\", query);\n return StreamSupport\n .stream(ticketSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "@Path(\"search/{query}\")\n @GET\n public Response getMovies(@PathParam(\"query\") String query){\n return movieBean.getMovies(query);\n }", "private void searchContext(HttpServletRequest request, HttpServletResponse response, ArticleService artService,QuestionService questionService) throws ServletException, IOException {\n\t\tString text=request.getParameter(\"getText\");\n\t\tString atitle=\"atitle\";\n\t\tString qtitle=\"qtitle\";\n\t\tList<Article> arts=artService.getAll(atitle, text);\n\t\tList<Question> questions=questionService.getAll(qtitle,text);\n\t\trequest.setAttribute(\"arts\", arts);\n\t\trequest.setAttribute(\"questions\", questions);\n\t\trequest.getRequestDispatcher(\"/homepage/afterSearch.jsp\").forward(request, response);\n\t\t\n\t\t\n\t}", "List<Revenue> search(String query);", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "public void search() {\r\n \t\r\n }", "SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);", "Page<ConsultationInfoDTO> search(String query, Pageable pageable);", "@Override\n @Transactional(readOnly = true)\n public Page<Kontrachent> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Kontrachents for query {}\", query);\n return kontrachentSearchRepository.search(queryStringQuery(query), pageable); }", "@Override\n\tpublic void searchProduct(HashMap<String, String> searchKeys) {\n\t\tQueryStringFormatter formatter=new QueryStringFormatter(\"http://shopper.cnet.com/1770-5_9-0.html\");\n\t\t\n\t\ttry\n\t\t{\n//\t\t\tformatter.addQuery(\"url\", \"search-alias\");\n\t\t\tif(searchKeys.get(ProductSearch.BRAND_NAME)!=null && searchKeys.get(ProductSearch.PRODUCT_NAME)!=null)\n\t\t\t{\n\t\t\t\tformatter.addQuery(\"query\",(String)searchKeys.get(ProductSearch.BRAND_NAME) +\" \"+ (String)searchKeys.get(ProductSearch.PRODUCT_NAME)+\" \" );\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tString color=(String)searchKeys.get(ProductSearch.COLOR);\n\t\t\tString min=(String)searchKeys.get(ProductSearch.MIN_PRICE);\n\t\t\tString max=(String)searchKeys.get(ProductSearch.MAX_PRICE);\n\t\t\tif(color!=null){\n\t\t\t\tformatter.addQuery(\"color\",color);\n\t\t\t}\n\t\t\tif(min.length()>0&&max.length()>0)\n\t\t\t{\n\t\t\t//formatter.addQuery(\"color\",(String)searchKeys.get(HeadPhonesSearch.COLOR_S)+\" Price between $\"+(String)searchKeys.get(HeadPhonesSearch.MIN_PRICE)+\" to $\"+(String)searchKeys.get(HeadPhonesSearch.MAX_PRICE));\n\t\t\t\t\n\t\t\t\tformatter.addQuery(\" Price between $\",min +\" to $\"+max);\n\t\t\t}\n\t\t\tformatter.addQuery(\"tag\",\"srch\");\n\t\t\t\n\t\t\tString finalQueryString=\"http://shopper.cnet.com/1770-5_9-0.html\"+formatter.getQueryString();\n\t\t\tSystem.out.println(\"query string :\"+formatter.getQueryString());\n\t\t\tSystem.out.println(\"Query:\"+finalQueryString);\n\t\t\tprocessMyNodes(finalQueryString);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t\t\n\t}", "private void doSearch(String queryStr) {\n\t\t\n\t\t\n\t\tdbHelper = new DatabaseHelper(getApplicationContext());\n\t\tall_Item = Items.getSearchResults(dbHelper, queryStr);\n\t\t\n\n\t\tsearch_list = (ListView) findViewById(R.id.search_list);\n\t\tadapter = new SearchResultListAdaptor(this, R.layout.search_list_display, all_Item);\n\t\tfor(int i=0;i<all_Item.size();i++)\n\t\t adapter.add(all_Item.get(i));\n\t\t\n\t\tsearch_list.setAdapter(adapter);\n\t\t\n\t\t\n\t}", "CampusSearchQuery generateQuery();", "@GetMapping(\"/_search/costo-servicios\")\n @Timed\n public List<CostoServicioDTO> searchCostoServicios(@RequestParam String query) {\n log.debug(\"REST request to search CostoServicios for query {}\", query);\n return costoServicioService.search(query);\n }", "List<ShipmentInfoPODDTO> search(String query);", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "@Override\n @Transactional(readOnly = true)\n public List<Goods> search(String query) {\n log.debug(\"Request to search Goods for query {}\", query);\n return StreamSupport\n .stream(goodsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "private void articleSearch(final String query, final int page) {\n Log.d(\"DEBUG\", \"Search query: \" + query + \"; page: \"+ page);\n if (query.isEmpty() || page == PAGE_MAX || !isOnline()) {\n return;\n }\n if (page == FIRST_PAGE) {\n articles.clear();\n articleArrayAdapter.notifyDataSetChanged();\n }\n this.client.getArticles(page, query, this.filterSettings, new JsonHttpResponseHandler\n () {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n JSONArray articleJsonResults = null;\n try {\n articleJsonResults = response.getJSONObject(RESPONSE_KEY)\n .getJSONArray(DOCS_KEY);\n articles.addAll(Article.fromJSONArray(articleJsonResults));\n articleArrayAdapter.notifyDataSetChanged();\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n super.onFailure(statusCode, headers, throwable, errorResponse);\n if (statusCode == 429 && errorResponse.toString().equals(\"{\\\"message\\\":\\\"API rate limit exceeded\\\"}\")) {\n Log.d(\"DEBUG\", \"API rate limit exceeded. Retrying in 2s.\");\n Handler handler = new Handler();\n handler.postDelayed(() -> articleSearch(query, page), RETRY_DELAY_MILLIS);\n }\n }\n });\n }", "public void handleSearchQuery(String query) {\n // Iterate through Spot list looking for a Spot whose name matches the search query String\n for (Spot spot : mSpotList) {\n if (spot.getName().equalsIgnoreCase(query)) {\n mMap.addCircle(new CircleOptions()\n .center(new LatLng(spot.getLatLng().latitude, spot.getLatLng().longitude))\n .radius(10)\n .strokeColor(Color.BLACK) // Border color of the circle\n // Fill color of the circle.\n // 0x represents, this is an hexadecimal code\n // 55 represents percentage of transparency. For 100% transparency, specify 00.\n // For 0% transparency ( ie, opaque ) , specify ff\n // The remaining 6 characters(00ff00) specify the fill color\n .fillColor(0x8800ff00)\n // Border width of the circle\n .strokeWidth(2)); // Todo: Make this transparent blue?\n\n // To change the position of the camera, you must specify where you want\n // to move the camera, using a CameraUpdate. The Maps API allows you to\n // create many different types of CameraUpdate using CameraUpdateFactory.\n // Animate the move of the camera position to spot's coordinates and zoom in\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(spot.getLatLng(), 18)),\n 2000, null);\n break;\n }\n }\n }" ]
[ "0.6476728", "0.64538157", "0.6218552", "0.5979409", "0.5954463", "0.59426177", "0.58864963", "0.5844814", "0.5843041", "0.58003473", "0.57971394", "0.57793605", "0.5778957", "0.5772376", "0.5752484", "0.5748168", "0.5741084", "0.57101667", "0.56945866", "0.5670528", "0.5653116", "0.56389713", "0.563208", "0.5612229", "0.5604136", "0.5596287", "0.55825347", "0.558205", "0.5579533", "0.55584157", "0.55484194", "0.55414855", "0.5536221", "0.55235684", "0.55086654", "0.55037975", "0.5492397", "0.54890203", "0.54820186", "0.54570276", "0.54508024", "0.5445718", "0.54398376", "0.54319125", "0.5430942", "0.5399684", "0.5393947", "0.53852594", "0.536061", "0.5347541", "0.5342804", "0.5336071", "0.5325863", "0.53244364", "0.5321212", "0.5310301", "0.5310296", "0.5306258", "0.53054386", "0.53050643", "0.53036237", "0.5294976", "0.52772534", "0.52746767", "0.5265171", "0.5259658", "0.5255564", "0.52503693", "0.523905", "0.52372855", "0.5230825", "0.5223854", "0.5223223", "0.5218838", "0.52122015", "0.521142", "0.52084917", "0.52016234", "0.51928526", "0.51694286", "0.5159558", "0.51564467", "0.51538366", "0.51465756", "0.514222", "0.5130291", "0.51297146", "0.5124634", "0.512309", "0.51193696", "0.5115058", "0.5111", "0.5107354", "0.51041424", "0.5103053", "0.50980806", "0.50976866", "0.509639", "0.50866145", "0.5083287" ]
0.8122063
0
Callback received when a permissions request has been completed.
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { if (requestCode == REQUEST_READ_CONTACTS) { if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { populateAutoComplete(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \"permission success\");\n callback.onSuccess(permissions);\n\n }", "public interface PermissionCallbacks {\n /**\n * request successful list\n * @param requestCode\n * @param perms\n */\n void onPermissionsGranted(int requestCode, List<String> perms);\n\n /**\n * request denied list\n * @param requestCode\n * @param perms\n */\n void onPermissionsDenied(int requestCode, List<String> perms);\n}", "void permissionGranted(int requestCode);", "void requestNeededPermissions(int requestCode);", "@Override\n public void onPermissionGranted() {\n }", "@Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n Log.d(TAG, \"Permission result received\");\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n permissionsManager.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onPermissionGranted(PermissionGrantedResponse permissionGrantedResponse) {\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n }", "@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }", "@Override\n public void onPermissionGranted() {\n }", "public void onPermissionGranted() {\n\n }", "public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n // Checking run time permission status\n if(requestCode == AllKeys.REQUEST_PERMISSION){\n\n // When all required permission is granted\n if (hasPermissions(this, permissions)){\n // Permission is granted so we can retrieve call list\n getCallList();\n }else{\n Toast.makeText(getApplicationContext(),this.getResources().getString(R.string.permission_denied),Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == PERMISSION_REQUEST) {\n // Do some action after result return of a permission request\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n for (int i = 0; i < grantResults.length; i++) {\n Log.d(\"onReqPermissionsResult\", \"grantResults[\" + i + \"]= \" + grantResults[i] + \" , Granted = \" + PackageManager.PERMISSION_GRANTED);\n }\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions,\n int[] grantResults) {\n mConfiguration.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n AndPermission.onRequestPermissionsResult(requestCode, permissions, grantResults, listener);\n }", "void askForPermissions();", "@Override\r\n public void onRequestPermissionResult(int requestCode, String[] permissions,\r\n int[] grantResults) throws JSONException\r\n {\r\n if (mPermissionCallbackContext == null) {\r\n Log.e(TAG, \"No context - got a permission result we didnt ask for...??? \");\r\n return;\r\n }\r\n\r\n for(int r:grantResults)\r\n {\r\n if(r == PackageManager.PERMISSION_DENIED)\r\n {\r\n Log.d(TAG, \"User refused us access to the camera - there is nothing we can do\");\r\n return;\r\n }\r\n }\r\n\r\n int whatNext = requestCode;\r\n CallbackContext ctx = mPermissionCallbackContext;\r\n mPermissionCallbackContext = null; // if there's a race-condition, let's make life hard for it...\r\n switch (whatNext) {\r\n case CALL_START_WHEN_DONE:\r\n retryStartScanning(ctx);\r\n break;\r\n default:\r\n Log.e(TAG, \"Unexpected requestCode - got a permission result we didnt ask for...???\");\r\n ctx.error(\"Application error requesting permissions - see the log for details\");\r\n PluginResult r = new PluginResult(PluginResult.Status.ERROR);\r\n ctx.sendPluginResult(r);\r\n break;\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case 1: {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n } else {\n }\n return;\n }\n }\n }", "public interface IPermissionCallback {\n /**\n * Gets called if the permission/permissions you requested are granted successfully by the user.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n */\n void permissionGranted(int requestCode);\n\n /**\n * Gets called if the permission/permissions you requested are denied by the user.\n * If user denies a permission once, next time that permission comes with a check box(never ask again).\n * If user check that box and denies again, no permission dialog is shown to the user next time and permission will be denied automatically.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n * @param willShowCheckBoxNextTime - For a request of multiple permissions at the same time, you will always receive false.\n */\n void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);\n}", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if(grantResults.length>0 && grantResults[0]== PackageManager.PERMISSION_GRANTED){\n Log.v(\"Permission: \",permissions[0]+ \"was \"+grantResults[0]);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults)\n {\n switch (requestCode)\n {\n case 0:\n {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)\n {\n }\n else\n {\n }\n return;\n }\n }\n }", "public static void onRequestPermissionsResult(Activity activity, int requestCode, int[] grantResults) {\n PermissionsRequestCallback callback = sCallbacks.get(requestCode);\n Log.i(TAG, \"onRequestPermissionsResult callback = \" + callback + \",requestCode = \" + requestCode);\n\n if (callback == null) {\n Log.e(TAG, \"onRequestPermissionsResult callback is null.\");\n return;\n } else {\n sCallbacks.remove(requestCode);\n }\n\n if (BuildUtil.getTargetSdkVersion(activity) < 23\n && !PermissionUtil.hasPermissions(activity, callback.onGetPermissions())) {\n callback.onPermissionDenied();\n return;\n }\n\n if (PermissionUtil.verifyPermissions(grantResults)) {\n callback.onPermissionAllowed();\n } else {\n callback.onPermissionDenied();\n }\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n EasyPermissions.onRequestPermissionsResult( requestCode, permissions, grantResults, this);\r\n }", "@Override\n public void onRequestPermissionsResult(\n int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Permission Granted!\", Toast.LENGTH_SHORT).show();\n permissionResponseHandler.permissionGranted(requestCode);\n } else {\n Toast.makeText(this, \"Permission Denied!\", Toast.LENGTH_SHORT).show();\n permissionResponseHandler.permissionDenied(requestCode);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case RequestPermissionCode:\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Permission was granted\n Log.d(TAG, \"onRequestPermissionsResult: Permission Granted\");\n Toast.makeText(MainActivity.this, \"Permission Granted\", Toast.LENGTH_SHORT).show();\n } else {\n //Permission Denied\n Log.d(TAG, \"onRequestPermissionsResult: Permission Denied\");\n Toast.makeText(MainActivity.this, \"Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n return;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n Log.d(TAG, \"requestCode:\" + requestCode);\n int inx = 0;\n for(String i : permissions) {\n Log.d(TAG, \"permission: \" + i + \", \" + grantResults[inx]);\n if(i.equals(Manifest.permission.ACCESS_COARSE_LOCATION)){\n if(grantResults[inx] == 0){\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n }\n else{\n finish();\n }\n }\n }\n /*\n if (requestCode == PERMISSION_REQUEST_COARSE_LOCATION) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n }\n */\n }", "@CallSuper\n @Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n boolean flag = true;\n switch (requestCode) {\n case RESULT_PERMISSION: {\n if (grantResults.length == 0)\n flag = false;\n else {\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n flag = false;\n break;\n }\n }\n }\n close(flag);\n }\n }\n }", "private void fetchPermissionsFromUser() {\n Log.d(TAG, \"in fetch permisssion s\");\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_CONTACTS)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION show request\");\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION with return request\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION erequest\");\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION with return requet\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n RequestPermissionsResultCallback callback = this.j.remove(Integer.valueOf(requestCode));\n if (callback != null) {\n callback.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(\"INFO\", \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(\"INFO\", \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted.\n getLastLocation();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n Log.v(TAG, \"onPermissionsResult counts: \" + permissions.length + \" : \" + grantResults.length);\n mSettingsManager.set(\n SettingsManager.SCOPE_GLOBAL,\n Keys.KEY_HAS_SEEN_PERMISSIONS_DIALOGS,\n true);\n\n if (mShouldRequestCameraPermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestCamera] ==\n PackageManager.PERMISSION_GRANTED) {\n mFlagHasCameraPermission = true;\n } else {\n handlePermissionsFailure();\n }\n }\n if (mShouldRequestMicrophonePermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestMicrophone] ==\n PackageManager.PERMISSION_GRANTED) {\n mFlagHasMicrophonePermission = true;\n } else {\n handlePermissionsFailure();\n }\n }\n if (mShouldRequestStoragePermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestStorage] ==\n PackageManager.PERMISSION_GRANTED) {\n mFlagHasStoragePermission = true;\n } else {\n handlePermissionsFailure();\n }\n }\n\n if (mShouldRequestLocationPermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestLocation] ==\n PackageManager.PERMISSION_GRANTED) {\n // Do nothing\n } else {\n // Do nothing\n }\n }\n\n if (mFlagHasCameraPermission && mFlagHasMicrophonePermission && mFlagHasStoragePermission) {\n handlePermissionsSuccess();\n }\n }", "@Override\n public void onRequestRefuse(String permissionName) {\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions,\n int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n // Forward results to EasyPermissions\n EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);\n }", "private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "private void proceedAfterPermission() {\n Toast.makeText(getBaseContext(), \"We got the contacts Permission\", Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n int length = grantResults.length;\n if(length > 0)\n {\n int grantResult = grantResults[0];\n\n if(grantResult == PackageManager.PERMISSION_GRANTED) {\n\n Toast.makeText(getApplicationContext(), \"You allowed permission.\", Toast.LENGTH_LONG).show();\n }else\n {\n Toast.makeText(getApplicationContext(), \"You denied permission.\", Toast.LENGTH_LONG).show();\n }\n }\n }", "void onRequestPermissionsResult(int reqCode, String[] permissions, int[] grants) {\n if (reqCode == REQ_PERMISSIONS) {\n Log.d(TAG, \"onRequestPermissionsResult\");\n for (int i = 0; i < permissions.length; i++) {\n if (grants[i] != PackageManager.PERMISSION_GRANTED) {\n String text = activity.getString(R.string.toast_scanning_requires_permission, permissions[i]);\n Toast.makeText(activity, text, Toast.LENGTH_SHORT).show();\n return;\n }\n }\n startScan1();\n }\n }", "@Override\n public void onRequestAllow(String permissionName) {\n }", "@Override\n public void onRequestPermissionsResult (int requestCode, String[] permissions,\n int[] grantResults) {\n int index = 0;\n Map<String, Integer> PermissionsMap = new HashMap<String, Integer>();\n for (String permission : permissions){\n PermissionsMap.put(permission, grantResults[index]);\n index++;\n }\n\n if((PermissionsMap.get(Manifest.permission.ACCESS_FINE_LOCATION) != 0)\n || PermissionsMap.get(Manifest.permission.ACCESS_COARSE_LOCATION) != 0){\n Toast.makeText((AppCompatActivity)getActivity(), \"Location permission is a must\", Toast.LENGTH_SHORT).show();\n// finish();\n }\n else\n {\n// this.ble.initializeBle((AppCompatActivity)getActivity());\n }\n }", "@Override\n\t\tfinal public FREObject call(FREContext context, FREObject[] args) {\n\t\t\ttry {\n\t\t\t\tif (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1) {\n\t\t\t\t\tActivity act = context.getActivity();\n\t\t\t\t\tact.overridePendingTransition(0,0);\n\t\t\t\t\t\n\t\t\t\t\tfinal FREArray array = (FREArray) args[0];\n\t\t\t\t\tfinal int lng = (int) array.getLength();\n\t\t\t\t final String[] permissions = new String[(int) array.getLength()];\n\t\t\t\t \n\t\t\t\t for (int i = 0; i < lng; i += 1) {\n\t\t\t\t \tString permission = array.getObjectAt(i).getAsString();\n\t\t\t\t \tif(permission != null) permissions[i] = permission;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if(PermissionsExtension.VERBOSE > 0) Log.d(PermissionsExtension.TAG, \"Checking permissions: \"+ permissions);\n\t\t\t\t \n\t\t\t\t\tfinal Intent intent = new Intent(act, PermissionsRequestActivity.class);\n\t\t\t\t\tintent.putExtra(\"permissions\", permissions);\n\t\t\t\t\tact.startActivity(intent);\n\t\t\t\t\t\n\t\t\t\t\tact.overridePendingTransition(0,0);\n\t\t\t\t\t\n\t\t\t\t\treturn FREObject.newObject(true); //true means that we should wait for callback on AS3 side\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn FREObject.newObject(false); //false means that we can continue without waiting for callback\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n /** Se validan los permisos devueltos de la socilicitud y en caso de ser haber sido aceptados por el usuario\n * el metodo validateRequestPermissionCode envia a la actividad solicitada, de acuerdo con el identificador\n * tambie se alamcena el valor devuelto ya que se utilizara para determinar si hay permisos de almacenamiento,\n * los permisos de Camara y Galeria no hacen uso de esta variable unicamente*/\n permissionStorgare= metodosImagenes.validateRequestPermissionCode(requestCode,permissions,grantResults,CreacionPerfiles.this);\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\r\n public void onPermissionsGranted(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }", "private void requestPermissions() {\n mWaiting4Permission = Boolean.TRUE;\n\n ActivityCompat.requestPermissions(this, permissionsToAsk(), PERMISSIONS_REQUEST_CODE);\n }", "protected void handlePermissionResult() {\n for (String permission : Constants.PERMISSIONS_NEEDED) {\n if (mUtils.hasPermission(permission)) {\n // User granted this permission, check for next one\n continue;\n }\n // User not granted permission\n if (SpyState.Listeners.permissionsListener != null) // Let app handle this\n {\n SpyState.Listeners.permissionsListener.onPermissionDenied(!mActivity.shouldShowRequestPermissionRationale(permission));\n return;\n }\n\n AlertDialog.Builder permissionRequestDialog = new AlertDialog.Builder(mActivity)\n .setTitle(R.string.dialog_permission_title)\n .setMessage(R.string.dialog_permission_message)\n .setCancelable(false)\n .setNegativeButton(R.string.exit,\n (dialog, whichButton) -> {\n mUtils.showToast(R.string.closing_app);\n mActivity.finish();\n });\n if (!mActivity.shouldShowRequestPermissionRationale(permission)) {\n // User clicked on \"Don't ask again\", show dialog to navigate him to\n // settings\n permissionRequestDialog\n .setPositiveButton(R.string.go_to_settings,\n (dialog, whichButton) -> {\n Intent intent =\n new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri =\n Uri.fromParts(\"package\", mActivity.getPackageName(), null);\n intent.setData(uri);\n mActivity.startActivityForResult(intent,\n OPEN_SETTINGS_REQUEST_CODE);\n })\n .show();\n } else {\n // User clicked on 'deny', prompt again for permissions\n permissionRequestDialog\n .setPositiveButton(R.string.try_again,\n (dialog, whichButton) -> grantPermissions())\n .show();\n }\n return;\n }\n Log.i(TAG, \"All required permissions have been granted!\");\n }", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n presenter.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(TAG, \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(TAG, \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted.\n // getAddress();\n } }\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n //Passing request code to request for the permissions\n switch (requestCode) {\n case WRITE_REQUEST_CODE:\n if(grantResults[0] == PackageManager.PERMISSION_GRANTED){\n Toast.makeText(getApplicationContext(), \"Permission Granted \", //Toast Message\n Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(getApplicationContext(), \"Permission Denied \", //Toast Message\n Toast.LENGTH_SHORT).show();\n\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == PERMISSION_REQUEST_CODE) {\n if (grantResults.length > 0) {\n\n // after requesting permissions we are showing\n // users a toast message of permission granted.\n boolean writeStorage = grantResults[0] == PackageManager.PERMISSION_GRANTED;\n boolean readStorage = grantResults[1] == PackageManager.PERMISSION_GRANTED;\n\n if (writeStorage && readStorage) {\n Toast.makeText(this, \"Permission Granted..\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Permission Denied.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == tag) {\r\n\r\n //If permission is granted\r\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n\r\n //Displaying a toast\r\n Toast.makeText(this, \"Permission granted \", Toast.LENGTH_LONG).show();\r\n } else {\r\n //Displaying another toast if permission is not granted\r\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {\n switch (requestCode) {\n case REQUEST_PERMISSION_WRITE:\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n Toast.makeText(this, \"External storage permission granted.\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"You must grant permission!\", Toast.LENGTH_SHORT).show();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(\n int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\n case PERMISSION_REQ:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n fineLocationPermissionGranted();\n }\n }\n }", "protected void setPermissions(){\n //Set permissions\n //READ_PHONE_STATE\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED\n ) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.RECORD_AUDIO)) {\n //Show an explanation to the user *asynchronously* -- don't block\n //this thread waiting for the user's response! After the user\n //sees the explanation, request the permission again.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n } else {\n //No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n\n //MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n //app-defined int constant. The callback method gets the\n //result of the request.\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n Log.d(TAG, \"onRequestPermissionsResult()\");\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == REQ_PERMISSION) {\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted\n getLastKnownLocation();\n\n } else {\n // Permission denied\n permissionsDenied();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n try {\n switch (requestCode) {\n case REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 121);\n }\n break;\n\n case REQUEST_CODE_ASK_PERMISSIONS_STORAGE:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 1234);\n }\n break;\n\n default:\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_onRequestPermissionsResult()\");\n }\n\n }", "public void requestPermissions(String[] permissions, int requestCode, RequestPermissionsResultCallback callback) {\n this.j.put(Integer.valueOf(requestCode), callback);\n }", "@Override\n @TargetApi(23)\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n mCameraPermissionManager.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "public void onRequestPermissionsResult(@NonNull Activity activity, int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n List<String> declinedPermissions = handler.parseRequestResult(requestCode, permissions, grantResults);\n\n if (declinedPermissions.isEmpty()) {\n Log.v(TAG, \"All permissions were granted!\");\n requestAuth(activity, authenticationRequestCode);\n } else if (callback != null) {\n Log.e(TAG, \"Permission Request failed. Some permissions were not granted!\");\n String message = String.format(activity.getString(R.string.com_auth0_webauth_permission_missing_description), declinedPermissions);\n Dialog permissionDialog = new AlertDialog.Builder(activity)\n .setTitle(R.string.com_auth0_webauth_permission_missing_title)\n .setMessage(message)\n .setPositiveButton(android.R.string.ok, null)\n .create();\n callback.onFailure(permissionDialog);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(TAG, \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(TAG, \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted.\n getLastLocation();\n } else {\n // Permission denied.\n\n // Notify the user via a SnackBar that they have rejected a core permission for the\n // app, which makes the Activity useless. In a real app, core permissions would\n // typically be best requested during a welcome-screen flow.\n\n // Additionally, it is important to remember that a permission might have been\n // rejected without asking the user for permission (device policy or \"Never ask\n // again\" prompts). Therefore, a user interface affordance is typically implemented\n // when permissions are denied. Otherwise, your app could appear unresponsive to\n // touches or interactions which have required permissions.\n showSnackbar(R.string.permission_denied_explanation, R.string.settings,\n new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Build intent that displays the App settings screen.\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n });\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n EasyPermissions.onRequestPermissionsResult(\n requestCode, permissions, grantResults, this);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n EasyPermissions.onRequestPermissionsResult(\n requestCode, permissions, grantResults, this);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n EasyPermissions.onRequestPermissionsResult(\n requestCode, permissions, grantResults, this);\n }", "public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n {\n permissionUtils.onRequestPermissionsResult(requestCode,permissions,grantResults);\n }", "private void requestPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (!ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CAMERA)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.CAMERA},\n 1);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n if (grantResults.length > 0\n && !(grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Without granting all permissions the app may not work properly. Please consider granting this permission in settings\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n {\n super .onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == 101) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Storage Permission Granted\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Storage Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n }\n else if (requestCode == 100) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Storage Permission Granted\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Storage Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "@TargetApi(23)\n @Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n // Check for granted permission and remove from missing list\n if (requestCode == REQUEST_PERMISSION_CODE) {\n for (int i = grantResults.length - 1; i >= 0; i--) {\n if (grantResults[i] == PackageManager.PERMISSION_GRANTED) {\n missingPermission.remove(permissions[i]);\n }\n }\n }\n // If there is enough permission, we will start the registration\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else {\n Toast.makeText(getApplicationContext(), \"Missing permissions!!!\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onRequestPermissionsResult(final int iRequestCode, @NotNull final String xstrPermissions[], @NotNull final int[] xiGrantResults) {\n boolean bAllPermissionsGranted = true;\n if (iRequestCode == PERMISSION_GALLERY) {\n for (int iPermission : xiGrantResults) {\n if (iPermission != PackageManager.PERMISSION_GRANTED) {\n bAllPermissionsGranted = false;\n break;\n }\n }\n } else {\n for (int iPermission : xiGrantResults) {\n if (iPermission != PackageManager.PERMISSION_GRANTED) {\n bAllPermissionsGranted = false;\n break;\n }\n }\n }\n\n // If we have all the needed permissions, trigger directly the capture button handler\n if (bAllPermissionsGranted) {\n if (iRequestCode == PERMISSION_GALLERY) {\n onLaunchGallerySelection();\n } else {\n gotToListing();\n }\n }\n // Otherwise, display an alert dialog indicating that the sample needs those permissions\n else {\n final AlertDialog.Builder objAlertBuilder = new AlertDialog.Builder(HomeActivity.this, R.style.PopupTheme);\n objAlertBuilder.setTitle(R.string.about_permission)\n .setMessage(R.string.dokmee_permission)\n .setPositiveButton(R.string.ok, null)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n }", "@CallSuper\n @Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n if (requestCode != REQUEST_CODE_REQUIRED_PERMISSIONS) {\n return;\n }\n\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n Toast.makeText(this, \"No Permission\", Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n }\n recreate();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_PERMISSION) {\n HashMap<String, Integer> permissionResult = new HashMap<>();\n int deniedCount = 0;\n //count denied permission\n for (int i = 0; i < grantResults.length; i++) {\n if (grantResults[i] == PackageManager.PERMISSION_DENIED) {\n permissionResult.put(permission[i], grantResults[i]);\n deniedCount++;\n }\n }\n if (deniedCount == 0)\n deviceSettings = true;\n else {\n for (Map.Entry<String, Integer> entry : permissionResult.entrySet()) {\n String permName = entry.getKey();\n int permResult = entry.getValue();\n // alert the user that the application needs the permissions\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, permName)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Camera, Read Contacts and Write External\" +\n \" Storage permissions are required to do the task.\");\n builder.setTitle(\"Please grant those permissions\");\n //create alert dialog\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n deviceSettings = checkDeviceSettings();\n }\n });\n builder.setNeutralButton(\"Cancel\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n switch (requestCode) {\n case PERMISSION_REQUEST:\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if ((ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED)) {\n openSongsList();\n permissionGranted = true;\n }\n } else {\n closeNow();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n\n Log.d(TAG, \"onRequestPermissionsResult: \"+requestCode);\n\n switch (requestCode) {\n case PERMISSION_REQUEST_COARSE_LOCATION:\n Log.d(TAG, \"grantResults.length: \"+grantResults.length);\n if(grantResults.length>0){\n Log.d(TAG, \"grantResults[0]: \"+grantResults[0]);\n }\n\n if (grantResults.length>0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // TODO request success\n\n startScan();\n }else {\n Toast.makeText(context, \"Bluetooth need some permisssions ,please grante permissions and try again !\", Toast.LENGTH_SHORT).show();\n }\n break;\n\n }\n }", "public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n if (requestCode == PETICION_DE_PERMISOS) {\n if (grantResults.length > 0) {\n boolean todosLosPemisosOk = true;\n for (int i = 0; i < permissions.length; i++) {\n if (!(grantResults[i] == PackageManager.PERMISSION_GRANTED)) {\n todosLosPemisosOk = false;\n }\n }\n if (todosLosPemisosOk) {\n //-- RECORDAR HACER AQUI LO QUE SE DESEE CUANDO HAY PERMISOS ---------------\n //-- LO NORMAL ES LLAMAR A UN METODO QUE COMPLETE EL ONCREATE ---------------\n //onCreate_conAccionesSoloConPermiso();\n\n } else {\n //-- RECORDAR HACER AQUI LO QUE SE DESEE SI NO HAY PERMISOS ---------------\n //finish(); // algun permiso no se otorgó, terminamos la actividad, no se deja seguir\n }\n } else {\n //-- RECORDAR HACER AQUI LO QUE SE DESEE SI NO HAY PERMISOS ---------------\n //finish(); // se canceló al solicitar permisos, terminamos la actividad, no se deja seguir\n }\n }\n }", "public interface PermissionFailDefaultCallBack {\r\n void onRequestRefuse(int requestCode, String refuseTip);\r\n void onRequestForbid(int requestCode, String forbidTip);\r\n}", "@CallSuper\n @Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == REQUEST_CODE_REQUIRED_PERMISSIONS) {\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n Toast.makeText(this, \"error: missing permissions\", Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n }\n recreate();\n }\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case FILEPICKER_PERMISSIONS: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(\n ct5.this,\n \"Permission granted! Please click on pick a file once again.\",\n Toast.LENGTH_SHORT\n ).show();\n } else {\n Toast.makeText(\n ct5.this,\n \"Permission denied to read your External storage :(\",\n Toast.LENGTH_SHORT\n ).show();\n }\n\n return;\n }\n }\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\r\n case REQUEST_AUDIO_PERMISSION_CODE:\r\n if (grantResults.length > 0) {\r\n boolean permissionToRecord = grantResults[0] == PackageManager.PERMISSION_GRANTED;\r\n boolean permissionToStore = grantResults[1] == PackageManager.PERMISSION_GRANTED;\r\n if (permissionToRecord && permissionToStore) {\r\n Toast.makeText(getApplicationContext(), \"Permission Granted\", Toast.LENGTH_LONG).show();\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Permission Denied\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n break;\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == REQUEST_DANGEROUS_PERMISSION) {\n boolean isGranted = true;\n for (int grantResult : grantResults) {\n isGranted = isGranted && grantResult == PackageManager.PERMISSION_GRANTED;\n }\n if (isGranted) {\n locationPermission = true;\n readPhoneStatePermission = true;\n Intent result = new Intent();\n setResult(RESULT_OK, result);\n finish();\n // doBindBleMessagingService();\n // permission was granted, yay! Do the\n // contacts-related task you need to do.\n\n } else {\n requestDangerousPermission();\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n }\n\n // other 'case' lines to check for other\n // permissions this app might request\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n //Depending on whether the request is audio or picture, attempt to grant request\n switch (requestCode) {\n case REQUEST_RECORD_AUDIO_PERMISSION:\n permissionToRecordAccepted = grantResults[0] == PackageManager.PERMISSION_GRANTED;\n break;\n case CAMERA_REQUEST:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"camera permission granted\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(this, \"camera permission denied\", Toast.LENGTH_LONG).show();\n }\n break;\n }\n\n //If permission to record is denied, close request.\n if (!permissionToRecordAccepted) {\n\n finish();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case REQUEST_READ_PHONE_STATE:\n if ((grantResults.length > 0) && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n //TODO\n }\n break;\n\n default:\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(TAG, \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(TAG, \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission was granted.\n mService.requestLocationUpdates();\n } else {\n // Permission denied.\n setButtonsState(false);\n Snackbar.make(\n findViewById(R.id.drawer_layout),\n R.string.permission_denied_explanation,\n Snackbar.LENGTH_INDEFINITE)\n .setAction(R.string.settings, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Build intent that displays the App settings screen.\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n })\n .show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n //Checking the request code of our request\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == STORAGE_PERMISSION_CODE) {\n\n //If permission is granted\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Displaying a toast\n Toast.makeText(this, \"Permission granted now you can read the storage\", Toast.LENGTH_LONG).show();\n } else {\n //Displaying another toast if permission is not granted\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n getPermissions();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults){\n switch (requestCode){\n case MY_PERMISSIONS_LOCATIONS: {\n if(grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED){\n mFusedClient.requestLocationUpdates(mLocationRequest,mLocationCallback, Looper.myLooper());\n }\n } else {\n Toast.makeText(this, \"permission denied\", Toast.LENGTH_LONG).show();\n }\n return;\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[],\n int[] grantResults) {\n //In our example we only have one permission, but we could have more\n //we use the requestCode to distinguish them\n switch (requestCode) {\n case LOCATION_PERMISSION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n checkAndStartLocationUpdate();\n } else {\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n AlertDialog.Builder builder = new AlertDialog.Builder(AggStato.this);\n builder.setMessage(\"Questa app necessita dei permessi di locazione\").setTitle(\"Login Error\");\n\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n return;\n }\n\n // other 'case' lines to check for other\n // permissions this app might request\n }\n }", "public void onRequestPermissionResult(int requestCode, String[] permissions, int[] grantResults) throws JSONException\n {\n PluginResult result;\n for (int r : grantResults) {\n if (r == PackageManager.PERMISSION_DENIED) {\n Log.d(LOG_TAG, \"Permission Denied!\");\n result = new PluginResult(PluginResult.Status.ILLEGAL_ACCESS_EXCEPTION);\n this.callbackContext.sendPluginResult(result);\n return;\n }\n }\n startCamera(requestCode, this.callbackContext, this.reqArgs);\n }", "@Override\n public void onSucceed(int requestCode, List<String> grantedPermissions) {\n if (requestCode == PERMISSION_CODE_WRITE_EXTERNAL_STORAGE) {\n getFile(rootPath);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n //Checking the request code of our request\n if (requestCode == STORAGE_PERMISSION_CODE) {\n\n //If permission is granted\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Displaying a toast\n Toast.makeText(this, \"Permission granted now you can read the storage\", Toast.LENGTH_LONG).show();\n } else {\n //Displaying another toast if permission is not granted\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n //Checking the request code of our request\n if(requestCode == STORAGE_PERMISSION_CODE){\n\n //If permission is granted\n if(grantResults.length >0 && grantResults[0] == PackageManager.PERMISSION_GRANTED){\n\n //Displaying a toast\n Toast.makeText(this,\"Permission granted now you can read the storage\",Toast.LENGTH_LONG).show();\n }else{\n //Displaying another toast if permission is not granted\n Toast.makeText(this,\"Oops you just denied the permission\",Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n switch (requestCode) {\n case ACCESS_LOCATION_CODE: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n // permission was granted, yay! Do the\n // contacts-related task you need to do.\n mLocationPermissionsGranted = true;\n\n } else {\n\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n mLocationPermissionsGranted = false;\n }\n return;\n }\n\n // other 'case' lines to check for other\n // permissions this app might request.\n }\n }" ]
[ "0.73071134", "0.73071134", "0.72683614", "0.6999854", "0.68483615", "0.6796128", "0.67606825", "0.67546076", "0.6753877", "0.6750635", "0.6740404", "0.67368865", "0.67350096", "0.66159236", "0.65928966", "0.65723634", "0.65629244", "0.655615", "0.6520994", "0.65189725", "0.6514922", "0.6500739", "0.64539504", "0.644915", "0.64205617", "0.6416036", "0.6413079", "0.6408529", "0.6396743", "0.638764", "0.6380663", "0.6375848", "0.6371703", "0.63714594", "0.6363144", "0.6357643", "0.63415533", "0.63159513", "0.63010615", "0.62940407", "0.6293085", "0.6279173", "0.6278863", "0.6269584", "0.626799", "0.6251518", "0.62510544", "0.62501734", "0.62487644", "0.62276715", "0.6216582", "0.62070966", "0.6206722", "0.620042", "0.61979777", "0.61979777", "0.61979777", "0.618013", "0.61720467", "0.61712545", "0.6169596", "0.61679953", "0.6166263", "0.6146639", "0.6146386", "0.6145773", "0.6128929", "0.6128306", "0.61281747", "0.61281747", "0.61281747", "0.6123175", "0.61224186", "0.60952264", "0.6086307", "0.6084344", "0.60833544", "0.607088", "0.60690546", "0.6064794", "0.6044711", "0.604118", "0.60219973", "0.6004033", "0.59994143", "0.59966403", "0.599477", "0.59872776", "0.59860533", "0.59839183", "0.5982697", "0.59776235", "0.59600925", "0.5959199", "0.5958691", "0.59584004", "0.5956338", "0.5944377", "0.5940462", "0.59375244", "0.5932111" ]
0.0
-1
Attempts to sign in or register the account specified by the login form. If there are form errors (invalid email, missing fields, etc.), the errors are presented and no actual login attempt is made.
private void attemptLogin() { if (mAuthTask != null) { return; } // Reset errors. mEmailView.setError(null); mPasswordView.setError(null); // Store values at the time of the login attempt. String email = mEmailView.getText().toString(); String password = mPasswordView.getText().toString(); boolean cancel = false; View focusView = null; // Check for a valid password, if the user entered one. if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) { mPasswordView.setError(getString(R.string.error_invalid_password)); focusView = mPasswordView; cancel = true; } // Check for a valid email address. if (TextUtils.isEmpty(email)) { mEmailView.setError(getString(R.string.error_field_required)); focusView = mEmailView; cancel = true; } else if (!isEmailValid(email)) { mEmailView.setError(getString(R.string.error_invalid_email)); focusView = mEmailView; cancel = true; } if (cancel) { // There was an error; don't attempt login and focus the first // form field with an error. focusView.requestFocus(); } else { // Show a progress spinner, and kick off a background task to // perform the user login attempt. // showProgress(true); mEmail = email; mPassword = password; mAuthTask = new UserLoginTask(this); mAuthTask.execute((Void) null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void attemptLogin() {\n\n // Reset errors.\n mEmailField.setError(null);\n mPasswordField.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailField.getText().toString();\n String password = mPasswordField.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordField.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordField;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailField.setError(getString(R.string.error_field_required));\n focusView = mEmailField;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailField.setError(getString(R.string.error_invalid_email));\n focusView = mEmailField;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n signIn(email, password);\n }\n }", "private void attemptRegistration() {\n emailView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = emailView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n emailView.setError(getString(R.string.error_field_required));\n focusView = emailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n emailView.setError(getString(R.string.error_invalid_email));\n focusView = emailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n createFirebaseUser();\n\n }\n }", "private void attemptLogin() {\n\n if (!Utils.isNetworkAvailable(mBaseActivity)) {\n Utils.showNetworkAlertDialog(mBaseActivity);\n return;\n }\n if (signInTask != null) {\n return;\n }\n\n // Reset errors.\n binding.email.setError(null);\n binding.password.setError(null);\n\n // Store values at the time of the login attempt.\n String email = binding.email.getText().toString();\n String password = binding.password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n binding.email.setError(getString(R.string.error_field_required));\n focusView = binding.email;\n cancel = true;\n } else if (TextUtils.isEmpty(password)) {\n binding.password.setError(getString(R.string.error_field_required));\n focusView = binding.password;\n cancel = true;\n } else if (!isEmailValid(email)) {\n binding.email.setError(getString(R.string.error_invalid_email));\n focusView = binding.email;\n cancel = true;\n } else if (!isPasswordValid(password)) {\n binding.password.setError(getString(R.string.error_invalid_password));\n focusView = binding.password;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // perform the user login attempt.\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(email, password);\n }\n }", "private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_email_is_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mPresenter.isEmailValid(email)) {\n //mEmailView.setError(getString(R.string.error_invalid_email));\n customConfirmDialog(getString(R.string.message_incorrect_email), getString(R.string.message_require_format_email));\n focusView = mEmailView;\n cancel = true;\n }else if (!TextUtils.isEmpty(password) && !mPresenter.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n //customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }else if(TextUtils.isEmpty(password))\n {\n customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n if (isNetworkOffline()) {\n return;\n }\n showLoadingDialog(getString(R.string.message_please_wait));\n mPresenter.doLoginByEmail(email, password);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n // Sets up a new login task with the provide login form\n mAuthTask = new UserLoginTask(email, password);\n try {\n // Executes login task\n mAuthTask.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n login(email, password);\n\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "public void attemptLogin() {\n\n\t\t// Reset errors.\n\t\tmUserView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Save values.\n\t\tmUser = mUserView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mPassword)) {\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t} else if (mPassword.length() < 4) {\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t// Check for a valid user.\n\t\tif (TextUtils.isEmpty(mUser)) {\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t} else if (mUser.length() < 4) {\n\t\t\tmUserView.setError(getString(R.string.error_invalid_user));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t}\n\t\t\t\t\n\t\tif (cancel) {\n\t\t\t// There is an error, so registration does not success and focus on the error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Send information to server.\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_registering);\n\t\t\tshowProgress(true);\n\t\t\tsendInfoToServer();\n\t\t}\n\t}", "private void attemptSignup()\n\t{\n\t\t// Reset errors.\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t_signupButton.setEnabled(false);\n\n\t\t// Store values at the time of the login attempt.\n\t\tfinal String displayName = mNameView.getText().toString();\n\t\tString email = mEmailView.getText().toString();\n\t\tString password = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t// Check for a valid password, if the user entered one.\n\t\tif (TextUtils.isEmpty(password))\n\t\t{\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\t\telse if (!isPasswordValid(password))\n\t\t{\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t// Check for a valid email address.\n\t\tif (TextUtils.isEmpty(email))\n\t\t{\n\t\t\tmEmailView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n\t\t}\n\t\telse if (!isEmailFormatValid(email))\n\t\t{\n\t\t\tmEmailView.setError(getString(R.string.error_invalid_email));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t//Check for a valid display name\n\t\tif (displayName.isEmpty())\n\t\t{\n\t\t\tmNameView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mNameView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\tif (cancel)\n\t\t{\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//[START init_progress_dialog]\n\t\t\tfinal ProgressDialog progressDialog = new ProgressDialog(SignupPersonalActivity.this,\n\t\t\t\t\tR.style.AppTheme_Dark_Dialog);\n\t\t\tprogressDialog.setIndeterminate(true);\n\t\t\tprogressDialog.setMessage(\"Creating Account...\");\n\t\t\tprogressDialog.show();\n\t\t\t//[END init_progress_dialog]\n\t\t\tmAuth.createUserWithEmailAndPassword(email, password)\n\t\t\t\t\t.addOnCompleteListener(this, new OnCompleteListener<AuthResult>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onComplete(@NonNull Task<AuthResult> task)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (task.isSuccessful())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tonSignUpSuccess(displayName);\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\tonSignUpFailed();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// [START_EXCLUDE]\n\t\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t\t\t\t\t// [END_EXCLUDE]\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t}\n\t}", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password, false);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !validateUtil.isPasswordValid(password)) {\n mPasswordView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!validateUtil.isEmailValid(email)) {\n mEmailView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n presenter.onLoginButtonClicked(mEmailView.getText().toString(), mPasswordView.getText().toString(), rememberPassword.isChecked(), (LoginActivity) getActivity(), updateCurentUser);\n }\n }", "public void attemptLogin() {\n\t\t// Reset errors.\n\t\temailTextView.setError(null);\n\t\tpasswordTextView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\temail = emailTextView.getText().toString();\n\t\tpassword = passwordTextView.getText().toString();\n\n\t\tboolean cancel = false;\n\n\t\t// Check for a valid email address.\n\t\tcancel = Validate.PresenceOf(emailTextView);\n\t\tif (!cancel) cancel = Validate.PatternOf(emailTextView, Patterns.EMAIL_ADDRESS);\n\t\t\n\t\t// check valid password\n\t\tif (!cancel) cancel = Validate.PresenceOf(passwordTextView);\t\t\n\n\t\tif (!cancel) {\t\n\t\t\tKeyboard.hide(getActivity());\n\t\t\tlogin();\n\t\t}\n\t}", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email.replace(\" \", \"%20\"), password.replace(\" \", \"%20\"));\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n\n }", "public void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(this, email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n trylogin = false;\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(\"Invalid Password\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n if(email.equals(null) || password.equals(null)) {\n mPasswordView.setError(\"Invalid Password\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(\"Please enter something\");\n focusView = mEmailView;\n cancel = true;\n }\n\n else if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(\"Please enter something\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n else if (!isEmailValid(email)) {\n mEmailView.setError(\"Invalid Email\");\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n\n dialog.setMessage(\"Registering user...\");\n dialog.show();\n\n firebaseAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(MainActivity.this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n dialog.hide();\n if(task.isSuccessful()) {\n //trylogin = true;\n Toast.makeText(MainActivity.this, \"Login Successful!\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(MainActivity.this, FoodActivity.class);\n startActivity(i);\n }\n else {\n Toast.makeText(MainActivity.this, \"Login Failed!\", Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.kkkkkkkkl[]/\\]\n\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n\n // Intent signInActivityIntent= new Intent(this,UserProfileActivity.class);\n // startActivity(signInActivityIntent);\n }\n }", "public void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_user));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n\n // save data in local shared preferences\n if (savePassword.isChecked()) {\n saveLoginDetails(email, password);\n }\n\n\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String name = mNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid user name.\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n } else if (!isNameValid(name)) {\n mNameView.setError(getString(R.string.error_invalid_name));\n focusView = mNameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(name, password);\n mAuthTask.execute(mUrl);\n }\n }", "private void attemptSignUp() {\n // Reset errors.\n mEmailView.setError(null);\n mPasswordViewOne.setError(null);\n mPasswordViewTwo.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n final String password = mPasswordViewOne.getText().toString();\n final String passwordTwo = mPasswordViewTwo.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordViewOne.setError(getString(R.string.error_field_required));\n focusView = mPasswordViewOne;\n cancel = true;\n } else if (!isPasswordValid(password)) {\n mPasswordViewOne.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordViewOne;\n cancel = true;\n }\n\n // Check for matching password\n if (!password.equals(passwordTwo)) {\n mPasswordViewOne.setError(\"Passwords do not match\");\n mPasswordViewTwo.setError(\"Passwords do not match\");\n focusView = mPasswordViewOne;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Log.d(\"FirebaseSignUp\", \"createUserWithEmail:Success\");\n FirebaseUser user = mAuth.getCurrentUser();\n String uid = user == null ? \"null\" : user.getUid();\n\n // TODO: if successful, check if User should be an admin and add\n // them to list of admins in Firebase database\n if (mSpinner.getSelectedItem().equals(AccountType.ADMIN)) {\n mDatabase.child(\"admins\").child(uid)\n .setValue(email.split(\"@\")[0]);\n }\n\n Intent i = new Intent(getApplicationContext(), App.class);\n finish();\n startActivity(i);\n } else {\n // Probably means the email was taken\n mEmailView.setError(getString(R.string.error_email_already_registered));\n mEmailView.requestFocus();\n showProgress(false);\n }\n }\n });\n }\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mPhoneView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String phone = mPhoneView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid phone address.\r\n if (TextUtils.isEmpty(phone)) {\r\n mPhoneView.setError(getString(R.string.error_field_required));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n } else if (!isPhoneValid(phone)) {\r\n mPhoneView.setError(getString(R.string.error_invalid_phone));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(phone, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }", "public void attemptLogin() {\n\t\tif (mAuthTask != null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Reset errors.\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\tmEmail = mEmailView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t/*\n\t\t * // Check for a valid password. if (TextUtils.isEmpty(mPassword)) {\n\t\t * mPasswordView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mPasswordView; cancel = true; } else if\n\t\t * (mPassword.length() < 4) {\n\t\t * mPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t * focusView = mPasswordView; cancel = true; }\n\t\t * \n\t\t * // Check for a valid email address. if (TextUtils.isEmpty(mEmail)) {\n\t\t * mEmailView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mEmailView; cancel = true; } else if\n\t\t * (!mEmail.contains(\"@\")) {\n\t\t * mEmailView.setError(getString(R.string.error_invalid_email));\n\t\t * focusView = mEmailView; cancel = true; }\n\t\t */\n\t\tif (cancel) {\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t// perform the user login attempt.\n\t\t\tshowProgress(true);\n\t\t\tmAuthTask = new UserLoginTask();\n\t\t\tmAuthTask.execute((Void) null);\n\t\t}\n\t}", "private void attemptLogin() {\n if (isLoggingIn) {\n return;\n }\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utils.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (!Utils.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if (!HttpUtils.isNetworkAvailable(this.getApplicationContext())) {\n Toast.makeText(this.getApplicationContext(), \"No internet\", Toast.LENGTH_SHORT).show();\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mPasswordView.getWindowToken(), 0);\n\n LoginApi.executeLogin(this, email, password);\n }\n }", "private void attemptLogin() {\n String email = text_email.getText().toString();\n String password = text_password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n text_password.setError(getString(R.string.error_field_required));\n focusView = text_password;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n text_password.setError(getString(R.string.error_invalid_password));\n focusView = text_password;\n cancel = true;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n text_email.setError(getString(R.string.error_field_required));\n focusView = text_email;\n cancel = true;\n } else if (!isEmailValid(email)) {\n text_email.setError(getString(R.string.error_invalid_email));\n focusView = text_email;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n //showProgress(true);\n login(USER_NORMAL);\n }\n }", "public void attemptLogin() {\n\n\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n mEmail = mEmailView.getText().toString();\n mPassword = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if (TextUtils.isEmpty(mPassword)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (mPassword.length() < 4) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mEmail.contains(\"@\")) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n showProgress(true);\n mAuthTask = new UserLoginTask();\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n \n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to perform the user login attempt.\n showProgress(true);\n\n // Register user to server.\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"userId\", email);\n params.put(\"gcmToken\", UserManager.getUserGcmToken(this));\n new HttpClientAsyncTask(Constants.APP_SERVER_USER_CREATE_URL, HttpClientCallable.POST, params) {\n @Override\n protected void onPostExecute(String response) {\n showProgress(false);\n\n try {\n if (response != null) {\n JSONObject responseObj = new JSONObject(response);\n Log.d(Constants.TAG, \"User login server response: \" + responseObj);\n String errorMsg = responseObj.getString(\"error\");\n if (errorMsg.isEmpty()) {\n UserManager.setUserLoggedIn(LoginActivity.this, true);\n UserManager.setUserId(LoginActivity.this, email);\n Log.d(Constants.TAG, \"Successfully logged in. Directing to MainActivity.\");\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n finish();\n } else {\n Toast.makeText(LoginActivity.this, \"Email registration was rejected.\", Toast.LENGTH_LONG).show();\n }\n } else {\n Toast.makeText(LoginActivity.this, \"Server response was unexpected.\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(Constants.TAG, e.getMessage());\n Toast.makeText(LoginActivity.this, \"Error while communicating with server.\", Toast.LENGTH_LONG).show();\n }\n }\n }.execute();\n }\n }", "private void login() {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"login: \");\n\n // Store values at the time of the login attempt.\n mEmail = mEditTextSignInEmail.getText().toString();\n mPassword = mEditTextSignInPassword.getText().toString();\n mFocusView = null;\n\n // Check for a valid password\n if (TextUtils.isEmpty(mPassword) || !mPresenter.isPasswordValid(mPassword)) {\n mEditTextSignInPassword.setError(getString(R.string.error_invalid_password));\n mFocusView = mEditTextSignInPassword;\n isProcessCancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_field_required));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n } else if (!mPresenter.isEmailValid(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_invalid_email));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n\n if (isProcessCancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n mFocusView.requestFocus();\n\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true, mLinearlayoutSignIn);\n mPresenter.loginTask(this, mAuth, mEmail, mPassword, new SignInCallback() {\n @Override\n public void onCompleted() {\n showProgress(false, mLinearlayoutSignIn);\n showUserInfoLog();\n transToShareBookActivity();\n }\n\n @Override\n public void onError(String errorMessage) {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"onError: \" + errorMessage);\n\n showProgress(false, mLinearlayoutSignIn);\n mEditTextSignInEmail.setError(getString(R.string.error_login_fail));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n });\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !Utility_Helper.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utility_Helper.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n // if user flow not cancelled execute Simulate_Login_Task asyncronous task\n // to simulate login\n Simulate_Login_Task task = new Simulate_Login_Task(this, dummyList, email, password);\n task.setOnResultListener(asynResult);\n task.execute();\n }\n }", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Reset errors.\r\n\t\tthis.activity.getmEmailView().setError(null);\r\n\t\tthis.activity.getmPasswordView().setError(null);\r\n\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmEmail = this.activity.getmEmailView().getText().toString();\r\n\t\tmPassword = this.activity.getmPasswordView().getText().toString();\r\n\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 4) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\t// Check for a valid email address.\r\n\t\tif (TextUtils.isEmpty(mEmail)) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (!mEmail.contains(\"@\")) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_invalid_email));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tthis.activity.getmLoginStatusMessageView().setText(R.string.login_progress_signing_in);\r\n\t\t\tthis.activity.showProgress(true);\r\n\t\t\tmAuthTask = new UserLoginTask();\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n if(isOnline()){\n try {\n ApiRequests.POST(\"login/\", new Callback() {\n @Override\n public void onFailure(Call call, final IOException e) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.e(\"error:\", \"burda\");\n }\n });\n }\n\n @Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n try {\n processTheResponse(response.body().string());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, email, password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n else {\n InternetConnectionError();\n }\n }\n }", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "private void attemptLogin() {\n if (authTask != null) {\n return;\n }\n\n // Reset errors.\n usernameView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = usernameView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n usernameView.setError(getString(R.string.error_field_required));\n focusView = usernameView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n usernameView.setError(getString(R.string.error_invalid_email));\n focusView = usernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n //set loginID for session\n session.setID(email);\n\n startDashboard();\n /*authTask = new UserLoginTask(email, password);\n authTask.execute((Void) null);*/\n }\n }", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Reset errors.\r\n\t\tmUserView.setError(null);\r\n\t\tmPasswordView.setError(null);\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmUser = mUserView.getText().toString();\r\n\t\tmPassword = mPasswordView.getText().toString();\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 3) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\t// Check for a valid username address.\r\n\t\tif (TextUtils.isEmpty(mUser)) {\r\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mUserView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_signing_in);\r\n\t\t\tmAuthTask = new UserLoginTask(this);\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "public void attemptSignUp() {\n\tif (mAuthTask != null) {\n\t return;\n\t}\n\n\t// Reset errors.\n\tmUsernameView.setError(null);\n\tmNameView.setError(null);\n\tmEmailView.setError(null);\n\tmPasswordView.setError(null);\n\n\t// Store values at the time of the login attempt.\n\tmUsername = mUsernameView.getText().toString().trim();\n\tmName = mNameView.getText().toString();\n\tmEmail = mEmailView.getText().toString();\n\tmPassword = mPasswordView.getText().toString();\n\n\tboolean cancel = false;\n\tView focusView = null;\n\n\t// Check for a valid username\n\tif (TextUtils.isEmpty(mUsername)) {\n\t mUsernameView.setError(getString(R.string.error_field_required));\n\t focusView = mUsernameView;\n\t cancel = true;\n\t} else if (TextUtils.split(mUsername, \" \").length > 1) {\n\t mUsernameView.setError(\"Username can not have spaces\");\n\t}\n\n\t// Check for a valid name\n\tif (TextUtils.isEmpty(mName)) {\n\t mNameView.setError(getString(R.string.error_field_required));\n\t focusView = mNameView;\n\t cancel = true;\n\t}\n\n\t// Check for a valid password.\n\tif (TextUtils.isEmpty(mPassword)) {\n\t mPasswordView.setError(getString(R.string.error_field_required));\n\t focusView = mPasswordView;\n\t cancel = true;\n\t} else if (mPassword.length() != 4 || !TextUtils.isDigitsOnly(mPassword)) {\n\t mPasswordView.setError(getString(R.string.error_invalid_password));\n\t focusView = mPasswordView;\n\t cancel = true;\n\t}\n\n\t// Check for a valid email address.\n\tif (TextUtils.isEmpty(mEmail)) {\n\t mEmailView.setError(getString(R.string.error_field_required));\n\t focusView = mEmailView;\n\t cancel = true;\n\t} else if (!mEmail.contains(\"@\")) {\n\t mEmailView.setError(getString(R.string.error_invalid_email));\n\t focusView = mEmailView;\n\t cancel = true;\n\t}\n\n\tif (cancel) {\n\t // There was an error; don't attempt login and focus the first\n\t // form field with an error.\n\t focusView.requestFocus();\n\t} else {\n\t // Show a progress spinner, and kick off a background task to\n\t // perform the user login attempt.\n\t mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n\t showProgress(true);\n\t mAuthTask = new UserSignUpTask();\n\t mAuthTask.execute((Void) null);\n\t}\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n boolean newUser = false;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n } else {\n user = mDatabaseHelper.getUser(email);\n if (user.getPassword() != null) {\n if (!PasswordHash.checkHashEquality(user.getPassword(), password)) {\n mPasswordView.setError(getString(R.string.error_incorrect_password));\n focusView = mPasswordView;\n cancel = true;\n }\n } else {\n newUser = true;\n }\n }\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n user = mDatabaseHelper.getUser(email);\n if (newUser) {\n Toast.makeText(this, \"New Account Created!\", Toast.LENGTH_SHORT).show();\n }\n Intent intent = new Intent(LoginActivity.this, ListActivity.class);\n intent.putExtra(\"User\", user);\n intent.putExtra(\"Target\", \"Locked\");\n startActivityForResult(intent, 0);\n }\n }", "void attemptLogin(AlertDialog loginAlertDialog) {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n mEmail = mUsernameView.getText().toString();\n mPassword = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if (TextUtils.isEmpty(mPassword)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (mPassword.length() < 4) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n//\t\telse if (!mEmail.contains(\"@\")) {\n// mUsernameView.setError(getString(R.string.error_invalid_email));\n//\t\t\tfocusView = mUsernameView;\n//\t\t\tcancel = true;\n//\t\t}\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n showLoginProgress(true);\n mAuthTask = new UserLoginTask();\n mAuthTask.execute(loginAlertDialog);\n }\n\n }", "private void attemptLogin(){\n //reset error\n et_email.setError(null);\n et_password.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = et_email.getText().toString();\n final String password = et_password.getText().toString();\n final boolean finish = false;\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n et_password.setError(getString(R.string.error_invalid_password));\n focusView = et_password;\n cancel = true;\n }else if (!isEmailValid(email)) {\n et_email.setError(getString(R.string.error_invalid_email));\n focusView = et_email;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"ctrl\", \"login\");\n json.put(\"email\", email);\n json.put(\"password\", password);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n String requete = json.toString();\n Log.v(\"req\", requete);\n HttpQuery login = new HttpQuery(requete, this);\n login.execute();\n }\n\n\n }", "private void attemptLogin() {\n // Reset errors.\n edtID.setError(null);\n edtPassword.setError(null);\n\n // Store values at the time of the login attempt.\n String userId = edtID.getText().toString();\n String password = edtPassword.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n edtPassword.setError(\"Password is empty\");\n focusView = edtPassword;\n cancel = true;\n } else if(!isPasswordValid(password)) {\n edtPassword.setError(getString(R.string.error_invalid_password));\n focusView = edtPassword;\n cancel = true;\n }\n\n // Check for a valid user id.\n if (TextUtils.isEmpty(userId)) {\n edtID.setError(getString(R.string.error_field_required));\n focusView = edtID;\n cancel = true;\n } else if (!isUserIdValid(userId)) {\n edtID.setError(getString(R.string.error_invalid_id));\n focusView = edtID;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n JSONObject json = new JSONObject();\n try {\n json.put(\"user_id\", userId);\n json.put(\"password\", password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n reqUserID = userId;\n reqUserPW = password;\n loginConnector.request(json);\n }\n }", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "public int checkLogin(Account formAccount) {\n Account account = getAccountByAccountNo(formAccount.getAccountNo());\n //return 1 if account not found\n if (account == null) {\n return 1;\n } else if (account.getLocked() == 1) {\n return 3; // return 3 if account is locked\n } else if (account.getPin() != formAccount.getPin()) {\n if (account.getIncorrectAttempts() < 2) {\n account.setIncorrectAttempts(account.getIncorrectAttempts() + 1);\n saveOrUpdate(account);\n return 2; //return 2 if incorrect pin but account is not locked yet\n } else {\n account.setIncorrectAttempts(account.getIncorrectAttempts() + 1);\n account.setLocked(1);\n saveOrUpdate(account);\n return 3; //lock account on 3rd incorrect attempt and return 3\n }\n\n } else {\n return 0; // return 0 if login successful\n }\n\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String userName = mUserNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n UserDetail user = new UserDetail(userName, password);\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n user = null;\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(userName)) {\n mUserNameView.setError(getString(R.string.error_field_required));\n focusView = mUserNameView;\n\n\n }\n else if(user!=null && isNetworkConnected()) {\n getPermissiontoAccessInternet();\n mAuthTask = new UserLoginTask(user);\n mAuthTask.execute((Void) null);\n\n }\n// } else if (!isUserNameValid(userName)) {\n// mUserNameView.setError(getString(R.string.error_invalid_email));\n// focusView = mUserNameView;\n// cancel = true;\n// }\n\n// if (cancel) {\n// // There was an error; don't attempt login and focus the first\n// // form field with an error.\n// focusView.requestFocus();\n// } else {\n// // Show a progress spinner, and kick off a background task to\n// // perform the user login attempt.\n//\n// }\n }", "void loginAttempt(String email, String password);", "private void attemptSignUp() {\n // Reset errors.\n mName.setError(null);\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(mName.getText().toString())) {\n mName.setError(getString(R.string.error_field_required));\n focusView = mName;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n SQLiteDatabase database = DBHelper.getInstance(this).getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(DBHelper.U_NAME, mName.getText().toString());\n values.put(DBHelper.U_EMAIL, email);\n values.put(DBHelper.U_IMAGE, profileImage);\n values.put(DBHelper.U_PASSWORD, password);\n database.insert(DBHelper.TUSER, null, values);\n database.close();\n\n UserModel userData = new UserModel();\n userData.setId(0);\n userData.setName(mName.getText().toString());\n userData.setImage(profileImage);\n userData.setEmail(email);\n userData.setPassword(password);\n userData.setRememberMe(rememberMe);\n String userDataStr = new Gson().toJson(userData);\n Common.saveStrPref(this, Common.PREF_USER, userDataStr);\n\n startActivity(new Intent(this, HomeActivity.class));\n }\n }", "private void attemptRegister() {\n progressGenerator = new ProgressGenerator();\n\n // Reset errors.\n inputEmail.setError(null);\n inputPasswd.setError(null);\n\n // Store values at the time of the login attempt.\n String email = inputEmail.getText().toString();\n String password = inputPasswd.getText().toString();\n String confirmPassword = inputConfirmPasswd.getText().toString();\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n inputEmail.setError(getString(R.string.error_field_required));\n inputEmail.requestFocus();\n shake();\n return;\n } else if (!isEmailValid(email)) {\n inputEmail.setError(getString(R.string.error_invalid_email));\n inputEmail.requestFocus();\n shake();\n return;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n inputPasswd.setError(getString(R.string.error_invalid_password));\n inputPasswd.requestFocus();\n shake();\n return;\n }\n\n // Check if passwords match\n if (!confirmPassword.equals(password)) {\n inputConfirmPasswd.setError(getString(R.string.error_password_does_not_match));\n inputConfirmPasswd.requestFocus();\n shake();\n return;\n }\n\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n isRegistering = true;\n btnRegister.requestFocus();\n\n progressGenerator.start(btnRegister);\n btnRegister.setEnabled(false);\n inputEmail.setEnabled(false);\n inputPasswd.setEnabled(false);\n inputConfirmPasswd.setEnabled(false);\n\n LoginAgent.getInstance().registerInBackground(email, password);\n }", "public void attemptLogin()\n {\n if ( mAuthTask != null )\n {\n return;\n }\n\n // Reset errors.\n mIPView_.setError( null );\n mPortView_.setError( null );\n\n // Store values at the time of the login attempt.\n mIP_ = mIPView_.getText().toString();\n mPort_ = mPortView_.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if ( TextUtils.isEmpty( mPort_ ) )\n {\n mPortView_\n .setError( getString( R.string.error_field_required ) );\n focusView = mPortView_;\n cancel = true;\n }\n // The port should be four digits long\n else if ( mPort_.length() != 4 )\n {\n mPortView_\n .setError( getString( R.string.error_invalid_server ) );\n focusView = mPortView_;\n cancel = true;\n }\n\n // Check for a valid email address.\n if ( TextUtils.isEmpty( mIP_ ) )\n {\n mIPView_.setError( getString( R.string.error_field_required ) );\n focusView = mIPView_;\n cancel = true;\n }\n\n if ( cancel )\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n }\n else\n {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView\n .setText( R.string.login_progress_signing_in );\n showProgress( true );\n\n // Start the asynchronous thread to connect and post to the server\n mAuthTask = new UserLoginTask();\n mAuthTask.execute( (Void) null );\n }\n }", "private void attemptLogin() {\n\n String username = mEmailView.getText().toString().trim();\n String idNumber = mIdNumber.getText().toString().trim();\n String password = mPasswordView.getText().toString().trim();\n\n if (TextUtils.isEmpty(username)) {\n// usernameView.setError(errorMessageUsernameRequired);\n// errorView = usernameView;\n }\n\n if (TextUtils.isEmpty(password)) {\n// password.setError(errorMessagePasswordRequired);\n// if (errorView == null) {\n// errorView = passwordView;\n// }\n }\n\n final User user = new User();\n ((DealerManager)getApplication()).setUser(user);\n navigateTo(R.id.nav_home);\n }", "private void signUp() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password, true);\n mAuthTask.execute((Void) null);\n }\n }", "private void accountLogin() {\n String emailAddress = editTextEmailAddress.getText().toString().trim();\n String password = editTextPassword.getText().toString().trim();\n\n //validation for logging in.\n if(emailAddress.isEmpty()) {\n editTextEmailAddress.setError((\"No Email inputted \"));\n editTextEmailAddress.requestFocus();\n return;\n }\n if(!Patterns.EMAIL_ADDRESS.matcher(emailAddress).matches()) {\n editTextEmailAddress.setError(\"You must use a valid Email\");\n editTextEmailAddress.requestFocus();\n return;\n }\n if(password.isEmpty()) {\n editTextPassword.setError(\"You must enter your password!\");\n editTextPassword.requestFocus();\n return;\n }\n if(password.length() < 5) {\n editTextPassword.setError(\"Password length is a minimum of 5 characters\");\n editTextPassword.requestFocus();\n return;\n }\n progressBar.setVisibility((View.VISIBLE));\n mAuth.signInWithEmailAndPassword(emailAddress, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n //User is therefore redirected to the Identity page\n startActivity(new Intent(MainActivity.this, IdentityActivity.class));\n }else{\n Toast.makeText(MainActivity.this, \"Failed to login to account check credentials and try again...\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n }", "private boolean attemptRegistration() {\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String name = mFullName.getText().toString();\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n String confPassword = mPasswordConf.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if(!TextUtils.isEmpty(confPassword) && !password.equals(confPassword)){\n mPasswordConf.setError(\"The passwords do not match\");\n focusView = mPasswordConf;\n cancel = true;\n }\n\n if(TextUtils.isEmpty(name)){\n mFullName.setError(getString(R.string.error_field_required));\n focusView = mFullName;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n return !cancel;\n }", "public void Login()\r\n\t{\r\n\t\t\r\n\t\tString firstName = CommonDriver.getProperties(\"FirstName\");\r\n\t\tString lastName = CommonDriver.getProperties(\"LastName\");\r\n\t\tString mobileNumber = CommonDriver.getProperties(\"MobileNumber\");\r\n\t\tString email = CommonDriver.getProperties(\"Email\");\r\n\t\tString Fpassword = CommonDriver.getProperties(\"Password\");\r\n\t\tString confirmPassword = CommonDriver.getProperties(\"ConfirmPassword\");\r\n\t\tString userName = CommonDriver.getProperties(\"UserName\");\r\n\t\tString logPassword = CommonDriver.getProperties(\"LogPassword\");\r\n\t\t\r\n\t\tUserName.sendKeys(userName);\r\n\t\t\r\n\t\tLogPassword.sendKeys(logPassword);\r\n\t\t\t\t\r\n\t\tLogin.click();\r\n\t\t\r\n\t\t/**\r\n\t\t * Since the application forgets the login credentials in sometime, hence, checking the error msg and signing up again \r\n\t\t * \r\n\t\t */\r\n\t\r\n\t\tboolean present;\r\n\t\ttry {\r\n\t\t driver.findElement(By.xpath(\"//*[@id='loginfrm']/div[1]/div[2]/div\"));\r\n\t\t present = true;\r\n\t\t System.out.println(\"Need to signup first\");\r\n\t\t\t\r\n\t\t\tSignUp.click();\r\n\t\t\t\r\n\t\t\tFirstName.sendKeys(firstName);\r\n\t\t\t\r\n\t\t\tLastName.sendKeys(lastName);\r\n\t\t\t\t\t\r\n\t\t\tMobileNumber.sendKeys(mobileNumber);\r\n\t\t\t\t\t\r\n\t\t\tEmail.sendKeys(email);\r\n\t\t\t\t\t\r\n\t\t\tPassword.sendKeys(Fpassword);\r\n\t\t\t\t\t\r\n\t\t\tConfirmPassword.sendKeys(confirmPassword);\r\n\t\t\t\t\t\r\n\t\t\tSignUpF.click();\r\n\t\t \r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t present = false;\r\n\t\t \r\n\t\t\tSystem.out.println(\"Loggedin Successfully\");\r\n\t\t}\r\n\t}", "private void attemptRegister() {\n if (mRegisterTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mRePasswordView.setError(null);\n mNameView.setError(null);\n mSurnameView.setError(null);\n mUsernameView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n String rePassword = mRePasswordView.getText().toString();\n String name = mNameView.getText().toString();\n String surname = mSurnameView.getText().toString();\n String username = mUsernameView.getText().toString();\n\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) &&!isPasswordValid(password, rePassword)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n } else if (!TextUtils.isEmpty(rePassword) &&!isPasswordMatch(password, rePassword)) {\n mRePasswordView.setError(getString(R.string.error_incorrect_password));\n focusView = mRePasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(surname)) {\n mSurnameView.setError(getString(R.string.error_field_required));\n focusView = mSurnameView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(username)) {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n String deviceId = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n if(deviceId == null)\n deviceId = \"oddDevice\";\n Log.d(\"Custom\" , deviceId);\n String gender = (String)mGender.getSelectedItem();\n String device = deviceId;\n mRegisterTask = new RegisterTask(email, password, name, surname, username, gender, device );\n\n mRegisterTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n\n char ch;\n boolean hasUppercase = false;\n boolean hasLowercase = false;\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String firstname = mFirstNameView.getText().toString();\n String lastname = mLastNameView.getText().toString();\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n String passwordconfirm = mPasswordConfirmView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid first name.\n if (TextUtils.isEmpty(firstname)) {\n mFirstNameView.setError(getString(R.string.error_field_required));\n focusView = mFirstNameView;\n cancel = true;\n }\n\n // Check for a valid last name.\n if (TextUtils.isEmpty(lastname)) {\n mLastNameView.setError(getString(R.string.error_field_required));\n focusView = mLastNameView;\n cancel = true;\n }\n\n // Check if password field is empty.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n //Check if the second input password is empty\n if (TextUtils.isEmpty(passwordconfirm)) {\n mPasswordConfirmView.setError(\"This field is required!\");\n focusView = mPasswordConfirmView;\n cancel = true;\n }\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && password.length() < 7) {\n mPasswordView.setError(getString(R.string.error_short_password));\n focusView = mPasswordView;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check if both of the entered passwords are equal\n if (!Objects.equals(password, passwordconfirm)) {\n mPasswordConfirmView.setError(\"Your Passwords do not match\");\n focusView = mPasswordConfirmView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n if (isNetworkAvailable()) {\n View view = this.getCurrentFocus();\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n Bundle args = new Bundle();\n args.putString(IHC_FIRSTNAME_KEY, firstname);\n args.putString(IHC_LASTNAME_KEY, lastname);\n args.putString(IHC_EMAIL_KEY, email);\n args.putString(IHC_PASSWORD_KEY, password);\n getSupportLoaderManager().initLoader(IHC_NONSTUDENT_SIGNUP_LOADER_ID, args, this);\n //new SignupAuthProcess(this).execute(firstname, lastname, email, password);\n }\n else {\n showNoInternetConnectionMsg();\n }\n }\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mIPView.setError(null);\r\n mPortView.setError(null);\r\n mUsernameView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String ip = mIPView.getText().toString();\r\n int port = 0;\r\n try {\r\n port = Integer.parseInt(mPortView.getText().toString());\r\n }catch (Exception e){\r\n\r\n }\r\n String username = mUsernameView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid ip address.\r\n if (TextUtils.isEmpty(ip)) {\r\n mIPView.setError(getString(R.string.error_field_required));\r\n focusView = mIPView;\r\n cancel = true;\r\n } else if (!isIPValid(ip)) {\r\n mIPView.setError(getString(R.string.error_invalid_ip));\r\n focusView = mIPView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid port.\r\n if (TextUtils.isEmpty(\"\"+port)) {\r\n mPortView.setError(getString(R.string.error_field_required));\r\n focusView = mPortView;\r\n cancel = true;\r\n }else if(port != (int)port){\r\n mPortView.setError(getString(R.string.error_invalid_port));\r\n focusView = mPortView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid username.\r\n if (TextUtils.isEmpty(username)) {\r\n mUsernameView.setError(getString(R.string.error_field_required));\r\n focusView = mUsernameView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(ip, port, username, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }", "@Test(priority = 0)\n public void correctLogin() {\n Login login = new Login(driver, wait);\n login.LoginMethod(login);\n login.typeCredentials(login.emailLabel, correctMail);\n login.typeCredentials(login.passwordLabel, correctPassword);\n login.click(login.submitBtn);\n login.checkElementDisplayed(login.loginContainer);\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "private void attemptLogin() {\n if (mAuth == null) {\n return;\n }\n showIndicator();\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n mEmailView.requestFocus();\n hideIndicator();\n return;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n mEmailView.requestFocus();\n hideIndicator();\n return;\n }\n\n // Check for nonempty password\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n mPasswordView.requestFocus();\n hideIndicator();\n return;\n }\n\n // TODO is it a good idea to move this to function? will it show in memory?????\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n hideIndicator();\n Intent intent = new Intent(LoginActivity.this, ItemListActivity.class);\n startActivity(intent);\n } else {\n hideIndicator();\n // show error\n Toast.makeText(LoginActivity.this, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "public F.Promise<Result> handleSignIn() {\n final Form<LogIn> filledForm = logInForm.bindFromRequest();\n if (customerService().isLoggedIn()) {\n return asPromise(redirect(controllers.routes.HomeController.home()));\n } else if (filledForm.hasErrors()) {\n flash(\"error\", \"Login form contains missing or invalid data.\");\n return asPromise(badRequest(loginView.render(data().build(), filledForm)));\n } else {\n return handleSignInWithValidForm(filledForm);\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mEMSIpview.setError(null);\n // Store values at the time of the login attempt.\n final String emsIP = mEMSIpview.getText().toString();\n final String email = mEmailView.getText().toString();\n final String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(emsIP)) {\n mEMSIpview.setError(\"Please enter an ems ip\");\n focusView = mEMSIpview;\n cancel = true;\n }\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n performNetworkOperations.doLogin(emsIP, email, password);\n// Toast.makeText(this,token,Toast.LENGTH_SHORT).show();\n// List<String> nodeData = performNetworkOperations.getNodesList(emsIP,token);\n\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n mUsrView.setError(null);\n mPasswordView.setError(null);\n\n String usr = mUsrView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n Tuple<String, String> creds = /*getCredentials()*/ SERVER_CREDENTIALS;\n\n boolean cancel = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password)) {\n if (!mPasswordView.getText().toString().equals(creds.y)) {\n if (Util.D) Log.i(\"attemptLogin\", \"pwd was \" + mPasswordView.getText().toString());\n mPasswordView.setError(getString(R.string.error_incorrect_creds));\n cancel = true;\n }\n focusView = mPasswordView;\n }\n\n if (TextUtils.isEmpty(usr)) {\n mUsrView.setError(getString(R.string.error_field_required));\n focusView = mUsrView;\n cancel = true;\n } else if (!usr.equals(creds.x)) {\n mUsrView.setError(getString(R.string.error_incorrect_creds));\n focusView = mUsrView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n if (prefs != null)\n prefs.edit().putBoolean(getString(R.string.settingAuthorized), true);\n showProgress(true);\n mAuthTask = new UserLoginTask(usr, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n }\n else\n {\n\n // checks to see if the login was successful or not\n try\n {\n // server connection class will handle initiating the connection to the remote server\n ServerConnection loginConn = new ServerConnection(\"http://cop4331groupeight.com/androidlogin.php\");\n String resultString = loginConn.initialLogin(email, password);\n\n JSONArray resultJSON = new JSONArray(resultString);\n JSONObject jsonObj = resultJSON.getJSONObject(0);\n\n int userID = jsonObj.getInt(\"userID\");\n String userEmail = jsonObj.getString(\"email\");\n String pass = jsonObj.getString(\"pass\");\n String error = jsonObj.getString(\"error\");\n String profileLocation = jsonObj.getString(\"profileLocation\");\n String firstName = jsonObj.getString(\"firstName\");\n String lastName = jsonObj.getString(\"lastName\");\n boolean inChat = jsonObj.getBoolean(\"inChat\");\n String preference = jsonObj.getString(\"preference\");\n String about = jsonObj.getString(\"about\");\n\n // login attempt was successful and we should proceed to the next activity\n if(error.equals(\"None\"))\n {\n\n session.createLoginSession(userID, userEmail, pass, profileLocation, firstName, lastName, inChat, true, preference, about);\n\n // Staring MainActivity\n Intent i = new Intent(getApplicationContext(), MatchActivity.class);\n startActivity(i);\n finish();\n }\n else\n {\n Log.v(\"Error\", \"Unexpected error occurred when parsing data.\");\n }\n }\n // failed login attempt\n catch(JSONException | NullPointerException e)\n {\n // if the user isn't currently connected to the internet, this exception will be thrown\n if (e instanceof NullPointerException)\n {\n Toast.makeText(LoginActivity.this, \"Error Connecting to Internet. Check your connection settings.\", Toast.LENGTH_SHORT).show();\n }\n // otherwise, the user's credentials were invalid and they need to try again\n else\n {\n Toast.makeText(LoginActivity.this, \"Login failed\", Toast.LENGTH_SHORT).show();\n mPasswordView.setError(getString(R.string.error_incorrect_password));\n mPasswordView.requestFocus();\n }\n\n }\n }\n }", "public void attemptLogin(View v) {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUsernamelView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String username = mUsernamelView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if(password.length() < 4) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check if username is empty.\n if (TextUtils.isEmpty(username)) {\n mUsernamelView.setError(getString(R.string.error_field_required));\n focusView = mUsernamelView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(username, password);\n mAuthTask.execute((Void) null);\n }\n }", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "private void submitForm() {\n this.setDisable(true);\n clearErrorMessage();\n if(validateForm()) {\n CharSequence chars = passwordField.getCharacters();\n String username = usernameField.getText();\n this.controller.validateLoginCredentials(username, chars);\n }\n this.setDisable(false);\n }", "private void userLogin() {\n String email = et_login_email.getText().toString().trim();\n String password = et_login_password.getText().toString().trim();\n\n if (email.isEmpty()) {\n et_login_email.setError(\"Please enter an email.\");\n et_login_email.requestFocus();\n return;\n }\n if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n et_login_email.setError(\"Please provide a valid e-mail address.\");\n et_login_email.requestFocus();\n return;\n }\n\n if (password.isEmpty()) {\n et_login_password.setError(\"Please enter a password.\");\n et_login_password.requestFocus();\n return;\n }\n if (password.length() < 6) {\n et_login_password.setError(\"Password should be at least 6 characters.\");\n et_login_password.requestFocus();\n }\n\n // Sign in with Email and Password function for Firebase.\n mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull @NotNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, \"Logged in\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(LoginActivity.this, HomeMainActivity.class));\n } else {\n Toast.makeText(LoginActivity.this, \"Failed to login. Please re-check your login credentials.\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n }\n });\n }", "private void attemptConnect() {\r\n if (mConnectTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mNameView.setError(null);\r\n mKeyView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String name = mNameView.getText().toString();\r\n String key = mKeyView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid name, if the user entered one.\r\n if (TextUtils.isEmpty(name)) {\r\n mNameView.setError(getString(R.string.error_invalid_password));\r\n focusView = mNameView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(key)) {\r\n mKeyView.setError(getString(R.string.error_field_required));\r\n focusView = mKeyView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n mConnectTask = new ConnectTask(this, name, key);\r\n mConnectTask.execute((Void) null);\r\n }\r\n }", "private static void attemptToLogin() {\n\t\tString id = null;\n\t\tString password = null;\n\t\tString role = null;\n\t\tint chances = 3;\n\t\t//User will get 3 chances to login into the system.\n\t\twhile(chances-->0){\n\t\t\tlog.info(\"Email Id:\");\n\t\t\tid = sc.next();\n\t\t\tlog.info(\"Password:\");\n\t\t\tpassword = sc.next();\n\t\t\trole = LogInAuthentication.authenticate(id, password);\n\t\t\t//If correct credentials are entered then role of user will be fetch from the database. \n\t\t\tif(role == null) {\n\t\t\t\t//If role is not fetched, error and left chances will be shown.\n\t\t\t\tlog.error(\"Invalid EmailId or password\");\n\t\t\t\tlog.info(\"Chances left: \"+chances);\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t//After verifying credentials User will be on-board to its portal depending upon the role.\n\t\tonboard(id,role);\n\t}", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mPasswordView.setError(null);\n usernameView.setError(null);\n\n // Store values at the time of the login attempt.\n String username = usernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n/*\nTODO: Move this to register area to see if email is a valid email address\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n */\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n //showProgress(true);\n HashMap<String, String> map = new HashMap<>();\n map.put(\"username\", username);\n map.put(\"pass\", password);\n mAuthTask = new httpUrlConn(map, \"http://hive.sewanee.edu/evansdb0/android1/scripts/hotPartyLogin.php\");\n\n mAuthTask.execute();\n\n try {\n if(mAuthTask.get().contains(\"true\")) {\n String r = mAuthTask.get().replace(\"true // \",\"\");\n Log.i(\"response\", r.toString());\n Toast.makeText(getApplicationContext(),r,Toast.LENGTH_SHORT).show();\n Intent i = new Intent(this, chooseEvent.class);\n i.putExtra(\"username\", username);\n startActivity(i);\n\n }\n else {\n String[] resp = response.split(\",\");\n // for(String i: resp)\n //Toast.makeText(getApplicationContext(),i,Toast.LENGTH_SHORT).show();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n\n if (mAuthTask == null || mAuthTask.getStatus().equals(AsyncTask.Status.FINISHED)) {\n mAuthTask = null;\n }\n }\n }", "@PostMapping(\"signup\")\n public String login(@ModelAttribute(\"loginFormData\") @Valid LoginFormDTO form, BindingResult bindingResult, HttpSession session) {\n if (bindingResult.hasErrors()) {\n return \"user/signup\";\n }\n User validCredentials = loginService.login(form.getUsername(), form.getPassword());\n if (validCredentials == null) {\n bindingResult.rejectValue(\"username\", \"\", \"login or password incorrect\");\n return \"user/signup\";\n }\n\n // correct login\n session.setAttribute(LOGGED_USER_KEY, validCredentials);\n return \"redirect:/dd\";\n }", "public void attemptRegister() throws IOException, ClassNotFoundException {\n\t\t// Reset errors.\n\t\t//mEmailView.setError(null);\n\t\t//mPasswordView.setError(null);\n\n\t\t// Reset errors.\n\t\tmFullNameView.setError(null);\t\t\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\t\tLog.d(\"Rafa\",\"En el register .... \");\n\t\t\n\t\t// Store values at the time of the login attempt.\n\t\tmFullName = mFullNameView.getText().toString();\n\t\tmEmail = mEmailView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\tLog.d(\"Rafa\",\"En el register ... FullName \");\t\t\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mFullName)) {\n\t\t\tmFullNameView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mFullNameView;\n\t\t\tcancel = true;\n\t\t} else if (mFullName.length() < 4) {\n\t\t\tmFullNameView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mFullNameView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\tLog.d(\"Rafa\",\"En el register ... Email \");\t\t\n\t\t// Check for a valid email address.\n\t\tif (TextUtils.isEmpty(mEmail)) {\n\t\t\tmEmailView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n/*\t\t} else if (!mEmail.contains(\"preventa\")) {\n\t\t\tmEmailView.setError(getString(R.string.error_invalid_email));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n*/\t\t\t\n\t\t}\t\t\n\t\t\n\t\tLog.d(\"Rafa\",\"En el register ... Password \");\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mPassword)) {\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t} else if (mPassword.length() < 4) {\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t\n\t\tLog.d(\"Rafa\",\"pasa x aquí ... \" + mFullName + \"-\" + mEmail + \"-\" + mPassword);\n\t\t\n\t\tClass.forName(\"org.postgresql.Driver\");\n\t\tString url;\n\t\turl = \"jdbc:postgresql://192.168.4.20:5432/\" +\n\t\t\t\t\"curso\" +\n\t\t\t\t\"?sslfactory=org.postgresql.ssl.NonValidatingFactory\"; // +\n\t\t\t\t//\"&ssl=true\";\n\t\t\n\t\tConnection conn;\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url,\"postgres\",\"\");\n\t\t\tPreparedStatement is = conn.prepareStatement(\n\t\t\t\t\t\"INSERT INTO registro (nombre_completo, ecorreo, password) VALUES (?, ?, ?);\");\n\t\t\t\n\t\t\tis.setString(1,mFullName);\n\t\t\tis.setString(2,mEmail);\n\t\t\tis.setString(3,mPassword);\n\t\t\t\n\t\t\tint rows = is.executeUpdate();\n\t\t\tis.close();\n\t\t\t\n\t\t\tLog.d(\"Rafa\",\"rows <\" + rows + \">\");\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLog.d(\"Rafa\",\"SQLException \" + e.getErrorCode() + \"-\" + e.getCause() + \"-\" + e.getLocalizedMessage() + \"-\" + e.getMessage() );\t\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\t\n\t\tif (cancel) {\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t// perform the user login attempt.\n\t\t\t//mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n\t\t\tToast.makeText(getApplicationContext(), \"Registrando:\" + mFullName + \"-\" + mEmail + \"-\" + mPassword , Toast.LENGTH_LONG).show();\t\t\t\n\t\t}\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void attemptLogin() {\n\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n if (email.isEmpty())\n if (email.equals(\"\") || password.equals(\"\")) return;\n Toast.makeText(this, \"Login in progress...\", Toast.LENGTH_SHORT).show();\n\n\n mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n //Log.d(\"Memorization Game\", \"signInWithEmail() onComplete: \" + task.isSuccessful());\n\n if (!task.isSuccessful()) {\n //Log.d(\"Memorization Game\", \"Problem signing in: \" + task.getException());\n showErrorDialog(\"There was a problem signing in\");\n } else {\n //SharedPreferences mpreference = getSharedPreferences(\"user_email\", Context.MODE_PRIVATE);\n //mpreference.edit().putString(\"email\",email).apply();\n Intent intent = new Intent(Activity_login.this, Home.class);\n finish();\n startActivity(intent);\n }\n\n }\n });\n\n\n }", "public void Login()throws Exception{\r\n if(eMailField.getText().equals(\"user\") && PasswordField.getText().equals(\"pass\")){\r\n displayMainMenu();\r\n }\r\n else{\r\n System.out.println(\"Username or Password Does not match\");\r\n }\r\n }", "private void onClickSignIn(){\n if(checkValidation()){\n //if Validation is ok\n submitForm();\n }\n else{\n //Something went wrong...\n Toast.makeText(LauncherActivity.this, \"Form contains error!\", Toast.LENGTH_LONG).show();\n }\n }", "User login(String email, String password) throws AuthenticationException;", "public HomePage loginValidCredentials (String email, String password){\n\n insertCredentials(email, password);\n submitInformation();\n\n return new HomePage(driver);\n }", "public LoginPage submitLoginExpectingFailure() {\n // This is the only place that submits the login form and expects the\n // destination to be the login page due to login failure.\n driver.findElement(signInButton).submit();\n\n // Return a new page object representing the destination. Should the user ever\n // be navigated to the home page after submiting a login with credentials\n // expected to fail login, the script will fail when it attempts to instantiate\n // the LoginPage PageObject.\n return new LoginPage(driver);\n }", "public static void loginForm(final LinearLayout login_form, final Context context) {\n TextView registration_link = (TextView) login_form.findViewById(R.id.registration);\n registration_link.setPaintFlags(registration_link.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n registration_link.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Config.context, CreateAccountActivity.class);\n Config.context.startActivity(intent);\n }\n });\n\n /* reset password link handler */\n TextView reset_link = (TextView) login_form.findViewById(R.id.reset_password);\n reset_link.setPaintFlags(reset_link.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n reset_link.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Config.context, ResetPasswordActivity.class);\n Config.context.startActivity(intent);\n }\n });\n\n /* fix the password field font */\n final EditText password = (EditText) login_form.findViewById(R.id.password);\n password.setTypeface(Typeface.DEFAULT);\n\n if (Utils.getCacheConfig(\"account_login_mode\").equals(\"email\")) {\n EditText username = (EditText) login_form.findViewById(R.id.username);\n username.setHint(Lang.get(\"android_hint_email\"));\n }\n\n /* login button handler */\n Button login_button = (Button) login_form.findViewById(R.id.login);\n login_button.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n boolean error = false;\n\n /* validate fields */\n EditText username = (EditText) login_form.findViewById(R.id.username);\n if (username.getText().toString().isEmpty()) {\n username.setError(Lang.get(\"no_field_value\"));\n error = true;\n }\n\n if (password.getText().toString().isEmpty()) {\n password.setError(Lang.get(\"no_field_value\"));\n error = true;\n }\n\n if (!error) {\n final String passwordHash = password.getText().toString();\n\n /* show progressbar */\n final ProgressDialog login_progress = ProgressDialog.show(Config.context, null, Lang.get(\"loading\"));\n\n /* build request url */\n HashMap<String, String> params = new HashMap<String, String>();\n params.put(\"username\", username.getText().toString());\n params.put(\"password\", passwordHash);\n final String url = Utils.buildRequestUrl(\"loginAttempt\", params, null);\n\n /* do request */\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(url, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] server_response) {\n // called when response HTTP status is \"200 OK\"\n try {\n String response = String.valueOf(new String(server_response, \"UTF-8\"));\n login_progress.dismiss();\n /* parse xml response */\n XMLParser parser = new XMLParser();\n Document doc = parser.getDomElement(response, url);\n\n if (doc == null) {\n Dialog.simpleWarning(Lang.get(\"returned_xml_failed\"), context);\n } else {\n NodeList accountNode = doc.getElementsByTagName(\"account\");\n Element element = (Element) accountNode.item(0);\n\n /* list of status to offer \"Contact Us\" page */\n String status = Utils.getNodeByName(element, \"status\");\n String[] tmp_status = {\"approval\", \"pending\", \"trash\"};\n List<String> contact_status = Utils.string2list(tmp_status);\n\n /* error */\n if (status.equals(\"error\")) {\n Dialog.simpleWarning(Lang.get(\"dialog_login_error\"), context);\n password.setText(\"\");\n } else if (status.equals(\"incomplete\")) {\n Dialog.simpleWarning(Lang.get(\"dialog_login_\" + status + \"_info\"), context);\n }\n /* status matched contact us message logic */\n else if (contact_status.indexOf(status) >= 0) {\n DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Config.context, SendFeedbackActivity.class);\n intent.putExtra(\"selection\", \"contact_us\");\n Config.context.startActivity(intent);\n }\n };\n\n Dialog.CustomDialog(Lang.get(\"dialog_login_\" + status), Lang.get(\"dialog_login_\" + status + \"_info\"), context, listener);\n }\n\n /* do login if account */\n if (!Utils.getNodeByName(element, \"id\").isEmpty()) {\n /* hide keyboard */\n Utils.hideKeyboard(login_form.findFocus());\n\n confirmLogin(accountNode);\n }\n }\n\n } catch (UnsupportedEncodingException e1) {\n\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // called when response HTTP status is \"4XX\" (eg. 401, 403, 404)\n }\n });\n }\n }\n });\n\n /* fb button handler */\n String facebook_id = Config.context.getString(R.string.app_id);\n if (Utils.getCacheConfig(\"facebookConnect_plugin\").equals(\"1\") && !facebook_id.isEmpty()) {\n LoginButton fbLogin = (LoginButton) login_form.findViewById(R.id.fbLogin);\n fbLogin.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null);\n\n /* set related items visible */\n fbLogin.setVisibility(View.VISIBLE);\n login_form.findViewWithTag(\"fbview\").setVisibility(View.VISIBLE);\n\n callbackManager = CallbackManager.Factory.create();\n\n fbLogin.setReadPermissions(Arrays.asList(\"public_profile\", \"email\"));\n fbLogin.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {\n\n @Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n // Application code\n\t\t\t\t\t\t\t\t\t/*Boolean ver = Boolean.parseBoolean(object.optString(\"verified\"));\n\t\t\t\t\t\t\t\t\tif ( !ver ) {\n\t\t\t\t\t\t\t\t\t\tDialog.simpleWarning(Lang.get(\"facebook_not_verified\"), context);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse */\n if (object != null) {\n final HashMap<String, String> formData = new HashMap<String, String>();\n formData.put(\"username\", object.optString(\"name\"));\n formData.put(\"password\", \"will-be-generated\");\n formData.put(\"email\", object.optString(\"email\"));\n formData.put(\"account_type\", \"will-be-set\");\n formData.put(\"fb_id\", object.optString(\"id\"));\n formData.put(\"first_name\", object.optString(\"first_name\"));\n formData.put(\"last_name\", object.optString(\"last_name\"));\n\n /* show progressbar */\n final ProgressDialog progress = ProgressDialog.show(Config.context, null, Lang.get(\"loading\"));\n\n /* do request */\n AsyncHttpClient client = new AsyncHttpClient();\n client.setTimeout(30000); // set 30 seconds for this task\n\n final String url = Utils.buildRequestUrl(\"createAccount\");\n client.post(url, Utils.toParams(formData), new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] server_response) {\n // called when response HTTP status is \"200 OK\"\n try {\n String response = String.valueOf(new String(server_response, \"UTF-8\"));\n /* hide progressbar */\n progress.dismiss();\n\n /* parse xml response */\n XMLParser parser = new XMLParser();\n Document doc = parser.getDomElement(response, url);\n\n if (doc == null) {\n Dialog.simpleWarning(Lang.get(\"returned_xml_failed\"), context);\n } else {\n NodeList errorsNode = doc.getElementsByTagName(\"errors\");\n\n /* handle errors */\n if (errorsNode.getLength() > 0) {\n Element element = (Element) errorsNode.item(0);\n NodeList errors = element.getChildNodes();\n\n if (errors.getLength() > 0) {\n Element error = (Element) errors.item(0);\n String key_error = error.getTextContent();\n if (key_error.equals(\"fb_email_exists\")) {\n checkFbPassword(formData, context);\n } else {\n Dialog.simpleWarning(Lang.get(key_error), context);\n }\n LoginManager.getInstance().logOut();\n }\n }\n /* process login */\n else {\n NodeList accountNode = doc.getElementsByTagName(\"account\");\n confirmLogin(accountNode);\n }\n }\n\n } catch (UnsupportedEncodingException e1) {\n\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // called when response HTTP status is \"4XX\" (eg. 401, 403, 404)\n }\n });\n } else {\n Log.d(\"FD\", \"FB connect no user\");\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender,first_name,last_name,verified,birthday\");\n request.setParameters(parameters);\n request.executeAsync();\n\n }\n\n @Override\n public void onCancel() {\n\n }\n\n @Override\n public void onError(FacebookException e) {\n\n }\n });\n }\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mEmailView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n //检测密码\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(\"请输入密码\");\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\r\n mPasswordView.setError(getString(R.string.error_invalid_password));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n\r\n SqlEngine sqlEngine = SqlEngine.getInstance(this);\r\n ArrayList<UserBean> list = sqlEngine.queryInfo();\r\n if (list.size() <= 0) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n for (int i = 0; i < list.size(); i++) {\r\n UserBean bean = list.get(i);\r\n Log.i(TAG, \"attemptLogin: 执行到此\");\r\n if (!bean.getUser().equals(email)) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n if (!bean.getPwd().equals(password)) {\r\n Toast.makeText(this, \"密码不正确\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n }\r\n\r\n String ip = (String) SpUtils.getValues(MyApplication.getContext(), Https.IP_ADDRESS, \"\");\r\n String port = (String) SpUtils.getValues(MyApplication.getContext(), Https.PORT, \"\");\r\n if (TextUtils.isEmpty(ip) || TextUtils.isEmpty(port)) {\r\n Toast.makeText(this, \"请先设置网络!\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // 显示一个进度微调,并启动一个后台任务\r\n // 执行用户登录尝试。\r\n showProgress(true);\r\n //判断是否勾选\r\n isCheckBox(email, password);\r\n mAuthTask = new UserLoginTask(email, password);\r\n mAuthTask.execute((Void) null);\r\n startActivity(new Intent(this, MainActivity.class));\r\n\r\n }\r\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "private void signInWithEmailAndPassword(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Unable to login\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void attemptRegister() {\n\n // Reinicia los errores de los EditText\n mEditEmail.setError(null);\n mEditFirstName.setError(null);\n mEditLastName.setError(null);\n mEditPassword.setError(null);\n mEditPasswordConfirm.setError(null);\n\n // Obtiene los valores ingresados por el usuario\n String email = Utils.checkEditTextForEmpty(getContext(),mEditEmail);\n String firstName = Utils.checkEditTextForEmpty(getContext(),mEditFirstName);\n String lastName = Utils.checkEditTextForEmpty(getContext(),mEditLastName);\n String password = Utils.checkEditTextForEmpty(getContext(),mEditPassword);\n String passwordConfirm = Utils.checkEditTextForEmpty(getContext(),mEditPasswordConfirm);\n\n //Revisa si hay valor vacío\n if (email == null || firstName == null || lastName == null || password == null || passwordConfirm == null) {\n return;\n }\n\n // Valida el correo\n if (!email.contains(\"@\")) {\n mEditEmail.setError(getString(R.string.error_invalid_email));\n mEditEmail.requestFocus();\n return;\n }\n\n // Valida la contraseña\n if (password.length() < 3) {\n mEditPassword.setError(getString(R.string.error_invalid_password));\n mEditPassword.requestFocus();\n return;\n }\n\n //Valida que las contraseñas hagan match\n if (!password.equals(passwordConfirm)) {\n mEditPasswordConfirm.setError(getString(R.string.error_invalid_password_confirmation));\n mEditPasswordConfirm.requestFocus();\n return;\n }\n\n // Intenta crear la cuenta\n Toast.makeText(getContext(), \"Bienvenido\", Toast.LENGTH_LONG).show();\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public abstract boolean login(String email, String passwaord) throws CouponSystemException;", "static void acceptLogin() throws IOException\n\t{\n\t\tboolean validLogin = false, loginAccepted=false, emptyInput=false;;\n\t\tint dialogButton, attempts = 0,option;\n\t\tString info, title = \"Registration\";\n\t\tdialogButton = JOptionPane.showConfirmDialog (null, \"Are you an existing user?\",\"Login\", JOptionPane.YES_NO_OPTION);\n \n JTextField email = new JTextField(); //A text field is a basic text control that enables the user to type a small amount of text.\n JTextField password = new JPasswordField();\n JTextField confirmEmail = new JTextField(); //A text field is a basic text control that enables the user to type a small amount of text.\n JTextField confirmPassword = new JPasswordField();\n \n if(dialogButton == JOptionPane.YES_OPTION)//Executes only if the user is already an existing user\n\t\t{\n\t\t\tSystem.out.println(\"User selected yes..\");\n //Creates an object that accepts both username and password using JTextField\n \n Object[]message = {\"Username:\", username,\"Password:\", password};\n String attempted=\"***\";\n System.out.println(attempted);\n //Loop will keep running until three attempts are made or a valid input is entered\n\t\t\twhile(attempts<3 && !validLogin && !emptyInput)\n\t\t\t{\n\n\t\t\t\toption = JOptionPane.showConfirmDialog(null, message, \"Login\", JOptionPane.OK_CANCEL_OPTION);\n System.out.println(username.getText()+\"\\n\"+password.getText());\n\n //if user presses Cancel button the program loops through acceptLogin Method\n if(option == JOptionPane.CANCEL_OPTION)\n {\n acceptLogin();\n validLogin = true;\n }\n\n else \n\t\t\t\t{\n\t\t\t\t validLogin = validLoginEntered(username.getText(), password.getText());\n\t\t\t\t if(!validLogin)\n {\n\t\t\t\t JOptionPane.showMessageDialog(null, \"User Could Not Be Found!\\nAttempt \"+(attempts+1)+\" of 3\", title, 2);\n\t\t\t\t attempts++;\t\n\t\t\t\t if (attempts==3) \n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"Login Failed\");\n\t\t\t\t \tdialogButton= JOptionPane.showConfirmDialog (null, \"Do you want to Login Again?\",\"Login Failed\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t \t if(dialogButton==JOptionPane.YES_OPTION)\n\t\t\t\t \t \t{acceptLogin();System.out.println(\"Reseting Login...\");\n\t\t\t\t \t \tvalidLogin=true;}\n\t\t\t\t \t else {\n\t\t\t\t \t \tSystem.out.println(\"Terminating Login...\");\n\t\t\t\t \t \tJOptionPane.showMessageDialog(null,\"Goodbye!!\");\n\t\t\t\t \t }\n\t\t\t\t }\n\t\t\t\t attempted=attempted.substring(0,attempted.length()-1);\n\t\t\t\t System.out.println(attempted);\n\t\t\t\t }\n else\n {\n loggedin = true;\n user(username.getText());\n getUsername(username.getText());\n }\n\t\t\t\t}\n }\n }\n //if user presses NO option then the user is asked to create a new user\n else if(dialogButton == JOptionPane.NO_OPTION)\n\t\t{ \n boolean userExists = false;\n\t\t\tFile fileReader = new File(\"loginDetails.txt\");\n\t\t\tObject[] message= {\"Email:\",email,\"Username:\", username,\"Password:\", password,\"Confirm Password:\", confirmPassword};\n JOptionPane.showMessageDialog(null, message, \"Create user\",1);\n info = username.getText()+\",\"+password.getText()+\",\"+email.getText()+\"\\n\"; \n //this is used to check if the user already exists. If user already exists then the user is asked to try logging in \n if (validpassword(password.getText())==true) {\n \t\n \n if(validemail(email.getText())==true)\n {\n if(loginDetails.get(0).contains(username.getText()) || username.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null,\"Username Taken or Empty Input, Try Again\",\"Registration Error!\",0);\n userExists = true;\n acceptLogin();\n }\n //if user doesn't exist then a new user is created\n if(!userExists&&confirmPassword.getText().matches(password.getText()))\n {\n \tSystem.out.println(\"New user Added to log...\");\n writeToFile(fileReader, info);\n writeUserFile(username.getText()+\".txt\",\"\");\n userDetails(username.getText()+\".txt\");\n loginDetails.get(0).add(username.getText());\n loginDetails.get(1).add(password.getText());\n loginDetails.get(2).add(\"0\");\n userIndex = loginDetails.get(0).indexOf(username.getText());\n validLogin=true;\n loggedin = true;\n }else{JOptionPane.showMessageDialog(null,\"Password does not match, Try again\",\"Password Error\",0);acceptLogin();}\n \t}else \n \t{\n \t\t\n \t\t acceptLogin();\n \t}\n }else\n {\n\n \t\t acceptLogin();\n }\n \n }\n //if the login is not succesfull then the program exists \n\t}", "public void attemptLogin() {\n if (mLoginTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String mUserName = mUserNameView.getText().toString();\n String mPassword = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if (TextUtils.isEmpty(mPassword)) {\n mPasswordView.setError(getString(R.string.error_password_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mUserName)) {\n mUserNameView.setError(getString(R.string.error_username_required));\n focusView = mUserNameView;\n cancel = true;\n }\n\n if (cancel) {\n // 出错时,让相应的控件获取焦点\n focusView.requestFocus();\n } else {\n // 进行登录\n mLoginTask = new LoginTask(LoginActivity.this, mUserName, mPassword, new LoginTask.OnLoginFinished() {\n @Override\n public void onFinished(String result) {\n try {\n JSONObject userJsonObject = new JSONObject(result);\n\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n intent.putExtra(\"UserId\", userJsonObject.getString(\"UserId\"));\n intent.putExtra(\"Key\", userJsonObject.getString(\"Key\"));\n intent.putExtra(\"UserName\", userJsonObject.getString(\"UserName\"));\n intent.putExtra(\"Orid\", userJsonObject.getString(\"Orid\"));\n if(userJsonObject.has(\"PlateType\"))\n intent.putExtra(\"PlateType\", userJsonObject.getString(\"PlateType\"));\n mLoginTask = null;\n\n rememberUserName(((CheckBox)findViewById(R.id.rememberUserName)).isChecked());\n\n startActivity(intent);\n finish();\n } catch (JSONException e) {\n Log.d(\"DFCarChecker\", \"Json解析错误:\" + e.getMessage());\n }\n }\n\n @Override\n public void onFailed(String error) {\n mLoginTask = null;\n // 登录失败,获取错误信息并显示\n Log.d(AppCommon.TAG, \"登录时出现错误:\" + error);\n\n mPasswordView.setError(error);\n mPasswordView.requestFocus();\n }\n });\n mLoginTask.execute();\n }\n }", "@Override\n public String logIn(){\n String email = getUserEmail();\n String password = getUserPassword();\n \n if (email.isEmpty() || password.isEmpty()){\n setDisplayError(Color.RED, \"Empty Credentials!\");\n }\n else { \n String sql = \"SELECT * FROM registered_user Where email = ? and password = ?\";\n \n try {\n preparedStatement = conn.prepareStatement(sql);\n preparedStatement.setString(1, email);//1 states that the 1st parameter is email\n preparedStatement.setString(2, password);//2 stated that the 2nd parameter is password\n resultSet = preparedStatement.executeQuery();\n \n if (!resultSet.next()) //If the rows doesn't exist\n setDisplayError(Color.RED, \"Incorrect Email or Password\");\n else{\n status = \"Success\";\n setDisplayError(Color.GREEN, \"Successfull login... Redirecting...\");\n } \n } catch (SQLException ex) {\n System.out.println(\"In the LoginController 1st try part \" + ex.getMessage());\n } finally {\n //closing the prepared statement to prevent the SQL injection\n try {\n if (preparedStatement != null ) {\n preparedStatement.close();\n conn.close();\n } \n } catch (SQLException sQLException) {\n System.out.println(sQLException.getMessage());\n status = \"Exception\";\n } \n \n //closing the connection\n try {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException sQLException) {\n System.out.println(sQLException.getMessage());\n }\n }\n }\n \n return status; \n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "protected Response login() {\n return login(\"\");\n }", "public void login() throws AccountException {\n System.out.println(\"----------------- Login -----------------\");\n System.out.print(\"Account: \");\n String acc = this.checkEmpty(\"Account\"); // Call method to check input of acc\n System.out.print(\"Password: \");\n String pass = this.checkEmpty(\"Password\"); // Call method to check input of pass\n\n // Check status of login\n boolean isLogin = this.login(acc, pass);\n\n if (isLogin) {\n // Show change password if user login success\n System.out.println(\"------------ Wellcome -----------\");\n System.out.print(\"Hi \" + acc + \", do you want change password now? Y/N: \");\n boolean isContinune = true;\n\n while (isContinune) {\n // Get y or n from user\n String op = scanner.nextLine();\n switch (op.toUpperCase()) {\n case \"Y\": // If y to check password\n this.changPass(acc); // Call method to change password\n isContinune = false; // End loop\n break;\n case \"N\": // Don't change password\n System.out.println(\"Don't change!\");\n isContinune = false; // End loop\n break;\n default: // Print error if not choice y or n\n System.out.println(\"You must choose 'Y' or 'N'!\");\n System.out.print(\"Try again: \"); // Retype\n break;\n }\n }\n } else {\n // Print out error if account or password incorrect\n System.out.println(\"Your account or password incorrect!\");\n }\n }", "private void attemptLogin() {\n final UserManager um = new UserManager();\n final String userName = userText.getText().toString();\n final String userPass = passwordText.getText().toString();\n final User attemptUser = um.login(userName, userPass);\n if (attemptUser != null) {\n SessionState.getInstance().startSession(attemptUser,\n getApplicationContext());\n resetFields();\n switch (attemptUser.getUserStatus()) {\n case USER:\n startBMS();\n break;\n case ADMIN:\n startAdmin();\n break;\n case BANNED:\n Toast.makeText(LoginActivity.this, \"Sorry, this user is \" +\n \"currently banned\", Toast\n .LENGTH_SHORT).show();\n break;\n case LOCKED:\n Toast.makeText(LoginActivity.this, \"Sorry, this user is \" +\n \"currently locked\", Toast\n .LENGTH_SHORT).show();\n break;\n\n }\n } else {\n if (!um.userExists(userName)) {\n userText.setError(\"Invalid Username\");\n } else {\n passwordText.setError(\"Invalid Password\");\n loginAttempts++;\n if (loginAttempts >= LOCK_ATTEMPTS) {\n final User attemptedUser = um.findUserById(userName);\n attemptedUser.setUserStatus(User.UserStatus.LOCKED);\n um.updateUser(attemptedUser);\n Toast.makeText(LoginActivity.this, \"Account locked: \" +\n \"too many attempts\", Toast\n .LENGTH_SHORT).show();\n }\n }\n }\n }", "@Override\n protected Boolean doInBackground(Void... params) {\n\n System.out.println(\"Attempting login\");\n\n ProgressDialogHandler.shared.login(ID_LOGIN_ACTIVITY, LoginActivity.this, mEmail.contains(\"@\") ? \"email\" : \"username\", mEmail, mPassword);\n\n // TODO: register the new account here.\n return true;\n }", "@Override\r\n\tpublic Account login(Account account) {\n\t\treturn accountMapper.login(account);\r\n\t}", "public void tryLogin() {\n\t\tcontroller.setupClient(txtNickname.getText());\n\t\tString cardDesign = comboBoxCardDesign.getSelectionModel()\n\t\t\t\t.getSelectedItem();\n\t\tConfiguration.chooseCardDesign(cardDesign);\n\t\tConfiguration.chooseMeepleDesign(cardDesign);\n\t}", "private int logIn()\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString username;\r\n\t\tString password;\r\n\t\tint index;\r\n\t\t\r\n\t\t//prompt user for username and password\r\n\t\tSystem.out.println(\"Enter your username\");\r\n\t\tusername = input.nextLine();\r\n\t\tSystem.out.println(\"Enter your password\");\r\n\t\tpassword = input.nextLine();\r\n\t\t\r\n\t\tindex = checkUserExists(username);\t\t\t\t\t\t\t\t\t//get the index of the username so we can find the password\r\n\t\tif (index == -1 || !userAccounts[1][index].equals(password))\t\t//username or password is incorrect\r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\nIncorrect Username/Password\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tSystem.out.println(\"Login Successful\");\r\n\t\treturn 1;\r\n\t}", "public void authenticate(View view) {\n String email = email_tf.getText().toString();\n String password = password_tf.getText().toString();\n\n // validating if email and password has been entered in the required data fields\n if (!validateInputs(email, password))\n return;\n\n Log.d(TAG, \"loginAccount:\" + email);\n\n // creating instance of prompt for showing prompts to user\n final Prompt prompt = new Prompt(this);\n\n // prompt user for login in\n prompt.showProgress(\"Sign In\", \"Login in...\");\n\n // authenticating email and password\n FirebaseController.getAuthInstance().signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n prompt.hideProgress();\n\n // if login was successful\n if (task.isSuccessful()) {\n Log.d(TAG, \"loginWithEmail:success\");\n\n // show short wait prompt for login successful\n prompt.showSuccessMessagePrompt(\"Login successful\");\n SASTools.wait(SASConstants.PROMPT_DISPLAY_WAIT_SHORT, new Runnable() {\n @Override\n public void run() {\n prompt.hidePrompt();\n\n // starting main activity\n startActivity(new Intent(EmailLoginActivity.this, MainActivity.class)\n .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK));\n\n // finishing this email login activity\n EmailLoginActivity.this.finish();\n }\n }\n );\n }\n\n // if login was not successful\n else {\n Log.w(TAG, \"loginWithEmail:failure\", task.getException());\n\n // show long wait prompt to user about login failure and provide the reason\n prompt.showFailureMessagePrompt(\"Login not successful\\n\" + Objects.requireNonNull(task.getException()).getMessage());\n SASTools.wait(SASConstants.PROMPT_DISPLAY_WAIT_LONG, new Runnable() {\n @Override\n public void run() {\n prompt.hidePrompt();\n }\n });\n }\n }\n });\n }", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }" ]
[ "0.7639094", "0.7365511", "0.7294211", "0.7252917", "0.7182569", "0.7178324", "0.7116318", "0.7116318", "0.7114954", "0.7108268", "0.7104638", "0.7104414", "0.71026474", "0.7081865", "0.7077395", "0.70468616", "0.70435494", "0.7026451", "0.6993231", "0.69716024", "0.696701", "0.69601977", "0.6953564", "0.6944212", "0.6926107", "0.6887588", "0.6880323", "0.68701005", "0.6863556", "0.68606937", "0.6817306", "0.680848", "0.6793404", "0.67735374", "0.675671", "0.67478573", "0.6742381", "0.66944903", "0.6668684", "0.66073173", "0.6604132", "0.66012895", "0.6560708", "0.652921", "0.6524948", "0.65217006", "0.64675766", "0.6460721", "0.6444169", "0.64419836", "0.64321375", "0.6374472", "0.636528", "0.6341449", "0.6327054", "0.63201123", "0.630735", "0.63011706", "0.6260551", "0.6250844", "0.62498486", "0.624244", "0.6237435", "0.62282753", "0.6212324", "0.6203503", "0.6184363", "0.61840683", "0.6153026", "0.6132052", "0.6078813", "0.6075553", "0.6072266", "0.6045677", "0.60410094", "0.60216534", "0.5988914", "0.5978067", "0.59745437", "0.59684896", "0.59678066", "0.59640735", "0.5957289", "0.5951134", "0.59436125", "0.5929861", "0.5925535", "0.591098", "0.59088844", "0.5902275", "0.58893245", "0.5888046", "0.5872433", "0.5867009", "0.58668727", "0.58635676", "0.58635235", "0.58526045", "0.58334905", "0.583278" ]
0.70946187
13
TODO: Replace this with your own logic
private boolean isEmailValid(String email) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "protected boolean func_70814_o() { return true; }", "public void identify() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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 bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void method_4270() {}", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "private static void iterator() {\n\t\t\r\n\t}", "void unableToListContents();", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n public void preprocess() {\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public int retroceder() {\n return 0;\n }", "public final void mo51373a() {\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "OptimizeResponse() {\n\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 protected void prot() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void parseData() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void preprocess() {\n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void autoDetails() {\n\t\t\r\n\t}", "private void verificaData() {\n\t\t\n\t}", "protected void onFirstUse() {}", "protected void additionalProcessing() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\npublic void processAttributes() {\n\t\n}", "@Override\n public int getOrder() {\n return 0;\n }", "@Override public int describeContents() { return 0; }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n public void apply() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public static void listing5_14() {\n }", "private void init() {\n\n\t}", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}" ]
[ "0.5507535", "0.5415208", "0.5397241", "0.5213475", "0.5190509", "0.51507944", "0.51187396", "0.51061547", "0.50923496", "0.5043965", "0.50385827", "0.5036471", "0.5034677", "0.50192416", "0.4987654", "0.49783257", "0.4978075", "0.49653882", "0.4915975", "0.4886251", "0.48785812", "0.4861412", "0.48403654", "0.4833164", "0.48169032", "0.4816278", "0.48058003", "0.48010588", "0.4793169", "0.4792254", "0.4792254", "0.47868094", "0.4752871", "0.474974", "0.47449896", "0.473353", "0.47332662", "0.47318083", "0.47297978", "0.47262013", "0.4720622", "0.472054", "0.47109193", "0.46965185", "0.46874917", "0.46861723", "0.46773893", "0.46754944", "0.46751675", "0.46728423", "0.46665418", "0.46595815", "0.4659023", "0.46574843", "0.4653462", "0.4653462", "0.46502182", "0.46460542", "0.46427584", "0.46411404", "0.4641", "0.46384826", "0.46384826", "0.46384826", "0.46384826", "0.46384826", "0.46384826", "0.46357882", "0.46275544", "0.46262828", "0.46224847", "0.45991594", "0.45946229", "0.45895043", "0.4588706", "0.4582062", "0.45743963", "0.4572707", "0.45715684", "0.45714563", "0.45680514", "0.456507", "0.456507", "0.4562768", "0.45504895", "0.4543864", "0.45438486", "0.45265993", "0.45183256", "0.4512405", "0.45121822", "0.45096955", "0.45013356", "0.44994572", "0.44962966", "0.44951797", "0.44885734", "0.44867834", "0.4482955", "0.4482955", "0.4481686" ]
0.0
-1
TODO: Replace this with your own logic
private boolean isPasswordValid(String password) { return password.length() > 4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "protected boolean func_70814_o() { return true; }", "public void identify() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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 bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void method_4270() {}", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "private static void iterator() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "void unableToListContents();", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n public void preprocess() {\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public int retroceder() {\n return 0;\n }", "public final void mo51373a() {\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "OptimizeResponse() {\n\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 protected void prot() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void parseData() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void preprocess() {\n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void autoDetails() {\n\t\t\r\n\t}", "private void verificaData() {\n\t\t\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "protected void onFirstUse() {}", "protected void additionalProcessing() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\npublic void processAttributes() {\n\t\n}", "@Override public int describeContents() { return 0; }", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "protected void mo6255a() {\n }", "@Override\n public void apply() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public static void listing5_14() {\n }", "private void init() {\n\n\t}", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}" ]
[ "0.55080605", "0.5414995", "0.53981006", "0.5214158", "0.5190516", "0.51502204", "0.51197857", "0.5107602", "0.5094037", "0.50451374", "0.50399345", "0.50376815", "0.5035622", "0.5020138", "0.49889562", "0.4979778", "0.49795508", "0.49665502", "0.4915935", "0.4887992", "0.48807788", "0.48628858", "0.48410654", "0.4832964", "0.4817579", "0.48169455", "0.48078027", "0.48024923", "0.47955015", "0.4793647", "0.4793647", "0.4787974", "0.47537845", "0.47502086", "0.47459823", "0.47350508", "0.4733306", "0.4731676", "0.4729926", "0.47261408", "0.47210842", "0.47206384", "0.4710318", "0.46959028", "0.46861246", "0.46859235", "0.467713", "0.4676037", "0.46757603", "0.4673842", "0.4666016", "0.46619412", "0.46603408", "0.465611", "0.46548048", "0.46548048", "0.46509388", "0.46467108", "0.4642086", "0.46416408", "0.46414316", "0.4639446", "0.4639446", "0.4639446", "0.4639446", "0.4639446", "0.4639446", "0.463663", "0.46289456", "0.4625877", "0.46228188", "0.45988637", "0.45944357", "0.459005", "0.4589843", "0.45834777", "0.45760253", "0.45723733", "0.45720634", "0.45714235", "0.45693907", "0.45664468", "0.45664468", "0.45640695", "0.45510402", "0.45445123", "0.4544095", "0.45274875", "0.45198", "0.45134047", "0.4512258", "0.45120764", "0.45022532", "0.44999406", "0.44983512", "0.44968933", "0.44897324", "0.44881213", "0.44831815", "0.44831815", "0.44830146" ]
0.0
-1
Shows the progress UI and hides the login form.
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2) private void showProgress(final boolean show) { // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow // for very easy animations. If available, use these APIs to fade-in // the progress spinner. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) { int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime); mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE); mLoginFormView.animate().setDuration(shortAnimTime).alpha( show ? 0 : 1).setListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE); } }); mProgressView.setVisibility(show ? View.VISIBLE : View.GONE); mProgressView.animate().setDuration(shortAnimTime).alpha( show ? 1 : 0).setListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { mProgressView.setVisibility(show ? View.VISIBLE : View.GONE); } }); } else { // The ViewPropertyAnimator APIs are not available, so simply show // and hide the relevant UI components. mProgressView.setVisibility(show ? View.VISIBLE : View.GONE); mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void showLoginForm() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoginForm();\n\n errorView.setVisibility(View.GONE);\n\n setFormEnabled(true);\n //loginButton.setLoading(false);\n }", "private void displayProgressDialog() {\n pDialog.setMessage(\"Logging In.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "private void displayProgressDialog() {\n pDialog.setMessage(\"Logging in.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "@Override public void showLoading() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoading();\n\n errorView.setVisibility(View.GONE);\n setFormEnabled(false);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showLoginProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(\n android.R.integer.config_shortAnimTime);\n\n mLoginStatusView.setBackground(new BitmapDrawable(getResources(),\n ImageUtils.decodeSampledBitmapFromResource(getResources(),\n R.drawable.end_form_1280x768, screenWidth, screenHeight)\n ));\n\n mLoginStatusView.setVisibility(View.VISIBLE);\n mLoginStatusView.animate().setDuration(shortAnimTime)\n .alpha(show ? 1 : 0)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginStatusView.setVisibility(show ? View.VISIBLE\n : View.GONE);\n }\n });\n\n mFinishGameView.setVisibility(View.VISIBLE);\n mFinishGameView.animate().setDuration(shortAnimTime)\n .alpha(show ? 0 : 1)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mFinishGameView.setVisibility(show ? View.GONE\n : View.VISIBLE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n mFinishGameView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "private void showLoginScreen()\n {\n logIngEditText.setVisibility(View.VISIBLE);\n passwordEditText.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.VISIBLE);\n textViewLabel.setVisibility(View.VISIBLE);\n }", "public static void HideLoginScreen() {\n Login.window.setVisible(false);\n ControlPanelFrameHandler.bar.setVisible(true);\n }", "private void showProgress(final boolean show) {\n //hide the relevant UI components.\n binding.loginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n binding.emailLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }", "private void hideLoginScreen()\n {\n logIngEditText.setVisibility(View.INVISIBLE);\n passwordEditText.setVisibility(View.INVISIBLE);\n loginButton.setVisibility(View.INVISIBLE);\n textViewLabel.setVisibility(View.INVISIBLE);\n }", "@TargetApi( Build.VERSION_CODES.HONEYCOMB_MR2 )\n private void showProgress( final boolean show )\n {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2 )\n {\n int shortAnimTime =\n getResources().getInteger(\n android.R.integer.config_shortAnimTime );\n\n mLoginStatusView.setVisibility( View.VISIBLE );\n mLoginStatusView.animate()\n .setDuration( shortAnimTime )\n .alpha( show ? 1 : 0 )\n .setListener( new AnimatorListenerAdapter()\n {\n @Override\n public void onAnimationEnd( Animator animation )\n {\n mLoginStatusView.setVisibility( show\n ? View.VISIBLE : View.GONE );\n }\n } );\n\n mLoginFormView.setVisibility( View.VISIBLE );\n mLoginFormView.animate()\n .setDuration( shortAnimTime )\n .alpha( show ? 0 : 1 )\n .setListener( new AnimatorListenerAdapter()\n {\n @Override\n public void onAnimationEnd( Animator animation )\n {\n mLoginFormView.setVisibility( show ? View.GONE\n : View.VISIBLE );\n }\n } );\n }\n else\n {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mLoginStatusView.setVisibility( show ? View.VISIBLE : View.GONE );\n mLoginFormView.setVisibility( show ? View.GONE : View.VISIBLE );\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n viewLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n viewLoginForm.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n viewLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n viewLoginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n viewLoginProgress.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n viewLoginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n viewLoginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n viewLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginStatusView.setVisibility(View.VISIBLE);\n mLoginStatusView.animate()\n .setDuration(shortAnimTime)\n .alpha(show ? 1 : 0)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n\n mLoginFormView.setVisibility(View.VISIBLE);\n mLoginFormView.animate()\n .setDuration(shortAnimTime)\n .alpha(show ? 0 : 1)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n\tprivate void showProgress(final boolean show) {\n\t\t// On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n\t\t// for very easy animations. If available, use these APIs to fade-in\n\t\t// the progress spinner.\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n\t\t\tint shortAnimTime = getResources().getInteger(\n\t\t\t\t\tandroid.R.integer.config_shortAnimTime);\n\n\t\t\tmLoginStatusView.setVisibility(View.VISIBLE);\n\t\t\tmLoginStatusView.animate().setDuration(shortAnimTime)\n\t\t\t\t\t.alpha(show ? 1 : 0)\n\t\t\t\t\t.setListener(new AnimatorListenerAdapter() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t\t\t\tmLoginStatusView.setVisibility(show ? View.VISIBLE\n\t\t\t\t\t\t\t\t\t: View.GONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tmLoginFormView.setVisibility(View.VISIBLE);\n\t\t\tmLoginFormView.animate().setDuration(shortAnimTime)\n\t\t\t\t\t.alpha(show ? 0 : 1)\n\t\t\t\t\t.setListener(new AnimatorListenerAdapter() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t\t\t\tmLoginFormView.setVisibility(show ? View.GONE\n\t\t\t\t\t\t\t\t\t: View.VISIBLE);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t} else {\n\t\t\t// The ViewPropertyAnimator APIs are not available, so simply show\n\t\t\t// and hide the relevant UI components.\n\t\t\tmLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);\n\t\t\tmLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n\t\t}\n\t}", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n loginSV.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n loginPB.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }", "@Override\n public void onLoginClicked(String username, String password) {\n loginView.showProgress();\n loginInteractor.authorize(username, password, this);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n\r\n\r\n\r\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n /*\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n */\n\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n // mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow for very easy animations.\n // If available, use these APIs to fade-in the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "public Login() {\n initComponents();\n lblstar.setVisible(false); // hide the red star that indicates that the user didnt fill in a form\n lblstar1.setVisible(false);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }", "private void showProgress(final boolean show) {\r\n mProgressView.setIndeterminate(true);\r\n mProgressView.setCancelable(false);\r\n mProgressView.setMessage(\"Authenticating...\");\r\n\r\n if (show)\r\n mProgressView.show();\r\n else if (!show && mProgressView.isShowing())\r\n mProgressView.dismiss();\r\n }", "@Override\n public void enableProgressBar() {\n et_log_email.setEnabled(false);\n et_log_password.setEnabled(false);\n acb_login.setVisibility(View.GONE);\n acb_register.setVisibility(View.GONE);\n\n //Enable progressbar\n pb_login.setVisibility(View.VISIBLE);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n loginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n progressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "private void showProgress(String taskName,String processString)\n {\n mProgressView = ProgressDialog.show(this, taskName, processString, true);\n mLoginFormView.setVisibility(View.INVISIBLE);\n\n }", "public static void showLogin() throws IOException {\n Main.FxmlLoader(LOGINPAGE_PATH);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mRaspberryLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mCancelButton.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mCancelButton.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\n tvLoad.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n tvLoad.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n /*mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });*/\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n //mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // Honeycomb APIs allow for easier animations. Used to fade the progress spinner.\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n public void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }", "public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n\tprivate void showProgress(final boolean show) {\n\t\t// On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n\t\t// for very easy animations. If available, use these APIs to fade-in\n\t\t// the progress spinner.\n\n\t\tif (show) {\n\t\t\tLinearLayout loginProgress = (LinearLayout) ((LinearLayout) LayoutInflater\n\t\t\t\t\t.from(getActivity()).inflate(R.layout.login_progress,\n\t\t\t\t\t\t\tnew LinearLayout(getActivity()))).getChildAt(0);\n\t\t\tmLoginStatusView = (ProgressBar) loginProgress.getChildAt(0);\n\t\t\tmLoginStatusMessageView = (TextView) loginProgress.getChildAt(1);\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n\n\t\t\tpopup.setFocusable(true);\n\t\t\tpopup.setContentView((LinearLayout) loginProgress.getParent());\n\t\t\tpopup.showAtLocation(new View(getActivity()), Gravity.CENTER, 0, 0);\n\t\t\tpopup.update(0, 0, 100, 100);\n\t\t}\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n\t\t\tmLoginStatusView.animate();\n\t\t\tmLoginFormView.animate().alpha(show ? 0.5f : 1);\n\t\t}\n\t}", "public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public Login() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "public void actionPerformed(ActionEvent action){\n new Login().setVisible(true);\n this.setVisible(false);\n }", "private void showIndicator() {\n mProgressBarHolder.setVisibility(View.VISIBLE);\n mEmailView.setFocusableInTouchMode(false);\n mEmailView.setFocusable(false);\n mEmailView.setEnabled(false);\n mPasswordView.setFocusableInTouchMode(false);\n mPasswordView.setFocusable(false);\n mPasswordView.setEnabled(false);\n mRegister.setEnabled(false);\n mEmailSignInButton.setEnabled(false);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n\n }\n });\n\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mProgressView.animate().setDuration(shortAnimTime).alpha(\n// show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n// @Override\n// public void onAnimationEnd(Animator animation) {\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// }\n// });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "public login() {\n initComponents();\n jLabel4.setIcon(null);\n jLabel4.setText(null);\n jLabel7.setVisible(false);\n setLocationRelativeTo(null);\n this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }", "@Override\n public void show()\n {\n boolean loginOK; // true if good user info was entered\n // multithreaded code does not execute properly in IDEs; true if IDE run detected\n boolean runningFromIDE = false;\n\n do // continue login process while user chooses to stay in login menu\n {\n loginOK = false;\n while(!loginOK) // do this while no good login info acquired, or user choose to bail.\n {\n System.out.println(splashStrings.LOGIN); // SPLASH WELCOME\n\n String userName = GET.getString(\"Indtast venligst bruger navn:\\n\\t|> \");\n\n char[] password;\n\n if(!runningFromIDE) // getPassword does not work in IDE\n {\n password = PasswordField.getPassword(System.in, \"Indtast venligst password:\\n\\t|> \");\n\n if(password == null)\n {\n // getPassword returns a null array reference, if no chars were captured, thus this.\n runningFromIDE = true;\n\n System.out.println(\"MELDING:\\nDet ser ud til at du kører programmet fra en IDE:\\t\" +\n \"Password masking slås fra.\" +\n \"\\nKør shorttest.jar, for at opnå den fulde bruger-oplevelse.\\n\");\n\n continue;\n }\n\n loginOK = checkCredentials(userName, new String(password));\n\n } else // option is chosen if IDE-execution detected\n {\n String passw = GET.getString(\"Indtast venligst password:\\n\\t|> \");\n loginOK = checkCredentials(userName, passw);\n }\n\n if(!loginOK) // if user input were no good, and ONLY if info were no good\n {\n System.out.println(\"De indtastede informationer fandtes ikke i systemet.\");\n if(GET.getConfirmation(\"Vil du prøve igen?\\n\\tja / nej\\n\\t|> \", \"nej\", \"ja\"))\n {\n System.out.println(\"Du valgte ikke at prøve igen, login afsluttes.\");\n break;\n }\n }\n }\n\n if(loginOK)\n {\n System.out.println(\"Login var en success. Fortsætter til første menu.\\n\");\n menuLoggedInto.show();\n }\n\n // when user returns from main menu, they get to choose if they want to log in again\n } while(GET.getConfirmation(\"Skal en anden logge ind?\\n\\t ja / nej\\n\\t|> \", \"ja\", \"nej\"));\n }", "@Override\n\t\t\t\t\tpublic void onLoginSuccess() {\n\t\t\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"登录成功\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tloginBtn.setVisibility(View.GONE);\n\t\t\t\t\t\tlogoutBtn.setVisibility(View.VISIBLE);\n\t\t\t\t\t}", "public Login() {\n initComponents();\n txtAccountStatus.setVisible(false); \n showDate(); // Class para sa Date\n showTime(); // Class para sa Time\n }", "public LoginW() {\n this.setUndecorated(true);\n initComponents();\n origin = pnlBackG.getBackground();\n lblErrorLogin.setVisible(false);\n this.setLocationRelativeTo(null);\n Fondo();\n }", "private void initUIAfterLogin() {\n lnLoggedOutState.setVisibility(View.GONE);\n lnLoggedInState.setVisibility(View.VISIBLE);\n initUserProfileUI();\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n\n Log.d(TAG, \"Setting: Show Progress\");\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n loginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n progressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n progressView.setVisibility(show ? View.VISIBLE : View.GONE);\n loginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }", "public LoginUI() {\n\t\tparentFrame = Main.getMainFrame();\n\t\tparentFrame.setVisible(true);\n\n\t\tsetLayout(new BorderLayout(5, 5));\n\t\tadd(initFields(), BorderLayout.NORTH);\n\t\tadd(initButtons(), BorderLayout.CENTER);\n\t}", "public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar != null) {\n progressBar.setVisibility(0);\n return;\n }\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar2 != null) {\n progressBar2.setVisibility(8);\n }\n }", "private void login(){\n displayPane(loginP);\n }", "@Override\n public void validateCredentials(ObjLogin objLogin, Context mContext) {\n if (loginView != null) {\n loginView.showProgress();\n loginInteractor.login(objLogin, this, mContext);\n }\n }", "private void displayLoader() {\n pDialog = new ProgressDialog(RegisterActivity.this);\n pDialog.setMessage(\"Signing Up.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }", "public void showLogin() {\n try {\n\n // Load person overview.\n loginController controller = new loginController(this);\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"Login.fxml\"));\n loader.setController(controller);\n AnchorPane personOverview = (AnchorPane) loader.load();\n\n // Set person overview into the center of root layout.\n rootLayout.setCenter(personOverview);\n controller.background();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public loginform() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2 - this.getWidth()/2, dim.height/2 - this.getHeight()/2);\n conn = MySql.connectDB();\n timer = new Timer(50, new MyProgressBarManager());\n }", "@Override\n public void disableProgressBar() {\n et_log_email.setEnabled(true);\n et_log_password.setEnabled(true);\n acb_login.setVisibility(View.VISIBLE);\n acb_register.setVisibility(View.VISIBLE);\n\n //Disable progressbar\n pb_login.setVisibility(View.GONE);\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "private void showSignInBar() {\n Log.d(TAG, \"Showing sign in bar\");\n findViewById(R.id.sign_in_bar).setVisibility(View.VISIBLE);\n findViewById(R.id.sign_out_bar).setVisibility(View.GONE);\n }", "private void intLoginPanel(){\n m_loginPanel = new JPanel();\n m_loginPanel.setLayout(new FlowLayout());\n m_userLabel = new JLabel(\"Username: \");\n m_userFeild = new JTextField(10);\n m_passLabel = new JLabel(\"Password: \");\n m_passFeild = new JPasswordField(10);\n m_login = new JButton(\"Login\");\n \n m_login.addActionListener(new ActionListener(){\n \n public void actionPerformed(ActionEvent e){\n String username = m_userFeild.getText();\n String pass = String.valueOf(m_passFeild.getPassword());\n System.out.println(\"Username: \"+username+\"\\nPassword: \"+pass);\n m_sid =CLOUD.login(pass, pass);\n if(m_sid!=null){\n m_data = CLOUD.List(m_sid);\n if(m_data!=null){\n initListPannel(convertList(m_data));\n m_passFeild.setEnabled(false);\n m_userFeild.setEnabled(false);\n m_login.setEnabled(false);\n Thread t = new expand();\n t.start();\n }\n }else{\n JOptionPane.showMessageDialog(null,\n \"Wrong Username and or password\",\n \"Login Failed\",\n JOptionPane.ERROR_MESSAGE);\n context.dispose();\n }\n \n }\n \n });\n m_loginPanel.add(m_userLabel);\n m_loginPanel.add(m_userFeild);\n m_loginPanel.add(m_passLabel);\n m_loginPanel.add(m_passFeild);\n m_loginPanel.add(m_login);\n m_loginPanel.validate();\n m_loginPanel.setOpaque(true);\n this.getContentPane().add(m_loginPanel);\n }", "public login() {\n initComponents();\n setLocationRelativeTo(null);\n this.setDefaultCloseOperation(login.DO_NOTHING_ON_CLOSE);\n }", "void SubmitButton() {\r\n\t\tint checker = Accounts.checkUser(username.getText(), password.getText());\r\n\t\tif(checker == -1) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tAdminScreen adminScreen = new AdminScreen();\r\n\t\t}\r\n\t\telse if(checker >= 0) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tStudentScreen studentScreen = new StudentScreen(checker);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: username \"\r\n\t\t\t\t\t+ \"and/or password is incorrect.\");\r\n\t\t\tpassword.setText(\"\");\r\n\t\t\tusername.setText(\"\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Override public void onNewViewStateInstance() {\n showLoginForm();\n }", "public static void login() {\n\t\trender();\n\t}", "@Override\n public void loginScreen() {\n logIn = new GUILogInScreen().getPanel();\n frame.setContentPane(logIn);\n ((JButton) logIn.getComponent(4)).addActionListener(e -> {\n setUsername();\n });\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(loginActivity.this);\n pDialog.setMessage(\"Logging You In..\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(true);\n pDialog.show();\n }", "public void swapLoginFX() throws IOException {\r\n hideAllViews();\r\n swapViewFX(\"LogIn\", viewLoginFX);\r\n }", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n mProgressDialog = new ProgressDialog(LoginActivity.this);\n mProgressDialog.setMessage(\"Logging in...\");\n mProgressDialog.setIndeterminate(false);\n mProgressDialog.setCancelable(true);\n mProgressDialog.show();\n }", "public loginGUI() {\r\n\r\n\t\tsuper.frame.setTitle(\"Login\");\r\n\t\ttry {\r\n\t\t\tJLabel label = new JLabel(new ImageIcon(ImageIO.read(new File(\"..\\\\images\\\\login-background.png\"))));\r\n\t\t\tframe.setContentPane(label);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Image doesn't exist...\");\r\n\t\t}\r\n\r\n\t\tcopyright();\r\n\t\tlabels();\r\n\t\ttextField();\r\n\t\tstartButton();\r\n\t\tsignup();\r\n\r\n\t\tsuper.frame.setVisible(true);\r\n\t}" ]
[ "0.76169", "0.7430754", "0.7399154", "0.72819114", "0.72789955", "0.7260257", "0.7260253", "0.724137", "0.71891165", "0.70444417", "0.69253945", "0.6895362", "0.68926954", "0.6867404", "0.6825947", "0.67877597", "0.6772781", "0.6757077", "0.67428565", "0.6742077", "0.6715254", "0.6706761", "0.669971", "0.6691303", "0.66535413", "0.66480935", "0.6643117", "0.66419303", "0.66389084", "0.66210276", "0.66116685", "0.6608199", "0.65925443", "0.658792", "0.65869766", "0.6573809", "0.65693057", "0.656877", "0.65609103", "0.65609103", "0.65609103", "0.65379095", "0.6511212", "0.64941347", "0.64860815", "0.64840657", "0.6481099", "0.6478084", "0.6468607", "0.6456772", "0.64420044", "0.6432211", "0.6419557", "0.6371501", "0.6350553", "0.63312453", "0.6323515", "0.63133115", "0.62808716", "0.6279439", "0.6277355", "0.62678874", "0.62608373", "0.62585425", "0.6252619", "0.62507415", "0.6245793", "0.6202415", "0.6197372", "0.6195388", "0.61647874", "0.6164123", "0.6155424", "0.6153152", "0.61466914", "0.61382926", "0.60947466" ]
0.6716003
38
Create adapter to tell the AutoCompleteTextView what to show in its dropdown list.
private void addEmailsToAutoComplete(List<String> emailAddressCollection) { ArrayAdapter<String> adapter = new ArrayAdapter<>(LoginActivity.this, android.R.layout.simple_dropdown_item_1line, emailAddressCollection); mEmailView.setAdapter(adapter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupAutoComplete() {\n // Map between AutoCompleteTextViews and their Adapters. Some text fields have a custom\n // adapter whose data is updated dynamically (rather than being statically set)\n Map<AutoCompleteTextView, ArrayAdapter<String>> map = new HashMap<>();\n map.put(mBind.layoutWidthEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.layoutHeightEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.backgroundEdit, new ArrayAdapter<>(this, LAYOUT_DROPDOWN_ITEM, Data.getArrColors()));\n map.put(mBind.maxWidthEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.maxHeightEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n\n for (Map.Entry<AutoCompleteTextView, ArrayAdapter<String>> e : map.entrySet()) {\n e.getKey().setAdapter(e.getValue());\n // For the fields with custom adapters, set up listener, so that the data of the adapter\n // is updated on every keystroke (e.g. \"14\" -> {\"14dp\", \"14in\", \"14mm\", \"14px\", \"14sp\"})\n if (e.getValue() instanceof AutoComplAdapter) {\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n // Trigger filtering process on 's', which updates the data of this adapter\n e.getValue().getFilter().filter(s);\n }\n });\n }\n }\n }", "private void add(){\r\n ArrayAdapter<String> adp3 = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, list);\r\n adp3.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n txtAuto3.setThreshold(1);\r\n txtAuto3.setAdapter(adp3);\r\n }", "private void loadAutoCompleteData() {\n List<String> labelsItemName = db.getAllItemsNames();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsItemName);\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchItem.setAdapter(dataAdapter);\n\n // List - Get Menu Code\n List<String> labelsMenuCode = db.getAllMenuCodes();\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter1 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsMenuCode);\n\n // Drop down layout style - list view with radio button\n dataAdapter1.setDropDownViewResource(android.R.layout.simple_list_item_1);\n\n // attaching data adapter to spinner\n autoCompleteTextViewSearchMenuCode.setAdapter(dataAdapter1);\n\n POS_LIST = ArrayAdapter.createFromResource(this, R.array.poscode, android.R.layout.simple_spinner_item);\n spnr_pos.setAdapter(POS_LIST);\n\n // barcode\n List<String> labelsBarCode = db.getAllBarCodes();\n ArrayAdapter<String> dataAdapter11 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,\n labelsBarCode);\n dataAdapter11.setDropDownViewResource(android.R.layout.simple_list_item_1);\n autoCompleteTextViewSearchItemBarcode.setAdapter(dataAdapter11);\n\n }", "private void initAutoCompleteAdapter(){\n adapterAcGeneric = new GenericAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_generics.setThreshold(0);\n ac_generics.setAdapter(adapterAcGeneric);\n ac_generics.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n genericName = adapterAcGeneric.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_generics.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n genericName = \"\";\n handlerGeneric.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerGeneric.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerGeneric = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_generics.getText())) {\n // Log.d(\"DEBUG\", \"in generic\");\n makeApiCall(ac_generics.getText().toString(), 1);\n }\n }\n return false;\n }\n });\n\n\n adapterAcCompany = new CompanyAcAdapter(getActivity(),\n android.R.layout.simple_dropdown_item_1line);\n ac_companies.setThreshold(0);\n ac_companies.setAdapter(adapterAcCompany);\n ac_companies.setOnItemClickListener(\n new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //selectedText.setText(autoSuggestAdapter.getObject(position));\n companyName = adapterAcCompany.getObject(position);\n makeApiCallForSearch();\n CommonMethods.hideKeybaord(getActivity());\n }\n });\n ac_companies.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int\n count, int after) {\n }\n @Override\n public void onTextChanged(CharSequence s, int start, int before,\n int count) {\n companyName = \"\";\n handlerCompany.removeMessages(TRIGGER_AUTO_COMPLETE);\n handlerCompany.sendEmptyMessageDelayed(TRIGGER_AUTO_COMPLETE,\n AUTO_COMPLETE_DELAY);\n }\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n handlerCompany = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n if (msg.what == TRIGGER_AUTO_COMPLETE) {\n if (!TextUtils.isEmpty(ac_companies.getText())) {\n //Log.d(\"DEBUG\", \"in company\");\n makeApiCall(ac_companies.getText().toString(), 2);\n }\n }\n return false;\n }\n });\n\n\n ac_companies.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"1\");\n makeApiCall(\"\", 2);\n\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n ac_generics.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean hasFocus) {\n if (hasFocus) {\n Log.d(\"DEBUG\", \"2\");\n makeApiCall(\"\", 1);\n // Toast.makeText(getActivity(), \"Got the focus\", Toast.LENGTH_SHORT).show();\n } else {\n // Toast.makeText(getActivity(), \"Lost the focus\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n selection = (TextView)findViewById(R.id.con_str);\n editor = (AutoCompleteTextView) findViewById(R.id.editor);\n editor.addTextChangedListener(this);\n editor.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line,items)); \n }", "public ArrayListFoodAdapter(Context context, FoodDAO foodDAO, AutoCompleteTextView refAutocomplete) {\n super(foodDAO.getAllFood());\n this.foodDAO = foodDAO;\n mResults = foodDAO.getAllFood();\n// refAutocomplete.setAdapter(this);\n }", "private void set_autotext_adapters(){\n ArrayAdapter<String> amount_adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_dropdown_item_1line, amount_autos);\n amount_text = (AutoCompleteTextView)\n findViewById(R.id.add_group_transaction_amount);\n amount_text.setAdapter(amount_adapter);\n ArrayAdapter<String> memo_adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_dropdown_item_1line, memo_autos);\n memo_text = (AutoCompleteTextView)\n findViewById(R.id.add_group_transaction_memo);\n memo_text.setAdapter(memo_adapter);\n }", "@Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n autoCompleteAdapter = new ArrayAdapter<String>(mContext, android.R.layout.simple_dropdown_item_1line, deviceNames);\n\n autoComplete.setAdapter(autoCompleteAdapter);\n autoComplete.showDropDown();\n loadingResult.setVisibility(View.INVISIBLE);\n }", "private void add() {\n \t\r\n\tArrayAdapter<String> adp=new ArrayAdapter<String>(this,\r\n\t\tandroid.R.layout.simple_dropdown_item_1line,li);\r\n\t \t\r\n\tadp.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n\tauto.setThreshold(1);\r\n\tauto.setAdapter(adp);\r\n\tsp.setAdapter(adp);\r\n\t\r\n }", "private ArrayAdapter<String> getAdapter(ArrayList<String> arr) {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this, R.layout.support_simple_spinner_dropdown_item, arr);\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n\n return adapter;\n }", "void setupToolbarDropDown(List<? extends CharSequence> dropDownItemList);", "private void createSuggestionsList() {\r\n\t\tmListView = new LabeledListViewElement(this);\r\n\t\tmInputBar.addView(mListView);\r\n\r\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int pos, long id) {\r\n\t\t\t\tString query = adapter.getItemAtPosition(pos).toString();\r\n\t\t\t\tif(query.contains(\" \"))\r\n\t\t\t\t\tsearch(query);\r\n\t\t\t\telse{\r\n\t\t\t\t\tmInputBar.setInputText(query + \" \");\r\n\t\t\t\t\tmInputBar.setCursorAtEnd();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "public void setAdapter() {\n // Create Custom Adapter\n Resources res = getResources();\n adapter = null;\n adapter = new WebsearchListAdapter(this, CustomListViewValuesArr, res);\n list.setAdapter(adapter);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.aty_using_autocompletetextview);\n\t\tactv=(AutoCompleteTextView)findViewById(R.id.autoCompleteTextView);\n\t\tactvAdapter=new ArrayAdapter<String>(this, R.layout.aty_using_autocompletetextview_dropdown_item, strs);\n\t\tactv.setAdapter(actvAdapter);\n\t\t\n\t\tmactv=(MultiAutoCompleteTextView) findViewById(R.id.multiAutoCompleteTextView);\n\t\tmactvAdapter=new ArrayAdapter<String>(this, R.layout.aty_using_autocompletetextview_dropdown_item,strs);\n\t\tmactv.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());\n\t\tmactv.setAdapter(mactvAdapter);\n\t}", "public DropDownAdapter(SpinnerAdapter adapter) {\n this.adapter = adapter;\n }", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n return initView(position, convertView, parent);\n }", "private void populateFullname() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getFN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n fullname.setAdapter(dataAdapter);\n\n }", "private void loadAdapter(){\n choices = contacts.getContacts();\n mAdapter = new MyListAdapter(this, choices);\n mListView.setAdapter(mAdapter);\n mListView.setClickListener(ContactListActivity.this);\n }", "@Override\r\n\tpublic void autoCompletedUpdated() {\r\n\t\tmAdapter = new ArrayAdapter<String>(this, R.layout.sdk_list_entry, R.id.sdk_list_entry_text, mModel.getAutocompleteSuggestions());\r\n\r\n\t\tmListView.setAdapter(mAdapter);\r\n\t\tmListView.invalidate();\r\n\t\t\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t}", "private void setupCustomAdapter() {\n AnimalAdapter adapter = new AnimalAdapter(this, animals);\n aListView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(SellMainActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n // mEmailView.setAdapter(adapter);\n }", "private void setAdapters() \n\t{\n\t\tArrayAdapter<CharSequence> adapter =\n\t\tArrayAdapter.createFromResource(\n\t\tthis, R.array.languages,\n\t\tandroid.R.layout.simple_spinner_item);\n\t\tadapter.setDropDownViewResource(\n\t\tandroid.R.layout.simple_spinner_dropdown_item);\n\t\tfromSpinner.setAdapter(adapter);\n\t\ttoSpinner.setAdapter(adapter);\n\t\t// Automatically select two spinner items\n\t\tfromSpinner.setSelection(8); // English (en)\n\t\ttoSpinner.setSelection(11); // French (fr)\n\t\torigText.setText(data);\n\t}", "@Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r2 = response.body().string();\n\n try\n {\n JSONArray j2 = new JSONArray(r2);\n\n\n for(int i = 0; i < j2.length(); i++)\n {\n /*\n HashMap<String, String> dogsHashMap = new HashMap<String, String>();\n dogsHashMap.put(\"name\", j2.getJSONObject(i).getString(\"name\"));\n dogsHashMap.put(\"dog_id\", j2.getJSONObject(i).getString(\"dog_id\"));\n dogPosts.add(dogsHashMap);\n */\n\n dogNames.add(j2.getJSONObject(i).getString(\"name\"));\n dogID.add(j2.getJSONObject(i).getString(\"dog_id\"));\n\n }\n\n adapter2 = new ArrayAdapter<String>(linkDogToOwner.this , android.R.layout.simple_spinner_dropdown_item, dogNames);\n\n runOnUiThread(new Runnable(){\n\n @Override\n public void run()\n {\n dogsDropDown.setAdapter(adapter2);\n }\n\n });\n\n }\n catch (JSONException e1)\n {\n e1.printStackTrace();\n }\n\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.auto_complete_text_view);\r\n\t\tsetTitle(\"AutoCompleteTextView示例!\");\r\n\t\tautoComplete=(AutoCompleteTextView)findViewById(R.id.auto_complete);\r\n\t\tcleanButton=(Button)findViewById(R.id.cleanButton);\r\n\t\t\r\n\t\tArrayAdapter<String> adapter=new ArrayAdapter<String>(AutoCompleteTextViewActivity.this,android.R.layout.simple_dropdown_item_1line,COUNTRIES);\r\n\t\tautoComplete.setAdapter(adapter);\r\n\t\t\r\n\t\t//清空\r\n\t\tcleanButton.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tautoComplete.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(Screen_open.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n }", "private void setDataToAdapter(ArrayList<String> arrayList)\n {\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(mContext, android.R.layout.simple_spinner_item, arrayList);\n // Specify layout to be used when list of choices appears\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Applying the adapter to our spinner\n spinner.setAdapter(arrayAdapter);\n spinner.setOnItemSelectedListener(this);\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n TextView textview = null;\n\n if (convertView == null) {\n convertView = m_inflate.inflate(R.layout.combobox_item, null);\n textview = (TextView) convertView.findViewById(R.id.id_txt);\n\n convertView.setTag(textview);\n } else {\n textview = (TextView) convertView.getTag();\n }\n\n textview.setText(m_data[position]);\n\n return convertView;\n }", "@Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r = response.body().string();\n\n try\n {\n JSONArray j = new JSONArray(r);\n\n for(int i = 0; i < j.length(); i++)\n {\n /*\n HashMap<String, String> ownersHashMap = new HashMap<String, String>();\n ownersHashMap.put(\"name\", j.getJSONObject(i).getString(\"name\"));\n ownersHashMap.put(\"human_id\", j.getJSONObject(i).getString(\"human_id\"));\n ownerPosts.add(ownersHashMap);\n */\n\n ownerNames.add(j.getJSONObject(i).getString(\"name\"));\n ownerID.add(j.getJSONObject(i).getString(\"human_id\"));\n }\n\n adapter = new ArrayAdapter<String>(linkDogToOwner.this , android.R.layout.simple_spinner_dropdown_item, ownerNames);\n\n runOnUiThread(new Runnable(){\n\n @Override\n public void run()\n {\n ownersDropDown.setAdapter(adapter);\n }\n\n\n }); // end of runOnUIThread() callback\n\n }\n catch (JSONException e1)\n {\n e1.printStackTrace();\n }\n }", "public void populateSpinner() {\r\n ArrayList<String> ary = new ArrayList<>();\r\n\r\n ary.add(\"Male\");\r\n ary.add(\"Female\");\r\n\r\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.support_simple_spinner_dropdown_item, ary);\r\n\r\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\r\n Gender.setAdapter(adapter);\r\n }", "public void initView() {\n ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,tracks);\n list.setAdapter(arrayAdapter);\n }", "public AutocompleteFriendAdapter(FirebaseListOptions<User> options, Activity activity, String encodedEmail) {\n super(options);\n this.mActivity = activity;\n this.mEncodedEmail = encodedEmail;\n }", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent)\n {\n View row = convertView;\n if(row == null)\n {\n LayoutInflater inflater = ((Activity) MainActivity.context).getLayoutInflater();\n row = inflater.inflate(R.layout.spinner_item_layout, parent, false);\n }\n \n ((TextView)row).setTypeface(MainActivity.pixelFont);\n ((TextView)row).setText(objectsData[position]);\n \n return row;\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\n\t\t\t\tCertainActivity.this, android.R.layout.simple_dropdown_item_1line,\n\t\t\t\temailAddressCollection);\n\n\t}", "private void Init(Context context){\n\n if(adapter == null){\n adapter = new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1);\n }\n\n this.setAdapter(adapter);\n }", "private ArrayAdapter<String> adapterForSpinner(List<String> list)\n {\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list)\n {\n @Override\n public boolean isEnabled(int position) {\n return position != 0;\n }\n\n @Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(Color.GRAY);\n }\n else {\n tv.setTextColor(Color.BLACK);\n }\n return view;\n }\n };\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n return dataAdapter;\n }", "private void setupSearchView() {\n SearchView search = binding.searchView;\n\n search.setQueryHint(\"Add companies...\");\n search.setIconifiedByDefault(false);\n search.setIconified(false);\n search.clearFocus();\n\n searchAutoComplete = search.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n\n // Styling the search bar\n searchAutoComplete.setHintTextColor(Color.GRAY);\n searchAutoComplete.setTextColor(Color.GRAY);\n\n searchAutoComplete.setOnItemClickListener((adapterView, view, itemIndex, id) -> {\n SearchEntry entry = (SearchEntry) adapterView.getItemAtPosition(itemIndex);\n String ticker = entry.getTicker();\n ArrayList<String> tickers = new ArrayList<>();\n searchAutoComplete.setText(\"\");\n tickers.add(ticker);\n boolean duplicate = false;\n if (comparisonCompaniesAdapter.getDataSet() != null) {\n duplicate = checkDuplicate(comparisonCompaniesAdapter.getDataSet(), ticker);\n }\n if (!duplicate) {\n List<Company> companies = viewModel.getComparisonCompanies().getValue();\n int size = (companies == null) ? 0 : companies.size();\n\n if (size <= 10) {\n viewModel.addToComparisonCompanies(tickers);\n } else {\n Toast.makeText(this, \"Reached comparison limit!\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n viewModel.loadSearchResults(newText);\n return false;\n }\n });\n }", "private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }", "private void displayListView() {\n\t\tArrayList<FillterItem> fillterList = new ArrayList<FillterItem>();\n\n\t\tfor (int i = 0; i < province.length; i++) {\n\t\t\tLog.i(\"\", \"province[i]: \" + province[i]);\n\t\t\tFillterItem fillter = new FillterItem();\n\t\t\tfillter.setStrContent(province[i]);\n\t\t\tfillter.setSelected(valueList[i]);\n\t\t\t// add data\n\t\t\tfillterList.add(fillter);\n\t\t}\n\n\t\t// create an ArrayAdaptar from the String Array\n\t\tdataAdapter = new MyCustomAdapter(getContext(),\n\t\t\t\tR.layout.item_fillter_header, fillterList);\n\n\t\t// Assign adapter to ListView\n\t\tlistView.setAdapter(dataAdapter);\n\n\t}", "public PlacesAutocompleteTextView(final Context context, final AttributeSet attrs, final int defAttr) {\n super(context, attrs, defAttr);\n\n init(context, attrs, defAttr, R.style.PACV_Widget_PlacesAutoCompleteTextView, null, context.getString(R.string.pacv_default_history_file_name));\n }", "public void addItemsOnSpinner() {\n Data dataset = new Data(getApplicationContext());\n List<String> list = new ArrayList<String>();\n list = dataset.getClasses();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(dataAdapter);\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 }", "private void setAdapters() {\n buildingInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, buildings));\n brandInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, brands));\n osInput.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, operatingSystems));\n /*\n If we want to use pre-determined lists\n getResources().getStringArray(R.array.brands);\n getResources().getStringArray(R.array.operating_systems);\n */\n }", "private void addSuggestedBrands() {\n Activity activity = getActivity();\n if (brand == null || activity == null) {\n return;\n }\n String[] allBrands = allBrandsLoaded ? ObjectCache.getBrands(activity, client, true, false) : null;\n BrandAdapter brandAdapter = new BrandAdapter(activity, R.layout.dropdown_brand_item,\n suggestedBrandOwners, allBrands);\n brand.setAdapter(brandAdapter);\n brand.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Object object = parent.getItemAtPosition(position);\n String brandName;\n String brandOwnerName = null;\n if (object instanceof SimpleBrand) {\n brandName = object.toString();\n brandOwnerName = ((SimpleBrand) object).brandOwner;\n } else {\n brandName = (String) object;\n }\n brand.setText(brandName);\n if (brandOwnerName != null && !brandOwnerName.isEmpty()) {\n // also set the brand's owner\n brandOwner.setText(brandOwnerName);\n }\n }\n });\n }", "private void initUi() {\n binding.rvCharacterList.setLayoutManager(new LinearLayoutManager(this));\n adapter = new CharacterListRvAdapter(this);\n final LinearLayoutManager layoutManager = (LinearLayoutManager) binding.rvCharacterList.getLayoutManager();\n binding.rvCharacterList.setAdapter(adapter);\n DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(binding.rvCharacterList.getContext(),\n layoutManager.getOrientation());\n binding.rvCharacterList.addItemDecoration(dividerItemDecoration);\n\n binding.rvCharacterList.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n if(layoutManager.getItemCount() <= layoutManager.findLastVisibleItemPosition() + 3){\n getCharacterLists();\n }\n }\n });\n\n binding.svCharacterSearch.setOnQueryTextListener(this);\n }", "public ArrayAdapter<T> getSpinnerAdapter(Iterable<T> items, Context context) {\n\t\tArrayAdapter<T> adapter = new ArrayAdapter<T>(context.getApplicationContext(), R.layout.spinner_item);\n\t\tadapter.setDropDownViewResource(R.layout.spinner_dropdown_item);\n\n\t\tif (items != null && items.iterator().hasNext()) {\n\t\t\tIterator<T> it = items.iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tadapter.add(it.next());\n\t\t\t}\n\t\t}\n\n\t\treturn adapter;\n\t}", "private ArrayAdapter setupAdapter(final List<Friend> friendsList) {\n /*get the adapter*/\n ArrayAdapter adapter = new ArrayAdapter(this\n , android.R.layout.simple_list_item_2\n , android.R.id.text1, friendsList) {\n\n /*get the view*/\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n TextView text1 = (TextView) view.findViewById(android.R.id.text1);\n TextView text2 = (TextView) view.findViewById(android.R.id.text2);\n text1.setText(String.valueOf(friendsList.get(position).getTelephoneNumber()));\n text2.setText(friendsList.get(position).getFriendName());\n return view;\n }\n };\n return adapter;\n }", "private ObservableList<String> fillComboBox() {\n\t\tObservableList<String> list = FXCollections.observableArrayList();\n\t\t\n\t\t/* Test Cases */\n\t\t\tlist.addAll(\"Item Code\", \"Description\");\n\t\t\n\t\treturn list;\n\t}", "@Override\n\t\tpublic View getDropDownView(int position, View convertView,\n\t\t\t\tViewGroup parent) {\n\t\t\treturn super.getDropDownView(position, convertView, parent);\n\t\t}", "private void setupCursorAdapter() {\n // Column data from cursor to bind views from\n String[] uiBindFrom = {ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_URI};\n // View IDs which will have the respective column data inserted\n int[] uiBindTo = {R.id.contact_name };\n// int[] uiBindTo = {R.id.contact_name, R.id.contact_image};\n // Create the simple cursor adapter to use for our list\n // specifying the template to inflate (item_contact),\n adapter = new SimpleCursorAdapter(\n mContext, R.layout.contact_item,\n null, uiBindFrom, uiBindTo,\n 0);\n }", "private void populatePhone() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getPN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n phoneNum.setAdapter(dataAdapter);\n\n }", "public listAdapter(List<Genres> myDataset,List<Anime> anime) {\n values = myDataset;\n animevalues = anime;\n }", "private void init(@NonNull final Context context, final AttributeSet attrs, final int defAttr, final int defStyle, final String googleApiKey, final String historyFileName) {\n TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.PlacesAutocompleteTextView, defAttr, defStyle);\n String layoutApiKey = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_googleMapsApiKey);\n String layoutAdapterClass = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_adapterClass);\n String layoutHistoryFile = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_historyFile);\n languageCode = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_languageCode);\n countryCode = typedArray.getString(R.styleable.PlacesAutocompleteTextView_pacv_countryCode);\n resultType = AutocompleteResultType.fromEnum(typedArray.getInt(R.styleable.PlacesAutocompleteTextView_pacv_resultType, PlacesApi.DEFAULT_RESULT_TYPE.ordinal()));\n clearEnabled = typedArray.getBoolean(R.styleable.PlacesAutocompleteTextView_pacv_clearEnabled, false);\n typedArray.recycle();\n\n final String finalHistoryFileName = historyFileName != null ? historyFileName : layoutHistoryFile;\n\n if (!TextUtils.isEmpty(finalHistoryFileName)) {\n historyManager = DefaultAutocompleteHistoryManager.fromPath(context, finalHistoryFileName);\n }\n\n final String finalApiKey = googleApiKey != null ? googleApiKey : layoutApiKey;\n\n if (TextUtils.isEmpty(finalApiKey)) {\n throw new InflateException(\"Did not specify googleApiKey!\");\n }\n\n api = new PlacesApiBuilder()\n .setApiClient(PlacesHttpClientResolver.PLACES_HTTP_CLIENT)\n .setGoogleApiKey(finalApiKey)\n .build();\n\n if (languageCode != null) {\n api.setLanguageCode(languageCode);\n }\n\n if (countryCode != null) {\n api.setCountryCode(countryCode);\n }\n\n if (layoutAdapterClass != null) {\n adapter = adapterForClass(context, layoutAdapterClass);\n } else {\n adapter = new DefaultAutocompleteAdapter(context, api, resultType, historyManager);\n }\n\n super.setAdapter(adapter);\n\n super.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(final AdapterView<?> parent, final View view, final int position, final long id) {\n Place place = adapter.getItem(position);\n\n if (listener != null) {\n listener.onPlaceSelected(place);\n }\n\n if (historyManager != null) {\n historyManager.addItemToHistory(place);\n }\n }\n });\n\n this.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (clearEnabled) {\n if (s != null && s.length() > 0) {\n showClearButton(true);\n } else {\n showClearButton(false);\n }\n } else {\n showClearButton(false);\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n\n super.setDropDownBackgroundResource(R.drawable.pacv_popup_background_white);\n }", "private void populateAutoComplete() {\n if (!mayRequestContacts()) {\n return;\n }\n\n getLoaderManager().initLoader(0, null, this);\n }", "public PlacesAutocompleteTextView(final Context context, final AttributeSet attrs) {\n super(context, attrs);\n\n init(context, attrs, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, null, context.getString(R.string.pacv_default_history_file_name));\n }", "public void listadaptor1(){\n final String[] sem = getResources().getStringArray(R.array.Sem1);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, sem);\n\n //Assigning the adapter to the listview\n lst_course.setAdapter(adapter);\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n \r\n AutoCompletionBinding<Project> txt_name = TextFields.bindAutoCompletion(name, new Callback<AutoCompletionBinding.ISuggestionRequest, Collection<Project>>() {\r\n\r\n @Override\r\n public Collection<Project> call(AutoCompletionBinding.ISuggestionRequest param) {\r\n List<Project> list = null;\r\n HttpHelper helper = new HttpHelper();\r\n try {\r\n LovHandler lovHandler = new LovHandler(\"projects\", \"PROJECT\");\r\n String response = lovHandler.getSuggestions(param.getUserText());\r\n list = (List<Project>) new JsonHelper().convertJsonStringToObject(response, new TypeReference<List<Project>>() {\r\n });\r\n } catch (IOException ex) {\r\n Logger.getLogger(ProjectController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return list;\r\n }\r\n\r\n \r\n }, new StringConverter<Project>() {\r\n\r\n @Override\r\n public String toString(Project object) {\r\n return object.getName() + \" (ID:\" + object.getId() + \")\";\r\n }\r\n\r\n @Override\r\n public Project fromString(String string) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\");\r\n }\r\n });\r\n\r\n //event handler for setting other Client fields with values from selected Client object\r\n //fires after autocompletion\r\n txt_name.setOnAutoCompleted(new EventHandler<AutoCompletionBinding.AutoCompletionEvent<Project>>() {\r\n\r\n @Override\r\n public void handle(AutoCompletionBinding.AutoCompletionEvent<Project> event) {\r\n Project project = event.getCompletion();\r\n //fill other item related fields\r\n \r\n PROJECT.setText(splitName(name.getText()));\r\n \r\n \r\n //populateAuditValues(client);\r\n }\r\n });\r\n // TODO\r\n }", "public void listadaptor2(){\n final String[] sem = getResources().getStringArray(R.array.Sem2);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, sem);\n\n //Assigning the adapter to the listview\n lst_course.setAdapter(adapter);\n }", "public void createViews(){\n ArrayList<Words> wordsArrayList = new ArrayList<Words>();\n\n //Fill array with english word and hindi translation by creating new word objects\n for(int i = 0; i < defaultWords.size() && i < hindiTranslation.size(); i++){\n wordsArrayList.add(new Words(defaultWords.get(i), hindiTranslation.get(i)));\n }\n\n //ArrayAdapter and ListView used so that not a lot of memory is used to create all textviews when not needed\n //Update** Using WordAdapter which extends ArrayAdapter and only has 2 parameters\n\n WordAdapter adapter = new WordAdapter(this, wordsArrayList);\n\n ListView listView = (ListView) findViewById(R.id.translation_root_view);\n\n listView.setAdapter(adapter);\n\n\n }", "private void addNamesToAutoComplete(List<String> nameCollection)\n\t{\n\t\tArrayAdapter<String> adapter =\n\t\t\t\tnew ArrayAdapter<>(SignupPersonalActivity.this,\n\t\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, nameCollection);\n\n\t\tmNameView.setAdapter(adapter);\n\t}", "private void initializeAdapter() {\n }", "private void SetViewAndAutoCompleteText(int viewID)\n\t{\n\t\t// Auto complete words\n // !put, !get, !capture, !launch, !autotest are special commands\n\t\tfinal String [] COMMAND_LIST = new String [] { \n\t\t\t\t\"!put a.txt\", \"!get c:/test.txt\", \"!capture 1.jpg\", \"!launch\", \n\t\t\t\t\"dir\", \"cd \", \"cd ..\", \"c:\", \"tasklist\" };\n\t\tfinal String [] KEY_LIST = new String [] { \n\t\t\t\t\"!autotest\", \"!pintest\", \"!stoptest\", \"[KEY_\", \"[KEY_LGUI]\", \"[KEY_LGUI][KEY_R]\", \"[KEY_LGUI][KEY_L]\", \"[KEY_LALT]\", \"[KEY_LALT][KEY_F4]\", \"[KEY_LCONTROL]\", \"[KEY_LCONTROL][KEY_S]\", \"[KEY_UP]\",\n\t\t\t\t\"[KEY_LSHIFT]\",\t\"[KEY_ENTER]\", \"[KEY_BACKSPACE]\", \"cmd.exe\", \"d:/testagent\" };\n\t\t\n\t\t// Set view pointer\n\t\tView view;\n\t\tAutoCompleteTextView autoText;\n\t\tArrayAdapter<String> adapter;\n\t\t\n\t\t// Set view pointer\n\t\tif (viewID == VIEW_ID_COMMAND)\n\t\t{\n\t\t\tview = mTabHost.getTabContentView().findViewById(R.id.commandView);\n\t\t\tmCommandView = (TextView)view.findViewById(R.id.dataview);\n\t\t\tmCommandScrollView = (ScrollView)view.findViewById(R.id.scrollview);\n\t\t\tmCommandInputView = (AutoCompleteTextView) view.findViewById(R.id.commandInput);\n\t\t\tautoText = mCommandInputView;\n\t\t\tadapter = new ArrayAdapter(getApplicationContext(), \n\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, COMMAND_LIST);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tview = mTabHost.getTabContentView().findViewById(R.id.keyView);\n\t\t\tmKeyView = (TextView)view.findViewById(R.id.dataview);\n\t\t\tmKeyScrollView = (ScrollView)view.findViewById(R.id.scrollview);\n\t\t\tmKeyInputView = (AutoCompleteTextView) view.findViewById(R.id.keyInput);\n\t\t\tautoText = mKeyInputView;\n\t\t\tadapter = new ArrayAdapter(getApplicationContext(), \n\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, KEY_LIST);\t\t\t\n\t\t}\t\t\n\t\t\n\t\t// Set options for autocomplete\n\t\tautoText.setTag(viewID);\n\t\tautoText.setAdapter(adapter);\n\t\tautoText.setThreshold(1);\n\t\t\n\t\t// Process enter key\n\t\tautoText.setOnKeyListener(new OnKeyListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic boolean onKey(View arg0, int arg1, KeyEvent arg2) \n\t\t\t{\t\t\t\t\n\t\t\t\tif ((arg0 != null) && (arg2 != null) && \n\t\t\t\t\t(arg2.getAction() == KeyEvent.ACTION_DOWN) &&\n\t\t\t\t\t(arg2.getKeyCode() == KeyEvent.KEYCODE_ENTER))\n\t\t\t\t{\n\t\t\t\t\tAutoCompleteTextView view = (AutoCompleteTextView) arg0;\n\t\t\t\t\tString data;\n\t\t\t\t\tint viewID;\n\t\t\t\t\t\n\t\t\t\t\tdata = view.getText().toString();\n view.setText(\"\");\n viewID = (Integer) view.getTag();\n if (data.equals(\"\") == true)\n {\n if (viewID == VIEW_ID_KEY)\n {\n data = \"[KEY_ENTER]\";\n }\n else\n {\n return true;\n }\n }\n\n SendCommandOrKeys(viewID, data);\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\t\t\n\t}", "@Override\n public View getDropDownView(int position, View convertView, ViewGroup parent) {\n return getCustomView(position, convertView, parent);\n }", "private void initAdapter() {\n GridLayoutManager layoutManager = new GridLayoutManager(this, 3);\n //设置布局管理器\n rv.setLayoutManager(layoutManager);\n //设置为垂直布局,这也是默认的\n layoutManager.setOrientation(OrientationHelper.VERTICAL);\n\n adapter1 = new CommomRecyclerAdapter(ChoiceCityActivity.this, stringList, R.layout.recy_country, new CommomRecyclerAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(CommonRecyclerViewHolder holder, int postion) {\n //热门城市点击\n Map map = new HashMap();\n map.put(\"p1\",stringList.get(postion).getHotCity() );\n StatisticsManager.getInstance(mContext).addEventAidl(1812,map);\n\n Intent intent = new Intent(ChoiceCityActivity.this, MainActivity.class);\n intent.putExtra(\"country\", stringList.get(postion).getHotCountry());\n intent.putExtra(\"city\", stringList.get(postion).getHotCity());\n Constans.CITY = stringList.get(postion).getHotCity();\n Constans.COUNTRY = stringList.get(postion).getHotCountry();\n if (isFirst == 1) {\n isFirst=0;\n startActivity(intent);\n } else {\n setResult(RESULT_OK, intent);\n }\n finish();\n }\n }, null) {\n @Override\n public void convert(CommonRecyclerViewHolder holder, Object o, int position) {\n TextView tv_country_name = holder.getView(R.id.tv);\n tv_country_name.setText(stringList.get(position).getHotCity());\n }\n };\n rv.setAdapter(adapter1);\n\n\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n ArrayAdapter<String> adapter_state1 = new ArrayAdapter<String>(MainActivity.this, R.layout.simple_list_item_2, arrayListtype){\n\n @Override\n public boolean isEnabled(int position){\n if(position == 0)\n {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n }\n else\n {\n return true;\n }\n }\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(getResources().getColor(R.color.grey));\n }\n else {\n tv.setTextColor(getResources().getColor(R.color.textcolour));\n }\n return view;\n }\n };\n\n adapter_state1\n .setDropDownViewResource(R.layout.simple_list_item_1);\n\n sp1.setAdapter(adapter_state1);\n pdia.dismiss();\n\n }", "private void loadSuggestions(final ArrayList<MutualFund_CustomClass> mSuggestionArrayList) {\n new VolleyClass(MainActivity.this, \"MainActivity\").volleyPostData(\"<YOUR_WEBSERVICE_URL>\", /*\"<YOUR_JSON_OBJECT>\"*/, new VolleyResponseListener() {\n @Override\n public void onResponse(JSONObject response) throws JSONException {\n for (int i = 0; i < response.getJSONArray(\"data\").length(); i++) {\n mutualFundHouseObj = new MutualFund_CustomClass();\n mutualFundHouseObj.setFundId(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundid\"));\n mutualFundHouseObj.setFundName(response.getJSONArray(\"data\").optJSONObject(i).optString(\"fundname\"));\n mSuggestionArrayList.add(mutualFundHouseObj);\n }\n //INSTANTIATING CUSTOM ADAPTER\n mMutualFundAdapter = new MutualFund_CustomAdapter(MainActivity.this, mSuggestionArrayList);\n mAutoCompleteTextView.setThreshold(1);//will start working from first character\n mAutoCompleteTextView.setAdapter(mMutualFundAdapter);//setting the adapter data into the AutoCompleteTextView\n\n }\n\n @Override\n public void onError(String message, String title) {\n\n }\n });\n }", "public PlacesAutocompleteTextView(@NonNull final Context context, @NonNull final String googleApiKey) {\n super(context);\n\n init(context, null, R.attr.pacv_placesAutoCompleteTextViewStyle, R.style.PACV_Widget_PlacesAutoCompleteTextView, googleApiKey, context.getString(R.string.pacv_default_history_file_name));\n }", "@Override\r\n\tpublic View getDropDownView(int position, View convertView, ViewGroup parent) {\r\n\r\n\t\treturn getView(position, convertView, parent);\r\n\t}", "public void buildConsultantComboBox(){\r\n combo_user.getSelectionModel().selectFirst(); // Select the first element\r\n \r\n // Update each timewindow to show the string representation of the window\r\n Callback<ListView<User>, ListCell<User>> factory = lv -> new ListCell<User>(){\r\n @Override\r\n protected void updateItem(User user, boolean empty) {\r\n super.updateItem(user, empty);\r\n setText(empty ? \"\" : user.getName());\r\n }\r\n };\r\n \r\n combo_user.setCellFactory(factory);\r\n combo_user.setButtonCell(factory.call(null)); \r\n }", "private void populateListView() {\n String[] myItems = {\"Blue\", \"green\", \"Purple\", \"red\"};\n\n //creating listviewadapter which is an array for storing the data and linking it according to the\n //custom listview\n\n ArrayAdapter<String> listViewAdapter = new ArrayAdapter<String>(this, R.layout.da_items, myItems);\n //linking the listview with our adapter to present data\n ListView Lv = (ListView)findViewById(R.id.listView_data);\n Lv.setAdapter(listViewAdapter);\n }", "private void setEventTypeList() {\n EventTypeAdapter listAdapter = new EventTypeAdapter(this, R.layout.spinner_item, getResources().getStringArray(R.array.event_type_list));\n listAdapter.setDropDownViewResource(R.layout.spinner_list_item);\n listEventType.setAdapter(listAdapter);\n listEventType.setSelection(listAdapter.getCount());\n listEventType.setOnItemSelectedListener(this);\n }", "public AutoCompleteTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, Resources.Theme popupTheme) {\n/* 157 */ super((Context)null); throw new RuntimeException(\"Stub!\");\n/* */ }", "public void spn_adaptor(){\n final String[] sem = getResources().getStringArray(R.array.Semester);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_spinner_item, sem);\n\n //Setting the view which will be used in the spinner\n adapter.setDropDownViewResource(\n simple_spinner_dropdown_item\n );\n\n //Assigning the adaptor1 to the spinner\n spn_semester.setAdapter(adapter);\n }", "private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }", "private void populateList(){\n //Build name list\n this.names = new String[] {\"Guy1\",\"Guy2\",\"Guy3\",\"Guy4\",\"Guy5\",\"Guy6\"};\n //Get adapter\n //ArrayAdapter<String>(Context, Layout to be used, Items to be placed)\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.list_items, names);\n //Filling the list view\n ListView list = findViewById(R.id.transaction_list);\n list.setAdapter(adapter);\n }", "private void setAdapter() {\n AdapterSymptomList adapter = new AdapterSymptomList(allSymptomsList, ActivityRecordsListSymptoms.this);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(ActivityRecordsListSymptoms.this);\n symptomRecyclerView.setLayoutManager(layoutManager);\n symptomRecyclerView.setItemAnimator(new DefaultItemAnimator());\n symptomRecyclerView.setAdapter(adapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_select_service_item, container, false);\n ButterKnife.bind(this, view);\n getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);\n getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n typeName.setText(serviceTypeEx.getTypeName());\n adapter = new ServiceItemAdapter();\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerView.setAdapter(adapter);\n// adapter.setServiceTypeExList(serviceTypeExList);\n return view;\n }", "@Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n return getCustomView(position, convertView, parent);\n }", "public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }", "private void showArrayAdaptView() {\n\t\tPersonAdapt personAdapt = new PersonAdapt(this, persons, R.layout.listview_item);\n\t\tlistView.setAdapter(personAdapt);\n\t}", "private void setAdapter() {\n\n\t\tathleteCheckInAdapter = new AthleteStickyHeaderCheckInAdapter(getActivity(), athleteAttendanceList);\n\n\t}", "public Adapter(Context c, String[] title, String[] descript) {\n myContext = c;\n titleA = title;\n descriptA = descript;\n inflater = LayoutInflater.from(c);\n\n }", "private void initSpinnerTypeExam()\n {\n Spinner spinner = findViewById(R.id.iTypeExam);\n\n // Adapt\n final ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this,\n R.layout.support_simple_spinner_dropdown_item\n );\n spinner.setAdapter(adapter);\n\n // ajout des types d'examens\n for(TypeExamen t : TypeExamen.values())\n {\n adapter.add(t.toString());\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_select_alphabet_vowels, container, false);\n //use butter knife in fragments with the help of unbinder class\n unbinder = ButterKnife.bind(this, view);\n setSelectAlphabetsAdapter();\n return view;\n }", "@Override\n public View getDropDownView(final int position, View convertView, final ViewGroup parent) {\n if (convertView == null) convertView = mDropDownHelper.getDropDownViewInflater()\n .inflate(mLayoutId, parent, false);\n return super.getDropDownView(position, convertView, parent);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(AGLoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mNameView.setAdapter(adapter);\n }", "public static void setupAutoComplete(JComboBox comboBox)\n\t{\n\t\tcomboBox.setEditable(true);\n\t\tJTextComponent editor = (JTextComponent) comboBox.getEditor().getEditorComponent();\n\t\teditor.setDocument(new AutoComplete(comboBox));\n\t}", "void setupSpinner() {\n\n Spinner spinner = (Spinner) findViewById(R.id.language_spinner);\n\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.language_array, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(adapter);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n assignmentAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_selectable_list_item);\n\n new getAllCourses().execute(\"\");\n return super.onCreateView(inflater, container, savedInstanceState);\n }", "public void listadaptor3(){\n final String[] sem = getResources().getStringArray(R.array.Sem3);\n\n //Creating an instance of ArrayAdaptor\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, sem);\n\n //Assigning the adapter to the listview\n lst_course.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<String>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<String>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "protected abstract MultiTypeAdapter createAdapter();", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n //Create adapter to tell the AutoCompleteTextView what to show in its dropdown list.\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "void loadSpinner(Spinner sp){\n List<String> spinnerArray = new ArrayList<>();\n spinnerArray.add(\"Oui\");\n spinnerArray.add(\"Non\");\n\n// (3) create an adapter from the list\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_spinner_item,\n spinnerArray\n );\n\n//adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n// (4) set the adapter on the spinner\n sp.setAdapter(adapter);\n\n }", "private void setSelectTypeData(){\n ArrayList<SelectType> selectTypes = new ArrayList<>();\n //add select types\n selectTypes.add(new SelectType(\"Multiple Choice\", \"multiple\"));\n selectTypes.add(new SelectType(\"True / False\",\"boolean\"));\n\n //fill in data\n ArrayAdapter<SelectType> adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_dropdown_item,selectTypes);\n selectType.setAdapter(adapter);\n\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(SignUpActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "public AutoCompleteTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {\n/* 132 */ super((Context)null); throw new RuntimeException(\"Stub!\");\n/* */ }", "public static TypeAdapterFactory create() {\n return new AutoValueGson_MyTypeAdapterFactory();\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n ArrayAdapter<String> adapter_state2 = new ArrayAdapter<String>(MainActivity.this, R.layout.simple_list_item_3, arrayListsize){\n\n @Override\n public boolean isEnabled(int position){\n if(position == 0)\n {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n }\n else\n {\n return true;\n }\n }\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(getResources().getColor(R.color.grey));\n }\n else {\n tv.setTextColor(getResources().getColor(R.color.textcolour));\n }\n return view;\n }\n };\n\n adapter_state2\n .setDropDownViewResource(R.layout.simple_list_item_1);\n\n sp2.setAdapter(adapter_state2);\n pdia.dismiss();\n\n\n }", "private void adapterSet(String ruta) {\n if(!agregar){\n ArrayList<Ruta> ruta1 = db.getRutas();\n for(Ruta rut: ruta1){\n if(rut.getNombre().equals(getIntent().getExtras().getString(\"ruta\"))){\n rutaA = rut;\n }\n }\n tags = db.getTagsDeRutaPorRuta(rutaA.getCodigo());\n for(Tag tag: tags){\n if(tag.getRonda().equals(rutaA.getCodigo())){\n PntsTagRuta.add(tag.getCodigo());\n }\n }\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, final int position, long id) {\n //Toast.makeText(view.getContext(),\"List item \"+position,Toast.LENGTH_SHORT).show();\n final PopupMenu popup = new PopupMenu(view.getContext(), listView);\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.opciones_crear_ruta, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.modificar:\n cdd = new CustomDialogClass(AgregarRutaActivity.this); // En espera de NFC\n pos = position;\n cdd.show();\n return true;\n case R.id.borrar:\n //db.borrarRuta(nombresRutas.get(position));\n return true;\n }\n return true;\n }\n });\n\n popup.show();//showing popup menu\n }\n });\n }\n adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, PntsTagRuta);\n listView.setAdapter(adapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register_ti, container, false);\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n\n requestQueue = DataSource.getInstance(getContext()).getRequestQueue();\n\n sharedPreferences = getContext().getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n idUser = sharedPreferences.getString(SplashActivity.USER_ID, \"\");\n// idUser = 123456;\n// atividadePersister = AtividadePersister.getInstance(getContext());\n dataSource = DataSource.getInstance(getContext());\n atividades = (ArrayList<Atividade>) dataSource.getAtividades(idUser);\n\n\n initViews(view);\n listeners();\n\n atividades.add(new Atividade(\"Nova Atividade\"));\n ArrayAdapter<Atividade> adapter =\n new ArrayAdapter<Atividade>(getContext(),\n android.R.layout.simple_spinner_item, atividades);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n atividade.setAdapter(adapter);\n return view;\n }" ]
[ "0.69251245", "0.6781905", "0.67093617", "0.6673698", "0.66282773", "0.6547743", "0.6547292", "0.6534585", "0.65123296", "0.6370756", "0.63326705", "0.62794495", "0.6175075", "0.615167", "0.61018836", "0.6059119", "0.6048769", "0.60367614", "0.5974004", "0.592761", "0.58973783", "0.5870116", "0.5811949", "0.576069", "0.574192", "0.5737706", "0.56946415", "0.5690397", "0.56888413", "0.56864196", "0.563536", "0.56315315", "0.5624913", "0.56235707", "0.56164414", "0.56119406", "0.5611867", "0.55955666", "0.5572899", "0.5569618", "0.5555719", "0.5522434", "0.5515883", "0.5514095", "0.55110645", "0.5493361", "0.5489505", "0.54746616", "0.547315", "0.5470287", "0.5469754", "0.5468699", "0.54681623", "0.54670435", "0.54657185", "0.54586583", "0.5440825", "0.543985", "0.5438421", "0.54275054", "0.5427422", "0.5420085", "0.5419613", "0.54184645", "0.5413231", "0.5411163", "0.54047966", "0.5400632", "0.5399408", "0.53981817", "0.5388315", "0.53871775", "0.5383939", "0.53811777", "0.5380452", "0.5379188", "0.53765017", "0.5374827", "0.53704", "0.53625673", "0.53599477", "0.53563005", "0.53474295", "0.53409505", "0.53325975", "0.5328962", "0.5328428", "0.5325358", "0.5323703", "0.53212833", "0.53212833", "0.5313626", "0.5312325", "0.5312099", "0.53096753", "0.53002495", "0.52991045", "0.5292873", "0.5290192", "0.5289991", "0.5288613" ]
0.0
-1
TODO: attempt authentication against a network service.
@Override protected String doInBackground(Void... params) { try { // Simulate network access. Log.i(TAG,mEmail); JSONObject cred = new JSONObject(); try { cred.put(NetworkUtilities.PARAM_USERNAME, mEmail); } catch (JSONException e) { Log.i(TAG,e.toString()); } try { cred.put(NetworkUtilities.PARAM_PASSWORD, mPassword); } catch (JSONException e) { e.printStackTrace(); } String responseString = NetworkUtilities.doPost(cred, NetworkUtilities.BASE_URL + "/login/"); Intent intent = new Intent(getApplicationContext(),MainActivity.class); JSONObject myObject = null; String responseStatus = null; try { myObject = new JSONObject(responseString); responseStatus = myObject.getString(Constants.RESPONSE_STATUS); } catch (JSONException e) { Log.i(TAG, e.toString()); e.printStackTrace(); } if(myObject!=null && responseStatus!=null){ if(responseStatus.equals(Constants.RESPONSE_OK.toString())){ try { String userId = myObject.getString(Constants.RESPONSE_MESSAGE); intent.putExtra(Constants.LOGGEDUSERID, userId); startActivity(intent); Log.i(TAG, userId); } catch (JSONException e) { Log.i(TAG, e.toString()); e.printStackTrace(); } } else{ //User or Password doesn't match .. Forgot password? // mAuthTask = null; // showProgress(false); mAuthTask = null; dialog.cancel(); Toast.makeText(context, "Failed to login!", Toast.LENGTH_LONG).show(); Log.i(TAG, "User or Password doesn't match .. Forgot password"); } } else{ //Send HttpBadRequest to the server } } catch (Exception ex) { Log.e(TAG, "UserLoginTaswattadk.doInBackground: failed to doPost"); Log.i(TAG, ex.toString()); return null; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}", "public interface IAuthService {\n AuthInfo getAuthentication(String username, String password);\n}", "public abstract boolean authenticate(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}", "void onNetworkCredentialsRequested();", "private void authenticate(String user, String pass) {\n }", "boolean authNeeded();", "public Object getService(String service) {\n try {\n Socket authServer = new Socket(AUTH_ADDRESS, AUTH_PORT); //Connect to authentication server.\n //Set up objects to read and write responses to and from them server.\n ObjectInputStream objIn = new ObjectInputStream(authServer.getInputStream());\n ObjectOutputStream objOut = new ObjectOutputStream(authServer.getOutputStream());\n //Challenge the server and verify it.\n PublicKey serverKey = AuctionSecurity.getPublicKey(\"Server\");\n System.out.print(\"Verifying server.... \");\n if (!AuctionSecurity.initiateChallenge(objIn, objOut, serverKey)) { //If we can't verify, then we exit.\n System.out.println(\"Signature of server does not match nonce challenge, invalid server connection.\");\n return null;\n }\n System.out.println(\"Server verified!\");\n //Identify ourselves with the server\n System.out.print(\"Authenticating credentials.... \");\n objOut.writeObject(this.name); //State who we are to the server\n AuctionSecurity.recieveChallenge(objIn, objOut, privateKey); //Await and deal with our challenge\n if (!objIn.readObject().equals(\"verified\")) { //Check servers result\n System.out.println(\"Server rejected verification of user.\");\n return null;\n }\n System.out.println(\"Credentials confirmed!\");\n objOut.writeObject(service); //Send our service request string.\n return getServiceObject((SealedObject[]) objIn.readObject()); //Retreive our service object the server is sending us.\n } catch (IOException ex) {\n System.out.println(\"Can't aquire service: \" + service + \" from authentication server.\");\n System.exit(1);\n } catch (ClassNotFoundException ex) {\n System.out.println(\"Service not found.\");\n }\n\n return null;\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "@Override\n public boolean authenticate() {\n try {\n if (conn != null) {\n return true;\n }\n conn = new Connection(configuration.getHost());\n conn.connect();\n //登陆linux\n boolean isAuthenticated = conn.authenticateWithPassword(configuration.getUsername(),\n configuration.getPassword());\n if (!isAuthenticated) {\n conn.close();\n conn = null;\n throw new UserOrPasswordErrorException(\"账号或密码错误!\");\n }\n return true;\n } catch (IOException e) {\n conn.close();\n conn = null;\n throw new HostCannotConnectException(\"无法连接到主机!\");\n }\n }", "@ClassVersion(\"$Id: Authenticator.java 16154 2012-07-14 16:34:05Z colin $\")\r\npublic interface Authenticator\r\n{\r\n\r\n /**\r\n * Checks whether the given credentials can be used to initiate a\r\n * new session on behalf of the client with the given context.\r\n *\r\n * @param context The context.\r\n * @param user The user name.\r\n * @param password The password.\r\n *\r\n * @return True if the given credentials are acceptable.\r\n *\r\n * @throws I18NException Thrown if the authenticator encounters an\r\n * error while checking the credentials.\r\n */\r\n\r\n boolean shouldAllow\r\n (StatelessClientContext context,\r\n String user,\r\n char[] password)\r\n throws I18NException;\r\n}", "private AuthenticationService() {}", "public User doAuthentication(String account, String password);", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "boolean authenticate(String userName, String password);", "@Override\n public void doWhenNetworkCame() {\n doLogin();\n }", "FirewallService firewall();", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "RequestResult loginRequest() throws Exception;", "public interface IAuthenticationService {\n public AuthenticationResponse login(String principal, String password);\n public void logout(String userId);\n public AuthenticationResponse renewToken(String principal, String token, String usId);\n}", "public interface ServerAuthenticatorInterface {\n public String signIn(final String email, final String password);\n}", "public interface IBillingServer extends Remote {\r\n\r\n\t/**\r\n\t * \r\n\t * @param username\r\n\t * @param password\r\n\t * @return null if user not authorized, access otherwise\r\n\t * @throws RemoteException\r\n\t */\r\n\tIBillingServerSecure login(String username, String password) throws RemoteException;\r\n}", "AuthenticationToken authenticate(String username, CharSequence password) throws Exception;", "private synchronized void doConnect() {\n try {\n String host = agent.getHost();\n int port = agent.getPort();\n log.fine(\"Connecting to server \" + host + ':' + port);\n socket = new Socket(host, port);\n input = socket.getInputStream();\n output = new OutputStreamWriter(socket.getOutputStream());\n disconnected = false;\n new Thread(this).start();\n\n // Automatically login! -> give an auth to the agent...\n TACMessage msg = new TACMessage(\"auth\");\n msg.setParameter(\"userName\", agent.getUser());\n msg.setParameter(\"userPW\", agent.getPassword());\n msg.setMessageReceiver(agent);\n sendMessage(msg);\n\n } catch (Exception e) {\n disconnected = true;\n log.log(Level.SEVERE, \"connection to server failed:\", e);\n socket = null;\n }\n }", "private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "public interface IAuthenticationSupport {\n void authenticate();\n}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }", "public void authenticate() {\n JSONObject jsonRequest = new JSONObject();\n try {\n jsonRequest.put(\"action\", \"authenticate\");\n jsonRequest.put(\"label\", \"label\");\n JSONObject dataObject = new JSONObject();\n dataObject.put(\"device_token\", CMAppGlobals.TOKEN);\n jsonRequest.put(\"data\", dataObject);\n\n if(CMAppGlobals.DEBUG) Logger.i(TAG, \":: AuthWsManager.authenticate : jsonRequest : \" + jsonRequest);\n\n // send JSON data\n WSManager.getInstance().con(mContext).sendJSONData(jsonRequest);\n\n\n } catch (JSONException e) {\n\n mContext.onWsFailure(e);\n }\n\n }", "public interface LoginService {\n E3Result userLogin(String username, String password);\n}", "public interface UserAuthenticationService {\n\n AuthenticationResult authenticate(String userName, String passwordHash);\n}", "@Override\n public Principal authenticate(String credentials, String remoteAddr, String httpMethod, StringBuilder errMsg) {\n return null;\n }", "public interface IServiceAppAuthenticationClient {\n\n\t/**\n\t * This method gets the <strong>App</strong> authenticated by the Service. It uses Kerberos Protocol\n\t * to achieve mutual authentication between the App and the Service \n\t * @param url \n\t * <code>String</code> url of the web service to be invoked to authenticate App Service Ticket\n\t * @param serviceTicket \n\t * <code>ServiceTicket</code> Kerberos Service Ticket required to access the service\n\t * @return\n\t * <code>AppSession</code> \n\t * @throws IOException\n\t * In case there are some errors encountered while retrieving information\n\t * @throws RestClientException\n\t * If the status of the response is not <strong>200</strong>. The server side error message and error \n\t * response code can be accessed using <code>getMessage</code> and <code>getErrorCode</code> methods respectively\n\t * @throws ResponseDecryptionException \n\t * If the Application was unable to decrypt the Response sent by the server\n\t */\n\tAppSession authenticateAppServiceTicket(String url,\n\t\t\tServiceTicket serviceTicket) throws IOException, RestClientException, ResponseDecryptionException;\n\n}", "protected static Service getService() throws AnaplanAPIException, UnknownAuthenticationException {\n if (service != null) {\n return service;\n }\n\n ConnectionProperties props = getConnectionProperties();\n service = DefaultServiceProvider.getService(props, Constants.X_ACONNECT_HEADER_KEY, Constants.X_ACONNECT_HEADER_VALUE);\n service.authenticate();\n return service;\n }", "public boolean authenticatorRequest(String authURL){\r\n\t\t\r\n\t\tboolean authOK = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t logger.finest(authURL);\r\n\t\t\t HttpURLConnection httpConnection = null;\r\n\t if(this.proxyHost.equalsIgnoreCase(\"\") || this.proxyPort.equalsIgnoreCase(\"\")){\r\n\t \t URL restServiceURL = new URL(authURL);\r\n\t \t httpConnection = (HttpURLConnection) restServiceURL.openConnection();\r\n\t } else{\r\n\t \t httpConnection = proxySetup(authURL);\r\n\t }\r\n\t httpConnection.setRequestMethod(\"GET\");\r\n\t \r\n\t if (httpConnection.getResponseCode() != 200) {\r\n\t \t logger.severe(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t throw new RuntimeException(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t }\r\n\t else{\r\n\t \t \tauthOK = true;\r\n\t \t \tString header = httpConnection.getHeaderFields().toString();\r\n\t \t \tthis.setjSessionId(header); \r\n\t \r\n\t \t \tString serverCookies = httpConnection.getHeaderField(\"Set-Cookie\");\r\n\t \t \tthis.setAuthHash(serverCookies);\r\n\t }\r\n\t \r\n\t logger.finest(\"Authentication successful: \" + httpConnection.getResponseCode() + \" - OK\");\t \t \t \t \t \r\n\t httpConnection.disconnect();\r\n\t\t} \r\n\t\tcatch (MalformedURLException e1) {\r\n\t e1.printStackTrace();\r\n\t logger.severe(\"Error: connection \" + e1.getMessage());\r\n\t } \r\n\t\tcatch(ConnectException e3){\r\n\t\t\tlogger.severe(\"Error:\tConnection Time out. Please relaunch the console app.\" + e3.getMessage());\r\n\t\t}\r\n\t\tcatch(UnknownHostException e){\r\n\t\t\tlogger.severe(\"Error:\tUnknown host. Please relaunch the console app.\" + e.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) {\r\n\t\t\tlogger.severe(\"Error:\t\" + e2.getMessage() + \"\\n was occured. Please contact the administrator.\");\r\n\t }\t\t\r\n\t\treturn authOK;\r\n\t}", "public interface LoginService {\n String login(String username, String pwd);\n}", "User authenticate(String username, String password);", "public abstract void login(String userName, String password) throws RemoteException;", "private Authentication tryToAuthenticateWithUsernameAndPassword(String username, String password) {\n\t\tUsernamePasswordAuthenticationToken requestAuthentication = new UsernamePasswordAuthenticationToken(username, password);\n\t\treturn tryToAuthenticate(requestAuthentication);\n \n\t}", "public interface SapFacade {\n public SapUser authenticate(SapUserCredentials credentials ) throws InvalidUserCredentials;\n}", "public interface IAuthenticationService extends IStatisticsProvider {\r\n\t/** Service's Name in {@link String} form */\r\n public static final String SERVICE_NAME = Constants.NAMESPACES.SERVICE_PREFIX + \"AuthenticationService\";\r\n\r\n /** Service's Name in {@link URI} form */\r\n public static final URI SERVICE_URI = Constants.valueFactory.createURI(SERVICE_NAME);\r\n\r\n /* Statistics object for this service\r\n public org.openanzo.services.stats.AuthenticationServiceStats getStatistics();\r\n */\r\n\t/**Constant for parameter password */\r\n\tpublic static final String PARAM_PASSWORD = \"password\";\r\n\t/**Constant for parameter userId */\r\n\tpublic static final String PARAM_USER_ID = \"userId\";\r\n\t/**authenticateUser operation name constant */\r\n public static final String AUTHENTICATE_USER = \"authenticateUser\";\r\n /**\r\n * Authenticate a User.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id the user is authenticating against.\r\n * @param password\r\n * The password for the id the user is authenticating against.\r\n * @return User's URI.\r\n * @throws AnzoException\r\n */\r\n public org.openanzo.services.AnzoPrincipal authenticateUser(IOperationContext context,String userId,String password) throws AnzoException;\r\n\r\n /**\r\n * Authenticate a User.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id the user is authenticating against.\r\n * @param password\r\n * The password for the id the user is authenticating against.\r\n * @param output\r\n * {@link java.io.Writer} onto which output is written\r\n * @param resultFormat\r\n * format of result data\r\n * @throws AnzoException\r\n */\r\n public void authenticateUser(IOperationContext context,String userId,String password, java.io.Writer output, String resultFormat) throws AnzoException;\r\n\t/**getUserPrincipal operation name constant */\r\n public static final String GET_USER_PRINCIPAL = \"getUserPrincipal\";\r\n /**\r\n * Get a User's URI.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id of the user for which to retrieve a URI.\r\n * @return URI.\r\n * @throws AnzoException\r\n */\r\n public org.openanzo.services.AnzoPrincipal getUserPrincipal(IOperationContext context,String userId) throws AnzoException;\r\n\r\n /**\r\n * Get a User's URI.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id of the user for which to retrieve a URI.\r\n * @param output\r\n * {@link java.io.Writer} onto which output is written\r\n * @param resultFormat\r\n * format of result data\r\n * @throws AnzoException\r\n */\r\n public void getUserPrincipal(IOperationContext context,String userId, java.io.Writer output, String resultFormat) throws AnzoException;\r\n}", "private UserSession handleBasicAuthentication(String credentials, HttpServletRequest request) {\n\t\tString userPass = Base64Decoder.decode(credentials);\n\n\t\t// The decoded string is in the form\n\t\t// \"userID:password\".\n\t\tint p = userPass.indexOf(\":\");\n\t\tif (p != -1) {\n\t\t\tString userID = userPass.substring(0, p);\n\t\t\tString password = userPass.substring(p + 1);\n\t\t\t\n\t\t\t// Validate user ID and password\n\t\t\t// and set valid true if valid.\n\t\t\t// In this example, we simply check\n\t\t\t// that neither field is blank\n\t\t\tIdentity identity = WebDAVAuthManager.authenticate(userID, password);\n\t\t\tif (identity != null) {\n\t\t\t\tUserSession usess = UserSession.getUserSession(request);\n\t\t\t\tsynchronized(usess) {\n\t\t\t\t\t//double check to prevent severals concurrent login\n\t\t\t\t\tif(usess.isAuthenticated()) {\n\t\t\t\t\t\treturn usess;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tusess.signOffAndClear();\n\t\t\t\t\tusess.setIdentity(identity);\n\t\t\t\t\tUserDeletionManager.getInstance().setIdentityAsActiv(identity);\n\t\t\t\t\t// set the roles (admin, author, guest)\n\t\t\t\t\tRoles roles = BaseSecurityManager.getInstance().getRoles(identity);\n\t\t\t\t\tusess.setRoles(roles);\n\t\t\t\t\t// set authprovider\n\t\t\t\t\t//usess.getIdentityEnvironment().setAuthProvider(OLATAuthenticationController.PROVIDER_OLAT);\n\t\t\t\t\n\t\t\t\t\t// set session info\n\t\t\t\t\tSessionInfo sinfo = new SessionInfo(identity.getName(), request.getSession());\n\t\t\t\t\tUser usr = identity.getUser();\n\t\t\t\t\tsinfo.setFirstname(usr.getProperty(UserConstants.FIRSTNAME, null));\n\t\t\t\t\tsinfo.setLastname(usr.getProperty(UserConstants.LASTNAME, null));\n\t\t\t\t\tsinfo.setFromIP(request.getRemoteAddr());\n\t\t\t\t\tsinfo.setFromFQN(request.getRemoteAddr());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress[] iaddr = InetAddress.getAllByName(request.getRemoteAddr());\n\t\t\t\t\t\tif (iaddr.length > 0) sinfo.setFromFQN(iaddr[0].getHostName());\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t // ok, already set IP as FQDN\n\t\t\t\t\t}\n\t\t\t\t\tsinfo.setAuthProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());\n\t\t\t\t\tsinfo.setUserAgent(request.getHeader(\"User-Agent\"));\n\t\t\t\t\tsinfo.setSecure(request.isSecure());\n\t\t\t\t\tsinfo.setWebDAV(true);\n\t\t\t\t\tsinfo.setWebModeFromUreq(null);\n\t\t\t\t\t// set session info for this session\n\t\t\t\t\tusess.setSessionInfo(sinfo);\n\t\t\t\t\t//\n\t\t\t\t\tusess.signOn();\n\t\t\t\t\treturn usess;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public interface IAuthenticationService {\n boolean isUserAuthenticated(String username, String password);\n void registerUser(String username, String password);\n}", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "private void authenticate(NestToken token) {\n mNest.authWithToken(token, new NestListener.AuthListener() {\n\n @Override\n public void onAuthSuccess() {\n Log.v(TAG, \"Authentication succeeded.\");\n fetchData();\n }\n\n @Override\n public void onAuthFailure(NestException exception) {\n Log.e(TAG, \"Authentication failed with error: \" + exception.getMessage());\n Auth.saveAuthToken(mActivity, null);\n mNest.launchAuthFlow(mActivity, AUTH_TOKEN_REQUEST_CODE);\n }\n\n @Override\n public void onAuthRevoked() {\n Log.e(TAG, \"Auth token was revoked!\");\n Auth.saveAuthToken(mActivity, null);\n mNest.launchAuthFlow(mActivity, AUTH_TOKEN_REQUEST_CODE);\n }\n });\n }", "public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;", "@Override\npublic boolean supports(Class<?> authentication) {\n return true;\n}", "private boolean _credInit() throws FileNotFoundException, IOException \n {\n\n String user = (String) this._argTable.get(CMD.USER);\n String svgp = (String) this._argTable.get(CMD.SERVERGROUP);\n String password = null;\n\n //get the server group first\n if (svgp == null) \n {\n while (svgp == null)\n {\n //if servergroup is null, query.If empty, set to null (which is default) \n System.out.print(\"Server group>> \");\n svgp = this._readTTYLine();\n //System.out.println(\"\");\n svgp = svgp.trim();\n if (svgp.equals(\"\"))\n svgp = null;\n \n if (svgp == null)\n {\n System.out.println(\"Server group must be specified. Enter 'abort' to quit.\");\n }\n else if (svgp.equalsIgnoreCase(\"abort\") || svgp.equalsIgnoreCase(\"exit\") ||\n svgp.equalsIgnoreCase(\"quit\") || svgp.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n }\n }\n else\n {\n System.out.println(\"Server group>> \"+svgp); \n }\n \n //---------------------------\n\n //request the authentication method from the servergroup\n AuthenticationType authType = null;\n try {\n authType = getAuthenticationType(svgp);\n } catch (SessionException sesEx) {\n \n if (sesEx.getErrno() == Constants.CONN_FAILED)\n {\n this._logger.error(\"Unable to connect to server group '\" +\n svgp+\"'.\\nPlease check network status and \"+\n \"FEI domain file configuration.\");\n \n// this._logger.severe(\"Unable to authenticate for group '\"+svgp+\n// \"' due to connection failure. Possible network issue.\");\n }\n else\n {\n this._logger.severe(\"Authentication Error! Unable to query server \"+\n \"authentication method for servergroup '\"+svgp + \"'. (\"+\n sesEx.getErrno()+\")\");\n }\n _logger.trace(null,sesEx);\n return false;\n }\n \n final String pwdPrompt = PasswordUtil.getPrompt(authType);\n\n //---------------------------\n \n if (user == null) \n {\n System.out.print(\"User name>> \");\n user = this._readTTYLine();\n user = user.trim();\n } \n else\n {\n System.out.print(\"User name>> \"+user);\n }\n \n boolean ok = false; \n while (!ok)\n { \n password = ConsolePassword.getPassword(pwdPrompt+\">> \");\n //System.out.println(\"\");\n password = password.trim();\n if (!password.equals(\"\"))\n ok = true; \n }\n \n //System.out.println(\"\");\n //password = password.trim();\n \n if (password.equalsIgnoreCase(\"abort\") || password.equalsIgnoreCase(\"exit\") ||\n password.equalsIgnoreCase(\"quit\") || password.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n \n \n //create the encrypter for passwords\n String encrypted = null;\n try {\n encrypted = this._encrypter.encrypt(password);\n } catch (Exception ex) {\n this._logger.severe(\"Password encrypt Error! Could not write login credentials.\");\n _logger.trace(null,ex);\n return false;\n }\n \n\n \n UserToken userToken = null;\n String authToken = encrypted;\n try {\n userToken = getAuthenticationToken(svgp, user, encrypted);\n } catch (SessionException sesEx) {\n this._logger.severe(\"Authentication Error! Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n _logger.trace(null,sesEx);\n return false;\n }\n \n \n //user was not authenticated\n if (userToken == null || !userToken.isValid())\n {\n this._logger.severe(\"Authentication Error: Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n return false;\n }\n \n this._loginReader.setUsername(svgp, user);\n this._loginReader.setPassword(svgp, userToken.getToken());\n this._loginReader.setExpiry( svgp, userToken.getExpiry());\n \n \n boolean success = true;\n try {\n this._loginReader.commit();\n } catch (IOException ioEx) {\n this._logger.severe(\"Login File Error! Could not write login credentials.\");\n _logger.trace(null, ioEx);\n success = false;\n ++this._errorCount;\n }\n return success;\n \n }", "@Test\n public void AuthenticationShouldFailWithValidIPUser() throws Exception {\n kidozen = new KZApplication(AppSettings.KZ_TENANT, AppSettings.KZ_APP, AppSettings.KZ_KEY, false);\n final CountDownLatch alcd = new CountDownLatch(1);\n kidozen.Authenticate(AppSettings.KZ_USER, AppSettings.KZ_PASS, \"ups!\", new ServiceEventListener() {\n @Override\n public void onFinish(ServiceEvent e) {\n alcd.countDown();\n assertThat(e.StatusCode, equalTo(HttpStatus.SC_UNAUTHORIZED));\n assertTrue(e.Body.toLowerCase().contains(\"unauthorized\".toLowerCase()));\n }\n });\n assertEquals(false, kidozen.UserIsAuthenticated);\n alcd.await(TEST_TIMEOUT_IN_MINUTES, TimeUnit.MINUTES);\n }", "public void auth(View view) {\n\n // get UI inputs\n login = (EditText) findViewById(R.id.login);\n password = (EditText) findViewById(R.id.password);\n result = (TextView)findViewById(R.id.result);\n\n // change inputs to strings\n txtLogin = login.getText().toString();\n txtPass = password.getText().toString();\n\n new Thread(){\n @Override\n public void run() { // thread to not disturb the UI thread\n\n URL url = null;\n try {\n url = new URL(\"https://httpbin.org/basic-auth/bob/sympa\");\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n // adding auth headers\n String userAndPassword = txtLogin+\":\"+txtPass; // text values from text fields\n// Log.i(\"USR\", txtLogin);\n// Log.i(\"PWD\", txtPass);\n String basicAuth = \"Basic \"+ Base64.encodeToString(userAndPassword.getBytes(), Base64.NO_WRAP);\n urlConnection.setRequestProperty(\"Authorization\", basicAuth);\n\n try {\n // read the returned HTML\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n String s = readStream(in);\n Log.i(\"JFL\", s);\n\n jsonObject = new JSONObject(s); // storing the returned html in JSON form for easy access\n\n boolean res = jsonObject.getBoolean(\"authenticated\");\n// String usr = jsonObject.getString(\"user\");\n runOnUiThread(new Runnable() { // safe way to access the UI thread\n @Override\n public void run() {\n result.setText(\"\"+res);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }.start();\n\n }", "int authenticateUser(IDAOSession session, String userName, String password);", "public abstract boolean checkCredentials (String username, String password);", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mEMSIpview.setError(null);\n // Store values at the time of the login attempt.\n final String emsIP = mEMSIpview.getText().toString();\n final String email = mEmailView.getText().toString();\n final String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(emsIP)) {\n mEMSIpview.setError(\"Please enter an ems ip\");\n focusView = mEMSIpview;\n cancel = true;\n }\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n performNetworkOperations.doLogin(emsIP, email, password);\n// Toast.makeText(this,token,Toast.LENGTH_SHORT).show();\n// List<String> nodeData = performNetworkOperations.getNodesList(emsIP,token);\n\n }\n }", "public interface AuthService {\n void init();\n boolean login(HttpServletRequest request, String user, String password);\n\n void logout(HttpServletRequest request);\n\n boolean register(User user);\n\n\n User checkLogin(String username, String password);\n}", "UserToken login(String username, String password) throws WorkspaceException;", "public boolean connect() {\n\t\tString name = getUserName();\n\t\tfor (int i = 0; i < name.length(); i++) {\n\t\t\tchar ch = name.charAt(i);\n\t\t\tif (!Character.isLetter(ch) && !Character.isDigit(ch)) {\n\t\t\t\tthrow new IllegalNameException(\"Cannot log in to the server using the name \" + name);\n\t\t\t}\n\t\t}\n\t\tboolean retVal = login();\n\t\tMessageScanner rms = MessageScanner.getInstance();\n\t\taddMessageListener(rms);\n\t\tmessageScanner = rms;\n\t\tif (!userName.startsWith(\"AGENCY\") && !userName.startsWith(\"ADMIN\")) {\n\t\t\tsetUserName(getUserName().substring(1, getUserName().length()));\n\t\t}\n\n\t\treturn retVal;\n\t}", "public boolean auth() throws IOException {\r\n \treturn auth(false);\r\n }", "private boolean requestUserLogin() {\n\t\tServerAPITask userTasks = new ServerAPITask();\n\t\tString uName = usernameField.getText().toString();\n\t\tuserTasks.setAPIRequest(\"http://riptide.alexkersten.com:3333/stoneapi/account/lookup/\" + uName);\n\t\ttry {\n\t\t\tString response = userTasks.execute(\"\").get();\n\t\t\tLog.e(\"Response String\", response);\n\t\t\t\n\t\t\tjsonResponse = new JSONArray(response);\n\t\t\tif (jsonResponse.length() < 1) {\n\t\t\t\tToast.makeText(this.getContext(), \"The username does not exist\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJSONObject jsObj = jsonResponse.getJSONObject(0);\n\t\t\t\tif (jsObj == null) {\n\t\t\t\t\tToast.makeText(this.getContext(), \"An error occurred while retrieving user\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString _user_id = jsObj.getString(\"_id\");\n\t\t\t\t\tPreferencesUtil.saveToPrefs(userContext, PreferencesUtil.PREFS_LOGIN_USER_ID_KEY, _user_id);\n\t\t\t\t\t\n\t\t\t\t\tPreferencesUtil.saveToPrefs(userContext, PreferencesUtil.PREFS_LOGIN_USERNAME_KEY, uName);\n\t\t\t\t\t((Activity) userContext).getActionBar().setTitle(\"Stone - \" + uName);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\treturn true;\n\t}", "private void attemptToConnect() {\n LOG.warn(\"Attempting to connect....\");\n \n if (// No connection configuration\n getConnectionConfiguration() == null &&\n (getServerHostname() == null || getServerPort() == 0 ||\n getServiceName() == null || getFromAddress() == null ||\n getPassword() == null || getResource() == null)\n \n ||\n \n // Already logged in.\n getConnection() != null && getConnection().isAuthenticated()) {\n \n return;\n }\n \n try {\n if (getConnectionConfiguration() == null) {\n setConnectionConfiguration(new ConnectionConfiguration(\n getServerHostname(), getServerPort(), getServiceName()));\n }\n\n connect();\n }\n catch (Throwable t) {\n LOG.error(t);\n }\n }", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "public boolean USSDAuthentication() {\n return true;\n }", "public interface AuthManager\n{\n void checkAuthAnnounce(Id<Node> nodeId, DynamicAnnouncement announcement, HttpServletRequest request);\n\n void checkAuthDelete(Id<Node> nodeId, HttpServletRequest request);\n\n void checkAuthReplicate(HttpServletRequest request);\n}", "@Test\r\n void testAuthenticatedImplementation() {\r\n bindAuthenticatedUser();\r\n testService.authenticatedImplementation();\r\n }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "public void authenticate(LoginCredentials credentials) throws LoginException;", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "@Test\n public void authRequestByPassword() throws Exception {\n String testName = getTestName();\n \n String externalPassword = \"test456\";\n String extAcctLocalPart = testName;\n String extAcctName = createExternalAcctEntry(extAcctLocalPart, externalPassword, null);\n \n Map<String, Object> zmailDomainAttrs = commonZmailDomainAttrs();\n // setup auto prov\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(uid=%u)\");\n // setup external LDAP auth\n zmailDomainAttrs.put(Provisioning.A_zmailAuthMech, AuthMech.ldap.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapURL, \"ldap://localhost:389\");\n zmailDomainAttrs.put(Provisioning.A_zmailAuthLdapBindDn, \"uid=%u,ou=people,\" + extDomainDn);\n Domain zmailDomain = createZmailDomain(testName, zmailDomainAttrs);\n \n String loginName = extAcctLocalPart + \"@\" + zmailDomain.getName();\n \n // make the soap request\n SoapHttpTransport transport = new SoapHttpTransport(TestUtil.getSoapUrl());\n \n Element request = Element.create(transport.getRequestProtocol(), AccountConstants.AUTH_REQUEST);\n request.addElement(AccountConstants.E_ACCOUNT).addAttribute(AccountConstants.A_BY, AccountBy.name.name()).setText(loginName);\n request.addElement(AccountConstants.E_PASSWORD).setText(externalPassword);\n \n Element response = transport.invoke(request);\n \n String encodedAuthToken = response.getElement(AccountConstants.E_AUTH_TOKEN).getText();\n assertNotNull(encodedAuthToken);\n String acctId = getAuthTokenAcctId(encodedAuthToken);\n Account acct = prov.get(AccountBy.id, acctId);\n verifyAcctAutoProvisioned(acct, loginName.toLowerCase());\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "public interface SingleAccessPoint {\t\n\t\n\t/**\n\t * This method returns some kind of message to the client, which could be anything\n\t * and needs to be implemented for the concrete accesspoint\n\t */\n\tpublic void returnMessage(String message);\n\t\n\t/**\n\t * \n\t * @param message Message to display\n\t * @return AuthenticationToken that needs to be compatible with backend.\n\t */\n\tpublic AuthenticationToken getAuthentication(String message);\n\t\n\n\t\t\n\t\n\t\n}", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "@Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(\"https://httpbin.org/basic-auth/bob/sympa\");\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n // adding auth headers\n String userAndPassword = txtLogin+\":\"+txtPass; // text values from text fields\n// Log.i(\"USR\", txtLogin);\n// Log.i(\"PWD\", txtPass);\n String basicAuth = \"Basic \"+ Base64.encodeToString(userAndPassword.getBytes(), Base64.NO_WRAP);\n urlConnection.setRequestProperty(\"Authorization\", basicAuth);\n\n try {\n // read the returned HTML\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n String s = readStream(in);\n Log.i(\"JFL\", s);\n\n jsonObject = new JSONObject(s); // storing the returned html in JSON form for easy access\n\n boolean res = jsonObject.getBoolean(\"authenticated\");\n// String usr = jsonObject.getString(\"user\");\n runOnUiThread(new Runnable() { // safe way to access the UI thread\n @Override\n public void run() {\n result.setText(\"\"+res);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void TC_04_Authentication_Alert() {\n\n\t\tdriver.get(\"http://admin:admin@the-internet.herokuapp.com/basic_auth\");\n\t}", "private void debugAuthentcation() {\n\n\t\t/*\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: serviceName: \" +\n\t\t * serviceName + \", baseUrl: \" + baseUrl + \" username: \" + username +\n\t\t * \" password: \" + password);\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: service name: \" +\n\t\t * serviceName + \", hardcodedBaseUrl: \" + hardcodedBaseUrl +\n\t\t * \" hardcodedUsername: \" + hardcodedUsername + \" hardcodedPassword: \" +\n\t\t * hardcodedPassword);\n\t\t */\n\t}", "public interface IIdentityService {\n boolean isAuthenticated();\n\n boolean login(String identity, String token, boolean storeCredentials, boolean rememberMe);\n\n boolean tryLoginWithStoredCredentials();\n\n String getIdentity();\n\n String getToken();\n\n Profile getProfile();\n\n TrackActivity getTrackActivity();\n\n boolean isCredentialsStored();\n\n void logOff();\n}", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public interface HttpAdapter\n{\n /**\n * <P>Specify the realm that this authenticator is authenticating for. \n * \n * <P>This value should be well-known, very stable, and preferably\n * expressed in some \"canonical\" form.\n * \n * <P>As this value is a factor in authentication cryptography, any change\n * to it may invalidate passwords in the realm stored as part of digests.\n * \n */\n void setRealm(String realm);\n \n /**\n * Read authorization info from the client\n * \n * @param request The HttpServletRequest to read\n * @return An array of Credentials read from the client\n * @throws IOException\n * @throws ServletException\n */\n Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;\n \n /**\n * Challenge the client to provide authorization info\n * \n * @param response The HttpServletResponse to write\n * @throws IOException\n * @throws ServletException\n */\n void writeChallenge(HttpServletResponse response)\n throws IOException,ServletException;\n}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "@Test\n public void good_login() throws UnirestException {\n login();\n }", "@Test\n public void doRequestURL() throws IOException, NoSuchAlgorithmException, KeyManagementException {\n doRequest(\"https://login.cloud.huawei.com/oauth2/v2/token\");\n\n\n //doRequestWithOutHttps(\"https://124.74.46.118:7012/business/service\");\n //doRequestWithOutHttpsPool(\"https://124.74.46.118:7012/business/service\");\n }", "private void login(String username,String password){\n\n }", "@Test\n public void testWebAuthnIDLessWithNonResidentCredentialLogin() throws IOException {\n\n configureUser(username, false, true, true);\n initializeAuthenticator(false, true, true, true);\n setWebAuthnRealmSettings(false, false, false, true);\n\n // Trigger webauthn-passwordless (non resident key setup)\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String credentialId = usernamePasswordAuthWithAuthSetup(username, true, false);\n\n setUpIDLessOnlyFlow(\"idless-only-flow\");\n idlessAuthentication(username, credentialId, false, false);\n\n }", "@Override\n\tpublic void login(String ip, String pass) {\n\t\tif(network == null || !pass.equals(network.password)) { //if loc net not defined OR pw differ from current loc net pw:\n\t\t\tnetwork = new Network();\t\t\t\t\t\t\t\t\t//create a new loc net with given password. \n\t\t\tnetwork.setPassword(pass);;\n\t\t}\n\t\tif(!ip.equals(\"\"))\n\t\t\tnetwork.connect(ip);\t\t\t\t\t\t\t\t\t//try and connect to ip given.\n\t}", "public interface Authentication extends Component {\n /**\n * Given an incoming HTTP request, determine who the user is and create a UserPermissions object with that\n * information. If the user cannot be identified and/or authenticated, don't set those attributes and throw an\n * exception. Otherwise return a UserPermissions object.\n */\n UserPermissions authenticate (Request request);\n}", "@Local\npublic interface IDistributedServiceAuthenticationService {\n boolean isValidToken(String token);\n public String getToken(Long userId) throws InternalServerErrorException, UnauthorizedException;\n UserDTO login(String username, String password) throws InternalServerErrorException, UnauthorizedException;\n UserDTO loginByToken(String token) throws UnauthorizedException, InternalServerErrorException;\n}", "public boolean authenticate(String s) {\r\n // TODO - implement User.authenticate\r\n throw new UnsupportedOperationException();\r\n }", "@Override\n\tprotected void service(HttpServletRequest request, HttpServletResponse response)\n\t\tthrows ServletException, IOException {\n\t\tif ((new AuthenticatedUser(request,response)).unauthenticated())\n\t\t\treturn;\n\t\tsuper.service(request, response);\n\t}", "protected void login() {\n\t\t\r\n\t}", "@Override\n public void authenticate(URL url, AuthenticatedURL.Token token)\n throws IOException, AuthenticationException {\n if (!token.isSet()) {\n this.url = url;\n base64 = new Base64(0);\n\n conn = openConnection(url);\n conn.setRequestMethod(AUTH_HTTP_METHOD);\n conn.connect();\n if (isNegotiate()) {\n doSpnegoSequence(token);\n }\n else {\n getFallBackAuthenticator().authenticate(url, token);\n }\n }\n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "EmployeeMaster authenticateUser(int employeeId, String password);", "private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }", "public boolean tryLogin(auctionsystemInterface ai) throws RemoteException\n {\n//\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please enter username: \");\n curBuyerName = sc.next();\n\n System.out.println(\"Please enter password: \");\n curBuyerPas = sc.next();\n\n try {\n boolean succesful = ai.login(curBuyerName,curBuyerPas);\n\n if(succesful)\n {\n System.out.println(\"You have successfully logged in \" + curBuyerName);\n return true;\n }\n else\n {\n System.out.println(\"Login failed.\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "private int checkAuthentication( SecureDirectory secureDirectory ) throws ServerException {\r\n\r\n\t\tif ( secureDirectory == null )\r\n\t\t\treturn NOT_SECURE_DIR;\r\n\r\n\t\tif ( !request.getHeaderFields().containsKey( HeaderFields.AUTHORIZATION ) )\r\n\t\t\treturn NEED_AUTHENTICATE;\r\n\r\n\t\tString auth = request.getHeaderFields().get( HeaderFields.AUTHORIZATION );\r\n\t\tString[] tokens = auth.split( \" \", 2 );\r\n\t\tif ( authenticate( secureDirectory, tokens[0], tokens[1] ) )\r\n\t\t\treturn AUTHENTICATED;\r\n\r\n\t\t// Password or username not correct\r\n\t\tthrow new ServerException( ResponseTable.FORBIDDEN );\r\n\t}", "AuthenticInfo doAuthentic(AuthorToken token) throws KeeperException;", "@Test\n public void testWebAuthnIDLessAndWebAuthnAndWebAuthnPasswordlessLogin() throws IOException {\n\n initializeAuthenticator(true, true, true, true);\n setWebAuthnRealmSettings(false, false, true, true);\n\n // Trigger webauthn-passwordless (resident key) setup\n configureUser(username, false, true, true);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnPasswordlessCredId = usernamePasswordAuthWithAuthSetup(username, true, true);\n\n // Trigger webauthn (non resident key) setup\n configureUser(username, true, false, false);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnCredId = usernamePasswordAuthWithAuthSetup(username, false, false);\n\n setUpIDLessAndWebAuthnAndPasswordlessFlow(\"webauthn-webauthnpasswordless-idless\");\n\n // Check tryAnotherWay link on first step page\n checkTryAnotherWay();\n // UsernamePasswordForm + WebAuthn\n usernamePasswordAndWebAuthnAuthentication(username, webAuthnCredId);\n // UsernameForm + WebAuthnPasswordless\n usernameAndWebAuthnPasswordlessAuthentication(username, webAuthnPasswordlessCredId);\n // WebAuthnIDLess\n idlessAuthentication(username, webAuthnPasswordlessCredId, true, true);\n\n }", "private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }", "public void authentication() throws AuthorizationException {\n\t\tclient = new RennClient(API_KEY, SECRET_KEY);\n\t\tclient.authorizeWithClientCredentials();\n\t}", "private void connectAndLogonIfRequired() {\n\t\tloadFtpConfiguration();\n\t\ttry{\n\t\t\tif (!client.isConnected()){\n\t\t\t\t\n\t\t\t\tprintConsole(\"Connecting \"+ HOST);\n\t\t\t\tprintConsole(\"Port \"+ PORT);\n\t\n\t\t\t\tclient.setRemoteHost(HOST);\n\t\t\t\tclient.setRemotePort(PORT);\n\t\t\t\t\n\t\t\t\t//Encoding\n\t\t\t\tclient.getAdvancedSettings().setControlEncoding(ENCODING);\n\t\t\t\t\n\t\t\t\t//Default mode in AndFTP\n\t\t\t\t//Passive mode\n\t\t\t\tclient.getAdvancedFTPSettings().setConnectMode(FTPConnectMode.PASV);\n\t\t\t\tprintConsole(\"Added passive mode\");\n\t\t\t}\n\n\t\t\tif (!client.isConnected()){\n\t\t\t\tprintConsole(\"User: \"+USERNAME);\n\t\t\t\tprintConsole(\"Pass: HIDDEN\");\n\t\t\t\t\n\t\t\t\tclient.setUserName(USERNAME);\n\t\t\t\tclient.setPassword(PASSWORD); \t\t\t\t\n\t\t\t\t\n\t\t\t\tclient.connect();\n\t\t\t\tprintConsole(\"STATUS: Authenticated\");\t\t\t\t\t\t\t\t\n\t\t\t}\n\n\t\t} catch (IllegalStateException e) {\n\t\t\tprintExceptionConsole(e);\t\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tprintExceptionConsole(e);\t\t\t\t\t\n\t\t} catch (FTPException e) {\n\t\t\tprintExceptionConsole(e);\t\t\t\t\t\n\t\t}\t\t\n\t}" ]
[ "0.65749705", "0.61564034", "0.6140906", "0.61263216", "0.6100262", "0.6015151", "0.60053974", "0.5996575", "0.597383", "0.5954533", "0.5926233", "0.5917396", "0.5894114", "0.5877472", "0.5853691", "0.5823761", "0.5820193", "0.5791372", "0.5777109", "0.57251215", "0.5710182", "0.5707368", "0.57060695", "0.56963515", "0.56942993", "0.5685533", "0.5685189", "0.5668", "0.5649411", "0.5647908", "0.5642359", "0.5641424", "0.5634716", "0.56149733", "0.5613295", "0.56002206", "0.55968505", "0.55922216", "0.5586666", "0.55850154", "0.55818415", "0.5567021", "0.55493975", "0.5547249", "0.5540509", "0.5534648", "0.5526855", "0.5525045", "0.5524651", "0.5515242", "0.549799", "0.5496598", "0.54938644", "0.54917437", "0.5481792", "0.5481036", "0.54651123", "0.54649657", "0.5464921", "0.5464581", "0.5460561", "0.5458251", "0.5456522", "0.5453962", "0.54476243", "0.54415196", "0.54404587", "0.54315394", "0.5428763", "0.5414041", "0.5412041", "0.54115427", "0.540679", "0.54064476", "0.5397412", "0.5393532", "0.5391735", "0.53851885", "0.53846633", "0.5382277", "0.53728676", "0.53698486", "0.5366186", "0.53623384", "0.5361241", "0.53602576", "0.5359798", "0.5356109", "0.5355403", "0.5355136", "0.5351844", "0.5345944", "0.5344498", "0.5344014", "0.5341367", "0.5340343", "0.53357893", "0.5334389", "0.53323025", "0.5327727", "0.5324707" ]
0.0
-1
Create Query String From Form Parameters
@Override public String digestParams(RestInvocation restInvocation) { Params params = Params.of(); restInvocation.getParamsMap().get(FormParam.class).asHttpHeaders().entrySet().stream() .filter(e -> !e.getKey().equalsIgnoreCase("signature")) .forEach(e -> params.add(e.getKey(), e.getValue())); // Parse Query String byte[] queryString = params.asQueryString().trim().getBytes(UTF8); // Create And Return Signature return hex(getMac().doFinal(queryString)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}", "public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }", "public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }", "java.lang.String getQuery();", "java.lang.String getQuery();", "private String getQuery(List<NameValuePair> params) throws UnsupportedEncodingException\n {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n\n for (NameValuePair pair : params)\n {\n if (first)\n first = false;\n else\n result.append(\"&\");\n\n result.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n }\n\n return result.toString();\n }", "private String getQuery(ArrayList<NameValuePair> params) throws Exception\n\t{\n\t StringBuilder keyvalpair = new StringBuilder();\n\t boolean firstparam = true;\n\t for (NameValuePair pair : params)\n\t {\n\t if (!firstparam) {\n\t \tkeyvalpair.append(\"&\");\n\t }\n\t else {\n\t firstparam = false;\n\t }\n\t keyvalpair.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n\t keyvalpair.append(\"=\");\n\t keyvalpair.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n\t }\n\n\t return keyvalpair.toString();\n\t}", "private String generateQueryString(Map<String, String> args) {\n StringBuilder url = new StringBuilder();\n\n // Create the query string (?foo=bar&key1=val1\n url.append(\"?\");\n for (Iterator<Map.Entry<String, String>> it = args.entrySet().iterator(); it.hasNext(); ) {\n Map.Entry<String, String> entry = it.next();\n\n url.append(urlEncode(entry.getKey()));\n url.append(\"=\");\n url.append(urlEncode(entry.getValue()));\n if (it.hasNext()) {\n // More parameters are coming, add a separator\n url.append(\"&\");\n }\n }\n\n return url.toString();\n }", "public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}", "String getQueryString ();", "public static String buildQueryString(Map<String, String> vnp_Params) {\n\t\tList fieldNames = new ArrayList(vnp_Params.keySet());\n\t\tCollections.sort(fieldNames);\n\t\tStringBuilder hashData = new StringBuilder();\n\t\tStringBuilder query = new StringBuilder();\n\n\t\tIterator itr = fieldNames.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString fieldName = (String) itr.next();\n\t\t\tString fieldValue = (String) vnp_Params.get(fieldName);\n\t\t\tif ((fieldValue != null) && (fieldValue.length() > 0)) {\n\t\t\t\t// Build hash data\n\t\t\t\thashData.append(fieldName);\n\t\t\t\thashData.append('=');\n\t\t\t\thashData.append(fieldValue);\n\t\t\t\ttry {\n\t\t\t\t\t// Build query\n\t\t\t\t\tquery.append(URLEncoder.encode(fieldName, StandardCharsets.US_ASCII.toString()));\n\t\t\t\t\tquery.append('=');\n\t\t\t\t\tquery.append(URLEncoder.encode(fieldValue, StandardCharsets.US_ASCII.toString()));\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tif (itr.hasNext()) {\n\t\t\t\t\tquery.append('&');\n\t\t\t\t\thashData.append('&');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tString queryUrl = query.toString();\n\t\tString vnp_SecureHash = Config.Sha256(Config.vnp_HashSecret + hashData.toString());\n\n\t\tqueryUrl += \"&vnp_SecureHashType=SHA256&vnp_SecureHash=\" + vnp_SecureHash;\n\n\t\treturn Config.vnp_PayUrl + \"?\" + queryUrl;\n\t}", "String getQuery();", "public static String getQuery(List<Pair<String, String>> params) throws UnsupportedEncodingException {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n for (Pair pair : params) {\n if (first) {\n first = false;\n } else {\n result.append(\"&\");\n }\n result.append(URLEncoder.encode((String)pair.first, \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode((String)pair.second, \"UTF-8\"));\n }\n\n return result.toString();\n }", "public static String queryStringFromParameters(HttpServletRequest request)\n {\n StringBuilder queryString = new StringBuilder();\n boolean first = true;\n Enumeration<?> enumeration = request.getParameterNames();\n while (enumeration.hasMoreElements())\n {\n String name = (String) enumeration.nextElement();\n\n for (String value : request.getParameterValues(name))\n {\n if (!first)\n {\n queryString.append('&');\n }\n else\n {\n first = false;\n }\n\n queryString.append(name).append('=').append(EncodeUtils.urlEncode(value));\n }\n }\n\n return queryString.toString();\n }", "private String queryBuilder(HashMap<String, String> data) throws UnsupportedEncodingException {\n if (data.isEmpty())\n return \"\";\n StringBuilder dataAsString = new StringBuilder();\n for (Entry<String, String> entry : data.entrySet()) {\n dataAsString.append(\"&\");\n dataAsString.append(URLEncoder.encode(entry.getKey(), \"UTF-8\"));\n dataAsString.append(\"=\");\n dataAsString.append(URLEncoder.encode(entry.getValue(), \"UTF-8\"));\n }\n return dataAsString.toString();\n }", "public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }", "private String buildUrlQueryString(final Collection<String> parameters) {\n\n // List to hold the encoded parameters\n final List<String> encodedParameters = new ArrayList<String>();\n\n for (final String parameter : parameters) {\n\n // Step #1 - break apart the parameter-pairs (because we don't want\n // to encode the \"=\" character)\n final String[] splitParameters = parameter.split(\"=\");\n\n // List to hold each individually encoded parameter item\n final List<String> encodedItems = new ArrayList<String>();\n for (final String item : splitParameters) {\n try {\n // Step #2 - encode each individual parameter item add the\n // encoded item to its corresponding list\n\n encodedItems.add(encodeValue(item));\n\n } catch (final Exception e) {\n // do nothing\n // because we are \"hard-coding\" the encoding type, there is\n // a 0% chance that this will fail.\n }\n\n }\n\n // Step #3 - reunite the previously separated parameter items and\n // add them to the corresponding list\n encodedParameters.add(StringUtils.join(encodedItems, \"=\"));\n }\n\n return StringUtils.join(encodedParameters, \"&\");\n }", "protected String createQueryString(List<Param> params, Set<String> usedParams, boolean includeQueryStringDelimiter)\n\t\t\tthrows JspException {\n\n\t\tString encoding = this.pageContext.getResponse().getCharacterEncoding();\n\t\tStringBuilder qs = new StringBuilder();\n\t\tfor (Param param : params) {\n\t\t\tif (!usedParams.contains(param.getName()) && StringUtils.hasLength(param.getName())) {\n\t\t\t\tif (includeQueryStringDelimiter && qs.length() == 0) {\n\t\t\t\t\tqs.append('?');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tqs.append('&');\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tqs.append(UriUtils.encodeQueryParam(param.getName(), encoding));\n\t\t\t\t\tif (param.getValue() != null) {\n\t\t\t\t\t\tqs.append('=');\n\t\t\t\t\t\tqs.append(UriUtils.encodeQueryParam(param.getValue(), encoding));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (UnsupportedCharsetException ex) {\n\t\t\t\t\tthrow new JspException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn qs.toString();\n\t}", "public String getQueryString() {\n\t\tif (query.isEmpty())\n\t\t\treturn null;\n\n\t\tif (queryString == null)\n\t\t\tqueryString = mapToString(query, \"&\");\n\n\t\treturn queryString;\n\t}", "public abstract String toFORMParam();", "public static String getQueryString(Map<String,String> params) throws IOException {\r\n\t\tif (params == null || params.size() == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString urlParams = null;\r\n\t\tfor (String chave : params.keySet()) {\r\n\t\t\tObject objValor = params.get(chave);\r\n\t\t\tif (objValor != null) {\r\n\t\t\t\tString valor = objValor.toString();\r\n\t\t\t\turlParams = urlParams == null ? \"\" : urlParams + \"&\";\r\n\t\t\t\turlParams += chave + \"=\" + valor;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn urlParams;\r\n\t\r\n\t}", "public String getQueryString() {\n if (CoreUtil.isEmpty(sql)) {\n return \"\";\n }\n if(bind == null) {\n return sql;\n }\n StringBuilder buf = new StringBuilder();\n StringTokenizer tok = new StringTokenizer(sql + \" \", \"?\");\n int x = 0;\n while (tok.hasMoreTokens()) {\n String oneChunk = tok.nextToken();\n buf.append(oneChunk);\n Object value = null;\n if(x < bind.length) {\n value = bind[x];\n if(value instanceof java.util.Date) {\n value = \"'\"+CoreUtil.formatDateTime(\"yyyy.MM.dd\", (java.util.Date)value)+\"'\";\n }else if(value instanceof java.sql.Date) {\n value = \"'\"+CoreUtil.formatDateTime(\"yyyy.MM.dd\", (java.sql.Date)value)+\"'\";\n }else if(value instanceof String) {\n value = \"'\"+value+\"'\";\n }\n buf.append(value);\n }\n x++;\n }\n return buf.toString().trim();\n }", "protected abstract String createSnpSearchQueryStr(HashMap<String,String> paramMap);", "String getQuery(HashMap<String, String> params) throws UnsupportedEncodingException {\n StringBuilder query=new StringBuilder();\n boolean first = true;\n for (Map.Entry<String, String> entry : params.entrySet()) {\n if (first)\n first=false;\n else\n query.append('&');\n\n String key=entry.getKey();\n Log.d(\"NetworkCall\",key);\n query.append(URLEncoder.encode(key, \"UTF-8\"));\n query.append(\"=\");\n query.append(URLEncoder.encode(entry.getValue(), \"UTF-8\"));\n }\n return query.toString();\n }", "private static String getQueryParamsString(List<QueryParameterBean> queryParams) throws SignatureGenerationException {\n if (queryParams != null && !queryParams.isEmpty()) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"?\");\n int count = 0;\n for (QueryParameterBean e : queryParams) {\n count++;\n sb.append(e.getParamName()).append(\"=\").append(e.getParamValue().toString());\n if (count != queryParams.size()) {\n sb.append(\"&\");\n }\n }\n return sb.toString();\n }\n return \"\";\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public static String queryStringFromParameters(Map<String, String[]> params)\n {\n StringBuilder queryString = new StringBuilder();\n boolean first = true;\n\n for (Map.Entry<String, String[]> entry : params.entrySet())\n {\n String name = entry.getKey();\n String[] values = entry.getValue();\n for (String value : values)\n {\n if (!first)\n {\n queryString.append('&');\n }\n else\n {\n first = false;\n }\n\n queryString.append(name).append('=').append(EncodeUtils.urlEncode(value));\n }\n }\n\n return queryString.toString();\n }", "public java.lang.String getQueryString() {\n return bugQuery.getQueryString();\n }", "public static String buildUrlWithQueryString(String url, Map<String, String> queryParas) {\n if (queryParas == null || queryParas.isEmpty())\n return url;\n\n StringBuilder sb = new StringBuilder(url);\n boolean isFirst;\n if (url.indexOf(\"?\") == -1) {\n isFirst = true;\n sb.append(\"?\");\n }\n else {\n isFirst = false;\n }\n\n for (Map.Entry<String, String> entry : queryParas.entrySet()) {\n if (isFirst) isFirst = false;\n else sb.append(\"&\");\n\n String key = entry.getKey();\n String value = entry.getValue();\n if (StrKit.notBlank(value)) {\n try {\n value = URLEncoder.encode(value, CHARSET);\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n sb.append(key).append(\"=\").append(value);\n }\n return sb.toString();\n }", "@Override\n public String getQueryString() {\n return queryString;\n }", "private String composeParams(List<NameValuePair> params) {\n List<NameValuePair> baseParams = baseParams();\n if (params != null)\n baseParams.addAll(params);\n return \"?\" + URLEncodedUtils.format(baseParams, \"UTF-8\");\n }", "public static String getRequestParamString(Map<String, String> param) {\n if (MapUtils.isEmpty(param)) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder(1024);\n SortedMap<String, String> map = new TreeMap<>(param);\n for (Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = StringUtils.isBlank(entry.getValue()) ? \"\" : entry.getValue();\n sb.append(key).append('=').append(urlEncode(value)).append('&');\n }\n sb.deleteCharAt(sb.length() - 1);\n return sb.toString();\n }", "public abstract String toURLParam();", "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser);", "QueryArgs getQueryArgs();", "protected static String getParams(Map<String, Object> param) {\n String res = \"\";\n if (param != null && !param.isEmpty()){\n for (String key:param.keySet()){\n res += key + \"=\" + param.get(key)+\"&\";\n }\n res = res.substring(0,res.length()-1);\n }\n return res;\n }", "public abstract String debugQuery(Form staticQueryParametersAsForm)\n\t\t\tthrows Exception;", "public static String formulateQueryURL(String keyphrase) {\n StringBuilder query = new StringBuilder();\n query.append(mBaseRequestURL);\n query.append(\"\\\"\" + keyphrase + \"\\\"\");\n\n return query.toString();\n }", "public String getQueryString() {\n return queryString;\n }", "public static String getQueryString(String key) {\n String value = Http.Context.current().request().getQueryString(key);\n if (value != null) {\n value = value.trim();\n }\n return value;\n }", "com.cmpe275.grpcComm.QueryParams getQueryParams();", "java.lang.String getQueryName();", "String query();", "public String getQueryString(String contentEncoding) {\n \n CollectionProperty arguments = getArguments().getArguments();\n // Optimisation : avoid building useless objects if empty arguments\n if(arguments.size() == 0) {\n return \"\";\n }\n \n // Check if the sampler has a specified content encoding\n if (JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n \n StringBuilder buf = new StringBuilder(arguments.size() * 15);\n PropertyIterator iter = arguments.iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \" + objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n } catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }", "@Override\n\t\tpublic String getQueryString() {\n\t\t\treturn null;\n\t\t}", "public String getParameters() {\n String parameters = \"\";\n try {\n String firstParameter = \"username=\" + URLEncoder.encode(username, \"UTF-8\");\n String secondParameter = \"password=\" + URLEncoder.encode(password, \"UTF-8\");\n String thirdParameter = \"grant_type=\" + URLEncoder.encode(\"password\", \"UTF-8\");\n parameters = firstParameter + \"&&\" + secondParameter + \"&&\" + thirdParameter;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return parameters;\n }", "public String getQueryString() {\n\t\treturn queryString;\n\t}", "public String generateQueryPath(String str, AVRequestParams aVRequestParams) {\n return buildUrl(str, aVRequestParams);\n }", "public String getQueryString() {\n return _query;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "@NonNull\n public String getQueryParameters() throws UnsupportedEncodingException {\n return getPostDataString(Collections.singletonList(\"alt\"), Collections.singletonList(\"media\"), true);\n }", "CampusSearchQuery generateQuery();", "void setQueryString (String string);", "private final String getFormParamsForPostRequest(final URL url) {\n \n // Use a string buffer\n StringBuffer formParams = new StringBuffer();\n \n // Get the query string\n String query = url.getQuery();\n \n if (null != query) {\n // Split this into parameters\n HashMap<String, String> requestParameters = new HashMap<String, String>();\n String[] paramPairs = query.split(\"&\");\n String[] oneParamArray;\n \n // Put the parameters correctly to the Hashmap\n for (String param : paramPairs) {\n if (param.contains(\"=\")) {\n oneParamArray = param.split(\"=\");\n if (oneParamArray.length > 1) {\n //There is a value for this parameter\n requestParameters.put(oneParamArray[0], oneParamArray[1]);\n } else {\n //There is no value for this parameter\n requestParameters.put(oneParamArray[0], \"\");\n }\n }\n }\n \n // Now add one multipart segment for each\n for (String key : requestParameters.keySet())\n formParams.append(addPostVariable(this.boundary, key,\n requestParameters.get(key)));\n }\n // Return the body content\n return formParams.toString();\n }", "public static String generateQueryOption(HttpServletRequest request) {\n\t\tHashMap<String, String> optionMapMap = new HashMap<String, String>();\n\t\tString reservation_Num = request.getParameter(\"reservation_Num\");\n\t\tString team_ID = request.getParameter(\"team_ID\");\n\t\tString room_ID = request.getParameter(\"room_ID\");\n\t\tString purpose = request.getParameter(\"purpose\");\n\t\tString status = request.getParameter(\"status\");\n\t\tString email = request.getParameter(\"email\");\n\t\tString tele = request.getParameter(\"tele\");\n\t\tString Applied_Start_Date = request.getParameter(\"Applied_Start_Date\");\n\t\tString Applied_End_Date = request.getParameter(\"Applied_End_Date\");\n\t\tString order_Time = request.getParameter(\"order_Time\");\n\t\tif (reservation_Num != null && reservation_Num.length() > 0) {\n\t\t\toptionMapMap.put(\"reservation_Num\", reservation_Num);\n\t\t}\n\t\tif (team_ID != null && team_ID.length() > 0) {\n\t\t\toptionMapMap.put(\"team_ID\", team_ID);\n\t\t}\n\t\tif (room_ID != null && room_ID.length() > 0) {\n\t\t\toptionMapMap.put(\"room_ID\", room_ID);\n\t\t}\n\t\tif (purpose != null && purpose.length() > 0) {\n\t\t\toptionMapMap.put(\"purpose\", purpose);\n\t\t}\n\t\tif (status != null && status.length() > 0) {\n\t\t\toptionMapMap.put(\"status\", status);\n\t\t}\n\t\tif (tele != null && tele.length() > 0) {\n\t\t\toptionMapMap.put(\"tele\", tele);\n\t\t}\n\t\tif (email != null && email.length() > 0) {\n\t\t\toptionMapMap.put(\"email\", email);\n\t\t}\n\t\tif (Applied_Start_Date != null && Applied_Start_Date.length() > 0) {\n\t\t\toptionMapMap.put(\"Applied_Start_Date\", Applied_Start_Date);\n\t\t}\n\t\tif (Applied_End_Date != null && Applied_End_Date.length() > 0) {\n\t\t\toptionMapMap.put(\"Applied_End_Date\", Applied_End_Date);\n\t\t}\n\t\tif (order_Time != null && order_Time.length() > 0) {\n\t\t\toptionMapMap.put(\"order_Time\", order_Time);\n\t\t}\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tSet<String> keys = optionMapMap.keySet();\n\t\tint i = 0;\n\t\tfor (String key : keys) {\n\t\t\tif (key.equals(\"team_ID\") || key.equals(\"room_ID\")\n\t\t\t\t\t|| key.equals(\"user_ID\") || key.equals(\"status\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \"=\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim());\n\t\t\t} else if (key.equals(\"purpose\") || key.equals(\"reservation_Num\")\n\t\t\t\t\t|| key.equals(\"email\") || key.equals(\"tele\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \" like \" + \"'%\"\n\t\t\t\t\t\t+ optionMapMap.get(key).toString().trim() + \"%'\");\n\t\t\t} else if (key.equals(\"Applied_Start_Date\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \">='\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim() + \"'\");\n\t\t\t} else if (key.equals(\"Applied_End_Date\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \"<='\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim() + \"'\");\n\t\t\t} else if (key.equals(\"order_Time\")) {\n\t\t\t\tbuilder.append(\"Reservation.\" + key + \"='\"\n\t\t\t\t\t\t+ optionMapMap.get(key).trim() + \"'\");\n\t\t\t}\n\t\t\tif ((i + 1) != keys.size()) {\n\t\t\t\tbuilder.append(\" and \");\n\t\t\t}\n\t\t\t++i;\n\t\t}\n\t\treturn builder.toString();\n\t}", "public static String getParamStr(HttpServletRequest request,boolean isAll){ // isAll true all paran.... false value not null param\n\t\tString rtn=\"\";\n\t\tEnumeration<String> reqParamNames = request.getParameterNames();\n\n\t\tint cnt=0;\n // try {\n while (reqParamNames.hasMoreElements()) {\n String reqParamName = reqParamNames.nextElement();\n if(!\"pageIndex\".equals(reqParamName)){\n \tString value=request.getParameter(reqParamName);\n if(isAll){\n \trtn += (cnt==0?\"?\":\"&\")+reqParamName+\"=\"+value;\n \tcnt++;\n }else{\n \tif(value!=null && !\"\".equals(value)){\n \t\trtn += (cnt==0?\"?\":\"&\")+reqParamName+\"=\"+value;\n \t\tcnt++;\n \t}\n }\n }\n }\n return rtn;\n\t}", "public String getQueryString(String contentEncoding) {\n // Check if the sampler has a specified content encoding\n if(JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n StringBuilder buf = new StringBuilder();\n PropertyIterator iter = getArguments().iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \"+objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n }\n catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }", "private void getCanonicalFormForParameters() {\n\t\tnotification.setParametersCanonicalForm(new HashMap<String, String>());\n\n\t\t// We loop over the parameters map contained into the notification\n\t\t// object\n\t\tfor (Map.Entry<String, String> entry : notification.getParameters()\n\t\t\t\t.entrySet()) {\n\t\t\t// if the name of the parameter is \"query\", we put the query into\n\t\t\t// its canonical form\n\t\t\tif (entry.getKey().equalsIgnoreCase(\"query\")) {\n\t\t\t\tString queryCanonicalForm = \"\";\n\t\t\t\ttry {\n\t\t\t\t\tqueryCanonicalForm = VamdcSqlRequestComparator\n\t\t\t\t\t\t\t.canonicalForm(notification.getParameters().get(\n\t\t\t\t\t\t\t\t\t\"query\"));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// Cannot convert query to canonical form. We keep the\n\t\t\t\t\t// original one\n\t\t\t\t\tqueryCanonicalForm = notification.getParameters().get(\n\t\t\t\t\t\t\t\"query\");\n\t\t\t\t}\n\t\t\t\tnotification.getParametersCanonicalForm().put(entry.getKey(),\n\t\t\t\t\t\tqueryCanonicalForm);\n\t\t\t} else {\n\t\t\t\t// the parameters other than query are kept unchanged\n\t\t\t\tnotification.getParametersCanonicalForm().put(entry.getKey(),\n\t\t\t\t\t\tentry.getValue());\n\t\t\t}\n\t\t}\n\t}", "String getParamsAsString();", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsubmittedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n return params;\n }", "String encryptQueryString(String query) throws EncryptionException;", "private static String getRewriteParams(String params) {\n\n URLMapping[] urlMappings = getParamsURLMappings(params);\n\n if (urlMappings == null) {\n return params;\n }\n\n StringBuilder rewriteParams = new StringBuilder();\n\n StringBuilder noRewriteParams = new StringBuilder();\n\n for (URLMapping urlMapping : urlMappings) {\n\n if (urlMapping.getKey() != null) {\n\n rewriteParams.append(urlMapping.getSplitKey()[3]);\n rewriteParams.append(PARAM_SEPARATOR);\n rewriteParams.append(urlMapping.getFinalValue());\n rewriteParams.append(PARAM_SEPARATOR);\n } else {\n\n noRewriteParams.append(urlMapping.getSplitKey()[3]);\n noRewriteParams.append(\"=\");\n noRewriteParams.append(urlMapping.getFinalValue());\n noRewriteParams.append(\"&\");\n\n }\n }\n\n StringBuilder result = new StringBuilder();\n\n if (rewriteParams.length() > 0) {\n\n result.append(rewriteParams.substring(0, rewriteParams.length() - 1));\n result.append(URL_SUFFIX);\n }\n\n if (noRewriteParams.length() > 0) {\n\n result.append(\"?\");\n result.append(noRewriteParams.substring(0, noRewriteParams.length() - 1));\n }\n\n return result.toString();\n }", "public abstract String createQuery();", "private String getQueryStringFromParser() {\n return (getString() == null) ? \"\" : getString();\n }", "java.lang.String getFormUri();", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsavedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"sname[\"+k+\"]\", sname[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n\n return params;\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "public String toQuery() {\n // determine ordering\n String ordering = \"\";\n if (ratingFirst) {\n ordering += \"ORDER BY rating\" + (ratingDescend ? \" DESC, \" : \", \") +\n (nameDescend ? \"make DESC, model DESC, year DESC\" : \"make, model, year\");\n } else {\n ordering += \"ORDER BY \" + (nameDescend ? \"make DESC, model DESC, year DESC\" : \"make, model, year\")\n + \", rating\" + (ratingDescend ? \" DESC\" : \"\");\n }\n\n // determine pagination offsets\n String pagination = \"\";\n if (pageNumber > 1) {\n pagination += \"\\nLIMIT 100\\nOFFSET \" + (convertToBase() - 1) * 100 + \";\";\n }\n\n return query + ordering + pagination;\n }", "String getQueryRequestUrl();", "public String getEncodedPath(boolean shouldAddParameters) {\n StringBuilder completeUrlBuilder = new StringBuilder();\n completeUrlBuilder.append(getBaseEndpointPath());\n completeUrlBuilder.append(path);\n if (shouldAddParameters && requestType == HttpRequest.NetworkOperationType.GET && parameters != null) {\n boolean first = true;\n for (String key : parameters.keySet()) {\n if (first) {\n first = false;\n completeUrlBuilder.append(\"?\");\n } else {\n completeUrlBuilder.append(\"&\");\n }\n completeUrlBuilder.append(key).append(\"=\").append(parameters.get(key));\n }\n }\n return completeUrlBuilder.toString().replace(getBaseEndpoint(), \"\");\n }", "RequestBuilder setQueryParameters(Map<String, String> queryParams);", "public String getQueryString(){\n return this.queryString;\n }", "private static String getQuery() {\n String scope = \"\";\n generateState();\n\n for (String s : SCOPES) {\n scope += \"+\" + s;\n }\n\n return \"?response_type=code&redirect_uri=\" + REDIRECT_URL +\n \"&client_id=\" + CLIENT_KEY +\n \"&scope=\" + scope +\n \"&STATE=\" + STATE;\n }", "public Query( String queryString ) {\r\n\tStringTokenizer tok = new StringTokenizer( queryString );\r\n\twhile ( tok.hasMoreTokens() ) {\r\n\t terms.add( tok.nextToken() );\r\n\t weights.add( new Double(1) );\r\n\t} \r\n }", "public String timestampToQueryString(Timestamp ts) {\n return \"'\" + ts + \"'\";\n }", "private String collect() {\n final Map<String, String> encoded = new HashMap<>();\n\n synchronized (parameters) {\n parameters.forEach((key, value) -> {\n try {\n for (String v : value) {\n encoded.put(CodecUtils.urlEncode(key), CodecUtils.urlEncode(v));\n }\n } catch (UnsupportedEncodingException e) {\n /* ignore unsupported encoded parameters. */\n logger.error(\"Failed to encode request, parameters: {}\", parameters);\n }\n });\n }\n\n return encoded.entrySet().stream().sorted(this::compareParameter)\n .map(entry -> entry.getKey() + \"=\" + entry.getValue())\n .collect(Collectors.joining(\"&\"));\n }", "public String getParameters() {\n String parameters = \"\";\n try {\n String username = GetSetSharedPreferences.getDefaults(\"username\", getApplicationContext());\n String password = GetSetSharedPreferences.getDefaults(\"password\", getApplicationContext());\n String firstParameter = \"username=\" + URLEncoder.encode(username, \"UTF-8\");\n String secondParameter = \"password=\" + URLEncoder.encode(password, \"UTF-8\");\n String thirdParameter = \"grant_type=\" + URLEncoder.encode(\"password\", \"UTF-8\");\n parameters = firstParameter + \"&&\" + secondParameter + \"&&\" + thirdParameter;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return parameters;\n }", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "private String getRequestUrl(String query) {\n\n StringBuilder builder = new StringBuilder();\n float lat, lng;\n\n // check for location, if not found, check for locally saved location\n if (location != null) {\n lat = location.lat;\n lng = location.lng;\n } else {\n lat = SharedPrefs.get(C.sp_last_lat);\n lng = SharedPrefs.get(C.sp_last_long);\n }\n String locationStr;\n // if even that is not found, search near Bangalore\n if (lat == -1 || lng == -1) {\n locationStr = \"near=Bengaluru\";\n } else {\n locationStr = \"ll=\" + lat + \",\" + lng;\n }\n\n builder.append(C.API_SEARCH)\n .append(\"client_id=\").append(C.FS_CLIENT_ID).append(\"&\")\n .append(\"client_secret=\").append(C.FS_CLIENT_SECRET).append(\"&\")\n .append(\"v=20191231&\")\n .append(\"limit=20&\")\n .append(\"intent=checkin&\")\n .append(locationStr);\n\n if (query != null) {\n builder.append(\"&query=\").append(query);\n }\n\n return builder.toString();\n\n }", "public String getParameterFromP();", "public String urlFormEncodeData(PostmanVariables var, List<PostmanUrlEncoded> formData) {\n\t\tString result = \"\";\n\t\tint i = 0;\n\t\tfor (PostmanUrlEncoded encoded : formData) {\n\t\t\tresult += encoded.key + \"=\" + URLEncoder.encode(var.replace(encoded.value));\n\t\t\tif (i < formData.size() - 1) {\n\t\t\t\tresult += \"&\";\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "protected StringBuilder generateQuery() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" FROM \") \n .append(dao.getParameterClass(0).getName())\n .append(\" d WHERE (:incorrectEvent = '' OR d.incorrectEvent.id = :incorrectEvent) \")\n .append(\"AND (d.createDate BETWEEN :dateFrom AND :dateTo ) \")\n .append(\"AND ( ((:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName) \")\n .append(\" OR (:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName)) \")\n .append(\" OR (:search='' OR d.searchField LIKE :search) ) \");\n return sb;\n }", "@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}", "static String qs(String query) {\n\t\tif (StringUtils.isBlank(query) || \"*\".equals(query.trim())) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tquery = query.trim();\n\t\tif (query.length() > 1 && query.startsWith(\"*\")) {\n\t\t\tquery = query.substring(1);\n\t\t}\n\t\ttry {\n\t\t\tStandardQueryParser parser = new StandardQueryParser();\n\t\t\tparser.setAllowLeadingWildcard(false);\n\t\t\tparser.parse(query, \"\");\n\t\t} catch (Exception ex) {\n\t\t\tlogger.warn(\"Failed to parse query string '{}'.\", query);\n\t\t\tquery = \"*\";\n\t\t}\n\t\treturn query.trim();\n\t}", "com.cmpe275.grpcComm.QueryParamsOrBuilder getQueryParamsOrBuilder();", "private void clearQueryString() {\n this.setQueryString(\"\");\n }", "private String makeUrlFromInput(String bookQueryText) {\n\n // Replace white spaces with a + symbol to make it compatible to be used in the JSON\n // request URL\n bookQueryText.replaceAll(\" \", \"+\");\n\n StringBuilder urlBuilder = new StringBuilder();\n urlBuilder = urlBuilder.append(GBOOKS_REQUEST_URL_PART1)\n .append(bookQueryText)\n .append(GBOOKS_REQUEST_URL_PART2);\n\n // First encode into UTF-8, then back to a form easily processed by the API\n // This is mainly to avoid issues with spaces and other special characters in the URL\n String finalUrl = Uri.encode(urlBuilder.toString()).replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%3A\", \":\")\n .replaceAll(\"\\\\%2F\", \"/\")\n .replaceAll(\"\\\\%3F\", \"?\")\n .replaceAll(\"\\\\%26\", \"&\")\n .replaceAll(\"\\\\%3D\", \"=\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%20\", \"\\\\+\")\n .replaceAll(\"\\\\%7E\", \"~\");\n return finalUrl;\n }", "@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}", "public static String buildRequestString(Map<String, String> fieldMap,\n\t\t\tString encoding) throws UnsupportedEncodingException {\n\t\tString data = \"\";\n\t\tSet<Entry<String, String>> entrySet = fieldMap.entrySet();\n\t\tfor (Entry<String, String> entry : entrySet) {\n\t\t\tString colName = entry.getKey();\n\t\t\tString colValue = entry.getValue();\n\t\t\tif (encoding != null) {\n\t\t\t\tdata += colName + \"=\"\n\t\t\t\t\t\t+ URLEncoder.encode(colValue, encoding) + \"&\";\n\t\t\t} else {\n\t\t\t\tdata += colName + \"=\" + colValue + \"&\";\n\t\t\t}\n\t\t}\n\n\t\treturn data;\n\n\t}", "private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }", "private InputStream getBodyFromServletRequestParameters(HttpServletRequest request)\r\n/* 96: */ throws IOException\r\n/* 97: */ {\r\n/* 98:128 */ ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n/* 99:129 */ Writer writer = new OutputStreamWriter(bos, \"UTF-8\");\r\n/* 100: */ \r\n/* 101:131 */ Map<String, String[]> form = request.getParameterMap();\r\n/* 102:132 */ for (Iterator<String> nameIterator = form.keySet().iterator(); nameIterator.hasNext();)\r\n/* 103: */ {\r\n/* 104:133 */ String name = (String)nameIterator.next();\r\n/* 105:134 */ List<String> values = Arrays.asList((String[])form.get(name));\r\n/* 106:135 */ for (Iterator<String> valueIterator = values.iterator(); valueIterator.hasNext();)\r\n/* 107: */ {\r\n/* 108:136 */ String value = (String)valueIterator.next();\r\n/* 109:137 */ writer.write(URLEncoder.encode(name, \"UTF-8\"));\r\n/* 110:138 */ if (value != null)\r\n/* 111: */ {\r\n/* 112:139 */ writer.write(61);\r\n/* 113:140 */ writer.write(URLEncoder.encode(value, \"UTF-8\"));\r\n/* 114:141 */ if (valueIterator.hasNext()) {\r\n/* 115:142 */ writer.write(38);\r\n/* 116: */ }\r\n/* 117: */ }\r\n/* 118: */ }\r\n/* 119:146 */ if (nameIterator.hasNext()) {\r\n/* 120:147 */ writer.append('&');\r\n/* 121: */ }\r\n/* 122: */ }\r\n/* 123:150 */ writer.flush();\r\n/* 124: */ \r\n/* 125:152 */ return new ByteArrayInputStream(bos.toByteArray());\r\n/* 126: */ }", "@SuppressWarnings(\"boxing\")\n @Override\n protected String getCustomQueryStringVariables() {\n String unitsParam = \"\";\n if (radiusUnitOverride != null) {\n unitsParam = String.format(\"&spatialUnits=%s\", SharpEnum.value(radiusUnitOverride));\n }\n return String.format(Constants.getDefaultLocale(), \"queryShape=%s&spatialRelation=%s&spatialField=%s&distErrPrc=%.5f%s\", UrlUtils.escapeDataString(queryShape), SharpEnum.value(spatialRelation), spatialFieldName,\n distanceErrorPercentage, unitsParam);\n }", "RequestBuilder addQueryParameter(String key, String value);", "public String getQueryRequest()\n {\n return m_queryRequest;\n }", "private String generateUrlParameters(HashMap<String, String> parameters) {\n\n\t\tString urlAttachment = \"?\";\n\n\t\tObject[] keys = parameters.keySet().toArray();\n\n\t\tfor(Object key : keys)\n\n\t\t\turlAttachment += key.toString() + \"=\" + parameters.get(key) + \"&\";\n\n\t\treturn urlAttachment;\n\t}", "private String getQueryString(String searchType) {\n String queryString;\n\n if (searchType.equals(\"employeeId\")) {\n queryString = \"SELECT * FROM employees WHERE emp_id = ?\";\n } else if (searchType.equals(\"firstName\")) {\n queryString = \"SELECT * FROM employees WHERE first_name LIKE ?\";\n } else {\n queryString = \"SELECT * FROM employees WHERE last_name LIKE ?\";\n }\n\n\n return queryString;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", cityNameInput.getText().toString());\n // volley will escape this for you\n playerName = playerNameInput.getText().toString();\n //params.put(\"randomFieldFilledWithAwkwardCharacters\", \"{{%stuffToBe Escaped/\");\n params.put(\"playerName\", playerNameInput.getText().toString());\n params.put(\"civilAmount\", civilAmountInput.getText().toString());\n params.put(\"mafiaAmount\", mafiaAmountInput.getText().toString());\n\n return params;\n }", "public static String mapToUtf8FormParam(Map<String, Object> map) {\n\n if (map == null)\n return null;\n\n StringBuilder builder = new StringBuilder();\n try {\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n\n if (builder.length() > 0) {\n builder.append(\"&\");\n }\n\n Object value = entry.getValue();\n if (value instanceof String) {\n value = URLEncoder.encode((String) value, \"UTF-8\");\n }\n\n builder.append(String.format(\"%s=%s\", entry.getKey(), value));\n }\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n return builder.toString();\n }", "@Override\n public DefaultUrlBuilder queryParam(String name, String value) {\n this.queryNamesAndValues.put(\n BaseUrl.UrlEncoder.encodeQueryNameOrValue(name), BaseUrl.UrlEncoder.encodeQueryNameOrValue(value));\n return this;\n }", "void appendQueryParam(String name, Object value) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n if (value == null) {\n throw new IllegalArgumentException(\"Value cannot be null\");\n }\n queryParams.add(new Param(name, String.valueOf(value)));\n }" ]
[ "0.77189475", "0.7252799", "0.70678425", "0.7053859", "0.7053859", "0.70231414", "0.68798244", "0.68633574", "0.68284756", "0.67377937", "0.6640279", "0.6618371", "0.65584093", "0.6476296", "0.64302886", "0.640273", "0.63721573", "0.63501817", "0.63474333", "0.6338145", "0.6311511", "0.6296043", "0.61606324", "0.6120626", "0.6112684", "0.6109131", "0.6109131", "0.6096599", "0.60914373", "0.6059682", "0.6033224", "0.6019007", "0.5946617", "0.5888674", "0.58778775", "0.5859297", "0.58483374", "0.579444", "0.57637846", "0.5761277", "0.57386255", "0.5712351", "0.57076293", "0.56782585", "0.5675853", "0.5655225", "0.56547105", "0.56541115", "0.5625293", "0.56109947", "0.5609869", "0.56066996", "0.56003857", "0.55989623", "0.55936444", "0.55660534", "0.5561426", "0.5555741", "0.55535173", "0.55510366", "0.5545877", "0.55396324", "0.55330503", "0.55248797", "0.5517811", "0.5515381", "0.548349", "0.5460689", "0.5457238", "0.5445638", "0.54455596", "0.5439268", "0.543129", "0.5430618", "0.5414571", "0.540998", "0.53986824", "0.538555", "0.5380305", "0.5379658", "0.5360543", "0.5359734", "0.5333921", "0.5332662", "0.53220785", "0.53187287", "0.53115076", "0.5303143", "0.53003895", "0.52922505", "0.52909446", "0.5289033", "0.52818227", "0.52762973", "0.52723765", "0.5269658", "0.52670467", "0.5263657", "0.5260958", "0.52589047", "0.5252691" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Museo)) { return false; } Museo other = (Museo) object; if ((this.idMuseo == null && other.idMuseo != null) || (this.idMuseo != null && !this.idMuseo.equals(other.idMuseo))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "protected abstract String getId();", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getID() {return id;}", "public int getID() {return id;}", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896568", "0.6839589", "0.6705305", "0.66411185", "0.66411185", "0.6592062", "0.65784657", "0.65784657", "0.65749544", "0.65749544", "0.65749544", "0.65749544", "0.65749544", "0.65749544", "0.6561728", "0.6561728", "0.6545076", "0.65248877", "0.651606", "0.6488212", "0.647747", "0.6427465", "0.64198655", "0.64177155", "0.64027804", "0.63675946", "0.63553953", "0.63525397", "0.63484466", "0.63250923", "0.63198864", "0.630231", "0.6294125", "0.6294125", "0.6284177", "0.6271725", "0.6267179", "0.62657326", "0.626255", "0.6260039", "0.62567866", "0.62523216", "0.62482584", "0.62482584", "0.6244534", "0.62395555", "0.62395555", "0.62321675", "0.62236613", "0.62214035", "0.62204707", "0.6212529", "0.6209301", "0.62017804", "0.62012", "0.61932015", "0.61902595", "0.61902595", "0.61902595", "0.6189916", "0.6189916", "0.61850536", "0.6184324", "0.6175163", "0.61746097", "0.61677086", "0.6166729", "0.6162019", "0.6157094", "0.6157094", "0.6157094", "0.6157094", "0.6157094", "0.6157094", "0.6157094", "0.61562043", "0.61562043", "0.614255", "0.6134601", "0.61291385", "0.61284745", "0.61055636", "0.6105001", "0.6105001", "0.6103769", "0.6103122", "0.61025196", "0.6100273", "0.60999817", "0.6095776", "0.6092856", "0.6092856", "0.6092842", "0.60915124", "0.6090482", "0.6076281", "0.60728455", "0.60719776", "0.6070968", "0.60706973", "0.6070349" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String str = "Programming"; System.out.println(str.substring(3)); }
{ "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 tool
public tool() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public Tool() {\n initComponents();\n }", "public ToolButton createToolButton(String path, String toolName, Tool tool);", "public CoeusToolBarFactory(CoeusAppletMDIForm mdiForm) {\r\n super();\r\n this.mdiForm = mdiForm;\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n createToolBar();\r\n // rdias UCSD - Coeus personalization impl\r\n//\t AbstractController persnref = AbstractController.getPersonalizationControllerRef();\r\n//\t persnref.customize_module(null, getToolBar(),this, \"MAINFRAME\");\r\n\t //rdias UCSD \r\n }", "private void createToolbars() {\n\t\tJToolBar toolBar = new JToolBar(\"Tools\");\n\t\ttoolBar.setFloatable(true);\n\n\t\ttoolBar.add(new JButton(new ActionNewDocument(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionOpen(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSave(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSaveAs(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionCut(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionCopy(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionPaste(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionStatistics(flp, this)));\n\n\t\tthis.getContentPane().add(toolBar, BorderLayout.PAGE_START);\n\t}", "public Menu createToolsMenu();", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "Help createHelp();", "protected abstract AbstractPerfCakeEditWizard createWizard(IStructuredSelection selection);", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "protected void createTools(Panel palette) {\n Tool tool = createSelectionTool();\n\n fDefaultToolButton = createToolButton(IMAGES+\"SEL\", \"Selection Tool\", tool);\n palette.add(fDefaultToolButton);\n }", "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 }", "public Component createNewToolItem() {\r\n Button button = new Button();\r\n gwtToolbarItem.addClasses(button);\r\n button.addStyleName(\"action-bar-tool-item\");\r\n return button;\r\n }", "public void createControl(Composite parent) {\n\t\tComposite comp = new Composite(parent, SWT.NONE);\r\n\t\tsetControl(comp);\r\n\r\n\t\tLaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_MAIN_TAB);\r\n\r\n\t\tGridLayout topLayout = new GridLayout();\r\n\t\ttopLayout.marginHeight = 10;\r\n\t\tcomp.setLayout(topLayout);\r\n\t\t\r\n\t\tcreateTargetCommGroup(comp, 1);\r\n\t\tcreateVerticalSpacer(comp, 1);\r\n\t\tcreateTargetInfoGroup(comp, 1);\r\n\t\t\r\n\t\tLaunchUIPlugin.setDialogShell(parent.getShell());\r\n\t}", "private void createToolbars() {\r\n\t\tJToolBar toolBar = new JToolBar(\"Tool bar\");\r\n\t\ttoolBar.add(createBlankDocument);\r\n\t\ttoolBar.add(openDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAsAction);\r\n\t\ttoolBar.add(closeCurrentTabAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(copyAction);\r\n\t\ttoolBar.add(cutAction);\r\n\t\ttoolBar.add(pasteAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(getStatsAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(exitAction);\r\n\t\t\r\n\t\tgetContentPane().add(toolBar, BorderLayout.PAGE_START);\r\n\t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\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}", "public ToolButton createToolButton(Icon icon, Icon selectedIcon,\n String toolName, Tool tool);", "public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }", "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }", "public VBox toolCreationMenu() {\n\t\tVBox toolCreation = new VBox();\n Label toolNameLabel = new Label(\"Tool Name: \");\n TextField toolNameEntry = new TextField();\n \n HBox toolName = new HBox();\n toolName.getChildren().add(toolNameLabel);\n toolName.getChildren().add(toolNameEntry);\n \n Label toolPurchaseLabel = new Label(\"Date Purchased: \");\n DatePicker toolPurchaseDate = new DatePicker();\n\n \n HBox toolPurchase = new HBox();\n toolPurchase.getChildren().add(toolPurchaseLabel);\n toolPurchase.getChildren().add(toolPurchaseDate);\n \n Label lendableToolLabel = new Label(\"Is Tool Lendable: \");\n CheckBox lendableToolCheck = new CheckBox();\n \n HBox lendableTool = new HBox();\n lendableTool.getChildren().add(lendableToolLabel);\n lendableTool.getChildren().add(lendableToolCheck);\n \n \n //Tool Types Checkboxes to select what types this tool is\n HBox listOfTypes = new HBox();\n VBox toolTypeName = new VBox();\n VBox checkBoxes = new VBox();\n \n listOfTypes.getChildren().add(toolTypeName);\n listOfTypes.getChildren().add(checkBoxes);\n \n\n //Getting the tool types from the database\n HashMap<Integer, String> toolTypes = conn.fetchAllToolTypes();\n \t//Storing the checkboxes to figure out which were selected on the button press\n List<CheckBox> selectedToolTypes = new ArrayList<>();\n \n for(String toolType: toolTypes.values()) {\n \tLabel toolTypeLabel = new Label(toolType);\n \ttoolTypeName.getChildren().add(toolTypeLabel);\n \t\n \tCheckBox checkBox = new CheckBox();\n \tcheckBoxes.getChildren().add(checkBox);\n \tselectedToolTypes.add(checkBox);\n }\n \n Button createTool = new Button();\n createTool.setText(\"Create Tool\");\n //Runs when the user clicks to create a new tool\n createTool.setOnAction(new EventHandler<ActionEvent>() {\n\n @Override\n public void handle(ActionEvent event) {\n Iterator<Integer> toolTypesI = toolTypes.keySet().iterator();\n Iterator<CheckBox> selectedToolTypesI = selectedToolTypes.iterator();\n ArrayList<Integer> output = new ArrayList<>();\n \n for(int i = 0; i < toolTypes.keySet().size(); i++) {\n \t//Checks if the checkbox was selected\n \tif (selectedToolTypesI.next().isSelected()) {\n \t\toutput.add(toolTypesI.next());\n \t}\n }\n \n LocalDate purchDate = toolPurchaseDate.getValue();\n Date date = Date.valueOf(purchDate);\n String toolNameStr = toolNameEntry.getText();\n boolean lendability = lendableToolCheck.isSelected();\n \n Tool newTool = new Tool(toolNameStr, date, lendability, output, conn);\n appUser.addToCollection(newTool);\n appUser.addToOwned(newTool);\n refreshToolCollection(appUser.getToolCollection());\n refreshToolsOwned(appUser.getOwnedTools());\n lendingPaneInit();\n }\n });\n \n toolCreation.getChildren().add(toolName);\n toolCreation.getChildren().add(toolPurchase);\n toolCreation.getChildren().add(listOfTypes);\n toolCreation.getChildren().add(lendableTool);\n toolCreation.getChildren().add(createTool);\n \n return toolCreation;\n\t}", "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "public Project_Create() {\n initComponents();\n }", "protected ToolButton createToolButton(String iconName, String toolName, Tool tool) {\n return new ToolButton(this, iconName, toolName, tool);\n }", "public Project_Create_Process() {\n initComponents();\n }", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tViewForm viewForm = new ViewForm(parent, SWT.NONE);\n\t\tviewForm.setLayoutData(new FillLayout());\n\t\t\n\t\tfinal Text text = new Text(viewForm, SWT.BORDER |SWT.WRAP |SWT.V_SCROLL );\n\t\tviewForm.setContent(text);\n\t\t\n\t\tToolBar toolBar = new ToolBar(viewForm, SWT.FLAT);\n\t\tToolItem getItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tgetItem.setText(\"get\");\n\t\tgetItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tToolItem clearItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tclearItem.setText(\"clear\");\n\t\tclearItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tviewForm.setTopRight(toolBar);\n\t\t\n\t}", "private void makeToolsMenu() {\r\n\t\tJMenu toolsMnu = new JMenu(\"Herramientas\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Usuarios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Manejo de Usuarios\",\r\n\t\t\t\t\timageLoader.getImage(\"users.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'm',\r\n\t\t\t\t\t\"Manejar los usuarios del sistema\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F7, 0), Users.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"FacturacionManual\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Facturacion Manual\",\r\n\t\t\t\t\timageLoader.getImage(\"kwrite.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'f',\r\n\t\t\t\t\t\"Manejar la Facturacion Manual\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F3, 0), ManualInvoice.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\ttoolsMnu.setMnemonic('h');\r\n\t\t\tadd(toolsMnu);\r\n\t\t}\r\n\t}", "private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}", "protected Tool createSelectionTool() {\n return new SelectionTool(view());\n }", "private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }", "@Override\r\n\t\tpublic void create() {\n\t\t\tsuper.create();\r\n\t\t\tsuper.getOKButton().setEnabled(false);\r\n\t\t\tsuper.setTitle(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t\tsuper.setMessage(Messages.MoveUnitsWizardPage1_Select_a_name_source_folder_and_a_);\r\n\t\t\tsuper.getShell().setText(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t}", "public void createPartControl(Composite parent) {\n\t\tString[] xmls = null;\n//\t\txmls = new String[]{\n//\t\t\t\"AppKitFull.bridgesupport\",\n//\t\t\t\"FoundationFull.bridgesupport\",\n//\t\t\t\"WebKitFull.bridgesupport\",\n//\t\t};\n\t\tMacGenerator gen = new MacGenerator();\n\t\tgen.setXmls(xmls);\n\t\tgen.setOutputDir(root.getLocation().toPortableString());\n\t\tgen.setMainClass(mainClassName);\n\t\tui = new MacGeneratorUI(gen);\n\t\tui.setActionsVisible(false);\n\t\tui.open(parent);\n\n\t\tmakeActions();\n\t\tcontributeToActionBars();\n\t}", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "private void addToolsAndCommands() {\n this.selectTargetCadastreObjectTool\n = new CadastreChangeSelectCadastreObjectTool(this.getPojoDataAccess());\n this.selectTargetCadastreObjectTool.setTargetParcelsLayer(targetParcelsLayer);\n this.selectTargetCadastreObjectTool.setCadastreObjectType(CadastreObjectTypeBean.CODE_PARCEL);\n this.getMap().addTool(this.selectTargetCadastreObjectTool, this.getToolbar(), true);\n }", "public YelpTool() {\n initComponents();\n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "private void createToolbar() {\r\n // the visible toolbar is actually a toolbar next to a combobox.\r\n // That is why we need this extra composite, layout and numColums = 2.\r\n final Composite parent = new Composite(SHELL, SWT.FILL);\r\n final GridLayout layout = new GridLayout();\r\n layout.numColumns = 2;\r\n parent.setLayout(layout);\r\n\r\n final ToolBar bar = new ToolBar(parent, SWT.NONE);\r\n final GridData data = new GridData();\r\n data.heightHint = 55;\r\n data.grabExcessVerticalSpace = false;\r\n bar.setLayoutData(data);\r\n bar.setLayout(new GridLayout());\r\n\r\n createOpenButton(bar);\r\n\r\n createGenerateButton(bar);\r\n\r\n createSaveButton(bar);\r\n\r\n createSolveButton(bar);\r\n\r\n createAboutButton(bar);\r\n\r\n algorithmCombo = new AlgorithmCombo(parent);\r\n }", "public abstract void addEditorForm();", "public void createPartControl(Composite parent) {\n\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.marginWidth = 0;\n\t\tgridLayout.marginHeight = 0;\n\t\tparent.setLayout(gridLayout);\n\n\t\t// create a ShashForm\n\t\tthis.sashForm = new SashForm(parent, SWT.VERTICAL);\n\t\tthis.sashForm.setLayout(new GridLayout(2, false));\n\n\t\t// create a table viewer\n\t\tcreateTableViewer(this.sashForm);\n\n\t\t// create a report form to go with the table viewer\n\t\tcreateReportForm(this.sashForm);\n\n\t\tthis.sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\t// layout the text field below the tree viewer\n\t\tGridData layoutData = new GridData();\n\t\tlayoutData.grabExcessHorizontalSpace = true;\n\t\tlayoutData.grabExcessVerticalSpace = true;\n\t\tlayoutData.horizontalAlignment = GridData.FILL;\n\t\tlayoutData.verticalAlignment = GridData.FILL;\n\n\t}", "public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }", "public void createPartControl(Composite parent) {\n \n \t\tgetImages();\n \n \t\ttoolkit = new FormToolkit(parent.getDisplay());\n \t\tform = toolkit.createScrolledForm(parent);\n \t\tform.addListener(SWT.Resize, new Listener() {\n \t\t\tpublic void handleEvent(Event e) {\n \t\t\t\tform.setRedraw(false);\n \t\t\t\tform.reflow(true);\n \t\t\t\tform.layout(true, true);\n \t\t\t\tform.setRedraw(true);\n \t\t\t}\n \t\t});\n \t\tGridLayout layout = new GridLayout(2, false);\n \t\tlayout.verticalSpacing = 1;\n \t\tform.getBody().setLayout(layout);\n \n \t\tcreateURLAndToolbar();\n \n \t\tSashForm sashForm = new SashForm(form.getBody(), SWT.NONE);\n \t\tsashForm.setOrientation(SWT.HORIZONTAL);\n \t\ttoolkit.adapt(sashForm);\n \t\tGridLayout sashLayout = new GridLayout(2, false);\n \t\tsashForm.setLayout(sashLayout);\n \t\tGridData gd3 = new GridData(SWT.FILL, SWT.FILL, true, true);\n \t\tgd3.horizontalSpan = 2;\n \t\tgd3.widthHint = 1;\n \t\tsashForm.setLayoutData(gd3);\n \n \t\tcreateRequestSide(sashForm);\n \n \t\tcreateResponseSide(sashForm);\n \n \t\ttoolkit.paintBordersFor(form);\n \t\tform.reflow(true);\n \n \t\tmethodCombo.setText(JAX_WS);\n \t\tsetControlsForWSType(getCurrentTestType());\n \t\tsetControlsForMethodType(methodCombo.getText());\n \t\tsetControlsForSelectedURL();\n \t\tsetMenusForCurrentState();\n \t}", "public FundsVolunteerCreate(AppState appState) {\n initComponents();\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n btCancelar.setVisible(false);\n btSave.setVisible(false);\n btnRemove.setVisible(false);\n btnSaveEdit.setVisible(false);\n enableFields(false);\n this.appState = appState;\n }", "private FrmMainForm() {\n }", "public TestGeneratorGui(boolean create, JFrame frame, JTabbedPane tabbedPane) {\n\t\tthis.create = create;\n\t\ttutorControlFrame = frame;\n\t\ttutorControl = tabbedPane;\n\t}", "private Tool createTool(ToolType toolType, String toolCode, String brand) {\n double dailyPrice;\n boolean wkdChg;\n boolean holChg;\n\n if(toolType == ToolType.LADDER) {\n dailyPrice = LADDER_PRICE;\n wkdChg = LADDER_WKD_FREE;\n holChg = LADDER_HOL_FREE;\n } else if(toolType == ToolType.CHAINSAW) {\n dailyPrice = CHAINSAW_PRICE;\n wkdChg = CHAINSAW_WKD_FREE;\n holChg = CHAINSAW_HOL_FREE;\n } else {\n dailyPrice = JACKHAMMER_PRICE;\n wkdChg = JACKHAMMER_WKD_FREE;\n holChg = JACKHAMMER_HOL_FREE;\n }\n\n Tool tool = new Tool(toolType, toolCode, brand, dailyPrice, wkdChg, holChg);\n\n return tool;\n }", "public FormPortlet( )\n {\n }", "public void createControl(Composite parent) {\r\n \t\tinitializeDialogUnits(parent);\r\n \r\n \t\tComposite root = new Composite(parent, SWT.NONE);\r\n \t\tGridData gd = new GridData();\r\n \r\n \t\tgd.horizontalSpan = 1;\r\n \t\tgd.horizontalAlignment = GridData.FILL;\r\n \t\tgd.grabExcessHorizontalSpace = true;\r\n \t\tgd.grabExcessVerticalSpace = false;\r\n \r\n \t\tGridLayout gridLayout = new GridLayout(1, false);\r\n \t\troot.setLayout(gridLayout);\r\n \t\tGroup generalGroup = new Group(root, SWT.NONE);\r\n \t\tgeneralGroup.setLayoutData(gd);\r\n \t\tgeneralGroup.setText(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_GENERAL);\r\n \t\tgridLayout = new GridLayout(3, false);\r\n \r\n \t\tgeneralGroup.setLayout(gridLayout);\r\n \t\tregisterEditor(jBossSeamHomeEditor, generalGroup, 3);\r\n \t\tregisterEditor(jBossAsDeployAsEditor, generalGroup, 3);\r\n \r\n \t\tgd = new GridData();\r\n \t\tgd.horizontalSpan = 1;\r\n \t\tgd.horizontalAlignment = GridData.FILL;\r\n \t\tgd.grabExcessHorizontalSpace = true;\r\n \t\tgd.grabExcessVerticalSpace = false;\r\n \r\n \t\tGroup databaseGroup = new Group(root, SWT.NONE);\r\n \t\tdatabaseGroup.setLayoutData(gd);\r\n \t\tdatabaseGroup.setText(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_DATABASE);\r\n \t\tgridLayout = new GridLayout(4, false);\r\n \t\tdatabaseGroup.setLayout(gridLayout);\r\n \t\tregisterEditor(jBossHibernateDbTypeEditor, databaseGroup, 4);\r\n \t\tregisterEditor(connProfileSelEditor, databaseGroup, 4);\r\n \t\tregisterEditor(dbSchemaName, databaseGroup, 4);\r\n \t\tregisterEditor(dbCatalogName, databaseGroup, 4);\r\n \t\tregisterEditor(dbTablesExists, databaseGroup, 4);\r\n \t\tregisterEditor(recreateTablesOnDeploy, databaseGroup, 4);\r\n \t\t// registerEditor(pathToJdbcDriverJar,databaseGroup, 4);\r\n \r\n \t\tGroup generationGroup = new Group(root, SWT.NONE);\r\n \t\tgd = new GridData();\r\n \t\tgd.horizontalSpan = 1;\r\n \t\tgd.horizontalAlignment = GridData.FILL;\r\n \t\tgd.grabExcessHorizontalSpace = true;\r\n \t\tgd.grabExcessVerticalSpace = false;\r\n \r\n \t\tgenerationGroup.setLayoutData(gd);\r\n \t\tgenerationGroup.setText(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_CODE_GENERATION);\r\n \t\tgridLayout = new GridLayout(3, false);\r\n \t\tgenerationGroup.setLayout(gridLayout);\r\n \t\tregisterEditor(sessionBeanPkgNameditor, generationGroup, 3);\r\n \t\tregisterEditor(entityBeanPkgNameditor, generationGroup, 3);\r\n \t\tregisterEditor(testsPkgNameditor, generationGroup, 3);\r\n \r\n \t\tsetControl(root);\r\n \t\tNewProjectDataModelFacetWizard wizard = (NewProjectDataModelFacetWizard) getWizard();\r\n \r\n \t\tIDataModel model = wizard.getDataModel();\r\n \r\n \t\tif (validatorDelegate == null) {\r\n \t\t\tvalidatorDelegate = new DataModelValidatorDelegate(this.model, this);\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(jBossSeamHomeEditor\r\n \t\t\t\t\t.getName(),\r\n \t\t\t\t\tValidatorFactory.SEAM_RUNTIME_NAME_VALIDATOR);\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(connProfileSelEditor\r\n \t\t\t\t\t.getName(),\r\n \t\t\t\t\tValidatorFactory.CONNECTION_PROFILE_VALIDATOR);\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(testsPkgNameditor\r\n \t\t\t\t\t.getName(), new PackageNameValidator(testsPkgNameditor\r\n \t\t\t\t\t.getName(), \"tests\")); //$NON-NLS-1$\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(entityBeanPkgNameditor\r\n \t\t\t\t\t.getName(), new PackageNameValidator(entityBeanPkgNameditor\r\n \t\t\t\t\t.getName(), \"entity beans\")); //$NON-NLS-1$\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(sessionBeanPkgNameditor\r\n \t\t\t\t\t.getName(), new PackageNameValidator(\r\n \t\t\t\t\tsessionBeanPkgNameditor.getName(), \"session beans\")); //$NON-NLS-1$\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(\r\n \t\t\t\t\tIFacetDataModelProperties.FACET_PROJECT_NAME, \r\n \t\t\t\t\tnew ProjectNamesDuplicationValidator(\r\n \t\t\t\t\t\t\tIFacetDataModelProperties.FACET_PROJECT_NAME));\r\n \t\t}\r\n \r\n \t\tjBossHibernateDbTypeEditor\r\n \t\t\t\t.addPropertyChangeListener(new PropertyChangeListener() {\r\n \t\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\r\n \t\t\t\t\t\tSeamInstallWizardPage.this.model.setProperty(ISeamFacetDataModelProperties.HIBERNATE_DIALECT,\r\n \t\t\t\t\t\tHIBERNATE_HELPER.getDialectClass(evt.getNewValue().toString()));\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t);\r\n \r\n\r\n\r\n Dialog.applyDialogFont(parent);\r\n \t}", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "@Deprecated\n public void buildTemplateGUI(){\n // Clear the frame\n rebuildFrame();\n \n // Header options in [OBJECT] GUI\n header.setText(\"Descriptive button header: \");\n \n //------Unique panel objects here---------\n \n \n //----------------------------------------\n \n // Display GUI after finished building\n controlFrame.pack();\n controlFrame.setVisible(true);\n }", "private void createRoutine() {\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Name the new routine:\",\n \"Create new\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, null);\n\n if (s != null) {\n Routine r = new Routine(s);\n collection.add(r);\n listModel.addElement(r);\n list.setSelectedValue(r, true);\n new WorkoutsFrame(r);\n }\n }", "public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }", "public interface GuiFactory {\n\n Button createButton();\n CheckBox createCheckbox();\n\n\n}", "FlowDesignerFactory getFlowDesignerFactory();", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "IFormManager createFormManagerForMenu(IForm menu);", "void add(String prompt, UIFormTest test);", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\t\ttoolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\r\n\t\t/*\r\n\t\t * Create a scrolled form widget, \r\n\t\t */\r\n\t\tscrolledForm = toolkit.createScrolledForm(parent);\r\n\t\tscrolledForm.setFont(new Font(null,\"Times\",18,SWT.BOLD|SWT.ITALIC));\r\n\t\tscrolledForm.setText(\"Simulation Results\");\r\n\t\tscrolledForm.setImage(JQuantPlugin.getImageDescriptor(\"money.png\").createImage());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Make a nice gradient\r\n\t\t */\r\n\t\ttoolkit.decorateFormHeading(scrolledForm.getForm());\r\n\t\t\r\n\t\treadSimulationResults();\r\n\t\tbuildStatSection();\r\n\t\tif(results != null)\r\n\t\t\trefreshSimulationStatistics();\r\n\r\n\t\t\r\n\t}", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Createlbl = new javax.swing.JLabel();\n templbl = new javax.swing.JLabel();\n Bplbl = new javax.swing.JLabel();\n pulselbl = new javax.swing.JLabel();\n datelbl = new javax.swing.JLabel();\n temptxt = new javax.swing.JTextField();\n BPtxt = new javax.swing.JTextField();\n pulsetxt = new javax.swing.JTextField();\n datetxt = new javax.swing.JTextField();\n CreateSavetbn = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(243, 206, 206));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Createlbl.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n Createlbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Createlbl.setText(\"Create Vital Sign\");\n add(Createlbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 16, 421, -1));\n\n templbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n templbl.setText(\"Temperature:\");\n add(templbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(97, 80, -1, -1));\n\n Bplbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n Bplbl.setText(\"Blood Pressure:\");\n add(Bplbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(82, 127, -1, -1));\n\n pulselbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n pulselbl.setText(\"Pulse:\");\n add(pulselbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 174, -1, -1));\n\n datelbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n datelbl.setText(\"Date:\");\n add(datelbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(162, 221, -1, -1));\n add(temptxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 78, 105, -1));\n add(BPtxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 125, 105, -1));\n add(pulsetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 172, 105, -1));\n add(datetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 219, 105, -1));\n\n CreateSavetbn.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n CreateSavetbn.setText(\"Save\");\n CreateSavetbn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CreateSavetbnActionPerformed(evt);\n }\n });\n add(CreateSavetbn, new org.netbeans.lib.awtextra.AbsoluteConstraints(155, 263, -1, -1));\n }", "public void createToolsButton(final Action theAction) {\n final JToggleButton toolButton = new JToggleButton(theAction);\n \n myButtonGroup.add(toolButton);\n myButtonGroup.clearSelection();\n \n add(toolButton);\n }", "public ToolsMenu() {\n\t\tsuper(\"Tools\");\n\t}", "public ButtonWizard(DialogueSystem system) {\n this.system = system;\n currentAction = new JLabel();\n currentJoint = new JLabel();\n }", "@Token(save = true, validate = false)\n @Execute\n public HtmlResponse createpage(final SuggestBadWordEditForm form) {\n form.initialize();\n form.crudMode = CrudMode.CREATE;\n return asHtml(path_AdminSuggestbadword_EditJsp);\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }", "private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDescription = makeJLabel(\"Description: \", 10, 130, 80, 25);\r\n JLabel createLabelDueDate = makeJLabel(\"Due Date: \", 10, 160, 80, 25);\r\n JLabel createLabelPriority = makeJLabel(\"Priority Level: \", 10, 190, 80, 25);\r\n\r\n addToTodoTaskGui(createLabelName, createLabelDescription, createLabelDueDate, createLabelPriority);\r\n\r\n JButton clickSave = makeButton(\"saveTask\", \"Save\", 80, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickSave);\r\n\r\n JButton clickCancel = makeButton(\"cancelTask\", \"Cancel\", 280, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickCancel);\r\n }\r\n }", "private void butTools_Click(Object sender, System.EventArgs e) throws Exception {\n FormFeeSchedTools FormF = new FormFeeSchedTools(FeeSchedC.getListShort()[listFeeSched.SelectedIndex].FeeSchedNum);\n FormF.ShowDialog();\n if (FormF.DialogResult == DialogResult.Cancel)\n {\n return ;\n }\n \n Fees.refreshCache();\n ProcedureCodes.refreshCache();\n changed = true;\n if (Programs.isEnabled(ProgramName.eClinicalWorks))\n {\n fillFeeSchedules();\n }\n \n //To show possible added fee schedule.\n fillGrid();\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Fee Schedule Tools\");\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public JMTToolBar createToolbar() {\r\n \t\tJMTToolBar toolbar = new JMTToolBar(JMTImageLoader.getImageLoader());\r\n \t\t// Builds an array with all actions to be put in the toolbar\r\n \t\tAbstractJmodelAction[] actions = new AbstractJmodelAction[] { newModel, openModel, saveModel, null,\r\n \t\t\t\t// editUndo, editRedo, null,\r\n \t\t\t\tactionCut, actionCopy, actionPaste, null, editUserClasses, editMeasures, editSimParams, editPAParams, null, switchToExactSolver,\r\n \t\t\t\tnull, simulate, pauseSimulation, stopSimulation, showResults, null, editDefaults, openHelp };\r\n \t\ttoolbar.populateToolbar(actions);\r\n \t\treturn toolbar;\r\n \t}", "Make createMake();", "public FormInserir() {\n initComponents();\n }", "private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "private void addInventoryInformation() {\r\n \tString[] toolTypeFieldItems = {\"Electrical\", \"Non-Electrical\"};\r\n \t\r\n \taddButton = new JButton (\"Add\");\r\n deleteButton = new JButton (\"Delete\");\r\n clearButton = new JButton (\"Clear\");\r\n decreaseButton = new JButton (\"Buy\");\r\n toolIdText = new JTextField (5);\r\n toolNameText = new JTextField (5);\r\n stockText = new JTextField (5);\r\n priceText = new JTextField (5);\r\n supplierText = new JTextField (5);\r\n toolTypeField = new JComboBox<String> (toolTypeFieldItems); \r\n powerText = new JTextField (5);\r\n\r\n add (addButton);\r\n add (deleteButton);\r\n add (clearButton);\r\n add (decreaseButton);\r\n add (toolIdText);\r\n add (toolNameText);\r\n add (stockText);\r\n add (priceText);\r\n add (supplierText);\r\n add (toolTypeField);\r\n add (powerText);\r\n \r\n addButton.setBounds (585, 590, 100, 25);\r\n deleteButton.setBounds (715, 590, 100, 25);\r\n clearButton.setBounds (650, 630, 100, 25);\r\n decreaseButton.setBounds (650, 670, 100, 25);\r\n toolIdText.setBounds (690, 290, 100, 25);\r\n toolNameText.setBounds (690, 330, 100, 25);\r\n stockText.setBounds (690, 410, 100, 25);\r\n priceText.setBounds (690, 450, 100, 25);\r\n supplierText.setBounds (690, 490, 100, 25);\r\n toolTypeField.setBounds (690, 370, 100, 25);\r\n powerText.setBounds (690, 530, 100, 25);\r\n }", "private void btnCreateHeroActionPerformed() {// GEN-FIRST:event_btnCreateHeroActionPerformed\r\n\t\tdispose();\r\n\t\tHero h = new Hero(txtCreateName.getText());\r\n\t\tnew MainForm().setVisible(true);\r\n\t\tMainForm.setHero(h);\r\n\t\tMainForm.makeOpponents();\r\n\t\th = null;\r\n\t}", "Program createProgram();", "Program createProgram();", "Program createProgram();", "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsToolBar.add(getColorButton());\r\n\t\t\ttoolsToolBar.add(getLinkButton());\r\n\t\t\ttoolsToolBar.add(getIcoButton());\r\n\t\t}\r\n\t\treturn toolsToolBar;\r\n\t}", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "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}", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NULL);\r\n\t\tfinal GridLayout gridLayout = new GridLayout();\r\n\t\tcontainer.setLayout(gridLayout);\r\n\t\tsetControl(container);\r\n\r\n\t\tfinal SubscriptionWorkingCopy workingCopy = wizard.getWorkingCopy();\r\n\r\n\t\tfinal SashForm sashForm = new SashForm(container, SWT.NONE);\r\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\r\n\t\tGroup treeGroup = new Group(sashForm, SWT.NONE);\r\n\t\ttreeGroup.setLayout(new FillLayout());\r\n\t\ttreeGroup.setText(\"Detected feeds\");\r\n\r\n\t\tfinal TreeViewer treeViewer = new TreeViewer(treeGroup, SWT.BORDER);\r\n\t\ttreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\t\t\tpublic void selectionChanged(final SelectionChangedEvent event) {\r\n\t\t\t\tISelection selection = event.getSelection();\r\n\t\t\t\tif (selection instanceof IStructuredSelection) {\r\n\t\t\t\t\tObject selected = ((IStructuredSelection) selection)\r\n\t\t\t\t\t\t\t.getFirstElement();\r\n\t\t\t\t\tif (selected instanceof Subscription) {\r\n\t\t\t\t\t\tworkingCopy.copy((Subscription) selected);\r\n\t\t\t\t\t\turlText.setText(workingCopy.getURL());\r\n\t\t\t\t\t\tcombo.setText(workingCopy.getTitle());\r\n\t\t\t\t\t\tif (authenticationButton != null) {\r\n\t\t\t\t\t\t\tIFeedCatalog catalog = ((Subscription) selected)\r\n\t\t\t\t\t\t\t\t\t.getCatalog();\r\n\t\t\t\t\t\t\tif (catalog.supportsAuthentication()) {\r\n\t\t\t\t\t\t\t\tauthenticationButton.setEnabled(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tauthenticationButton.setSelection(false);\r\n\t\t\t\t\t\t\t\tauthenticationButton.setEnabled(false);\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}\r\n\t\t\t}\r\n\t\t});\r\n\t\tTree tree = treeViewer.getTree();\r\n\t\ttree.setFocus();\r\n\t\ttreeViewer.setContentProvider(new ITreeContentProvider() {\r\n\r\n\t\t\tprivate IFeedCatalog[] catalogs;\r\n\r\n\t\t\tpublic Object[] getElements(Object inputElement) {\r\n\t\t\t\treturn catalogs;\r\n\t\t\t}\r\n\r\n\t\t\tpublic void dispose() {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void inputChanged(Viewer viewer, Object oldInput,\r\n\t\t\t\t\tObject newInput) {\r\n\t\t\t\tcatalogs = AggregatorPlugin.getDefault().getCatalogs();\r\n\t\t\t}\r\n\r\n\t\t\tpublic Object[] getChildren(Object parentElement) {\r\n\t\t\t\tif (parentElement instanceof IFeedCatalog) {\r\n\t\t\t\t\t((IFeedCatalog) parentElement).getLabels();\r\n\t\t\t\t\treturn ((IFeedCatalog) parentElement).getFeeds();\r\n\t\t\t\t}\r\n\t\t\t\tif (parentElement instanceof IFeedCatalog[]) {\r\n\t\t\t\t\treturn catalogs;\r\n\t\t\t\t}\r\n\t\t\t\treturn new Object[0];\r\n\t\t\t}\r\n\r\n\t\t\tpublic Object getParent(Object element) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tpublic boolean hasChildren(Object element) {\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t});\r\n\t\ttreeViewer.setInput(this);\r\n\t\ttreeViewer.setLabelProvider(new LabelProvider() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String getText(Object element) {\r\n\t\t\t\tif (element instanceof IFeedCatalog) {\r\n\t\t\t\t\treturn ((IFeedCatalog) element).getName();\r\n\t\t\t\t}\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\treturn ((Subscription) element).getTitle();\r\n\t\t\t\t}\r\n\t\t\t\treturn super.getText(element);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Image getImage(Object element) {\r\n\t\t\t\tif (element instanceof IFeedCatalog) {\r\n\t\t\t\t\tIFeedCatalog catalog = (IFeedCatalog) element;\r\n\t\t\t\t\tImageRegistry registry = AggregatorUIPlugin.getDefault()\r\n\t\t\t\t\t\t\t.getImageRegistry();\r\n\t\t\t\t\tString id = \"catalog.\" + catalog.getId() + \".\"\r\n\t\t\t\t\t\t\t+ catalog.getIcon();\r\n\t\t\t\t\tif (registry.get(id) == null) {\r\n\t\t\t\t\t\tImageDescriptor img = ImageDescriptor\r\n\t\t\t\t\t\t\t\t.createFromURL(catalog.getIcon());\r\n\t\t\t\t\t\tregistry.put(id, img);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn registry.get(id);\r\n\t\t\t\t}\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\tImageRegistry registry = AggregatorUIPlugin.getDefault()\r\n\t\t\t\t\t\t\t.getImageRegistry();\r\n\t\t\t\t\treturn registry.get(AggregatorUIPlugin.IMG_FEED_OBJ);\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tComposite detailsGroup = new Composite(sashForm, SWT.NONE);\r\n\t\tdetailsGroup.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\tcreateConnectionGroup(workingCopy, detailsGroup);\r\n\t\tcreateAuthenticationGroup(workingCopy, detailsGroup);\r\n\t\tsashForm.setWeights(new int[] { 1, 1 });\r\n\t}", "private void makeGUI() {\n //Create the canvas and Components for GUI.\n canvas = new Canvas();\n\n canvas.setBounds(0, 0, getWidth(), getHeight());\n getContentPane().setBackground(DrawAttribute.whiteblue);\n searchArea = new JTextField();\n searchArea.setForeground(Color.GRAY);\n searchArea.setText(promptText);\n\n //Make the components for the frame.\n makeComponents();\n addComponentsToLayers();\n }", "private void createToolButtons(final Map<PaintTool, ToolAction> theMap, \n final List<PaintTool> theTools,\n final JFrame theFrame) {\n \n final ButtonGroup toolBarGroup = new ButtonGroup();\n for (final PaintTool aT : theTools) {\n final JToggleButton button = new JToggleButton(aT.getDescription());\n toolBarGroup.add(button);\n aT.addPropertyChangeListener(this);\n button.setAction(theMap.get(aT));\n myToolBar.add(button);\n myToolBar.addSeparator();\n }\n theFrame.add(myToolBar, BorderLayout.PAGE_END);\n }", "public static void createButtonSelection(ActionContext actionContext){\n Thing store = actionContext.getObject(\"store\");\n store.doAction(\"openCreateForm\", actionContext);\n }", "public Tool(ToolType type, String brand) {\n this.type = type;\n this.brand = brand;\n }", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NULL);\r\n\r\n\t\tsetControl(container);\r\n\t\tcontainer.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblNewLabel = new Label(container, SWT.NONE);\r\n\t\tlblNewLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\r\n\t\t\t\tfalse, 1, 1));\r\n\t\tlblNewLabel.setText(\"Package:\");\r\n\r\n\t\ttext = new Text(container, SWT.BORDER);\r\n\t\ttext.addModifyListener(this);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\r\n\t\tGroup grpAutoCreate = new Group(container, SWT.NONE);\r\n\t\tgrpAutoCreate.setText(\"auto create\");\r\n\t\tgrpAutoCreate.setLayout(new GridLayout(1, false));\r\n\t\tgrpAutoCreate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,\r\n\t\t\t\tfalse, 2, 1));\r\n\r\n\t\tSelectionAdapter sa = new SelectionAdapter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tButton b = (Button) e.getSource();\r\n\t\t\t\tInteger index = (Integer) b.getData(\"index\");\r\n\t\t\t\tselectionStats[index] = b.getSelection();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < chkBtns.length; i++) {\r\n\t\t\tButton b = chkBtns[i] = new Button(grpAutoCreate, SWT.CHECK);\r\n\t\t\tb.setSelection(selectionStats[i]);\r\n\t\t\tb.setText(baseFileNames[i]);\r\n\t\t\tb.setData(\"index\", i);\r\n\t\t\tb.addSelectionListener(sa);\r\n\t\t}\r\n\t}", "public void testGenericWizards() {\n // open new project wizard\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n npwo.selectCategory(\"Java Web\");\n npwo.selectProject(\"Web Application\");\n npwo.next();\n // create operator for next page\n WizardOperator wo = new WizardOperator(\"Web Application\");\n JTextFieldOperator txtName = new JTextFieldOperator((JTextField) new JLabelOperator(wo, \"Project Name:\").getLabelFor());\n txtName.clearText();\n txtName.typeText(\"MyApp\");\n wo.cancel();\n }", "public ADD_OFFICER() {\n initComponents();\n filltf();\n jLabel12.setText(\"Select a file\");\n setLocationRelativeTo(null);\n }", "@Override\n\tpublic void create(IWizardEntity entity, WizardRunner runner) {\n\t\t\n\t}", "private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }", "public ToolBar(final Map<PaintTool, ToolAction> theMap, \n final List<PaintTool> theTools,\n final JFrame theFrame,\n final DrawingPanel thePanel) { \n\n myToolBar = new JToolBar();\n createToolButtons(theMap, theTools, theFrame);\n createUndoAndRedo(thePanel);\n myBar = theFrame.getJMenuBar();\n myBar.addPropertyChangeListener(this);\n myPcs = new PropertyChangeSupport(this);\n }", "protected Panel createToolPalette() {\n Panel palette = new Panel();\n palette.setLayout(new PaletteLayout(2,new Point(2,2)));\n return palette;\n }", "private void addToTodoTaskGui(JLabel createLabelName, JLabel createLabelDescription,\r\n JLabel createLabelDueDate, JLabel createLabelPriority) {\r\n panelTask.add(createLabelName);\r\n panelTask.add(createLabelDescription);\r\n panelTask.add(createLabelDueDate);\r\n panelTask.add(createLabelPriority);\r\n panelTask.add(textFieldDueDate);\r\n\r\n panelTask.add(textFieldName);\r\n panelTask.add(textFieldDescription);\r\n panelTask.add(textFieldDueDate);\r\n panelTask.add(comboPriority);\r\n\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear programa maestro de asignación\");\n setLocationByPlatform(true);\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jButton2.setText(\"ok\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextField1.setText(\"jTextField1\");\n\n jLabel1.setText(\"Seleccionar archivo de Topcon\");\n\n jButton1.setText(\"Browse\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setLabelFor(jComboBox1);\n jLabel2.setText(\"Número de grabació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 .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 329, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(6, 6, 6)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\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.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addContainerGap())\n );\n\n pack();\n }", "public PathwayCommonsAccessTool() {\n super(PC_NAME, PC_RESOURCEID, PC_STRUCTURE);\n try {\n this.getToolResource().setResourceURL(new URL(PC_URL));\n this.getToolResource().setResourceLogo(new URL(PC_LOGO));\n this.getToolResource().setResourceElementURL(PC_ELT_URL);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n this.getToolResource().setResourceDescription(PC_DESCRIPTION);\n }", "@Override\r\n\tpublic void createPartControl(final Composite parent) {\r\n\t\t// Create the parent component\r\n\t\ttoolkit = new FormToolkit(Display.getDefault());\r\n\t\tform = toolkit.createForm(parent);\r\n\t\tform.setText(\"Vormerkungen\");\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\r\n\t\tfinal Composite composite = form.getBody();\r\n\t\tcomposite.setLayout(new FillLayout());\r\n\r\n\t\tSashForm sash_prebooking = new SashForm(composite, SWT.HORIZONTAL);\r\n\r\n\t\t// groups-----------------------------------\r\n\t\tfinal SashForm sashForm_8 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungBruckGroup = new Group(sashForm_8, SWT.NONE);\r\n\t\trichtungBruckGroup.setLayout(new FillLayout());\r\n\t\trichtungBruckGroup.setForeground(CustomColors.COLOR_RED);\r\n\t\trichtungBruckGroup.setText(\"Richtung Bruck\");\r\n\r\n\t\tfinal SashForm sashForm_7 = new SashForm(sashForm_8, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungKapfenbergGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungKapfenbergGroup.setLayout(new FillLayout());\r\n\t\trichtungKapfenbergGroup.setText(\"Richtung Kapfenberg\");\r\n\r\n\t\tfinal Group richtungMariazellGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungMariazellGroup.setLayout(new FillLayout());\r\n\t\trichtungMariazellGroup.setText(\"Richtung Mariazell\");\r\n\r\n\t\t// ----------------------------------------------\r\n\t\tfinal SashForm sashForm_9 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungGrazGroup = new Group(sashForm_9, SWT.NONE);\r\n\t\trichtungGrazGroup.setLayout(new FillLayout());\r\n\t\trichtungGrazGroup.setText(\"Richtung Graz\");\r\n\r\n\t\tfinal SashForm sashForm_1 = new SashForm(sashForm_9, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungLeobenGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungLeobenGroup.setLayout(new FillLayout());\r\n\t\trichtungLeobenGroup.setText(\"Richtung Leoben\");\r\n\r\n\t\tfinal Group richtungWienGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungWienGroup.setLayout(new FillLayout());\r\n\t\trichtungWienGroup.setText(\"Richtung Wien\");\r\n\r\n\t\t// viewers\r\n\t\tviewerLeoben = createTableViewer(richtungLeobenGroup);\r\n\t\tviewerGraz = createTableViewer(richtungGrazGroup);\r\n\t\tviewerKapfenberg = createTableViewer(richtungKapfenbergGroup);\r\n\t\tviewerBruck = createTableViewer(richtungBruckGroup);\r\n\t\tviewerWien = createTableViewer(richtungWienGroup);\r\n\t\tviewerMariazell = createTableViewer(richtungMariazellGroup);\r\n\r\n\t\t// create the tooltip\r\n\t\ttooltipLeoben = new JournalViewTooltip(viewerLeoben.getControl());\r\n\t\ttooltipGraz = new JournalViewTooltip(viewerGraz.getControl());\r\n\t\ttooltipKapfenberg = new JournalViewTooltip(viewerKapfenberg.getControl());\r\n\t\ttooltipBruck = new JournalViewTooltip(viewerBruck.getControl());\r\n\t\ttooltipWien = new JournalViewTooltip(viewerWien.getControl());\r\n\t\ttooltipMariazell = new JournalViewTooltip(viewerMariazell.getControl());\r\n\r\n\t\t// show the tool tip when the selection has changed\r\n\t\tviewerLeoben.addSelectionChangedListener(createTooltipListener(viewerLeoben, tooltipLeoben));\r\n\t\tviewerGraz.addSelectionChangedListener(createTooltipListener(viewerGraz, tooltipGraz));\r\n\t\tviewerKapfenberg.addSelectionChangedListener(createTooltipListener(viewerKapfenberg, tooltipKapfenberg));\r\n\t\tviewerBruck.addSelectionChangedListener(createTooltipListener(viewerBruck, tooltipBruck));\r\n\t\tviewerWien.addSelectionChangedListener(createTooltipListener(viewerWien, tooltipWien));\r\n\t\tviewerMariazell.addSelectionChangedListener(createTooltipListener(viewerMariazell, tooltipMariazell));\r\n\r\n\t\t// sort the table by default\r\n\t\tviewerLeoben.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerGraz.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerKapfenberg.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerBruck.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerWien.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerMariazell.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\r\n\t\tmakeActionsBruck(viewerBruck);\r\n\t\tmakeActionsKapfenberg(viewerKapfenberg);\r\n\t\tmakeActionsLeoben(viewerLeoben);\r\n\t\tmakeActionsMariazell(viewerMariazell);\r\n\t\tmakeActionsGraz(viewerGraz);\r\n\t\tmakeActionsWien(viewerWien);\r\n\r\n\t\thookContextMenuLeoben(viewerLeoben);\r\n\t\thookContextMenuGraz(viewerGraz);\r\n\t\thookContextMenuWien(viewerWien);\r\n\t\thookContextMenuMariazell(viewerMariazell);\r\n\t\thookContextMenuBruck(viewerBruck);\r\n\t\thookContextMenuKapfenberg(viewerKapfenberg);\r\n\r\n\t\t// add the form actions\r\n\t\tcreateToolBarActions();\r\n\r\n\t\t// apply the filters\r\n\t\tapplyFilters();\r\n\r\n\t\t// register listeners to keep in track\r\n\t\tNetWrapper.registerListener(this, Transport.class);\r\n\t\tUiWrapper.getDefault().registerListener(this);\r\n\r\n\t\t// initialize the view with current data\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void createControl(Composite parent) {\n\t\t\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\t\tGridData gd = new GridData(GridData.FILL_HORIZONTAL);\r\n\t\tcontainer.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel nameLabel = new Label(container, SWT.NULL);\r\n\t\tnameText = new Text(container, SWT.BORDER | SWT.SINGLE);\r\n\t\tnameLabel.setText(BundleInternationalization.getString(\"NameLabel\")+\":\");\r\n\t\tnameText.setLayoutData(gd);\r\n\t\t// Listener to validate the project name when user finishes writing\r\n\t\tnameText.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\twizardChanged();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tLabel descriptionLabel = new Label(container, SWT.NULL);\r\n\t\tdescriptionText = new Text(container, SWT.BORDER | SWT.SINGLE);\r\n\t\tdescriptionLabel.setText(BundleInternationalization.getString(\"DescriptionLabel\")+\":\");\r\n\t\tdescriptionText.setLayoutData(gd);\r\n\t\t// Listener to validate the project description when user finishes writing\r\n\t\tdescriptionText.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\twizardChanged();\r\n\t\t\t}\r\n\t\t});\t\t\r\n\t\t\r\n\t\tLabel startDateLabel = new Label(container, SWT.NULL);\r\n\t\tstartDateText = new DateTime(container, SWT.DATE | SWT.BORDER | SWT.SINGLE);\r\n\t\tstartDateLabel.setText(BundleInternationalization.getString(\"StartDateLabel\")+\":\");\t\r\n\t\tstartDateText.setLayoutData(gd);\r\n\t\t\r\n\r\n\t\tLabel endDateLabel = new Label(container, SWT.NULL);\r\n\t\tendDateText = new DateTime(container, SWT.DATE | SWT.BORDER | SWT.SINGLE);\r\n\t\tendDateLabel.setText(BundleInternationalization.getString(\"EndDateLabel\")+\":\");\t\r\n\t\tendDateText.setLayoutData(gd);\r\n\t\t\r\n\t\tLabel budgetLabel = new Label(container, SWT.NULL);\r\n\t\tbudgetText = new Text(container, SWT.BORDER | SWT.SINGLE);\r\n\t\tbudgetLabel.setText(BundleInternationalization.getString(\"BudgetLabel\")+\":\");\r\n\t\tbudgetText.setLayoutData(gd);\r\n\t\tbudgetText.addListener (SWT.Verify, new Listener () {\r\n public void handleEvent (Event event) {\r\n \tvalidateDouble(event);\r\n }\r\n\t\t}); \r\n\t\tbudgetText.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\twizardChanged();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tLabel quantityLinesLabel = new Label(container, SWT.NULL);\r\n\t\tquantityLinesText = new Text(container, SWT.BORDER | SWT.SINGLE);\r\n\t\tquantityLinesLabel.setText(BundleInternationalization.getString(\"NumberCodeLinesLabel\")+\":\");\r\n\t\tquantityLinesText.setLayoutData(gd);\r\n\t\tquantityLinesText.addListener (SWT.Verify, new Listener () {\r\n public void handleEvent (Event event) {\r\n \tvalidateInt(event);\r\n }\r\n\r\n\t\t});\r\n\t\tquantityLinesText.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\twizardChanged();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tLabel domainLabel = new Label(container, SWT.NULL);\r\n\t\tdomainText = new Text(container, SWT.BORDER | SWT.SINGLE);\r\n\t\tdomainLabel.setText(BundleInternationalization.getString(\"DomainLabel\")+\":\");\r\n\t\tdomainText.setLayoutData(gd);\r\n\t\t// Listener to validate the domain text when user finishes writing\r\n\t\tdomainText.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\twizardChanged();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tLabel progLanguageLabel = new Label(container, SWT.NULL);\r\n\t\tprogLanguageCombo = new Combo(container, SWT.DROP_DOWN | SWT.READ_ONLY);\r\n\t\tprogLanguageLabel.setText(BundleInternationalization.getString(\"ProgrammingLanguageLabel\")+\":\");\r\n\t\t// progLanguageCombo.setLayoutData(gd);\t\r\n\t\tprogLanguageCombo.setItems (new String [] {\"Java\", \"Ada\", \"C++\", \"C#\", \"Cobol\", \"ASP\", \"JSP\"});\r\n\t\tprogLanguageCombo.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\twizardChanged();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tLabel estimatedHoursLabel = new Label(container, SWT.NULL);\r\n\t\testimatedHoursText = new Text(container, SWT.BORDER | SWT.SINGLE);\r\n\t\testimatedHoursLabel.setText(BundleInternationalization.getString(\"EstimatedHoursLabel\")+\":\");\r\n\t\testimatedHoursText.setLayoutData(gd);\r\n\t\testimatedHoursText.addListener (SWT.Verify, new Listener () {\r\n public void handleEvent (Event event) {\r\n \tvalidateInt(event);\r\n }\r\n\r\n\t\t});\r\n\t\testimatedHoursText.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\twizardChanged();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\twizardChanged();\r\n\t\tsetControl(container);\r\n\r\n\t}", "@Override\n\tprotected void createShell() {\n\t\tString shellText = \"Add a New Pharmacy\";\n\t\tRectangle bounds = new Rectangle(25, 0, 800, 680);\n\t\tbuildShell(shellText, bounds);\n\t}" ]
[ "0.68526053", "0.62691057", "0.6167926", "0.60599536", "0.6050022", "0.60065675", "0.5963823", "0.58815575", "0.5847559", "0.58372223", "0.5829396", "0.5809296", "0.5792717", "0.5766894", "0.5722605", "0.57127994", "0.5686071", "0.5676578", "0.5670549", "0.56560785", "0.5645803", "0.5642618", "0.56340915", "0.56336147", "0.5627132", "0.56070346", "0.55795383", "0.5579399", "0.5579173", "0.55781513", "0.557128", "0.55685633", "0.5561475", "0.55334914", "0.5530039", "0.55265576", "0.5525424", "0.55163544", "0.55160415", "0.5512862", "0.5501325", "0.549625", "0.54921454", "0.5491514", "0.5490904", "0.5471159", "0.546917", "0.5464655", "0.5461105", "0.5454747", "0.5449954", "0.544928", "0.54334986", "0.54318863", "0.54274523", "0.5424078", "0.54235595", "0.5415701", "0.5414662", "0.5409799", "0.5404038", "0.54036295", "0.54009783", "0.540085", "0.5400205", "0.5396499", "0.5393004", "0.53922", "0.5374904", "0.53722847", "0.5366509", "0.53571016", "0.53505325", "0.5346315", "0.5344213", "0.53417486", "0.5336517", "0.5336517", "0.5336517", "0.53352106", "0.53338605", "0.53238606", "0.5321588", "0.53120875", "0.5310201", "0.53089625", "0.5307703", "0.5307594", "0.5307382", "0.53028136", "0.5295287", "0.5292707", "0.5291762", "0.5287003", "0.5284759", "0.5284313", "0.52830523", "0.5277967", "0.52669287", "0.52548015" ]
0.64421856
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() { btnGroupTypePhone = new javax.swing.ButtonGroup(); selCountry = new javax.swing.JComboBox<>(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); txtPhone = new javax.swing.JTextField(); btnCheck = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); txtResult = new javax.swing.JTextArea(); radPhoneTypeNormal = new javax.swing.JRadioButton(); radPhoneTypeShort = new javax.swing.JRadioButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel1.setText("Kiểm tra số điện thoại"); jLabel2.setText("Mã nước:"); jLabel3.setText("Số điện thoại:"); btnCheck.setText("Kiểm tra"); btnCheck.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCheckActionPerformed(evt); } }); txtResult.setEditable(false); txtResult.setColumns(20); txtResult.setLineWrap(true); txtResult.setRows(5); jScrollPane1.setViewportView(txtResult); btnGroupTypePhone.add(radPhoneTypeNormal); radPhoneTypeNormal.setSelected(true); radPhoneTypeNormal.setText("Bình thường"); btnGroupTypePhone.add(radPhoneTypeShort); radPhoneTypeShort.setText("Ngắn"); 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() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btnCheck) .addGroup(layout.createSequentialGroup() .addComponent(radPhoneTypeNormal) .addGap(18, 18, 18) .addComponent(radPhoneTypeShort)) .addComponent(txtPhone) .addComponent(selCountry, 0, 292, Short.MAX_VALUE)))) .addGap(0, 211, Short.MAX_VALUE)) .addComponent(jScrollPane1)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(selCountry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(radPhoneTypeNormal) .addComponent(radPhoneTypeShort)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE) .addComponent(btnCheck) .addGap(18, 18, 18) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); pack(); }
{ "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 BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public NewCustomerGUI() {\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 kunde() {\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 MusteriEkle() {\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 frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\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\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 P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public 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 CovidGUI(){\n initComponents();\n }" ]
[ "0.73199165", "0.7291065", "0.7291065", "0.7291065", "0.72868747", "0.72488254", "0.7214099", "0.7209363", "0.7196111", "0.7190702", "0.7184576", "0.71590984", "0.71483636", "0.7093415", "0.70814407", "0.70579475", "0.69872457", "0.69773155", "0.6955104", "0.69544697", "0.69453543", "0.6943464", "0.69364315", "0.6931576", "0.6928309", "0.6925433", "0.69250214", "0.69115317", "0.6911434", "0.6893781", "0.6892524", "0.6891883", "0.6891585", "0.68891054", "0.6883182", "0.68830794", "0.6881544", "0.68788856", "0.6876481", "0.6873896", "0.6871883", "0.6859969", "0.6856538", "0.6855796", "0.6855392", "0.68540794", "0.68534625", "0.6853007", "0.6853007", "0.6844998", "0.6837484", "0.68364847", "0.68297", "0.6829288", "0.6827209", "0.6824552", "0.6822856", "0.68174845", "0.6817476", "0.68111503", "0.6809666", "0.6809588", "0.6809156", "0.68081236", "0.6802404", "0.6794206", "0.6793367", "0.6792882", "0.6791294", "0.6789582", "0.67894405", "0.6788515", "0.6782408", "0.6766765", "0.6766263", "0.67650926", "0.67574364", "0.6756913", "0.6753227", "0.67513406", "0.6741571", "0.6740101", "0.6737476", "0.6737115", "0.67346376", "0.6727922", "0.6727414", "0.67207795", "0.67162555", "0.67161065", "0.6715331", "0.6709024", "0.67072886", "0.6703357", "0.67023003", "0.6701596", "0.66995883", "0.6699478", "0.6694889", "0.66919625", "0.6689987" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.jdbcAuthentication().dataSource(dataSource).withDefaultSchema() .withUser(User.withUsername("user").password("user").roles("USER")) .withUser(User.withUsername("admin").password("admin").roles("ADMIN")) .usersByUsernameQuery("select username,password,enabled from users where username=?") .authoritiesByUsernameQuery("select username,authority from authorities where username=?"); }
{ "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 protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/admin").hasRole("ADMIN").antMatchers("/user").hasRole("USER") .antMatchers("/").permitAll().antMatchers("/h2-console/**").permitAll().and().formLogin(); http.csrf().disable(); http.headers().frameOptions().disable(); }
{ "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
/ You are given two nonempty linked lists representing two nonnegative integers. The most significant digit comes first and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Follow up: What if you cannot modify the input lists? In other words, reversing the lists is not allowed. Example: Input: (7 > 2 > 4 > 3) + (5 > 6 > 4) Output: 7 > 8 > 0 > 7
public ListNode addTwoNumbers(ListNode l1, ListNode l2) { Stack<Integer> s1 = new Stack<>(); Stack<Integer> s2 = new Stack<>(); while (l1 != null) { s1.push(l1.val); l1 = l1.next; } while (l2 != null) { s2.push(l2.val); l2 = l2.next; } ListNode current = new ListNode(0); int overflow = 0; while (!s1.empty() || !s2.empty()) { int x = (!s1.empty()) ? s1.pop() : 0; int y = (!s2.empty()) ? s2.pop() : 0; int value = overflow + x + y; overflow = value / 10; current.val = value % 10; ListNode temp = new ListNode(overflow); temp.next = current; current = temp; } return current.val == 0 ? current.next : current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ListNode addTwoNumbers2(ListNode l1, ListNode l2) {\n ListNode c1 = l1;\n ListNode c2 = l2;\n ListNode sentinel = new ListNode(0);\n ListNode d = sentinel;\n int sum = 0;\n while (c1 != null || c2 != null) {\n sum /= 10;\n if (c1 != null) {\n sum += c1.val;\n c1 = c1.next;\n }\n if (c2 != null) {\n sum += c2.val;\n c2 = c2.next;\n }\n d.next = new ListNode(sum % 10);\n d = d.next;\n }\n if (sum / 10 == 1) {\n d.next = new ListNode(1);\n }\n return sentinel.next;\n }", "ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n ListNode curL1 = l1;\n ListNode curL2 = l2;\n int add = 0;\n while (curL1 != null && curL2 != null) {\n int result = 0;\n int total = curL1.val + curL2.val + add;\n if (total >= 10) {\n result = total % 10;\n add = 1;\n } else {\n result = total;\n add = 0;\n }\n curL1.val = result;\n if (curL2.next != null && curL1.next == null) {\n curL2.next.val += add;\n curL1.next = curL2.next;\n break;\n }\n if (curL1.next != null && curL2.next == null) {\n curL1.next.val += add;\n break;\n }\n if (curL1.next == null && curL2.next == null && add == 1) {\n curL1.next = new ListNode(1);\n break;\n }\n curL1 = curL1.next;\n curL2 = curL2.next;\n }\n if (curL1 != null && curL1.next != null) {\n curL1 = curL1.next;\n }\n while (curL1 != null) {\n if (curL1.val >= 10) {\n curL1.val = curL1.val % 10;\n if (curL1.next == null) {\n curL1.next = new ListNode(1);\n curL1 = curL1.next;\n } else {\n curL1 = curL1.next;\n curL1.val += 1;\n }\n\n } else {\n break;\n }\n }\n return l1;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n Stack<Integer> stack1 = new Stack<>(), stack2 = new Stack<>();\n if(l1 == null) return l2;\n if(l2 == null) return l1;\n int carry = 0;\n ListNode tmp1 = l1, tmp2 = l2;\n while(tmp1 != null){\n \tstack1.push(tmp1.val);\n \ttmp1 = tmp1.next;\n } \n while(tmp2 != null){\n \tstack2.push(tmp2.val);\n \ttmp2 = tmp2.next;\n }\n int val1 = 0, val2 = 0, sum = 0;\n while(!stack1.isEmpty() || !stack2.isEmpty()){\n \tif(!stack1.isEmpty()){\n \t\tval1 = stack1.pop();\n \t}else{\n \t\tval1 = 0;\n \t}\n \tif(!stack2.isEmpty()){\n \t\tval2 = stack2.pop();\n \t}else{\n \t\tval2 = 0;\n \t}\n \tsum = val1 + val2 + carry;\n \tcarry = sum / 10;\n \ttmp1 = new ListNode(sum % 10);\n \ttmp1.next = tmp2;\n \ttmp2 = tmp1;\n }\n if(carry != 0){\n tmp1 = new ListNode(carry);\n tmp1.next = tmp2;\n tmp2 = tmp1;\n }\n return tmp1;\n }", "public static ListAdd.ListNode addTwoNumbers(ListAdd.ListNode l1, ListAdd.ListNode l2) {\n if (l1 == null)\n return l2;\n if (l2 == null)\n return l1;\n ListAdd.ListNode res = null, head = null;\n int total = 0;\n int carry = 0;\n while (l1 != null && l2 != null) {\n if (res == null) {\n total = (l1.val + l2.val);\n carry = total / 10;\n res = new ListAdd.ListNode(total % 10); //13 % 10 = 3\n head = res;\n } else {\n total = (l1.val + l2.val + carry);\n carry = total / 10;\n\n res.next = new ListAdd.ListNode(total % 10);\n res = res.next;\n }\n l1 = l1.next;\n l2 = l2.next;\n }\n while (l1 != null) {\n total = (l1.val + carry);\n carry = total / 10;\n res.next = new ListAdd.ListNode(total % 10);\n res = res.next;\n l1 = l1.next;\n }\n while (l2 != null) {\n total = (l2.val + carry);\n carry = total / 10;\n res.next = new ListAdd.ListNode(total % 10);\n res = res.next;\n l2 = l2.next;\n }\n if (carry > 0) {\n res.next = new ListAdd.ListNode(carry);\n }\n return head;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n \tif(l1==null && l2==null)\n\t\treturn null;\n\tif(l1==null)\n\t\treturn l2;\n\tif(l2==null)\n\t\treturn l1;\n\t\n\tint sum =0;\n\tint carry = 0;\n\tListNode resList = new ListNode(0);\n ListNode dummy = resList;\n\twhile(l1!=null && l2!=null){\n\t\tsum = l1.val + l2.val + carry;\n\t\tcarry = sum/10;\n\t\tListNode newNode = new ListNode(sum%10);\n\t\tresList.next = newNode;\n\t\tresList = resList.next;\n\t\tl1=l1.next;\n\t\tl2=l2.next;\n\t}\n\twhile(l1!=null){\n\t\tsum = l1.val + carry;\n\t\tcarry = sum/10;\n\t\tListNode newNode = new ListNode(sum%10);\n\t\tresList.next = newNode;\n\t\tresList = resList.next;\n\t\tl1=l1.next;\n\t}\n\twhile(l2!=null){\n\t\tsum = l2.val + carry;\n\t\tcarry = sum/10;\n\t\tListNode newNode = new ListNode(sum%10);\n\t\tresList.next = newNode;\n\t\tresList = resList.next;\n\t\tl2=l2.next;\n\t}\n\tif(carry!=0){\n\t\tListNode newNode = new ListNode(carry);\n\t\tresList.next = newNode;\n\t}\n return dummy.next;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n ListNode iter1=l1,iter2=l2,newHead=new ListNode(0),newTail;\n newTail=newHead;\n int res=0;\n int addition=0;\n while(l1!=null || l2!=null){\n int temp;\n if(l1==null){\n temp=l2.val+addition;\n l2=l2.next;\n }\n else if(l2==null){\n temp=l1.val+addition;\n l1=l1.next;\n }\n else{\n temp=l1.val+l2.val+addition;\n l1=l1.next;\n l2=l2.next;\n }\n addition=temp/10;\n temp=temp%10;\n newTail.next=new ListNode(temp);\n newTail=newTail.next;\n }\n if(addition!=0){\n newTail.next=new ListNode(addition);\n }\n return newHead.next;\n \n }", "public static ListNode addTwoNumbers(ListNode l1, ListNode l2) {\r\n\t\tif (l1==null) {\r\n\t\t\treturn l2;\r\n\t\t}\r\n\t\tif (l2==null) {\r\n\t\t\treturn l1;\r\n\t\t}\r\n ListNode pre=new ListNode(0);\r\n ListNode head=pre;\r\n int temp=0;\r\n //temp不等于0就是为了处理进位\r\n while(l1!=null||l2!=null||temp!=0){\r\n \tListNode cur = new ListNode(0);\r\n \tint sum=((l1==null)?0:l1.val)+((l2==null)?0:l2.val)+temp;\r\n \tcur.val=sum%10;\r\n \ttemp=sum/10;\r\n \tpre.next=cur;\r\n \tpre=cur;\r\n \tl1=(l1==null)?l1:l1.next;\r\n \tl2=(l2==null)?l2:l2.next;\r\n }\r\n return head.next;\r\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n\t\t \n\t\t ListNode result = null;\n\t\t \n\t\t ListNode temp = null;\n\t\t \n\t\t int sum = 0;\n\t\t \n\t\t int carryOver = 0;\n\t\t \n\t\t while(l1 != null || l2 != null)\n\t\t {\n\t\t\t int l1Num = 0;\n\t\t\t int l2Num = 0;\n\t\t\t \n\t\t\t if(l1 != null)\n\t\t\t {\n\t\t\t\t l1Num = l1.val;\n\t\t\t\t l1 = l1.next;\n\t\t\t }\n\t\t\t \n\t\t\t if(l2 != null)\n\t\t\t {\n\t\t\t\t l2Num = l2.val;\n\t\t\t\t l2 = l2.next;\n\t\t\t }\n\t\t\t \n\t\t\t sum = carryOver + l1Num + l2Num;\n\t\t\t \n\t\t\t carryOver = sum / 10;\n\t\t\t \n\t\t\t ListNode node = new ListNode(sum % 10);\n\t\t\t \n\t\t\t if(result == null)\n\t\t\t {\n\t\t\t\t result = node;\n\t\t\t\t temp = node;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t temp.next = node;\n\t\t\t\t temp = node;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t \n\t\t if(carryOver > 0)\n\t\t {\n\t\t\t ListNode carryNode = new ListNode(carryOver);\n\t\t\t temp.next = carryNode;\n\t\t }\n\t\t // Find out the sum , have a carry over in case \n\t\t \n\t\t // create output links \n\t\t return result;\n\t }", "public static Node addStraightNumbersHelper(Node num1,Node num2){\n if(num1 == null){\n return null;\n }\n int carry = 0;\n Node result = addStraightNumbersHelper(num1.next,num2.next);\n if(result!=null) {\n carry = result.value / 10;\n result.value = result.value % 10;\n }\n Node superResult = new Node(num1.value+num2.value+carry);\n superResult.next=result;\n return superResult;\n\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n if (l1 == null) return l2;\n if (l2 == null) return l1;\n\n // create results head pointer with dummy node\n final ListNode results = new ListNode(0);\n // create and point results pointer to the head\n ListNode resultsPointer = results;\n\n // value to keep reminder from previous sum operation\n int carry = 0;\n\n // iterate numbers until we process both completely\n while (l1 != null || l2 != null) {\n // one of the numbers can be longer, that's why adding zeros to shorter number\n final int digit1 = l1 != null ? l1.val : 0;\n final int digit2 = l2 != null ? l2.val : 0;\n // just simple math https://en.wikipedia.org/wiki/Carry_(arithmetic)\n final int sum = digit1 + digit2 + carry;\n final int result = sum % 10;\n carry = sum / 10;\n\n // save result in results list\n resultsPointer.next = new ListNode(result);\n resultsPointer = resultsPointer.next;\n\n // move numbers to the next digits, if number has more digits\n if (l1 != null) l1 = l1.next;\n if (l2 != null) l2 = l2.next;\n }\n\n // if there is carry left, just add it to result\n if (carry > 0) {\n resultsPointer.next = new ListNode(carry);\n }\n\n // remove first dummy node\n return results.next;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n\t\tListNode dummyHead = new ListNode(0);\n\t\tListNode p = l1, q = l2, curr = dummyHead;\n\t\tint carry = 0;\n\t\twhile (p != null || q != null) {\n\t\t\tint x = (p != null) ? p.val : 0;\n\t\t\tint y = (q != null) ? q.val : 0;\n\t\t\tint sum = carry + x + y;\n\t\t\tcarry = sum / 10;\n\t\t\tcurr.next = new ListNode(sum % 10);\n\t\t\tcurr = curr.next;\n\t\t\tif (p != null)\n\t\t\t\tp = p.next;\n\t\t\tif (q != null)\n\t\t\t\tq = q.next;\n\t\t}\n\t\tif (carry > 0) {\n\t\t\tcurr.next = new ListNode(carry);\n\t\t}\n\t\treturn dummyHead.next;\n\t}", "public static Node addTwoNumbers(Node l1, Node l2) {\n int carry = 0;\n Node dummyHead = new Node(0, null);\n Node current = dummyHead;\n\n while (l1 != null || l2 != null) {\n int x = (l1 != null) ? l1.getData() : 0;\n int y = (l2 != null) ? l2.getData() : 0;\n int sum = x + y + carry;\n carry = sum / 10;\n current.next = new Node(sum % 10, null);\n current = current.next;\n // Next index\n if (l1 != null) {\n l1 = l1.next;\n }\n if (l2 != null) {\n l2 = l2.next;\n }\n }\n if (carry > 0) {\n current.next = new Node(carry, null);\n }\n return dummyHead.next;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2){\r\n\t\tint sum=0,carry=0;\r\n\t\tListNode prebefore=new ListNode(0),run=prebefore;\r\n\t\twhile(!(l1==null && l2 ==null && carry==0)){\r\n\t\t\tsum=(l1==null?0:l1.val)+(l2==null?0:l2.val)+carry;\r\n\t\t\tcarry=sum/10;\r\n\t\t\trun.next=new ListNode(sum%10);\r\n\t\t\trun=run.next;\r\n\t\t\tl1=(l1==null?null:l1.next);\r\n\t\t\tl2=(l2==null?null:l2.next);\r\n\t\t\t\r\n\t\t}\r\n\t\tListNode res=prebefore.next;//and it is better to delete the prebefore node\r\n\t\tprebefore=null;\r\n\t\treturn res;\r\n\t}", "public static void main(String[] args) {\n\t\t// 987 + 12 = 789 + 21=> 810 -> 018\n\t\tListNode head1 = new ListNode(0);\n//\t\thead1 = head1.insert(4);\n//\t\thead1 = head1.insert(2);\n\n\t\tListNode head2 = new ListNode(1);\n//\t\thead2 = head2.insert(6);\n//\t\thead2 = head2.insert(5);\n\n\t\tListNode output = addTwoNumbers(head1, head2);\n\t\t// ListNode toReturn = reverseList(output);\n\t\tSystem.out.println(output);\n\t}", "public static MyLinkedList add(MyLinkedList list1, MyLinkedList list2){\n //first reverse both the list, so that unit place can come to head\n list1.reverse();\n list2.reverse();\n MyLinkedList resposne = new MyLinkedList();\n int carry = 0;\n Node cursor1 = list1.head;\n Node cursor2 = list2.head;\n while(cursor1 != null || cursor2 != null) {\n\n int sum = carry ;\n if(cursor1!=null){\n sum += cursor1.data;\n cursor1 = cursor1.next;\n }\n\n if(cursor2!=null) {\n sum += cursor2.data;\n cursor2 = cursor2.next;\n }\n\n carry = sum / 10;\n resposne.insert(sum % 10);\n\n }\n //very important to remember\n if(carry!=0){\n resposne.insert(carry);\n }\n\n resposne.reverse();\n return resposne;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n \tint sum = 0;\n \tListNode l3 = new ListNode(0);\n \tListNode l = l3;\n \twhile (l1 != null || l2 != null || sum != 0) {\n \t\tif (l1 != null && l2 != null) {\n \t\t\tsum = l1.val + l2.val + sum;\n \t\t\tl1 = l1.next;\n \t\t\tl2 = l2.next;\n \t\t} else if (l2 != null) {\n \t\t\tsum = l2.val + sum;\n \t\t\tl2 = l2.next;\n \t\t} else if (l1 != null) {\n \t\t\tsum = l1.val + sum;\n \t\t\tl1 = l1.next;\n \t\t}\n \t\tint val;\n \t\tif (sum > 9) {\n \t\t\tval = sum % 10;\n \t\t\tsum = sum/10;\n \t\t} else {\n \t\t\tval = sum;\n \t\t\tsum = 0;\n \t\t}\n \t\tl3.next = new ListNode (val);\n \t\tl3 = l3.next;\n \t}\n return l.next;\n }", "public static void main(String[] args) {\n\t\tString s1 = \"9999\", s2 = \"999\";\n\t\tListNode l1 = new ListNode(0), l2 = new ListNode(0), cur = l1;\n\t\tint i;\n\t\tfor (i = s1.length() - 1, cur = l1; i >= 0; i --, cur = cur.next)\n\t\t\tcur.next = new ListNode((int) s1.charAt(i) - (int) '0');\n\t\tfor (i = s2.length() - 1, cur = l2; i >= 0; i --, cur = cur.next)\n\t\t\tcur.next = new ListNode((int) s2.charAt(i) - (int) '0');\n\t\tfor (cur = l1.next; cur != null; cur = cur.next)\n\t\t\tSystem.out.printf(\"%d\", cur.val);\n\t\tSystem.out.println(\" (l1)\");\n\t\tfor (cur = l2.next; cur != null; cur = cur.next)\n\t\t\tSystem.out.printf(\"%d\", cur.val);\n\t\tSystem.out.println(\" (l2)\");\n\t\tListNode sum = new Solution().addTwoNumbers(l1.next, l2.next);\n\t\tfor (cur = sum; cur != null; cur = cur.next)\n\t\t\tSystem.out.printf(\"%d\", cur.val);\n\t\tSystem.out.println(\" (sum)\");\n\t}", "public static ListNode addTwoNumbersHelper(ListNode l1, ListNode l2, int carry) {\n // If both lists are null and carry is 0, then return 0.\n if(l1 == null && l2 == null && carry == 0){\n return null;\n }\n\n // Initialize value\n int value = carry;\n\n // Add both list node values if exists\n if(l1 != null){\n value += l1.val;\n }\n if(l2 != null){\n value += l2.val;\n }\n\n // Calculate the remainder and carry\n int rem = value % 10;\n carry = value / 10;\n\n // Create the result head node of the list\n ListNode resultNode = new ListNode(rem);\n\n // Set the next node if exists, using recursion\n if(l1 != null || l2 != null){\n ListNode nextNode = addTwoNumbersHelper( (l1 == null ? null : l1.next), (l2 == null ? null : l2.next), carry);\n resultNode.next = nextNode;\n }\n\n // Return the head of the list\n return resultNode;\n }", "public static SinglyLinkedList<Poly> addition(SinglyLinkedList.Entry<Poly> list1,\n\t\t\tSinglyLinkedList.Entry<Poly> list2) {\n\n\t\tSinglyLinkedList<Poly> ans = new SinglyLinkedList();\n\t\twhile (list1 != null && list2 != null) {\n\t\t\tPoly p = new Poly(0, 0);\n\t\t\tPoly p1 = list1.element;\n\t\t\tPoly p2 = list2.element;\n\t\t\tif (p1.pow == p2.pow) {\n\t\t\t\tp.pow = p1.pow;\n\t\t\t\tp.num = p1.num + p2.num;\n\t\t\t\tlist1 = list1.next;\n\t\t\t\tlist2 = list2.next;\n\t\t\t} else if (p1.pow > p2.pow) {\n\t\t\t\tp.pow = p1.pow;\n\t\t\t\tp.num = p1.num;\n\t\t\t\tlist1 = list1.next;\n\t\t\t} else {\n\t\t\t\tp.pow = p2.pow;\n\t\t\t\tp.num = p2.num;\n\t\t\t\tlist2 = list2.next;\n\t\t\t}\n\t\t\tif (p.num != 0)\n\t\t\t\tans.add(p);\n\t\t}\n\t\twhile (list1 != null) {\n\t\t\tans.add(list1.element);\n\t\t\tlist1 = list1.next;\n\t\t}\n\t\twhile (list2 != null) {\n\t\t\tans.add(list2.element);\n\t\t\tlist2 = list2.next;\n\t\t}\n\t\treturn ans;\n\t}", "public static void main(String[] args) {\n\n ListNode l1 = new ListNode(5);\n// l1.next = new ListNode(8);\n// l1.next.next = new ListNode(3);\n//\n ListNode l2 = new ListNode(5);\n// l2.next=new ListNode(6);\n// l2.next.next = new ListNode(4);\n addTwoNumbers(l1, l2);\n\n\n }", "public ListNode addTwoH(ListNode num1, ListNode num2, boolean carry) {\n // Base Case: both numbers empty, check for carried value\n if(num1 == null && num2 == null) {\n return carry ? new ListNode(1) : null;\n }\n // One number has terminated, call addOneH\n if(num1 == null) {\n return carry ? addOneH(num2, carry) : num2;\n }\n if(num2 == null) {\n return carry ? addOneH(num1, carry) : num1;\n }\n\n // Both numbers still contain values\n int sum = num1.val + num2.val + (carry ? 1 : 0);\n ListNode result = new ListNode(sum % 10);\n // Recursive call for next digit place\n result.next = addTwoH(num1.next, num2.next, sum > 9);\n return result;\n }", "public static ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n return addTwoNumbersHelper(l1, l2, 0);\n }", "public static void main(String[] args) {\n// ListNode listNode = linkedList.reverseList(linkedList.getHead());\n// linkedList.setHead(listNode);\n// linkedList.list();\n LinkedList list1 = new LinkedList();\n LinkedList list2 = new LinkedList();\n list1.add(2);\n list1.add(4);\n list1.add(3);\n\n list2.add(5);\n list2.add(6);\n list2.add(4);\n\n ListNode listNode = list1.addTwoNumbers(list1.getHead(), list2.getHead());\n System.out.println(listNode);\n\n }", "public static LinkedList sumTwoLinkedLists(LinkedList LL1, LinkedList LL2) {\n\n int multiplier = 1;\n int total = 0;\n\n LinkedList.Node currNodeLL1 = LL1.head;\n\n while (currNodeLL1 != null) {\n int subtotal = multiplier * currNodeLL1.data;\n total += subtotal;\n multiplier *= 10;\n currNodeLL1 = currNodeLL1.next;\n }\n\n LinkedList.Node currNodeLL2 = LL2.head;\n\n multiplier = 1;\n\n while (currNodeLL2 != null) {\n int subtotal = multiplier * currNodeLL2.data;\n total += subtotal;\n multiplier *= 10;\n currNodeLL2 = currNodeLL2.next;\n }\n\n String totalString = Integer.toString(total);\n\n System.out.println(totalString);\n\n int lenTotal = totalString.length();\n\n// Initiate the new linked list, with the data of the head node being the last digit in the total\n// that we've calculated.\n\n LinkedList LLsum = new LinkedList(getIntAt(total, lenTotal - 1));\n\n// Add the other nodes in turn, going backwards through the digits of the total.\n\n for (int i = lenTotal - 2; i >= 0; i--) {\n LLsum.appendToTail(getIntAt(total, i));\n }\n\n return LLsum;\n }", "public static void main(String[] args) {\n\n ListNode l1 = new ListNode(9);\n l1.next = new ListNode(9);\n ListNode l2 = new ListNode(1);\n\n Solution solution = new Solution();\n ListNode result = solution.addTwoNumbers(l1, l2);\n System.out.format(\"%s\", result.val);\n while (result.next != null) {\n result = result.next;\n System.out.format(\" -> %s\", result.val);\n }\n }", "public static LinkedList addLinkedLists(LinkedList lhs, LinkedList rhs) {\r\n\t\t// Check to see if either of the lists is null\r\n\t\tif (lhs != null && rhs == null) {\r\n\t\t\treturn lhs;\r\n\t\t} else if (lhs == null && rhs != null) {\r\n\t\t\treturn rhs;\r\n\t\t} else if (lhs == null && rhs == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tLinkedList result = new LinkedList();\r\n\t\tIntegerNode iter1 = lhs.getHead();\r\n\t\tIntegerNode iter2 = rhs.getHead();\r\n\r\n\t\tint sum = 0;\r\n\t\tint carry = 0;\r\n\r\n\t\twhile (iter1 != null && iter2 != null) {\r\n\t\t\tsum = iter1.getData() + iter2.getData() + carry;\r\n\t\t\tcarry = sum / 10;\r\n\t\t\tsum = sum % 10;\r\n\r\n\t\t\tresult.addToTail(new IntegerNode(sum));\r\n\t\t\titer1 = iter1.getNext();\r\n\t\t\titer2 = iter2.getNext();\r\n\t\t}\r\n\r\n\t\t// At least one of the iters is null now\r\n\t\twhile (iter1 != null) {\r\n\t\t\tsum = iter1.getData() + carry;\r\n\t\t\tcarry = sum / 10;\r\n\t\t\tsum = sum % 10;\r\n\r\n\t\t\tresult.addToTail(new IntegerNode(sum));\r\n\t\t\titer1 = iter1.getNext();\r\n\t\t}\r\n\r\n\t\twhile (iter2 != null) {\r\n\t\t\tsum = iter2.getData() + carry;\r\n\t\t\tcarry = sum / 10;\r\n\t\t\tsum = sum % 10;\r\n\r\n\t\t\tresult.addToTail(new IntegerNode(sum));\r\n\t\t\titer2 = iter2.getNext();\r\n\t\t}\r\n\r\n\t\tif (carry > 0) {\r\n\t\t\tresult.addToTail(new IntegerNode(carry));\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public static final ListNode<java.lang.Integer> Add (\n\t\tfinal ListNode<java.lang.Integer> headNode1,\n\t\tfinal ListNode<java.lang.Integer> headNode2)\n\t{\n\t\tint carry = 0;\n\t\tListNode<java.lang.Integer> node1 = headNode1;\n\t\tListNode<java.lang.Integer> node2 = headNode2;\n\t\tListNode<java.lang.Integer> additionHeadNode = null;\n\t\tListNode<java.lang.Integer> additionPrevNode = null;\n\n\t\twhile (null != node1 && null != node2) {\n\t\t\tint sum = carry + node1.value() + node2.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode1 = node1.next();\n\n\t\t\tnode2 = node2.next();\n\t\t}\n\n\t\twhile (null != node1) {\n\t\t\tint sum = carry + node1.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode1 = node1.next();\n\t\t}\n\n\t\twhile (null != node2) {\n\t\t\tint sum = carry + node2.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode2 = node2.next();\n\t\t}\n\n\t\treturn additionHeadNode;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tListNode l1 = new ListNode(1);\r\n\t\tListNode l2 = new ListNode(8);\r\n\t\tl1.next = l2;\r\n\t\t\r\n\t\tListNode r1 = new ListNode(0);\r\n\t\t\r\n\t\tListNode r = new AddTwoNumbers().addTwoNumbers(l1,r1);\r\n\t\twhile(r.next != null) {\r\n\t\t\tSystem.out.println(r.val);\r\n\t\t\tr = r.next;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Node l1 = new Node(2, new Node(4, new Node(3, null)));\n Node l2 = new Node(5, new Node(6, new Node(4, null)));\n Node result = AddTwoNumbers.addTwoNumbers(l1, l2);\n while (result != null) {\n System.out.println(result.getData());\n result = result.next;\n }\n }", "public static void main(String[] args) {\n\t\tAddTwoLinkedLists list1= new AddTwoLinkedLists();\n\t\tlist1.insertNode(9);\t\t\n\t\tlist1.insertNode(9);\n\t\tlist1.insertNode(9);\n\t\t\n\t\t\n\t\t//list1.reverseLinkedList();\n\t\t\n\t\tAddTwoLinkedLists list2= new AddTwoLinkedLists();\n\t\tlist2.insertNode(9);\n\t\tlist2.insertNode(9);\n\t\tlist2.insertNode(9);\n\t\t\n\t\t//list2.reverseLinkedList();\n\t\t\n\t\tAddTwoLinkedLists result= new AddTwoLinkedLists();\n\n\t\tresult.head = addTwoNumbers(list1.head, list2.head, list1.size, list2.size);\n\t\tresult.printLinkedList();\n\t\t\n\t}", "public LLNode solveAddLinkedList(LLNode l0, LLNode l1) {\n\t\tint carry = 0;\n\t\tLLNode head = null;\n\t\tLLNode node = null;\n\n\t\tint sum = l0.val + l1.val + carry;\n\t\tcarry = sum / 10;\n\t\tsum = sum % 10;\n\t\thead = new LLNode();\n\t\thead.val = sum;\n\t\tnode = head;\n\n\t\tl0 = l0.next;\n\t\tl1 = l1.next;\n\n\t\twhile (l0 != null || l1 != null) {\n\t\t\tsum = (l0 != null ? l0.val : 0) + (l1 != null ? l1.val : 0) + carry;\n\t\t\tcarry = sum / 10;\n\t\t\tsum = sum % 10;\n\t\t\thead.next = new LLNode();\n\t\t\thead = head.next;\n\t\t\thead.val = sum;\n\n\t\t\tif (l0 != null)\n\t\t\t\tl0 = l0.next;\n\t\t\tif (l1 != null)\n\t\t\t\tl1 = l1.next;\n\t\t}\n\n\t\tif (carry > 0) {\n\t\t\thead.next = new LLNode();\n\t\t\thead = head.next;\n\t\t\thead.val = carry;\n\t\t}\n\n\t\treturn node;\n\t}", "public static void main(String a[]){\n TwoSumLeet s = new TwoSumLeet();\n ListNode b0=new ListNode(5);\n ListNode b1=new ListNode(6);\n ListNode b2=new ListNode(4);\n ListNode a0=new ListNode(2);\n ListNode a1=new ListNode(4);\n ListNode a2=new ListNode(3);\n a0.next=a1;\n a1.next=a2;\n b0.next=b1;\n b1.next=b2;\n\n final ListNode answ = s.addTwoNumbers(a0, b0);\n\n for (ListNode y =answ; y != null; y=y.next)\n System.out.print(y.val+\" \");\n System.out.println();\n }", "public ListNode mergeTwoListsWithExtraLinkedList(ListNode l1, ListNode l2) {\n ListNode dummy=new ListNode();\n ListNode curr=dummy,temp;\n while(l1!=null && l2!=null){\n if(l1.val<l2.val){\n temp=new ListNode(l1.val);\n l1=l1.next;\n }\n else{\n temp=new ListNode(l2.val);\n l2=l2.next;\n }\n curr.next=temp;\n curr=curr.next;\n }\n while(l1!=null){\n curr.next=new ListNode(l1.val);\n l1=l1.next;\n curr=curr.next;\n }\n while(l2!=null){\n curr.next=new ListNode(l2.val);\n l2=l2.next;\n curr=curr.next;\n }\n return dummy.next;\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode head = new ListNode(0);\n ListNode l3 = head;\n while (l1 != null && l2 != null) {\n if (l1.val <= l2.val) {\n l3.next = l1;\n l1 = l1.next;\n } else {\n l3.next = l2;\n l2 = l2.next;\n }\n l3 = l3.next;\n }\n\n while (l1 != null) {\n l3.next = l1;\n l1 = l1.next;\n l3 = l3.next;\n }\n\n while (l2 != null) {\n l3.next = l2;\n l2 = l2.next;\n l3 = l3.next;\n }\n return head.next;\n }", "public static ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode dummy = new ListNode(-1), cur = dummy;\n while (l1 != null && l2 != null) {\n if (l1.val < l2.val) {\n cur.next = l1;\n l1 = l1.next;\n } else {\n cur.next = l2;\n l2 = l2.next;\n }\n cur = cur.next;\n }\n cur.next = (l1 != null) ? l1 : l2;\n return dummy.next;\n }", "public Node findSumOfNumbers(Node l1, Node l2) {\n\t\tint carry =0;\n \n\t\tNode newHead = null;\n\t\tNode tempNodeForIteration=null;\n\t\tint sum=0;\n \n\t\tint count=0;\n\t\twhile(l1!=null || l2!=null)\n\t\t{\n\t\t\tcount++;\n\t\t\tsum=carry;\n\t\t\tif(l1!=null)\n\t\t\t{\n\t\t\t\tsum=sum+l1.value;\n\t\t\t\tl1=l1.next;\n\t\t\t}\n \n\t\t\tif(l2!=null)\n\t\t\t{\n\t\t\t\tsum=sum+l2.value;\n\t\t\t\tl2=l2.next;\n\t\t\t}\n \n \n\t\t\tcarry=sum/10;\n\t\t\tsum=sum%10;\n\t\t\t// Check if it first node for the result\n\t\t\tif(count==1)\n\t\t\t{ \n\t\t\t\ttempNodeForIteration = new Node(sum);\n\t\t\t\tnewHead=tempNodeForIteration;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// 1-->5 -->7\n\t\t\t\t//tempNodeForIteration first node is =1\n\t\t\t\tNode tempSumNode=new Node(sum);\n\t\t\t\t//tempNodeForIteration second node is =5\n\t\t\t\ttempNodeForIteration.next=tempSumNode;\n\t\t\t\t//tempNodeForIteration node holding last node =5\n\t\t\t\ttempNodeForIteration=tempNodeForIteration.next;\n\t\t\t}\n \n\t\t}\n\t\tif(carry!=0)\n\t\t{\n\t\t\tNode tempNode=new Node(carry);\n\t\t\ttempNodeForIteration.next=tempNode;\n\t\t}\n\t\treturn newHead;\n\t}", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\r\n if (l1==null) {\r\n\t\t\treturn l2;\r\n\t\t}\r\n if (l2==null) {\r\n\t\t\treturn l1;\r\n\t\t}\r\n ListNode result=new ListNode(0);\r\n ListNode head=result;\r\n while(l1!=null&&l2!=null){\r\n \tif (l1.val<=l2.val) {\r\n\t\t\t\thead.next=l1;\r\n\t\t\t\tl1=l1.next;\r\n\t\t\t}else {\r\n\t\t\t\thead.next=l2;\r\n\t\t\t\tl2=l2.next;\r\n\t\t\t}\r\n \thead=head.next;\r\n }\r\n if (l1!=null) {\r\n\t\t\thead.next=l1;\r\n\t\t}\r\n if (l2!=null) {\r\n\t\t\thead.next=l2;\r\n\t\t}\r\n \r\n return result.next;\r\n }", "public static Node twoSumRegulate(Node n) {\n int len = n.getlength();\n for (int i = 0; i < len; i++) {\n int curpos = len - i - 1;\n int curvalue = n.get(curpos);\n\n if (curvalue > 9) {\n if (curpos == 0) {\n n.set(curpos, curvalue - 10);\n n = n.add(1, 0);\n } else {\n n.set(curpos, curvalue - 10);\n n.set(curpos - 1, n.get(curpos - 1) + 1);\n }\n }\n }\n return n;\n }", "public static void main(String[] args) {\n\t\tLinkedListOperation<Integer> opr1 = new LinkedListOperation<>();\r\n\t\tLinkedListOperation<Integer> opr2 = new LinkedListOperation<>();\r\n\t\t\r\n\t\tNode<Integer> node1 = new Node<>(1);\r\n\t\tNode<Integer> node2 = new Node<>(2);\r\n\t\tNode<Integer> node3 = new Node<>(3);\r\n\t\tNode<Integer> node4 = new Node<>(4);\r\n\t\tNode<Integer> node5 = new Node<>(5);\r\n\t\tNode<Integer> node6 = new Node<>(6);\r\n\t\t\r\n\t\topr1.addInLast(node1);\r\n\t\topr1.addInLast(node2);\r\n\t\topr1.addInLast(node3);\r\n\t\topr1.addInLast(node4);\r\n\t\topr1.addInLast(node5);\r\n\t\topr1.addInLast(node6);\r\n\t\t\r\n\t\topr2.addInLast(node1);\r\n\t\topr2.addInLast(node2);\r\n\t\topr2.addInLast(node3);\r\n\t\topr2.addInLast(node4);\r\n\t\topr2.addInLast(node5);\r\n\t\topr2.addInLast(node6);\r\n\t\t\r\n\t\topr1.reverse();\r\n\t\topr1.print();\r\n\t\tSystem.out.println(\"*********\");\r\n\t\topr2.reverse();\r\n\t\topr2.print();\r\n\t\t\r\n\t\t\r\n\t\t//add(opr1.start,opr2.start);\r\n\t}", "private List<Integer> merge(List<Integer> firstList, List<Integer> secondList) {\n List<Integer> resultList = new ArrayList<>();\n\n if (firstList.size() == 1 && secondList.size() == 1) {\n resultList.add(Math.min(firstList.get(0), secondList.get(0)));\n resultList.add(Math.max(firstList.get(0), secondList.get(0)));\n return resultList;\n }\n\n int firstIndex = 0;\n int secondIndex = 0;\n\n while (firstIndex < firstList.size() && secondIndex < secondList.size()) {\n if (firstList.get(firstIndex) < secondList.get(secondIndex)) {\n resultList.add(firstList.get(firstIndex));\n firstIndex++;\n } else {\n resultList.add(secondList.get(secondIndex));\n secondIndex++;\n }\n }\n\n if (firstIndex < firstList.size()) {\n for (int i = firstIndex; i < firstList.size(); i++) {\n resultList.add(firstList.get(i));\n }\n }\n\n if (secondIndex < secondList.size()) {\n for (int i = secondIndex; i < secondList.size(); i++) {\n resultList.add(secondList.get(i));\n }\n }\n\n return resultList;\n }", "public static void main(String[] args){\n System.out.println(\"Test 1: Lengths of numbers are equal\");\n int[] number1 = new int[]{2, 4, 3};\n int[] number2 = new int[]{5, 6, 4};\n // Create lists from digit arrays\n ListNode listNumber1 = createListFromDigitArray(number1);\n ListNode listNumber2 = createListFromDigitArray(number2);\n // Print contents of both lists\n printDigitListContents(listNumber1);\n printDigitListContents(listNumber2);\n // Add the lists\n ListNode listSum = addTwoNumbers(listNumber1, listNumber2);\n printDigitListContents(listSum);\n\n // Test 2: Lengths of numbers are unequal\n // (1->2->4->3) + (5->6->4) = (6->8->8->3) ... => 3421 + 465 = 3886\n System.out.println(\"Test 2: Lengths of numbers are unequal\");\n int[] number3 = new int[]{1, 2, 4, 3};\n int[] number4 = new int[]{5, 6, 4};\n // Create lists from digit arrays\n ListNode listNumber3 = createListFromDigitArray(number3);\n ListNode listNumber4 = createListFromDigitArray(number4);\n // Print contents of both lists\n printDigitListContents(listNumber3);\n printDigitListContents(listNumber4);\n // Add the lists\n ListNode listSum2 = addTwoNumbers(listNumber3, listNumber4);\n printDigitListContents(listSum2);\n }", "public static ListNode mergeTwoList(ListNode list1, ListNode list2){\n if (list1 == null) return list2;\n if (list2 == null) return list1;\n\n ListNode head = null;\n ListNode p = list1;\n ListNode q = list2;\n\n if (p.val <= q.val) {\n head = p;\n p = p.next;\n }\n else {\n head = q;\n q = q.next;\n }\n ListNode point = head;\n\n while (p != null && q != null){\n if (p.val <= q.val){\n point.next = p;\n p = p.next;\n\n }else {\n point.next = q;\n q = q.next;\n\n }\n point = point.next;\n }\n\n if (p == null){\n point.next = q;\n }else {\n point.next = p;\n }\n\n return head;\n }", "public ListNode mergeTwoListsIterative(ListNode l1, ListNode l2) {\n ListNode dummy=new ListNode();\n ListNode curr=dummy;\n while(l1!=null && l2!=null){\n if(l1.val<l2.val){\n curr.next=l1;\n l1=l1.next;\n curr=curr.next;\n }\n else{\n curr.next=l2;\n l2=l2.next;\n curr=curr.next;\n }\n }\n while(l1!=null){\n curr.next=l1;\n l1=l1.next;\n curr=curr.next;\n }\n while(l2!=null){\n curr.next=l2;\n l2=l2.next;\n curr=curr.next;\n }\n return dummy.next;\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n\t\t//The base condition if one of the list is empty so then return the other list as it is.\n\t\tif (l1 == null) return l2;\n\t\tif (l2 == null) return l1;\n\t\t//Intializing the head of the ans\n\t\tListNode ans = l1;\n\t\tif (l2.val < l1.val) {\n\t\t\tans = l2;\n\t\t\tl2 = l2.next;\n\t\t} else l1 = l1.next;\n\t\t//Initializing ans in another variable so that it should'nt get lost.\n\t\tListNode ans2 = ans;\n\t\twhile (l1 != null && l2 != null) {\n\t\t\tif (l1.val <= l2.val) {\n\t\t\t\tans.next = l1;\n\t\t\t\tl1 = l1.next;\n\t\t\t\tans = ans.next;\n\t\t\t} else {\n\t\t\t\tans.next = l2;\n\t\t\t\tl2 = l2.next;\n\t\t\t\tans = ans.next;\n\t\t\t}\n\t\t}\n\t\t//if list are not same then one list will be left to traverse\n\t\tif (l1 == null && l2 != null) ans.next = l2;\n\t\tif (l2 == null && l1 != null) ans.next = l1;\n\t\treturn ans2;\n\t}", "public static void main(String[] args) {\n\t\tint[] p = { 9 };\n\t\tint[] q = { 1, 9, 9, 9, 9, 9, 9, 9, 9, 9 };\n\t\tListNode l = new ListNode(2);\n\t\tListNode pp = l;\n\t\tListNode l2 = new ListNode(2);\n\t\tListNode pp2 = l2;\n\n\t\tfor (int i : p) {\n\t\t\tl.next = new ListNode(i);\n\t\t\tl = l.next;\n\t\t}\n\t\tfor (int i : q) {\n\t\t\tl2.next = new ListNode(i);\n\t\t\tl2 = l2.next;\n\t\t}\n\n\t\taddTwoNumbers(pp.next, pp2.next);\n\n\t}", "public static ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n if (l1 == null || l2 == null)\n return l1 != null ? l1 : l2;\n\n ListNode dummy = new ListNode(-1);\n ListNode prev = dummy, c1 = l1, c2 = l2;\n\n while (c1 != null && c2 != null) {\n if (c1.val <= c2.val) {\n prev.next = c1;\n c1 = c1.next;\n } else {\n prev.next = c2;\n c2 = c2.next;\n }\n prev = prev.next;\n }\n\n prev.next = c1 != null ? c1 : c2;\n ListNode head = dummy.next;\n dummy.next = null; // delete dummy;\n return head;\n }", "public ListNode mergeTwoLists(ListNode a, ListNode b) {\r\n\t\tListNode merged = new ListNode(0);\r\n\r\n\t\tListNode first = a;\r\n\t\tListNode second = b;\r\n\t\tListNode third = merged;\r\n\r\n\t\twhile (first != null && second != null) {\r\n\t\t\tif (first.val <= second.val) {\r\n\t\t\t\tthird.next = first;\r\n\t\t\t\tfirst = first.next;\r\n\t\t\t} else {\r\n\t\t\t\tthird.next = second;\r\n\t\t\t\tsecond = second.next;\r\n\t\t\t}\r\n\t\t\tthird = third.next;\r\n\t\t}\r\n\r\n\t\tif (first != null) {\r\n\t\t\tthird.next = first;\r\n\t\t}\r\n\t\tif (second != null) {\r\n\t\t\tthird.next = second;\r\n\t\t}\r\n\r\n\t\treturn merged.next;\r\n\t}", "public static void main(String[] args) {\n\t\tListNode l11 = new ListNode(2);\n\t\tListNode l12 = new ListNode(4);\n\t\tListNode l13 = new ListNode(3);\n\t\tl11.next = l12;\n\t\tl12.next = l13;\n\n\t\tListNode l21 = new ListNode(5);\n\t\tListNode l22 = new ListNode(6);\n\t\tListNode l23 = new ListNode(4);\n\t\tl21.next = l22;\n\t\tl22.next = l23;\n\t\tListNode ret = addTwoNumbers(l11,l21);\n\t\tdo {\n\t\t\tSystem.out.println(ret.val);\n\t\t\tret = ret.next;\n\t\t}while(ret != null);\n\t}", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode prehead = new ListNode(-1);\n\n ListNode prev = prehead;\n while (l1 != null && l2 != null) {\n if (l1.val <= l2.val) {\n prev.next = l1;\n l1 = l1.next;\n } else {\n prev.next = l2;\n l2 = l2.next;\n }\n prev = prev.next;\n }\n\n // exactly one of l1 and l2 can be non-null at this point, so connect\n // the non-null list to the end of the merged list.\n prev.next = l1 == null ? l2 : l1;\n\n return prehead.next;\n }", "public static ListNode mergeTwoLists2(ListNode l1, ListNode l2) {\n ListNode prehead = new ListNode(-1);\n\n ListNode prev = prehead;\n while (l1 != null && l2 != null) {\n if (l1.val <= l2.val) {\n prev.next = l1;\n l1 = l1.next;\n } else {\n prev.next = l2;\n l2 = l2.next;\n }\n prev = prev.next;\n }\n\n // exactly one of l1 and l2 can be non-null at this point, so connect\n // the non-null list to the end of the merged list.\n prev.next = l1 == null ? l2 : l1;\n\n return prehead.next;\n\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode dummyHead = new ListNode(0);\n ListNode endOfSortedList = dummyHead;\n\n while (l1 != null && l2 != null) {\n if (l1.val < l2.val) {\n endOfSortedList.next = l1;\n l1 = l1.next;\n } else {\n endOfSortedList.next = l2;\n l2 = l2.next;\n }\n\n endOfSortedList = endOfSortedList.next;\n }\n\n if (l1 != null) {\n endOfSortedList.next = l1;\n }\n\n if (l2 != null) {\n endOfSortedList.next = l2;\n }\n\n return dummyHead.next;\n }", "int merge(int list1, int list2) {\n\t\t\n\t\t// Get values of the lists\n\t\t\n\t\tComparable c1 = array[list1];\n\t\tComparable c2 = array[list2];\n\n\t\t// compare values\n\t\t\n\t\tint small = list1, big = list2;\n\t\tif (c1 != c2 && c1 != null && c1.compareTo(c2) > 0) {\n\n\t\t\tsmall = list2;\n\t\t\tbig = list1;\n\t\t}\n\n\t\t/*\n\t\t * If small list has no tail - set big list to be small list tail\n\t\t * If small list has tail - merge it with the big list and set result to be small list tail\n\t\t */\n\t\t\n\t\tif (next[small] == NIL)\n\t\t\tnext[small] = big;\n\t\telse\n\t\t\tnext[small] = merge(next[small], big);\n\t\t\n\t\t// return small list with new tail\n\t\t\n\t\treturn small;\n\t}", "public static <T extends Comparable<? super T>> \n void union(SLL<T> list1, SLL<T> list2,\n SLL<T> result) {\n \n SLLNode<T> iterlist1 = list1.head;\n SLLNode<T> iterlist2 = list2.head;\n \n T itemlist1=null, itemlist2=null;\n \n // get first item in each list\n if ( iterlist1 != null )\n itemlist1 = iterlist1.info;\n if( iterlist2 != null )\n itemlist2 = iterlist2.info;\n \n while ( itemlist1 != null || itemlist2 != null ) {\n\n int compareResult;\n if( itemlist1 == null ) {\n compareResult = 1;\n } else if ( itemlist2 == null ) {\n compareResult = -1;\n } else {\n compareResult = itemlist1.compareTo(itemlist2);\n }\n \n if ( compareResult == 0 ) {\n result.addToTail(itemlist1); //appending to result list \n if( iterlist1.next != null ) {\n iterlist1 = iterlist1.next;\n itemlist1 = iterlist1.info;\n } else {\n itemlist1 = null;\n }\n \n if( iterlist2.next != null ) {\n iterlist2 = iterlist2.next;\n itemlist2 = iterlist2.info;\n } else {\n itemlist2 = null;\n } \n }\n else if ( compareResult < 0 ) { \n result.addToTail(itemlist1); //appending to result list\n if( iterlist1.next != null ) {\n iterlist1 = iterlist1.next;\n itemlist1 = iterlist1.info;\n } else {\n itemlist1 = null;\n }\n }\n else {\n result.addToTail(itemlist2);\n if( iterlist2.next != null ) {\n iterlist2 = iterlist2.next;\n itemlist2 = iterlist2.info;\n } else {\n itemlist2 = null;\n }\n }\n } \n }", "public static void main(String[] args) {\n\n Node n1 = new Node(5);\n n1.next = new Node(5);\n n1.next.next = new Node(5);\n\n Node n2 = new Node(5);\n n2.next = new Node(5);\n n2.next.next = new Node(5);\n\n AddTwoNumbers addTwoNumbers = new AddTwoNumbers();\n Node result = addTwoNumbers.add(n1,n2);\n\n while(result != null){\n System.out.println(result.data);\n result = result.next;\n }\n\n }", "public static void twoSum(Node x, Node y) {\n int lenX = x.getlength();\n int lenY = y.getlength();\n int lenLong = Math.max(lenX, lenY);\n Node result = new Node();\n int carryOn = 0;\n\n for (int i = 0; i < lenLong; i++) {\n int curposX = lenX - i - 1;\n int curposY = lenY - i - 1;\n int digitX = 0;\n int digitY = 0;\n if (curposX < 0) {\n digitX = 0;\n } else {\n digitX = x.get(curposX);\n }\n if (curposY < 0) {\n digitY = 0;\n } else {\n digitY = y.get(curposY);\n }\n // System.out.printf(\"x: %d y: %d \\n\", digitX, digitY);\n result = result.add(digitX + digitY, 0);\n\n }\n // result.printList();\n result = twoSumRegulate(result);\n System.out.println(\"the two sum result is:\");\n result.printList();\n }", "public static MySimpleLinkedList orderList(MySimpleLinkedList list1,\n\t\t\tMySimpleLinkedList list2) {\n\t\t\n\t\tMySimpleLinkedList aux = new MySimpleLinkedList();\n\t\t\n\t\tIteratorMySimpleLinkedList it1 = list1.iterator();\n\t\tIteratorMySimpleLinkedList it2 = list2.iterator();\n\t\t\n\t\tint val1, val2;\n\t\t\n\t\twhile(it1.hasNext() && it2.hasNext()) {\n\t\t\t\n\t\t\tval1 = (int) it1.get();\n\t\t\tval2 = (int) it2.get();\n\t\t\t\n\t\t\tif(val1 == val2) {\n\t\t\t\taux.insertLast(val1);\n\t\t\t\tit1.next();\n\t\t\t\tit2.next();\n\t\t\t}else if(val1 < val2) {\n\t\t\t\tit1.next();\n\t\t\t}else {\n\t\t\t\tit2.next();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn aux;\n\t}", "public static String addBinaryNumbers(String num1, String num2) {\r\n\t\tif (num1 == null || num2 == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tint index1 = num1.length() - 1;\r\n\t\tint index2 = num2.length() - 1;\r\n\t\tboolean carry = false;\r\n\t\tString result = \"\";\r\n\t\t\r\n\t\twhile(index1 >= 0 && index2 >= 0) {\r\n\t\t\tint sum = Integer.parseInt(num1.substring(index1, index1 + 1)) + Integer.parseInt(num2.substring(index2, index2 + 1));\r\n\t\t\tif (sum == 0) {\r\n\t\t\t\tif (carry) {\r\n\t\t\t\t\tresult += '1';\r\n\t\t\t\t\tcarry = false;\r\n\t\t\t\t} else\r\n\t\t\t\t\tresult += '0';\r\n\t\t\t} else if (sum == 1) {\r\n\t\t\t\tif (carry)\r\n\t\t\t\t\tresult += '0';\r\n\t\t\t\telse\r\n\t\t\t\t\tresult += '1';\r\n\t\t\t} else { // sum == 2\r\n\t\t\t\tif (carry)\r\n\t\t\t\t\tresult += '1';\r\n\t\t\t\telse {\r\n\t\t\t\t\tresult += '0';\r\n\t\t\t\t\tcarry = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tindex1--;\r\n\t\t\tindex2--;\r\n\t\t}\r\n\t\t\r\n\t\twhile(index1 >= 0) {\r\n\t\t\tif (num1.charAt(index1) == '0') {\r\n\t\t\t\tif (carry) {\r\n\t\t\t\t\tresult += '1';\r\n\t\t\t\t\tcarry = false;\r\n\t\t\t\t} else\r\n\t\t\t\t\tresult += '0';\r\n\t\t\t} else { // num1.charAt(index1) == '1'\r\n\t\t\t\tif (carry)\r\n\t\t\t\t\tresult += '0';\r\n\t\t\t\telse\r\n\t\t\t\t\tresult += '1';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tindex1--;\r\n\t\t}\r\n\t\t\r\n\t\twhile(index2 >= 0) {\r\n\t\t\tif (num2.charAt(index2) == '0') {\r\n\t\t\t\tif (carry) {\r\n\t\t\t\t\tresult += '1';\r\n\t\t\t\t\tcarry = false;\r\n\t\t\t\t} else\r\n\t\t\t\t\tresult += '0';\r\n\t\t\t} else { // num2.charAt(index2) == '1'\r\n\t\t\t\tif (carry)\r\n\t\t\t\t\tresult += '0';\r\n\t\t\t\telse\r\n\t\t\t\t\tresult += '1';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tindex2--;\r\n\t\t}\r\n\t\t\r\n\t\tif (carry)\r\n\t\t\tresult += '1';\r\n\t\t\r\n\t\t// reverse result string\r\n\t\tString reverseResult = \"\";\r\n\t\tfor (int i = result.length() - 1; i >= 0; i--)\r\n\t\t\treverseResult += result.charAt(i);\r\n\t\t\r\n\t\treturn reverseResult;\r\n\t}", "public static ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n if(l1 == null) {\n return l2;\n }\n\n if(l2 == null) {\n return l1;\n }\n ListNode newList;\n\n if(l1.val < l2.val) {\n newList = l1;\n\n l1 = l1.next;\n } else {\n newList = l2;\n l2 = l2.next;\n }\n\n ListNode head = newList;\n\n while (l1 != null && l2 != null) {\n if(l1.val < l2.val) {\n newList.next = l1;\n newList = newList.next;\n l1 = l1.next;\n } else {\n newList.next = l2;\n newList = newList.next;\n l2 = l2.next;\n }\n }\n\n if(l1 == null){\n newList.next = l2;\n } else {\n newList.next = l1;\n }\n\n return head;\n }", "public static void main(String[] args) {\n ListNode l1 = new ListNode(5);\n ListNode l2 = new ListNode(5);\n Solution solution = new Solution();\n StdOut.println(Tool.linkListToString(solution.addTwoNumbers(l1, l2)));\n }", "public static void main(String[] args) {\n// link.deleteAtIndex(1);\n// System.out.println(link.get(1));\n\n ListNode l1 = new ListNode(3);\n l1.add(9).add(9).add(9).add(9).add(9).add(9).add(9).add(9).add(9);\n ListNode l2 = new ListNode(7);\n N445TwoNumSum2 su = new N445TwoNumSum2();\n su.addTwoNumbers(l1,l2);\n }", "static <T> ListNode<T> listZipping(ListNode<T> list) {\n int size = 1;\n\n ListNode<T> current = list;\n while (current.next != null) {\n size++;\n current = current.next;\n }\n\n if (size < 2) return list;\n\n current = list;\n for (int i = 0; i < (size - 1) / 2; i++) current = current.next;\n\n ListNode<T> secondHalf = current.next;\n current.next = null;\n\n // reverse the second half\n current = secondHalf;\n while (current.next != null) {\n ListNode<T> tmp = current.next;\n current.next = tmp.next;\n tmp.next = secondHalf;\n secondHalf = tmp;\n }\n\n // merge\n ListNode<T> firstHalf = list;\n for (int i = 0; i < size / 2; i++) {\n ListNode<T> firstHalfNext = firstHalf.next;\n firstHalf.next = secondHalf;\n ListNode<T> secondHalfNext = secondHalf.next;\n secondHalf.next = firstHalfNext;\n\n firstHalf = firstHalfNext;\n secondHalf = secondHalfNext;\n }\n\n\n return list;\n }", "@SuppressWarnings(\"squid:S2259\")\n private void mergeInto(RootListNode<K> head, RootListNode<K> tail) {\n // if root list empty, just copy\n if (rootList.head == null) {\n rootList.head = head;\n rootList.tail = tail;\n return;\n }\n\n // initialize\n RootListNode<K> resultHead;\n RootListNode<K> resultTail;\n RootListNode<K> resultTailPrev = null;\n RootListNode<K> cur1 = rootList.head;\n RootListNode<K> cur2 = head;\n\n // add first node\n if (cur1.root.rank <= cur2.root.rank) {\n resultHead = cur1;\n resultTail = cur1;\n RootListNode<K> cur1next = cur1.next;\n cur1.next = null;\n cur1 = cur1next;\n if (cur1next != null) {\n cur1next.prev = null;\n }\n } else {\n resultHead = cur2;\n resultTail = cur2;\n RootListNode<K> cur2next = cur2.next;\n cur2.next = null;\n cur2 = cur2next;\n if (cur2next != null) {\n cur2next.prev = null;\n }\n }\n\n // merge\n int rank1; \n int rank2;\n while (true) {\n int resultRank = resultTail.root.rank;\n\n // read rank1\n if (cur1 != null) {\n rank1 = cur1.root.rank;\n } else {\n if (cur2 != null && cur2.root.rank <= resultRank) {\n rank1 = Integer.MAX_VALUE;\n } else {\n break;\n }\n }\n\n // read rank2\n if (cur2 != null) {\n rank2 = cur2.root.rank;\n } else {\n if (cur1 != null && cur1.root.rank <= resultRank) {\n rank2 = Integer.MAX_VALUE;\n } else {\n break;\n }\n }\n\n if (rank1 <= rank2) {\n switch (Integer.compare(rank1, resultRank)) {\n case 0:\n // combine into result\n resultTail.root = combine(cur1.root, resultTail.root);\n // remove cur1\n RootListNode<K> cur1next = cur1.next;\n cur1.next = null;\n if (cur1next != null) {\n cur1next.prev = null;\n }\n cur1 = cur1next;\n break;\n case -1:\n // can happen if three same ranks\n cur1next = cur1.next;\n // add before tail into result\n cur1.next = resultTail;\n resultTail.prev = cur1;\n cur1.prev = resultTailPrev;\n if (resultTailPrev != null) {\n resultTailPrev.next = cur1;\n } else {\n resultHead = cur1;\n }\n resultTailPrev = cur1;\n // advance cur1\n if (cur1next != null) {\n cur1next.prev = null;\n }\n cur1 = cur1next;\n break;\n case 1:\n // append into result\n resultTail.next = cur1;\n cur1.prev = resultTail;\n resultTailPrev = resultTail;\n resultTail = cur1;\n // remove cur1\n cur1 = cur1.next;\n resultTail.next = null;\n if (cur1 != null) {\n cur1.prev = null;\n }\n break;\n default:\n break;\n }\n } else {\n // symmetric case rank2 < rank1\n switch (Integer.compare(rank2, resultRank)) {\n case 0:\n // combine into result\n resultTail.root = combine(cur2.root, resultTail.root);\n // remove cur2\n RootListNode<K> cur2next = cur2.next;\n cur2.next = null;\n if (cur2next != null) {\n cur2next.prev = null;\n }\n cur2 = cur2next;\n break;\n case -1:\n // can happen if three same ranks\n cur2next = cur2.next;\n // add before tail into result\n cur2.next = resultTail;\n resultTail.prev = cur2;\n cur2.prev = resultTailPrev;\n if (resultTailPrev != null) {\n resultTailPrev.next = cur2;\n } else {\n resultHead = cur2;\n }\n resultTailPrev = cur2;\n // advance cur2\n if (cur2next != null) {\n cur2next.prev = null;\n }\n cur2 = cur2next;\n break;\n case 1:\n // append into result\n resultTail.next = cur2;\n cur2.prev = resultTail;\n resultTailPrev = resultTail;\n resultTail = cur2;\n // remove cur2\n cur2 = cur2.next;\n resultTail.next = null;\n if (cur2 != null) {\n cur2.prev = null;\n }\n break;\n default: \n break;\n }\n\n }\n }\n\n // record up to which point a suffix minimum update is needed\n RootListNode<K> updateSuffixFix = resultTail;\n\n // here rank of cur1 is more than result rank\n if (cur1 != null) {\n cur1.prev = resultTail;\n resultTail.next = cur1;\n resultTail = rootList.tail;\n }\n\n // here rank of cur2 is more than result rank\n if (cur2 != null) {\n cur2.prev = resultTail;\n resultTail.next = cur2;\n resultTail = tail;\n }\n\n // update suffix minimum\n updateSuffixMin(updateSuffixFix);\n\n // store final list\n rootList.head = resultHead;\n rootList.tail = resultTail;\n }", "public static ListNode mergeSortedList(ListNode headOne, ListNode headTwo){\n\t\tListNode dummy = new ListNode(-1);\n\t\tListNode current = dummy;\n\t\t\n\t\twhile(headOne != null && headTwo != null){\n\t\t\tif(headOne.value < headTwo.value){\n\t\t\t\tcurrent.next = headOne;\n\t\t\t\theadOne = headOne.next;\n\t\t\t}else{\n\t\t\t\tcurrent.next = headTwo;\n\t\t\t\theadTwo = headTwo.next;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif(headOne != null){\n\t\t\tcurrent.next = headOne;\n\t\t}else{\n\t\t\tcurrent.next = headTwo;\n\t\t}\n\t\t\n\t\treturn current.next;\n\t}", "private void addTwoNumbers() {\n\t\t\n\t}", "public StringNum add(StringNum n1, StringNum n2) {\n\t\tint emptyArr[];\n\t\ttry {\n\t\t\tString addends[] = {n1.getNumber(), n2.getNumber()};\n\t\t\tif(n1.getNumber().length() > n2.getNumber().length()) {\n\t\t\t\temptyArr = new int[n1.getNumber().length()];\n\t\t\t\tint j = 0;\n\t\t\t\tfor(int i = n1.getNumber().length()-1; i >= 0; i--) {\n\t\t\t\t\temptyArr[i] = getSumOfCol(addends, j);\n\t\t\t\t\tif(i < n1.getNumber().length()-1) {\n\t\t\t\t\t\temptyArr[i] += emptyArr[i+1]/10;\n\t\t\t\t\t\tString ans = Integer.toString(emptyArr[i+1]);\n\t\t\t\t\t\temptyArr[i+1] = Character.getNumericValue(ans.charAt(ans.length()-1));\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(n2.getNumber().length() > n1.getNumber().length()) {\n\t\t\t\temptyArr = new int[n2.getNumber().length()];\n\t\t\t\tint j = 0;\n\t\t\t\tfor(int i = n2.getNumber().length()-1; i >= 0; i--) {\n\t\t\t\t\temptyArr[i] = getSumOfCol(addends, j);\n\t\t\t\t\tif(i < n2.getNumber().length()-1) {\n\t\t\t\t\t\temptyArr[i] += emptyArr[i+1]/10;\n\t\t\t\t\t\tString ans = Integer.toString(emptyArr[i+1]);\n\t\t\t\t\t\temptyArr[i+1] = Character.getNumericValue(ans.charAt(ans.length()-1));\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\temptyArr = new int[n2.getNumber().length()+1];\n\t\t\t\tint j = 0;\n\t\t\t\tfor(int i = n2.getNumber().length()-1; i >= 0; i--) {\n\t\t\t\t\temptyArr[i+1] = getSumOfCol(addends, j);\n\t\t\t\t\tif(i < n2.getNumber().length()-1) {\n\t\t\t\t\t\temptyArr[i+1] += emptyArr[i+2]/10;\n\t\t\t\t\t\tString ans = Integer.toString(emptyArr[i+2]);\n\t\t\t\t\t\temptyArr[i+2] = Character.getNumericValue(ans.charAt(ans.length()-1));\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn new StringNum();\n\t\t}\n\t\treturn stripLeadingZeros(new StringNum(emptyArr));\n\t}", "public static List<Integer> merge2(List<Integer> left, List<Integer> right) {\n ArrayList<Integer> result = new ArrayList<>();\n int leftIndex = 0;\n int rightIndex = 0;\n\n while (leftIndex < left.size() && rightIndex < right.size()) {\n if (left.get(leftIndex) < right.get(rightIndex)) {\n result.add(left.get(leftIndex));\n leftIndex++;\n } else {\n result.add(right.get(rightIndex));\n rightIndex++;\n }\n }\n List<Integer> leftRemaining = left.subList(leftIndex, left.size());\n List<Integer> rightRemaining = right.subList(rightIndex, right.size());\n\n result.addAll(leftRemaining);\n result.addAll(rightRemaining);\n\n return result;\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n if(l1 == null) {\n return l2;\n }\n\n if(l2 == null) {\n return l1;\n }\n\n ListNode head = null;\n ListNode current = null;\n while(l1 != null && l2 != null) {\n\n if(l1.val < l2.val) {\n if(head == null) {\n head = current = l1;\n } else {\n current.next = l1;\n current = current.next;\n }\n l1 = l1.next;\n } else {\n if(head == null) {\n head = current = l2;\n } else {\n current.next = l2;\n current = current.next;\n }\n l2 = l2.next;\n }\n }\n\n if(l1 == null) {\n current.next = l2;\n }\n\n if(l2 == null) {\n current.next = l1;\n }\n\n return head;\n }", "public List<Integer> merge(List<Integer> S1, List<Integer> S2) {\n\t\tList<Integer> S = new ArrayList<Integer>();\n\t\twhile(!(S1.isEmpty() || S2.isEmpty())){\n\t\t\tif(comps(S1.get(0), S2.get(0)) && S1.get(0) < S2.get(0)) {\t\t\t\t\t\n\t\t\t\tS.add(S1.remove(0));\n\t\t\t} else {\n\t\t\t\tS.add(S2.remove(0));\n\t\t\t}\n\t\t}\n\t\twhile(!(S1.isEmpty())){\n\t\t\tS.add(S1.remove(0));\n\t\t}while(!(S2.isEmpty())){\n\t\t\tS.add(S2.remove(0));\n\t\t}\n\t\treturn S;\n\t}", "public void add(LinkedListInt other) {\nthis.size += other.size;\nNode current = head;\nif(head == null) {\nhead = other.head;\nreturn;\n}\nwhile(current.next != null)\ncurrent = current.next;\ncurrent.next = other.head;\n}", "public static void main(String[] args) {\n\t\t\t\t\r\n\t\tListNode list1 =new ListNode(1, new ListNode(2, new ListNode(4, null)));\r\n\t\t\r\n\t\tListNode list2 =new ListNode(1, new ListNode(3, new ListNode(4, null)));\r\n\t\t\r\n\t\tListNode result = new MergeTwoSortedLists().mergeTwoLists(list1, list2);\r\n\t\t\r\n\t\twhile(result!=null) {\r\n\t\t\tSystem.out.print(\" \"+result.val);\r\n\t\t\tresult=result.next;\r\n\t\t}\r\n\t\t\r\n\t}", "public ListNode merge(ListNode left, ListNode right){\n ListNode head = new ListNode(0);\n ListNode p = head;\n while(left!=null&&right!=null){\n if(left.val<right.val){\n p.next = left;\n left = left.next;\n }\n else{\n p.next = right;\n right = right.next;\n }\n p = p.next;\n }\n if(left!=null){\n p.next = left;\n }\n if(right!=null){\n p.next = right;\n }\n // p.next=null;//不需要,原始节点会有next null信息\n return head.next;\n\n\n }", "public static String addStrings(String nums1, String nums2) {\n int i = nums1.length() - 1;\n int j = nums2.length() - 1;\n StringBuilder sb = new StringBuilder();\n int carry = 0;\n\n while (i >= 0 || j >= 0) {\n int sum = carry;\n if (i >= 0) {\n sum += nums1.charAt(i--) - '0';\n }\n if (j >= 0) {\n sum += nums2.charAt(j--) - '0';\n }\n sb.append(sum % 10);\n carry = sum / 10;\n }\n if (carry != 0) {\n sb.append(carry);\n }\n return sb.reverse().toString();\n }", "private static Node MergeLists(Node headA, Node headB) {\n\t Node current1=headA;\r\n\t Node current2=headB;\r\n\t Node head3=null;\r\n\t Node current3 = head3;\r\n\t while(current1!=null && current2!=null){\r\n\t if(current1.data < current2.data){\r\n\t Node temp=new Node();\r\n\t temp.data = current1.data;\r\n\t\t\t\tif(head3==null){\r\n\t\t\t\t\thead3=temp;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcurrent3=head3;\r\n\t\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\t\tcurrent3.next=temp;\r\n\t\t\t\t}\r\n\t current1=current1.next;\r\n\t }\r\n\t else{\r\n\t // current3.data=current2.data;\r\n\t Node temp=new Node();\r\n\t temp.data = current2.data;\r\n\t\t\t\tif(head3==null){\r\n\t\t\t\t\thead3=temp;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcurrent3=head3;\r\n\t\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\t\tcurrent3.next=temp;\r\n\t\t\t\t}\r\n\t current2=current2.next;\r\n\t }\r\n\t \r\n\t }\r\n\t while(current1!=null){\r\n\t \tNode temp=new Node();\r\n temp.data = current1.data;\r\n\t\t\tif(head3==null){\r\n\t\t\t\thead3=temp;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcurrent3=head3;\r\n\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\tcurrent3.next=temp;\r\n\t\t\t}\r\n current1=current1.next;\r\n\t }\r\n\t while(current2!=null){\r\n\t \tNode temp=new Node();\r\n temp.data = current2.data;\r\n\t\t\tif(head3==null){\r\n\t\t\t\thead3=temp;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcurrent3=head3;\r\n\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\tcurrent3.next=temp;\r\n\t\t\t}\r\n current2=current2.next;\r\n\t }\r\n\t return head3;\r\n\t}", "void merge(ListNode curr1, ListNode curr2) {\n while (curr1 != null) {\n ListNode next1 = curr1.next, next2 = curr2.next;\n curr1.next = curr2;\n if (next1 == null)\n break;\n curr2.next = next1;\n curr1 = next1;\n curr2 = next2;\n }\n }", "public static void main(String[] args) {\n\t\tListNode h1 = new ListNode(2);\n\t\tListNode h2 = new ListNode(1);\n\t\tListNode re = mergeTwoLists(h1,h2);\n\t\tSystem.out.println(re.val);\n\t\tSystem.out.println(re.next.val);\n\t}", "public void swapNodes(int data1, int data2) {\n\t\tif(head == null || size == 1) {\n\t\t\tSystem.out.println(\"List is empty or only one node present!!\");\n\t\t\treturn;\n\t\t}\n\t\tNode node1 = null;\n\t\tNode node1Prev = null;\n\t\tNode node2 = null;\n\t\tNode node2Prev = null;\n\t\tNode start = head;\n\t\tif(start.data == data1) {\n\t\t\tnode1Prev = null;\n\t\t\tnode1 = start;\n\t\t}\n\t\tif(start.data == data2) {\n\t\t\tnode2Prev = null;\n\t\t\tnode2 = start;\n\t\t}\n\t\twhile(start.next != null) {\n\t\t\tif(start.next.data == data1) {\n\t\t\t\tnode1Prev = start;\n\t\t\t\tnode1 = start.next;\n\t\t\t}\n\t\t\tif(start.next.data == data2) {\n\t\t\t\tnode2Prev = start;\n\t\t\t\tnode2 = start.next;\n\t\t\t}\n\t\t\tstart = start.next;\n\t\t}\n\n\t\tif(node1 != null && node2 != null) {\n\t\t\tif(node1Prev == null) {\n\t\t\t\thead = node2;\n\t\t\t}\n\t\t\tif(node2Prev == null) {\n\t\t\t\thead = node1;\n\t\t\t}\n\t\t\tNode tempNext = node2.next;\n\t\t\tif(node1Prev != null)\n\t\t\t\tnode1Prev.next = node2;\n\t\t\tnode2.next = node1.next;\n\n\t\t\tif(node2Prev != null)\n\t\t\t\tnode2Prev.next = node1;\n\t\t\tnode1.next = tempNext;\n\t\t}\n\t}", "private static BigInteger forceAdd(BigInteger first, BigInteger second) {\n\t\tBigInteger i = new BigInteger();\n\t\tint sign1 = first.sign(), sign2 = second.sign();\n\t\ti.front = new DigitNode(0, null); // dummy\n\t\tfor(DigitNode n1 = first.front, n2 = second.front, n = i.front; n1 != null || n2 !=null; n = n.next) {\n\t\t\tint value = 0;\n\t\t\tif (n1 != null) {\n\t\t\t\tvalue += n1.digit*sign1;\n\t\t\t\tn1 = n1.next;\n\t\t\t}\n\t\t\tif (n2 != null) {\n\t\t\t\tvalue += n2.digit*sign2;\n\t\t\t\tn2 = n2.next;\n\t\t\t}\n\t\t\tn.next = new DigitNode(value, null);\n\t\t\tif (value != 0) i.negative = (value < 0);\n\t\t\ti.numDigits++;\n\t\t}\n\t\ti.front = i.front.next; //skip the dummy\n\t\treturn i;\n\t}", "public static ListNode mergeSorted(ListNode l1, ListNode l2){\n \n// if(l1==null){\n// return l2;\n// }\n// \n// if(l2==null)\n// return l1;\n// \n// if(l1.val<l2.val){\n// l1.next = mergeSorted(l1.next,l2);\n// return l1;\n// }else{\n// l2.next = mergeSorted(l1,l2.next);\n// return l2;\n// }\n \t\n \tListNode dummy = new ListNode(0);\n \tListNode tail = dummy;\n \t\n \twhile(l1!=null&&l2!=null){\n \t\tif(l1.val<l2.val){\n \t\t\ttail.next = l1;\n \t\t\tl1=l1.next;\n \t\t}else{\n \t\t\ttail.next = l2;\n \t\t\tl2=l2.next;\n \t\t}\n \t\ttail = tail.next;\n \t}\n \t\n \tif(l1!=null){\n \t\ttail.next=l1;\n \t}else if(l2!=null){\n \t\ttail.next=l2;\n \t}\n \t\n \treturn dummy.next;\n }", "private static void merge(ArrayList<Integer> leftList, ArrayList<Integer> rightList, ArrayList<Integer> outList) {\n\n int leftIndex = 0;\n int rightIndex = 0;\n int outIndex = 0;\n\n while (leftIndex < leftList.size() && rightIndex < rightList.size()) {\n\n if (leftList.get(leftIndex).compareTo(rightList.get(rightIndex)) <= 0) {\n outList.set(outIndex, leftList.get(leftIndex));\n leftIndex++;\n } else {\n outList.set(outIndex, rightList.get(rightIndex));\n rightIndex++;\n }\n\n outIndex++;\n\n }\n\n if (leftIndex < leftList.size()) {\n copyRemainder(leftList, leftIndex, outList, outIndex);\n } else {\n copyRemainder(rightList, rightIndex, outList, outIndex);\n }\n\n }", "public static SinglyLinkedList merge(SinglyLinkedList list1, SinglyLinkedList list2)\n\t{\n\t\tSinglyLinkedList list3 = new SinglyLinkedList();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\twhile((i < list1.size()) && (j < list2.size()))\n\t\t{\n\t\t\tif(list1.getElementAt(i) < list2.getElementAt(j))\n\t\t\t{\n\t\t\t\tlist3.addLast(list1.getElementAt(i));\n\t\t\t\ti++;\n\t\t\t}\n\t\t\telse if(list1.getElementAt(i) > list2.getElementAt(j))\n\t\t\t{\n\t\t\t\tlist3.addLast(list2.getElementAt(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\telse if(list1.getElementAt(i) == list2.getElementAt(j))\n\t\t\t{\n\t\t\t\tlist3.addLast(list2.getElementAt(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\tif(i == list1.size())\n\t\t{\n\t\t\tfor(int k = j; k < list2.size(); k++)\n\t\t\t{\n\t\t\t\tlist3.addLast(list2.getElementAt(k));\n\t\t\t}\n\t\t}\n\t\telse if(j == list2.size())\n\t\t{\n\t\t\tfor(int l = i; l < list1.size(); l++)\n\t\t\t{\n\t\t\t\tlist3.addLast(list1.getElementAt(l));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list3;\n\t}", "public static List<Integer> multiply(List<Integer> a1, List<Integer> a2) {\n if (a1.size() == 1 && a1.get(0) == 0\n || a2.size() == 1 && a2.get(0) == 0) {return Arrays.asList(0);}\n\n Integer[] arr = new Integer[a1.size() + a2.size()];\n Arrays.fill(arr, 0);\n List<Integer> res = Arrays.asList(arr);\n List<Integer> res2 = new ArrayList<>();\n\n Collections.reverse(a1);\n Collections.reverse(a2);\n\n for (int i = 0; i < a1.size(); i++) {\n for (int j = 0; j < a2.size(); j++) {\n res.set(i + j, res.get(i + j) + a1.get(i) * a2.get(i));\n res.set(i + j + 1, res.get(i + j + 1) + res.get(i + j) / 10);\n res.set(i + j, res.get(i + j) % 10);\n }\n }\n\n Collections.reverse(res);\n\n for (int i = 0; i < res.size(); i++) {\n if (res.get(i) != 0) {\n res2.add(res.get(i));\n }\n }\n\n return res2;\n }", "public String addStrings(String num1, String num2) {\n int prev = 0, i = num1.length() - 1, j = num2.length() - 1;\n StringBuilder res = new StringBuilder();\n\n while (i >= 0 || j >= 0) {\n int cur = prev;\n if (i >= 0) cur += num1.charAt(i--) - '0';\n if (j >= 0) cur += num2.charAt(j--) - '0';\n prev = cur / 10;\n cur %= 10;\n res.append(cur);\n }\n if (prev != 0) res.append(prev);\n return res.reverse().toString();\n }", "private static String subProcess(int[] n1, int[] n2) {\n\n\t\t// if n1.length is smaller than n2.length, we are going to be too small.\n\t\tif (n1.length < n2.length) {\n\t\t\treturn \"+\" + toString (n1);\n\t\t}\n\t\t\n\t\t// we have to extend, and reduce length. Note that this WILL terminate because\n\t\t// we would have left earlier if n2 were greater than n1.\n\t\tint off = 0;\n\t\tint length = n2.length;\n\t\twhile (compareTo(n2,0,length,n1,off) > 0) {\n\t\t\tn2 = expand(n2);\n\t\t\tlength = n2.length;\n\t\t\t\n\t\t\tif (length > n1.length) {\n\t\t\t\t// gone too far! We at last have our remainder! Return as \"+remainder\".\n\t\t\t\treturn \"+\" + toString(n1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint []innerSum = new int[n1.length+1]; // add 1 just in case we get too high\n\t\tint []result = new int[length]; \n\t\tint start;\n\t\t\n\t\t// initial set.\n\t\tif (n2[0] == 0) { start = 9; } else { start = n1[0]/n2[0]; }\n\t\t\n\t\tmultiply(n2, start, innerSum);\n\t\tinnerSum = reduce(innerSum);\n\t\t\n\t\tif (innerSum.length < n2.length) {\n\t\t\t// perfect fit. Expand back out to work with subtractDown. REALLY UGLY CODE\n\t\t\tinnerSum = expand(innerSum);\n\t\t} else {\n\t\t\t// must reduce and continue....\n\t\t\twhile (n2.length < innerSum.length) {\n\t\t\t\tstart--; // had gone too far! Back down.\n\t\t\t\tinnerSum = new int[n1.length+1];\n\t\t\t\tmultiply (n2, start, innerSum);\n\t\t\t\tinnerSum = reduce(innerSum);\n\t\t\t}\n\t\t}\n\t\t\n\t\tboolean subtractDown = compareTo(innerSum, n1, innerSum.length) > 0; // if false, we have to add up\n\t\twhile (true) {\n\t\t\tif (subtractDown) {\n\t\t\t\tstart--;\n\t\t\t\tsubtract(innerSum, n2, result, subProcessSign);\n\t\t\t\tassign(innerSum, result);\n\t\t\t\t\n\t\t\t\tsubtractDown = compareTo(innerSum, n1, innerSum.length) > 0;\n\t\t\t} else {\n\t\t\t\t// found. Note that 'start' is the digit in the quotient. Subtract from and replace.\n\t\t\t\tint []newTop = new int[innerSum.length];\n\t\t\t\textract(newTop,0,n1,0,innerSum.length);\n\t\t\t\t\n\t\t\t\tresult = new int[innerSum.length];\n\t\t\t\tsubtract(newTop, innerSum, result, subProcessSign); \n\t\t\t\textract(n1,0,result,0,result.length); // copy back in\n\t\t\t\t\n\t\t\t\tint[]normalized_n1 = reduce(n1);\n\t\t\t\tint[]normalized_n2 = reduce(n2);\n\t\t\t\tString s = start + subProcess(normalized_n1, normalized_n2);\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tListNode node1 = new ListNode(5);\n node1.next = new ListNode(6);\n node1.next.next = new ListNode(7);\n\n ListNode node2 = new ListNode(5);\n node2.next = new ListNode(6);\n node2.next.next = new ListNode(7);\n\n ListNode result = new MergeTwoSortedLists().mergeTwoLists(node1, node2);\n\t}", "public static ListNode merge2(ListNode l1,ListNode l2){\n if(l1==null) return l2;\n if(l2==null) return l1;\n if(l1.getVal()<l2.getVal()){\n l1.next=merge2(l1.next,l2);\n return l1;\n }else{\n l2.next=merge2(l1,l2.next);\n return l2;\n }\n }", "public ListNode mergeInBetween(ListNode list1, int a, int b, ListNode list2) {\n final ListNode vituralHead = new ListNode(0);\n vituralHead.next = list1;\n\n ListNode cursor = vituralHead;\n int index = 0;\n\n ListNode aNode = null;\n ListNode bNode = null;\n while (cursor != null) {\n\n if (index == a) {\n aNode = cursor;\n }\n\n if (index == b + 1) {\n bNode = cursor;\n break;\n }\n\n index++;\n cursor = cursor.next;\n }\n\n ListNode tailOfList2 = list2;\n while (tailOfList2.next != null) {\n tailOfList2 = tailOfList2.next;\n }\n\n aNode.next = list2;\n tailOfList2.next = bNode.next;\n return vituralHead.next;\n }", "Node merge(Node first, Node second) {\n // If first linked list is empty\n if (first == null) {\n return second;\n }\n \n // If second linked list is empty\n if (second == null) {\n return first;\n }\n \n // Pick the smaller value\n if (first.data < second.data) {\n first.next = merge(first.next, second);\n first.next.prev = first;\n first.prev = null;\n return first;\n } else {\n second.next = merge(first, second.next);\n second.next.prev = second;\n second.prev = null;\n return second;\n }\n }", "Node MergeLists(Node headA, Node headB) { \n \n if(headA==null && headB==null) return null;\n if(headA==null) return headB;\n if(headB==null) return headA;\n\t\n\tNode start = new Node();\n\tNode curr = start;\n \n while(headA!=null && headB!=null) {\n if(headA.data < headB.data) {\n curr.next = headA;\n headA = headA.next;\n } else {\n curr.next = headB;\n headB = headB.next;\n }\n curr = curr.next;\n }\n \n if(headB!=null) curr.next=headB;\n if(headA!=null) curr.next=headA;\n\treturn start.next;\n}", "public static SinglyLinkedList<Poly> subtraction(SinglyLinkedList.Entry<Poly> list1,\n\t\t\tSinglyLinkedList.Entry<Poly> list2) {\n\t\tSinglyLinkedList<Poly> list3 = new SinglyLinkedList();\n\t\twhile (list2 != null) {\n\t\t\tPoly p = list2.element;\n\t\t\tp.num = p.num * -1;\n\t\t\tlist3.add(p);\n\t\t\tlist2 = list2.next;\n\t\t}\n\t\treturn addition(list1, list3.head.next);\n\t}", "public static void main(String[] args) {\n ListNode<Integer> head = new ListNode<>(5);\n LinkedListBasic<Integer> linkedListBasic = new LinkedListBasic<>();\n for (int i = 10; i < 50; i+=5){\n linkedListBasic.insertNewNode(i, head);\n }\n\n /*linkedListBasic.printLinkedList(head);\n reverseSubList(head, 2, 6);\n linkedListBasic.printLinkedList(head);*/\n\n linkedListBasic.printLinkedList(head);\n ListNode<Integer> newHead = reverseLinkedList2(head);\n linkedListBasic.printLinkedList(newHead);\n reverseSubList(newHead, 2, 6);\n linkedListBasic.printLinkedList(newHead);\n\n }", "public ListNode swapNodes(ListNode head, int v1, int v2) {\n ListNode start = new ListNode(0);\n start.next = head;\n ListNode preOne = null;\n ListNode preTwo = null;\n\n ListNode search = start;\n\n while (search.next != null) {\n ListNode next = search.next;\n if (next.val == v1) {\n preOne = search;\n }\n if (next.val == v2) {\n preTwo = search;\n }\n search = next;\n }\n if (preOne == null || preTwo == null) {\n return start.next;\n }\n\n\n ListNode one = preOne.next;\n ListNode two = preTwo.next;\n if (two.next == one) {\n preTwo.next = one;\n two.next = one.next;\n one.next = two;\n return start.next;\n } else if (one.next == two) {\n preOne.next = two;\n one.next = two.next;\n two.next = one;\n return start.next;\n }\n ListNode befone = preOne.next.next;\n ListNode beftwo = preTwo.next.next;\n one.next = beftwo;\n two.next = befone;\n preOne.next = two;\n preTwo.next = one;\n return start.next;\n }", "public ListNode mergeTwoListsRecursion(ListNode l1, ListNode l2) {\n if(l1==null)return l2;\n if(l2==null)return l1;\n if(l1.val<l2.val){\n l1.next=mergeTwoListsRecursion(l1.next,l2);\n return l1;\n }\n else{\n l2.next=mergeTwoLists(l1,l2.next);\n return l2;\n }\n }", "public static LinkedList<Integer> Reverse2(LinkedList<Integer> list) {\n\t\tLinkedList<Integer> listReverse = new LinkedList<Integer>();\n\t\tIterator<Integer> re = list.descendingIterator();\n\t\twhile (re.hasNext()) {\n\t\t\tlistReverse.add(re.next());\n\t\t}\n\n\t\treturn listReverse;\n\t}", "public ListNode reverseBetween2(ListNode head, int left, int right) {\n ListNode sentinel = new ListNode(-1, head);\n // find the node previous to the position left\n ListNode leftPrev = sentinel;\n for (int i = 0; i < left - 1; i++) {\n leftPrev = leftPrev.next;\n }\n // reverse the linked list from the position left to right\n ListNode prev = null, curr = leftPrev.next, next;\n for (int i = left; i <= right; i++) {\n next = curr.next;\n curr.next = prev;\n prev = curr;\n curr = next;\n }\n // link each part\n leftPrev.next.next = curr;\n leftPrev.next = prev;\n return sentinel.next;\n }", "public ListNode merge(ListNode h1, ListNode h2){\r\n if(h1 == null){\r\n return h2;\r\n }\r\n if(h2 == null){\r\n return h1;\r\n }\r\n \r\n if(h1.val < h2.val){\r\n h1.next = merge(h1.next, h2);\r\n return h1;\r\n }\r\n else{\r\n h2.next = merge(h1, h2.next);\r\n return h2;\r\n }\r\n \r\n }", "static List<Integer> unique(List<Integer> a, List<Integer> b) {\n\t\t\n\t\t// Base case 01:\n\t\tif (a.isEmpty()) {\n\t\t\t\n\t\t\treturn b;\n\t\t\n\t\t // Base case 02:\n\t\t} else if (b.isEmpty()) {\n\t\t\t\n\t\t\treturn a;\n\t\t\n\t\t // Recursive step:\n\t\t} else if (a.getHead() < b.getHead()) {\n\t\t\t\n\t\t\treturn new List<>(a.getHead(), unique(a.getTail(), b));\n\t\t\t\n\t\t} else if (a.getHead() > b.getHead()) {\n\t\t\t\n\t\t\treturn new List<>(b.getHead(), unique(a, b.getTail()));\n\t\t\t\n\t\t} else { // a.getHead() == b.getHead()\n\t\t\t\n\t\t\treturn unique(a.getTail(), b.getTail());\n\t\t}\n\t}", "public static ListNode reverseList2(ListNode head) {\n ListNode n = head;\n ListNode p = null;\n ListNode q = null;\n while (n != null) {\n p = q;\n q = n;\n n = n.next;\n q.next = p;\n }\n return q;\n }", "public static String addStrings(String num1, String num2) {\n\t\tif (num1 == null || num1.length() == 0 || num2 == null || num2.length() == 0) return null;\n char[] c1 = num1.toCharArray();\n char[] c2 = num2.toCharArray();\n int n1 = c1.length;\n int n2 = c2.length;\n \n StringBuilder sb = new StringBuilder();\n int i, j;\n int add = 0;\n for (i = n1 - 1, j = n2 - 1; i >= 0 && j >= 0; i--, j--) {\n \tint sum = (c1[i] - '0') + (c2[j] - '0') + add;\n \tsb.append(sum % 10);\n \tadd = sum / 10;\n }\n if (j > 0) {\n \tc1 = c2;\n }\n for (i = Math.max(i, j); i >= 0; i--) {\n \t\tint v = c1[i] - '0' + add;\n \t\tsb.append(v % 10);\n \t\tadd = v / 10;\n \t}\n \tif (add > 0) {\n \t sb.append(add);\n \t}\n \t\n \treturn sb.reverse().toString();\n }", "private static List<Integer> addOnePlus(List<Integer> input) {\n\n\t\tint size = input.size();\n\t\tinput.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && input.get(i)==10; i--) {\n\t\t\tinput.set(i, 0);\n\t\t\tinput.set(i-1, input.get(i-1)+1);\n\t\t}\n\n\t\tif(input.get(0) == 10) {\n\t\t\tinput.set(0, 0);\n\t\t\tinput.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn input;//this modifies the original input\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tListNode l1 = int2ListNode(342);\n\t\tListNode l2 = int2ListNode(465);\n\t\toutPutListNode(add(l1,l2));\n\t}" ]
[ "0.7937928", "0.7756316", "0.7741502", "0.7586518", "0.7582946", "0.75770056", "0.75554305", "0.74834687", "0.7467073", "0.7463403", "0.74598944", "0.7458323", "0.7409149", "0.7288847", "0.71643615", "0.714432", "0.7129391", "0.7058402", "0.6879737", "0.68777794", "0.67757124", "0.6758103", "0.67394376", "0.6724937", "0.66499686", "0.66476667", "0.66432756", "0.6629121", "0.6608289", "0.65592813", "0.65163606", "0.6494063", "0.64728093", "0.64644235", "0.64267015", "0.63861704", "0.63733876", "0.6371494", "0.63676196", "0.634239", "0.63283306", "0.63200057", "0.63132805", "0.6297387", "0.6293922", "0.629324", "0.6281458", "0.62690455", "0.6262996", "0.62123466", "0.6202308", "0.61987704", "0.6190769", "0.6123912", "0.6082899", "0.6077847", "0.60757864", "0.60707486", "0.6061036", "0.60584325", "0.6052423", "0.60276157", "0.60132885", "0.60024935", "0.59988153", "0.59804", "0.5973003", "0.5971599", "0.5955094", "0.5918508", "0.59037733", "0.590057", "0.58907074", "0.5888019", "0.58861804", "0.5883669", "0.5880621", "0.585933", "0.5837325", "0.58363426", "0.58302134", "0.5825514", "0.5824862", "0.58151793", "0.580847", "0.58003724", "0.5787969", "0.57855225", "0.57747656", "0.5774216", "0.5771396", "0.5758195", "0.573247", "0.5726806", "0.57206666", "0.57123554", "0.57081354", "0.57033896", "0.5701753", "0.5701041" ]
0.8047836
0
ADD AN IMPORT STATEMENT HERE //for using files
public static void main(String[] args) throws IOException//ADD A THROWS CLAUSE HERE { double sum = 0; //the sum of the numbers int count = 0; //the number of numbers added double mean = 0; //the average of the numbers double stdDev = 0; //the standard deviation of the numbers String line = null; //a line from the file double difference; //difference between the value and the mean //create an object of type Decimal Format DecimalFormat threeDecimals = new DecimalFormat("0.000"); //create an object of type Scanner Scanner keyboard = new Scanner(System.in); String filename; // the user input file name //Prompt the user and read in the file name System.out.println("This program calculates statistics" + "on a file containing a series of numbers"); System.out.print("Enter the file name: "); filename = "D:/Program Files/JetBrains/test1/Lab/src/xyz/Lab4/" + keyboard.nextLine(); //ADD LINES FOR TASK #4 HERE //Create a FileReader object passing it the filename FileReader fileReader = new FileReader(filename); //Create a BufferedReader object passing it the FileReader object. BufferedReader bufferedReader = new BufferedReader(fileReader); //priming(启动) read to read the first line of the file //create a loop that continues until you are at the end of the file while (bufferedReader.readLine() != null) { //convert the line to double value, add the value to the sum sum += Double.valueOf(bufferedReader.readLine()); System.out.println(bufferedReader.readLine()); //increment the counter count++; } //read a new line from the file //close the input file bufferedReader.close(); //store the calculated mean mean = sum / count; System.out.println(mean); //ADD LINES FOR TASK #5 HERE //create a FileReader object passing it the filename FileReader fileReader1 = new FileReader(filename); //create a BufferedReader object passing it the FileReader object. BufferedReader bufferedReader1 = new BufferedReader(fileReader1); //reinitialize the sum of the numbers sum = 0; //reinitialize the number of numbers added count = 0; double variance; while ((line = bufferedReader1.readLine()) != null) { //priming read to read the first line of the file //loop that continues until you are at the end of the file //convert the line into a double value and subtract the mean difference = Double.valueOf(line) - mean; //add the square of the difference to the sum sum += difference * difference; //increment the counter count++; //read a new line from the file } //close the input file bufferedReader1.close(); //store the calculated standard deviation stdDev = sum / count; System.out.println(stdDev); //ADD LINES FOR TASK #3 HERE //create an object of type FileWriter using “Results.txt” FileWriter fileWriter = new FileWriter("D:/Program Files" + "/JetBrains/test1/Lab/src/xyz/Lab4/Results.txt"); //create an object of PrintWriter passing it the FileWriter object. PrintWriter printWriter = new PrintWriter(fileWriter); //print the results to the output file //print the mean and the standard deviation(标准偏差) to the output file using the three //decimal format. printWriter.println("mean:" + threeDecimals.format(mean)); printWriter.println("standard deviation:" + threeDecimals.format(stdDev)); printWriter.flush(); //close the output file printWriter.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Imports createImports();", "Import createImport();", "Import createImport();", "private void ImportLibrary(){\n for(int i = 0; i < refact.size(); i++){\n if(refact.get(i).contains(\"import\")){\n for(String library : libraries){\n refact.add(i, library + \"\\r\");\n }\n break;\n }\n }\n\n\n }", "Import getImport();", "@Override\n\tprotected void GenerateImportLibrary(String LibName) {\n\n\t}", "public void importPackage(String pack) throws Exception;", "public TpImport(){\r\n\t\t\r\n\t}", "private String imported(String string) {\n string = IMPORT.matcher(string).replaceAll(\"\");\n string = DOT.matcher(string).replaceAll(\"/\");\n string = SEMICOLON.matcher(string).replaceAll(\"\");\n string = \"/\" + string.trim() + \".java\";\n return string;\n }", "public void importMedia(){\r\n \r\n }", "TopLevelImport createTopLevelImport();", "ImportConfig createImportConfig();", "@Override\n\tprotected void generatePkgImports() {\n\t\toutputList.add(new OutputLine(indentLvl, \"import uvm_pkg::*;\"));\n\t\toutputList.add(new OutputLine(indentLvl, \"import ordt_uvm_reg_translate1_pkg::*;\"));\n\t\tif (UVMRdlTranslate1Classes.altModelPackage != null) outputList.add(new OutputLine(indentLvl, \"import \" + UVMRdlTranslate1Classes.altModelPackage + \";\")); // add alt model pkg\n\t\toutputList.add(new OutputLine(indentLvl, \"import jspec::*;\"));\n\t}", "public abstract String getImportFromFileTemplate( );", "public static void main(String[] args) {\n String s = \"We are testing import statements\";\n System.out.println(s);\n\n // We use simple name because we specified location in the import\n // statement\n VineVegetable.main(args);\n }", "void openImportOrCreate(Context context);", "private ClinicFileLoader() {\n\t}", "private String importDeclaration()\r\n {\r\n String handle;\r\n\r\n matchKeyword(Keyword.IMPORTSY);\r\n handle = nextToken.string;\r\n matchKeyword(Keyword.IDENTSY);\r\n handle = qualifiedImport(handle);\r\n matchKeyword(Keyword.SEMICOLONSY);\r\n\r\n return handle;\r\n }", "public void addImport(Antfile importedAntfile)\n {\n if (!imports.contains(importedAntfile))\n {\n imports.add(importedAntfile);\n }\n }", "ImportedPackage createImportedPackage();", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "private FileUtil() {}", "private void importObjFile()\r\n {\r\n int returnState = importObjFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = importObjFileChooser.getSelectedFile();\r\n importObjUriInBackground(file.toURI());\r\n } \r\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "private UsingSwig() {\n\t}", "public Import() {\n this(null, new Name(), null, null, false, false);\n }", "public void importFile(String filename, String location)\r\n\t{\r\n\t\ttry {\r\n\t\t\tJInternalFrame dialog = harmonyModel.getDialogManager().getDialog();\r\n\t\t\tif(dialog instanceof AbstractImportDialog)\r\n\t\t\t\t((AbstractImportDialog)dialog).setURI(new URI(location), filename);\r\n\t\t\telse if(dialog instanceof ImportMappingDialog)\r\n\t\t\t\t((ImportMappingDialog)dialog).setURI(new URI(location), filename);\r\n\t\t}\r\n\t\tcatch(Exception e) { System.out.println(\"(E)HarmonyApplet.importFile: \" + e.getMessage()); }\r\n\t}", "private static void load(){\n }", "public static void testXmlImport() {\n\n }", "interface ImportService {\n /**\n * Main import method.\n */\n void doImport();\n}", "private ControlloFile() {\n\t}", "private FileUtility() {\r\n\t}", "void reportImport() {\n this.hasImports = true;\n }", "public void setupImport() {\r\n\t\tmnuImport.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew ImportGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void source(String path) throws Exception;", "public static void provideDAOsImports(final FileWriterWrapper writer,\n final String entityCodeName)\n throws IOException {\n writer.write(\"import java.sql.Connection;\\n\");\n writer.write(\"import java.sql.PreparedStatement;\\n\");\n writer.write(\"import java.sql.ResultSet;\\n\");\n writer.write(\"import java.sql.SQLException;\\n\");\n writer.write(\"import java.util.ArrayList;\\n\\n\");\n\n writer.write(\"import pojos.\" + entityCodeName + \";\\n\\n\");\n }", "public FSLockWithShared(File baseFile) {\n file = baseFile;\n }", "File getLoadLocation();", "public void readFromFile() {\n\n\t}", "ImportDeclaration createImportDeclaration();", "private SourcecodePackage() {}", "public void importLibrary(String jarPath) throws IOException {\n // make sure the user didn't hide the sketch folder\n ensureExistence();\n\n String list[] = Compiler.headerListFromIncludePath(jarPath);\n\n // import statements into the main sketch file (code[0])\n // if the current code is a .java file, insert into current\n //if (current.flavor == PDE) {\n if (hasDefaultExtension(current)) {\n setCurrentCode(0);\n }\n // could also scan the text in the file to see if each import\n // statement is already in there, but if the user has the import\n // commented out, then this will be a problem.\n StringBuffer buffer = new StringBuffer();\n for (int i = 0; i < list.length; i++) {\n buffer.append(\"#include <\");\n buffer.append(list[i]);\n buffer.append(\">\\n\");\n }\n buffer.append('\\n');\n buffer.append(editor.getText());\n editor.setText(buffer.toString());\n editor.setSelection(0, 0); // scroll to start\n setModified(true);\n }", "public void importClass(String klass) throws Exception;", "private void importAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tdeserializeFile(file);\n\t\t\t // imported the projects for this application from a file, so update what should be persisted on close\n\t\t\tupdatePersistence();\n\t\t}\n\t}", "TypeImport createTypeImport();", "private IOUtilities() {\n }", "public static void main(String[] args) {\nSthToDoWithFile stdwf = new SthToDoWithFile();\r\nstdwf.addList(new File(\"some path to file\"));\r\n\t}", "protected JsManifestationFile() {\n\n\t}", "public void loadingLibrary(String libraryFilename);", "public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }", "public Importer() {\n this(new ImportOptions(), false, true);\n }", "@Test\n public void loadFromFileWithWrongConnects() throws Exception{\n fileInOut.setFilePath(\"src/wrongConnects\");\n fileInOut.loadFromFile();\n }", "boolean hasImported();", "protected LibReference() {\n\t}", "protected void include( String url ) {\r\n\t\tSQLFile file = Factory.openSQLFile( getResource().resolve( url ), progress );\r\n\t\tsetContext( new UpgradeContext( upgradeContext, file.getSource() ) );\r\n\t}", "public void addCustomFileImporter(FileImporter importer) {\n\t\tif (importer == null)\n\t\t\tthrow new NullPointerException(\"importer\");\n\t\tif (!_customFileImporters.contains(importer))\n\t\t\t_customFileImporters.add(importer);\n\n\t}", "protected String getImportStatement() {\n return \"\";\n }", "public TypeScriptWriter addImport(String name, String as, String from) {\n imports.addImport(name, as, from);\n return this;\n }", "private Assets (){}", "public ExternalFileMgrImpl()\r\n \t{\r\n \t\t\r\n \t}", "public boolean isImported();", "public abstract void importObj(Object obj);", "public void importFrom(JTFFile file) throws FileException {\n if (file.getHeader().getFileVersion() != Constants.Files.Versions.JTF.FIRST ||\n file.getHeader().getFileVersion() != Constants.Files.Versions.JTF.SECOND) {\n throw new FileException(resources.getMessage(\"errors.file.unsupportedversion\"));\n } else if (file.isValid()) {\n\n importLanguage(file);\n importCountries(file);\n importKinds(file);\n importType(file);\n importRealizer(file);\n importActors(file);\n\n file.getFilm().setNote(daoNotes.getNote(NoteType.getEnum(file.getFilm().getTemporaryContext().getIntNote())));\n\n filmsService.create(file.getFilm());\n } else {\n throw new FileException(resources.getMessage(\"errors.file.structureerror\"));\n }\n }", "public void initLoadingFileEnviroment() {\n // file init\n try {\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n File filepath = new File(DATA_PATH);\n fileFactory.setRepository(filepath);\n this._uploader = new ServletFileUpload(fileFactory);\n\n } catch (Exception ex) {\n System.err.println(\"Error init new file environment. \" + ex.getMessage());\n }\n }", "private void importCatalogue() {\n\n mAuthors = importModelsFromDataSource(Author.class, getHeaderClass(Author.class));\n mBooks = importModelsFromDataSource(Book.class, getHeaderClass(Book.class));\n mMagazines = importModelsFromDataSource(Magazine.class, getHeaderClass(Magazine.class));\n }", "public void setImporte(java.lang.String importe) {\n this.importe = importe;\n }", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\tlib.addAll(\"Mushroom_Publishing.txt\");\n\t}", "private FileOperations() throws FileNotFoundException {\r\n\t\tbiddingPersistence = new BiddingPersistence(Constants.biddingsFilePath, \r\n\t\t\t\tConstants.indexBiddingsPath);\r\n\t\tusersPersistence = new UsersPersistence(Constants.usersFilePath,\r\n\t\t\t\tConstants.indexUsersPath);\t\t\r\n\t}", "private FSUtils() {\n }", "public static void setupFiles(FileManagerUtil fm) {\n fileManagerUtil = fm;\n Files.CONFIG.load(fm);\n Files.PERMISSIONS.load(fm);\n Files.DATA.load(fm);\n Files.DEBUG.load(fm);\n Files.MESSAGES.load(fm);\n }", "static boolean Import(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Import\")) return false;\n if (!nextTokenIs(b, K_IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = SchemaImport(b, l + 1);\n if (!r) r = ModuleImport(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "private void loadGameFiles(){\n\t}", "public void addImport(String importVal)\n\t\t\tthrows JavaFileCreateException {\n\t\tif (importVal == null || \"\".equals(\"\")) {\n\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t.toString());\n\t\t} else {\n\t\t\timportVal = importVal.trim();\n\t\t\tPattern pat = Pattern.compile(\"[^a-zA-Z0-9]*\");\n\t\t\tString[] temp = importVal.trim().split(\"\\\\.\");\n\t\t\tif (temp.length == 0) {\n\t\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t} else {\n\t\t\t\tfor (String string : temp) {\n\t\t\t\t\tMatcher mat = pat.matcher(string);\n\t\t\t\t\tboolean rs = mat.find();\n\t\t\t\t\tif (rs) {\n\t\t\t\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\timports.add(importVal);\n\t}", "public static void load() {\n }", "@Override\n public void run() {\n try {\n //OPML.importFromFile(Environment.getExternalStorageDirectory().toString() + File.separator\n // + fileNames[which]);\n } catch (Exception e) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), R.string.error_feed_import, Toast.LENGTH_LONG).show();\n }\n });\n }\n }", "public void importFileClick() {\n\n //Lets the user choose a file location\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Open Resource File\");\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.dir\")));\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Run-length encoding\",\n \"*.rle\"));\n File file = fileChooser.showOpenDialog(new Stage());\n\n //If a file was chosen, will stop the game and set the generation to 0 and try to load the file.\n if (file != null) {\n timeline.stop();\n gOL.resetGenCounter();\n generationLabel.setText(Integer.toString(gOL.getGenCounter()));\n try {\n fileHandler.readGameBoardFromDisk(file);\n } catch (IOException ie) {\n //Produces a warning if unsuccessful\n PopUpAlerts.ioAlertFromDisk();\n }\n }\n\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n isMovable = true;\n canvasArea.requestFocus();\n setFocusTraversable(false);\n\n //Resets offset to accommodate for the new pattern and calls draw().\n canvasDrawer.resetOffset(board, canvasArea);\n draw();\n }", "private XIncluder() {}", "public void setImport (final String parg) throws CGException {\n ivImport = UTIL.ConvertToString(UTIL.clone(parg));\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "private void parseFile(Project p, File f, ImportSettings settings, int pass)\n throws ImportException {\n\n\n try {\n BufferedInputStream bs = new BufferedInputStream(new FileInputStream(f));\n Lexer l = new Lexer(bs, f.getAbsolutePath());\n TokenCollection toks = l.lex();\n Parser px = new Parser();\n CompilationUnitNode cu = px.parse(toks, l.StringLiterals);\n parsedElements.add(cu);\n } catch (FeatureNotSupportedException e) {\n //throw new ImportException(\"Error parsing file: \" + f.getAbsolutePath() + \" due to: \"+e.getMessage());\n System.out.println(\"Error parsing file: \" + f.getAbsolutePath() + \" due to: \"+e.getMessage());\n } catch (Exception e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n// throw new ImportException(\"Error parsing file: \" + f.getAbsolutePath());\n System.out.println(\"Error parsing file: \" + f.getAbsolutePath());\n }\n\n }", "private GraphFileManager() {\n\t}", "public void addImport(String importPackage) {\r\n this.imports.add(importPackage);\r\n }", "public void handleImport(ActionEvent actionEvent) {\n\t}", "public FileUtility()\n {\n }", "public void run() {\n // Initialize\n imports = new HashSet<>();\n lines = new ArrayList<>();\n\n // Read and merge source files\n final File folder = new File(\"src\");\n recurseOverFolder(folder);\n\n // Output to file\n outputFile();\n }", "public abstract void loadFile(Model mod, String fn) throws IOException;", "public void createFileObjects() {\n List<String> externalFiles = abbreviationsPreferences.getExternalJournalLists();\n externalFiles.forEach(name -> openFile(Paths.get(name)));\n }", "public static void main(String[] args){\n String importPath = \"import.CSV\";\n String exportQuery = \"SELECT * FROM PAIS\";\n SQLUtils t = new SQLUtilsImpl();\n File export = t.importCSV(exportQuery);\n //t.runFile(file);\n //t.importCSV(importF);\n //System.out.println(t.executeQuery(\"SELECT * FROM CIDADE WHERE ID = 3000\")); \n \n System.out.println(\"termino\");\n }", "public void mo210a(File file) {\n }", "public void filesLocation (String externalFolder) {\n externalStaticFileFolder = externalFolder;\n }", "public void addExternalFilesCP(File f) { externalFilesCP.add(f); }", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@Override\n\t\t\t\tpublic void notifyOnItemClickIsFile(File f)\n\t\t\t\t{\n\t\t\t\t\tProgressDialog pd= ProgressDialog.show(context,null, \"正在导入中...\",true,false);\n\t\t\t\t\tString importFilePath=f.getPath();\n\t\t\t\t\tboolean isImport=new RegularManager(context).importXMLRegularByPullParser(importFilePath);\n\t\t\t\t\tif(isImport){\n\t\t\t\t\t\tif(regularImportNotify!=null){\n\t\t\t\t\t\t\tregularImportNotify.notifyImportSuccess();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfilesBrowser.obtainShowDialog().hide();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(regularImportNotify!=null){\n\t\t\t\t\t\t\tregularImportNotify.notifyImportFailed();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t pd.dismiss();\n\t\t\t\t}", "public abstract File mo41087j();", "private static void addProjectFiles(IProject newProject){\n \t//add README file\n \taddProjectFile(newProject , README_FILE_NAME , \"\" );\n \t//add ProviderClass\n \taddProjectFile(newProject , PROVIDER_SCRIPT_FILE_NAME , CLASSES_FOLDER+\"/\" );\n }", "private void updateFiles() {\n\t}", "public final void mT__37() throws RecognitionException {\n try {\n int _type = T__37;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:20:7: ( 'import' )\n // InternalDSL.g:20:9: 'import'\n {\n match(\"import\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void projectOpened(File pfile, FileOpenSelector files) { }", "public void addImport(String targetNamespace, String location) {\r\n\t\tupdateLastModified();\r\n\t\tif (imports == null) {\r\n\t\t\timports = new LinkedMap();\r\n\t\t}\r\n\t\timports.put(targetNamespace, location);\r\n\t}", "public boolean isI_IsImported();" ]
[ "0.6806929", "0.67575544", "0.67575544", "0.64342487", "0.6207662", "0.61745363", "0.6095622", "0.6072364", "0.6065845", "0.59175307", "0.5849443", "0.5790812", "0.57822907", "0.5704321", "0.56729245", "0.5644469", "0.5590331", "0.5581748", "0.55786526", "0.55666536", "0.553069", "0.5505435", "0.5494177", "0.54880637", "0.54570764", "0.54531", "0.5431023", "0.5423039", "0.54079586", "0.5405673", "0.5402327", "0.5401649", "0.5395687", "0.5365238", "0.53451914", "0.53451616", "0.53361785", "0.5299973", "0.5291482", "0.52879936", "0.5274214", "0.527092", "0.5267011", "0.52339906", "0.52258706", "0.52136433", "0.52129513", "0.51999336", "0.5190164", "0.5168546", "0.5166305", "0.51640815", "0.5163864", "0.5162532", "0.5146663", "0.514206", "0.51375115", "0.5130071", "0.5129482", "0.51294297", "0.512088", "0.511733", "0.5116511", "0.5115705", "0.51109153", "0.51014054", "0.5100164", "0.5097722", "0.5097356", "0.5096483", "0.50861704", "0.5084717", "0.507914", "0.5074536", "0.5069716", "0.5066555", "0.5061103", "0.50564396", "0.50522375", "0.5035996", "0.50272894", "0.5026037", "0.5021787", "0.50005156", "0.49911734", "0.49908692", "0.49886465", "0.49841705", "0.49828404", "0.4977481", "0.49748588", "0.497441", "0.49716887", "0.49696517", "0.496948", "0.4968301", "0.49660552", "0.4962169", "0.49600676", "0.49584198", "0.4955764" ]
0.0
-1
find in the user.xml with the name
public User getUser(String name) throws DocumentException{ for (Iterator iter = root.elementIterator(); iter.hasNext();) { Element e = (Element) iter.next(); if(e.elementText("username").equals(name)){ User user = new User(); user.setMail(e.elementText("mail")); user.setName(e.elementText("username")); user.setPassword(e.elementText("password")); return user; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "public User search_userinfo(String user_name);", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "public User findUser(String name) {\n\t\treturn null;\r\n\t}", "private String getUser(String name) {\n\t\treturn null;\n\t}", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public int search_userid(String user_name);", "@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}", "@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}", "public AgtUser findUserByName(String username);", "public boolean findUserBYName(String name);", "public User whoIsTheUser(String name){\n boolean space5 = false;\n User userPrivate = null;\n for(int i = 0; i<MAX_USER && !space5; i++){\n userPrivate = user[i];\n if(userPrivate.getUserName().equals(name)){\n space5 = true;\n }\n }\n return userPrivate;\n }", "public MetaUser getMetaUser(String sName);", "User findUserByName(String name);", "public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}", "java.lang.String getUser();", "public EOSUser findUser(String login) throws EOSNotFoundException;", "public void setUser_name(String user_name);", "public User getUser(String name);", "public User getUser(String name);", "@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}", "public boolean getUser(String name) {\r\n PomoServer server = new PomoServer();\r\n String parameters = PomoServer.MODE_SELECT + \"&\" + \"name=\" + name;\r\n String url = PomoServer.DOMAIN_URL + PomoServer.SERVLET_USER;\r\n String data = server.get(url, parameters);\r\n return data.equals(\"1\");\r\n }", "public SecurityUser findByName(String username);", "@Override\n public User findUserByName(String name) {\n User user = new User();\n user.setName(\"admin\");\n user.setPassword(\"00b3187384f2708025074f28764a4a30\");\n return user;\n }", "public User findUserName(String name)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (name.equals(users.get(i).getUsername()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public void onGetName(String user,String name);", "public User getUserByName(String name) {\n \t\tfor (User user : users) {\n \t\t\tif (user.getName().equals(name))\n \t\t\t\treturn user;\n \t\t}\n \t\treturn null;\n \t}", "java.lang.String getXUsersInfo();", "User getByName(String name);", "public User retrieveUser(String name)\r\n\t{\r\n\t\t\r\n\t\treturn users.get(name);\r\n\t}", "private void lookUpUsers() {\n\t\ttry {\n\t\t\tString[] regList = Naming.list(\"//localhost:3000\");\n\t\t\tfor (String s : regList) {\n\t\t\t\tif (!s.contains(\"Notary\") && !s.contains(this.id)) {\n\t\t\t\t\tremoteUsers\n\t\t\t\t\t\t.put(s.replace(\"//localhost:3000/\", \"\"), (UserInterface) Naming.lookup(s));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\n\t\t\tSystem.err.println(\"ERROR looking up user\");\n\t\t}\n\t}", "User getUserByUsername(String name) throws InvalidUserException;", "public User getSpecificUser(String username);", "User loadUserByUserName(String userName);", "public User findUser(String username) {\n if (userList.containsKey(username)) {\n return userList.get(username);\n } else {\n throw new NoSuchElementException(\"User Not Found.\");\n }\n }", "public User getUserByName(String username);", "public User getUserByName(String username);", "public int[] findUser(String name){\r\n\t\tint[] ctrl= new int[2];\r\n\t\tctrl[0] = 0;\r\n\t\tctrl[1] = 0;\r\n\t\tfor(int i=0; i<user.length && ctrl[0]!=1; i++){\r\n\t\t\tif(user[i]!=null && name.equals(user[i].getUsername()) ){\r\n\t\t\t\tctrl[0]=1;\r\n\t\t\t\tctrl[1]=i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ctrl;\r\n\t}", "public User getUser(String uid) {\n Enumeration<Object> enumeration = elements();\n while(enumeration.hasMoreElements()){\n User user = (User)enumeration.nextElement();\n if(uid.equals(user.getUid().toString())) {\n return user;\n }\n }\n throw new NoSuchElementException();\n }", "@Override\n public void onClick(View view){\n String username = search.getText().toString();\n String userid = \"\";\n if (users != null) {\n for (String id : users.keySet()) {\n if (users.get(id).getUserName().equals(username)){\n userid = id;\n break;\n }\n }\n if (userid.equals(\"\")){\n Toast.makeText(getContext(), \"No Such User\", Toast.LENGTH_LONG).show();\n } else {\n readUserInfo(userid, username);\n Toast.makeText(getContext(), \"Loading User\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(getContext(), \"Loading User List\", Toast.LENGTH_SHORT).show();\n }\n }", "private UserDao parseXmlStringUser(String xmlDoc){\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n UserHandler userHandler = new UserHandler();\n saxParser.parse(new InputSource(new StringReader(xmlDoc)), userHandler);\n return ((ArrayList<UserDao>)userHandler.getObjects()).get(0);\n } catch (Exception e) {\n AppLogger.getLogger().error(e.getMessage());\n }\n return null;\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "@Override\n\tpublic User getUserInfoByName(String name) {\n\t\treturn userRepository.getUserInfoByName(name);\n\t}", "@Override\n\tpublic ERS_USERS getByName(String name) {\n\t\treturn null;\n\t}", "public MsUser getUser(final String name) {\n return users.get(name);\n }", "String getUser();", "String getUser();", "@Override\n\tpublic Usuario findByName(String name) {\n\t\treturn null;\n\t}", "public User findUser(String name) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where name = ?\");\n\t\t\tps.setString(1, name);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4),\n\t\t\t\t\t\trs.getDate(5));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\r\n\tpublic User findUserByName(String userName) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getUser(String uname) {\n\t\tReadSQLUtil.sqlSource = config.getProperty(\"SQLDirectory\");\n\t\tMap<String, String> aPs = new HashMap<String, String>();\n\t\taPs.put(\"u_name\", uname);\n\t\tString fileName = \"user/Users.txt\";\n\t\tString aSql = ReadSQLUtil.ReadSqlFile(fileName);\n\t\tString sql = dbUtils.getSQL(aSql, aPs);\n\t\tJSONArray aJson = dbDao.getTable(sql);\n\t\tString res = JSON.toJSONString(aJson);\n\t\treturn res;\n\t}", "User getUser(String userName) throws InstanceNotFoundException;", "@SuppressWarnings(\"static-method\")\n public @NotNull LocalUser findByName(String username) throws UserNotFoundException {\n if (\"admin\".equals(username)) {\n LocalUser user = new LocalUser(\"admin\", \"struts2\");\n return user;\n }\n throw new UserNotFoundException(username);\n }", "private User loadUserInfo(String nickname, String filename, Class view) throws NoSuchElementException {\n try {\n return JSONMapper.findAndGet(filename, nickname, view);\n } catch (IOException e) {\n //e.printStackTrace();\n throw new NoSuchElementException(\n \"Impossible to retrieve the user from \"\n + this.registrationPath\n + \" due to some IOError\"\n );\n }\n }", "@Override\r\n\tpublic user selectByName(String name) {\n\t\treturn userM.selectByName(name);\r\n\t\r\n\t}", "@AutoEscape\n\tpublic String getUser_name();", "private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }", "public User findUser(String username) {\n if (activeUsers.containsKey(username)) return activeUsers.get(username);\n String fileName = username;\n try {\n return (User) loadObjFromFile(usersDirPath + fileName);\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n log(\"error finding user\");\n }\n return null;\n }", "public void testUserDirectory()\n {\n open(\"/xwiki/bin/view/XWS/Directory\");\n getSelenium().typeKeys(\"firstname\", \"Jean\");\n getSelenium().waitForCondition(\"selenium.page().bodyText().indexOf('Valjean') != -1;\", \"3000\");\n assertElementPresent(\"//td[@class='firstname']/a[text()='Jean']\");\n assertElementNotPresent(\"//td[@class='firstname']/a[text()='Adam']\");\n }", "public String userInfo(String name){\r\n\t\tString message=\"Este usuario NO existe \";\r\n\t\tint[] info = findUser(name);\r\n\t\tif(info[0]==1)\r\n\t\t\tmessage=user[info[1]].showInfo();\r\n\t\treturn message;\r\n\t}", "@Override\n public boolean login(String username, char[] password) throws RemoteException {\n //Determines whether or not user with a specific username exist\n if (fileExist(USER_DIR + username + \".xml\")) {\n try {\n //Make the password a string\n String strPassword = \"\";\n for (int i = 0; i < password.length; i++) {\n strPassword += String.valueOf(password[i]);\n }\n //Open the file with the user information\n inputStream = new FileInputStream(USER_DIR + username + \".xml\");\n inputStreamReader = new InputStreamReader(inputStream);\n reader = new BufferedReader(inputStreamReader);\n\n sb = new StringBuilder();\n\n while ((lineString = reader.readLine()) != null) {\n sb.append(lineString);\n }\n \n //After that the @param userInfo contain a whole information about the user\n String userInfo = new String(sb);\n \n //Validate user form with a regular expresions\n if (!Pattern\n .compile(\"<username>\" + username + \"</username>\")\n .matcher(userInfo)\n .find()) {\n return false;\n }\n\n if (!Pattern\n .compile(\"<password>\" + strPassword + \"</password>\")\n .matcher(userInfo)\n .find()) {\n return false;\n }\n //Get the user priviliges\n if (Pattern\n .compile(\"<privilige>ENCRYPT</privilige>\")\n .matcher(userInfo)\n .find()) {\n priviliges = User.Priviliges.ENCRYPT;\n } else if (Pattern\n .compile(\"<privilige>DECRYPT</privilige>\")\n .matcher(userInfo)\n .find()) {\n priviliges = User.Priviliges.DECRYPT;\n } else if (Pattern\n .compile(\"<privilige>ENCRYPT_AND_DECRYPT</privilige>\")\n .matcher(userInfo)\n .find()) {\n priviliges = User.Priviliges.ENCRYPT_AND_DECRYPT;\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n closeResources();\n }\n } else {\n return false;\n }\n return true;\n }", "List<User> getUserByName(String name);", "String getUserName();", "String getUserName();", "@Override\r\n\tpublic Utilisateur getUser(String nom) {\n\t\treturn null;\r\n\t}", "public String findUserData(String login, String key);", "public UserQueryEntity getByName(String userName);", "void setName( String username, String name ) throws UserNotFoundException;", "public String searchName(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, name from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, name;\n name = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n name = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return name;\n }", "@Override\n\tpublic User findUserByName(String name) {\n\t\treturn dao.findUserByName(name);\n\t}", "public String getSinlgeEntry(String userName) {\n Cursor cursor = db.query(\"LOGIN\", null, \" USERNAME=?\",\n new String[] { userName }, null, null, null);\n if (cursor.getCount() < 1) // UserName Not Exist\n return \"NOT EXIST\";\n cursor.moveToFirst();\n String password = cursor.getString(cursor.getColumnIndex(\"PASSWORD\"));\n return password;\n }", "public User getUserByUserName(String userName);", "User loadUser( String username ) throws UserNotFoundException;", "public Utente containUsername(String username) {\r\n \t\r\n \tfor(Utente ut: utenti) {\r\n \t\tString us=ut.getUsername();\r\n \t\tif(us.equals(username)) {\r\n \t\t\treturn ut;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn null;\r\n \t\r\n }", "public void findUIElements() {\n nameField = (EditText) findViewById(R.id.NAMEFIELD);\n nameField.setHintTextColor(getResources().getColor(R.color.colorPrimary));\n enterButton = (Button) findViewById(R.id.ENTER);\n enterButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String name = nameField.getText().toString();\n if (name.length() > 0) {\n RealmManager.getInstance().createUser(name);\n finish();\n }\n }\n });\n }", "@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "User get(String name);", "public String searchPreference(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, preference from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, prefer;\n prefer = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n prefer = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return prefer;\n }", "public boolean userNameExist(String username);", "private String getUserName() {\n EditText nameEditText = (EditText) findViewById(R.id.name_edit_text);\n return nameEditText.getText().toString().trim();\n }", "public boolean isRegisteredUserName(String userName);", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "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 User findUserByNickname(final String nickname);", "private int checkUserExists(String name)\r\n\t{\r\n\t\tfor (int i = 0; i < numOfUsers; i++)\r\n\t\t{\r\n\t\t\tif (name.equals(userAccounts[0][i]))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public Profile searchProfile(String name) {\r\n\t\tSystem.out.println(\"MineshafterProfileClient.searchProfile(\" + name + \")\");\r\n\r\n\t\ttry {\r\n\t\t\tname = URLEncoder.encode(name, \"UTF-8\");\r\n\t\t\tURL u = new URL(API_URL + \"?username=\" + name);\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString uuid = Util.ensureUUIDFormatted(Streams.toString(in));\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tif (uuid == null || uuid.length() == 0) { return new Profile(name); }\r\n\r\n\t\t\treturn new Profile(name, uuid);\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (MalformedURLException 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\r\n\t\treturn new Profile(name);\r\n\t}", "User browseUserByUsername(String username);", "public static User findUserByName(String username) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByName = \"SELECT * FROM public.member \"\n + \"WHERE name = '\" + username + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByName);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n\n return user;\n }", "@Test\n public void testSearchUsersByName() {\n token.setGroupId(findMemberGroup(token).getGroupId());\n\n // Setting a partial name to search for. The search will look at both\n // first and last names which contain this as part of their name. In\n // this case, we're searching for \"man\", which will yield the following:\n // - Germany\n // - Oman\n // - Romania\n final SearchUserRequest request = new SearchUserRequest();\n request.setName(\"man\");\n\n // Now, invoke the search for users with a partial name given\n final SearchUserResponse response = administration.searchUsers(token, request);\n\n // And verify the result\n assertThat(response.isOk(), is(true));\n assertThat(response.getUsers().size(), is(3));\n }", "public UserSession getUserForName(String name) throws SessionQueryException\n {\n UserSession returnedSession = null;\n\n SessionManagementComponent sampleComponent = new SessionManagementComponent(name, false, false);\n\n UserSession[] allSessions = getUserSessions(name);\n\n if(allSessions != null)\n {\n int index = Arrays.binarySearch(allSessions, sampleComponent, getNameComparator());\n\n if(index >= 0)\n {\n returnedSession = allSessions[index];\n }\n }\n\n return returnedSession;\n }", "private List<IUser> userSearch(IChannel root, String str) {\n List<IUser> list = new LinkedList<IUser>();\n userSearch(root, str, list);\n return list;\n }", "public User getUserByUserName(String username);", "public Usuarios findByName(String name) throws javax.persistence.NoResultException {\r\n return (Usuarios)EM.createNamedQuery(Usuarios.FIND_USER_BY_EMAIL)\r\n .setParameter(\"p1\", name)\r\n .getSingleResult();\r\n }", "public int UserNamePresent(String search) {\n\t\tint item = -1;\n\t\tfor (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getUsername().equals(search)){\n item = CarerAccounts.get(i).getID();\n\t\t\t}\n\t\t}\n\t\treturn item;\n\t}", "@Override\n public User getUserByUsername(String name) {\n \tSession session = this.sessionFactory.getCurrentSession(); \n \tQuery query = session.createQuery(\"from User where username=:username\");\n\t\tquery.setParameter(\"username\", name);\n\t\tUser u = (User) query.uniqueResult();\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "public User findByUserName(String userName) {\n logger.log(Level.INFO, \"suppp it works\");\n List<User> users = entityManager.createNamedQuery(User.FIND_BY_USERNAME)\n .setParameter(\"userName\", userName)\n .getResultList();\n if (users.isEmpty()) {\n return null;\n }\n return users.get(0);\n }", "public User loadUserByLogin(String login);", "public boolean findUser(String name, String password) throws SQLException {\n\n\t\tSQLSelect selectStatement = new SQLSelect();\n\t\treturn selectStatement.findUser(name, password);\n\t}" ]
[ "0.64953506", "0.64700097", "0.6390194", "0.63241154", "0.62863", "0.62315345", "0.619849", "0.6174478", "0.6106963", "0.6106766", "0.60721135", "0.5904653", "0.5857098", "0.58401257", "0.5809353", "0.58030003", "0.5799682", "0.5795427", "0.57813746", "0.57813746", "0.5773915", "0.5761196", "0.5757668", "0.57248527", "0.57165194", "0.57160085", "0.5667055", "0.5647384", "0.56371766", "0.5634872", "0.5633894", "0.56016773", "0.55948085", "0.55845267", "0.5581998", "0.5580982", "0.5580982", "0.55722606", "0.5567673", "0.55669314", "0.5564996", "0.55618113", "0.55618113", "0.55618113", "0.5561251", "0.55570465", "0.5551902", "0.5548889", "0.5548889", "0.5547121", "0.55170166", "0.5496331", "0.54798865", "0.5478891", "0.5478868", "0.54730576", "0.54668766", "0.54621285", "0.54513425", "0.5451032", "0.5446207", "0.544071", "0.5425903", "0.54213005", "0.5414399", "0.5414399", "0.5405924", "0.54034907", "0.5398977", "0.539665", "0.53818744", "0.5374915", "0.53735983", "0.53611255", "0.5357597", "0.53502464", "0.5349621", "0.53460884", "0.5342419", "0.5336609", "0.5329729", "0.5312095", "0.53062254", "0.52985126", "0.5290909", "0.5289129", "0.5288031", "0.5287766", "0.5286568", "0.5273701", "0.5272483", "0.5271678", "0.52690065", "0.52665967", "0.52632755", "0.5263232", "0.52568626", "0.52558833", "0.5254266", "0.52509385" ]
0.6612069
0
add a student into the user.xml
public boolean addStudent(Student student) throws DocumentException, IOException { String name = student.getName(); if(getUser(name)==null){//hasn't got a user called the same name String password = student.getPassword(); Student.Speciality speciality = student.getSpeciality(); String mail = student.getMail(); root = document.getRootElement(); Element root2 = root.addElement("student"); int nb = root.elements().size()-1; root2.addAttribute("id", String.valueOf(nb)); Element usernameElement = root2.addElement("username"); Element passwordElement = root2.addElement("password"); Element mailElement = root2.addElement("mail"); Element specialityElement = root2.addElement("speciality"); usernameElement.setText(name); passwordElement.setText(password); mailElement.setText(mail); specialityElement.setText(speciality.name()); writeXML(); return true; } else{//the same name already in the list return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addStudent(User user) {\n\t\t\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}", "public void addStudent(Student student) {\n\t\t\r\n\t}", "private void addStudent(Student student) {\n\t\tSystem.out.println(\"Add Student\");\n\t\tsmb.saveStudent(student);\n\t}", "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}", "@Override\r\n\tpublic void addStudentInCourse(Course course, User user) {\n\t\t\r\n\t}", "@Override\n public void addStudent(Student student) {}", "public void addStudents(Student student) {\r\n System.out.println(\"conectado con model ---> metodo addStudents\");\r\n //TODO\r\n }", "public void addStudent(Student student);", "public static void creaStudente(Student stud) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.STUDENT;\n\t\t\trp.parameters = new Object[] { stud };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public void addStudent(Student student) {\n students.add(student);\n }", "@Override\n\tpublic void gstudentAdd(Gstudent gstudent) {\n\t\tGstudentMapper.gstudentAdd(gstudent);\n\t}", "public void addStudents(Student theStudent) {\n\t\tConnection myConn=null;\n\t\tPreparedStatement myStmt=null;\n\t\ttry\n\t\t{\n\t\t//get db connection\n\t\tmyConn=dataSource.getConnection();\n\t\t\n\t\t// create sql for insert\n\t\tString sql=\"insert into student \"+\"(first_name, last_name, email) \"+\"values(?,?,?)\";\n\t\tmyStmt=myConn.prepareStatement(sql);\n\t\t\n\t\t//set the param values for the student\n\t\tmyStmt.setString(1, theStudent.getFirstName());\n\t\tmyStmt.setString(2, theStudent.getLastName());\n\t\tmyStmt.setString(3, theStudent.getEmail());\n\t\t\n\t\t//execute sql insert\n\t\tmyStmt.execute();\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose(myConn,myStmt,null);\n\t\t}\n\t}", "@Override\n public void addStudent(String firstName, String lastName, int age, Set<Course> courses) {}", "public void addStu(Student stu) {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t\t\t\t\t\t\t\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// Session sessionObj = null; \n\t\tSession sessionObj = sessionFactory.openSession();\n\t\ttry {\n\t\t\t// Creating Hibernate SessionFactory Instance\n\t\t\t// sessionObj = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\t\tsessionObj.beginTransaction();\n\t\t\tsessionObj.save(stu);\n\t\t\tSystem.out.println(\"\\n.......Records Saved Successfully To The Database.......\\n\");\n\t\t\t// Committing The Transactions To The Database\n\t\t\tsessionObj.getTransaction().commit();\n\t\t} catch (Exception sqlException) {\n\t\t\tif (null != sessionObj.getTransaction()) {\n\t\t\t\tSystem.out.println(\"\\n.......Transaction Is Being Rolled Back.......\");\n\t\t\t\tsessionObj.getTransaction().rollback();\n\t\t\t}\n\t\t\tsqlException.printStackTrace();\n\t\t} finally {\n\t\t\tif (sessionObj != null) {\n\t\t\t\tsessionObj.close();\n\t\t\t}\n\t\t}\n\t}", "public void createStudent(String name, String ID){}", "public void add(Student s)\r\n {\r\n students.add(s);\r\n }", "private void createLocalStudentUserData(FirebaseUser user){\n\n String name = usernameTextView.getText().toString();\n StudentManager.createStudent(name, user.getUid(), newSchoolID);\n\n }", "public int add(Users student) {\n\t\treturn this.userDao.add(student);\n\t}", "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 registerStudent(String webID, Student student) {\n if (students.getStudent(webID) != null)\n throw new IllegalArgumentException();\n\n //add student to database\n students.addStudent(webID, student);\n }", "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 addStudent() throws FileNotFoundException, ValidatorException {\n //Lesen wir die Daten\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Read student information\");\n System.out.print(\"ID: \");\n long studentId = sc.nextLong();\n System.out.print(\"First name: \");\n String firstName = sc.next();\n System.out.print(\"Last Name: \");\n String lastName = sc.next();\n\n //Wir rufen die addStudent Funktion vom dem Controller mit den gelesenen Daten auf\n if (ctrl.addStudent(studentId, firstName, lastName)) {\n System.out.println(\"Please add the courses later from the Registration System menu!\");\n System.out.println(\"Student saved with success!\");\n } else\n System.out.println(\"Student with this ID already exists!\");\n }", "public void add(Student student) {\n\t\tstudentList.add(student);\n\t}", "@PUT\n @Path(\"/register/{studentId}\")\n public void registerStudent() {\n }", "@Override\n\tpublic Student addStudent(Student std)\n\t {\n\t\t return studentrepo.save(std);\t\t \n\t }", "@RequestMapping(value = \"/student\")\r\n\tpublic String addstudent(Student student) {\r\n\t\tStudentdaoimpl impl = new Studentdaoimpl();\r\n\t\timpl.addstudent(student);\r\n\t\treturn \"redirect:/findallstudent\";\r\n\r\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}", "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 static void addStudent(Student student) throws SQLException {\r\n\t String sql = \" INSERT INTO Studentspring VALUES (?,?,?,?,?)\";\r\n\t PreparedStatement pStmt = con.prepareStatement(sql);\r\n\r\n\t String Name=student.getName();\r\n\t int Age=student.getAge();\r\n\t String Course=student.getCourse();\r\n\t int Year=student.getYear();\r\n\t String Section=student.getSection();\r\n\t \r\n\t pStmt.setString(1, Name);\r\n\t pStmt.setInt(2,Age);\r\n\t pStmt.setString(3,Course);\r\n\t pStmt.setInt(4,Year );\r\n\t pStmt.setString(5,Section);\r\n\r\n\t pStmt.executeUpdate();\r\n\t \r\n\t }", "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 }", "public void addStudent(String key, Student stu) {\n\t\tthis.list.put(key, stu);\n\t}", "void addUser(String uid, String firstname, String lastname, String pseudo);", "public boolean addStudent(Student student)\r\n {\r\n int new_student_ID = student.getStudent_ID();\r\n checkID(new_student_ID);\r\n student_IDs.add(new_student_ID);\r\n updateAcademicLevels(\"add\", student.getAcademic_year());\r\n\r\n Node new_node = new Node(student, first_node);\r\n first_node = new_node;\r\n\r\n number_of_entries++;\r\n return true; \r\n }", "@GetMapping(\"/add\")\n\tpublic List<Students> addStudent() {\n\t\tStudents student = new Students();\n\t\tstudent.setRollno(04);\n\t\tstudent.setSname(\"Cyborg\");\n\t\tstudent.setStudent_role(\"Graduate\");\n\t\tstudentMapper.insert(student);\n\t\treturn studentMapper.findAll(); \n\t}", "public Student insertStudent() {\n\t\tSystem.out.print(\"\\n--- 학생 정보 등록 ---\\n\");\n\t\tSystem.out.print(\"학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\tSystem.out.print(\"학생 나이 입력 \");\n\t\tint age = sc.nextInt();\n\t\tSystem.out.print(\"학생 주소 입력 \");\n\t\tString addr= sc.next();\n\t\tStudent st = new Student(name, age, addr);\n\t\treturn st;\n\t}", "public void insert(Student student) {\t\t\r\n\t\tdao.insertStudent(student); \r\n\t}", "public void addStudent(Student x) {\n\t\tif (studlist.size() < maxstudents) {\n\t\t\tstudlist.add(x);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Class is full.\");\n\t\t}\n\t}", "public void addStudent(String theStudent) {\n\t\tstudents[numberOfStudents] = theStudent;\n\t\tnumberOfStudents++; // Upadate the total number of students\n\t}", "public void addStudentInCourse(Course course, Student student){\n \n String statement = ADD_STUDENT_IN_COURSE;\n data.makeUpdateStatement(statement,new Object[]{(Object)course.getId(),(Object)student.getId()});\n data.closeConnections(data.ps, data.conn);\n }", "Student createStudent();", "public long addStudent(String studentname, String rollno, String ssg) {\n ContentValues initialValues=new ContentValues();\n initialValues.put(KEY_STUDENT_NAME,studentname);\n initialValues.put(KEY_STUDENT_ROLL,rollno);\n initialValues.put(KEY_FOREIGN,ssg);\n return liteDatabase.insert(DATABASE_TABLE2,null,initialValues);\n }", "public void admitStudent(){\n\t\tthis.getCourse().addStudent(this.getStudent());\n\t\tthis.getStudent().addCourse(this.getCourse());\n\t\tthis.course.removeApplication(this);\n\t}", "public void setStudent(String students) {\n\t\tthis.students = students;\n\t}", "@POST\n\t@Path(\"add\")\n\tpublic String addStudent(Representation entity) {\n\t\tForm form = new Form(entity);\n\t\tString name = form.getFirstValue(\"name\");\n\t\tint grade = Integer.parseInt(form.getFirstValue(\"grade\"));\n\t\tint sex = Integer.parseInt(form.getFirstValue(\"sex\"));\n\t\tint age = Integer.parseInt(form.getFirstValue(\"age\"));\n\n\t\tStudent student = new Student();\n\t\tstudent.setGrade(grade);\n\t\tstudent.setName(name);\n\t\tstudent.setSex(sex);\n\t\tstudent.setAge(age);\n\n\t\tint id = StorageOperator.studentID + 1;\n\t\tstudent.setId(id);\n\t\treturn String.valueOf(StorageOperator.addStudent(student));\n\t}", "public void enrollStudent(Student student) {\n\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 void ADDStudents(Student s) {\n\t\t\tint exist = 0;\n\n\t\t\tif(data.size() > 0) {\n\t\t\t\tfor(Student st: data) {\n\t\t\t\t\tif(s.id == st.id) {\n\t\t\t\t\t\texist = 1;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthrow new Exception(\"This student already in the table.\");\n\t\t\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"This student already in the table.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tIDField.setText(\"\");\n\t\t\t\t\t\tfirstNameField.setText(\"\");\n\t\t\t\t\t\tlastNameField.setText(\"\");\n\t\t\t\t\t\tgenderField.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t}\n\t\t\t\tdata.add(s);\n\t\t\t\tObject[] row = new Object[4];\n\t\t\t\trow[0] = \"\" + s.id;\n\t\t\t\trow[1] = s.firstName;\n\t\t\t\trow[2] = s.lastName;\n\t\t\t\trow[3] = s.gender;\n\t\t\t\tmodel.addRow(row);\n\t\t\t if(exist ==1) {\n\t\t\t\t data.remove(s);\n\t\t\t\t model.removeRow(data.size());\n\t\t\t }\n\t\t\t\t\n\t\t\t}", "public void registerIncourse(String cname, int sec, String fname, String lname) {\n\t\tString user, pass, first, last;\n\t\tfor (int i = 0; i < CourseManager.courses.size(); i++) {\n\t\t\tif (CourseManager.courses.get(i).getName().equals(cname) && CourseManager.courses.get(i).getSection() == sec) {\n\t\t\t\tfor (int j = 0; j < CourseManager.students.size(); j++) {\n\t\t\t\t\tif (CourseManager.students.get(j).getFirstname().equals(fname) && CourseManager.students.get(j).getLastname().equals(lname)) {\n\t\t\t\t\t\tuser = CourseManager.students.get(j).getUsername();\n\t\t\t\t\t\tpass = CourseManager.students.get(j).getPassword();\n\t\t\t\t\t\tfirst = CourseManager.students.get(j).getFirstname();\n\t\t\t\t\t\tlast = CourseManager.students.get(j).getLastname();\n\t\t\t\t\t\tStudent newstud = new Student(user, pass, first, last);\n\t\t\t\t\t\tCourseManager.courses.get(i).addStudent(newstud);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setStudentList(DatabaseStudent student){\n this.studentSet.add(student);\n }", "public void actionPerformed(ActionEvent e){\n \t\t \tstudentsController.addStudent();\n \t\t }", "public void setStudentName(String studentName);", "@FXML\n private void newStudent() {\n System.out.println(\"trying to insert new student to database\");\n DBhandler db = new DBhandler();\n Student s = new Student(\n txfID.getText(),\n txfFirstName.getText(),\n txfLastName.getText(),\n txfAddress.getText(),\n txfZIP.getText(),\n txfZIPloc.getText(),\n txfEmail.getText(),\n txfPhone.getText()\n );\n System.out.println(s.toString());\n db.insertStudent(s);\n Cancel(new ActionEvent());\n }", "private void Add() {\n\t\t\tString names2 = StudentNum.getText();\n\t\t\tString names1 = Studentname.getText();\n\t\t\tStudentname.setText(\"\");\n\t\t\tStudentNum.setText(\"\");\n\t\t\tif (!names2.equals(\"Student Number\")) {\n\t\t\t\tFile directory = new File(\"Schools\\\\\" + names2 + \".hi\");\n\t\t\t\tif (!directory.exists()) {\n\t\t\t\t\tif (directory.mkdir()) {\n\t\t\t\t\t\tworklabel.setText(\"Student has been added\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tPrintWriter out;\n\t\t\t\t\t\t\tPrintWriter out2;\n\t\t\t\t\t\t\tout = new PrintWriter(new FileWriter(\"Schools\\\\\"\n\t\t\t\t\t\t\t\t\t+ names2 + \".hi\" + \"\\\\\"\n\t\t\t\t\t\t\t\t\t+ \"Student Information.txt\", true));\n\t\t\t\t\t\t\tout.println(\"Student Name: \" + names1);\n\t\t\t\t\t\t\tout.println(\"Student Number: \" + names2);\n\t\t\t\t\t\t\tout.println(\"Address:\");\n\t\t\t\t\t\t\tout.println(\"Postal Code:\");\n\t\t\t\t\t\t\tout.println(\"Phone Number:\");\n\t\t\t\t\t\t\tout.println(\"Contact #1 Name:\");\n\t\t\t\t\t\t\tout.println(\"Contact #1 Number:\");\n\t\t\t\t\t\t\tout.println(\"Contact #1 Email:\");\n\t\t\t\t\t\t\tout.println(\"Contact #2 Name:\");\n\t\t\t\t\t\t\tout.println(\"Contact #2 Number:\");\n\t\t\t\t\t\t\tout.println(\"Contact #2 Email:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #1:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #2:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #3:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #4:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #5:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #1:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #2:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #3:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #4:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #5:\");\n\t\t\t\t\t\t\tout.println(\"Volunteer Hours:\");\n\t\t\t\t\t\t\tout2 = new PrintWriter(new FileWriter(\"Schools\\\\\"+ names2+\".hi\" + \"\\\\\" + \"Transcript.txt\",true));\n\t\t\t\t\t\t\tout2.println(\"Course Code\t\tMark\tPassed\tAbsences\tLate\");\n\t\t\t\t\t\t\tout.close();\n\t\t\t\t\t\t\tout2.close();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tworklabel.setText(\"Invalid\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void createStudent(Student student) {\n\t\tem.persist(student);\n\t}", "public void AddStudent(String depName, Student data) {\n\t\tdNode search = FindByName(depName);\n\t\tif (search != null) {\n\t\t\tdata.department = depName;\n\t\t\tsearch.data.students.Insert(data);\n\t\t} else {\n\t\t\tSystem.out.println(\"Could not find the departmen to addStudent \" + data.name + \" \" + depName);\n\t\t}\n\t}", "public void setStudent(Student s) {\r\n student = s;\r\n }", "@SuppressWarnings({ \"unchecked\", \"unused\" })\n\tprivate void addUser(TextField nameField, TextField passwordField) {\n\t\t\n\t\tString name = nameField.getText();\n\t\tString password = passwordField.getText();\n\t\tname.trim();\n\t\tpassword.trim();\n\t\t\n\t\tif(name.isEmpty()) {\n\t\t\tAlertMe alert = new AlertMe(\"You must enter a user name!\");\n\t\t}\n\t\telse if(password.isEmpty()) {\n\t\t\tAlertMe alert = new AlertMe(\"You must enter a user password!\");\n\t\t}\n\t\telse if(admin == null) {\n\t\t\tAlertMe alert = new AlertMe(\"You must select an account type!\");\n\t\t}\n\t\telse {\n\t\t\tArrayList<Student> students = JukeBox.getUsers();\n\t\t\t\n\t\t\tif(JukeBox.locateUser(name) != -1) {\n\t\t\t\tAlertMe alert = new AlertMe(\"User \" + name + \" already exists!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tStudent newStudent;\n\t\t\t\tif(admin) {\n\t\t\t\t\tnewStudent = new Student(name, password, true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnewStudent = new Student(name, password, false);\n\t\t\t\t}\n\t\t\t\tstudents.add(newStudent);\n\t\t\t\t\n\t\t\t\tnameField.setText(\"\");\n\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t\n\t\t\t\tusers.setItems(null); \n\t\t\t\tusers.layout(); \n\n\t\t\t\tObservableList<Student> data = FXCollections.observableArrayList(JukeBox.getUsers());\n\t\t\t\tusers.setItems(data);\n\t\t\t}\n\t\t}\n\t}", "public void addStudent(Student student) {\t\r\n\t\t//Adds student to list of students taking module\r\n\t\tStudentList.add(student);\r\n\t\t\r\n\t\t// adds module to students list of modules\r\n\t\tstudent.AddModuleList(ModuleName);\r\n}", "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\npublic void addUserToCourse(User user, Course course) {\n\tSystem.out.println(\"Student \"+user.getName()+ \" has joined the \"+course.getCourseName()+\".\");\r\n\t\t\r\n}", "public static void createAccount()\r\n\t {\r\n\t\t String name;\r\n\t\t String username;\r\n\t\t String password;\r\n\t\t ArrayList<Book> booksLent = null;\r\n\t\t System.out.println(\"Enter your name\");\r\n\t\t Scanner src = new Scanner(System.in);\r\n\t\t name = src.next();\r\n\t\t System.out.println(\"Enter your username\");\r\n\t\t src = new Scanner(System.in);\r\n\t\t username = src.next();\r\n\t\t System.out.println(\"Enter your password\");\r\n\t\t src = new Scanner(System.in);\r\n\t\t password = src.next();\r\n\t\t \r\n\t\t Student stu = new Student(name, username, password, booksLent, 0);\r\n\t\t studentAccount = stu;\r\n\t\t FileReader.getStudents().add(stu);\r\n\t\t FileReader.update();\r\n\t\t Display.studentDisplay(studentAccount);\r\n\t }", "private void onAddClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\t\r\n\t\t\tif(!chart.addStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"There are no seats available.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t\t\r\n\t}", "public void setStudent(Student student) {\r\n\t\tthis.student = student;\r\n\t}", "private void addStudentParticulars() throws Exception {\n String gender = \"MALE\";\n Student student = new Student();\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Please enter the student's username:\");\n String username = sc.nextLine();\n while((!username.matches(\"^[a-zA-Z0-9]+$\"))||(username.length()!=7))\n {\n if (username.length()!=7)\n System.out.println(\"Input characters only can have 7 characters.\");\n else\n System.out.println(\"Only alphanumeric allowed\");\n System.out.println(\"\\nPlease enter the student's username:\");\n username = sc.nextLine();\n }\n username = username.toUpperCase();\n\n\n while((this.studentMgr.readSingleStudent(username).getName())!=null){\n\n System.out.println(\"Username already exist\");\n System.out.println(\"\\n***********What would you like to do next ?***********\");\n System.out.println(\" Student Information \");\n System.out.println(\"______________________________________________________\\n\");\n System.out.println(\"|1. Add another student |\");\n System.out.println(\"|2. Update information for this student |\");\n System.out.println(\"|----------------------------------------------------|\");\n System.out.println(\"|0. Return to admin menu page |\");\n System.out.println(\"|----------------------------------------------------|\");\n System.out.println(\"______________________________________________________\");\n\n //sc.nextLine();\n int choice;\n do {\n while (!sc.hasNextInt()) {\n System.out.println(\"Invalid input! Please enter your choice:\");\n sc.next();\n }\n choice = sc.nextInt();\n if((choice < 0) || (choice > 2))\n System.out.println(\"Invalid input! Please enter your choice:\");\n } while ((choice < 0) || (choice > 2));\n if(choice == 1){\n System.out.println(\"Please enter the student's username:\");\n username = sc.nextLine();\n while(!username.matches(\"^[a-zA-Z0-9]+$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter the student's username:\");\n username = sc.nextLine();\n }\n username = username.toUpperCase();\n student.setName(username);\n }\n else if(choice ==2){\n this.nameExist = username;\n this.updStudentParticulars();\n }\n else\n return;\n\n }\n\n student.setUsername(username);\n \n\n System.out.println(\"Please enter \"+username+\"'s student name:\");\n String name = sc.nextLine();\n while(!name.matches(\"^[ A-Za-z]+$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s student name:\");\n name = sc.nextLine();\n }\n name = name.toUpperCase();\n student.setName(name);\n\n\n System.out.println(\"Please enter \"+username+\"'s password:\");\n String password = sc.nextLine();\n student.setPassword(password);\n\n\n\n //matric num\n System.out.println(\"Please enter \"+username+\"'s matric num (A1234567B):\");\n String matricNum = sc.nextLine();\n while(!matricNum.matches(\"[a-zA-Z]\\\\d{7}[a-zA-Z]\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s matric num (A1234567B):\");\n matricNum = sc.nextLine();\n }\n matricNum = matricNum.toUpperCase();\n student.setMatricNumber(matricNum);\n\n //gender\n System.out.println(\"Please enter \"+username+\"'s gender, M or F?\");\n char genderChar = sc.next().charAt(0);\n while((Character.toUpperCase(genderChar)!='M')&&(Character.toUpperCase(genderChar)!='F'))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s gender, M or F?\");\n genderChar = sc.next().charAt(0);\n }\n sc.nextLine();\n genderChar = Character.toUpperCase(genderChar);\n if(genderChar=='F')\n gender = \"FEMALE\";\n\n student.setGender(gender);\n\n //nationality\n System.out.println(\"Please enter \"+username+\"'s nationality :\");\n String nationality = sc.nextLine();\n while(!nationality.matches(\"^[a-zA-Z]*$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s nationality: \");\n nationality = sc.nextLine();\n }\n nationality = nationality.toUpperCase();\n\n student.setNationality(nationality);\n\n\n adminManager.addStudent(student);\n System.out.println(\"Add student successfully!\\n\");\n printAllStudentInDB();\n //add student information\n }", "public Builder addStudent(com.demo.springprotobuff.Demoproto.Student value) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\t\t\t\t\tensureStudentIsMutable();\n\t\t\t\t\tstudent_.add(value);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tstudentBuilder_.addMessage(value);\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}", "public void insertUser() {}", "@Override\r\n\tpublic Student createOrUpdateStudentRecord(Student student) {\r\n\t\t\tstudentDAO.addStudent(student);\r\n\t\treturn student;\r\n\t}", "@POST\r\n\t@Path(\"/student\")\r\n\tpublic void enrollStudentToCourse(@FormParam(\"studentID\") String studentID,\r\n\t\t\t@FormParam(\"courseID\") String courseID) {\r\n\r\n\t\tStudent student = InMemoryDataStore.getStudent(studentID);\r\n\t\tCourse course = InMemoryDataStore.getCourse(courseID);\r\n\r\n\t\tif (student == null || course == null) {\r\n\t\t\tthrow new WebApplicationException(Response.Status.BAD_REQUEST);\r\n\t\t}\r\n\r\n\t\tstudent.addCourse(courseID);\r\n\t\tcourse.addStudent(studentID);\r\n\t}", "public String modifyStu() {\n\t\tSystem.out.println(\"====================>>>>>\");\r\n\t\tSystem.out.println(stu.getStu_class());\r\n\t\tSystem.out.println(stu.getStu_name());\r\n\t\tSystem.out.println(de_id);\r\n\t\tDepartment de = departmentService.findDepartById(de_id);\r\n\t\tstu.setStu_department(de);\r\n\t\tSystem.out.println(\"====================>>>>>\");\r\n\t\tstuser.updateStudent(stu);\r\n\t\treturn \"modifyStuSuccess\";\r\n\t}", "@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}", "public Student addStudent(Student student){\r\n Student.assignId(student);\r\n Student response = repo.save(student);\r\n if(response == null){\r\n StudentChangeEvent event = new StudentChangeEvent(EventType.ADD, student);\r\n notifyObservers(event);\r\n }\r\n return response;\r\n }", "public void onClickAddName(View vew) {\n ContentValues values = new ContentValues();\n\n values.put(StudentsProvider.NAME,\n ((EditText) findViewById(R.id.txtName)).getText().toString());\n\n values.put(StudentsProvider.GRADE,\n ((EditText) findViewById(R.id.txtGrade)).getText().toString());\n\n\n Uri uri = getContentResolver().insert(StudentsProvider.CONTENT_URI, values);\n\n Toast.makeText(getBaseContext(),\n uri.toString(), Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void create(Student student) {\n\t\tString query=\"insert into student values('\"+student.getId()+\"','\"+student.getName()+\"','\"+student.getAge()+\"')\";\n\t//\tjdbcTemplate.update(query);\n\t\tint result=jdbcTemplate.update(query);\n\t\tSystem.out.println(result+\"Record Inserted\");\n\t}", "static boolean registerStudent(String name, String id, String username, String password, String major) {\r\n Student student = new Student();\r\n if (!StudentSystem.accounts.containsKey(username)) {\r\n student.setName(name);\r\n student.setId(id);\r\n student.setUsername(username);\r\n student.setPassword(password);\r\n student.setMajor(major);\r\n student.setAccountType(1);\r\n\r\n accounts.put(username, student);\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\r\n\t@Transactional\r\n\tpublic void createStudent(Bookmodel s1) {\n\t\tdao.createStudent(s1);\r\n\t}", "public void enrollUser(String firstName, String lastName, String BSSID, Boolean isAdmin){\n Node newUserNode = getEmptyNode();\n\n getChildNodeByTag(newUserNode,XMLNodeNames.LastName).setTextContent(lastName);\n getChildNodeByTag(newUserNode,XMLNodeNames.FirstName).setTextContent(firstName);\n getChildNodeByTag(newUserNode,XMLNodeNames.BSSID).setTextContent(BSSID);\n if(isAdmin)\n getChildNodeByTag(newUserNode,XMLNodeNames.Admin).setTextContent(\"1\");\n else\n getChildNodeByTag(newUserNode,XMLNodeNames.Admin).setTextContent(\"0\");\n\n setEnforceSeatBelt(BSSID, \"0\");\n Node lowerSeatPositionNode =getSettingNodeByType(getUserNode(BSSID), XMLNodeNames.SeatPositionX);\n\n lowerSeatPositionNode.setTextContent(getSettingNodeByType(getCarNode(), XMLNodeNames.SeatPositionX).getTextContent());\n setMaxSpeed(BSSID, 1000);\n updateXMLFile();\n }", "public boolean add(Student student) {\r\n\t\ttry {\r\n\t\t\treturn students.add(student);\r\n\t\t} catch(Exception error) {\r\n\t\t\terror.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public void createStudent(Student student) throws ClassRosterDuplicateIdException, ClassRosterDataValidationException, ClassRosterPersistenceException {\n if (dao.getStudent(student.getStudentId()) != null) {\n throw new ClassRosterDuplicateIdException(\"ERROR: Could not create student. Student Id \" + student.getStudentId() + \" already exists\");\n }\n \n // RULE TWO: is the student valid\n validateStudentData(student);\n \n // RULE THREE: Pass data to DAO\n dao.addStudent(student.getStudentId(), student);\n auditDao.writeAuditEntry(\"Student \" + student.getStudentId() + \" CREATED.\");\n }", "public void testAddMinimalStudent()\r\n throws Exception\r\n {\r\n Student student1 = new Student();\r\n student1.setGender( Gender.MALE );\r\n studentId1 = StudentIdGen.getInstance().nextStudentId();\r\n student1.setId( studentId1 );\r\n\r\n try\r\n {\r\n Session session = SessionUtil.begin();\r\n session.save( student1 );\r\n SessionUtil.end();\r\n }\r\n catch ( Exception e )\r\n {\r\n SessionUtil.rollback( e );\r\n }\r\n }", "@GetMapping(\"/save\")\n\tpublic @ResponseBody String addNewStudent(@RequestParam int rollno, @RequestParam String name, @RequestParam String role) {\n\t\tStudents student = new Students();\n\t\tstudent.setRollno(rollno);\n\t\tstudent.setSname(name);\n\t\tstudent.setStudent_role(role);\n\t\tstudentMapper.insert(student);\n\t\treturn \"Saved New User\";\n\t}", "private Student createStudent(Element studentNode) {\n String serialNumber = studentNode.getAttribute(\"serialNumber\");\n Student b = new Student();\n b.setSerialNumber(serialNumber);\n\n b.setName(getTextFromTagName(studentNode, \"name\"));\n b.setGroup(Integer.valueOf(getTextFromTagName(studentNode, \"group\")));\n b.setId(Long.valueOf(getTextFromTagName(studentNode, \"id\")));\n\n return b;\n }", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "public Student addStudent(AddOrUpdateStudentDTO student) throws SQLException {\n\n\t\t// try with resources: used when we want for our applicaton to automatically\n\t\t// call the .close() method on whatever \"resource\"\n\t\t// we are using\n\t\t// The connection interface defines a close() method. This method, when invoked,\n\t\t// will disconnect from the database\n\t\t// Whenever we are done with our block of code inside with\n\t\ttry (Connection con = JDBCUtil.getConnection()) {\n\t\t\tString sql = \"INSERT INTO students (student_first_name, student_last_name, student_classification, student_age)\"\n\t\t\t\t\t+ \"VALUES (?,?,?,?)\";\n\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\n\t\t\tpstmt.setString(1, student.getFirstName());\n\t\t\tpstmt.setString(2, student.getFirstName());\n\t\t\tpstmt.setString(3, student.getClassification());\n\t\t\tpstmt.setInt(4, student.getAge());\n\n\t\t\tint numberOfRecordsInserted = pstmt.executeUpdate(); // Instead of execute query like we use for select\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// statement, INSERT, UPDATE, and DELETE will use\n\t\t\t// executeUpdate(). This method returns an integer representing the number of\n\t\t\t// rows that were modified.\n\n\t\t\t// if numbers of records that were inserted is NOT 1, then something went wrong\n\t\t\tif (numberOfRecordsInserted != 1) {\n\t\t\t\tthrow new SQLException(\"Adding a new Student was unsucessful\");\n\t\t\t}\n\n\t\t\tResultSet rs = pstmt.getGeneratedKeys();\n\t\t\trs.next(); // iterating to the first row\n\t\t\tint automaticallyGeneratedId = rs.getInt(1); // grabing the first column information from that \"row\"\n\n\t\t\t// When we return the Student that we created in the database\n\t\t\t// The missing data is the automatically generated ID\n\t\t\t// How do we obtain that id?\n\t\t\treturn new Student(automaticallyGeneratedId, student.getFirstName(), student.getLastName(),\n\t\t\t\t\tstudent.getClassification(), student.getAge());\n\t\t}\n\t}", "public void registerDB(Course curs, Student stud) throws SQLException {\r\n Connection con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/Hogwarts\",\"postgres\" , \"admin\");\r\n Statement st = con.createStatement();\r\n\r\n st.executeUpdate(\"INSERT INTO public.enrolled(\\n\" +\r\n \"\\t\\\"studentID\\\", \\\"courseID\\\")\\n\" +\r\n \"\\tVALUES (\" + stud.getId() + \", \" + curs.getId() + \")\");\r\n\r\n st.close();\r\n }", "public Builder addStudent(int index, com.demo.springprotobuff.Demoproto.Student value) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\t\t\t\t\tensureStudentIsMutable();\n\t\t\t\t\tstudent_.add(index, value);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tstudentBuilder_.addMessage(index, value);\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}", "boolean insertUser(SchoolSubject schoolSubject);", "private static Student newUser(ArrayList<Student> students){\n\t\tStudent newStudent = new Student();\n\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter first name:\");\n\t\t\t\tnewStudent.setFirstName(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getFirstName() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter last name:\");\n\t\t\t\tnewStudent.setLastName(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getLastName() == null);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter age:\");\n\t\t\t\tnewStudent.setAge(Integer.parseInt(input.nextLine()));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getAge() == -1);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter gender(M/F):\");\n\t\t\t\tnewStudent.setGender(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getGender() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter SSN:\");\n\t\t\t\tnewStudent.setSSN(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getSSN() == null);\n\t\t \n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter address:\");\n\t\t\t\tnewStudent.setAddress(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getAddress() == null);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter city:\");\n\t\t\t\tnewStudent.setCity(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getCity() == null);\t\t\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter state(two character abbreviation):\");\n\t\t\t\tnewStudent.setState(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getState() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter zip:\");\n\t\t\t\tnewStudent.setZip(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getZip() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter email:\");\n\t\t\t\tnewStudent.setEmail(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getEmail() == null);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter phone:\");\n\t\t\t\tString temp = input.nextLine();\n\t\t\t\t// remove all non-numeric characters\n\t\t\t\ttemp = temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t\t\t\tnewStudent.setPhone(temp);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getPhone() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter ID (Numeric):\");\n\t\t\t\tnewStudent.setID(Integer.parseInt(input.nextLine()));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getID() == -1);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter college:\");\n\t\t\t\tnewStudent.setCollege(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getCollege() == null);\n\n\t\tString usr = null;\n\t\tboolean failUsrCheck = false;\n\t\t\n\t\tdo{\n\n\t\t\tSystem.out.println(\"Enter user name:\");\n\t\t\tusr = input.nextLine(); \n\t\t\tfor(Student studentI : students) {\n\t\t\t\tif(usr.equals(studentI.getUsername().replace(\"\\r\",\"\"))){\n\t\t\t\t\tfailUsrCheck = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(failUsrCheck){\n\t\t\t\tSystem.out.println(\"User name already used.\");\n\t\t\t}\n\t\t}while (failUsrCheck);\n\t\tnewStudent.setUsername(usr);\n\n\t\t// Display the block of text with the password requirements\n\t\tSystem.out.println(newStudent.PASSWORD_REQUIREMENTS);\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter password:\");\n\t\t\t\tnewStudent.setPassword(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getPassword() == null);\n\t\t\n\t\treturn newStudent;\n\t}", "public void addNewStudent(String name, String secondName, String surname,\n\t\t\tDate birthday, String facultet, int groupNumber) {\n\t\tstudents.add(\n\t\t\t\tStudent.get(name, secondName, surname, birthday, facultet, groupNumber)\n\t\t\t\t);\n\t\tisStudentsListChanged = true;\n\t\tdataChangedNotify();\n\t\t\n\t}", "@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);", "@Test\n public void testAddEligibleStudent() {\n System.out.println(\"addEligibleStudent\");\n int ID = 1010101010;\n instance.addEligibleStudent(ID);\n\n assertTrue(\"Student eligibility unchanged\", instance.isStudentEligible(ID));\n\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public void registerStudent(String firstName, String lastName, String bcsYear,\n String email, String accountID) throws SQLException {\n Statement myStatement = studentConn.createStatement();\n\n myStatement.executeUpdate(\"INSERT INTO student(firstName, lastName, bcsYear, email, accountID) \"\n + \"VALUES(\\\"\" + firstName + \"\\\", \\\"\" + lastName + \"\\\", \\\"\"\n + bcsYear + \"\\\", \\\"\" + email + \"\\\", \\\"\" + accountID + \"\\\");\");\n }", "public static void getXMLUserList() {\n\t\t// Make some local arrays to use below\n\t\tArrayList<Student> activeList = new ArrayList<Student>();\n\t\tArrayList<Student> archiveList = new ArrayList<Student>();\n\t\ttry {\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 users = builder.parse(xmlFile);\n\t\t\t\n\t\t NodeList studentNodes = users.getElementsByTagName(\"student\");\n\t\t for(int i = 0; i < studentNodes.getLength(); i++) { // Go through each student node\n\t\t \t\n\t\t Node studentNode = studentNodes.item(i);\n\t\t if(studentNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t Element studentEl = (Element) studentNode;\n\t\t // Get the student's info (and convert types when necessary)\n\t\t String fn = studentEl.getElementsByTagName(\"firstName\").item(0).getTextContent();\n\t\t String ln = studentEl.getElementsByTagName(\"lastName\").item(0).getTextContent();\n\t\t String id = studentEl.getElementsByTagName(\"ucid\").item(0).getTextContent();\n\t\t int ucid = Integer.parseInt(id);\n\t\t String cB = studentEl.getElementsByTagName(\"currentBorrowing\").item(0).getTextContent();\n\t\t int cb = Integer.parseInt(cB);\n\t\t String iA = studentEl.getElementsByTagName(\"isActive\").item(0).getTextContent();\n\t\t boolean ia = Boolean.parseBoolean(iA);\n\t\t String username = studentEl.getElementsByTagName(\"username\").item(0).getTextContent();\n\t\t String pW = studentEl.getElementsByTagName(\"password\").item(0).getTextContent();\n\t\t String iL = studentEl.getElementsByTagName(\"isLibrarian\").item(0).getTextContent();\n\t\t boolean isLib = Boolean.parseBoolean(iL);\n\t\t \n\t\t // And then create all a new instance of Student with the info\n\t\t\t Student newStudent = new Student(fn, ln, ucid, cb, ia, username, pW, isLib);\n\t\t\t // Put the newly created student in the right list\n\t\t\t if(ia) {\n\t\t\t \tactiveList.add(newStudent);\n\t\t\t } else {\n\t\t\t \tarchiveList.add(newStudent);\n\t\t\t }\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Something went wrong with the Users.xml parsing\");\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t// Store our arrays so they are accessible elsewhere\n\t\tManageUsers.setActiveList(activeList);\n\t\tManageUsers.setArchiveList(archiveList);\n\t}", "public static boolean addStudent(String Name, String Password, String Email, Calendar dob, String MatricNo,\n\t\t\tString SchoolID, String Degree) {\n\n\t\tif (StudentList.size() == 0) {\n\t\t\tStudent newStudent = new Student(Name, Password, Email, dob, MatricNo, SchoolID, Degree);\n\t\t\tList<Object> student = new ArrayList<Object>();\n\t\t\tstudent.add((Object) newStudent);\n\t\t\tSystem.out.println(\"Succesfully Added Student\");\n\t\t\tFileManager.writeObjectToFile(\"student.dat\", student);\n\t\t\treturn true;\n\t\t}\n\t\tif (checkIfStudentExists(MatricNo)) {\n\t\t\tSystem.out.println(\"Matriculation Number already exists\");\n\t\t\treturn false;\n\t\t}\n\n\t\tStudent newStudent = new Student(Name, Password, Email, dob, MatricNo, SchoolID, Degree);\n\t\tStudentList.add(newStudent);\n\t\tSystem.out.println(\"Succesfully Added Student\");\n\t\tFileManager.addObjectToFile(newStudent);\n\t\treturn true;\n\t}", "private void addStudents() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"u\");\n String className = SchoolClassHandler.getTimetable().getClassName(new Integer(sdf.format(new Date())), new Date());\n\n addButton(className);\n }", "public void setStudentId(int studentId);", "@Override\n\tpublic void saveStudent(StudentForm student) {\n\t\t\n\t}", "public void insertStudent(Student newStudent)\n\t{\n\t\tif (numStudents < students.length) {\n\t\t\tstudents[numStudents] = newStudent;\n\t\t\tnumStudents++;\n\t\t}\n\t}", "void save(Student student);", "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}" ]
[ "0.7571221", "0.7341019", "0.71611917", "0.6914422", "0.6779503", "0.6767899", "0.67399704", "0.67270815", "0.66991353", "0.6689217", "0.65755594", "0.65653455", "0.64573216", "0.63478833", "0.63287467", "0.63263476", "0.6324608", "0.6302261", "0.6283492", "0.6278218", "0.6235687", "0.6234103", "0.62256557", "0.61960214", "0.6189102", "0.61702013", "0.61540186", "0.6116788", "0.6113949", "0.6108883", "0.6103353", "0.60958314", "0.60758126", "0.60652995", "0.60534304", "0.6007049", "0.5995561", "0.5985886", "0.5983258", "0.5981123", "0.5964591", "0.59583485", "0.59487224", "0.592446", "0.59087706", "0.5890354", "0.5889184", "0.58884466", "0.5871166", "0.5851521", "0.58400834", "0.58287764", "0.5824386", "0.5787448", "0.5785871", "0.5778629", "0.57768106", "0.5775186", "0.5772983", "0.5770151", "0.57599103", "0.57342184", "0.57331276", "0.5724079", "0.5712657", "0.5710706", "0.570845", "0.5697223", "0.568949", "0.56872064", "0.56856465", "0.5684958", "0.5681372", "0.5675621", "0.5675593", "0.56743747", "0.5669673", "0.566746", "0.5658504", "0.564558", "0.56097066", "0.5604657", "0.5603852", "0.5603429", "0.5601894", "0.55875844", "0.55874205", "0.5577276", "0.5570419", "0.5567169", "0.5563943", "0.55564296", "0.55522853", "0.55516493", "0.5550098", "0.55425423", "0.55389994", "0.5527204", "0.5526506", "0.55260974" ]
0.7582725
0
CHANGE the xml file with the changement of Document
public void writeXML() throws IOException { OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format); xmlWriter.write(document);//write the new xml into the file xmlWriter.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static synchronized void changeXML(Path filepath, File conf, String name){\n try {\n // Строим объектную модель исходного XML файла\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\n .newDocumentBuilder();\n Document doc = db.parse(conf);\n doc.normalize();\n \n NodeList appenders = doc.getElementsByTagName(\"appender\");\n for (int i = 0; i < appenders.getLength(); i++) {\n Node appender = appenders.item(i);\n //if this node is suitable appender, then change TextContext 'file'\n if (isMyRollingFileAppender(appender, name)) {\n NodeList childNodes = appender.getChildNodes();\n for (int j = 0; j < childNodes.getLength(); j++) {\n Node nextChild = childNodes.item(j);\n if (nextChild.getNodeName().equals(\"file\")) {\n nextChild.setTextContent(filepath.toString());\n break;\n }\n }\n break;\n }\n }\n // Write changes to XML-file\n Transformer transformer = TransformerFactory.newInstance()\n .newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(conf);\n transformer.transform(source, result);\n \n } catch (SAXException | IOException | ParserConfigurationException\n | TransformerConfigurationException ex) {\n System.out.println(\"Ошибка ввода-вывода при изменении XML-файла: \"+ex.getMessage());\n } catch (TransformerException ex) {\n System.out.println(\"Ошибка в траносформации XML \"+ex.getMessage());\n }\n }", "public void saveChanges() throws TransformerException {\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\tDOMSource source = new DOMSource(document);\r\n\t\tStreamResult result = new StreamResult(new File(path));\r\n\t\ttransformer.transform(source, result);\r\n\t}", "public void commit() {\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tDOMSource domSource = new DOMSource(document);\n\t\t\tStreamResult streamResult = new StreamResult(new File(fileName));\n\t\t\ttransformer.transform(domSource, streamResult);\n\t\t\t//Reload nodes list\n\t\t\tnodes = document.getDocumentElement().getChildNodes();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void changeXMLFile() throws IOException {\n File orig = new File(RunnerClass.homedir + \"launch4j.xml\");\n File custom = new File(RunnerClass.homedir + \"launch4j2.xml\");\n BufferedReader br = new BufferedReader(new FileReader(orig));\n PrintWriter pw = new PrintWriter(new FileWriter(custom));\n int line = 0;\n String s;\n //Reads all lines, and replaces 5th line with new destination file\n while ((s = br.readLine()) != null) {\n line++;\n if (line == 5)\n pw.println(\" <outfile>\" + exeF.getCanonicalPath() + \"</outfile>\");\n else if(line == 18)\n pw.println(\" <minVersion>\"+ getFullVersion(RunnerClass.mf.generalOptionalPanel.javaVersion.getText().trim()) +\"</minVersion>\");\n else\n pw.println(s);\n }\n br.close();\n pw.close();\n //Deletes original file, renames temp to original\n RunnerClass.logger.info(\"del: \" + orig.delete());\n RunnerClass.logger.info(\"ren: \" + custom.renameTo(orig));\n }", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "private void writeXmlFile( Document doc, String file_path ) {\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\tDOMSource source \t\t= new DOMSource( doc );\r\n\t\t\tStreamResult result \t= new StreamResult( new File( file_path ));\r\n\t\t\t\r\n\t\t\t// Output to console for testing\r\n\t\t\t// StreamResult result = new StreamResult(System.out);\r\n\r\n\t\t\ttransformer.transform( source, result );\r\n\t\t\tSystem.out.println( \"File saved!\" );\r\n\r\n\r\n\t\t} catch ( TransformerException e ) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}", "private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }", "public void setXml(java.lang.String newXml);", "@PUT\r\n @Consumes({MediaType.APPLICATION_XML})\r\n public void updateDocument(Document document) throws InternalServerErrorException {\r\n LOGGER.info(\"Peticion de actualizacion de documento\");\r\n try {\r\n ejb.updateDocument(document);\r\n } catch (UpdateException ex) {\r\n LOGGER.warning(\"ERROR a la hora de actualizar un documento\");\r\n throw new InternalServerErrorException();\r\n }\r\n }", "private void transformToXml(Document doc) {\r\n try {\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer trans = tf.newTransformer();\r\n trans.transform(new DOMSource(doc),new StreamResult(new File(\"./evidence.xml\")));\r\n } catch (TransformerException e) {\r\n System.err.println(\"Transformation failed\");\r\n }\r\n }", "private void loadOrRefreshXml(File file, boolean isLoad) throws Exception{\n\t\t\n\t // Remove the old content displayed\n \t\tthis.getXmlTextAreaPanel().removeAll();\n \t\t \n \t// The root node of the JTree. Is a special node that has no parent but can have childs \n \tDefaultMutableTreeNode base = new DefaultMutableTreeNode(\"XML Viewer\");\t \t\t \n\t DefaultTreeModel treeModel = new DefaultTreeModel(base);\n\t \t \n\t\txmlJTree = new JTree(treeModel);\n\t\txmlJTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n\t\txmlJTree.setAutoscrolls(true);\n\t\txmlJTree.setCellRenderer(new CustomCellRenderer());\n\t \t \n\t\t// Create the xml parser\n\t SAXParserFactory fact = SAXParserFactory.newInstance();\n\t\tSAXParser parser = fact.newSAXParser();\t \t\t\t\t\n\t\t\t\t \n\t\t// Set to the parser the handler (ie a class that extends the default event handler: DefaultHandler)\n\t\tFile f = new File(this.sourceXMLfileTextField.getText());\n\t\tparser.parse(file,new CustomSaxParseHandler(base,xmlJTree));\n\t\t\n\t\t// By default compact all the tree before show it\n\t\tint row = xmlJTree.getRowCount() - 1;\n\t // Note: use '2' as fix value to compact only the child and not the root\n\t while (row >= 2) {\n\t xmlJTree.collapseRow(row);\t \t \n\t row--;\n\t } \t\t\t\t \n\t\t\t \t\t\t \n\t\tthis.getXmlTextAreaPanel().add(xmlJTree);\n\t\t\t \n\t\t// Refresh (and redraw) the panel and show the tree view of the chosen XML file\n\t\tthis.revalidate();\n\t \t\n\t\tif(!isLoad) //only for refresh xml show a message\n\t\t{\n\t\t messageLabel.setForeground(Color.GREEN);\n\t\t messageLabel.setText(\"Input Reloaded successfully\");\n\t\t} \n\t}", "private void salvarXML(){\r\n\t\tarquivo.setLista(listaDeUsuarios);\r\n\t\tarquivo.finalizarXML();\r\n\t}", "public Document augmentDocumentXml(Document document) throws IOException, SAXException {\n\t\tString fileName = getBbnFileName(document);\n\n\t\t// move to the next BBN file if necessary\n\t\t// this will be efficient if the documents are passed in WSJ order as it avoids reloading the same file\n\t\tif (!fileName.equals(currentBbnFile)) {\n\t\t\tFile xmlFile = new File(StaticConfig.bbnPath + fileName);\n\t\t\txmlReader.parse(new InputSource(xmlFile.getPath()));\n\t\t\tcurrentBbnFile = fileName;\n\t\t}\n\n\t\tList<String> tags = handler.getTags(document.docId.getFileStr());\n\t\tList<Token> tokenList = document.tokenList;\n\n\t\t// sanity check: same number of tokens?\n\t\tif (tags.size() != tokenList.size()) {\n\t\t\tthrow new Error(\"Tag and token counts differ\");\n\t\t}\n\n\t\t// align tags and tokens\n\t\tfor (int i = 0; i < tokenList.size(); i++) {\n\t\t\tToken token = tokenList.get(i);\n\t\t\tString neTag = tags.get(i);\n\t\t\ttoken.goldNer = neTag;\n\t\t}\n\n\t\treturn document;\n\t}", "public void endDocument()\n throws SAXException {\n try { \n resource.setContent(newContent.toString());\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public void test1() {\n\t\tString fileToUpload = \"test.xml\";\n\t\tContext context = SessionService.getInstance().getContext();\n\t\tAssetManager assetManager = context.getAssets();\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tinputStream = assetManager.open(fileToUpload, AssetManager.ACCESS_BUFFER);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// upload xml document for testing, the server adds IDs for every element\n\t\tboolean success;\n\t\tif (inputStream == null) {\n\t\t\tsuccess = false;\n\t\t} else {\n\t\t\tsuccess = collabEditingService.uploadDocument(fileToUpload, inputStream);\n\t\t}\n\t\tif (!success) {\n\t\t\tLog.w(TAG, \"Document already exists on the server or connection failure during upload\");\n\t\t}\n\n\t\t// download the decorated document file again\n\t\tString fileForEditing = \"test.xml\";\n\t\tsuccess = collabEditingService.loadDocumentFromServer(fileForEditing);\n\t\tif (success) collabEditingService.showDocument(); // debug\n\t\t\n\t\t// insert text under parent node 200 and before node 300 \n\t\tLog.i(TAG, System.currentTimeMillis() + \": \" + \"Inserting\");\n\t\tcollabEditingService.insertText(\"200\", \"300\", NodePosition.INSERT_BEFORE, \" Woohoo \", 0);\n\t\t// c1.insertText(\"200\", null, 1, \" Woohoo \", 0); // inserts text right under the parent node\n\t\t\n\t\t// insert a new Element node before Node 500\n\t\tElement newNode = collabEditingService.createElement(\"Foo\");\n\t\tnewNode.setAttribute(\"myAttrib\", \"69\");\n\t\tcollabEditingService.insertNode(\"200\", newNode, \"300\", NodePosition.INSERT_AFTER);\n\t\t\n\t\tLog.i(TAG, collabEditingService.getDocumentString());\n\t\tcollabEditingService.showStateVector();\n\t}", "public static void updateSynapseAPI(Document document, File file) throws APIMigrationException {\n try {\n updateHandlers(document, file);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n DOMSource source = new DOMSource(document);\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n } catch (TransformerConfigurationException e) {\n handleException(\"Could not initiate TransformerFactory Builder.\", e);\n } catch (TransformerException e) {\n handleException(\"Could not transform the source.\", e);\n }\n }", "public void fileReverted(OpenDefinitionsDocument doc) { }", "public void fileReverted(OpenDefinitionsDocument doc) { }", "public void writeDocumentToOutput() {\n log.debug(\"Statemend of XML document...\");\r\n // writeDocumentToOutput(root,0);\r\n log.debug(\"... end of statement\");\r\n }", "void setXML(String path, DocumentFragment fragment)\n throws ProcessingException;", "public void transformToSecondXml();", "@Override\n\t\tpublic void documentAboutToBeChanged(DocumentEvent event) {\n\t\t\tTextDocumentContentChangeEvent changeEvent = toChangeEvent(event);\n\t\t\tif (changeEvent == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.change = new DidChangeTextDocumentParams();\n\t\t\tVersionedTextDocumentIdentifier doc = new VersionedTextDocumentIdentifier();\n\t\t\tdoc.setUri(fileURI.toString());\n\t\t\tdoc.setVersion(version);\n\t\t\tthis.change.setTextDocument(doc);\n\t\t\tthis.change.setContentChanges(Arrays.asList(new TextDocumentContentChangeEvent[] { changeEvent }));\n\t\t}", "private static void writeFile(Document document, File file) throws TransformerException, IOException {\n Transformer tr = TransformerFactory.newInstance().newTransformer();\n\n tr.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n tr.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n document.setXmlStandalone(true);\n\n DOMSource source = new DOMSource(document);\n FileOutputStream fos = new FileOutputStream(file);\n StreamResult result = new StreamResult(fos);\n tr.transform(source, result);\n fos.close();\n }", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "public void savetoxml() throws FileNotFoundException, JAXBException {\n xml_methods.save(player);\n }", "public static void saveDocument(Document doc, File file) throws Exception {\r\n if (doc == null || file == null)\r\n return;\r\n\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n Transformer transformer = tFactory.newTransformer();\r\n\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n transformer.setOutputProperty(\r\n \"{http://xml.apache.org/xslt}indent-amount\", \"2\");\r\n\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(file);\r\n transformer.transform(source, result);\r\n }", "void save(XMLDocument document, XMLStreamWriter writer) throws XMLStreamException;", "private void updateToFile(PQNode node) throws Exception{\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n int replaceIndex = node.getPqIndex()-bufStart;\n\n nodes.set(replaceIndex,node);\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n storeToFile(file,nodes, false);\n }", "@Override\r\n public void updateTable() {\n FileManager fileManager = new FileManager();\r\n InputStream input = fileManager.readFileFromRAM(fileManager.XML_DIR, FILE_NAME);\r\n if(input != null){\r\n dropTable();\r\n createTable();\r\n parserXml(input); \r\n }else{\r\n Log.i(FILE_NAME,\"file is null\");\r\n }\r\n \r\n }", "public void startDocument()\n throws SAXException {\n newContent = new StringBuffer();\n // TODO: what is the proper way to set this?\n newContent.append(\"<?xml version=\\\"1.0\\\"?>\");\n }", "private static void replaceDocument(final StyledDocument doc, BaseBean graph) {\n final StringWriter out = new StringWriter();\n try {\n graph.write(out);\n } catch (Schema2BeansException | IOException ex) {\n Logger.getLogger(TomcatModuleConfiguration.class.getName()).log(Level.INFO, null, ex);\n }\n NbDocument.runAtomic(doc, () -> {\n try {\n doc.remove(0, doc.getLength());\n doc.insertString(0, out.toString(), null);\n } catch (BadLocationException ble) {\n Exceptions.printStackTrace(ble);\n }\n });\n }", "public static void addEmployeeToXMLFile(Employee ee) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element rootElement;\n File xmlFile = new File(\"src/task2/employee.xml\");\n\n if (xmlFile.isFile()) {\n doc = docBuilder.parse(new FileInputStream(xmlFile));\n doc.getDocumentElement().normalize();\n rootElement = doc.getDocumentElement();\n } else {\n rootElement = doc.createElement(\"department\");\n doc.appendChild(rootElement);\n }\n\n Element employee = doc.createElement(\"employee\");\n rootElement.appendChild(employee);\n\n Element id = doc.createElement(\"id\");\n id.appendChild(doc.createTextNode(ee.getId()));\n employee.appendChild(id);\n\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(ee.getName()));\n employee.appendChild(name);\n\n Element sex = doc.createElement(\"sex\");\n sex.appendChild(doc.createTextNode(Integer.toString(ee.sex)));\n employee.appendChild(sex);\n\n Element dateOfBirth = doc.createElement(\"dateOfBirth\");\n dateOfBirth.appendChild(doc.createTextNode(ee.dateOfBirth));\n employee.appendChild(dateOfBirth);\n\n Element salary = doc.createElement(\"salary\");\n salary.appendChild(doc.createTextNode(Double.toString(ee.salary)));\n employee.appendChild(salary);\n\n Element address = doc.createElement(\"address\");\n address.appendChild(doc.createTextNode(ee.address));\n employee.appendChild(address);\n\n Element idDepartment = doc.createElement(\"idDepartment\");\n idDepartment.appendChild(doc.createTextNode(ee.idDepartment));\n employee.appendChild(idDepartment);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(xmlFile);\n transformer.transform(source, result);\n System.out.println(\"File saved\");\n\n } catch (ParserConfigurationException | SAXException | IOException | DOMException | TransformerException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public boolean updateDocument(Document document, InputStream isDocument) {\n return false;\n }", "public void saveXMLConfig() {\n\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\t\t// Update NameServers. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserversElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServers\", ns);\n\t\tnameserversElement.removeChildren(\"nameServer\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameservers.size(); i++) {\n\t\t\t nameserversElement.addContent( new Element(\"nameServer\", ns).\n\t\t\t addContent(new Element(\"identifier\", ns).\n\t\t\t\t setText((String)_nameservers.get(i))));\n\t\t}\n\n\t\t// Update NameServerPorts. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserverPortsElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServerPorts\", ns);\n\t\tnameserverPortsElement.removeChildren(\"nameServerPort\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameserverPorts.size(); i++) {\n\t\t\t nameserverPortsElement.addContent( new Element(\"nameServerPort\",\n\t\t\t ns).\n\t\t\t addContent(new Element(\"pidentifier\", ns).\n\t\t\t\t setText((String)_nameserverPorts.get(i))));\n\t\t}\n\n\t\t// Update obsRecord Event Channel Name\n\t\t_root.getChild(\"server\", ns)\n\t\t .getChild(\"obsRecordEventChannelName\", ns)\n\t\t .setText(_obsRecordEventChannelName);\n\t}", "@Override\n abstract public void commitPendingXmlChanges();", "public static void saveTransformedDom(Document doc, URI theUri, URI transUri,\n HashMap<String, String> parameters)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n try {\n TransformerFactory transFac = TransformerFactory.newInstance();\n\n //DocumentBuilderFactory dFactory=DocumentBuilderFactory.newInstance();\n // must be set true for transformations\n //dFactory.setNamespaceAware(true); \n //DocumentBuilder docBuilder=dFactory.newDocumentBuilder();\n DocumentBuilder docBuilder = makeDocBuilder(true);\n Document xslDoc = docBuilder.parse(transUri.toString());\n DOMSource xslDomSource = new DOMSource(xslDoc);\n xslDomSource.setSystemId(theUri.toString());// ?? transUri\n DOMSource xmlDomSource = new DOMSource(doc);\n Transformer trans = transFac.newTransformer(xslDomSource);\n\n // all transformation properties are assumed set by transformation author\n // so no: trans.setOutputProperty(OutputKeys.xxx,\"\");\n // it would be possible to overrun properties by global options ?\n\n // deal with parameters. Simply set them as is\n if (parameters != null) {\n for (Iterator<String> it = parameters.keySet().iterator(); it.hasNext();) {\n String key = it.next();\n trans.setParameter(key, parameters.get(key));\n }\n }\n\n\n // set outputstreamwriter\n // make sure file exists\n if (!accessutils.makeCatalog(theUri)) {\n throw new Exception(\"Cant make file\");\n }\n\n java.io.FileOutputStream out = new java.io.FileOutputStream(theUri.getPath());\n java.io.OutputStreamWriter os = new java.io.OutputStreamWriter(out, trans.getOutputProperty(OutputKeys.ENCODING));\n java.io.BufferedWriter bos = new java.io.BufferedWriter(os);\n StreamResult outStream = new StreamResult(bos);\n\n // do it \n trans.transform(xmlDomSource, outStream);\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveTransformedDom: \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveTransformedDom: \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveTransformedDom: \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveTransformedDom: \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IOException ioe) {\n System.out.println(\"domer:saveTransformedDom: \" + ioe.getMessage());\n throw new Exception(ioe.getMessage());\n } catch (SAXException saxe) {\n System.out.println(\"domer:saveTransformedDom: \" + saxe.getMessage());\n throw new Exception(saxe.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveTransformedDom: \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveTransformedDom: \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }", "public void writeToEditorFile(String filePath, Document doc) {\n\n boolean success = true;\n try {\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(filePath);\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n } catch (TransformerException pce) {\n success = false;\n pce.printStackTrace();\n } finally {\n\n if (success) {\n FeedBackLogger.sendGoodMessage(\"File Saved Successfully!!!\");\n } else {\n FeedBackLogger.sendBadMessage(\"File Didn't Saved!!\");\n }\n\n }\n\n }", "public void exportXML() throws Exception{\n\t\t \n\t\t try {\n\n\t // create DOMSource for source XML document\n\t\t Source xmlSource = new DOMSource(convertStringToDocument(iet.editorPane.getText()));\n\t\t \n\t\t JFileChooser c = new JFileChooser();\n\t\t\t\t\n\t\t\t\tint rVal = c.showSaveDialog(null);\n\t\t\t\tString name = c.getSelectedFile().getAbsolutePath() + \".xml\";\n\t \n\t File f = new File(name);\n\t \n\t if (rVal == JFileChooser.APPROVE_OPTION) {\n\n\t\t // create StreamResult for transformation result\n\t\t Result result = new StreamResult(new FileOutputStream(f));\n\n\t\t // create TransformerFactory\n\t\t TransformerFactory transformerFactory = TransformerFactory.newInstance();\n\n\t\t // create Transformer for transformation\n\t\t Transformer transformer = transformerFactory.newTransformer();\n\t\t transformer.setOutputProperty(\"indent\", \"yes\");\n\n\t\t // transform and deliver content to client\n\t\t transformer.transform(xmlSource, result);\n\t\t \n\t\t }\n\t\t }\n\t\t // handle exception creating TransformerFactory\n\t\t catch (TransformerFactoryConfigurationError factoryError) {\n\t\t System.err.println(\"Error creating \" + \"TransformerFactory\");\n\t\t factoryError.printStackTrace();\n\t\t } // end catch 1\n\t\t \t catch (TransformerException transformerError) {\n\t\t System.err.println(\"Error transforming document\");\n\t\t transformerError.printStackTrace();\n\t\t } //end catch 2 \n\t\t \t catch (IOException ioException) {\n\t\t ioException.printStackTrace();\n\t\t } // end catch 3\n\t\t \n\t }", "public void reParse() {\r\n \r\n \t\tSystem.out.println(\"Starting reparse\");\r\n \r\n \t\t// to reparse an entire document\r\n \r\n \t\t// A. remove all document positions & problem markers\r\n \t\tSystem.out.println(\"DUMPING POSITIONS\");\r\n \t\tdumpPositions();\r\n \t\ttry {\r\n \t\t\tgetFile().deleteMarkers(IMarker.PROBLEM, true, IResource.DEPTH_ZERO);\r\n \t\t\t_parseErrors.clear();\r\n \t\t} catch (CoreException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \r\n \t\t// if this is not set, the document is new and has never been parsed before.\r\n \t\tif (_doc == null) {\r\n \t\t\tgetProjectNature().addToModel(this);\r\n \t\t} else {\r\n \r\n \t\t\t// B. remove compilation unit from model tree\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t System.out.println(\"removing compilation unit from tree\");\r\n \t\t\t}\r\n \t\t\t// C. remove Document from project\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t\tSystem.out.println(\"Remove document from project\");\r\n \t\t\t}\r\n \t\t\tgetProjectNature().removeDocument(this);\r\n \r\n \t\t\t// D. Re-add Document to the project (wich will cause it to be parsed)\r\n \t\t\tif(Config.debug()) {\r\n \t\t\t System.out.println(\"Re-add document to project\");\r\n \t\t\t}\r\n \t\t\tNamespace root = getProjectNature().getModel();\r\n \t\t\tgetProjectNature().addModelElement(this, root);\r\n \t\t}\r\n \r\n \t\tSystem.out.println(\"Einde reparse\");\r\n \t}", "public static void editXML(String dim) throws Exception {\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\n\t\tString fileName = PropertiesFile.getInstance().getProperty(\"input_qualifier\")+ \".xml\";\n\t\tDocument xmlDocument = builder.parse(new File(getFullyQualifiedFileName(fileName)));\n\n\t\t/*\n\t\t * String expression = \"ConfigFramework/DCDpp/Servers/Server/Zone\"; XPath xPath\n\t\t * = XPathFactory.newInstance().newXPath(); NodeList nodeList = (NodeList)\n\t\t * xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET); Node\n\t\t * zone = nodeList.item(0);\n\t\t * \n\t\t * String zoneRange = zone.getTextContent(); zoneRange = zoneRange.substring(0,\n\t\t * zoneRange.lastIndexOf(\".\") + 1) + dim; zone.setTextContent(zoneRange);\n\t\t */\n\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource domSource = new DOMSource(xmlDocument);\n\t\tString s = getOutputFolderName() + \"/\" + fileName;\n\t\tStreamResult streamResult = new StreamResult(new File(s));\n\t\ttransformer.transform(domSource, streamResult);\n\n\t}", "public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}", "private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.show();\r\n if (fd.getFile() != null) {\r\n jm.util.Write.xml(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }", "public void saveAsXML(String fname) {\n\tXMLUtil.writeXML(saveAsXML(), fname);\n }", "public static void saveXMLDoc(final File file, final Document doc)\r\n\t\t\tthrows TransformerException {\r\n\t\t/*\r\n\t\t * SAVE ALL THE THINGS\r\n\t\t */\r\n\t\tTransformerFactory transfac = TransformerFactory.newInstance();\r\n\t\tTransformer trans = transfac.newTransformer();\r\n\t\ttrans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\r\n\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tStreamResult result = new StreamResult(sw);\r\n\t\tDOMSource source = new DOMSource(doc);\r\n\t\ttrans.transform(source, result);\r\n\t\tString xmlString = sw.toString();\r\n\r\n\t\tSystem.err.println(xmlString);\r\n\r\n\t\ttry {\r\n\t\t\tFileWriter f = new FileWriter(file);\r\n\t\t\tf.write(xmlString);\r\n\t\t\tf.close();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}", "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }", "@Override\n\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "@Override\n\tpublic void domove(String filename) {\n\n\t\tFile starfile = new File(\"D://FileRec/\" + filename);\n\n\t\tFile endDirection = new File(\"D://FileRec//docx\");\n\t\tif (!endDirection.exists()) {\n\t\t\tendDirection.mkdirs();\n\t\t}\n\n\t\tFile endfile = new File(endDirection + File.separator + starfile.getName());\n\n\t\ttry {\n\t\t\tif (starfile.renameTo(endfile)) {\n\t\t\t\tSystem.out.println(\"转移成功\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"转移失败,或许是重名\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"文件移动出现异常\");\n\t\t}\n\t}", "public void updateDocument(Document arg0) throws ContestManagementException {\r\n }", "@Override\n\tpublic void encryptXml(File xmlDocument, File jks, String nazivCert) throws IOException {\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t\torg.apache.xml.security.Init.init();\n\n\t\tDocument doc = loadDocument(xmlDocument.getCanonicalPath());\n\t\t// generise tajni kljuc\n\n\t\tSecretKey secretKey = generateDataEncryptionKey();\n\t\t// ucitava sertifikat za kriptovanje tajnog kljuca\n\t\tCertificate cert = readCertificate(jks.getCanonicalPath(), nazivCert);\n\t\t// kriptuje se dokument\n\n\t\tdoc = encrypt(doc, secretKey, cert);\n\t\t// snima se tajni kljuc\n\t\t// snima se dokument\n\t\tsaveDocument(doc, xmlDocument.getCanonicalPath());\n\n\t}", "public void saveDocument() throws IOException;", "public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\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\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectOKXml() throws Exception {\n\t}", "private void loadData(String fileName, String cobrandPath)\n throws ParserConfigurationException, SAXException, IOException {\n\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(cobrandPath);\n\n Element root = doc.getDocumentElement();\n\n Element updateElement = doc.createElement(IConstants.IMAGE_FILE);\n Node updateText = doc.createTextNode(fileName);\n\n updateElement.appendChild(updateText);\n root.appendChild(updateElement);\n\n try {\n\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(new FileOutputStream(\n cobrandPath));\n\n TransformerFactory transFactory = TransformerFactory.newInstance();\n Transformer transformer = transFactory.newTransformer();\n\n transformer.transform(source, result);\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\r\n\t\tpublic void updateDocument(DocumentDTO document) {\n\t\t\tDocument document1=new Document();\r\n\t\t\tdocument1=convertDocumentBean(document);\r\n\t\t\tdocumentDAO.saveDocument(document1);\r\n\t\t\t\r\n\t\t}", "public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "void saveDocument(SingleDocumentModel model, Path newPath);", "protected void syncWithDocument(Node node) {\n/* 383 */ if (node.getNodeType() != 9)\n/* */ {\n/* 385 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 389 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 393 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 395 */ int substStart = \"$element_\".length();\n/* */ \n/* 397 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 399 */ Field f = fs[i];\n/* */ \n/* 401 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 403 */ String id = f.getName().substring(substStart);\n/* */ \n/* 405 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 407 */ if (idNode == null) {\n/* */ \n/* 409 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 411 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 415 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 419 */ } catch (Exception e) {\n/* */ \n/* 421 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }", "public void writeToXmlFile(String xmlFile) {\n\t\twriteToXmlFile(xmlFile, null);\n\t}", "private Node updateNode(DocumentBuilder docBuilder, Document doc, Node parentNode, String newNode, Node oldNode) {\r\n try {\r\n Node fragmentNode = docBuilder.parse(new InputSource(new StringReader(newNode))).getDocumentElement();\r\n fragmentNode = doc.importNode(fragmentNode, true);\r\n parentNode.replaceChild(fragmentNode, oldNode);\r\n } catch (SAXException se) {\r\n se.printStackTrace();\r\n } catch (IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n return parentNode;\r\n }", "private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }", "public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }", "protected void syncWithDocument(Node node) {\n/* 797 */ if (node.getNodeType() != 9)\n/* */ {\n/* 799 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 803 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 807 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 809 */ int substStart = \"$element_\".length();\n/* */ \n/* 811 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 813 */ Field f = fs[i];\n/* */ \n/* 815 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 817 */ String id = f.getName().substring(substStart);\n/* */ \n/* 819 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 821 */ if (idNode == null) {\n/* */ \n/* 823 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 825 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 829 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 833 */ } catch (Exception e) {\n/* */ \n/* 835 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }", "public void setDocument(Document doc)\n\t{\n\t\tthis.document = doc;\n\t}", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "protected void syncWithDocument(Node node) {\n/* 429 */ if (node.getNodeType() != 9)\n/* */ {\n/* 431 */ throw new XMLCRuntimeException(\"Node must be a document node\");\n/* */ }\n/* */ \n/* */ \n/* 435 */ Document doc = (Document)node;\n/* */ \n/* */ \n/* */ try {\n/* 439 */ Field[] fs = getClass().getDeclaredFields();\n/* */ \n/* 441 */ int substStart = \"$element_\".length();\n/* */ \n/* 443 */ for (int i = 0; i < fs.length; i++) {\n/* */ \n/* 445 */ Field f = fs[i];\n/* */ \n/* 447 */ if (f.getName().startsWith(\"$element_\")) {\n/* */ \n/* 449 */ String id = f.getName().substring(substStart);\n/* */ \n/* 451 */ Node idNode = doc.getElementById(id);\n/* */ \n/* 453 */ if (idNode == null) {\n/* */ \n/* 455 */ id = id.substring(0, 1).toLowerCase() + id.substring(1);\n/* */ \n/* 457 */ idNode = doc.getElementById(id);\n/* */ } \n/* */ \n/* */ \n/* 461 */ if (idNode != null) f.set(this, idNode);\n/* */ \n/* */ } \n/* */ } \n/* 465 */ } catch (Exception e) {\n/* */ \n/* 467 */ throw new XMLCRuntimeException(\"Error reflecting on element access fields\", e);\n/* */ } \n/* */ }", "private void selectXmlFile() {\n\t\t JFileChooser chooser = new JFileChooser();\n\t\t // ask for a file to open\n\t\t int option = chooser.showSaveDialog(this);\n\t\t if (option == JFileChooser.APPROVE_OPTION) {\n\t\t\t // get pathname and stick it in the field\n\t\t\t xmlfileField.setText(\n chooser.getSelectedFile().getAbsolutePath());\n\t\t } \n }", "void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;", "public static void saveDocument( Document doc, String path ) {\n\t\ttry {\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\tXMLOutputter fmt = new XMLOutputter( format );\n\t\t\tFile file = new File( path );\n\t\t\tOutputStream stream = new FileOutputStream( file );\n\t\t\tfmt.output( doc, stream );\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException( \"No se encontro el archivo: \" + path, e );\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException( \"Error al guardar el archivo: \" + path, e );\n\t\t}\n\t}", "public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String transformDomToXml(Document document) throws KeyChangeException {\n Transformer transformer;\n try {\n transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, KeyChangeConstants.YES);\n } catch (TransformerConfigurationException e) {\n throw new KeyChangeException(\"Configuration error occurred while creating new Transformer.\", e);\n }\n\n StringWriter stringWriter = null;\n try {\n stringWriter = new StringWriter();\n StreamResult result = new StreamResult(stringWriter);\n DOMSource source = new DOMSource(document);\n transformer.transform(source, result);\n return stringWriter.toString();\n } catch (TransformerException e) {\n throw new KeyChangeException(\"Error occurred while transforming Document element to XML.\", e);\n } finally {\n if (stringWriter != null) {\n try {\n stringWriter.close();\n } catch (IOException e) {\n throw new KeyChangeException(\"Error closing stream writer.\", e);\n }\n }\n }\n }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "@FXML\r\n private void HBSimpan(ActionEvent event) {\n String xml = xstream.toXML(resi);\r\n FileOutputStream xx = null;\r\n try {\r\n // membuat nama file & folder tempat menyimpan jika perlu\r\n xx = new FileOutputStream(\"xoxo.xml\");\r\n \r\n // mengubah karakter penyusun string xml sebagai \r\n // bytes (berbentuk nomor2 kode ASCII\r\n byte[] bytes = xml.getBytes(\"UTF-8\");\r\n // menyimpan file dari bytes\r\n xx.write(bytes);\r\n } \r\n catch (Exception e) {\r\n System.err.println(\"Perhatian: \" + e.getMessage());\r\n } \r\n finally {\r\n if (xx != null) {\r\n try {\r\n xx.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n } \r\n\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\n\t\t final JFileChooser sorceXmFileChooser;\t\t\n\t\t \n\t if (e.getSource() instanceof JButton) \n\t {\t \t \n\t // The user want choose a source XML file\n\t if (e.getActionCommand().equals(\"Find\")) \n\t {\n\t \t sorceXmFileChooser = new JFileChooser();\n\t \t sorceXmFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t \t sorceXmFileChooser.setDialogTitle(\"Choose xml file source\");\n\t \t sorceXmFileChooser.setFileFilter(new CustomFileFilter());\n\t \n\t int value = sorceXmFileChooser.showOpenDialog(this);\n\t \n\t // Return value if approved (ie yes, ok) is chosen.\n\t if (value==JFileChooser.APPROVE_OPTION)\n\t {\n\t \t File f = sorceXmFileChooser.getSelectedFile();\n\t \t \n\t \t pathSourceXMLfile = f.getAbsolutePath(); \t \n\t \t sourceXMLfileTextField.setText(pathSourceXMLfile); \n\t \t \n\t \t try {\n\t\t\t\t\t\tthis.loadOrRefreshXml(f,true);\n\t\t\t\t\t } catch (Exception e1) {\t\n\t\t\t\t\t\t messageLabel.setText(e1.getMessage());\t\t\t\t\t\t\n\t\t\t\t\t } \n\t }\t \n\t }\n\t \n\t // Edit the chosen input XML file\n\t if(e.getActionCommand().equals(\"Edit XML\"))\n\t {\n\t \t InputFileEditorGui editor = new InputFileEditorGui(this.sourceXMLfileTextField.getText());\n\t }\n\t \n\t // Refresh the XML showed in the text area after his editing with internal (or external) editor -----\n\t if(e.getActionCommand().equals(\"Refresh XML\"))\n\t {\t \t \n\t \t File f = new File(this.sourceXMLfileTextField.getText()); \n\t \t try {\n\t\t\t\t\tthis.loadOrRefreshXml(f,false);\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tmessageLabel.setText(e1.getMessage());\n\t\t\t\t}\t \n\t } \n\t \n\t // Close the application\n\t if (e.getActionCommand().equals(\"Close\"))\n\t {\t \t \n\t \t\tif (mainFrame.isDisplayable()) { \n\t \t\t mainFrame.dispose();\n\t }\n \t }\n\t \n\t // Expand all the tree nodes\n\t if (e.getActionCommand().equals(\"Expand All\"))\n\t {\t \t \n\t \tint row = xmlJTree.getRowCount() - 1;\n\t \twhile (row >= 0) {\n\t \t xmlJTree.expandRow(row);\t \t \n\t \t row--;\n\t \t}\t\n \t } \n\n\t // Compact all the tree nodes\n\t\t\t if (e.getActionCommand().equals(\"Compact All\"))\n\t\t\t {\t\t\t\t\n\t\t\t\tint row = xmlJTree.getRowCount() - 1;\t \t\n\t \twhile (row >= 2) {\n\t \t xmlJTree.collapseRow(row);\t \t \n\t \t row--;\n\t \t}\t\t\t\t\n\t\t\t }\t \n\t } \t\n\t}", "void documentFilePathUpdated(SingleDocumentModel model);", "void documentFilePathUpdated(SingleDocumentModel model);", "private void copyXML(final WriteXML out, final Map<String, String> replace) {\r\n\t\tfinal StringBuilder text = new StringBuilder();\r\n\t\tint depth = 0;\r\n\t\tint ch;\r\n\t\tcopyAttributes(out, replace);\r\n\t\tfinal String contain = this.in.getTag().getName();\r\n\r\n\t\tout.beginTag(contain);\r\n\r\n\t\twhile ((ch = this.in.read()) != -1) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\r\n\t\t\tif (ch == 0) {\r\n\t\t\t\tif (type == Type.BEGIN) {\r\n\t\t\t\t\tif (text.length() > 0) {\r\n\t\t\t\t\t\tout.addText(text.toString());\r\n\t\t\t\t\t\ttext.setLength(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcopyAttributes(out, null);\r\n\t\t\t\t\tout.beginTag(this.in.getTag().getName());\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t} else if (type == Type.END) {\r\n\t\t\t\t\tif (text.length() > 0) {\r\n\t\t\t\t\t\tout.addText(text.toString());\r\n\t\t\t\t\t\ttext.setLength(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (depth == 0) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tout.endTag(this.in.getTag().getName());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdepth--;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttext.append((char) ch);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tout.endTag(contain);\r\n\t}", "public void setDocument(Document document) {\n\t\tthis.document = document;\n\t}", "public void updateDoc (DocFile updatefile) throws ParseException, IOException {\n\n // Check if the file extension is valid\n if (updatefile == null) return;\n if (!isValid(updatefile) || !(FileManager.fileExists(updatefile.getId(), updatefile.getFileType()) || pathExists (updatefile.getPath()))) {\n return;\n }\n\n if (FileManager.fileExists(updatefile.getId(), updatefile.getFileType())) {\n String path = FileManager.download(updatefile.getId(), updatefile.getFileType());\n updatefile.setPath(path);\n }\n\n // remove the file from the index and re-add it\n this.removeDoc(updatefile);\n this.addDoc(updatefile);\n //FileManager.cleanTemporaryDownloads();\n }", "private void updateFiles() {\n\t}", "public void setContent(Document doc) {\n\t\tString text = doc.getContent().toString();\n\t\txmldoc = new NlptoolsshareType();\n\t\tDocumentType docxml = new DocumentType();\n\t\tdocxml.setText(text);\n\t\txmldoc.setDocument(docxml);\n\t}", "void changeFile()\n {\n App app = new App();\n // Loop through the read File\n for (String s : readFile) {\n if (app.containsUtilize(s)) {\n // Changes the first use of utilize with use\n String newTemp = s.replaceFirst(\"utilize\", \"use\");\n // Writes to file\n this.writeFile.add(newTemp);\n } else {\n // not utilize\n this.writeFile.add(s);\n }\n }\n }", "public void redo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getNext()!=null)\r\n {\r\n ignoreChange=true;\r\n changes = changes.getNext();\r\n changes.getElement().redo(doc);\r\n \r\n }\r\n }\r\n }", "void updateFile() throws IOException;", "void processElement(File documentPath) \n\t\t\tthrows XMLFormatException;", "public void loadDocument() {\n\t\ttry {\n\t\t\tString defaultDirectory = Utils.lastVisitedDirectory;\n\t\t\tif (Utils.lastVisitedDocumentDirectory != null)\n\t\t\t\tdefaultDirectory = Utils.lastVisitedDocumentDirectory;\n\n\t\t\tJFileChooser fileChooser = new JFileChooser(defaultDirectory);\n\t\t\tint returnVal = fileChooser.showOpenDialog(new JFrame());\n\n\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tURL fileURL = fileChooser.getSelectedFile().toURL();\n\n\t\t\t((XsdTreeStructImpl) xsdTree).loadDocument(fileURL);\n\t\t\txsdTree.getMessageManager().sendMessage(\"XML document \" + fileURL + \" loaded.\", MessageManagerInt.simpleMessage);\n\t\t} catch (IOException urie) {\n\n\t\t} catch (SAXException saxe) {\n\n\t\t}\n\t\texampleLine = null;\n\t\t// updatePreview();\n\t}", "public boolean saveXMLDocument(String fileName, Document doc) {\r\n log.debug(\"Saving XML file... \" + fileName);\r\n // open output stream where XML Document will be saved\r\n File xmlOutputFile = new File(fileName);\r\n FileOutputStream fos;\r\n Transformer transformer;\r\n try {\r\n fos = new FileOutputStream(xmlOutputFile);\r\n }\r\n catch (FileNotFoundException e) {\r\n log.debug(\"Error occured: \" + e.getMessage());\r\n return false;\r\n }\r\n // Use a Transformer for output\r\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n try {\r\n transformer = transformerFactory.newTransformer();\r\n }\r\n catch (TransformerConfigurationException e) {\r\n log.debug(\"Transformer configuration error: \" + e.getMessage());\r\n return false;\r\n }\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(fos);\r\n // transform source into result will do save\r\n try {\r\n transformer.transform(source, result);\r\n }\r\n catch (TransformerException e) {\r\n log.debug(\"Error transform: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file saved.\");\r\n return true;\r\n }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }", "public RSyntaxDocument updateDocument() {\r\n \r\n docVar = (RSyntaxDocument) editorPane.getDocument();\r\n syntaxDocument = docVar;\r\n \r\n return syntaxDocument;\r\n }", "public void writeToXmlFile(String xmlFile, Constraint constraint) {\n\t\tDocument xmlDocument = XmlDocument.newDocument();\n\t\t\n\t\tElement rootElement = xmlDocument.createElement(XML_ROOT);\n\t\trootElement.setAttribute(XML_NUM_ATTRS, \"2\");\n\t\trootElement.setAttribute(XML_ATTR + \"1\", XML_INFO1);\n\t\trootElement.setAttribute(XML_ATTR + \"2\", XML_INFO2);\n\t\txmlDocument.appendChild(rootElement);\n\t\t\n\t\tCollections.sort(nameValuePairs, SortNameValuePairByName.inst);\n\t\t\n\t\tfor (NameValuePair pair : nameValuePairs) {\n\t\t\tElement element = createXmlElementForNameValuePair(pair.getName(), pair.getValue(), xmlDocument, constraint);\n\t\t\tif (element != null)\n\t\t\t\trootElement.appendChild(element);\n\t\t}\n\t\t\n\t\tXmlDocument.writeXmlDocumentToFile(xmlDocument, xmlFile);\n\t}", "@Override\n\tpublic Boolean updateDocument(Document document) {\n\t\treturn null;\n\t}", "abstract public void data(Document document, Element rootElement);", "public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }" ]
[ "0.71142215", "0.6847346", "0.66010445", "0.65409595", "0.64391166", "0.6432129", "0.63791186", "0.6336395", "0.63225543", "0.63005066", "0.6149596", "0.60111076", "0.59560883", "0.5945788", "0.5867279", "0.58619773", "0.5840561", "0.5835862", "0.57999265", "0.5796151", "0.5796151", "0.5792795", "0.5767796", "0.5760858", "0.57479733", "0.5743328", "0.57129", "0.56826365", "0.5667634", "0.5661442", "0.5658862", "0.565051", "0.5642884", "0.5627099", "0.5601171", "0.55987144", "0.5590615", "0.55854595", "0.5574919", "0.556293", "0.5562516", "0.55600077", "0.5557118", "0.55472726", "0.5542233", "0.5527819", "0.55256516", "0.5515858", "0.5506121", "0.5504359", "0.5502088", "0.5500034", "0.5480874", "0.5470394", "0.5464587", "0.5461282", "0.5455933", "0.5455695", "0.5442685", "0.54290307", "0.5428736", "0.5427836", "0.54116935", "0.54022366", "0.53964835", "0.53955233", "0.53922546", "0.5389093", "0.53803563", "0.53712493", "0.5353981", "0.5335761", "0.5324562", "0.5314705", "0.531008", "0.5307882", "0.5307882", "0.52973735", "0.52907515", "0.52870685", "0.52870685", "0.52773404", "0.5277274", "0.5276988", "0.5275546", "0.52728593", "0.52708083", "0.5269369", "0.5265818", "0.52655846", "0.5262538", "0.5260643", "0.52603805", "0.52603805", "0.52568966", "0.5245406", "0.5244939", "0.52366763", "0.523551", "0.5232553" ]
0.6447614
4
Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the maximum average value.
public double findmaxavg(int[] nums, int k){ double res = Integer.MIN_VALUE; for (int s = 0; s < nums.length -k + 1; s++) { double sum = 0; for (int i = 0; i < k; i++) { sum+=nums[i+s]; } res = Math.max(res, sum/k); } return res; //Time complexity : O(n*k). //Space complexity : O(1). }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int findMaxSumSubArray(int k, int[] arr) {\n int windowSum = 0, maxSum = Integer.MIN_VALUE;\n int windowStart = 0;\n for (int windowEnd = 0; windowEnd < arr.length; windowEnd++) {\n windowSum += arr[windowEnd]; // add the next element\n // slide the window, we don't need to slide if we've not hit the required window size of 'k'\n if (windowEnd >= k - 1) {\n maxSum = Math.max(maxSum, windowSum);\n windowSum -= arr[windowStart]; // subtract the element going out\n windowStart++; // slide the window ahead\n }\n }\n return maxSum;\n }", "public int[] getMaxSub(int[] array, int k) {\r\n int out[] = new int[k];\r\n int idx = 0;\r\n for (int i = 0; i < array.length; i++) {\r\n // move the pointer back only when both condition happens\r\n // 1. current element is larger than last one in candidate\r\n // 2. there are enough elements in rest of array\r\n while (idx > 0 && array.length - i + idx > k && out[idx-1] < array[i]) {\r\n idx--;\r\n }\r\n if (idx < k)\r\n out[idx++] = array[i];\r\n }\r\n return out;\r\n }", "public static int[] maximumFromConsecutiveKElements(int[] a, int k) {\r\n int length = a.length;\r\n int outputLength = length - k + 1;\r\n int[] maximums = new int[outputLength];\r\n\r\n // O(n)\r\n for (int i = 0; i < outputLength; i++) {\r\n int currentMax = Integer.MIN_VALUE;\r\n // O(k)\r\n for (int j = 0; j < k; j++) {\r\n int currentValue = a[i + j];\r\n if (currentValue > currentMax) {\r\n currentMax = currentValue;\r\n }\r\n }\r\n maximums[i] = currentMax;\r\n }\r\n\r\n return maximums;\r\n }", "public static int maxSubArrayLen(int[] nums, int k) {\n Map<Integer, Integer> map = new HashMap<>();\n int sum = 0, maxLen = 0;\n for (int i = 0; i < nums.length; i++) {\n sum += nums[i];\n\n if (!map.containsKey(sum)) {\n map.put(sum, i);\n }\n\n if (sum == k) {\n maxLen = i + 1;\n } else {\n int diff = sum - k;\n if (map.containsKey(diff)) {\n maxLen = Math.max(maxLen, i - map.get(diff));\n }\n }\n }\n return maxLen;\n }", "public int maxSubArrayLen(int[] nums, int k) {\n if(nums == null || nums.length == 0) {\n return 0;\n }\n int maxLength = 0;\n int[] sums = new int[nums.length];\n sums[0] = nums[0];\n HashMap<Integer, Integer> map = new HashMap<>();\n map.put(sums[0], 0);\n for(int i = 1; i < nums.length; i++) {\n sums[i] = sums[i - 1] + nums[i];\n map.put(sums[i], i);\n if(sums[i] == k && i + 1 > maxLength) {\n maxLength = i + 1;\n }\n Integer index = map.get(sums[i] - k);\n if(index == null) {\n continue;\n }\n int length = i - index; // length = i - (index + 1) + 1 = i - index\n if(length > maxLength) {\n maxLength = length; \n }\n }\n return maxLength;\n }", "public static long maximumSubarraySum(int[] nums, int k) {\n int len = nums.length;\n\n long ans = 0;\n\n Map<Integer, Integer> map = new HashMap<>();\n long sum = 0;\n for (int i = 0, j = 0; j <= len; j++) {\n if (j - i == k) {\n if (map.size() == k) {\n ans = Math.max(ans, sum);\n }\n\n int cnt = map.getOrDefault(nums[i], 0);\n if (cnt > 1) {\n map.put(nums[i], cnt - 1);\n } else {\n map.remove(nums[i]);\n }\n sum -= nums[i];\n i++;\n }\n\n if (j == len) {\n break;\n }\n\n map.put(nums[j], map.getOrDefault(nums[j], 0) + 1);\n sum += nums[j];\n }\n\n return ans;\n }", "public static int maxSumForConsecutiveElements(int[] array, int k) {\r\n int length = array.length;\r\n\r\n // O(n)\r\n for (int i = 0; i < length - 1; i++) {\r\n array[i + 1] += array[i];\r\n }\r\n\r\n int maxSum = 0;\r\n int startIndex = k - 1;\r\n // O(n)\r\n for (int i = startIndex; i < length; i++) {\r\n int firstElementIndex = i - startIndex;\r\n int currentSum;\r\n\r\n if (firstElementIndex == 0) {\r\n maxSum = array[i];\r\n continue;\r\n } else {\r\n currentSum = array[i] - array[firstElementIndex - 1];\r\n }\r\n\r\n if (currentSum > maxSum) {\r\n maxSum = currentSum;\r\n }\r\n }\r\n\r\n return maxSum;\r\n }", "public static int kmax(int[] a, int k) throws IllegalArgumentException {\n if (ktest(a, k)) {\n throw new IllegalArgumentException();\n }\n int[] array = Arrays.copyOf(a, a.length);\n int element;\n int increment = 1;\n \n Arrays.sort(array);\n element = array[array.length - 1];\n \n for (int i = array.length - 1; i > -1; i--) {\n if (element > array[i]) {\n element = array[i];\n increment ++;\n }\n if (k == increment) {\n return element;\n }\n }\n throw new IllegalArgumentException();\n }", "private static int maxSubSumN2(int[] a) {\n int maxSum = 0;\n\n for (int first = 0; first < a.length; first++) {\n int thisSum = 0;\n for (int i = first; i < a.length; i++) {\n thisSum += a[i];\n\n if (thisSum > maxSum) {\n maxSum = thisSum;\n }\n }\n }\n\n return maxSum;\n }", "public static long maximumSubarraySum_bf(int[] nums, int k) {\n int len = nums.length;\n\n long ans = 0;\n for (int i = 0; i <= len - k; i++) {\n long sum = 0;\n Set<Integer> set = new HashSet<>();\n for (int j = 0; j < k; j++) {\n if (set.contains(nums[i + j])) {\n sum = 0;\n break;\n }\n\n set.add(nums[i + j]);\n sum += nums[i + j];\n }\n\n ans = Math.max(ans, sum);\n }\n\n return ans;\n }", "private static int maxSubSumN(int[] a) {\n int maxSum = 0;\n int thisSum = 0;\n\n for (int i = 0; i < a.length; i++) {\n thisSum += a[i];\n\n if (thisSum > maxSum) {\n maxSum = thisSum;\n } else if (thisSum < 0) {\n thisSum = 0;\n }\n }\n\n return maxSum;\n }", "private static int maximumSubarray(int[] array) {\n\t\tint max = array[0];\n for (int i = 0; i < array.length; i++)\n {\n int sum = 0;\n for (int j = i; j < array.length; j++)\n {\n sum += array[j];\n if (sum > max)\n max = sum;\n }\n }\n return max; \n\t}", "public static int jKadaneAlgo(int A[], int n)\n\t{\n\t\t // initialize variables as first value in array\n\t\t int currentMax=A[0]; \n\t\t int maxSubarray=A[0]; \n\t\t for(int i=1; i<n; i++) \n\t\t { \n\t\t\t //compare the first element of array with the sum of first element of array and the iterating value of array\n\t\t\t currentMax=Math.max(A[i],(currentMax+A[i])); \n\t\t\t //keep updating the maxSubarray with highest value by comparing currentMax and maxSubArray\n\t\t\t maxSubarray=Math.max(maxSubarray,currentMax); \n\t\t }\n\t\t return maxSubarray;\n\t}", "private static int maxSubSumN3(int[] a) {\n int maxSum = 0;\n\n for (int first = 0; first < a.length; first++) {\n for (int last = first; last < a.length; last++) {\n int thisSum = 0;\n\n for (int i = first; i <= last; i++)\n thisSum += a[i];\n\n if (thisSum > maxSum) {\n maxSum = thisSum;\n }\n }\n }\n\n return maxSum;\n }", "int maxSubarraySum(int arr[], int n)\r\n {\r\n int maxSoFar = Integer.MIN_VALUE;\r\n int currMax = 0;\r\n for(int i = 0; i < n; i++) {\r\n currMax = Math.max(arr[i], currMax+arr[i]);\r\n maxSoFar = Math.max(currMax, maxSoFar);\r\n }\r\n return maxSoFar;\r\n }", "int maxSubarraySum(int arr[], int n){\n \n // Your code here\n int cursum = arr[0];\n int osum = arr[0];\n \n for(int i=1;i<n;i++){\n if(cursum>=0){\n cursum+=arr[i];\n }else{\n cursum=arr[i];\n }\n if(cursum>osum){\n osum=cursum;\n }\n }\n return osum;\n \n }", "static int paintersPartition(int a[], int n, int k)\r\n\t {\r\n\t int start = a[0], end = a[0], minOfMax = -1;\r\n\t \r\n\t //this is to initialise start as max of all array elements and end as sum of all array elements\r\n\t for(int i = 1; i < n; i++)\r\n\t {\r\n\t end += a[i];\r\n\t \r\n\t if(a[i] > start)\r\n\t start = a[i];\r\n\t }\r\n\t \r\n\t while(start <= end)\r\n\t {\r\n\t int mid = start + ((end - start) / 2);\r\n\t \r\n\t if(isValid(a, n, k, mid))\r\n\t {\r\n\t minOfMax = mid; //this will hold one of the valid solution but then to get the most optimal one, we need check further on left side of search space\r\n\t end = mid - 1;\r\n\t }\r\n\t else\r\n\t start = mid + 1;\r\n\t }\r\n\t \r\n\t return minOfMax;\r\n\t }", "int maxSubarraySum(int arr[], int n){\n \n // Your code here\n int max = Integer.MIN_VALUE, curr = 0; \n \n for (int i = 0; i < n; i++) { \n curr = curr + arr[i]; \n if (max < curr) \n max = curr; \n if (curr < 0) \n curr = 0; \n } \n return max;\n }", "int sumKOfLargest(int[] array, int k){\n int heapSize = array.length;\n int sum = 0;\n buildMaxHeap(array,heapSize);\n for(int i = 0; i< k ; i++){\n sum = sum+array[0];\n extractMax(array,heapSize);\n heapSize--;\n heapify(array,i,heapSize);\n }\n return sum;\n }", "public static int findMaxSubarray(int[] array) {\r\n\t\tint max = Integer.MIN_VALUE;\r\n//\t\tint index = 0;\r\n\t\tint currMax = 0;\r\n\t\tfor(int v : array) {\r\n\t\t\tcurrMax += v;\r\n\t\t\tif(currMax > max) {\r\n\t\t\t\tmax = currMax;\r\n\t\t\t} \r\n\t\t\tif(currMax < 0) {\r\n\t\t\t\tcurrMax = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public static int maxSubArray(int[] arr) {\n\n int arr_size = arr.length;\n int max_curr = Integer.MIN_VALUE, max_global = 0;\n\n for (int i = 0; i < arr_size; ++i)\n {\n max_global += arr[i];\n if (max_curr < max_global)\n max_curr = max_global;\n if (max_global < 0)\n max_global = 0;\n }\n return max_curr;\n }", "static int maxSubsetSum(int[] arr) {\n int n = arr.length;\n int[] dp = new int[n];\n dp[0] = arr[0];\n dp[1] = Math.max(arr[0], arr[1]);\n\n for (int i = 2; i < n; ++i) {\n dp[i] = Math.max(dp[i - 2], Math.max(dp[i - 2] + arr[i], Math.max(dp[i - 1], arr[i])));\n }\n\n return dp[n - 1];\n }", "public static void main(String[] args) {\n int[] array_1 = { 2, 1, 5, 1, 3, 2 };\n int k_1 = 3;\n\n int[] array_2 = { 2, 3, 4, 1, 5 };\n int k_2 = 2;\n\n// System.out.println(findMaxSumSubArray(array_1, k_1));\n// System.out.println(findMaxSumSubArray(array_2, k_2));\n\n int[] array3 = { 2, 1, 5, 2, 3, 2 };\n System.out.println(findMinSubArray(7, array3));\n }", "public int maxFrequency2(int[] nums, int k) {\n Arrays.sort(nums);\n int i = 0;\n int j = 0;\n long sum = k;\n for (int n = nums.length; j < n; j++) {\n sum += nums[j];\n if (sum < (long)nums[j] * (j - i + 1)) {\n sum -= nums[i++];\n }\n }\n return j - i;\n }", "static int maxSubArraySum(int a[], int size)\n {\n int Cur_Max = a[0];\n int Prev_Max = a[0];\n \n for (int i = 1; i < size; i++)\n {\n //we want to know if the summition is increassing or not\n Prev_Max = Math.max(a[i], Prev_Max+a[i]);\n //Take Decision to change the value of the largest sum or not\n Cur_Max = Math.max(Cur_Max, Prev_Max);\n }\n return Cur_Max;\n }", "public static int[] maxSumInSubArray(int array[]) {\n int maxSoFar = array[0];\n int maxEndingHere = array[0];\n int startIndex = 0;\n int endIndex = 0;\n int j = 1;\n for (; j < array.length; j++) {\n int val = array[j];\n if (val >= val + maxEndingHere) {\n maxEndingHere = val;\n startIndex = j;\n } else {\n maxEndingHere += val;\n }\n if (maxSoFar < maxEndingHere) {\n maxSoFar = maxEndingHere;\n endIndex = j;\n }\n }\n return Arrays.copyOfRange(array, startIndex, endIndex + 1);// Make copyofRange to copy new max subsequence array\n }", "public int maxSubArray3(int[] nums) {\n int length = nums.length;\n //dp[i]表示数组开始索引为i的子数组的和\n int[] dp = new int[length];\n int max = nums[0] - 1;\n for (int i = 0; i < length; i++) {\n for (int j = i; j < length; j++) {\n int sum = dp[i] + nums[j];\n dp[i] = sum;\n if (max < sum) {\n max = sum;\n }\n }\n }\n return max;\n }", "public static int findNextHigher(int[] a, int k) {\n\t int low = 0; \n\t int high = a.length - 1;\n\t \n\t int result = Integer.MAX_VALUE;\n\t while (low <= high) {\n\t int mid = (low + high) / 2;\n\t \n\t if (a[mid] > k) {\n\t result = a[mid]; /*update the result and continue*/\n\t high = mid - 1;\n\t } else {\n\t low = mid + 1;\n\t }\n\t } \n\t \n\t return result;\n\t}", "public static int maxSum(int[] a, int k) \n {\n PriorityQueue<Integer> pq = new PriorityQueue<>(); \n for (int x : a) \n pq.add(x); \n \n // Do k negations by removing a minimum element k times \n while (k-- > 0) \n { \n // Retrieve and remove min element \n int temp = pq.poll(); \n \n // Modify the minimum element and add back \n // to priority queue \n temp *= -1; \n pq.add(temp); \n } \n \n // Compute sum of all elements in priority queue. \n int sum = 0; \n for (int x : pq) \n sum += x; \n return sum; \n }", "static int[] maxSubarray(int[] arr) {\n\n if(arr == null || arr.length == 0)\n return new int[0];\n\n int sum = arr[0];\n int subArrayMax = Integer.MIN_VALUE;\n for(int i=1; i<arr.length; i++) {\n\n if(sum <= 0) {\n sum = 0;\n }\n\n sum+= arr[i];\n\n if(sum > subArrayMax) {\n subArrayMax = sum;\n }\n }\n\n subArrayMax = Math.max(subArrayMax, sum);\n\n Arrays.sort(arr);\n\n int subSeqMax = 0;\n if(arr[arr.length-1] < 0) {\n subSeqMax = arr[arr.length-1];\n } else {\n for(int a : arr){\n subSeqMax+= a < 0 ? 0 : a;\n }\n }\n\n return new int[]{subArrayMax, subSeqMax};\n }", "public static int[] mostCompetitive(int[] nums, int k) {\n int[] copy = Arrays.copyOf(nums, nums.length); // 复制一个数组\n Arrays.sort(copy); // 排序\n for (int value : copy) { // 挨个顺序作为最小竞争子序列的头元素\n for (int j = 0; j < nums.length; j++) {\n if (nums[j] == value) {\n // 判断后续元素个数可够k长度\n if(k == 1){\n int[] ret = new int[1];\n ret[0] = nums[j];\n return ret;\n }\n if (j + k > nums.length) break;\n else if (j + k == nums.length) return Arrays.copyOfRange(nums, j, nums.length);\n else {\n int[] child = Arrays.copyOfRange(nums, j + 1, nums.length);\n int[] childMost = mostCompetitive(child, k - 1);\n System.out.println(Arrays.toString(childMost));\n // 取前k-1即为最优解\n int[] ret = new int[k];\n ret[0] = nums[j];\n System.arraycopy(childMost, 0, ret, 1, k - 1);\n System.out.println(Arrays.toString(ret));\n return ret;\n }\n }\n }\n }\n // [10, 23, 61, 62, 34, 41, 80, 25, 91, 43, 4, 75, 65, 13, 37, 41, 46, 90, 55, 8, 85, 61, 95, 71]\n // [10, 23, 61, 62, 34, 41, 80, 25, 91, 43, 4, 75, 65, 13, 37, 41, 46, 90, 55, 8, 85, 61, 95, 71]\n /* 2\n 4 3 3 5 4 9 6 3\n 3\n 3 5 4 9 6 3\n 2\n 5 4 9 6\n 1\n */\n return Arrays.copyOf(nums, k); // 这步不会执行\n }", "public static void maxSubArray(Integer[] arr){\n\n int maxSum = arr[0]; // start with smallest number\n int i =0;\n int j =1;\n\n while (j< arr.length){\n if((maxSum + arr[j] > maxSum) ){\n maxSum = arr[j];\n i++;\n j++;\n }\n\n }\n\n }", "public static int maximumSubArray(int arr[])\n\t{\n\t\tint sum=arr[0];\n\t\tint maxSum = arr[0];\n\t\tint n = arr.length;\n\t\tfor(int i=1;i<n;i++)\n\t\t{\n\t\t\tsum = Math.max(sum+arr[i], arr[i]);\n\t\t\t\n\t\t\tmaxSum = Math.max(maxSum, sum);\n\t\t}\n\t\t\n\t\treturn maxSum;\n\t}", "static void maxSubArraySum1(int a[], int size)\n {\n int max_so_far = Integer.MIN_VALUE,\n max_ending_here = 0,start = 0,\n end = 0, s = 0;\n\n for (int i = 0; i < size; i++)\n {\n max_ending_here += a[i];\n\n if (max_so_far < max_ending_here)\n {\n max_so_far = max_ending_here;\n start = s;\n end = i;\n }\n\n if (max_ending_here < 0)\n {\n max_ending_here = 0;\n s = i + 1;\n }\n }\n System.out.println(\"Maximum contiguous sum is \" + max_so_far);\n System.out.println(\"Starting index \" + start);\n System.out.println(\"Ending index \" + end);\n }", "public int maxFrequency(int[] nums, int k) {\n Arrays.sort(nums);\n int n = nums.length;\n int res = 1;\n for (int i = 0, j = 1, cost = 0; j < n; ) {\n int nextCost = cost + (nums[j] - nums[j - 1]) * (j - i);\n if (nextCost <= k) {\n res = Math.max(res, ++j - i);\n cost = nextCost;\n } else {\n cost -= nums[j - 1] - nums[i++];\n }\n }\n return res;\n }", "public static int maxSubArray(int[] nums) {\n int[] max_subarray= new int[nums.length];\n int max_sum=0;\n max_subarray[0]=nums[0];\n for (int i=1;i<nums.length;i++){\n max_subarray[i]=Math.max(max_subarray[i-1]+nums[i],nums[i]);\n max_sum=Math.max(max_subarray[i],max_sum);\n }\n System.out.println(Arrays.toString(max_subarray));\n return max_sum;\n }", "private static int LargestSubArraySum(int[] array) {\n\t\tint maximumSum=0;\n\t\tfor(int i=0; i< array.length; i++) {\n\t\t\tfor(int j=i; j < array.length; j++) {\n\t\t\t\t\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int k=i; k<= j; k++) \n\t\t\t\t\tsum += array[k];\n\t\t\t\t\n\t\t\t\tmaximumSum=Math.max(maximumSum, sum);\n\t\t\t} \n\t\t}\n\t\treturn maximumSum;\n\t}", "public int partitionArray(int[] nums, int k) {\n Arrays.sort(nums);\n \n int min = nums[0], max = nums[0], count = 1;\n \n for(int i=0; i<nums.length; i++){\n \n // taking max and min for each group\n min = Math.min(min, nums[i]);\n max = Math.max(max, nums[i]);\n \n // if the difference between max and min is more than k in a group a new group is needed\n if(max - min > k){\n count++;\n // reseting the max and min for the new group\n max = min = nums[i];\n }\n }\n \n return count;\n }", "public static int maxSubArray(final List<Integer> a) {\n\t\tint size = a.size();\n\t\tint max_so_far = Integer.MIN_VALUE, max_ending_here = 0;\n\t\tint position = 0;\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tmax_ending_here = max_ending_here + a.get(i);\n\t\t\tif (max_so_far < max_ending_here)\n\t\t\t\tmax_so_far = max_ending_here;\n\t\t\tif (max_ending_here < 0)\n\t\t\t\tmax_ending_here = 0;\n\t\t}\n\t\treturn max_so_far;\n\t}", "public int maxSumSubmatrix(int[][] matrix, int k) {\n int res=Integer.MIN_VALUE; \n int rows=matrix.length, cols=matrix[0].length; \n int[][] areas=new int[rows][cols];\n for(int i=0; i<rows; i++){\n for(int j=0; j<cols; j++){\n int area=matrix[i][j];\n if(i>0) area+=areas[i-1][j];\n if(j>0) area+=areas[i][j-1];\n if(i>0 && j>0) area-=areas[i-1][j-1];\n areas[i][j]=area;\n }\n }\n \n for(int r1=0; r1<rows; r1++){\n for(int r2=r1; r2<rows; r2++){\n TreeSet<Integer> set=new TreeSet<Integer>();\n set.add(0);\n for(int c=0; c<cols; c++){\n int sec=areas[r2][c];\n if(r1>0) sec-= areas[r1-1][c];\n Integer ceiling=set.ceiling(sec-k);\n if(ceiling!=null)\n res=Math.max(res, sec-ceiling);\n set.add(sec);\n }\n }\n }\n return res;\n }", "public int maxSubArray(int[] nums) {\n int maxNow = Integer.MIN_VALUE, maxEnd = 0;\n for (int i = 0; i < nums.length; i++) {\n maxEnd = maxEnd + nums[i];\n if (maxNow < maxEnd) {\n maxNow = maxEnd;\n }\n if (maxEnd < 0) {\n maxEnd = 0;\n }\n }\n return maxNow;\n\n }", "public static int maximumScore_rev2(int[] nums, int k) {\n int[] mins = new int[nums.length];\n mins[k] = nums[k];\n for (int i = k + 1; i < nums.length; ++i) {\n mins[i] = Math.min(mins[i - 1], nums[i]);\n }\n for (int i = k - 1; i >= 0; --i) {\n mins[i] = Math.min(mins[i + 1], nums[i]);\n }\n int score = mins[k], left = 0, right = nums.length - 1;\n// Then starting from both ends as the first good subarray, move the end corresponds to smaller value of the mins, and update the score accordingly.\n while (left < right) {\n score = Math.max(score, (right - left + 1) * Math.min(mins[left], mins[right]));\n if (right == k || mins[left] < mins[right]) {\n// right has reached k, The only option you have to increase left\n// left have lowest min, so by increasing the left side, the minimum value will be increased.\n ++left;\n } else {\n --right;\n }\n }\n return score;\n }", "static int[] maxSubarray(int[] arr) {\n int n=arr.length;\n int t[]=new int[n];\n for(int i=0;i<arr.length;i++)\n {\n t[i]=arr[i];\n if(i==0)\n {\n\n }\n else\n {\n if(arr[i-1]<0)\n {\n\n }\n else\n {\n arr[i]+=arr[i-1];\n }\n\n }\n }\n Arrays.sort(arr);\n int res[]=new int[2];\n res[0]=arr[n-1];\n res[1]=0;\n Arrays.sort(t);\n int sum=0;\n for(int i=(n-1);i>-1;i--)\n {\n if( t[i]<0)\n {\n \n if(i==(n-1))\n {\n res[1]=t[n-1];\n break;\n\n }\n \n }\n else\n {\n if(t[i]>0)\n {\n res[1]+=t[i];\n //System.out.println(t[i]);\n\n\n }\n else\n {\n break;\n }\n }\n }\n System.out.println(\"Sub array sum is: \"+res[0]+\"\\n\"+\"Subsequence of array: \"+res[1]);\n //res[1]=-112;\n return res;\n }", "private static List<Integer> getTopKFrequentElementsAverageCase(int[] nums, int k) {\n if(k > nums.length) {\n return new ArrayList<>();\n }\n\n Map<Integer, Integer> numToCount = new HashMap<>();\n\n for(int num : nums) {\n numToCount.put(num, numToCount.getOrDefault(num, 0) + 1);\n }\n\n PriorityQueue<Integer> queue = new PriorityQueue<>(new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return numToCount.get(i1) - numToCount.get(i2);\n }\n });\n\n for(int num : numToCount.keySet()) {\n queue.add(num);\n\n if(queue.size() > k) {\n queue.poll();\n }\n }\n\n List<Integer> result = new ArrayList<>();\n\n while(!queue.isEmpty()) {\n result.add(queue.poll());\n }\n\n // queue will add the nums in reverse order\n Collections.reverse(result);\n return result;\n }", "public static int[] maxSlidingWindow(int[] nums, int k) {\n if (nums == null || k <= 0) {\n return new int[0];\n }\n int[] result = new int[nums.length-k+1];\n int resultIndex = 0;\n // store index\n Deque<Integer> queue = new LinkedList<>();\n for (int index = 0; index < nums.length; index++) {\n // remove numbers out of range k\n while (!queue.isEmpty() && queue.peek() < index - k + 1) {\n queue.poll();\n }\n // remove smaller numbers in k range as they are useless\n while (!queue.isEmpty() && nums[queue.peekLast()] < nums[index]) {\n queue.pollLast();\n }\n // q contains index... r contains content\n queue.offer(index);\n if (index >= k - 1) {\n result[resultIndex++] = nums[queue.peek()];\n }\n }\n return result;\n }", "private static int MaxSubarraySum(int[] a) {\n\t\t\n\t\tint max_so_for =Integer.MIN_VALUE;\n\t\tint max_ending_here = 0;;\n\t\t\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tmax_ending_here = max_ending_here + a[i];\n\t\t\t\n\t\t\tif(max_so_for < max_ending_here )\n\t\t\t\tmax_so_for = max_ending_here;\n\t\t\tif(max_ending_here < 0)\n\t\t\t\tmax_ending_here = 0;\n\t\t}\n\t\t\n\t\treturn max_so_for;\n\t}", "static int numOfSubsets(int[] arr, int n, int k) {\n List<Integer> vect1 = new ArrayList<Integer>(); \n List<Integer> vect2 = new ArrayList<Integer>(); \n List<Integer> subset1 = new ArrayList<Integer>(); \n List<Integer> subset2 = new ArrayList<Integer>(); \n \n // ignore element greater than k and divide\n // array into 2 halves\n for (int i = 0; i < n; i++) {\n \n // ignore element if greater than k\n if (arr[i] > k)\n continue;\n if (i <= n / 2)\n vect1.add(arr[i]);\n else\n vect2.add(arr[i]);\n }\n \n // generate all subsets for 1st half (vect1)\n for (int i = 0; i < (1 << vect1.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect1.size(); j++) {\n if (i & (1 << j))\n value *= vect1[j];\n }\n \n // add only in case subset product is less\n // than equal to k\n if (value <= k)\n subset1.add(value);\n }\n \n // generate all subsets for 2nd half (vect2)\n for (int i = 0; i < (1 << vect2.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect2.size(); j++) {\n if (i & (1 << j))\n value *= vect2[j];\n }\n \n // add only in case subset product is\n // less than equal to k\n if (value <= k)\n subset2.add(value);\n }\n \n // sort subset2\n sort(subset2.begin(), subset2.end());\n \n int count = 0;\n for (int i = 0; i < subset1.size(); i++)\n count += upper_bound(subset2.begin(), subset2.end(),\n (k / subset1[i]))\n - subset2.begin();\n \n // for null subset decrement the value of count\n count--;\n \n // return count\n return count;\n }", "public int maxSumSubmatrix(int[][] matrix, int k) {\n int res=Integer.MIN_VALUE; \n int rows=matrix.length, cols=matrix[0].length; \n int[][] areas=new int[rows][cols];\n for(int i=0; i<rows; i++){\n for(int j=0; j<cols; j++){\n int area=matrix[i][j];\n if(i>0) area+=areas[i-1][j];\n if(j>0) area+=areas[i][j-1];\n if(i>0 && j>0) area-=areas[i-1][j-1];\n areas[i][j]=area;\n }\n }\n \n for(int r1=0; r1<rows; r1++){\n for(int c1=0; c1<cols; c1++){\n for(int r2=r1; r2<rows; r2++){\n for(int c2=c1; c2<cols; c2++){\n int sec=areas[r2][c2];\n if(r1>0) sec-=areas[r1-1][c2];\n if(c1>0) sec-=areas[r2][c1-1];\n if(r1>0 && c1>0) sec+= areas[r1-1][c1-1];\n if(sec<=k) res=Math.max(sec, res);\n }\n }\n }\n }\n return res;\n }", "public int maxSubArray(int[] nums) {\n int[] dp = new int[nums.length];\n dp[0] = nums[0];\n int res = nums[0];\n for (int i = 1; i < nums.length; i++) {\n dp[i] = nums[i] + (dp[i - 1] < 0 ? 0 : dp[i - 1]);\n res = Math.max(res, dp[i]);\n }\n return res;\n }", "public int maxSubArray(final List<Integer> A) {\n int n = A.size();\n int ans = A.get(0),curr = A.get(0);\n \n for(int i=1;i<n;i++){\n curr = Math.max(A.get(i),A.get(i)+curr);\n ans = Math.max(curr,ans);\n }\n return ans;\n }", "private static int solution3( int[] arr, int k) {\n\t\tif ( arr == null || arr.length < k ) {\n\t\t\treturn Integer.MIN_VALUE;\n\t\t}\n\t\t\n\t\t// Store the first k elements in a temporary array\n\t\tint[] tmp = Arrays.copyOfRange( arr, 0, k);\n\t\tint[] a = Arrays.copyOfRange( arr, 0, arr.length);\n\t\tint res = Integer.MAX_VALUE;\n\t\t\n\t\t\n\t\t// Loop for n-k times: each times for element in a[k] to a[n-1], find the largest to switch with tmp[j] for j = 0 to k-1\n\t\tfor ( int i = 0; i < k; ++i ) {\n\t\t\tint max = tmp[i];\n\t\t\tint index = i;\n\t\t\t\n\t\t\tfor ( int j = k; j < a.length; ++j ) {\n\t\t\t\tif ( a[j] > max ) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ( index != i ) {\n\t\t\t\ta[index] = tmp[i];\n\t\t\t\ttmp[i] = max;\n\t\t\t}\n\t\t\t\n\t\t\tres = Math.min(res, tmp[i]);\n\t\t}\n\t\t\n\t\t\n\t\treturn res;\n\t}", "public static int kadaneMaxSumPrintRange(int[] nums) {\n if(nums == null || nums.length == 0) return -1;\n\n int maxSoFar = 0, maxEndingHere = 0, maxStartIdx = 0, maxEndIdx = 0, start = 0;\n for(int i = 0; i < nums.length; i++) {\n maxEndingHere += nums[i];\n\n if(maxEndingHere < 0) {\n maxEndingHere = 0;\n start = i + 1;\n } else if(maxSoFar < maxEndingHere) {\n maxSoFar = maxEndingHere;\n maxStartIdx = start;\n maxEndIdx = i;\n }\n }\n\n System.out.format(\"kadane maxSubarray start at %d, end at %d\\n\", maxStartIdx, maxEndIdx);\n System.out.println(\"kadane the maxsum is \" + maxSoFar);\n return maxSoFar;\n }", "public int maxSubArray(int[] nums) {\n if (nums.length == 0) return 0;\n int maxSum = nums[0];\n int sum = maxSum;\n for (int i = 1; i < nums.length; i++) {\n sum += nums[i];\n if (nums[i] > sum) {\n sum = nums[i];\n }\n if (sum > maxSum) {\n maxSum = sum;\n }\n }\n return maxSum;\n\n }", "public int[] maxSlidingWindow(int[] nums, int k) {\n if (nums.length == 0)\n return nums;\n \n int[] output = new int[nums.length-k+1];\n \n for (int i=0; i+k-1 < nums.length; i++) {\n int max = nums[i];\n for (int j=1; j<k; j++) {\n if (nums[i+j] > max)\n max = nums[i+j];\n }\n output[i] = max;\n }\n \n return output;\n }", "public int[] maxSlidingWindow_1(int[] nums, int k) {\n\t\tint maxIndex = 0;\n\t\tint currStorePtr=0;\n\t\tfor(int i=0;i<nums.length;i++){\n\t\t\tif(i<= maxIndex +k-1){\n\t\t\t\tif(nums[i]>=nums[maxIndex]) {\n\t\t\t\t\tmaxIndex =i;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmaxIndex =i-k+1;\n\t\t\t\tfor(int j=i-k+1;j<=i;j++){\n\t\t\t\t\tif(nums[j]>=nums[maxIndex]) maxIndex =j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnums[currStorePtr]=nums[maxIndex];\n\n\t\t\tif(i>=k-1){\n\t\t\t\tcurrStorePtr++;\n\t\t\t}\n\t\t}\n\t\treturn Arrays.copyOfRange(nums,0,currStorePtr);\n\t}", "public int maxSubArray_improve(int[] nums) {\n if (nums==null || nums.length==0)\n return 0;\n int len = nums.length, res = nums[0];\n int cur = nums[0];\n for (int i = 1; i<len; i++) {\n if (cur<0)\n cur = nums[i];\n else\n cur += nums[i];\n res = Math.max(cur, res);\n }\n return res;\n }", "public static int findKthLargest(int[] nums, int k) {\n\t\tint start = 0, end = nums.length - 1, index = nums.length - k;\n\t\twhile (start < end) {\n\t\t\tint pivot = partition(nums, start, end);\n\t\t\tif (pivot < index)\n\t\t\t\tstart = pivot + 1;\n\t\t\telse if (pivot > index)\n\t\t\t\tend = pivot - 1;\n\t\t\telse\n\t\t\t\treturn nums[pivot];\n\t\t}\n\t\treturn nums[start];\n\t}", "private static int[] maxSlidingWindow(int[] nums, int k) {\n int n = nums.length;\n if (n == 0 || k == 0) { return new int[0]; }\n if (k == 1) {\n return nums;\n }\n\n int[] left = new int[n];\n int[] right = new int[n];\n left[0] = nums[0];\n right[n - 1] = nums[n - 1];\n\n for (int i = 1; i < n; i++) {\n if (i % k == 0) {\n left[i] = nums[i]; // block_start\n } else {\n left[i] = Math.max(left[i - 1], nums[i]);\n }\n\n int j = n - i - 1;\n if ((j + 1) % k == 0) {\n right[j] = nums[j]; // block_end\n } else {\n right[j] = Math.max(right[j + 1], nums[j]);\n }\n }\n\n int[] output = new int[n - k + 1];\n for (int i = 0; i < output.length; i++) {\n output[i] = Math.max(right[i], left[i + k - 1]);\n }\n return output;\n }", "private static int maxSubArrayGolden(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n // in case the result is negative.\n int max = Integer.MIN_VALUE;\n int sum = 0;\n for (int num : nums) {\n sum += num;\n max = Math.max(sum, max);\n sum = Math.max(sum, 0);\n }\n return max;\n }", "static int getMaxCoinValGeeks(int arr[], int n)\n {\n // Create a table to store solutions of subproblems\n int table[][] = new int[n][n];\n int gap, gapStartIndx, gapEndIndx, x, y, z;\n\n // Fill table using above recursive formula.\n // Note that the tableis filled in diagonal\n // fashion (similar to http://goo.gl/PQqoS),\n // from diagonal elements to table[0][n-1]\n // which is the result.\n for (gap = 0; gap < n; ++gap)\n {\n // both gapStartIndx and gapEndIndx are incremented in each loop iteration\n // for each gap, gapStartIndx keeps moving\n // gapEndIndx is always gap more than the gapStartIndx\n // when gap == 0, gapStartIndx = gapEndIndx\n // table[i,j] identifies the max value obtained by the player who picks first\n // first player = i to get val[i] , range of coins left = i+1, j\n // second player max value = table[i+1,j], range of coins left = i+2, j\n // first player max value = table[i+2,j]. So total value for player 1 is\n // val[i] + table[i+2, j]\n // first player picks j to get val[j], range of coins left i, j-1.\n // second player max = table[i, j-1] range of coins left i, j-2\n // first player max = table[i,j-2]\n // so for finding max value for a p\n for (gapStartIndx = 0, gapEndIndx = gap; gapEndIndx < n; ++gapStartIndx, ++gapEndIndx)\n {\n // Here x is value of F(i+2, j),\n // y is F(i+1, j-1) and z is\n // F(i, j-2) in above recursive formula\n // if gapStartIndx and gapEndIndx are two or more apart\n x = ((gapStartIndx + 2) <= gapEndIndx) ? table[gapStartIndx + 2][gapEndIndx] : 0;\n y = ((gapStartIndx + 1) <= (gapEndIndx - 1)) ? table[gapStartIndx +1 ][gapEndIndx - 1] : 0;\n z = (gapStartIndx <= (gapEndIndx - 2)) ? table[gapStartIndx][gapEndIndx - 2]: 0;\n\n table[gapStartIndx][gapEndIndx] = Math.max(arr[gapStartIndx] +\n Math.min(x, y), arr[gapEndIndx] +\n Math.min(y, z));\n }\n }\n\n return table[0][n - 1];\n }", "public static int maxSubArrayO1(int[] nums) {\n int maxSum=nums[0];\n int sum=nums[0];\n for(int i=1;i<nums.length;i++){\n sum=sum+nums[i];\n sum=Math.max(sum,nums[i]);\n maxSum= Math.max(sum,maxSum);\n }\n return maxSum;\n }", "public int[] maxSlidingWindow(int[] nums, int k) {\n if (nums == null || k <= 0) {\n return new int[0];\n }\n int len = nums.length;\n int []res=new int[len-k+1];\n int ri = 0;\n Deque<Integer> map= new ArrayDeque();\n for(int i=0;i<len;i++){\n // remove numbers out of range k\n if (map.size()>0 && map.peek() < i - k + 1) {\n map.poll();\n }\n // remove smaller numbers in k range as they are useless\n while(map.size()>0 && nums[map.peekLast()]<nums[i]){\n map.pollLast();\n }\n map.offerLast(i);\n if(i+1>=k){\n res[ri++]=nums[map.peek()];\n }\n }\n return res;\n }", "public static int maxSubArraySum(int a[]) {\n\t\tint max_so_far = a[0];\n\t\tint curr_max = a[0];\n\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\tcurr_max = Math.max(a[i], curr_max + a[i]);\n\t\t\tmax_so_far = Math.max(max_so_far, curr_max);\n\t\t}\n\t\treturn max_so_far;\n\t}", "public static int maxSubsum(int[] arr) {\n int minInArray = 0;\n int maxInArray = 0;\n int minSoFar = minInArray;\n int maxSoFar = maxInArray;\n int sum = 0;\n\n for (int i = 0; i < arr.length; i++) {\n sum += arr[i];\n minSoFar += arr[i];\n maxSoFar += arr[i];\n\n if (minSoFar > 0) {\n minSoFar = 0;\n }\n\n if (maxSoFar < 0) {\n maxSoFar = 0;\n }\n\n if (minInArray > minSoFar) {\n minInArray = minSoFar;\n }\n\n if (maxInArray < maxSoFar) {\n maxInArray = maxSoFar;\n }\n }\n\n return Math.max(sum - minInArray, maxInArray);\n }", "public static int maxSubArray1(int[] nums) {\n if (nums == null || nums.length == 0) return 0;\n int sum = 0;\n int max = nums[0];\n for (int i = 0; i < nums.length; i++) {\n sum = 0;\n for (int j = i; j < nums.length; j++) {\n sum += nums[j];\n if (max < sum) {\n max = sum;\n }\n }\n }\n System.out.println(max);\n return max;\n }", "public int subarraysWithKDistinct(int[] nums, int k) {\n return lessThanOrEqualToK(nums, k) - lessThanOrEqualToK(nums, k - 1);\n }", "public int maxSubArray(int[] nums) {\n int maxValue = Integer.MIN_VALUE;\n int currentSum = 0;\n for(int i = 0; i < nums.length;i++){\n currentSum = Math.max(currentSum + nums[i],nums[i]);\n maxValue = Math.max(maxValue,currentSum);\n }\n return maxValue;\n }", "static int maxMin(int k, int[] arr) {\n Arrays.sort(arr);\n return IntStream.range(0, arr.length - k + 1).map(i -> arr[i + k - 1] - arr[i]).min().getAsInt();\n }", "public int getLength(int[] arr, int k) {\n int winStart = 0, maxFreq = 0, maxLength = 0, numberOfOne = 0;\n for (int winEnd = 0; winEnd < arr.length; winEnd++) {\n if (arr[winEnd] == 1) {\n numberOfOne++;\n }\n if (winEnd - winStart + 1 > k + numberOfOne) {\n if (arr[winStart++] == 1) {\n numberOfOne--;\n }\n }\n maxLength = Math.max(maxLength, winEnd - winStart + 1);\n }\n return maxLength;\n }", "public int maxSubArray(int[] A) {\n\t\tint n = A.length;\n\t\tint left = A[0];\n\t\tint max = A[0];\n\t\tfor (int i = 1; i < n; ++i) {\n\t\t\tif (left < 0)\n\t\t\t\tleft = A[i];\n\t\t\telse\n\t\t\t\tleft = left + A[i];\n\t\t\tmax = Math.max(max, left);\n\t\t}\n\t\treturn max;\n\t}", "public int getKthVariantDimension(final int k) {\n int n = k - 1;\n\n if (n > dimensions) {\n System.out.println(\"ERROR: Non-existent dimension requested\");\n\n return -1;\n }\n\n boolean[] pastGreatest = new boolean[dimensions];\n double[] variances = new double[dimensions];\n ArrayList<Integer> ret = new ArrayList<Integer>();\n\n /* Make an array of variances and populate booles */\n for (int i = 0; i < dimensions; i++) {\n Double var = new Double(getCovariance(i, i));\n\n // System.out.println(\"[\" + i + \"]=\" + var);\n variances[i] = var.doubleValue();\n pastGreatest[i] = false;\n }\n\n /* Find k-th maximium variance */\n for (int i = 0; i <= n; i++) {\n double max = 0;\n int greatest = 0;\n\n for (int j = 0; j < dimensions; j++) {\n if (pastGreatest[j]) {\n continue;\n }\n\n if (variances[j] > max) {\n max = variances[j];\n greatest = j;\n }\n }\n\n pastGreatest[greatest] = true;\n ret.add(greatest);\n }\n\n return ret.get(n);\n }", "public kd kadenMaxSum(Integer [] arr){\n \n kd max = new kd();\n kd max_cur = new kd();\n kd result = new kd();\n \n for( int i =0; i<arr.length; i++ ){\n \n if(max_cur.sum < 0){\n max_cur.sum = arr[i];\n max_cur.i = i;\n max_cur.j = i;\n } else {\n max_cur.sum += arr[i];\n max_cur.j = i;\n }\n \n if(max_cur.sum>max.sum){\n max= max_cur;\n }\n System.out.println(\"Current max_cur \"+ max_cur.sum + \" max_cur.i \"+ max_cur.i + \" max_cur.j \"+ max_cur.j);\n System.out.println(\"Current max \"+ max.sum + \" max.i \"+ max.i + \" max.j \"+ max.j);\n }\n System.out.println(\"Max \"+ max.sum + \" max.i \"+ max.i + \" max.j \"+ max.j);\n result = max;\n \n return result;\n }", "public int solution(int[] A) {\n final int N = A.length;\n\n int maxSlice = Integer.MIN_VALUE;\n int maxEnding = 0;\n for (int i = 0; i < N; i++) {\n maxEnding = maxEnding + A[i];\n maxSlice = Math.max(maxSlice, maxEnding);\n if (maxEnding < 0) {\n maxEnding = 0;\n }\n }\n\n return maxSlice;\n }", "static boolean isValid(int a[], int n, int k, int max)\r\n\t {\r\n\t int painter = 1, sum = 0;\r\n\t \r\n\t for(int i = 0; i < n; i++)\r\n\t {\r\n\t if(sum + a[i] > max)\r\n\t {\r\n\t painter++;\r\n\t sum = a[i];\r\n\t \r\n\t if(painter > k)\r\n\t return false;\r\n\t }\r\n\t else\r\n\t sum += a[i];\r\n\t }\r\n\t \r\n\t return true;\r\n\t }", "static int printMaxContiguousProductSubArray(int arr[]){\n\t\tint max_Ending_Here = 1, min_Ending_Here = 1, temp, max_So_Far = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i< arr.length; i++){\n\t\t\t\n\t\t\t//1. if the element inside the array is greater than 0, then going forward multiply it with old max_Ending_Here, to maintain the maximum product, \n\t\t\t//and min_Ending_Here should be one in this case.\n\t\t\t//2. \n\t\t\tif(arr[i]>0){\n\t\t\t\tmax_Ending_Here = max_Ending_Here * arr[i];\n\t\t\t\tmin_Ending_Here = Math.min(min_Ending_Here*arr[i], 1);\n\t\t\t}\n\t\t\t\n\t\t\telse if(arr[i] == 0){\n\t\t\t\tmax_Ending_Here = 1;\n\t\t\t\tmin_Ending_Here = 1;\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t//If after all positives one negative comes then we have to make max_Ending_Here = 1, and maintain a minimum in min_Ending_Here.\n\t\t\t\t// there could be case that again one more negative comes in future to hanlde that we are using Math.max, same for above math.min\n\t\t\t\ttemp = max_Ending_Here;\n\t\t\t\tmax_Ending_Here = Math.max(min_Ending_Here*arr[i], 1);\n\t\t\t\tmin_Ending_Here = temp*arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max_So_Far < max_Ending_Here){\n\t\t\t\tmax_So_Far = max_Ending_Here;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn max_So_Far;\n\t\t\n\t}", "public int maxSubArraySum(int[] nums) {\n int maxSoFar = 0;\n int maxEndingHere = 0;\n\n for (int i = 0; i < nums.length; i++) {\n maxEndingHere = maxEndingHere + nums[i];\n if (maxEndingHere > maxSoFar)\n maxSoFar = maxEndingHere;\n if (maxEndingHere < 0)\n maxEndingHere = 0;\n }\n return maxSoFar;\n }", "public int maxSubArray(int[] nums) {\n if (nums == null || nums.length == 0) return 0;\n int max = Integer.MIN_VALUE, min = 0;\n int sum = 0;\n for (int i = 0; i < nums.length; i++){\n sum += nums[i];\n max = Math.max(max, sum - min);\n min = Math.min(min, sum);\n }\n return max;\n }", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "public static int getMax(int arr[], int n)\n {\n int mx = arr[0];\n for (int i = 1; i < n; i++)\n {\n if (arr[i] > mx)\n {\n mx = arr[i];\n }\n }\n return mx;\n }", "public static int maxSumOfAdjancentElementsSubArray( int[] array ) {\n\t\tassertThat( array ).isNotNull();\n\n\t\tint arrLength = array.length;\n\n\t\tif( arrLength == 0 )\n\t\t\treturn 0;\n\t\tif( arrLength == 1 )\n\t\t\treturn array[0];\n\n\t\tint maximumSum = array[0];\n\t\tfor( int i = 1; i < arrLength; i++ ) {\n\n\t\t\tarray[i] = Math.max( array[i - 1] + array[i], array[i] );\n\t\t\tmaximumSum = maximumSum > array[i] ? maximumSum : array[i];\n\t\t}\n\n\t\treturn maximumSum;\n\t}", "private static int maxConti(int[] arr) {\n\t\tint sum=0;\n\t\tint maxValue=arr[0];\n\t\tint start=0;int end=0;\n\t\tfor(int i=0;i<arr.length;i++)\n\t\t{ \n\t\t\tsum=Math.max(sum+arr[i], arr[i]);\n\t\t\t\n\t\t\t\n\t\t\tmaxValue=Math.max(maxValue,sum);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(start+\" \"+end);\n\t\treturn maxValue;\n\t}", "private static ArrayList<Integer> findMaximumUnsortedSubArray(int[] input) {\n ArrayList<Integer> result = new ArrayList<>();\n int previous = -1;\n int left = -1;\n int right = -1;\n boolean failed = false;\n int minimumAfterFailure = Integer.MAX_VALUE;\n int maximumAfterFailure = Integer.MIN_VALUE;\n for(int i=0;i<input.length;i++) {\n if(input[i] < previous && !failed) {\n failed = true;\n minimumAfterFailure = input[i];\n maximumAfterFailure = input[i-1];\n right = i;\n continue;\n }\n if(input[i] < maximumAfterFailure) {\n right = i;\n } else {\n maximumAfterFailure = input[i];\n }\n if(input[i] < minimumAfterFailure) {\n minimumAfterFailure = input[i];\n }\n previous = input[i];\n }\n if(failed) {\n for(int i=0;i<input.length;i++) {\n if(input[i] > minimumAfterFailure) {\n left = i;\n break;\n }\n }\n result.add(left);\n result.add(right);\n }\n return result;\n }", "private static int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int n: nums){\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n\n // Step2: Build max heap.\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int value: map.values()){\n pq.add(value);\n if (pq.size() > k){\n pq.poll();\n }\n }\n\n // Step3: Build result list.\n ArrayList<Integer> retList = new ArrayList<>();\n for (int n: pq){\n for (Map.Entry<Integer, Integer> entry: map.entrySet()){\n if (n == entry.getValue()){\n retList.add(entry.getKey());\n }\n }\n }\n\n return retList.stream().distinct().mapToInt(x -> x).toArray();\n }", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "public int maxSubArray(int[] A) {\n if(A==null||A.length==0)\n return 0;\n int maxSub = A[0];\n int sum=A[0];\n for(int i=1;i<A.length;i++){\n if(sum<0)\n sum=0;\n sum+=A[i];\n maxSub=Math.max(maxSub,sum); \n }\n return maxSub;\n }", "public int maxSubArray_divideandconquer(int[] A) {\n\t\tif(A.length == 1){\n\t\t\treturn A[0];\n\t\t}\n\t\tint median = (A.length-1)/2;\n\t\tint[] left = maxSubArrayHelper(A, 0, median, 0);\n\t\tint[] right = maxSubArrayHelper(A, median+1, A.length-1, 1);\n\t\treturn left[0]>right[0]?(left[0]>left[1]+right[1]? left[0]:left[1]+right[1])\n\t\t\t\t:(right[0]>left[1]+right[1]?right[0]:left[1]+right[1]);\n\t}", "public static int maxSubArrayWithZeroSum(int[] arr) {\r\n\t\tMap<Integer, Integer> sumToIndexMap = new HashMap<>();\r\n\r\n\t\tint sum = 0;\r\n\t\tsumToIndexMap.put(0, -1);\r\n\t\tint max = Integer.MIN_VALUE;\r\n\r\n\t\tfor (int index = 0; index < arr.length; index++) {\r\n\r\n\t\t\tif (arr[index] == 0) {\r\n\t\t\t\tmax = Integer.max(max, 1);\r\n\t\t\t}\r\n\r\n\t\t\tsum = sum + arr[index];\r\n\t\t\tif (sumToIndexMap.containsKey(sum)) {\r\n\r\n\t\t\t\tint prevSumIndex = sumToIndexMap.get(sum);\r\n\t\t\t\tmax = Integer.max(max, index - prevSumIndex);\r\n\t\t\t} else {\r\n\t\t\t\tsumToIndexMap.put(sum, index);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn max;\r\n\t}", "public static int maxSub0(int[] A) {\n int maxNow = 0;\n int maxAll = 0;\n int size = A.length;\n for (int i = 0; i < size; i++) {\n maxNow = Math.max(0, maxNow + A[i]);\n maxAll = Math.max(maxAll, maxNow);\n }\n return maxAll;\n }", "public int maxSubArray2(int[] nums) {\n int res = nums[0];\n int sum = nums[0];\n for (int i = 1; i < nums.length; i++) {\n sum = Math.max(nums[i], sum + nums[i]);\n res = Math.max(res, sum);\n }\n return res;\n }", "public static int findKthLargest(int[] nums, int k) { \n\t\t//sorts the array\n\t\tArrays.sort(nums);\n\t\t//determines kth largest\n\t\tint kthLargest = nums.length - k;\n\t\treturn nums[kthLargest];\n\t}", "private static int getSmallerThanOrEqualToKCount(int[] a, int k){\n int left=0, right=a.length-1;\n while(left<right){\n int mid=left+(right+1-left)/2;\n if(a[mid]>k){\n right=mid-1;\n } else{\n left=mid;\n }\n }\n return left-0+1;\n }", "private int FindMaxSum(int[] arr, int length) {\r\n\t\t\r\n\t\tint incl = arr[0];\r\n\t\tint excl = 0;\r\n\t\tint excl_new = 0;\r\n\t\t\r\n\t\tfor(int i = 1;i<arr.length;i++)\r\n\t\t{\r\n\t\t\texcl_new = (incl > excl) ? incl : excl;\r\n\t\t\t \r\n /* current max including i */\r\n incl = excl + arr[i];\r\n excl = excl_new;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn excl>incl?excl:incl;\r\n\t}", "public static int solution(int[] A, int k, int m) {\n int[] prefix = countingPrefixSums(A);\n\n int max = 0;\n for (int i = 0; i < Math.min(k, m); i++) {\n int first = k - i;\n int last = Math.max(k, Math.min(k + (m - i * 2), A.length - 1));\n max = Math.max(max, first > 0 ? prefix[last] - prefix[first - 1] : prefix[last]);\n }\n\n return max;\n }", "public static int ArrayMax(int[] A, int n){\r\n int temp,max;\r\n // Se guarda el ultimo valor del arreglo\r\n max = A[n];\r\n \r\n if (n != 0){\r\n // Se almacena la siguiente posicion en temp\r\n temp = ArrayMax(A,n-1);\r\n // Si temp es mayopr entonces es el actual maximo\r\n if (temp > max){\r\n max = temp;\r\n }\r\n }\r\n return max;\r\n }", "public static int maxSubArray1(int[] nums) {\n if (nums.length == 1) {\n return nums[0];\n }\n\n int max = nums[0], maxSubArrayPre = nums[0];\n\n for (int i = 1; i < nums.length; i++) {\n int temp = maxSubArrayPre + nums[i];\n // Kadane algorithms\n maxSubArrayPre = Math.max(temp, nums[i]);\n if (maxSubArrayPre > max) {\n max = maxSubArrayPre;\n }\n }\n\n return max;\n }", "public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }", "public int findPeak(int[] A) {\n // write your code here\n int start = 0, end = A.length - 1;\n while (start + 1 < end) {\n int mid = start + (end - start) / 2;\n if (A[mid] < A[mid + 1]) {\n start = mid;\n }\n else {\n end = mid;\n }\n }\n return A[start] > A[end] ? start : end;\n }", "private static void findStrongestMMAFighter(int[] arr, int k)\n\t{\n\n\t\tDeque<Integer> dq = new LinkedList<Integer>();\n\t\t// Dequeue first element will be the largest one always\n\t\tint i = 0;\n\t\t// We have to process first k elements separately\n\t\tfor (; i < k; i++)\n\t\t{\n\t\t\twhile (!dq.isEmpty() && arr[i] >= arr[dq.peekLast()])\n\t\t\t{\n\t\t\t\tdq.removeLast();\n\t\t\t}\n\t\t\tdq.addLast(i);\n\n\t\t}\n\t\tfor (; i < arr.length; i++)\n\t\t{\n\n\t\t\t// First element will always be larger\n\t\t\tSystem.out.print(arr[dq.peekFirst()] + \" \");\n\n\t\t\t// remove elements which are not in current window\n\t\t\twhile (!dq.isEmpty() && dq.peekFirst() <= i - k)\n\t\t\t{\n\t\t\t\tdq.removeFirst();\n\t\t\t}\n\t\t\t// Remove unwanted elements\n\t\t\twhile (!dq.isEmpty() && arr[i] > arr[dq.peekLast()])\n\t\t\t{\n\t\t\t\tdq.removeLast();\n\t\t\t}\n\t\t\tdq.addLast(i);\n\t\t}\n\t\tif (!dq.isEmpty())\n\t\t\tSystem.out.print(arr[dq.peek()] + \" \");\n\n\t}", "public static Result maxSum2Pointer(int arr[], int n) {\n int start = 0, end = 0;\n int max_sum = Integer.MIN_VALUE, s_idx = -1, e_idx = -1;\n int t_sum = 0;\n while (start < n && end < n) {\n t_sum += arr[end];\n //store info for the max subarray\n if (t_sum > max_sum) {\n s_idx = start;\n e_idx = end;\n }\n max_sum = Math.max(max_sum, t_sum);\n if (t_sum < 0) {\n t_sum = 0;\n start = end + 1;\n }\n end++;\n }\n return new Result(s_idx, e_idx, max_sum);\n }", "public static int findNextHigherIndex(int[] a, int k) {\n\t\tint start = 0, end = a.length - 1; \n\t \n int ans = -1; \n while (start <= end) { \n int mid = (start + end) / 2; \n \n // Move to right side if target is \n // greater. \n if (a[mid] <= k) { \n start = mid + 1; \n } \n \n // Move left side. \n else { \n ans = mid; \n end = mid - 1; \n } \n } \n return ans;\n\t}" ]
[ "0.7565656", "0.73486644", "0.7190216", "0.712195", "0.71089584", "0.689847", "0.6873757", "0.67422444", "0.66562194", "0.66470057", "0.66360515", "0.65652925", "0.6564433", "0.6555224", "0.6524793", "0.65130377", "0.6502046", "0.6485246", "0.64655644", "0.6403576", "0.63969576", "0.6395511", "0.6368224", "0.63664645", "0.6339095", "0.629846", "0.62796456", "0.62739694", "0.62607807", "0.6248007", "0.6233264", "0.6231359", "0.6215767", "0.61903584", "0.61528957", "0.61513895", "0.6135819", "0.61254966", "0.61181897", "0.61146444", "0.6105689", "0.6105167", "0.60978585", "0.6076622", "0.6065556", "0.6060993", "0.6050309", "0.6048458", "0.60464925", "0.60427123", "0.6041398", "0.6040086", "0.6038495", "0.6033726", "0.6032476", "0.60160774", "0.60158044", "0.5997948", "0.59925836", "0.5983226", "0.59819365", "0.59814775", "0.5974516", "0.5970384", "0.5961138", "0.593352", "0.592654", "0.5902683", "0.5893482", "0.5885895", "0.5868833", "0.58538115", "0.58484036", "0.5845981", "0.5839904", "0.58295953", "0.58285594", "0.5821114", "0.57984185", "0.5798153", "0.5796349", "0.5795484", "0.57949275", "0.57942075", "0.5783644", "0.5769069", "0.5747691", "0.5741017", "0.57384306", "0.5728141", "0.571979", "0.5718669", "0.5718074", "0.5711406", "0.57021827", "0.5693074", "0.5682697", "0.56698525", "0.5668081", "0.5661085" ]
0.72438395
2
Insert a New Country
@Test @Transactional public void testCRUD() { Region region = regionRepository.findByRegionIdEquals(4L); Country country = new Country("ZZ", "ZebraLand", region); countryRepository.save(country); List<Country> countries = countryRepository.findByCountryNameLike("ZebraLand"); assertThat(countries).isNotEmpty().doesNotContainNull().size().isEqualTo(1); assertThat(countries.get(0)).isEqualToComparingFieldByFieldRecursively(country); // Update existing Country country.setCountryName("ZebraWorld"); countryRepository.save(country); Country actualCountry = countryRepository.findByCountryIdEquals("ZZ"); assertThat(actualCountry).isNotNull().isEqualToComparingFieldByFieldRecursively(country); // Delete existing Country countryRepository.delete(country); actualCountry = countryRepository.findByCountryIdEquals("ZZ"); assertThat(actualCountry).isNull(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(Country record);", "@Override\n public void add(Country country) {\n if (country == null) {\n throw new DbException(\"Nothing to add.\");\n }\n String sql = \"INSERT INTO country (name, capital, inhabitants, votes) VALUES (?, ?, ?, ?)\";\n try {\n PreparedStatement statementSQL = connection.prepareStatement(sql);\n statementSQL.setString(1, country.getName());\n statementSQL.setString(2, country.getCapital());\n statementSQL.setInt(3, country.getNumberInhabitants());\n statementSQL.setInt(4, country.getVotes());\n statementSQL.execute();\n } catch (SQLException e) {\n throw new DbException(e);\n }\n }", "int insert(countrylanguage record);", "@Override\n\t public void addCountry(Country country){\n\t Session session = factory.openSession();\n\t Transaction tx = null;\n\t \n\t try {\n\t tx = session.beginTransaction();\n\t session.save(country); \n\t tx.commit();\n\t System.out.println(\"Record is saved in Database!\");\n\t } catch (HibernateException e) {\n\t if (tx!=null) tx.rollback();\n\t e.printStackTrace(); \n\t } finally {\n\t session.close(); \n\t }\n\t }", "boolean addCountry(Country country);", "public static ResultSet insertCountry(String countryName) throws SQLException {\n PreparedStatement stmnt = con.prepareStatement(\"INSERT INTO COUNTRY (ID, NAME)\" +\n \"VALUES (country_seq.nextval, '\" + countryName + \"')\");\n return stmnt.executeQuery();\n }", "int insertSelective(countrylanguage record);", "void insert(VRpWkProvinceGprsCsBh record);", "public boolean add() {\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\t\t\tString sqlString;\n\t\t\tboolean ret = false;\n\n\t\t\t// Check to make sure that the user has entered in all of the\n\t\t\t// required fields\n\t\t\tif (validateObjectForDB()) {\n\t\t\t\tsqlString = \"INSERT INTO country (countryname) VALUES (\" + \"'\" + m_db.plSqlSafeString(m_country_name) + \"')\";\n\t\t\t\tm_db.runSQL(sqlString, stmt);\n\n\t\t\t\t// Get the inserted index\n\t\t\t\tm_country_id = Integer.parseInt(m_db.getInsertedIndexValue(stmt, \"countryid_seq\"));\n\t\t\t\tret = true;\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\treturn (ret);\n\t\t} catch (Exception e) {\n\t\t\tm_error_string = \"Unable to add the country. The data may be invalid.\";\n\t\t\treturn (false);\n\t\t}\n\t}", "public void insert(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insert\", record);\r\n }", "void insertSelective(VRpWkProvinceGprsCsBh record);", "int insert(TbCities record);", "public Country createCountryEntity(Country countryReq) throws Exception {\n Country newCountry = new Country();\n newCountry.setObjectName(countryReq.getObjectName());\n newCountry.setCode(countryReq.getCode());\n newCountry.setRegion(countryReq.getRegion());\n return countryRepository.save(newCountry);\n }", "public long insertDatabase(String country, String countryCode, String province, String city, int cases, String date){\n ContentValues newRowValues = new ContentValues();\n newRowValues.put(CovidOpener.COL_COUNTRY, country);\n newRowValues.put(CovidOpener.COL_COUNTRYCODE, countryCode);\n newRowValues.put(CovidOpener.COL_PROVINCE, province);\n newRowValues.put(CovidOpener.COL_CITY, city);\n newRowValues.put(CovidOpener.COL_CASES, cases);\n newRowValues.put(CovidOpener.COL_DATE, date);\n return cdb.insert(CovidOpener.TABLE_NAME, null, newRowValues);\n }", "public boolean insertCountry(int cid, String name, int height,\n\t\t\tint population) {\n\t\tString query;\n\t\tquery = \"SELECT \" + String.valueOf(cid) + \" FROM A2.country\";\n\t\ttry {\n\t\t\t// System.out.println(\"looking for id\");\n\t\t\tps = connection.prepareStatement(query);\n\t\t} catch (SQLException se) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tif (!(ps.executeQuery()).next()) {\n\t\t\t\t// System.out.println(\"inserting entry\");\n\t\t\t\tquery = \"INSERT INTO A2.country VALUES (\" + String.valueOf(cid)\n\t\t\t\t\t\t+ \", '\" + name + \"' , \" + String.valueOf(height) + \", \"\n\t\t\t\t\t\t+ String.valueOf(population) + \")\";\n\t\t\t\ttry {\n\t\t\t\t\tps = connection.prepareStatement(query);\n\t\t\t\t\tps.executeUpdate();\n\t\t\t\t} catch (SQLException se) {\n\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// System.out.println(\"id \" + cid + \"Already exists\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t} catch (SQLException se) {\n\n\t\t}\n\n\t\treturn false;\n\t}", "public void insertSelective(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insertSelective\", record);\r\n }", "void insert(County record);", "private void addNewTSLCountryRegionInDataBase(String countryRegionCode) {\n\n\t\t// Tratamos de obtener el nombre del país primero.\n\t\tString countryRegionName = UtilsCountryLanguage.getFirstLocaleCountryNameOfCountryCode(countryRegionCode);\n\n\t\t// Construimos el POJO y lo almacenamos en base de datos.\n\t\tTslCountryRegion tcr = new TslCountryRegion();\n\t\ttcr.setCountryRegionCode(countryRegionCode);\n\t\ttcr.setCountryRegionName(countryRegionName);\n\n\t\tManagerPersistenceServices.getInstance().getManagerPersistenceConfigurationServices().getTslCountryRegionService().updateSaveTslCountryRegion(tcr);\n\n\t}", "int insert(CityDO record);", "public boolean insertCityListData(String cityName, String cityCountry) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.beginTransaction();\n ContentValues contentValues = new ContentValues();\n contentValues.put(CITY_NAME, cityName);\n contentValues.put(CITY_COUNTRY, cityCountry);\n db.insert(TABLE_CITY_INFORMATION, null, contentValues);\n db.setTransactionSuccessful();\n db.endTransaction();\n return true;\n }", "@Override\n\tpublic void ajouter(Zone t) {\n\t\ttry {\n\t\t\t //preparation de la requete\n\t\t\tString sql=\"INSERT into zone (lieu,frequence,id_chaine) values(?, ?,?)\";\n\t\t\tPreparedStatement pst=Con.prepareStatement(sql);\n\t\t\t//transmission des valeurs aux parametres de la requete\n\t\t\tpst.setString(1,t.getLieu());\n\t\t\tpst.setString(2,t.getFrequence());\n\t\t\tpst.setInt(3, t.getChaine().getId_chaine());\n\t\t\t//execussion de la requete\n\t\t\tpst.executeUpdate();\n\t\t\tSystem.out.println(\"zone ajoutees \");\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\tSystem.out.println(\"Probleme de driver ou connection avec la BD\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "void insert(CusBankAccount record);", "@Override\n\tpublic void saveAllCountries(List<Country> countries) {\n\n\t}", "public void addNewDistrict(District District);", "public void insertCity(Connection db_connection, String city, String state) throws SQLException {\n //System.out.printf(\"Adding a new record to the table *cities*.%n\");\n String sql = \"INSERT INTO cities(city_name, city_state) VALUES(?, ?)\";\n PreparedStatement statement_prepared = db_connection.prepareStatement(sql);\n statement_prepared.setString(1, city);\n statement_prepared.setString(2, state);\n statement_prepared.executeUpdate();\n statement_prepared.close();\n }", "public void putCoin(CoinData coinData){\n String sql = \"SELECT Country.id FROM Country WHERE \" +\n \"Country.Name = '\" + coinData.country + \"';\";\n Cursor cursor = database.rawQuery(sql, null);\n cursor.moveToFirst();\n int countryId = cursor.getInt(0);\n cursor.close();\n\n // put the feature data into the database\n ContentValues values = new ContentValues();\n values.put(\"Country_id\", countryId);\n values.put(\"Value\", coinData.value);\n database.insert(\"Coin\", null, values);\n }", "public MentorConnectRequestCompose addIndCountry(){\n\t\tmentorConnectRequestObjects.allCountries.click();\n\t\tmentorConnectRequestObjects.algeriaCountry.click();\n\t\tmentorConnectRequestObjects.allIndustries.click();\n\t\tmentorConnectRequestObjects.agriIndustry.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "public Country(int id, String CountryName) {\n this.id = id;\n this.countryName = CountryName;\n }", "public static synchronized boolean insert(final Database db, \n\t\t\tfinal String postalId, final String countryId, final String stateId, final String cityId, \n\t\t\tfinal String postalCode) {\n\n\t\tboolean found = exist(db, postalId);\n\t\tif ( ! found ) {\n\n\t\t\ttry {\n\t\t\t\treturn db.executeUpdate(\"insert into \" + db.getDbSchema() + \".\" + DataTablePostalCode.Id + \n\t\t\t\t\t\t\" values(\" + ValueChar(postalId) + ValueChar(countryId) +\n\t\t\t\t\t\tValueChar(stateId) + ValueChar(cityId) + ValueChar(postalCode) + \n\t\t\t\t\t\tValueAdditionals()+ \")\");\n\n\t\t\t} catch (Exception e) {\n\n\t\t\t\tLogger.log(DataTablePostalCode.class, e);\n\t\t\t\treturn false;\n\t\t\t} /*catch*/\n\t\t} \n\t\t\n\t\treturn found;\n\n\t}", "int insert(HotelType record);", "public void addCountry(Country p_country) {\n\t\td_countriesSet.add(p_country);\n\t}", "public Country (String instanceName)\n {\n name = instanceName;\n }", "public Country() {}", "int insert(InspectionAgency record);", "int insert(Shipping record);", "void insert(VRpWkLocationGprsCs record);", "void insertCustomerDDPay(CustomerDDPay cddp);", "boolean update(Country country);", "public void setCountryId(int value);", "void insertSelective(County record);", "int insertSelective(TbCities record);", "private void importCountries(JTFFile file) {\n for (SimpleData country : file.getCountries()) {\n if (countriesService.exist(country)) {\n country.setId(countriesService.getSimpleData(country.getName()).getId());\n } else {\n countriesService.create(country);\n }\n }\n }", "@PostMapping(\"/admin/saveCountry\")\n public String saveCountry(@ModelAttribute Country country, Model model) {\n adminRepository.saveCountry(country);\n model.addAttribute(\"Countries\", adminRepository.getCountries());\n return \"addCountry\";\n }", "public void saveSnippetToDB(String countryName,\r\n String date, Integer totalCases, Integer totalDeaths,\r\n Integer newCases) {\r\n\r\n UserDetail userDetail = (UserDetail) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n String name = userDetail.getUsername();\r\n Optional<User> user = userRepo.findByName(name);\r\n if (user.isPresent()) {\r\n Optional<Statictics> oldStats = statsRepo.findByCountryNameAndUser_id(countryName, user.get().getId());\r\n if (oldStats.isPresent()) {\r\n oldStats.get().setDate(date);\r\n oldStats.get().setNewCases(newCases);\r\n oldStats.get().setTotalCases(totalCases);\r\n oldStats.get().setTotalDeaths(totalDeaths);\r\n statsRepo.save(oldStats.get());\r\n } else {\r\n Statictics stat = new Statictics();\r\n stat.setCountryName(countryName);\r\n stat.setDate(date);\r\n stat.setNewCases(newCases);\r\n stat.setTotalCases(totalCases);\r\n stat.setTotalDeaths(totalDeaths);\r\n user.get().getStatictics().add(stat);\r\n stat.setUser(user.get());\r\n statsRepo.save(stat);\r\n userRepo.save(user.get());\r\n }\r\n }\r\n\r\n }", "int insert(BankUserInfo record);", "int insert(BankUserInfo record);", "protected void insert(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\t\r\n\t\tString s1= request.getParameter(\"req1\");\r\n\t\t\r\n\t\tString id4= request.getParameter(\"countid\");\r\n\t\t//Cat r1=new Cat();\r\n\t\t//r1.setId(Long.valueOf(id2));\r\n\t\t\r\n\t\r\n\t\tCountry r=new Country();\r\n\t\t\r\n\t\tr.setCountName(s1);\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\tAdd_count cu= new Add_count();\r\n\t\tcu.insert(r);\r\n\t\tresponse.sendRedirect(\"EH_Admin/manage_count.jsp\");\r\n\r\n\t\t\r\n\t\r\n\t}", "@Override\n\t public void updateCountry(Country country){\n\t Session session = factory.openSession();\n\t Transaction tx = null;\n\t \n\t try {\n\t tx = session.beginTransaction();\n\t //Integer countryID = country.getIdCountry();\n\t //country = (Country)session.get(Country.class, countryID);\n\t\t\t session.update(country); \n\t tx.commit();\n\t } catch (HibernateException e) {\n\t if (tx!=null) tx.rollback();\n\t e.printStackTrace(); \n\t } finally {\n\t session.close(); \n\t }\n\t }", "void createNewContinent();", "public void setCountryName(String value);", "public UsStatePk insert(UsState dto) throws UsStateDaoException;", "public long insertAgency(String agency_id, String agency_name, String agency_url, String agency_timezone, String agency_lang, String agency_phone) {\n\t\t\tContentValues initialValues = new ContentValues();\n\t\t\tinitialValues.put(KEY_AGENCYID, agency_id);\n\t\t\tinitialValues.put(KEY_AGENCYNAME, agency_name);\n\t\t\tinitialValues.put(KEY_AGENCYURL, agency_url);\n\t\t\tinitialValues.put(KEY_AGENCYTIMEZONE, agency_timezone);\n\t\t\tinitialValues.put(KEY_AGENCYLANG, agency_lang);\n\t\t\tinitialValues.put(KEY_AGENCYPHONE, agency_phone);\n\t\t\treturn db.insert(AGENCIES_TABLE, null, initialValues);\n\t\t}", "int insert(FinanceAccount record);", "void insert(CTipoPersona record) throws SQLException;", "public void setCountry_id(String country_id) {\n this.country_id = country_id;\n }", "void addContinent(Continent continent);", "public void setCountry(Country v) throws TorqueException\n {\n if (v == null)\n {\n setCustCountryId( 999);\n }\n else\n {\n setCustCountryId(v.getCountryId());\n }\n aCountry = v;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public Country(String countryName) {\n\t\tthis.countryName = countryName.toLowerCase();\n\t}", "public void setCountryId(String countryId) {\r\n this.countryId = countryId;\r\n }", "int insert(NeeqCompanyAccountingFirmOnline record);", "int insert(WordSchool record);", "int insert(Location record);", "public void onInsert(Statement insert, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "public void setCountry(Country country) {\n this.country = country;\n }", "public void setCountry(java.lang.String Country) {\n this.Country = Country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "@Override\n\tpublic void insert(Categoria cat) throws SQLException {\n\t\t\n\t}", "@Override\n\tpublic void insert(Unidade obj) {\n\n\t}", "public void setCountry(java.lang.String country) {\n this.country = country;\n }", "public Country(int id, String CountryName, String ContinentName) {\n this.id = id;\n this.countryName = CountryName;\n this.ParentContinent = ContinentName;\n }", "public Country(ausstage.Database p_db) {\n\t\tm_db = p_db;\n\t\tinitialise();\n\t}", "public void setCountry(java.lang.String country) {\r\n this.country = country;\r\n }", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "public void addAdjCountry(Country country){\n adjList.add(country);\n }", "int insert(Depart record);", "void insert(Customer customer);", "public int insert(person p){\n\t\t\treturn j.update(\" insert into person (id,name,location,birthdate) \"+ \" values(?,?,?,?) \", new Object[] {p.getId(),p.getName(),p.getLocation(),new Timestamp(p.getDate().getTime())});\r\n\t\t\r\n\t}", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "public void insert() throws SQLException;", "void fetchCountryInformation();", "public void insert(ZyCorporation record) {\r\n getSqlMapClientTemplate().insert(\"zy_corporation.insertcorporation\", record);\r\n }", "int insert(TrainingCourse record);", "void saveCity(City city);", "public void setCountry(Integer country) {\n this.country = country;\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "int insert(Register record);", "int insert(PcQualificationInfo record);", "int insert(PersonRegisterDo record);", "public void setCountryId(java.lang.String countryId) {\r\n this.countryId = countryId;\r\n }", "public void addCustomer(int Id, String name, String dob, String gender, String number, String email, String address, String password, Boolean promo, Integer reward, Boolean reg) throws SQLException { //code for add-operation \n st.executeUpdate(\"INSERT INTO IOTBAY.CUSTOMER \" + \"VALUES ('\" \n + Id + \"','\" + name + \"', '\" + dob + \"', '\" \n + gender + \"', '\" + number + \"', '\" \n + email + \"', '\" + address + \"', '\" \n + password + \"', '\" + promo + \"', '\"+ reward + \"', '\"+ reg \n + \"')\");\n\n }", "int insert(HospitalType record);", "public void setCountryId(long countryId) {\n this.countryId = countryId;\n }", "int insert(BasCounties record);", "@Override\n\tpublic int insert(Object ob) {\n\t\t\n\t\tint res = session.insert(\"party.party_insert_one\",ob);\n\t\t\n\t\treturn res;\n\t}" ]
[ "0.79449666", "0.780417", "0.75388783", "0.74564517", "0.7397782", "0.71856165", "0.70035136", "0.68663645", "0.6833687", "0.6825886", "0.64409935", "0.6390547", "0.63885087", "0.6317385", "0.63132954", "0.6298458", "0.6242453", "0.6224722", "0.61413777", "0.6081651", "0.60210514", "0.6005517", "0.6001881", "0.59837246", "0.5955058", "0.5954591", "0.5917402", "0.5915582", "0.59040165", "0.59004295", "0.5897714", "0.5893999", "0.5890537", "0.5870297", "0.58557796", "0.58539367", "0.5811979", "0.5790617", "0.5786097", "0.57829195", "0.57709163", "0.576869", "0.576781", "0.5766759", "0.5760959", "0.5760959", "0.5738019", "0.57304263", "0.57249194", "0.571784", "0.57059747", "0.57030725", "0.56788826", "0.5677825", "0.5673489", "0.5670821", "0.566468", "0.56638765", "0.56638765", "0.56638765", "0.56638765", "0.56638765", "0.56638765", "0.5661128", "0.56608325", "0.5645641", "0.56425935", "0.56299037", "0.5628731", "0.5625619", "0.5621669", "0.5616662", "0.56128716", "0.56055367", "0.56048703", "0.5604641", "0.5591632", "0.55870754", "0.55858505", "0.5583943", "0.55829644", "0.558045", "0.5578514", "0.55675286", "0.55646193", "0.55633867", "0.5560202", "0.5555339", "0.5555092", "0.5552717", "0.5552717", "0.5543669", "0.55357736", "0.5535681", "0.5531403", "0.5529975", "0.5521775", "0.55185", "0.55134755", "0.5513449" ]
0.5983694
24
/ Setters and getters
public ArrayList<Personne> getListPersonne() { return listPersonne; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "protected abstract Set method_1559();", "@Override\n String get();", "public String get();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void get() {\n }", "public int getAge() {return age;}", "public abstract String get();", "public int getSet() {\n return set;\n }", "public Object get()\n {\n return m_internalValue;\n }", "String setValue();", "public int get () { return rating; }", "public int\t\tget() { return value; }", "public int getAge(){\n return age;\n }", "public int getArmadura(){return armadura;}", "public String get()\n {\n return this.string;\n }", "public T get() {\n return value;\n }", "String getName(){return this.name;}", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public Student getStudent() { return student; }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public Object getValue(){\n \treturn this.value;\n }", "public Book getBook() \t\t{ return this.myBook; }", "public int getlife(){\r\n return life;\r\n}", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "@Override\n public int get()\n { \n return this.pr;\n }", "public void setdat()\n {\n }", "public Object getValue() { return _value; }", "public V get() {\n return value;\n }", "public String getName () { return this.name; }", "public String getName(){return this.name;}", "public int getAge()\n {\n return age;\n }", "public void setAge(int age) { this.age = age; }", "public int getNumber(){return number;}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public String getAuthor(){return author;}", "@Override\n protected void getExras() {\n }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public Object getValue() { return this.value; }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public String get() {\n return value;\n\t}", "public int value() { \n return this.value; \n }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "private ReadProperty()\r\n {\r\n\r\n }", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "public Value getValue(){\n return this.value;\n }", "public int getYearsOffice()\n {\n return yearsOffice;\n}", "public int getID(){\r\n return this.ID;\r\n }", "public String getID(){return ID;}", "@Override\n public Object getValue()\n {\n return value;\n }", "public String getName(){\n return name;\n}", "public Age getAge() {\n return age;\n }", "int getBlue(){\n\n return this.blue;\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public String getName(){ return name; }", "public byte[] get(){\n return this.value;\n }", "public int getLives(){return lives;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public double getPrice(){return price;}", "public Object getValue()\n {\n\treturn value;\n }", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "public int getAge() {\r\n return age;\r\n }", "protected List getProperties() {\n return null;\n }", "public String getNombre(){\n return nombre;\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "private Integer getId() { return this.id; }", "public int getAge() {\n\t \t return age; \n\t}", "public int getPrice(){\n return price;\n }", "public int getPrice(){\n\n return this.price;\n }", "public double getWage(){\r\n return wage; \r\n }", "public String get() {\n return this.value;\n }", "public int getTipoAtaque(){return tipoAtaque;}", "public Address getAddress() { return address; }", "public String get_name(){\n return _name;\n }", "public int getID(){\n return this.ID;\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getNombre(){\r\n return nombre;\r\n }", "public String getNombre(){\n return nombre;\n }", "public String getName ()\n {\n return name;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public Movie getMovie() { return movie; }", "public int getID() {return id;}", "public int getID() {return id;}" ]
[ "0.66742736", "0.66497093", "0.6608577", "0.6487784", "0.63873875", "0.6326742", "0.6267472", "0.6258335", "0.6255368", "0.6199692", "0.61387944", "0.6124677", "0.61078453", "0.6101428", "0.6100121", "0.6097131", "0.6097113", "0.60639775", "0.60415465", "0.60406643", "0.60406643", "0.60368574", "0.6034262", "0.60331464", "0.60274273", "0.6014887", "0.60101724", "0.60040283", "0.59989566", "0.5973556", "0.59711134", "0.5967545", "0.5965108", "0.59632516", "0.595826", "0.5956633", "0.5956296", "0.59523404", "0.59513724", "0.59500533", "0.5944367", "0.5935284", "0.59227127", "0.5922246", "0.5920468", "0.5914098", "0.5912592", "0.59119105", "0.5910947", "0.59067625", "0.58910865", "0.58894545", "0.5887107", "0.588679", "0.58805686", "0.5879441", "0.5879425", "0.58657", "0.5863702", "0.58600473", "0.5858684", "0.5857496", "0.5854708", "0.5852684", "0.5848694", "0.5847384", "0.5847384", "0.5847384", "0.5847384", "0.58449566", "0.58399", "0.58354896", "0.5825271", "0.58246106", "0.5818898", "0.58171767", "0.5814632", "0.58112854", "0.5810322", "0.5807082", "0.58060074", "0.5804691", "0.57976174", "0.5795897", "0.57940364", "0.5792619", "0.57906175", "0.5789365", "0.5787606", "0.57836735", "0.578107", "0.578107", "0.578107", "0.578107", "0.578107", "0.578107", "0.578107", "0.578107", "0.5780662", "0.5780325", "0.5780325" ]
0.0
-1
Returns the total number of heads at the end of the game
private int calculateTotalHeads() { //kept a separate method with a specific purpose instead of writing code in main //no need to static method, althouth static won't hurt in such a small code int headsCount = 0; for (int currentCoinNo = 1; currentCoinNo <= noCoins; currentCoinNo++) { if(isHead(currentCoinNo)) { headsCount++; } } return headsCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int headCount() {\n return heads.size();\n }", "public int countHandShakes(){\n\t\tif (this.getNCouples() < 1) {\n\t\t\treturn 0;\n\t\t}else if (this.getNCouples() == 1) {\n\t\t\treturn 1;\n\t\t}else{\n\t\t\tthis.setNCouples(this.getNCouples() - 1);\n\t\t\treturn (this.getNCouples() + 1) * 3 - 2 + countHandShakes();\n\t\t}\n\t}", "public int getTotalCollisions(){\r\n return totalCollisions;\r\n }", "public int totalGames() {\n return wins + losses + draws;\n }", "public int getHeadTails() \n {\n return numHeadTails; \n }", "private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }", "int getTotalBotCount() {\n int t = 0;\n\n for (Integer i : m_botTypes.values())\n t += i;\n\n return t;\n }", "public int getHats() {\n return totalHats;\n }", "int numberofhc()\n{\n\treturn hc.size();}", "@Override\n public int getTotalHumanPlayers() {\n return totalHumanPlayers;\n }", "public int getTotalOfwins() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfWins()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfWins()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfWins();\n }", "public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }", "public int getCoinCount() {\n return coinCount;\n }", "@Override\n\tpublic long countchitietdonhang() {\n\t\treturn chiTietDonHangRepository.countchitietdonhang();\n\t}", "public long getLossCount()\n\t{\n\t\tCollections.sort(list);\n\t\treturn list.get(list.size()-1)- list.get(0) - list.size()+1;\n\t}", "int getFaintedPokemonCount();", "public void CoinFlip(int totalFlip) {\n\n //variables\n int count = 0;\n int head = 0;\n int tail = 0;\n\n //computation\n while (count != totalFlip) {\n double flip = Math.random();\n System.out.println(flip);\n\n if (flip < 0.5) {\n System.out.println(\"Print Head\");\n head++;\n\n } else {\n System.out.println(\"Print Tail\");\n tail++;\n }\n count++;\n }\n\n System.out.println(\"number of heads wins: \" + head);\n System.out.println(\"numberof tails wins:\" + tail);\n\n int perHaid = (head * 100 / totalFlip);\n int perTail = (tail * 100 / totalFlip);\n System.out.println(\"the percentage of head win:\" + perHaid);\n System.out.println(\"the percentage of tail win:\" + perTail);\n\n\n }", "public int howManyHeroDead() {\r\n int count;\r\n count = 0;\r\n for (Hero h: team) {\r\n if (h.isDead()) {\r\n count = count + 1;\r\n }\r\n }\r\n return count;\r\n }", "public int getHealthCount() {\n return healthCount;\n }", "public int GetSizeOfHumanHand(){\n System.out.println(\"SIZE \" + handHuman.size() );\n return handHuman.size();\n }", "public int getTurnCount() {\n return turnEncoder.getCount();\n }", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public int playerCount()\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\t++count;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "@Override\n\tpublic int numOfCollisions() {\n\n\t\treturn this.collision;\n\t}", "public int getTotalWins() {\n int sum = 0;\n for (int i = 0; i < 13; i++) {\n sum += i * this.statistics.getDecksByWins().get(i);\n }\n return sum;\n }", "public int getPlayerCount() {\n return 0;\n }", "public double collisionLength(){\n //count to keep track of how many words there are the chain\n int count = 0;\n for (int i = 0;i< tableSize;i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n //increments if there is an element\n if (ptr != null){\n count++;\n }\n //while loop to traverse the linked list\n while (ptr.getNext() != null){\n //increments for every word\n count++;\n ptr = ptr.getNext();\n }\n }\n }\n return ((double) count / (double) usedIndex);\n }", "public int getHumanPlayerHits() {\n return humanPlayerHits;\n }", "public int getHeadcount(){\n return headcount;\n }", "public int getHandTotal () {\n int handTotal = 0;\n int aceCount = 0;\n for (Card e : hand) {\n if (e.returnRankValue() >= 10) {\n handTotal += 10;\n } else if (e.returnRankValue() == 1) {\n ++aceCount;\n } else { handTotal += e.returnRankValue(); }\n }\n\n /* Calculate the worth of aces after all other cards have been counted */\n for (int i = 0; i < aceCount; ++i) {\n if (handTotal+11 > 21) {\n handTotal += 1;\n } else {\n handTotal += 11;\n }\n }\n\n return handTotal;\n }", "public int getHitsLeft(){\n return hitsLeft;\n }", "public int getHopCount()\r\n/* */ {\r\n/* 168 */ return this.nHops;\r\n/* */ }", "int getResponsesCount();", "public int numCollisions() {\r\n int collisions = 0;\r\n for (int i = 0; i < tableSize; i++) {\r\n if (table[i].length() > 1) {\r\n collisions += table[i].length() - 1;\r\n }\r\n }\r\n return collisions;\r\n }", "public int getTotalOfdefeats() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfDefeats()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfDefeats()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfDefeats();\n }", "public int getHandSize()\n {\n return hand.size();\n }", "public double getLastPhotonCount() {\r\n return photoncount;\r\n }", "public int countPlayers(){\n return players.size();\n }", "public int getCoinCount() {\r\n\t\treturn this.coinCount;\r\n\t}", "public int getTotalOfGames() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfGames()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfGames()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfGames();\n }", "int getCount(Side player) {\n return player == BLACK ? _countBlack : _countWhite;\n }", "public int getHandTotal()\n\t{\n\t\tint total = 0;\n\t\tfor (Card c : hand)\n\t\t{\n\t\t\ttotal += c.getValue();\n\t\t}\n\t\treturn total;\n\t}", "public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int GetSizeOfComputerHand(){\n return handComputer.size();\n }", "public int numHunks() {\n return jniNumHunks(getRawPointer());\n }", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getNumPlayed()\n\t{\n\t\treturn numPlayed;\n\t}", "public int getHops() {\n\t\treturn hopCount;\n\t}", "Integer getTotalStepCount();", "@Override\n public int count() {\n return this.bench.size();\n }", "int numberOfBalls();", "public int getPlayerCount() {\n \n \treturn playerCount;\n \t\n }", "public int getNumCaught() {\r\n\t\tint count = 0;\r\n\t\tfor (int poke : caughtPokemon.values()) {\r\n\t\t\tcount += poke;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int getHealthCredits() {\r\n\t\treturn super.getHealthCredits();\r\n\t}", "public int leaderDeckSize(){\n return deckLeaderCard.size();\n }", "public int getHandSize(){\n\t\treturn hand.size();\n\t\t\t\t\n\t}", "public static int getPreviousHealth(EntityLiving entity) {\n return entity.getEntityData().getInteger(\"phb\");\n }", "public int getHandSize() {\r\n\t\treturn playerCards.size();\r\n\t}", "public int getNumberOfCoins() {\n return coins;\n }", "public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}", "public int getRemaining(){\n\t\treturn count+1;\n\t}", "public int getNumberOfHam() {\n return this.ham;\n }", "public int playersCount(){\r\n\t\treturn players.size();\r\n\t}", "public int getNumWins() {\n\t\treturn this.numWins;\n\t}", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public int getNumCharacters()\n\t{\n\t\treturn gameCharCount;\n\t}", "int getTotalCount();", "public int getNumberOfPlayers() {\n return listaJogadores.size() - listaJogadoresFalidos.size();\n }", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public int NumOfGames()\n\t{\n\t\treturn gametype.length;\n\t}", "public int getTotalRegularCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getCardsByWins());\n }", "public int getNumAttacked() {\n return this.numAttacked;\n }", "public int getPlayerTotal() {\n\t\t\treturn playerTotal;\n\t\t}", "protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}", "public int getNumExits() {\n return mySize.getNumExits();\n }", "public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }", "public int getGamesSentCount() {\n\t\treturn mGamesSentCount;\n\t}", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "public Long get_cachetotflashcachehits() throws Exception {\n\t\treturn this.cachetotflashcachehits;\n\t}", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "public int numberOfBalls() {\n this.numberOfBalls = 4;\n return 4;\n }", "public int getTotalGoldenCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getGoldCardsByWins());\n }", "public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}", "@Test\n public void getNumDraw() {\n this.reset();\n assertEquals(-1, this.bps.getNumDraw());\n // max # of visible cards in the draw pile\n this.reset();\n this.bps.startGame(this.fullDeck, false, 7, 1);\n assertEquals(1, this.bps.getNumDraw());\n }", "public int getNSteps() {\n //if (mCovered == null) {\n //return 0;\n //}\n return mCovered.length;\n }", "protected double Hops() {\r\n\t\tint hops = 0;\r\n\t\tIterator<Flow> f = this.flows.iterator();\r\n\t\twhile (f.hasNext()) {\r\n\t\t\thops += f.next().getLinks().size();\r\n\t\t}\r\n\t\treturn hops;\r\n\t}", "public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }", "int getResponseCount();", "public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}", "BigInteger getTotalDifficulty();", "int getQuestCount();", "public int getPlayerCount() {\n\t\treturn playerCount;\n\t}", "int getTrucksCount();", "public int getTotalNumberOfSprites() {\n return this.getRows() * this.getColumns();\n }", "public int receiveHandCount() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Hand count not received\");\n e.printStackTrace();\n }\n return 0;\n }", "public double getPlayerFullHP();", "public int hashesPerSecond() {\n int hashCount = 0;\n String simpleString = \"00000000\";\n long endTime = System.currentTimeMillis() + 1000;\n while (System.currentTimeMillis() < endTime) {\n MessageDigest md = null;\n try {\n md = MessageDigest.getInstance(\"SHA-256\");\n } catch (NoSuchAlgorithmException e) {\n System.out.println(\"message : \" + e);\n }\n byte[] messageDigest = md.digest(simpleString.getBytes());\n String hashedSimpleString = DatatypeConverter.printHexBinary(messageDigest);\n hashCount++;\n }\n return hashCount;\n }", "public int playerCount() {\n\t\treturn playerList.size();\n\t}" ]
[ "0.72050774", "0.6429695", "0.6424121", "0.6422918", "0.64058274", "0.6345828", "0.62672657", "0.62048876", "0.6202832", "0.616168", "0.6136406", "0.6098174", "0.6090066", "0.6073219", "0.6056113", "0.6045333", "0.6045265", "0.60289586", "0.60145", "0.5995394", "0.59948355", "0.5983775", "0.5983775", "0.5983775", "0.59617704", "0.59479505", "0.5945163", "0.5940864", "0.593927", "0.59256136", "0.5924106", "0.5915978", "0.59094733", "0.59087795", "0.59048", "0.58703613", "0.5861538", "0.58502626", "0.5843426", "0.58365893", "0.58341336", "0.58334845", "0.58168954", "0.5814275", "0.581183", "0.5810267", "0.5790474", "0.5774475", "0.57638216", "0.5761333", "0.57568103", "0.57517976", "0.5750655", "0.5749072", "0.57459134", "0.5744581", "0.5743255", "0.57423276", "0.5740838", "0.5739561", "0.5729304", "0.5728457", "0.57260054", "0.57204807", "0.5714446", "0.57122135", "0.56966287", "0.56866986", "0.56863445", "0.5684131", "0.5682437", "0.5681896", "0.56809205", "0.5680175", "0.56697935", "0.56671834", "0.56648463", "0.5663121", "0.5663109", "0.5661067", "0.56590873", "0.56559145", "0.56516725", "0.565105", "0.5650662", "0.56504214", "0.5645315", "0.5642779", "0.5632735", "0.5628267", "0.5625136", "0.5619298", "0.56170183", "0.56157726", "0.5610144", "0.56071913", "0.56065035", "0.5603598", "0.56012744", "0.56004417" ]
0.79259217
0
Returns true is the Coin's head is facing up else return false
private boolean isHead(int currentCoinNo) { //you must focus on access modifier and naming. Instead of reurning the string anf then //comparing later, i changed it to return boolean (hence the name isHead) int divisibleCount = 0; //Interger object was not required, rest all good in this method! System.out.print("currentCoinNo=" + currentCoinNo + "("); //so that logs are very clear for (int i = 1; i <= currentCoinNo; i++) { //changed it to covers 1 to n so that its easy to explain on paper if (currentCoinNo % i == 0) { //changed to i instead of i-1 so that i looks simple System.out.print(i + " "); divisibleCount += 1; } } if (divisibleCount % 2 == 0) { System.out.println(") Tails"); //so that logs are very clear return false; } else { System.out.println(") Heads"); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFacingUp()\n {\n return facingUp;\n }", "public boolean isFaceUp(){return faceUp;}", "public boolean isFaceUp(){\r\n return(getImage() == CardFaceUp);\r\n }", "public static boolean coinToss() {\n double flip = Math.random();\n if (flip < .50) // tails\n return false;\n else // heads\n return true; \n }", "boolean isTurnedFaceUp();", "boolean hasFaceUp();", "private boolean needToTurn() {\n\t\tdouble curDir = sens.getDirection();\n\t\tdouble desDirPlusAmount = desiredDirection + TURNSPEED;\n\t\tdouble desDirMinusAmount = desiredDirection - TURNSPEED;\n\n\t\t// if desired direction is <||> +_ x degrees\n\t\tif (curDir < desDirMinusAmount || curDir > desDirPlusAmount) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isUp () { return n.isUp(); }", "public boolean isMoveUp() {\n return moveUp;\n }", "public boolean isHeads() {\n return (face == 0);\n }", "boolean hasYaw();", "boolean hasYaw();", "boolean isIngameMenuUp() {\n return this.game.r instanceof oz;\n }", "public boolean getFaceUp() {\n\t\treturn faceUp;\n\t}", "public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }", "private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}", "public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }", "public boolean getFace() {\n return this.faceUp;\n }", "private boolean rightUpCollision(InteractiveObject obj){\n\t\treturn (((obj.getX() - this.getX()) < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}", "protected boolean IsPlayerStaringAtMe( EntityPlayer player )\r\n {\r\n ItemStack headStack = player.inventory.armorInventory[3];\r\n\r\n if ( headStack == null || headStack.itemID != \r\n \tFCBetterThanWolves.fcItemEnderSpectacles.itemID )\r\n {\r\n Vec3 vLook = player.getLook( 1F ).normalize();\r\n \r\n Vec3 vDelta = worldObj.getWorldVec3Pool().getVecFromPool( posX - player.posX, \r\n \tboundingBox.minY + ( height / 2F ) - ( player.posY + player.getEyeHeight() ), \r\n \tposZ - player.posZ );\r\n \r\n double dDist = vDelta.lengthVector();\r\n \r\n vDelta = vDelta.normalize();\r\n \r\n double dotDelta = vLook.dotProduct( vDelta );\r\n \r\n if ( dotDelta > 1D - 0.025D / dDist )\r\n {\r\n \treturn player.canEntityBeSeen( this );\r\n }\r\n }\r\n \r\n return false;\r\n }", "public boolean isHasLeveledUp() {\n return hasLeveledUp;\n }", "public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }", "boolean hasDirection();", "public void setMoveUp(boolean TorF) {\n moveUp = TorF;\n }", "boolean canScrollUp();", "public boolean moveUp() {\n if (position.isLinked(position.getNorth())) {\n position.getGameObjects().remove(this.type);\n position = position.getNorth();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }", "boolean turnFaceUp();", "public boolean canMoveUpIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY==0) //wall\n checker = false;\n\n if(this.topLeftY>0){//not hitting top wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {//go through game pieces\n if(b.getGamePieces()[i].topLeftY< this.topLeftY){//only checking pieces on above of this.\n if(b.getGamePieces()[i].topLeftY + b.getGamePieces()[i].height == this.topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){//checking if x blocks\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n\n\n }\n }return checker;\n\n }", "public boolean targetPositionReached(){\n\t\t\n\t\tif(orientation==ORIENTATION.UP&&targetY>=lastY){\n\n\t\t\treturn true;\n\t\t}\n\t\telse if(orientation==ORIENTATION.DOWN&&targetY<=lastY){\n\t\t\treturn true;\n\t\t}\n\t\telse if(orientation==ORIENTATION.LEFT&&targetX>=lastX){\n\n\t\t\treturn true;\n\t\t}\n\t\telse if(orientation==ORIENTATION.RIGHT&&targetX<=lastX){\n\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean stepUp() {\n yMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }", "public boolean canFrameConnectIn(int dir)\r\n/* 35: */ {\r\n/* 36: 27 */ return (this.StickySides & 1 << dir) > 0;\r\n/* 37: */ }", "@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }", "@Override\n public boolean isChasingPlayer()\n {\n return(chasingPlayer);\n }", "public void flipCoin() {\n\t\tfaceUp = (int) (Math.random() * ((1 - 0 + 1) + 0));\n\n\t}", "public boolean percolates() {\n return backwashQuickUnion.connected(virtualTop, virtualBottom);\n }", "public boolean checkUp()\n\t{\n\t\tif(row-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "boolean isGameSpedUp();", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "public boolean isHorizontal(){\n return head().getY() == tail().getY();\n }", "public static final boolean isTargetInFrontOf(Entity seeker, Entity target, float fov) \r\n\t{\r\n\t\t// thanks again to Battlegear2 for the following code snippet\r\n\t\tdouble dx = target.posX - seeker.posX;\r\n\t\tdouble dz;\r\n\r\n\t\tfor (dz = target.posZ - seeker.posZ; dx * dx + dz * dz < 1.0E-4D; dz = (Math.random() - Math.random()) * 0.01D) \r\n\t\t{\r\n\t\t\tdx = (Math.random() - Math.random()) * 0.01D;\r\n\t\t}\r\n\r\n\t\twhile (seeker.rotationYaw > 360) { seeker.rotationYaw -= 360; }\r\n\t\twhile (seeker.rotationYaw < -360) { seeker.rotationYaw += 360; }\r\n\r\n\t\tfloat yaw = (float)(Math.atan2(dz, dx) * 180.0D / Math.PI) - seeker.rotationYaw;\r\n\t\tyaw = yaw - 90;\r\n\r\n\t\twhile (yaw < -180) { yaw += 360; }\r\n\t\twhile (yaw >= 180) { yaw -= 360; }\r\n\r\n\t\treturn yaw < fov && yaw > -fov;\r\n\t}", "public boolean transition() {\n current = new State(ts++, hopper); \n if (terminus.isTerminus(current)) {\n return false;\n } else {\n hopper.sendBall(oneMinute);\n return true;\n }\n }", "public boolean checkUpDown() {\r\n\t\tif (p1[0] + p1[3] + p1[6] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[1] + p1[4] + p1[7] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[2] + p1[5] + p1[8] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[0] + p2[3] + p2[6] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[1] + p2[4] + p2[7] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[2] + p2[5] + p2[8] == 15)\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean moveUp() {\n\t\tboolean rs = super.moveUp();\n\t\tif(rs == true){\n\n\t\t}\n\t\treturn rs;\n\t}", "public boolean canFrameConnectOut(int dir)\r\n/* 40: */ {\r\n/* 41: 31 */ return (this.StickySides & 1 << dir) > 0;\r\n/* 42: */ }", "public boolean isShootUp() {\n return shootUp;\n }", "public boolean moveForward(){\n \n int[] last = (int[]) this.snake.elementAt(this.snake.size() -1);\n int[] sLast = (int[]) this.snake.elementAt(this.snake.size() -2);\n int[] diff = new int[2];\n int[] diff2 = new int[2];\n \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n \n //left\n if( direction == 1){\n diff2[0]--;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff = diff2; \n }\n \n //down\n }else if(direction == 2){\n \n diff2[1]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n //System.out.println(\"first one: \" + diff[0] + \", \" + diff[1]);\n }\n \n //right\n }else if(direction == 3){\n diff2[0]++;\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n \n //up\n }else if(direction == 4){\n \n diff2[1]--;\n //System.out.println(\"\" + diff[0] + \", \" + diff[1]);\n if(diff2[0] == -1*diff[0] &&diff2[1] == -1*diff[1]){\n diff = new int[]{0,0}; \n }else{\n diff=diff2; \n }\n }else{ \n diff[0] = last[0] - sLast[0];\n diff[1] = last[1] - sLast[1];\n }\n \n int[] newPoint = new int[2];\n newPoint[0] = last[0] + diff[0];\n newPoint[1] = last[1] + diff[1];\n \n //if it hits the snake itself\n boolean hits = false;\n Enumeration enu = this.snake.elements();\n int[] temp = new int[2];\n while(enu.hasMoreElements()){\n temp = (int[]) enu.nextElement();\n if(temp[0] == newPoint[0] && temp[1] == newPoint[1]){\n hits = true; \n }\n }\n if(hits){\n return false; \n }\n //if it hits the wall\n if( newPoint[0] >50 || newPoint[0] <0 || newPoint[1] >50 || newPoint[1] <0){\n return false; \n }else{\n if(newPoint [0] == this.apple[0] && newPoint[1] == this.apple[1]){\n this.snake.add(newPoint);\n this.ateApple();\n }else{\n this.snake.add(newPoint);\n this.snake.remove(0);\n \n \n }\n return true;\n }\n }", "public boolean hasPassed()\n {\n if (y<=450.0f)\n return false;\n else\n return true;\n }", "private boolean isRockTouchingGround(RockView targetRock) {\n\n boolean isTouching = false;\n\n if ((targetRock.getCenter().y) > horizon) {\n isTouching = true;\n }\n\n return isTouching;\n }", "public boolean hit()\n\t{\n\t\taddCardToHand(new BlackJackCard());\n\t\treturn getHandValue() <= 21;\n\t}", "protected boolean isFinished() {\n \tif(Math.abs(Robot.driveTrain.getHeading() - targetDirection) < 2) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "public boolean moveUp() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenUp() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.UP);\r\n\t\t\tif ( currentRow-1 < 0 || maze [currentRow-1] [currentCol].isOpenDown() )\r\n\t\t\t{\r\n\t\t\t\tcurrentRow--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentRow >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Up: \" + moved );\r\n\t\treturn moved;\r\n\t}", "@Override\n\tpublic boolean onValidSurface()\n\t{\n\t\tif (!this.worldObj.getCollidingBoundingBoxes(this, this.getEntityBoundingBox()).isEmpty())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint i = Math.max(1, this.blocksToTakeUp());\n\t\t\tint j = Math.max(1, this.blocksToTakeUp());\n\t\t\tBlockPos blockpos = this.hangingPosition.offset(this.facingDirection.getOpposite());\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\n\t\t\tfor (int k = -i / 2 + 1; k < i / 2 + 1; ++k)\n\t\t\t{\n\t\t\t\tfor (int l = -j / 2 + 1; l < j / 2 + 1; ++l)\n\t\t\t\t{\n\t\t\t\t\tBlockPos blockpos1 = blockpos.offset(enumfacing, k).up(l);\n\t\t\t\t\tBlock block = this.worldObj.getBlockState(blockpos1).getBlock();\n\n\t\t\t\t\tif (block.isSideSolid(this.worldObj, blockpos1, this.facingDirection))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!block.getMaterial().isSolid() && !BlockRedstoneDiode.isRedstoneRepeaterBlockID(block))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Entity entity : this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox()))\n\t\t\t{\n\t\t\t\tif (entity instanceof EntityHanging)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n public void onUp() {\n\n if(player.getDirection().y == 1){\n player.setDirection(new Vector2(0, 1.5f));\n }\n else{\n player.setDirection(new Vector2(0, 1));\n\n }\n }", "boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean percolates() {\n if (wuf.connected(virtTop, virtBottom)) {\n hasPercolated = true;\n return true;\n }\n \n return false;\n }", "public int checkChasingPlayer()\n {\n if(stunCountdown > 0)\n {\n chasingPlayer = false;\n return stunCountdown;\n }\n if(Game.getInstance().getPlayer().getCurrentRoom().isControlRoom())\n {\n chasingPlayer = false;\n return(-1);\n }\n else\n {\n List<Exit> neighbors = getCurrentRoom().getCollectionOfExits();\n for(Exit neighbor : neighbors)\n {\n if(getCurrentRoom().getExit(neighbor).equals(Game.getInstance().getPlayer().getCurrentRoom()) && neighbor.isOperating())\n {\n chasingPlayer = true;\n return(5 + (int) Math.floor(Math.random() * 6));\n }\n }\n chasingPlayer = false;\n return(-1);\n }\n }", "public boolean isReached();", "private boolean shouldSnakeSeekTruman(Point snake, int trux, int truy){\n\t\treturn (Math.abs(snake.x - trux) < SNAKE_ATTACK_RANGE && Math.abs(snake.y - truy) < SNAKE_ATTACK_RANGE);\n\t}", "@Override\n protected boolean isFinished() {\n SmartDashboard.putNumber(\"TurnCommand Current Heading\", Robot.m_drivetrain.getAngle());\n SmartDashboard.putNumber(\"TurnCommand Target\", Start + TurnGoal);\n if (IsLeft) {\n return Robot.m_drivetrain.getAngle() <= Start + TurnGoal;\n } else {\n return Robot.m_drivetrain.getAngle() >= Start + TurnGoal;\n }\n }", "public boolean isOnGround() {\n return this.sim_pos.getY() <= 2;\n }", "boolean turnFaceDown();", "private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}", "public void setHasLeveledUp(boolean value) {\n this.hasLeveledUp = value;\n }", "public boolean hasOrbited(Bunch<T> theBunch){\n\t \tdouble currentDis=(PhysicsVector.subtract(theBunch.getPosition(),origin)).magnitude();\n\t \tboolean anOrbit=false;\n\t \t\n\t \tif (currentDis>=displacement){\n\t \t\tif (converge){\n\t \t\t\t// passed through closest approach and is now diverging from origin\n\t \t\t\tanOrbit=true;\n\t \t\t}\n\t \t\tconverge=false;\n\t \t}\n\t \telse{\n\t \t\tconverge=true; // bunch is approaching origin\n\t \t}\n\t \tdisplacement=currentDis;\n\t \treturn anOrbit ;\t \n\t}", "public boolean goAllUp() {\n\t\tif ( topLimitSwitch.get() ) {\n\t\t\tstop();\n\t\t}\n\t\telse {\n\t\t\tup();\n\t\t}\n\t\t\n\t\treturn topLimitSwitch.get();\n\t}", "public boolean shouldHit() {\r\n\t\tif(getHandVal() < 17) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false; \r\n\t}", "public boolean inGoalRegion() {\n return position >= GOAL_POSITION;\n }", "public boolean canMoveBackward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n //tank upper than wall\n if(wall.getY()-locY<=60 && wall.getY()-locY>=0 && degree>=270 && degree<=360)\n {\n ans=false;\n }\n //tank lower than wall\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=0 && degree<=180)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n //tank at the left side of the wall\n if(wall.getX()-locX<=60 && wall.getX()-locX>=0 &&\n (degree>=90 && degree<=270) )\n {\n ans=false;\n }\n //tank at the right side of the wall\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "boolean hasHair();", "public void up() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}", "private void playerMoveUp()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() - 1);\n if (this.getCurrentY() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else// hit edge redo setlocation\n {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } \n }", "public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }", "boolean reachedLeft() {\n\t\treturn this.x <= 0;\n\t}", "public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }", "public boolean wideSnakeOnDot()\n {\n if(up || down)\n {\n //Location p = new Location(head.getA()-30,head.getB());\n //Location m = new Location(head.getA()-15,head.getB());\n //Location n = new Location(head.getA()+15,head.getB());\n //Location o = new Location(head.getA()+30,head.getB()); \n //if(dot.isEqual(m) || dot.isEqual(n) || dot.isEqual(o) || head.isEqual(p))\n // return true;\n \n if(Math.abs(head.getA()-dot.getA())<50 && (head.getB()-dot.getB() == 0))\n {\n return true;\n } \n } \n else if(left || right)\n {\n //Location p = new Location(head.getA(),head.getB()-30);\n //Location m = new Location(head.getA(),head.getB()-15);\n //Location n = new Location(head.getA(),head.getB()+15);\n //Location o = new Location(head.getA(),head.getB()+30); \n //if(dot.isEqual(m) || dot.isEqual(n) || dot.isEqual(o) || head.isEqual(p))\n // return true;\n \n \n if(Math.abs(head.getB()-dot.getB())<50 && (head.getA()-dot.getA() == 0))\n {\n return true;\n }\n }\n return false;\n }", "public boolean upwardTrend() {\n\t\tfor(int index = 1; index < NUM_DECADES; index++) {\n\t\t\tif(rank.get(index-1) <= rank.get(index)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (Math.abs(Motor.A.getTachoCount() - Settings.motorAAngle) > 5 || (Motor.A.getTachoCount() == 0 && Settings.motorAAngle == -90));\n\t}", "public boolean goalReached() {\n return (Math.abs(mTargetAngle - mCurrentAngle) < mTargetTolerance);\n }", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public boolean checkBallOutTopBottom() {\n //if ball is out of top and bottom\n if (y <= -radius || y >= GameView.height + radius) {\n out = true;\n return true;\n }\n return false;\n }", "private boolean hasEatenPowerUp() {\r\n if (snake[HEAD].row == powerUp.row && \r\n snake[HEAD].column == powerUp.column) { \r\n growSnake();\r\n newPowerUp();\r\n MainClass.totalPoints++;\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isPanelVisibleBecauseOfHeadsUp() {\n return (this.mHeadsUpManager.hasPinnedHeadsUp() || this.mHeadsUpAnimatingAway) && this.mBarState == 0;\n }", "public boolean snakeHasCollided() {\n if (isOutOfBounds(snake.getHead())) {\n return true;\n }\n //If head has hit body\n for (Cell snakeBody: snake.getBody()) {\n if (snake.getHead().equals(snakeBody)) {\n return true;\n }\n }\n return false;\n }", "public boolean isWalkingBack(GlobalObject object) {\r\n\t\tif(player.getX() < object.getX() && player.getY() >= object.getY() || player.getY() > object.getY())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public void flipCard() {\n this.faceUp = !faceUp;\n }", "public abstract boolean facingRight();", "public boolean isSwitchAhead() {\r\n\t\treturn robotStartPos == Position.Middle || robotStartPos == switchPos;\r\n\t}", "@Override\n public boolean isFinished() {\n// return false;\n return LightningMath.epsilonEqual(shooter.getFlywheelMotor1Velocity(), shooter.motor1setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor2Velocity(), shooter.motor2setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor3Velocity(), shooter.motor3setpoint, Constants.FLYWHEEL_EPSILON);\n }", "public boolean hitDealer() {\r\n while (getHandValue() <= 16) {\r\n hit();\r\n }\r\n return getHandValue() <= 21;\r\n }", "private boolean isLastMoveRochade()\r\n\t{\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMove == null) return false;\r\n\t\tPiece king = lastMove.to.piece;\r\n\t\tif (!(king instanceof King)) return false;\r\n\t\t\r\n\t\tint y = king.getColor().equals(Color.WHITE) ? 0 : 7;\r\n\t\tif (lastMove.to.coordinate.y != y) return false;\r\n\t\t\r\n\t\tint xDiffAbs = Math.abs(lastMove.to.coordinate.x - lastMove.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}", "public boolean reachBorder() {\n // check up\n if (direction == 12) {\n if (this.getY() < speed) {\n return true;\n }\n }\n //check down\n if (direction == 6) {\n if (this.getY() + this.getHeight() + speed > GameUtility.GameUtility.MAP_HEIGHT) {\n return true;\n }\n\n }\n //check left\n if (direction == 9) {\n if (this.getX() < speed) {\n return true;\n }\n }\n //check right\n if (direction == 3) {\n if (this.getX()\n + this.getWidth() + speed > GameUtility.GameUtility.MAP_WIDTH) {\n return true;\n }\n }\n return false;\n\n }", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}" ]
[ "0.6811158", "0.6676678", "0.6647164", "0.6564701", "0.65191704", "0.6303738", "0.6250944", "0.62415135", "0.62327194", "0.622258", "0.6203066", "0.6203066", "0.61979944", "0.6194048", "0.6156308", "0.6134093", "0.60947585", "0.60718495", "0.6047831", "0.6036299", "0.59941095", "0.5993231", "0.5956116", "0.5908242", "0.5855455", "0.5813804", "0.5813612", "0.5767332", "0.5758403", "0.5756548", "0.57545805", "0.5749412", "0.5746442", "0.57449764", "0.5738768", "0.572808", "0.5727149", "0.57230455", "0.57211906", "0.571918", "0.571918", "0.571918", "0.571918", "0.571918", "0.571918", "0.571868", "0.5717746", "0.57115763", "0.57017285", "0.5697582", "0.5680424", "0.56615525", "0.56507134", "0.56417316", "0.56401044", "0.5633499", "0.5633063", "0.5630664", "0.5629859", "0.5620715", "0.56085634", "0.5604358", "0.56026006", "0.56025434", "0.559398", "0.5591327", "0.55903447", "0.5589887", "0.5585699", "0.55829036", "0.5582616", "0.55787367", "0.5572633", "0.5567998", "0.55459666", "0.5543464", "0.5539823", "0.55366784", "0.55279493", "0.5525695", "0.55253214", "0.551279", "0.5506876", "0.5497215", "0.5478076", "0.5473392", "0.5462327", "0.54620075", "0.54555136", "0.54534316", "0.54464704", "0.54447097", "0.5443061", "0.54399306", "0.5428772", "0.54287624", "0.54282206", "0.54277265", "0.54263306", "0.54203236", "0.5420192" ]
0.0
-1
Note I did not having many tests for the item class as the item class itself contains nearly no responsibilities. The item class itself is intended to serve as a container for the data associated with an item. I choose to test the toString since it is necessary for my saving to file. I also tested the setIsComplete because it was a setter I added with a different type of parameter than the type of isComplete.
@Test void testToString() { // Create a new item object with the following parameters: // Description: "Test Description", Due Date: "2022-05-30", isComplete: "Complete" Item actualResult = new Item("Test Description", "2022-05-30", "Complete"); // Then assertEquals to see if the actual string equals "Test Description,2022-05-30,Complete" assertEquals("Test Description,2022-05-30,Complete", actualResult.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void testSetIsComplete() {\n Item actualResult = new Item(\"Test Description\", \"2022-05-30\", \"Complete\");\n // Edit the isComplete variable using boolean.\n actualResult.setIsComplete(false);\n assertEquals(\"Incomplete\",actualResult.getIsComplete());\n }", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}", "@Test\n void completeItemsAsString() {\n }", "@Test\r\n\tvoid testChangeItems() {\r\n\t\tToDoItem newItem = new ToDoItem(\"Item 1\", \"2/6/21\", 1, \"Body text 1\");\r\n\t\tString correctInfo = \"Name: Item 2\\nDue Date: 3/16/21\\nPriority: Medium\\nNotes: New notes\\nLate: Yes\\nItem Complete: Yes\";\r\n\t\tnewItem.setName(\"Item 2\");\r\n\t\tnewItem.setDueDate(\"3/16/21\");\r\n\t\tnewItem.setPriority(2);\r\n\t\tnewItem.setNotes(\"New notes\");\r\n\t\tnewItem.setIsLate(true);\r\n\t\tnewItem.setIsDone(true);\r\n\r\n\t\tif (!newItem.getAllInfo().equals(correctInfo)) {\r\n\t\t\tfail(\"Error changing ToDoItem values\");\r\n\t\t}\r\n\t}", "public void setItem(Item item) {\n this.item = item;\n }", "@Test\n void completeItemsAsString() {\n\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "@Test\r\n\tpublic void itemLiveTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setDescription(\"word\");\r\n\t\titem.setType(\"type\");\r\n\t\titem.setName(\"name\");\r\n\t\titem.setSellerId(SELLER);\r\n\t\titem.setCount(NUMBER);\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\titem.setPicture(\"picture\");\r\n\t\ttry {\r\n\t\t\titem.createItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to create new item: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load newly created item\r\n\t\tItem itemNew = new Item();\t\t\r\n\t\tassertNotSame(itemNew.getId(), item.getId());\r\n\t\ttry {\r\n\t\t\titemNew.loadById(item.getId());\r\n\t\t\tassertEquals(itemNew.getId(), item.getId()); // item actually loaded\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load item id \"+item.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\titemNew.setName(\"another name\");\r\n\t\ttry {\r\n\t\t\titemNew.updateItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to update item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load updated item\r\n\t\titem = new Item();\t\t\r\n\t\ttry {\r\n\t\t\titem.loadById(itemNew.getId());\r\n\t\t\tassertEquals(item.getId(), itemNew.getId()); // item actually loaded\r\n\t\t\tassertEquals(itemNew.getName(), \"another name\"); // update has been saved\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load updated item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\titem.deleteItem(true);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to delete item id \"+item.getId()+\": SQLException\");\r\n\t\t}\t\t\r\n\t}", "private Item(){}", "public void setItem(T item) {\n this.item = item;\n }", "@Test\n public void testItemService() {\n Item i = itemService.getItem(1);\n System.out.println(i.toString());\n Assert.assertSame(i, item);\n }", "public boolean isValidItem() {\n return validItem;\n }", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }", "@Test\r\n\tvoid testCreateToDoItem() {\r\n\t\tToDoItem newItem = new ToDoItem(\"Item 1\", \"2/6/21\", 1, \"Body text 1\");\r\n\t\tString correctInfo = \"Name: Item 1\\nDue Date: 2/6/21\\nPriority: High\\nNotes: Body text 1\\nLate: Yes\\nItem Complete: No\";\r\n\r\n\t\tif (!newItem.getAllInfo().equals(correctInfo)) {\r\n\t\t\tfail(\"Error creating ToDoItem\");\r\n\t\t}\r\n\r\n\t}", "protected abstract Item createTestItem3();", "protected abstract Item createTestItem1();", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "@Test\n\tpublic void createItemEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp\");\n\t\tSystem.out.println(item);\n\t\tassertEquals(new Item(), item);\n\t}", "public void saveData() {\n if (dataComplete()) {\n if(validLengths())\n {\n Item old_item = items.get(item_index);\n int item_purchase_status = 0;\n if (!item_purchased.isChecked()) {\n item_purchase_status = 1;\n }\n\n ds.open();\n Item new_item = new Item(old_item.id, item_name.getText().toString(), item_category.getText().toString(),\n item_description.getText().toString(), Double.parseDouble(item_price.getText().toString()), item_purchase_status);\n boolean success = ds.editEntry(new_item);\n ds.close();\n\n if (success) {\n exit();\n } else {\n empty_error.setVisibility(empty_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.VISIBLE);\n }\n }\n else\n {\n empty_error.setVisibility(empty_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.VISIBLE);\n }\n } else {\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n empty_error.setVisibility(empty_error.VISIBLE);\n }\n }", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "public static void createItem() {\n //Initializing an item and putting it in a room airport\n itemLocation.addItem(airport, new PickableItem(\"Bottle\", \"This is a bottle that have been left behind by someone\", 2, false));\n itemLocation.addItem(airport, new PickableItem(\"Boardingpass\", \"This is a boardingpass to get on the plane to Hawaii: 126AB\", 1, false));\n\n //Initializing an item and putting it in a room beach\n itemLocation.addItem(beach, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash \", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(beach, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n itemLocation.addItem(beach, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room jungle\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(jungle, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room mountain\n itemLocation.addItem(mountain, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(mountain, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n itemLocation.addItem(mountain, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n\n //Initializing an item and putting it in a room cave\n itemLocation.addItem(cave, new PickableItem(\"Shroom\", \"these shrooms look suspecius, but maybe the can be\", 1, true));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Waterbottle\", \"This is freshwater found in the jungle, maybe you can drink it\", 2, true));\n itemLocation.addItem(cave, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room camp\n itemLocation.addItem(camp, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(camp, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(camp, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n\n //Initializing an item and putting it in a room seaBottom\n itemLocation.addItem(seaBottom, new PickableItem(\"Backpack\", \"This is a backpack from the plane crash maybe you can use it to carry more items \", 0, false));\n itemLocation.addItem(seaBottom, new PickableItem(\"WaterBottle\", \"This is a water bottle from the plan crash \", 1, true));\n itemLocation.addItem(seaBottom, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash\", 2, false));\n }", "protected abstract Item createTestItem2();", "@Test\n\tpublic void validState_changeState() {\n\t\tString testState = \"OFF\";\n\t\tItem testItem = new Item().createItemFromItemName(\"lamp_woonkamer\");\n\t\ttestItem.changeState(testItem.getName(), testState);\n\t\tSystem.out.println(testItem.getState());\n\t\tassertEquals(testItem.getState(), testState);\n\t\t\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "@Test\r\n\tpublic void testIdItem() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, 0, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(12321, itemDes.getIdItem());\r\n\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}\t\t\r\n\r\n\t}", "public interface Item {\n \n /**\n * Returns the name of the item\n * @return \n */\n public String getName();\n \n /**\n * Returns the price of the item\n * @return \n */\n public double getPrice();\n \n /**\n * Returns the # of the items\n * @return \n */\n public int getQuantity();\n /**\n * Returns the item type\n * @return ItemCategory\n */\n public ItemCategory getCategory();\n}", "public Item(){\n description = \"No description avaible for this item\";\n weight = 0;\n }", "public void setItemWanted(Item item) {\n itemWanted = item;\n }", "@Test\n\tpublic void testCopyConstructor() {\n\t\tItem copy = new Item(item);\n\t\t\n\t\tassertTrue(\"Item copied using copy constructor: \",item.equals(copy)); \n\t\tassertNotSame(\"Item copied is not a reference to the same item: \",item, copy);\n\t}", "protected abstract void makeItem();", "public POJOCompteItem() {\n compte = new TreeMap<Date, Integer>();\n items = new ArrayList<Item>();\n }", "public Item() {}", "public Item(){}", "public void checkItem(final ToDoItem item) {\n if (mClient == null) {\n return;\n }\n\n // Set the item as completed and update it in the table\n item.setComplete(true);\n\n AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>(){\n @Override\n protected Void doInBackground(Void... params) {\n try {\n\n checkItemInTable(item);\n getActivity ().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (item.isComplete()) {\n mAdapter.remove(item);\n }\n }\n });\n } catch (final Exception e) {\n createAndShowDialogFromTask(e, \"Error\");\n }\n\n return null;\n }\n };\n\n runAsyncTask(task);\n }", "@Override\n protected void updateItem(T item, boolean empty) {\n\n // Do the normal Cell.updateItem() things\n super.updateItem(item, empty);\n\n // If the item in question exists, use its name as text instead\n if (item != null) {\n setText(item.getName());\n }\n }", "@Test\n public void getAllItem() {\n Item item1 = new Item();\n item1.setName(\"Drill\");\n item1.setDescription(\"Power Tool\");\n item1.setDaily_rate(new BigDecimal(\"24.99\"));\n item1 = service.saveItem(item1);\n\n // Add an Item to the mock database using the Item API method (item2)\n Item item2 = new Item();\n item2.setName(\"Screwdriver\");\n item2.setDescription(\"Hand Tool\");\n item2.setDaily_rate(new BigDecimal(\"4.99\"));\n item2 = service.saveItem(item2);\n\n // Add all the Item's in the mock database to a list of Items using the Item API method\n List<Item> itemList = service.findAllItems();\n\n // Test the getAllItem() API method\n TestCase.assertEquals(2, itemList.size());\n TestCase.assertEquals(item1, itemList.get(0));\n TestCase.assertEquals(item2, itemList.get(1));\n }", "@Test\r\n\tpublic void testBonusDestreza() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, bonusDestreza, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(20, itemDes.getBonusDestreza());\r\n\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}\t\t\r\n\t}", "public Item() \r\n\t{\r\n\t\tname = \"AbstractItem\";\r\n\t\tdescription = \"Example Item Generated\";\r\n\t\tprice = 0;\r\n\t}", "@Override\n\tItem save(Item item);", "@Test \n\tpublic void saveItemTest() throws Exception {\n\t\tItemDTO aItemDto = catalogService.createItem(itemDto);\n\t\tassertNotNull(aItemDto);\n\t\tassertEquals(itemDto,aItemDto);\n\t}", "private void setItem(){\n item = new String[4];\n item[0] = title;\n item[1] = DueDate;\n item[2] = Description;\n item[3] = \"incomplete\";\n }", "@Test\n public void updateItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Update the Item in the mock database using the API method\n item.setName(\"Screwdriver\");\n item.setDescription(\"Hand Tool\");\n item.setDaily_rate(new BigDecimal(\"4.99\"));\n service.updateItem(item);\n\n // Test the updateItem() method\n verify(itemDao, times(1)).updateItem(itemArgumentCaptor.getValue());\n TestCase.assertEquals(item, itemArgumentCaptor.getValue());\n }", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "public Item()\n {\n super();\n }", "public interface ShopItem\n{\n\tDrawable getIcon();\n\n\tString getDisplayName();\n\n\tString getDescription();\n\n\tString getDataName();\n\n\tBigDecimal getCost(int count);\n\n\tvoid init(GameResources resources, AtomicInteger progress);\n\n\tint getProgressCount();\n}", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "public interface Item {\n\n boolean isTask();\n}", "public Item() {\n }", "public Item() {\n }", "@Test\r\n public void testPesquisaDescricao() {\r\n TipoItem item = new TipoItem();\r\n \r\n item.setDescricao(\"tipoItemDescrição\");\r\n TipoItemRN rn = new TipoItemRN();\r\n rn.salvar(item);\r\n \r\n assertTrue(\"tipoItemDescrição\", true);\r\n }", "@Test\n public void getItemType () {\n Assert.assertEquals(\"SPECIAL\", bomb.getItemType().name());\n }", "public ItemInfo () {}", "@Test\n\tpublic void getAndSet() {\n\t\tBody b1 = new Body();\n\t\tBody b2 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\tBodyFixture b2f1 = b2.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tTestCase.assertNull(this.item.getBody());\n\t\tTestCase.assertNull(this.item.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tTestCase.assertEquals(b1, this.item.getBody());\n\t\tTestCase.assertEquals(b1f1, this.item.getFixture());\n\t\t\n\t\tthis.item.set(b2, b2f1);\n\t\tTestCase.assertEquals(b2, this.item.getBody());\n\t\tTestCase.assertEquals(b2f1, this.item.getFixture());\n\t}", "@Test\n public void testGetAllItems() throws Exception {\n Item firstItem = new Item(\"Snickers\");\n firstItem.setItemPrice(new BigDecimal(\"2.75\"));\n firstItem.setItemStock(10);\n\n Item secondItem = new Item(\"Kit-Kat\");\n secondItem.setItemPrice(new BigDecimal(\"3.00\"));\n secondItem.setItemStock(12);\n\n // ACT - add/get all items from the DAO\n testDao.addItem(firstItem.getItemName(), firstItem);\n testDao.addItem(secondItem.getItemName(), secondItem);\n\n List<Item> allItems = testDao.getAllItems();\n\n // Check in general\n assertNotNull(allItems, \"The list of items must not be null\");\n assertEquals(2, allItems.size(), \"Inventory should have two items\");\n\n // Check specifics\n assertTrue(testDao.getAllItems().contains(firstItem),\n \"The inventory shoudl include Snickers\");\n assertTrue(testDao.getAllItems().contains(secondItem),\n \"The inventory should include Kit-Kat\");\n // Need to include hashcose/equals/toString methods/additions to Item Class \n }", "public interface Item {\n}", "@Test\n public void TestIntakeDiaryItem() {\n String id = \"1233\";\n String name = \"Nicotine\";\n String type = \"Narcotic\";\n String dose = \"10\";\n Timestamp dateTime = Timestamp.now();\n\n IntakeDiaryItem item = new IntakeDiaryItem(id, name, type, dose, dateTime);\n\n assertEquals(id, item.getId());\n assertEquals(name, item.getName());\n assertEquals(type, item.getType());\n assertEquals(dose, item.getDose());\n assertEquals(dateTime, item.getDateTime());\n }", "@Override\r\n\t\tpublic boolean createItem() {\n\t\t\treturn false;\r\n\t\t}", "public void setEditedItem(Object item) {editedItem = item;}", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "public abstract boolean depleteItem();", "public GItem(Item i) {\n this.mGItem = i.getId();\n this.title = i.getTitle();\n\n if (!i.getAddress().equals(\"\")){\n this.address = i.getAddress();\n }\n\n if (i instanceof OfficerItem){\n this.type = 1;\n\n } else if (i instanceof CompanyItem){\n this.type = 0;\n }\n\n }", "public Item(String description) {\n this.description = description;\n }", "@Override\n public void setTestItem(){\n expectedName = \"Common lightMagicBook\";\n expectedPower = 10;\n expectedMinRange = 1;\n expectedMaxRange = 2;\n lightMagicBook = new LightMagicBook(expectedName,expectedPower,expectedMinRange,expectedMaxRange);\n animaMagicBook1 = new AnimaMagicBook(\"\",30,1,2);\n darknessMagicBook1 = new DarknessMagicBook(\"\",30,1,2);\n }", "private boolean finalizeItemCreation() {\n String itemName = nameField.getText().toString();\n\n // Names must be unique, check to see if it exists\n if(database.checkItemInDB(itemName))\n return false;\n\n // Process Item contents\n item.set_ITEM_NAME(itemName);\n item.set_ITEM_DESC(descField.getText().toString());\n item.set_ITEM_ACCESS(datetime);\n item.set_ITEM_CREATED(datetime);\n item.set_ITEM_VIEW_CNT(0);\n\n boolean success = database.addNewItemToDB(item);\n return success;\n }", "public interface Item {\n void fill(RecyclerView.ViewHolder viewHolder);\n\n int getType();\n\n}", "public void setItem(Item collectibleItem) {\n\t\tthis.item = collectibleItem;\r\n\t}", "protected BattleUseItemState useItemState(){\n return new BattleUseItemState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }", "public interface IItem extends IAction {\n\n\t/**\n\t * Additional bag option to handle quantity manifest\n\t * @return bagEmpty\n\t */\n\tpublic abstract boolean depleteItem();\n}", "public Item()\r\n {\r\n // Initialize instance variables\r\n \r\n }", "@Test\n\tpublic void testAddItem() throws IOException{\n\t\tModel.addItem(item, amount + \"\");\n\t\tassertEquals(amount + \"\", Model.hash.get(item));\n\t\t\n\t}", "public void addItem(Item item){\n if(ChronoUnit.DAYS.between(LocalDate.now(), item.getBestBefore()) <= 2){\n //testInfoMessage = true; //ONLY FOR TESTING\n infoMessage(item.getName(), item.getBestBefore()); // DISABLE FOR TESTING\n }\n itemList.add(item);\n totalCost += item.getPrice();\n }", "@Test\r\n\tpublic void testBonusFuerza() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, bonusFuerza, 0, 0, null, null);\r\n\t\t\t\r\n\t\t\tAssert.assertEquals(40, itemDes.getBonusFuerza());\r\n\t\t\t\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}\t\t\r\n\t}", "public Item(Item item) {\n setId(item.getId());\n setName(item.getName());\n setPrice(item.getPrice());\n setWasPurchased(item.wasPurchased());\n setOrder(item.getOrder());\n setStoreName(item.getStoreName());\n }", "@Test\r\n\tpublic void testBonusSalud() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, bonusSalud, 0, 0, 0, 0, null, null);\r\n\t\t\t\r\n\t\t\tAssert.assertEquals(50, itemDes.getBonusSalud());\r\n\t\t\t\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}\t\t\r\n\t}", "Items(){\n}", "public void setComplete(boolean isComplete) { \n this.isComplete = isComplete; \n }", "private GoodsItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Item(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "public Item(int id, String name, String description, ItemType type, double weight, boolean isPickupable, boolean isDropable) {\r\n\t\tthis.id = id;\r\n\t\tthis.name = name;\r\n\t\tthis.description = description;\r\n\t\tthis.type = type;\r\n\t\tthis.pickupable = isPickupable;\r\n\t\tthis.dropable = isDropable;\r\n\t\tthis.weight = weight;\r\n\t\tthis.usable = null;\r\n\t}", "public interface Item {\n\t\n\tboolean isSection();\n\n}", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "private void addValidItem(Item item){\r\n\t\titems.put(item.getItemIdentifier(), item);\r\n\t\ttotal.updateTotal(item);\r\n\t}", "@Test\n public void testUpdatePositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n\n item.setType(ItemTypes.NON_ALCOHOLIC_BEVERAGE);\n itemDao.update(item);\n\n Item itemDB = itemDao.read(item.getName());\n Assert.assertEquals(itemDB, item);\n }", "@Test\n\tpublic void getCostForItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\");\n\t\tassertTrue(Integer.compare(2, fc) == 0);\n\n\t}", "@Test\n\tpublic void testPickUpItem() {\n\t\tSquare square = new Square();\n\t\tItem item = new LightGrenade();\n\t\t\n\t\tsquare.addItem(item);\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tassertEquals(0, player.getAllItems().size());\n\t\tassertFalse(player.hasItem(item));\n\t\t\n\t\tplayer.pickUp(item);\n\t\tassertTrue(player.hasItem(item));\n\t}", "public void setItem(BudgetItemModel item) { model= item;}", "protected Item() {\n }", "@Test\n\tpublic void createItemNotEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp_woonkamer\");\n\t\tSystem.out.println(item);\n\t\tassertNotEquals(new Item(), item);\n\t}", "public FSItem(String itemPath) {\n this.fsItemPath = itemPath;\n this.itemProperties = new FSItemProperties();\n }", "public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}", "@Test\n public void testAddGetItem() throws Exception {\n String itemName = \"Snickers\";\n Item item = new Item(itemName);\n item.setItemPrice(new BigDecimal(\"2.75\"));\n item.setItemStock(10);\n\n // ACT - add/get the item from the DAO\n testDao.addItem(itemName, item);\n Item retrievedItem = testDao.getItem(itemName);\n\n // ASSERT - Check that the data is equal\n assertEquals(item.getItemName(),\n retrievedItem.getItemName(),\n \"Checking Item Name.\");\n assertEquals(item.getItemPrice(),\n retrievedItem.getItemPrice(),\n \"Checking Item Price.\");\n assertEquals(item.getItemStock(),\n retrievedItem.getItemStock(),\n \"Checking Item Stock.\");\n }", "public Item() {\n\t}", "public Item() {\n\t}", "@Test\n void testWriteBoughtItemsList() {\n testWriter.write(list);\n testWriter.close();\n\n // now read them back in and verify that the accounts have the expected values\n try {\n List<Item> items = Reader.readItems(new File(TEST_FILE));\n Item numberOne = items.get(0);\n assertEquals(\"Milk\", numberOne.getName());\n assertEquals(5.99, numberOne.getPrice());\n\n Item numberTwo = items.get(1);\n assertEquals(\"Chicken Dinner\", numberTwo.getName());\n assertEquals(9.99, numberTwo.getPrice());\n\n double budget = Reader.readBudget(new File(TEST_FILE));\n assertEquals(1000, budget);\n } catch (IOException e) {\n fail(\"IOException should not have been thrown\");\n } catch (StringLengthZero | LessThanZeroE stringLengthZero) {\n stringLengthZero.printStackTrace();\n }\n\n\n }" ]
[ "0.749194", "0.65740883", "0.6249775", "0.622501", "0.6129307", "0.612531", "0.60869163", "0.60238266", "0.6022192", "0.5957235", "0.59360117", "0.592256", "0.5910883", "0.5905141", "0.5905141", "0.5874108", "0.58614814", "0.58470315", "0.5808124", "0.5806374", "0.5805959", "0.57859683", "0.5784801", "0.5775058", "0.5773586", "0.57677156", "0.57538486", "0.57538486", "0.5737847", "0.57350427", "0.57164615", "0.5659423", "0.5641762", "0.5628481", "0.5626522", "0.5617802", "0.5614181", "0.5598135", "0.5593111", "0.55836505", "0.55499536", "0.5547507", "0.5544837", "0.554413", "0.5542794", "0.5537216", "0.5533301", "0.55322593", "0.55268645", "0.5519499", "0.55160487", "0.5508174", "0.5508174", "0.5494592", "0.54876333", "0.5487373", "0.54864806", "0.5475728", "0.54754615", "0.5474013", "0.54652", "0.54574525", "0.5452107", "0.54341125", "0.5433281", "0.54286015", "0.5423104", "0.54209626", "0.5416271", "0.5415529", "0.5413633", "0.54081035", "0.539388", "0.5388583", "0.53834796", "0.53736097", "0.5369807", "0.5359386", "0.5357853", "0.5356325", "0.5354406", "0.5349185", "0.53439564", "0.5340373", "0.5333452", "0.5332843", "0.5330666", "0.5328413", "0.53272796", "0.5312731", "0.5311991", "0.53059936", "0.52872115", "0.5286446", "0.5277841", "0.5267924", "0.5260816", "0.5258438", "0.5258438", "0.5252113" ]
0.5988324
9
Create a new item object with the following parameters: Description: "Test Description", Due Date: "20220530", isComplete: "Complete"
@Test void testSetIsComplete() { Item actualResult = new Item("Test Description", "2022-05-30", "Complete"); // Edit the isComplete variable using boolean. actualResult.setIsComplete(false); assertEquals("Incomplete",actualResult.getIsComplete()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createItem (String name, String description, double price);", "public ToDoItem(int _id, String _description, String _date) {\n description = _description;\n id = _id;\n date = calcDate(_date);\n done = false; // Default to not completed\n }", "public TaskItem(String title, String description, String date_string, boolean completion_status)\n {\n\n // PREVENT TASKITEM CREATION IF ILLEGAL TITLE\n if(title.length() < 1)\n {\n throw new IllegalArgumentException(\"Error - Title can not be blank\");\n } // END if\n\n /**************************************************/\n\n // COULD THROW 'DateTimeParseException'\n LocalDate local_date_ref = LocalDate.parse(date_string);\n\n this.task_title = title;\n this.task_description = description;\n this.task_due_date = local_date_ref;\n this.task_completion_boolean = completion_status;\n\n }", "@Test\r\n\tvoid testCreateToDoItem() {\r\n\t\tToDoItem newItem = new ToDoItem(\"Item 1\", \"2/6/21\", 1, \"Body text 1\");\r\n\t\tString correctInfo = \"Name: Item 1\\nDue Date: 2/6/21\\nPriority: High\\nNotes: Body text 1\\nLate: Yes\\nItem Complete: No\";\r\n\r\n\t\tif (!newItem.getAllInfo().equals(correctInfo)) {\r\n\t\t\tfail(\"Error creating ToDoItem\");\r\n\t\t}\r\n\r\n\t}", "@ApiOperation(value = \"Creates a new todo list item.\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"The todo list item has been successfully created.\"),\n @ApiResponse(code = 400, message = \"The data describing the new todo list item is invalid.\"),\n @ApiResponse(code = 500, message = \"An internal error occured while processing the create item request.\")\n })\n @PostMapping(path = \"/items\", consumes = MediaType.APPLICATION_JSON_VALUE)\n public Future<Void> createItem(@ApiParam(value = \"NewItem\", required = true) @RequestBody @Valid final NewItemRepr newItemRepr) {\n final String itemId = IdentifierFactory.getInstance().generateIdentifier();\n final CreateItemCommand createItemCommand = new CreateItemCommand(itemId, newItemRepr.getDescription());\n return commandGateway.send(createItemCommand);\n }", "QuoteItem createQuoteItem();", "public ToDoItem(int _id, String _description) {\n description = _description;\n id = _id;\n date = cal.getTime();\n done = false; // Default to not completed\n }", "ShipmentItem createShipmentItem();", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}", "protected int createItem() throws Exception {\n\t\tString title = etTitle.getText().toString();\r\n\t\tif (title.length() == 0)\r\n\t\t\tthrow new Exception(\"Invalide name\");\r\n\r\n\t\t// Gets the description\r\n\t\tString description = etDescription.getText().toString();\r\n\r\n\t\t// Gets the start date [not null]\r\n\t\tString strStartDate = tvStartDate.getText().toString();\r\n\t\tif (strStartDate.length() == 0)\r\n\t\t\tthrow new Exception(\"Invalide start date\");\r\n\t\tDate startDate = dateFormatter.parse(strStartDate);\r\n\r\n\t\t// Gets the end date\r\n\t\tString strEndDate = tvEndDate.getText().toString();\r\n\t\tDate endDate = null;\r\n\t\tif (strEndDate.length() != 0)\r\n\t\t\tendDate = dateFormatter.parse(strEndDate);\r\n\r\n\t\t// Gets the start location [not null]\r\n\t\tString startLocation = etStartLocation.getText().toString();\r\n\t\tif (startLocation.length() == 0)\r\n\t\t\tthrow new Exception(\"Invalide location\");\r\n\r\n\t\t// Gets the end location\r\n\t\tString endLocation = etEndLocation.getText().toString();\r\n\t\tif (endLocation.length() == 0)\r\n\t\t\tendLocation = null;\r\n\r\n\t\t// Gets the tag\r\n\t\tString strTag = spTag.getSelectedItem().toString();\r\n\r\n\t\t// set values\r\n\t\ttravelItem.setDescription(description);\r\n\t\ttravelItem.setTitle(title);\r\n\t\ttravelItem.setEndLocation(endLocation);\r\n\t\ttravelItem.setStartLocation(startLocation);\r\n\t\ttravelItem.setStartDate(startDate);\r\n\t\ttravelItem.setEndDate(endDate);\r\n\t\ttravelItem.getTag().setTagType(TagType.valueOf(strTag));\r\n\r\n\t\t// Creates or updates the item\r\n\t\tDao<TravelItem, Integer> itemDao = databaseHelper.getTravelItemDao();\r\n\t\tDao<Tag, Integer> tagDao = databaseHelper.getTagDao();\r\n\r\n\t\tLog.i(LOGTAG, travelItem.toString());\r\n\t\titemDao.createOrUpdate(travelItem);\r\n\t\ttagDao.update(travelItem.getTag());\r\n\r\n\t\treturn travelItem.getId();\r\n\t}", "public void addItem(ToDoList item) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(TITLE, item.getTitle());\n values.put(DETAILS, item.getDetails());\n\n db.insert(TABLE_NAME, null, values); //Insert query to store the record in the database\n db.close();\n\n }", "public AgendaItem(String task, Calendar dueDate) {\n this.task = task;\n this.dueDate = dueDate;\n }", "@RequestMapping(value = \"/api/todo-items\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n\tpublic TodoItem createTodoItem(@RequestBody TodoItem todoItem) {\n\n\t\tSystem.out.println(\"Creating new task :\" + todoItem.getDescription());\n\n\t\treturn todoItemService.create(todoItem);\n\t}", "ShipmentItemBilling createShipmentItemBilling();", "public irestads.model.AdsItem create(long adsItemId);", "public Item(String description) {\n this.description = description;\n }", "@Override\r\n\t\tpublic boolean createItem() {\n\t\t\treturn false;\r\n\t\t}", "public void addItem() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter Item Name: \");\n\t\tString itemName = scanner.nextLine();\n\t\tSystem.out.print(\"Enter Item Description: \");\n\t\tString itemDescription = scanner.nextLine();\n\t\tSystem.out.print(\"Enter minimum bid price for item: $\");\n\t\tdouble basePrice = scanner.nextDouble();\n\t\tLocalDate createDate = LocalDate.now();\n\t\tItem item = new Item(itemName, itemDescription, basePrice, createDate);\n\t\taddItem(item);\n\t}", "public void createItem(View view) {\n \t\n String[] temp = getCurrentItemTypes();\n \n Intent intent = new Intent(this, CreateItem.class);\n intent.putExtra(EDIT, \"no\");\n intent.putExtra(TYPES, temp);\n startActivityForResult(intent, 1);\n }", "ListItem createListItem();", "@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "public Item(String itemName, String itemList, String itemNote, int itemNumStocks, String itemExpireDate, int itemID) {\n this.itemName = itemName;\n this.itemList = itemList;\n this.itemNote = itemNote;\n this.itemNumStocks = itemNumStocks;\n this.itemExpireDate = itemExpireDate;\n this.itemID = itemID;\n }", "public static void addNewItem(String itemName,Context context){\n\t\tItem item=new Item();\n\t\titem.updateName(itemName);\n\t\titem.updateCheckmark(false);\n\t\titem.updateArchived(false);\n\t\tItemListController.getItemListInstance().add(item);\n\t\ttodoList.add(itemName);\n\t\tItemListManager.saveListItem(context);\n\t}", "public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }", "void createSportItem (String name, String description, double price, String sportType);", "public NewItems() {\n super();\n }", "private void insertItem() {\n System.out.println(\"What is the priority level of the task: \\n\\tH -> high \\n\\tM -> medium \\n\\tL -> low\");\n char priorityLevel = scanner.next().toUpperCase().charAt(0);\n\n priorityLevel = checkPriorityLevel(priorityLevel);\n Categories category;\n if (priorityLevel == 'H') {\n category = Categories.HIGHPRIORITY;\n } else if (priorityLevel == 'M') {\n category = Categories.MIDPRIORITY;\n } else {\n category = Categories.LOWPRIORITY;\n }\n\n System.out.println(\"Enter the name of the task:\");\n scanner.nextLine();\n String name = scanner.nextLine();\n\n String daysBeforeDue = acceptDaysBeforeDue();\n\n Item item = new Item(name, daysBeforeDue, category);\n toDoList.insert(item);\n System.out.println(\"Added successfully!\");\n\n System.out.println(\"Updated to-do list:\");\n viewList();\n }", "@Test\n public void TestIntakeDiaryItem() {\n String id = \"1233\";\n String name = \"Nicotine\";\n String type = \"Narcotic\";\n String dose = \"10\";\n Timestamp dateTime = Timestamp.now();\n\n IntakeDiaryItem item = new IntakeDiaryItem(id, name, type, dose, dateTime);\n\n assertEquals(id, item.getId());\n assertEquals(name, item.getName());\n assertEquals(type, item.getType());\n assertEquals(dose, item.getDose());\n assertEquals(dateTime, item.getDateTime());\n }", "public OrderItem() {}", "@Test \n\tpublic void saveItemTest() throws Exception {\n\t\tItemDTO aItemDto = catalogService.createItem(itemDto);\n\t\tassertNotNull(aItemDto);\n\t\tassertEquals(itemDto,aItemDto);\n\t}", "@Override\n\tpublic boolean create(Item obj) {\n\t\ttry{\n\t\t\tString query=\"INSERT INTO items(title, start_date, end_date, type) VALUES(?,?,?,?)\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n\t\t\tstate.setString(1, obj.getTitle());\n\t\t\tstate.setDate(2, obj.getStartDate());\n\t\t\tstate.setDate(3, obj.getEndDate());\n\t\t\tstate.setInt(4, obj.getItemType().getIndex());\n\t\t\t\n\t\t\t// Run the query\n\t\t\tstate.executeUpdate();\n\t\t\t\n\t\t\t// Update of the index (should be 0 up to this point)\n\t\t\tResultSet genKey = state.getGeneratedKeys();\n\t\t\tif (genKey.next()){\n\t\t\t\tobj.setIndex(genKey.getInt(1));\n\t\t\t};\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.create -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "InvoiceItem addInvoiceItem(InvoiceItem invoiceItem);", "private boolean finalizeItemCreation() {\n String itemName = nameField.getText().toString();\n\n // Names must be unique, check to see if it exists\n if(database.checkItemInDB(itemName))\n return false;\n\n // Process Item contents\n item.set_ITEM_NAME(itemName);\n item.set_ITEM_DESC(descField.getText().toString());\n item.set_ITEM_ACCESS(datetime);\n item.set_ITEM_CREATED(datetime);\n item.set_ITEM_VIEW_CNT(0);\n\n boolean success = database.addNewItemToDB(item);\n return success;\n }", "public void addItem(Item item){\n if(ChronoUnit.DAYS.between(LocalDate.now(), item.getBestBefore()) <= 2){\n //testInfoMessage = true; //ONLY FOR TESTING\n infoMessage(item.getName(), item.getBestBefore()); // DISABLE FOR TESTING\n }\n itemList.add(item);\n totalCost += item.getPrice();\n }", "public Item(){\n description = \"No description avaible for this item\";\n weight = 0;\n }", "@Override\r\n\tpublic OrderItem createOrderItem(OrderItem newOrderItem) {\n\t\tSession session = SessionFactorySingleton.getSessionFactory().getFactorySession();\r\n\t\tsession.save(newOrderItem);\r\n\t\treturn newOrderItem;\r\n\r\n\t}", "@Test\n @Transactional\n public void createOrderItem() throws Exception {\n assertThat(orderItemRepository.findAll()).hasSize(0);\n\n // Create the OrderItem\n restOrderItemMockMvc.perform(post(\"/api/orderItems\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(orderItem)))\n .andExpect(status().isCreated());\n\n // Validate the OrderItem in the database\n List<OrderItem> orderItems = orderItemRepository.findAll();\n assertThat(orderItems).hasSize(1);\n OrderItem testOrderItem = orderItems.iterator().next();\n assertThat(testOrderItem.getBudget_id()).isEqualTo(DEFAULT_BUDGET_ID);\n assertThat(testOrderItem.getBudgetItem_id()).isEqualTo(DEFAULT_BUDGET_ITEM_ID);\n assertThat(testOrderItem.getProductFeadute_id()).isEqualTo(DEFAULT_PRODUCT_FEADUTE_ID);\n assertThat(testOrderItem.getQuote_id()).isEqualTo(DEFAULT_QUOTE_ID);\n assertThat(testOrderItem.getQuoteItem_id()).isEqualTo(DEFAULT_QUOTE_ITEM_ID);\n assertThat(testOrderItem.getQuantity()).isEqualTo(DEFAULT_QUANTITY);\n assertThat(testOrderItem.getUnitPrice()).isEqualTo(DEFAULT_UNIT_PRICE);\n assertThat(testOrderItem.getUnitListPrice()).isEqualTo(DEFAULT_UNIT_LIST_PRICE);\n assertThat(testOrderItem.getUnitAverageCost()).isEqualTo(DEFAULT_UNIT_AVERAGE_COST);\n assertThat(testOrderItem.getEstimatedDeliveryDate().toDateTime(DateTimeZone.UTC)).isEqualTo(DEFAULT_ESTIMATED_DELIVERY_DATE);\n assertThat(testOrderItem.getItemDescription()).isEqualTo(DEFAULT_ITEM_DESCRIPTION);\n assertThat(testOrderItem.getCorrespondingPo_id()).isEqualTo(DEFAULT_CORRESPONDING_PO_ID);\n }", "@PostMapping(\"/items\")\n public ResponseEntity<Items> createItems(@RequestBody Items items) throws URISyntaxException {\n log.debug(\"REST request to save Items : {}\", items);\n if (items.getId() != null) {\n throw new BadRequestAlertException(\"A new items cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Items result = itemsRepository.save(items);\n return ResponseEntity.created(new URI(\"/api/items/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "WithCreate withDescription(String description);", "WithCreate withDescription(String description);", "public void create(RecognizedItem item, SketchBook model) {\n }", "private void addTask(ToDoList toDoList, JSONObject jsonObject) {\n String name = jsonObject.getString(\"title\");\n LocalDate dueDate = LocalDate.parse(jsonObject.getString(\"dueDate\"));\n boolean complete = jsonObject.getBoolean(\"complete\");\n boolean important = jsonObject.getBoolean(\"important\");\n Task newTask = new Task(name, dueDate);\n newTask.setComplete(complete);\n newTask.setImportant(important);\n\n toDoList.addTask(newTask);\n }", "public @NotNull Item newItem();", "public void setCreateDateItem(String createDateItem) {\n this.createDateItem = createDateItem;\n }", "@Test\n\tpublic void givenCreateItem_whenValidRecord_ThenSuccess() {\n\t\tHashMap<String, Object> newRecord = getRecordHashMap(20, \"Steak\", \"Meats\", 15.5f);\n\n\t\t// create a new record and extract the ID from the response\n\t\tInteger newId = given().\n\t\t\tcontentType(ContentType.JSON).\n\t\t\tbody(newRecord).\n\t\twhen().\n\t\t\tpost(\"/\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.CREATED.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().\n\t\t\tpath(\"id\");\n\n\t\tnewRecord = setRecordId(newRecord, newId);\n\n\t\t// verify that the new record is created\n\t\tHashMap<String, Object> actual = given().\n\t\t\tpathParam(\"id\", newId).\n\t\twhen().\n\t\t\tget(\"/{id}\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.OK.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().path(\"$\");\n\n\t\tassertThat(newRecord).isEqualTo(actual);\n\n\t}", "@Test\n void createOrderItemWithExistingId() throws Exception {\n orderItem.setId(1L);\n\n int databaseSizeBeforeCreate = orderItemRepository.findAll().collectList().block().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n webTestClient\n .post()\n .uri(ENTITY_API_URL)\n .contentType(MediaType.APPLICATION_JSON)\n .bodyValue(TestUtil.convertObjectToJsonBytes(orderItem))\n .exchange()\n .expectStatus()\n .isBadRequest();\n\n // Validate the OrderItem in the database\n List<OrderItem> orderItemList = orderItemRepository.findAll().collectList().block();\n assertThat(orderItemList).hasSize(databaseSizeBeforeCreate);\n }", "public ToDo(String title, String description, double price, String contact,\n ArrayList<String> supplies) {\n this.title = title;\n this.description = description;\n this.price = price;\n this.contact = contact;\n this.supplies = supplies;\n }", "protected abstract void makeItem();", "public Item() \r\n\t{\r\n\t\tname = \"AbstractItem\";\r\n\t\tdescription = \"Example Item Generated\";\r\n\t\tprice = 0;\r\n\t}", "protected abstract Item createTestItem1();", "Item(String name, String description, String userRequirements, int amount, Condition condition, boolean reservable, int locationID) {\n this.name = name;\n this.description = description;\n this.userRequirements = userRequirements;\n this.ID = nextID;\n nextID++;\n this.amount = amount;\n this.condition = condition;\n this.reservable = reservable;\n this.locationID = locationID;\n }", "public ToDo(String title, String description, double price, String contact, ArrayList<String> supplies) {\n super();\n this.title = title;\n this.description = description;\n this.price = price;\n this.contact = contact;\n this.supplies = supplies;\n }", "public Data(String itemId, String itemDescription) {\n this.itemId = itemId;\n this.itemDescription = itemDescription;\n }", "@Test\n public void testCreateAndReadPositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n Assert.assertNotNull(itemDao.read(item.getName()));\n }", "public void insertItemDetails(String itemName, Integer quantityOfItem, Double rateOfItem);", "public long createToDo(String title, String name, String surname, String borndate, String city, String street, String number, String email, String phone, String gender, String attribute, int clientId, int status) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(FeedEntry.COLUMN_TITLE, title);\r\n values.put(FeedEntry.COLUMN_NAME,name);\r\n values.put(FeedEntry.COLUMN_SURNAME,surname);\r\n values.put(FeedEntry.COLUMN_BORNDATE,borndate);\r\n values.put(FeedEntry.COLUMN_CITY,city);\r\n values.put(FeedEntry.COLUMN_STREET,street);\r\n values.put(FeedEntry.COLUMN_NUMBER,number);\r\n values.put(FeedEntry.COLUMN_EMAIL,email);\r\n values.put(FeedEntry.COLUMN_PHONE,phone);\r\n values.put(FeedEntry.COLUMN_GENDER,gender);\r\n values.put(FeedEntry.COLUMN_ATTRIBUTE, attribute);\r\n values.put(FeedEntry.COLUMN_CLIENT_ID, clientId);\r\n values.put(FeedEntry.COLUMN_CLIENT_STATUS, status);\r\n // insert row\r\n\r\n long todo_id = db.insert(FeedEntry.TABLE_NAME, null, values);\r\n\r\n return todo_id;\r\n }", "private void setItem(){\n item = new String[4];\n item[0] = title;\n item[1] = DueDate;\n item[2] = Description;\n item[3] = \"incomplete\";\n }", "@Override\n\t@Transactional(enabled = false)\n\tpublic ItemPublicacao createItemPublicacao(long itemPublicacaoId) {\n\t\treturn itemPublicacaoPersistence.create(itemPublicacaoId);\n\t}", "@Test\n void testToString() {\n // Create a new item object with the following parameters:\n // Description: \"Test Description\", Due Date: \"2022-05-30\", isComplete: \"Complete\"\n Item actualResult = new Item(\"Test Description\", \"2022-05-30\", \"Complete\");\n // Then assertEquals to see if the actual string equals \"Test Description,2022-05-30,Complete\"\n assertEquals(\"Test Description,2022-05-30,Complete\", actualResult.toString());\n }", "public void addToList(View view) {\n Items newItem = new Items();\n EditText ETNew = (EditText) findViewById(R.id.ETNew);\n newItem.todo = ETNew.getText().toString();\n newItem.done = false;\n helper.create(newItem);\n Toast.makeText(this, \"Item added\", Toast.LENGTH_SHORT).show();\n adaptList2();\n ETNew.setText(\"\");\n ETNew.setHint(\"my new to-do\");\n }", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "public void testCreateItemrWithInvalidValues() throws Exception {\n try {\r\n \titemService.insertItem(null, null, null, null, null);\r\n fail(\"Object with null parameter should not be created\");\r\n } catch (ItemInsertException e) {\r\n }\r\n\r\n // Creates an object with empty values\r\n try {\r\n \titemService.insertItem(new String(), new String(), new String(), new String(), new String());\r\n fail(\"Object with empty values should not be created\");\r\n } catch (ItemInsertException e) {\r\n }\r\n\t\t\r\n\t\t// Creates an object with invalid User\r\n try {\r\n \titemService.insertItem(\"name\", \"description\", \"1.0\", \"Informatique\", \"0\");\r\n fail(\"Object with invalid user should not be created\");\r\n } catch (ItemInsertException e) {\r\n }\r\n\r\n }", "public ItemRecord(String itemid, String productid, BigDecimal listprice, BigDecimal unitcost, Integer supplier, String status, String attr1, String attr2, String attr3, String attr4, String attr5) {\n super(Item.ITEM);\n\n set(0, itemid);\n set(1, productid);\n set(2, listprice);\n set(3, unitcost);\n set(4, supplier);\n set(5, status);\n set(6, attr1);\n set(7, attr2);\n set(8, attr3);\n set(9, attr4);\n set(10, attr5);\n }", "@PostMapping(\"\")\n public ResultEntity<String> addItem(@RequestBody NewItemRequest item, Principal principal) {\n return itemService.addItem(new Item(item, ConstantUtil.TYPE_SALE_RENT, principal.getName()));\n }", "private ToDoItem parseToDoItem(HashMap<String, String> mappingTable) {\n Integer id = Integer.parseInt(mappingTable.get(\"id\"));\n\n String text = mappingTable.get(\"text\");\n ToDoItem.Builder builderOptions = new Builder(id,text);\n\n boolean completed = Boolean.parseBoolean(mappingTable.get(\"completed\"));\n if (completed) builderOptions.complete();\n\n LocalDate due = null;\n String date = mappingTable.get(\"due\");\n if (date != null) {\n //Date Format: MM/DD/YYYY\n String[] dates = date.split(\"/\");\n due = LocalDate\n .of(Integer.parseInt(dates[2]), Integer.parseInt(dates[0]),\n Integer.parseInt(dates[1]));\n builderOptions.setDueDate(due);\n }\n\n if (mappingTable.get(\"priority\") != null) {\n int priority = Integer.parseInt(mappingTable.get(\"priority\"));\n builderOptions.setPriority(priority);\n }\n\n if (mappingTable.get(\"category\") != null) {\n String category = mappingTable.get(\"category\");\n builderOptions.setCategory(category);\n }\n\n return builderOptions.build();\n }", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "public Item() {}", "static public ApplicationFormItem createNew(int id, String shortname, boolean required, ApplicationFormItemType type,\n\t\t\t\t\t\t\t\t\t\t\t\tString federationAttribute, String perunSourceAttribute, String perunDestinationAttribute, String regex,\n\t\t\t\t\t\t\t\t\t\t\t\tList<Application.ApplicationType> applicationTypes, Integer ordnum, boolean forDelete)\t{\n\t\tApplicationFormItem afi = new JSONObject().getJavaScriptObject().cast();\n\t\tafi.setId(id);\n\t\tafi.setShortname(shortname);\n\t\tafi.setRequired(required);\n\t\tafi.setType(type);\n\t\tafi.setFederationAttribute(federationAttribute);\n\t\tafi.setPerunSourceAttribute(perunSourceAttribute);\n\t\tafi.setPerunDestinationAttribute(perunDestinationAttribute);\n\t\tafi.setRegex(regex);\n\t\tafi.setApplicationTypes(applicationTypes);\n\t\tafi.setOrdnum(ordnum);\n\t\tafi.setForDelete(forDelete);\n\t\treturn afi;}", "@Override\n\tpublic void createItem(Object result) {\n\t\t\n\t\tunloadform();\n\t\tif (result != null) {\n\t\t\tIOTransactionLogic tr = (IOTransactionLogic) result;\n\t\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\t\tint month = Calendar.getInstance().get(Calendar.MONTH);\n\t\t\t\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTime(tr.getDate());\n\t\t\tint trYear = cal.get(Calendar.YEAR);\n\t\t\tint trMonth = cal.get(Calendar.MONTH);\n\t\t\t\n\t\t\tif ((year == trYear) && (month == trMonth)\n\t\t\t\t\t&& tr.getBankAccountID() == bal.getId()) {\n\t\t\t\ttransactionDisplayer trDisplayer = new transactionDisplayer(tr);\n\t\t\t\tsetDataLineChart();\n\t\t\t\tsetDataPieChart();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public Item(String initName, String itemDesc)\n {\n // initialise instance variables\n name = initName;\n desc = itemDesc;\n }", "@Test\n public void testCreatePurchaseOrder() throws Exception {\n System.out.println(\"createPurchaseOrder\");\n Long factoryId = 1L;\n Long contractId = 2L;\n Double purchaseAmount = 4D;\n Long storeId = 2L;\n String destination = \"store\";\n Calendar deliveryDate = Calendar.getInstance();\n deliveryDate.set(2015, 0, 13);\n Boolean isManual = false;\n Boolean isToStore = true;\n PurchaseOrderEntity result = PurchaseOrderManagementModule.createPurchaseOrder(factoryId, contractId, purchaseAmount, storeId, destination, deliveryDate, isManual, isToStore);\n assertNotNull(result);\n }", "protected abstract Item createTestItem3();", "@attribute(value = \"\", required = false)\r\n\tpublic void addItem(Item i) {\r\n\t}", "public DessertItem() {\n this(\"\");\n }", "public Item(){}", "@Test(dependsOnMethods = \"checkSiteVersion\")\n public void createNewOrder() {\n actions.openRandomProduct();\n\n // save product parameters\n actions.saveProductParameters();\n\n // add product to Cart and validate product information in the Cart\n actions.addToCart();\n actions.goToCart();\n actions.validateProductInfo();\n\n // proceed to order creation, fill required information\n actions.proceedToOrderCreation();\n\n // place new order and validate order summary\n\n // check updated In Stock value\n }", "public FlyerFeaturedItem() {}", "@Test\n public void testAddItem() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input).init(tracker);;\n\n for (Item item : tracker.getAll()) {\n if (item != null) {\n Assert.assertEquals(item.getName(), name);\n }\n }\n\n }", "protected abstract Item createTestItem2();", "public Item(String id, String description) {\r\n\t\tthis.id = id;\r\n\t\tthis.description = description;\r\n\t\r\n\t}", "void create(Order order);", "public PurchaseOrderItem () {\n\t\tsuper();\n\t}", "@Test\n\tpublic void createItemEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp\");\n\t\tSystem.out.println(item);\n\t\tassertEquals(new Item(), item);\n\t}", "private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}", "public Todo create(long todoId);", "public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);", "@Test\n\tpublic void createItemNotEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp_woonkamer\");\n\t\tSystem.out.println(item);\n\t\tassertNotEquals(new Item(), item);\n\t}", "public Item(String itemName, double itemPrice, int numPurchased)\n {\n \tname = itemName;\n \tprice = itemPrice;\n \tquantity = numPurchased;\n }", "CollectionItem createCollectionItem();", "public ItemInfo () {}", "public void createToDoTask(String toDoName, String categoryName, String dueDate) throws Exception {\n getLogger().info(\"Create To Do Task with 'toDoName'\");\n WebElement engagmentTitle = getDriver().findElement(By.xpath(\"//*[@id='a-header-title']\"));\n System.out.println(\"engagmentTitle Value: \" + engagmentTitle.getAttribute(\"value\"));\n waitForVisibleElement(createToDoBtnEle, \"Create To Do Button\");\n String rowString = toDoTaskRowEle.get(0).getAttribute(\"class\");\n int size = 1;\n int index = -1;\n if (!rowString.equals(\"\")) {\n size = toDoTaskRowEle.size() + 1;\n index = findToDoTaskName(toDoName);\n System.out.println(\"Index Create: \" + index);\n }\n if (index == -1) {\n getLogger().info(\"Create New To Do Task\");\n waitForVisibleElement(createToDoBtnEle, \"Create To Do Button\");\n clickElement(createToDoBtnEle, \"Create To Do button\");\n waitForSizeListElementChanged(toDoTaskRowEle, \"To Do task row\", size);\n sendKeyTextBox(toDoNameTextColumnEle.get(0), toDoName, \"First To Do Name textbox\");\n sendTabkey(toDoNameTextColumnEle.get(0), \"First To Do Name textbox\");\n // Create new category\n createNewCategory(\"\");\n NXGReports.addStep(\"Create To Do Task\", LogAs.PASSED, null);\n }\n }", "private void addNewAssessment() {\n //instantiate converters object for LocalDate conversion\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n String status = editTextAssessmentStatus.getText().toString();\n String note = editTextAssessmentNote.getText().toString();\n String type = editTextAssessmentType.getText().toString();\n\n if (title.trim().isEmpty() || dueDate == null || status.trim().isEmpty() || type.trim().isEmpty()) {\n Toast.makeText(this, \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //instantiate Assessment object\n Assessment assessment = new Assessment(courseId, title, dueDate, status, note, type);\n\n //add new assessment\n addEditAssessmentViewModel.insert(assessment);\n\n //notification\n Long longDue = c.localDateToMilliseconds(dueDate);\n makeAlarm(title+\" is due today.\", longDue);\n\n finish();\n }", "public Item newItem() {\n\t\tItem page = new Item();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\tpage.setWpWeight(0);\r\n\t\treturn page;\r\n\t}", "@Test\r\n public void testPesquisaDescricao() {\r\n TipoItem item = new TipoItem();\r\n \r\n item.setDescricao(\"tipoItemDescrição\");\r\n TipoItemRN rn = new TipoItemRN();\r\n rn.salvar(item);\r\n \r\n assertTrue(\"tipoItemDescrição\", true);\r\n }", "public Item createFromParcel(Parcel source) {\n Item item = new Item();\n item.name = source.readString(); \n item.description = source.readString(); \n item.type = source.readString(); \n item.value = source.readString(); \n return item; \n }", "public RequestForQuotation addRequest(Set<Supplier> supplierList, Date deadline, int quantity, Item item){\n Date today = new Date();\n RequestForQuotation rfq = new RequestForQuotation();\n \n for(Supplier s:supplierList){\n s = em.find(Supplier.class, s.getSupplierId());\n\n rfq.getSuppliers().add(s);\n }\n \n rfq.setDeadline(new java.sql.Date(deadline.getTime()));\n rfq.setDateRequested(new java.sql.Date(today.getTime()));\n rfq.setStatus(\"Open\");\n rfq.setQuantity(quantity);\n rfq.setItem(item);\n em.persist(rfq);\n em.flush();\n \n return rfq;\n }", "public void registry(TodoItemForm todoItemForm) throws RecordNotFoundException {\n TodoItem todoItem = new TodoItem();\n if (todoItemForm.getId() != null) {\n todoItem = getTodoItemById(todoItemForm.getId());\n }\n todoItem.setItemName(todoItemForm.getItemName());\n todoItem.setDescription(todoItemForm.getDescription());\n todoItem.setTargetDate(Util.strToDt(todoItemForm.getTargetDate()));\n\n todoItemRepository.save(todoItem);\n }", "public static Item create(long itemId) {\n\t\treturn getPersistence().create(itemId);\n\t}" ]
[ "0.6967462", "0.69639635", "0.6759315", "0.67505205", "0.6736143", "0.6706613", "0.66447026", "0.65748775", "0.65412754", "0.6491864", "0.63848984", "0.6375977", "0.62986326", "0.62984645", "0.6260598", "0.6233561", "0.6172947", "0.61412513", "0.61379385", "0.61245", "0.6123527", "0.6096194", "0.6081592", "0.60508025", "0.6033071", "0.5995412", "0.5993617", "0.5978822", "0.5971639", "0.5959216", "0.5957584", "0.59221625", "0.5920748", "0.59082544", "0.59021276", "0.5901524", "0.5896058", "0.5888081", "0.58830595", "0.5874683", "0.58709496", "0.58709496", "0.585646", "0.58386266", "0.58361506", "0.5831865", "0.5825241", "0.5822718", "0.58066547", "0.57749856", "0.57681257", "0.5764879", "0.57581073", "0.57542545", "0.57488334", "0.57435864", "0.5742518", "0.57312053", "0.57301784", "0.57241327", "0.5715118", "0.57149523", "0.57082", "0.5706433", "0.5693333", "0.5689518", "0.5688121", "0.5682798", "0.5676275", "0.5674693", "0.56684667", "0.5645955", "0.5640915", "0.5637821", "0.56360966", "0.5633895", "0.5625343", "0.56233937", "0.56233054", "0.5601285", "0.55791414", "0.5575655", "0.556748", "0.5563934", "0.5559611", "0.5557589", "0.5552272", "0.55507874", "0.5550438", "0.5545211", "0.55428237", "0.55406487", "0.5537342", "0.55302256", "0.5524711", "0.5522147", "0.5518829", "0.5517434", "0.5517323", "0.5511594" ]
0.6189852
16
Describes the internal file system contained in .doc files.
public interface BlockFileSystem { /** * The size of a block in bytes. */ int BLOCK_SIZE = 512; /** * Returns the root entry of the file system. Subfiles and directories * can be found by searching the returned entry. * * @return the root entry * @throws IOException if an IO error occurs */ public abstract Entry getRoot() throws IOException; /** * Returns the number of the block that follows the given block. * The internal block allocation tables are consulted to determine the * next block. A return value that is less than zero indicates that * there is no next block. * * @param block the number of block whose successor to return * @return the successor of that block * @throws IOException if an IO error occurs */ public abstract int getNextBlock(int block) throws IOException; /** * Returns the raw input stream for this file system. * Typically this will be the random access file containing the .doc. * * @return the raw input stream for this file system */ public abstract SeekInputStream getRawInput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getDescription() {\n return \"Text documents (*.xml)\";\n }", "List<File> getSystemDescriptionFiles();", "public void fileOpened(OpenDefinitionsDocument doc) { }", "public void fileOpened(OpenDefinitionsDocument doc) { }", "public String getDescription() {\n\t\t\treturn \"ROOT file or list of ROOT files (*.root, *.list)\";\n\t\t}", "public String getDescription() {\n return \"Text file (.text)\";\n }", "public FileDesc getFileDesc();", "private void odfContentList(Document document) {\n\t\t// mimetype\n\t\t// content\n\t\t// styles\n\t\t// meta\n\t\t// settings\n\t\t// META-INF/manifest - this thing should tell us what is in the document\n\t\t// Versions\n\t\t// Thumbnails\n\t\t// Pictures\n\n\t\tOdfPackage pkg = document.getPackage();\n\n\t\tfor (String file : pkg.getFilePaths()) {\n\t\t\tif (file != null)\n\t\t\t\tfilePaths.add(file);\n\t\t}\n\n\t}", "public String getDescription() {\n return \"XML Files\";\n }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public String getInoDocname();", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public String getDescription() {\r\n return \"XML Files (*.xml)\";\r\n }", "private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}", "public String getDocumentInfo() {\n MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());\n return dt.getName() + \" \" + getDocumentNo();\n }", "public String getDocinfo() {\n return docinfo;\n }", "public manageDoc() {\r\r\r\n\r\r\r\n }", "public interface WordInte {\n\n /**\n *\n * Se crea este metodo para realizar la escritura de un archivo en word,\n * apartir de un formato o plantilla existente en formato DOT.\n *\n * @param pathPlan ruta de la plantilla\n * @param pathDeex ruta destino donde se va almacenar resultado de la \n * plantilla.\n * @param pathFida ruta del archivo de datos que se van agregar en la \n * plantilla.\n * @param separato separador que se usa para identificar las columnas en el\n * archivo de datos\n *\n * @throws Exception indica que el metodo genera excepciones que deben ser\n * capturadas para identificar cuando la misma no funcione bien.\n */\n public void writDOT(String pathPlan, String pathDeex, String pathFida, String separato) throws Exception; \n \n /***\n * Metodo para realizar la compresion de un directorio que se pase por parametro.\n * @param pathDire ruta del directorio\n * @throws Exception genera la excepcion.\n */\n public void compDire(String pathDire) throws Exception; \n \n \n}", "private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}", "public interface DocumentDefinition extends NodeDefinition {\n\n String getContentPath();\n\n String getMimeType();\n\n String getEncoding();\n}", "public abstract ModuleDoc doc();", "public String getFiledesc() {\n return filedesc;\n }", "private static interface DefDocumentProcessor\n\t{\n\t\t/**\n\t\t * Called for every element found during processing of the s.t.\n\t\t * path.\n\t\t * @param documentPath an abstract pathname of the document\n\t\t * @throws XMLFormatException if document appears to be corrupted\n\t\t */\n\t\tvoid processElement(File documentPath) \n\t\t\tthrows XMLFormatException;\n\t}", "public void generarDoc(){\n generarDocP();\n }", "@Override\n\tpublic Object visit(ASTDoc node, Object data) {\n\t\tSystem.out.print(\"doc(\" + node.fileName + \")\");\n\t\treturn null;\n\t}", "public void read() {\n\t\tSystem.out.println(\"word document\");\r\n\t}", "@Override\r\n\tpublic String getDescription() {\r\n\t\treturn \"Image Files\";\r\n\t}", "@Override\n\tpublic void openDocument(String path, String name) {\n\t\t\n\t}", "public File getDisplayDocument() {\n\t\tswitch (type) {\n\t\t\tcase SOURCE : return doc.getSourceDocument();\n\t\t\tcase TARGET : return doc.getWorkingDocument();\n\t\t}\n\t\treturn null;\n\t}", "private static void printDocumentation() {\n\t\tSystem.out\n\t\t\t\t.println(\"********************************************************************\");\n\t\tSystem.out.println(\"*** Wikidata Toolkit: Dump Processing Example\");\n\t\tSystem.out.println(\"*** \");\n\t\tSystem.out\n\t\t\t\t.println(\"*** This program will download and process dumps from Wikidata.\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** It will print progress information and some simple statistics.\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** Downloading may take some time initially. After that, files\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** are stored on disk and are used until newer dumps are available.\");\n\t\tSystem.out\n\t\t\t\t.println(\"*** You can delete files manually when no longer needed (see \");\n\t\tSystem.out\n\t\t\t\t.println(\"*** message below for the directory where files are found).\");\n\t\tSystem.out\n\t\t\t\t.println(\"********************************************************************\");\n\t}", "String getDocumentation();", "String getDocumentation();", "public String getDescription() {\n return \"image files or directory\";\n }", "@Override\n public String getServletInfo() {\n return \"Adds document\";\n }", "public HPBFDocument(POIFSFileSystem fs) throws IOException {\n\t this(fs.getRoot());\n\t}", "public OpenDefinitionsDocument getDocument() { return _document; }", "@Override\r\n\tpublic String getDocumentInfo() {\n\t\treturn null;\r\n\t}", "@Override\n public String getDescription() {\n return \"(*.txt) (*.avro) (*.json) (*.text) (*.seqjson) (*.seqfile)\";\n }", "public void openDocument(L documentLocation) throws IOException;", "public interface IDocument {\n /**\n * Returns the content of the document, in a byte array.\n */\n byte[] getByteContent() throws IOException;\n /**\n * Returns the content of the document, in a char array.\n */\n char[] getCharContent() throws IOException;\n /**\n * returns the name of the document (e.g. its path for a <code>File</code>, or its relative path\n * in the workbench for an <code>IFile</code>).\n */\n String getName();\n /**\n * returns the value of the given property, or null if this document does not have\n * such a property.\n */\n String getProperty(String property);\n /**\n * Returns an enumeration of the names of the properties the document has.\n */\n java.util.Enumeration getPropertyNames();\n /**\n * Returns the content of the document, as a String.\n */\n public String getStringContent() throws IOException;\n /**\n * Returns the type of the document.\n */\n String getType();\n /**\n * Sets the given property of the document to the given value.\n */\n void setProperty(String attribute, String value); }", "public abstract Iterable<String> addDocument(TextDocument doc) throws IOException;", "public static String getDoc() {\n return doc;\n }", "private void getDemographicFiles(Uin uinObject, List<DocumentsDTO> documents) {\n\t\tuinObject.getDocuments().stream().forEach(demo -> {\n\t\t\ttry {\n\t\t\t\tString fileName = DEMOGRAPHICS + SLASH + demo.getDocId();\n\t\t\t\tLocalDateTime startTime = DateUtils.getUTCCurrentDateTime();\n\t\t\t\tbyte[] data = securityManager\n\t\t\t\t\t\t.decrypt(IOUtils.toByteArray(fsAdapter.getFile(uinObject.getUinHash(), fileName)));\n\t\t\t\tmosipLogger.debug(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES,\n\t\t\t\t\t\t\"time taken to get file in millis: \" + fileName + \" - \"\n\t\t\t\t\t\t\t\t+ Duration.between(startTime, DateUtils.getUTCCurrentDateTime()).toMillis() + \" \"\n\t\t\t\t\t\t\t\t+ \"Start time : \" + startTime + \" \" + \"end time : \"\n\t\t\t\t\t\t\t\t+ DateUtils.getUTCCurrentDateTime());\n\t\t\t\tif (demo.getDocHash().equals(securityManager.hash(data))) {\n\t\t\t\t\tdocuments.add(new DocumentsDTO(demo.getDoccatCode(), CryptoUtil.encodeBase64(data)));\n\t\t\t\t} else {\n\t\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES,\n\t\t\t\t\t\t\tIdRepoErrorConstants.DOCUMENT_HASH_MISMATCH.getErrorMessage());\n\t\t\t\t\tthrow new IdRepoAppException(IdRepoErrorConstants.DOCUMENT_HASH_MISMATCH);\n\t\t\t\t}\n\t\t\t} catch (IdRepoAppException e) {\n\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, \"\\n\" + e.getMessage());\n\t\t\t\tthrow new IdRepoAppUncheckedException(e.getErrorCode(), e.getErrorText(), e);\n\t\t\t} catch (FSAdapterException e) {\n\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, \"\\n\" + e.getMessage());\n\t\t\t\tthrow new IdRepoAppUncheckedException(\n\t\t\t\t\t\te.getErrorCode().equals(HDFSAdapterErrorCode.FILE_NOT_FOUND_EXCEPTION.getErrorCode())\n\t\t\t\t\t\t\t\t? IdRepoErrorConstants.FILE_NOT_FOUND\n\t\t\t\t\t\t\t\t: IdRepoErrorConstants.FILE_STORAGE_ACCESS_ERROR,\n\t\t\t\t\t\te);\n\t\t\t} catch (IOException e) {\n\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, \"\\n\" + e.getMessage());\n\t\t\t\tthrow new IdRepoAppUncheckedException(IdRepoErrorConstants.FILE_STORAGE_ACCESS_ERROR, e);\n\t\t\t}\n\t\t});\n\t}", "Documentation createDocumentation();", "Documentation createDocumentation();", "public static SymbolDocumentInfo symbolDocument(String filename, UUID language, UUID vendor, UUID documentType) { throw Extensions.todo(); }", "public void ach_doc_type_txt_test () {\n\t\t\n\t}", "public ETSDocFile[] getEtsDocFile() {\n\t\treturn etsDocFile;\n\t}", "public List<IDoc> getDocs();", "public List<IDoc> getDocs();", "public interface FileView {\n\n /**\n * 设置标题\n * @param preText 前标题\n * @param nowText 现标题\n */\n void setTitle(String preText, String nowText);\n\n /**\n * 给列表设置适配器\n * @param adapter 适配器\n */\n void setAdapter(DocumentFileAdapter adapter);\n\n /**\n * 获取适配器\n * @return 适配器\n */\n DocumentFileAdapter getAdapter();\n\n /**\n * 设置刷新条\n * @param b 设置控制\n */\n void setRefreshing(boolean b);\n\n /**\n * 显示密码框\n */\n void showPasswordView();\n\n /**\n * u盘插入的操作\n * @param intent\n */\n void onUDiskInsert(Intent intent);\n\n /**\n * u盘移除的操作\n * @param intent\n */\n void onUDiskRemove(Intent intent);\n}", "public static SymbolDocumentInfo symbolDocument(String fileName, UUID language) { throw Extensions.todo(); }", "public void setInoDocname(String pDocname);", "public abstract TextDocument getTextDocumentFromFile(String path) throws FileNotFoundException, IOException;", "private void createDocWords() {\n\t\tArrayList<DocWords> docList=new ArrayList<>();\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\docWords.txt\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\" \");\n\t\t\t\tDocWords docWords=new DocWords();\n\t\t\t\tdocWords.setDocName(parts[0].replace(\".txt\", \"\"));\n\t\t\t\tdocWords.setCount(Float.parseFloat(parts[1]));\n\t\t\t\tdocList.add(docWords);\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertDocWords(docList);\n\t}", "abstract public TermDocs termDocs(Term t) throws IOException;", "@Override\n\t\t\tpublic String getDescription() {\n\t\t\t\treturn \"*.dat file\";\n\t\t\t}", "private void getDocumentation(Document doc, SemSimModel semsimmodel){\n\t\tElement docel = doc.getRootElement().getChild(\"documentation\", RDFNamespace.DOC.createJdomNamespace());\n\t\tif(docel!=null){\n\t\t\tString text = getUTFformattedString(xmloutputter.outputString(docel));\n\t\t\tsemsimmodel.addAnnotation(new Annotation(SemSimRelations.SemSimRelation.CELLML_DOCUMENTATION, text));\n\t\t}\n\t}", "public final Object getFilesystemObject() {\n \treturn m_filesysObj;\n }", "String buildDoc(ControllerNode controllerNode) throws IOException;", "public String getPathToDefinitionFiles() {\n\treturn msPathToDefinitionFiles;\n }", "public String getFileTypeDescription() {\n return \"GrADS Binary Gridded Data\";\n }", "public Collection<BaseDocument> getAllDocuments() {\n\t\tVector<BaseDocument> ret = new Vector<BaseDocument>();\n\n\t\tret.add(this);\n\t\tret.add(theStructures);\n\n\t\treturn ret;\n\t}", "String prepareLegalDocuments();", "private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}", "DocBook createDocBook();", "private Document getDocumentInFileSys()throws Exception{\r\n\t\t\r\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\r\n\t\tFile file = new File(DIR,FILE_NAME);\r\n\t\tif(!file.exists())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tFileInputStream inStream =new FileInputStream(file);\r\n\t\ttry{\r\n\t\t\tDocument doc = builder.parse(inStream);\r\n\t\t\treturn doc;\r\n\t\t}finally{\r\n\t\t\tinStream.close();\r\n\t\t}\r\n\t}", "public void crearReporte() {\r\n\t\tJFileChooser chooser = new JFileChooser(\"reporte.doc\");\r\n\t\tchooser.addChoosableFileFilter(new FileFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"*.doc\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\t if (f.isDirectory())\r\n\t\t {\r\n\t\t return false;\r\n\t\t }\r\n\r\n\t\t String s = f.getName();\r\n\r\n\t\t return s.endsWith(\".doc\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tint res = chooser.showSaveDialog(this);\r\n\t\tif(res == JFileChooser.APPROVE_OPTION)\r\n\t\t{\r\n\t\t\tFile file = chooser.getSelectedFile();\r\n\t\t\t\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tJava2Word word = new Java2Word(this, file);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void document(String[] args)\n throws org.apache.commons.cli.ParseException,\n ConfigurationException,\n IOException,\n shadow.ShadowException,\n HelpRequestedException {\n // Detect and establish the current settings and arguments\n DocumentationArguments arguments = new DocumentationArguments(args);\n\n // Exit if help was requested (Arguments handles printing)\n if (arguments.hasOption(Arguments.HELP)) return;\n\n Configuration.buildConfiguration(\n arguments.getMainArguments()[0], arguments.getConfigFileArg(), false);\n\n /* TYPECHECKING */\n\n long startTime = System.currentTimeMillis(); // Time the type checking\n\n // Generate a list of source files from the command line arguments.\n // If packages/directories are specified, they will be searched for\n // source files\n Map<String, Documentation> pkgDocs = new HashMap<>();\n List<Path> sourceFiles = getRequestedFiles(arguments.getMainArguments(), pkgDocs);\n\n // Perform basic type-checking on each source file\n Set<Type> typesToDocument = DocumentationTypeChecker.typeCheck(sourceFiles);\n Set<Package> packagesToDocument = new HashSet<>();\n\n logger.info(\n \"Successfully type-checked all files in \"\n + (System.currentTimeMillis() - startTime)\n + \"ms\");\n\n /* DOCUMENTATION INFO ORGANIZATION */\n\n startTime = System.currentTimeMillis(); // Time the documentation\n\n // If a directory was provided use it. Otherwise, create docs/ in the\n // current working directory\n Path outputDirectory;\n if (arguments.hasOption(DocumentationArguments.OUTPUT_DIR))\n outputDirectory = Paths.get(arguments.getOutputDirectory()).toAbsolutePath().normalize();\n else outputDirectory = Paths.get(\"docs\").toAbsolutePath().normalize();\n\n // Capture visible inner classes for documentation\n List<Type> outerClasses = new ArrayList<>(typesToDocument);\n for (Type outer : outerClasses)\n for (Type inner : outer.getInnerTypes().values())\n if (inner.getModifiers().isPublic() || inner.getModifiers().isProtected())\n typesToDocument.add(inner);\n\n // Capture all packages of classes being documented\n for (Type type : typesToDocument) packagesToDocument.addAll(type.getAllPackages());\n\n // Associate packages with package-info files\n for (Package pkg : packagesToDocument) {\n String pkgName = pkg.getQualifiedName();\n // The default package cannot be documented\n if (!pkgName.isEmpty() && pkgDocs.containsKey(pkgName))\n pkg.setDocumentation(pkgDocs.get(pkgName));\n }\n\n /* FORMATTED DOCUMENTATION GENERATION */\n\n DocumentationTemplate template =\n new StandardTemplate(arguments.getTemplateArgs(), typesToDocument, packagesToDocument);\n template.write(outputDirectory);\n\n logger.info(\n \"Successfully generated all documentation in \"\n + (System.currentTimeMillis() - startTime)\n + \"ms\");\n }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public static SymbolDocumentInfo symbolDocument(String fileName) { throw Extensions.todo(); }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "private static void info ( File f ) {\n\tString nume = f . getName () ;\n\tif( f.isFile () )\n\tSystem.out.println ( \" Fisier : \" + nume ) ;\n\telse\n\tif( f.isDirectory () )\n\tSystem.out.println ( \" Director : \" + nume ) ;\n\tSystem.out.println (\n\t\" Cale absoluta : \" + f.getAbsolutePath () +\n\t\" \\n Poate citi : \" + f.canRead () +\n\t\" \\n Poate scrie : \" + f.canWrite () +\n\t\" \\n Parinte : \" + f.getParent () +\n\t\" \\n Cale : \" + f.getPath () +\n\t\" \\n Lungime : \" + f.length () +\n\t\" \\n Data ultimei modificari : \" +\n\tnew Date ( f.lastModified () ) ) ;\n\tSystem.out.println ( \" --------------\" ) ;\n\t}", "public ImmutableList<FlowDocumentation> getFlowDocs() {\n // Relevant flows are leaf flows: precisely the concrete subclasses of Flow.\n return getConcreteSubclassesStream(FlowDocumentation.BASE_FLOW_CLASS_NAME)\n .sorted(comparing(element -> element.getSimpleName().toString()))\n .map(typeElement -> new FlowDocumentation(typeElement, sourceRoot))\n .collect(toImmutableList());\n }", "WorkingDocumentsType getWorkingDocuments();", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "public String getTypeDescription(FileObject f)\n {\n return getName(f);\n }", "IDocument getDocument(File file);", "private String getSlowRootDescriptionString(File root) {\n\t\t\t// Special case the description of the root of a unix filesystem, otherwise it gets \n\t\t\t// marked as removable \n\t\t\tif (\"/\".equals(root.getPath())) {\n\t\t\t\treturn \"File system root (/)\";\n\t\t\t}\n\n\t\t\t// Special case the description of floppies and removable disks, otherwise delegate to \n\t\t\t// fsView's getSystemDisplayName.\n\t\t\tif (FS_VIEW.isFloppyDrive(root)) {\n\t\t\t\treturn String.format(\"Floppy (%s)\", formatRootPathForDisplay(root));\n\t\t\t}\n\n\t\t\tString fsvSTD = null;\n\t\t\ttry {\n\t\t\t\tfsvSTD = FS_VIEW.getSystemTypeDescription(root);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t//Windows expects the A drive to exist; if it does not exist, an exception results.\n\t\t\t\t//Ignore it\n\t\t\t}\n\t\t\tif (fsvSTD == null || fsvSTD.toLowerCase().indexOf(\"removable\") != -1) {\n\t\t\t\treturn String.format(\"Removable Disk (%s)\", formatRootPathForDisplay(root));\n\t\t\t}\n\n\t\t\t// call the (possibly slow) fsv's getSystemDisplayName\n\t\t\treturn FS_VIEW.getSystemDisplayName(root);\n\t\t}", "public L getDocumentLocation();", "@SuppressWarnings(\"unchecked\")\n protected List<File> getAllDocuments() {\n\n return (List<File>)stage.getProperties().get(GlobalConstants.ALL_DOCUMENTS_PROPERTY_KEY);\n }", "private static void showFiles(File f) {\n\t\n}", "List<DocumentationItem> documentation();", "public String qualifiedDocName() { return \"\"; }", "@DISPID(4) //= 0x4. The runtime will prefer the VTID if present\r\n @VTID(11)\r\n visiotool.IVDocument document();", "private void generarDocP(){\n generarPdf(this.getNombre());\n }", "public void createFileObjects() {\n List<String> externalFiles = abbreviationsPreferences.getExternalJournalLists();\n externalFiles.forEach(name -> openFile(Paths.get(name)));\n }", "public ExternalDocumentEntry() {\n\t\tsuper(CDAFactory.eINSTANCE.createExternalDocument());\n\t\tthis.getMdht().getTemplateIds()\n\t\t\t\t.add(DatatypesFactory.eINSTANCE.createII(\"2.16.840.1.113883.10.20.1.36\"));\n\t\tthis.getMdht().setClassCode(ActClassDocument.DOC);\n\t\tthis.getMdht().setMoodCode(ActMood.EVN);\n\n\t}", "public accionDocumentos() {\n \n }", "public HPBFDocument(DirectoryNode dir) throws IOException {\n\t super(dir);\n\n\t // Go looking for our interesting child\n\t // streams\n\t mainContents = new MainContents(dir);\n\t quillContents = new QuillContents(dir);\n\n\t // Now the Escher bits\n\t escherStm = new EscherStm(dir);\n\t escherDelayStm = new EscherDelayStm(dir);\n\t}", "public String[] allDocs() {\r\n\t\t\r\n\t\tFile folderNames = new File(folderName);\r\n int i=0;\r\n File[] files = folderNames.listFiles();\r\n String[] documents = new String[files.length];\r\n for (File file: files)\r\n {\r\n \tdocuments[i] = file.getName();\r\n i++;\r\n }\r\n return documents;\t\r\n\t}", "public Document readDocument();", "public static Menu createDocument(File file, Menu parent, String userName, String language) throws Exception {\r\n // extract content\r\n Parser parser = ParserFactory.getParser(file);\r\n String content = null;\r\n if (parser != null)\r\n content = parser.getContent();\r\n if (content == null)\r\n content = \"\";\r\n\r\n // store in database\r\n String filename = file.getName();\r\n Document doc = new Document();\r\n Version vers = new Version();\r\n Menu menu = new Menu();\r\n String ext = filename.substring(filename.lastIndexOf(\".\") + 1);\r\n ext = ext.toLowerCase();\r\n String name = \"\";\r\n if (parser != null) {\r\n if (parser.getTitle().length() == 0)\r\n name = filename.substring(0, filename.lastIndexOf(\".\"));\r\n else\r\n name = parser.getTitle();\r\n } else {\r\n name = filename;\r\n }\r\n menu.setMenuText(name);\r\n menu.setMenuParent(parent.getMenuId());\r\n\r\n // select a file icon based on the extension\r\n String icon = IconSelector.selectIcon(ext);\r\n menu.setMenuIcon(icon);\r\n\r\n menu.setMenuSort(0);\r\n menu.setMenuPath(parent.getMenuPath() + \"/\" + parent.getMenuId());\r\n menu.setMenuType(Menu.MENUTYPE_FILE);\r\n menu.setMenuHier(parent.getMenuHier() + 1);\r\n menu.setMenuRef(filename);\r\n for (MenuGroup mg : parent.getMenuGroups()) {\r\n menu.getMenuGroups().add(mg);\r\n }\r\n\r\n MenuDAO menuDao = (MenuDAO) Context.getInstance().getBean(MenuDAO.class);\r\n menuDao.store(menu);\r\n\r\n doc.setMenu(menu);\r\n doc.setDocName(name);\r\n doc.setDocDate(DateBean.toCompactString());\r\n doc.setDocPublisher(userName);\r\n doc.setDocStatus(Document.DOC_CHECKED_IN);\r\n doc.setDocType(filename.substring(filename.lastIndexOf(\".\") + 1));\r\n doc.setDocVersion(\"1.0\");\r\n doc.setSource(\"\");\r\n if (parser != null) {\r\n doc.setSourceAuthor(parser.getAuthor());\r\n String srcDate = DateBean.toCompactString(parser.getSourceDate(), language);\r\n if (srcDate != null)\r\n doc.setSourceDate(srcDate);\r\n String keywords = parser.getKeywords();\r\n if (keywords != null && keywords.length() > 0) {\r\n DocumentDAO docDao = (DocumentDAO) Context.getInstance().getBean(DocumentDAO.class);\r\n doc.setKeywords(docDao.toKeywords(keywords));\r\n }\r\n }\r\n doc.setSourceType(\"\");\r\n doc.setCoverage(\"\");\r\n doc.setLanguage(language);\r\n\r\n /* insert initial version 1.0 */\r\n vers.setVersion(\"1.0\");\r\n vers.setVersionComment(\"\");\r\n vers.setVersionDate(DateBean.toCompactString());\r\n vers.setVersionUser(userName);\r\n doc.addVersion(vers);\r\n DocumentDAO docDao = (DocumentDAO) Context.getInstance().getBean(DocumentDAO.class);\r\n docDao.store(doc);\r\n\r\n // create history entry\r\n createHistoryEntry(doc.getDocId(), userName, History.STORED);\r\n\r\n // store document in the repository\r\n SettingsConfig settings = (SettingsConfig) Context.getInstance().getBean(SettingsConfig.class);\r\n String path = settings.getValue(\"docdir\");\r\n if (!path.endsWith(File.pathSeparator))\r\n path += \"/\";\r\n path += menu.getMenuPath() + \"/\" + doc.getMenuId();\r\n FileBean.createDir(path);\r\n FileBean.copyFile(file.getAbsolutePath(), path + \"/\" + filename);\r\n\r\n /* create search index entry */\r\n String lang = doc.getLanguage();\r\n Indexer index = (Indexer) Context.getInstance().getBean(Indexer.class);\r\n int luceneId = index.addFile(new File(path + \"/\" + filename), doc, content, language);\r\n SearchDocument searchDoc = new SearchDocument();\r\n searchDoc.setLuceneId(luceneId);\r\n searchDoc.setMenuId(menu.getMenuId());\r\n\r\n String luceneIndex = new Locale(lang).getDisplayLanguage(Locale.ENGLISH).toLowerCase();\r\n if (StringUtils.isEmpty(luceneIndex))\r\n luceneIndex = \"english\";\r\n\r\n searchDoc.setIndex(luceneIndex);\r\n\r\n SearchDocumentDAO searchDocDao = (SearchDocumentDAO) Context.getInstance().getBean(SearchDocumentDAO.class);\r\n searchDocDao.store(searchDoc);\r\n\r\n //Update file size\r\n menuDao.store(menu);\r\n \r\n return menu;\r\n }", "public String getDocumentType();", "boolean saveDocument(String path, String documentContent, Charset charset, List <String> moduleList);", "@Test\n void docs() {\n Schema schema = new Schema.Parser().parse(SCHEMA_WITH_DOC_TAGS);\n assertEquals(\"This is not a world record.\", schema.getDoc());\n assertEquals(\"Inner Fixed\", schema.getField(\"inner_fixed\").doc());\n assertEquals(\"Very Inner Fixed\", schema.getField(\"inner_fixed\").schema().getDoc());\n assertEquals(\"Inner String\", schema.getField(\"inner_string\").doc());\n assertEquals(\"Inner Enum\", schema.getField(\"inner_enum\").doc());\n assertEquals(\"Very Inner Enum\", schema.getField(\"inner_enum\").schema().getDoc());\n assertEquals(\"Inner Union\", schema.getField(\"inner_union\").doc());\n }", "@Override\n\tpublic String getLongDescription() {\n\t\treturn CliUtils.genLocalizedMessage(\"#include commands/set-file-pkg.txt\");\n\t}", "public List<? extends DocElement> getExecutableDocument() {\n Javadoc doc = documentation;\n return getAbstractBlock(doc);\n }" ]
[ "0.6852664", "0.6290773", "0.61488086", "0.61488086", "0.6139592", "0.6057003", "0.603704", "0.60219985", "0.6020729", "0.5977447", "0.5977447", "0.592471", "0.5906083", "0.5906083", "0.5849014", "0.58208025", "0.5768282", "0.5737694", "0.5707925", "0.5706074", "0.56588304", "0.56571376", "0.56058055", "0.5584927", "0.55494803", "0.5537926", "0.5532808", "0.55289555", "0.55142653", "0.5508615", "0.54813856", "0.5468423", "0.5443842", "0.5443842", "0.5439934", "0.54392844", "0.5414194", "0.541168", "0.5411214", "0.53944165", "0.5393415", "0.53893614", "0.53794694", "0.53702563", "0.53699356", "0.5368469", "0.5368469", "0.5367299", "0.5365645", "0.53531086", "0.5320162", "0.5320162", "0.53128606", "0.52903694", "0.52723336", "0.5269121", "0.52613497", "0.52568036", "0.5247043", "0.52326965", "0.5229373", "0.52235806", "0.52203697", "0.5218322", "0.52119184", "0.521178", "0.52114344", "0.5210823", "0.52033156", "0.5197933", "0.5197338", "0.5186618", "0.51854396", "0.51835215", "0.5181585", "0.51798606", "0.51781046", "0.517428", "0.5168696", "0.5168444", "0.51582074", "0.51541317", "0.5147725", "0.5127846", "0.51241595", "0.5118448", "0.5105415", "0.51044387", "0.5097572", "0.5088011", "0.5082886", "0.5076775", "0.5073939", "0.50717336", "0.5067605", "0.5067285", "0.50646603", "0.50578815", "0.50547844", "0.50546306" ]
0.5053344
100
Returns the root entry of the file system. Subfiles and directories can be found by searching the returned entry.
public abstract Entry getRoot() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DiscDirectoryInfo getRoot();", "public File getRoot() {\n return this.root;\n }", "public Git.Entry getRoot() { \n Node c = this; \n while (c.par != null) c = c.par;\n return c.getObject();\n }", "@Basic @Raw\r\npublic FileSystem getRoot() {\r\n\tif (dir == null) {\r\n\t\treturn this;\r\n\t}\r\n\telse {\r\n\t\tFileSystem root = this.getDir();\r\n\t\twhile (root != null) {\r\n\t\t\troot = root.getDir();\r\n\t\t}\r\n\t\treturn root;\r\n\t\t\r\n\t}\r\n}", "public String getRoot();", "public File getRetrieveRoot() {\n return retrieveRoot;\n }", "public Entry getEntry(String aPath)\n {\n if(getRepo()==null) return null;\n \n // Handle root special\n if(aPath.equals(\"/\")) return new Entry(null, aPath);\n \n // Get repository index and entry for path\n DirCache index = getIndex(); String path = aPath.substring(1);\n DirCacheEntry entry = index.getEntry(aPath.substring(1));\n boolean isDir = entry==null && index.getEntriesWithin(path).length>0;\n if(entry==null && !isDir) return null;\n \n // Create file for path and index entry\n return new Entry(entry, aPath);\n }", "Path getRootPath();", "VirtualDirectory getRootContents();", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "File getRootDir() {\n\t\treturn rootDirFile;\n\t}", "@Override\r\n public FileName getRoot() {\r\n FileName root = this;\r\n while (root.getParent() != null) {\r\n root = root.getParent();\r\n }\r\n\r\n return root;\r\n }", "java.lang.String getRoot();", "<T> T getRoot();", "public FileSystemEntry getEntry(String path);", "public String getRoot() {\n\t\treturn null;\n\t}", "static File getRootFile() {\n File root = new File(Constant.CONFIG_DIRECTORY_NAME);\n boolean directoryCreated = true;\n if (!root.exists()) {\n directoryCreated = root.mkdirs();\n }\n if (directoryCreated) {\n return root;\n } else {\n return null;\n }\n }", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "public StorageUnit getRoot();", "public File getRootDir() {\r\n\t\treturn rootDir;\r\n\t}", "public String getRoot() {\n return root;\n }", "public String getRootPath() {\n return root.getPath();\n }", "T getRoot();", "public VFSEntry getEntry() {\r\n\t\treturn entry;\r\n\t}", "public File getCacheRoot()\r\n {\r\n return cache.getCacheRoot();\r\n }", "private FileObject getJavaPlatformRoot() throws IOException {\n FileObject retVal;\n String javaHome = instance.getJavaHome();\n if (null == javaHome || javaHome.trim().length() < 1) {\n File dir = new File(getJdkHome());\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(dir));\n } else {\n File f = new File(javaHome);\n if (f.exists()) {\n retVal = FileUtil.createFolder(FileUtil.normalizeFile(f));\n } else {\n throw new FileNotFoundException(\n NbBundle.getMessage(StartTask.class,\n \"MSG_INVALID_JAVA\", instanceName, javaHome));\n }\n }\n return retVal;\n }", "public Object getRoot() {\n\t\treturn null;\n\t}", "public int getRoot(){\n\t\t\treturn root;\n\t\t}", "public Object getRoot(){\r\n\t\treturn _root;\r\n\t}", "public String getRootFolder() {\n return m_RootFolder;\n }", "private ISiteEntry getRootSite() {\n \t\tISitePolicy defaultPolicy = createSitePolicy(DEFAULT_POLICY_TYPE, DEFAULT_POLICY_LIST);\n \t\tURL siteURL = null;\n \t\ttry {\n \t\t\tsiteURL = new URL(PlatformURLBaseConnection.PLATFORM_URL_STRING); // try using platform-relative URL\n \t\t} catch (MalformedURLException e) {\n \t\t\tsiteURL = BootLoader.getInstallURL(); // ensure we come up ... use absolute file URL\n \t\t}\n \t\tISiteEntry defaultSite = createSiteEntry(siteURL, defaultPolicy);\n \t\treturn defaultSite;\n \t}", "public File getRootDir() {\n return rootDir;\n }", "String getInstallRoot();", "public TreeNode<E> getRoot() {\n return root;\n }", "public I_LogicalAddress getRoot() {\n return root;\n }", "public KeyedItem getRoot() throws TreeException {\r\n\r\n\t\tif (root != null) {\r\n\t\t\treturn root;\r\n\t\t} else\r\n\t\t\tthrow new TreeException(\"Tree is empty\");\r\n\t}", "public TreeNode<E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public final EObject entryRuleRoot() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleRoot = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:69:2: (iv_ruleRoot= ruleRoot EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:70:2: iv_ruleRoot= ruleRoot EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getRootRule()); \r\n }\r\n pushFollow(FOLLOW_ruleRoot_in_entryRuleRoot75);\r\n iv_ruleRoot=ruleRoot();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleRoot; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleRoot85); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Object getRootItem();", "public Commit getRoot(){\n\t\treturn myRoot;\n\t}", "public int getRoot() {\n return _root;\n }", "protected TreeNode<E> getRoot() {\n\t\treturn root;\n\t}", "public List<SessionFile> getRoots() {\n List<SessionFile> result = Factory.newArrayList();\n for (SharedFile shared : fileSystem.getRoots())\n result.add(getOrCreateFile(shared));\n return result;\n }", "public String getRootPath() {\r\n return rootPath;\r\n }", "public RBNode<T, E> getRoot() {\r\n\t\treturn root;\r\n\t}", "String rootPath();", "public ContentScanner getRootLevel(\n )\n {\n ContentScanner level = this;\n while(true)\n {\n ContentScanner parentLevel = level.getParentLevel();\n if(parentLevel == null)\n return level;\n\n level = parentLevel;\n }\n }", "public GitFileSystemEntry getFile(String filename) {\n for (GitFileSystemEntry entry : files) {\n if (entry.getFilename().equals(filename)) {\n return entry;\n }\n }\n\n return null;\n }", "public final EObject entryRuleRoot() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleRoot = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:65:45: (iv_ruleRoot= ruleRoot EOF )\r\n // InternalEsportDsl.g:66:2: iv_ruleRoot= ruleRoot EOF\r\n {\r\n newCompositeNode(grammarAccess.getRootRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleRoot=ruleRoot();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleRoot; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "private static String getFileRoot(String file) {\r\n \treturn file.substring(0, file.indexOf('.'));\r\n }", "public IDirectory getRootDirectory() {\r\n return rootDir;\r\n }", "public Entity getLeafEntity() {\n Entity e = root;\n if (e == null) {\n if (parent != null) {\n e = parent.get(ContentType.EntityType, null);\n }\n }\n return e;\n }", "private Folder getRootFolder() {\n if(!MigrationProperties.get(MigrationProperties.PROP_MIGRATION_PROFILE).equalsIgnoreCase(\"DELTA\")) {\n String folderPath = MigrationProperties.get(MigrationProperties.PROP_SOURCE_LOCATION);\n\n if (folderPath != null && folderPath.contains(\"/\")) {\n Folder rootFolder = CmisHelper.getFolder(jobParameters.getSessionSource(), folderPath);\n return rootFolder;\n\n } else\n return null;\n } else\n return null;\n }", "protected VcsRoot getRoot(String branchName) throws IOException {\n return getRoot(branchName, false);\n }", "public static FileObject getCiRoot(FileObject doc) {\n //TODO: Need Talk\n //What is the best way to know the \"root\" directory of CodeIgniter?\n \n while (doc != null) {\n doc = doc.getParent();\n FileObject[] children = doc.getChildren();\n int count = 0;\n \n for (FileObject child: children) {\n for (String folder: APP_BASE) {\n if (child\n .getName()\n .equals(folder.toLowerCase(Locale.ENGLISH))) {\n count++;\n break;\n }\n }\n }\n \n if (count == APP_BASE.length) {\n break;\n }\n }\n \n if (doc == null) {\n return null;\n }\n \n FileObject root = doc.getParent();\n return root;\n }", "public Node getRoot(){\r\n return this.root;\r\n }", "public Node getRoot() {\r\n\r\n\t\treturn root;\r\n\t}", "public final EObject entryRuleDefRoot() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleDefRoot = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:108:2: (iv_ruleDefRoot= ruleDefRoot EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:109:2: iv_ruleDefRoot= ruleDefRoot EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getDefRootRule()); \r\n }\r\n pushFollow(FOLLOW_ruleDefRoot_in_entryRuleDefRoot166);\r\n iv_ruleDefRoot=ruleDefRoot();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleDefRoot; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleDefRoot176); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Node getRoot() {\n return root;\n }", "synchronized List<File> getRoots() {\n\t\t\treturn new ArrayList<>(roots);\n\t\t}", "com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index);", "public SVGElementModel getRoot() {\n \t\treturn store.getRootItems().get(0);\n \t}", "public TreeNode root() {\n\t\treturn root;\n\t}", "public File getConfigRoot()\r\n\t{\n\t\treturn file.getParentFile();\r\n\t}", "ILitePackCollection getRoot();", "protected IsamIndexNode getRoot() {\n\t\treturn root;\n\t}", "private EObject getRoot(Object receiver) {\r\n\t\tEObject root = null;\r\n\r\n\t\tif(receiver instanceof ISelection) {\r\n\t\t\tISelection selection = (ISelection)receiver;\r\n\t\t\tif(selection.isEmpty()) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\t//this is the case where the selection is on the Project Explorer\r\n\t\t\t\tIStructuredSelection selectionstructured = (IStructuredSelection)selection;\r\n\r\n\t\t\t\tObject selectedElement = selectionstructured.getFirstElement();\r\n\r\n\t\t\t\tObject selectedAdapter = Platform.getAdapterManager().getAdapter(selectedElement, IFile.class);\r\n\r\n\r\n\t\t\t\tif(selectedAdapter instanceof IFile) {\r\n\t\t\t\t\tfinal IFile selectedFile = (IFile)selectedAdapter;\r\n\t\t\t\t\tModelSet modelSet = new ModelSet();\r\n\t\t\t\t\tModelsReader reader = new ModelsReader();\r\n\t\t\t\t\treader.readModel(modelSet);\r\n\r\n\r\n\t\t\t\t\tIPath workspacePath = selectedFile.getFullPath();\r\n\r\n\t\t\t\t\tURI workspaceURI = URI.createPlatformResourceURI(workspacePath.toString(), true);\r\n\t\t\t\t\tmodelSet.loadModels(workspaceURI);\r\n\r\n\t\t\t\t\tUmlModel openedModel = (UmlModel)modelSet.getModel(UmlModel.MODEL_ID);\r\n\t\t\t\t\tif(openedModel != null) {\r\n\t\t\t\t\t\troot = openedModel.lookupRoot();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//this is the case where the selection is on the Model Explorer\r\n\t\t\t\t\tServiceUtilsForSelection serviceUtils = ServiceUtilsForSelection.getInstance();\r\n\t\t\t\t\tUmlModel openedModel = (UmlModel)serviceUtils.getModelSet(selection).getModel(UmlModel.MODEL_ID);\r\n\t\t\t\t\tif(openedModel != null) {\r\n\t\t\t\t\t\troot = openedModel.lookupRoot();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t//Ignored: The selection cannot be used to retrieve the ServicesRegistry.\r\n\t\t\t\t//Do not log exceptions: this is just not a Papyrus/RobotML model\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn root;\r\n\t}", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "K getFirstLeafKey() {\r\n return keys.get(0);\r\n }", "public abstract FilesystemEntry getNamedChild(String name);", "public Integer getRoot(){\n\t\tif(root != null) {\n\t\t\treturn root.element;\n\t\t}\n\t\treturn null;\n\t}", "public BSTNode<T> getRoot() {\n // DO NOT MODIFY THIS METHOD!\n return root;\n }", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "File getRootDirectory() \t\t{ return cvs_root; }", "protected String getRootName() {\r\n\t\treturn ROOT_NAME;\r\n\t}", "public String getRoot(String kmer, generateHash g, long base) {\n\t\tint hashed = (int) g.hashFunction(base, kmer);\n\t\tint count = 0;\n\t\twhile(this.parent[hashed]!= '\\0') {\n\t\t\tif(count > 500) break;\n\t\t\tcount++;\n\t\t\tkmer = this.getParent(kmer, hashed);\n\t\t\thashed = (int) g.hashFunction(base, kmer);\n\t\t}\n\t\treturn kmer;\n\t}", "public Object getRoot() {\n\t\treturn _adaptee;\n\t}", "public com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index) {\n return entry_.get(index);\n }", "public File getCodeRoot( File dirPackage )\n\t{\n\t\tif( (dirPackage == null) || (!dirPackage.exists()) || (!dirPackage.isDirectory()) ) return null;\n\n\t\tString strPathFragment = this.packagename.replace( '.', File.separatorChar );\n\t\t//System.out.println( \"\\t strPathFragment \" + strPathFragment );\n\n\t\tif( dirPackage.getPath().endsWith( strPathFragment ) )\n\t\t{\n\t\t\tString[] strSplit = this.packagename.split( \"\\\\.\" );\n\t\t\tFile current = dirPackage;\n\t\t\tfor( int i=0; (i<strSplit.length) && (current != null); i++ ) current = current.getParentFile();\n\t\t\t//System.out.println( \"\\t returning \" + current.getPath() );\n\t\t\treturn current;\n\t\t}\n\t\telse return null;\n\t}", "public MoveTrieNode getRoot() {\n return root;\n }", "@Override\n public Object getRoot() {\n if (this.getParent() == null) {\n return this;\n }\n return this.getParent().getRoot();\n }", "public static File getProjectRoot() {\n\t\tString filePath = \"/\";\n\t\tString rootDirName = FileUtil.class.getResource(filePath).getPath();\n\t\tFile rtn = new File(rootDirName, \"../../\");\n\t\treturn rtn;\n\t}", "public String getRootName() {\n\t\treturn rootName;\n\t}", "private EntryStorageHome home()\r\n {\r\n if( home == null )\r\n {\r\n\t\ttry\r\n\t\t{\r\n home = (EntryStorageHome) \r\n get_storage_home().get_catalog().find_storage_home( PSS_HOME );\r\n\t\t}\r\n\t\tcatch( Throwable e )\r\n\t\t{\r\n\t\t String error = \"Could not resolve the EntryStorageHome\";\r\n\t\t throw new RuntimeException( error, e );\r\n\t\t}\r\n }\r\n return home;\r\n }", "public static String mount() {\n\n String mount = stringValue(\"treefs.mount\");\n if(isNullOrEmpty(mount)) {\n // default home location\n mount = home() + File.separator + \"treefs-data\";\n } else {\n mount = home() + File.separator + mount;\n }\n\n return mount;\n }", "public IAVLNode getRoot() {\n\t\treturn this.root;\n\t}", "TrieNode root();", "private HtmlElement getRoot()\n\t{\n\t\treturn getBaseRootElement( ROOT_BY );\n\t}", "public WAVLNode getRoot()\r\n\t {\r\n\t\t return this.root;\r\n\t }", "private Position<E> firstLeaf(){\n\t\tPosition<E> aux=null;\n\t\tif(tree.isEmpty())\n\t\t\treturn aux;\n\t\telse\n\t\t\taux=tree.root();\n\t\twhile(this.tree.hasLeft(aux)){\n\t\t\taux=tree.left(aux);\n\t\t}\n\t\treturn aux;\n\t}", "public static File getUpdateCenterLauncher(File asInstallRoot) {\n File result = null;\n if(asInstallRoot != null && asInstallRoot.exists()) {\n File updateCenterBin = new File(asInstallRoot, \"updatecenter/bin\"); // NOI18N\n if(updateCenterBin.exists()) {\n String launcher = \"updatetool\"; // NOI18N\n if(Utilities.isWindows()) {\n launcher += \".BAT\"; // NOI18N\n }\n File launcherPath = new File(updateCenterBin, launcher);\n result = (launcherPath.exists()) ? launcherPath : null;\n }\n }\n return result;\n }", "public static File[] getFileSystemRoots() {\n return File.listRoots();\n }", "public Element getDocument() {\n\t\t\n\t\tElement retval = getRoot();\n\t\t\n\t\tList<Element> children;\n\t\t\n\t\tif ( retval.getName().equals(\"ROOT\") && (children = retval.getAllChildren()).size() > 0 )\n\t\t\tretval = children.get(0);\n\t\t\n\t\treturn retval;\n\n\t}", "BTNode<T> getRoot();", "public Object\tgetRoot() {\n \treturn root;\n }", "public Region getRoot() {\r\n return root;\r\n }", "java.lang.String getEntryNode();", "public ObjectTreeNode getRoot() {\n return root;\n }" ]
[ "0.6919598", "0.6730693", "0.6727243", "0.64086914", "0.63926846", "0.6246325", "0.6217872", "0.61355025", "0.6127958", "0.61276376", "0.6096601", "0.6066144", "0.60539895", "0.60119987", "0.597818", "0.5944849", "0.5934669", "0.5926815", "0.591596", "0.581603", "0.57886785", "0.5773799", "0.5773267", "0.57462835", "0.5745327", "0.5734824", "0.57194173", "0.56869775", "0.56647414", "0.5629787", "0.561135", "0.55574834", "0.5543297", "0.5541215", "0.5534327", "0.5524751", "0.5522345", "0.5514741", "0.5514101", "0.55117387", "0.5495175", "0.54772365", "0.54615676", "0.5455847", "0.54462427", "0.54406625", "0.54385215", "0.543409", "0.54293364", "0.5423541", "0.5414644", "0.5386558", "0.53665423", "0.5362133", "0.5360745", "0.5354185", "0.53516936", "0.5348758", "0.5348043", "0.5342594", "0.5336978", "0.53296506", "0.53253734", "0.5321617", "0.5306044", "0.53019947", "0.5300348", "0.5293628", "0.5286074", "0.5283468", "0.52715755", "0.5270405", "0.5261238", "0.5261238", "0.5261238", "0.52590007", "0.5250571", "0.5246086", "0.52429974", "0.5238863", "0.5238169", "0.52364725", "0.5234321", "0.5229147", "0.52246237", "0.5214605", "0.52092224", "0.51907563", "0.5188041", "0.5186549", "0.51841325", "0.5182974", "0.5174482", "0.5173192", "0.516219", "0.5162152", "0.51575124", "0.51540244", "0.5146388", "0.5129584" ]
0.7259244
0
Returns the number of the block that follows the given block. The internal block allocation tables are consulted to determine the next block. A return value that is less than zero indicates that there is no next block.
public abstract int getNextBlock(int block) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTotalBlockNum();", "public static int getBlockNum() {\n\t\treturn (blockContext.blockNum);\n\t}", "abstract public int getNumberOfBlocks();", "private int findCursorBlock() {\n List<BlockLine> blocks = mSpanner == null ? null : mSpanner.getColors().getBlocks();\n if(blocks == null || blocks.isEmpty()) {\n return -1;\n }\n return findCursorBlock(blocks);\n }", "public int getALocationToPlaceBlock(){\n int lruIndex=-1,lruVal=-1;\n for(int i=0;i<this.localCache.length;i++){\n if(!this.localCache[i].isOccupied)// checks if the block is occupied\n return i;\n \n if(lruVal<this.localCache[i].lastUsed){// checks the last used of each block\n lruIndex=i;\n lruVal=this.localCache[i].lastUsed;\n }\n }\n \n return lruIndex;\n }", "public int getFreeBlock()\n {\n int freeBlock = this.freeList; // Set freeBlock to the head of the freeList\n if(freeBlock != -1) // Check to see if the freeBlock is in use\n {\n byte[] block = new byte[512];\n SysLib.rawread(freeBlock, block); // Read data from freeBlock\n this.freeList = SysLib.bytes2int(block, 0); // Move the head of the freeList to the next block\n SysLib.int2bytes(0, block, 0);\n SysLib.rawwrite(freeBlock, block);\n }\n\n return freeBlock;\n }", "public int getCurrBlockCount() {\r\n\t\tint count = 0;\r\n\t\tTapeBlock curr = this.headLimit.getNext();\r\n\t\twhile(curr != this.tailLimit) {\r\n\t\t\tcount++;\r\n\t\t\tcurr = curr.getNext();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int getBlockNumbersCount() {\n return blockNumbers_.size();\n }", "public int getSizeOfBlock() {\n return sizeOfBlock;\n }", "public int indexOf(MemoryBlock block) {\n\t\tfor (int i = 1; i < size - 1; i++){\n\t\t\tif ( block.equals( getBlock( i ) ) )\n\t\t\t\treturn i;\n\t\t}\n \treturn (-1);\n\t}", "public int getBlockNumber() {\n return blockNumber_;\n }", "public int getBlockNumber() {\n return blockNumber_;\n }", "public int getBlockNumbersCount() {\n return blockNumbers_.size();\n }", "public int getBlockNumber() {\n return blockNumber_;\n }", "public int getBlockNumber() {\n return blockNumber_;\n }", "private int readBlock() throws IOException {\n\t\t\tif (getSource().offset() == getSource().length()) return -1;\n\t\t\tgetMetadata().setBlockSize(getSource().read() & 0xff);\n\t\t\tint n = 0;\n\t\t\tint count;\n\n\t\t\tif (getMetadata().getBlockSize() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\twhile (n < getMetadata().getBlockSize()) {\n\t\t\t\t\t\tcount = getSource().read(getMetadata().getdBlock(), n, getMetadata()\n\t\t\t\t\t\t\t.getBlockSize() - n);\n\t\t\t\t\t\tif (count == -1) break;\n\t\t\t\t\t\tn += count;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (final IOException e) {\n\t\t\t\t\tlog().trace(\"Truncated block\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn n;\n\t\t}", "int getBlockNumber();", "int getBlockNumber();", "public long getBlockCount() {\n \t\tint coords[] = getCoords();\n \t\treturn \n \t\t(coords[3]-coords[0]+1)*\n \t\t(coords[4]-coords[1]+1)*\n \t\t(coords[5]-coords[2]+1);\n \t}", "public Integer getBlockID() {\n this.next_id++;\n return this.next_id;\n }", "public long getBlockCount() {\n return blockCount;\n }", "public int getFreeBlock(){\n \n if(freeList == -1){\n return -1;\n }\n\n //Retrieve the free block \n byte[] data = new byte[512];\n SysLib.rawread(freeList, data);\n\n \n //Update the freelist\n int freeBlock = freeList;\n freeList = SysLib.bytes2int(data, 0);\n SysLib.int2bytes(0,data,0);\n SysLib.rawwrite(freeBlock,data);\n\n return freeBlock;\n }", "private int findCursorBlock(List<BlockLine> blocks) {\n int line = mCursor.getLeftLine();\n int min = binarySearchEndBlock(line,blocks);\n int max = blocks.size() - 1;\n int minDis = Integer.MAX_VALUE;\n int found = -1;\n int jCount = 0;\n int maxCount = Integer.MAX_VALUE;\n if(mSpanner != null) {\n TextColorProvider.TextColors colors = mSpanner.getColors();\n if(colors != null) {\n maxCount = colors.getSuppressSwitch();\n }\n }\n for(int i = min;i <= max;i++) {\n BlockLine block = blocks.get(i);\n if(block.endLine >= line && block.startLine <= line) {\n int dis = block.endLine - block.startLine;\n if(dis < minDis) {\n minDis = dis;\n found = i;\n }\n }else if(minDis != Integer.MAX_VALUE) {\n jCount++;\n if(jCount >= maxCount) {\n break;\n }\n }\n }\n return found;\n }", "public String nextBlockNumber()\n\t{\n\t\tblockNumber++;\n\t\treturn (\"\" + blockNumber);\n\t}", "public static int findMethodInBlockSheet(String strBlockName)\n\t\t{\n\t\t\tint iRowNum = -1;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tiRowNum = excelBlockFile.getCellRowNum(\"Blocks\", \"BlockName\", strBlockName);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t\treturn iRowNum;\n\t\t}", "public int getFreeBlock()\n\t{\n\t\t// Store the current free block temporarily.\n\t\tint currentFreeBlock = freeList;\n\n\t\tif(currentFreeBlock != NULL_PTR)\n\t\t{\n\t\t\tbyte[] buffer = new byte[Disk.blockSize];\n\n\t\t\t// Read the current free block into the buffer.\n\t\t\tSysLib.rawread(currentFreeBlock, buffer);\n\n\t\t\t// Update the pointer to the next free block.\n\t\t\tfreeList = SysLib.bytes2short(buffer, 0);\n\n\t\t\tif(freeList == NULL_PTR)\n\t\t\t\tlastFreeBlock = NULL_PTR;\n\n\t\t\t// Update the current free block's pointer.\n\t\t\tSysLib.short2bytes(NULL_PTR, buffer, 0);\n\n\t\t\t// Write the current free block back to the disk.\n\t\t\tSysLib.rawwrite(currentFreeBlock, buffer);\n\t\t}\n\n\t\treturn currentFreeBlock;\n\t}", "private void findNextBlock(MatrixIndex cursor) {\n while (isFreeBlock(cursor) || !inBounds(cursor)){\n incrementMatrixIndex(cursor);\n }\n }", "public long getNextBlock(long address){\n int marker = readMarkerLowerBits(address - 1);\n int blocksize;\n if(marker == 0){\n blocksize = readLengthField(address, 1);\n return address + blocksize + 1;\n } else if(marker == 15){\n return address + 1;\n } else {\n if (isBlockUsed(address)) marker -= 8;\n blocksize = readLengthField(address, marker);\n if (isBlockUsed(address)) {\n return address + blocksize + 2 * (marker - 8) + 1;\n }\n return address + blocksize + 1;\n }\n }", "public long getBlockSize ( ) {\r\n\t\tif (current_block >= getBlockCount())\r\n\t\t\treturn 0;\r\n\r\n\t\tif (current_block == getBlockCount() -1)\r\n\t\t\treturn 3670;\r\n\r\n\t\treturn 10000;\r\n\t}", "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "private void findStartOfBlock () {\n int index = 0;\n blockEnded = false;\n blockStarted = false;\n while ((! blockStarted) && (! endOfText())) {\n String line = getNextLine();\n if (line.equals (getBlockStart())) {\n blockStarted = true;\n } // end if line contains block start string\n } // end while looking for start of block\n lineHasLabel = false;\n while ((! lineHasLabel) && (! endOfText())) {\n getNextLine();\n }\n }", "public int getBlockNumsCount() {\n return blockNums_.size();\n }", "public int getBlockNumsCount() {\n return blockNums_.size();\n }", "public int getBlockIndex(int block){\n for(int i=0;i<localCache.length;i++){\n if(localCache[i].isOccupied && localCache[i].blockID==block)\n return i;\n }\n return -1;\n }", "private int readBlock() throws IOException {\n\t\t\t// read next two bytes (short)\n\t\t\tif (!_read(blklen, 2))\n\t\t\t\treturn(-1);\n\n\t\t\t// Get the short-value and store its value in blockLen.\n\t\t\tblockLen = (short)(\n\t\t\t\t\t(blklen[0] & 0xFF) >> 1 |\n\t\t\t\t\t(blklen[1] & 0xFF) << 7\n\t\t\t\t\t);\n\t\t\treadPos = 0;\n\n\t\t\tif (debug) {\n\t\t\t\tif ((blklen[0] & 0x1) == 1) {\n\t\t\t\t\tlogRd(\"read final block: \" + blockLen + \" bytes\");\n\t\t\t\t} else {\n\t\t\t\t\tlogRd(\"read new block: \" + blockLen + \" bytes\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sanity check to avoid bad servers make us do an ugly\n\t\t\t// stack trace\n\t\t\tif (blockLen > block.length)\n\t\t\t\tthrow new AssertionError(\"Server sent a block \" +\n\t\t\t\t\t\t\"larger than BLOCKsize: \" +\n\t\t\t\t\t\tblockLen + \" > \" + block.length);\n\t\t\tif (!_read(block, blockLen))\n\t\t\t\treturn(-1);\n\n\t\t\tif (debug)\n\t\t\t\tlogRx(new String(block, 0, blockLen, \"UTF-8\"));\n\n\t\t\t// if this is the last block, make it end with a newline and\n\t\t\t// prompt\n\t\t\tif ((blklen[0] & 0x1) == 1) {\n\t\t\t\tif (blockLen > 0 && block[blockLen - 1] != '\\n') {\n\t\t\t\t\t// to terminate the block in a Reader\n\t\t\t\t\tblock[blockLen++] = '\\n';\n\t\t\t\t}\n\t\t\t\t// insert 'fake' flush\n\t\t\t\tblock[blockLen++] = BufferedMCLReader.PROMPT;\n\t\t\t\tblock[blockLen++] = '\\n';\n\t\t\t\tif (debug)\n\t\t\t\t\tlogRd(\"inserting prompt\");\n\t\t\t}\n\n\t\t\treturn(blockLen);\n\t\t}", "public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}", "private int getEntBlock(FileTableEntry ftEnt)\n\t{\n\t\tint block = ftEnt.seekPtr / Disk.blockSize;\n\t\t//get actual block number\n\t\tif (block < Inode.directSize)\n\t\t{\n\t\t\treturn (int)ftEnt.inode.direct[block];\n\t\t}\n\n\t\tbyte[] temp = new byte[Disk.blockSize];\n\t\tSysLib.rawread((int)ftEnt.inode.indirect, temp);\n\t\treturn (int)SysLib.bytes2short(temp, (block - Inode.directSize) * 2);\n\t}", "public int getNext(int iterator) {\n int block = iterator / (len << 1);\n iterator++;\n if (iterator >= endOfBlock[block]) {\n block++;\n if (block >= numberOfBlocks) return NO_ELEMENT;\n iterator = 2 * len * block;\n }\n return iterator;\n }", "public int getBlockNumsCount() {\n return blockNums_.size();\n }", "public int getBlockNumsCount() {\n return blockNums_.size();\n }", "public int getBlock(){\n return this.position.getCurrentBlock();\n }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "int getBlockNumbersCount();", "int numOfRemainingBlocks() {\n return blocks.size();\n }", "private BigInteger getBlockNumberOfNodeOnChain(int groupId, String nodeId) {\n SyncStatus syncStatus = frontInterface.getSyncStatus(groupId);\n if (nodeId.equals(syncStatus.getNodeId())) {\n return syncStatus.getBlockNumber();\n }\n List<PeerOfSyncStatus> peerList = syncStatus.getPeers();\n BigInteger latestNumber = peerList.stream().filter(peer -> nodeId.equals(peer.getNodeId()))\n .map(s -> s.getBlockNumber()).findFirst().orElse(BigInteger.ZERO);//blockNumber\n return latestNumber;\n }", "public MemoryBlock next() {\n\t\tMemoryBlock mBlockT = current.block;\n\t\tcurrent = current.next;\n\t\treturn mBlockT;\n\t}", "public int getNumberOfBlockGroups(int blocks, int blocksPerGroup){\n int blockGroups = blocks / blocksPerGroup; //get number of block groups\n return (blockGroups % blocksPerGroup) == 0 ? blockGroups : blockGroups+1; //inline if statemnt to check if the modulo value of block groups and blocks per group is 0\n }", "private Data getNextBlock() {\n Connection con = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n con = DbConnectionManager.getConnection();\n // Get the current ID from the database.\n pstmt = con.prepareStatement(LOAD_ID);\n pstmt.setInt(1, type);\n rs = pstmt.executeQuery();\n\n long currentID = 1;\n if (rs.next()) {\n currentID = rs.getLong(1);\n }\n else {\n createNewID(con, type);\n }\n DbConnectionManager.fastcloseStmt(rs, pstmt);\n\n // Increment the id to define our block.\n long newID = currentID + blockSize;\n // The WHERE clause includes the last value of the id. This ensures\n // that an update will occur only if nobody else has performed an\n // update first.\n pstmt = con.prepareStatement(UPDATE_ID);\n pstmt.setLong(1, newID);\n pstmt.setInt(2, type);\n pstmt.setLong(3, currentID);\n // Check to see if the row was affected. If not, some other process\n // already changed the original id that we read. This code should be\n // called under a lock, so this is not supposed to happen. Throw a\n // very verbose error if it does.\n if (pstmt.executeUpdate() == 1) {\n final Data result = new Data(currentID, newID);\n sequenceBlocks.put(type, result);\n return result;\n } else {\n throw new IllegalStateException(\"Failed at attempt to obtain an ID, aborting...\");\n }\n }\n catch (SQLException e) {\n Log.error(\"An exception occurred while trying to obtain new sequence values from the database for type {}\", type, e);\n throw new IllegalStateException(\"Failed at attempt to obtain an ID, aborting...\", e);\n }\n finally {\n DbConnectionManager.closeConnection(rs, pstmt, con);\n }\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "public int getLineBlockSIZE() {\n\t\treturn lineblocksSIZE;\n\t}", "int getBlockNumber(int x, int y);", "public int numBlocks() throws IOException {\r\n int len = (int)((file.length()) / (blockSizeBytes));\r\n return len;\r\n }", "boolean hasBlockNumber();", "boolean hasBlockNumber();", "public int getBlockIncrement(int param1Int) {\n/* 783 */ JViewport jViewport = JScrollPane.this.getViewport();\n/* 784 */ if (this.blockIncrementSet || jViewport == null) {\n/* 785 */ return super.getBlockIncrement(param1Int);\n/* */ }\n/* 787 */ if (jViewport.getView() instanceof Scrollable) {\n/* 788 */ Scrollable scrollable = (Scrollable)jViewport.getView();\n/* 789 */ Rectangle rectangle = jViewport.getViewRect();\n/* 790 */ return scrollable.getScrollableBlockIncrement(rectangle, getOrientation(), param1Int);\n/* */ } \n/* 792 */ if (getOrientation() == 1) {\n/* 793 */ return (jViewport.getExtentSize()).height;\n/* */ }\n/* */ \n/* 796 */ return (jViewport.getExtentSize()).width;\n/* */ }", "int numOfBlocks() {\n return ni * nj * nk;\n }", "public static int calculateBlocks(int[][] matrix) throws IOException {\n int blockNumber = 0;\n for (int i = 0; i < x; i++) {\n for (int j = 0; j < y; j++) {\n if (matrix[i][j] > 0) {\n if (isStartBlock(i, j, matrix, true)) {\n blockNumber++;\n matrix[i][j] = blockNumber;\n }\n }\n }\n }\n return blockNumber;\n }", "int getBlocksAmount();", "public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "private double calculateContainingBlock(double inodeBlockGroup, int inodeSize, int inodeTablePointer){\n return ((inodeBlockGroup * inodeSize / Ext2StaticConstants.START_POSITION) + inodeTablePointer) * Ext2StaticConstants.START_POSITION;\n }", "private static int neededBlocks(int bytes) {\n\t\tint ret = bytes / BLOCK_SIZE;\n\t\tif (bytes % BLOCK_SIZE != 0) {\n\t\t\tret++;\n\t\t}\n\t\treturn ret;\n\t}", "private int advanceBlock(ArrayList<byte[]> lines){\n\t\tfor(num++; num<lines.size(); num++){\n\t\t\tbyte[] line=lines.get(num);\n\t\t\tif(line!=null && line.length>0 && line[0]!=' '){break;}\n\t\t}\n\t\treturn num;\n\t}", "public static int GetTotalBlocks()\n {\n return totalBlocks;\n }", "Block getBlockByNumber(long number);", "private int requestBlock() throws InodeNotEnoughDiskSpaceExcepcion{\n\t\t\n\t\tint blockAddr;\n\t\t\n\t\tif((blockAddr = DiskFreeSpaceManager.getInstance().firstFreeBlock()) == -1){\n\t\t\tthrow new InodeNotEnoughDiskSpaceExcepcion(\"Not enough disk space.\");\n\t\t}\n\t\t\n\t\treturn blockAddr;\n\t}", "public BigDecimal getBlockHeight() {\n return blockHeight;\n }", "public BigDecimal getPrevBlockHeight() {\n return prevBlockHeight;\n }", "int getBlockNumsCount();", "int getBlockNumsCount();", "public int findBlock( int position )\n {\n\n freeBlockList.moveToStart();\n freeBlockList.next();\n Integer key = -1;\n while ( !freeBlockList.isAtEnd() )\n {\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n key = (Integer)keyArray[0];\n if ( caller.equals( \"insert\" ) || caller.equals( \"check\" ) )\n {\n if ( key == position )\n {\n break;\n }\n\n }\n if ( caller.equals( \"remove\" ) )\n {\n if ( key > position )\n {\n break;\n }\n }\n freeBlockList.next();\n }\n\n return key;\n }", "public StructuredBlock getNextBlock(StructuredBlock subBlock) {\n\t\tif (subBlock == subBlocks[0]) {\n\t\t\tif (subBlocks[1].isEmpty())\n\t\t\t\treturn subBlocks[1].getNextBlock();\n\t\t\telse\n\t\t\t\treturn subBlocks[1];\n\t\t}\n\t\treturn getNextBlock();\n\t}", "public String getBlockPosition()\r\n\t{\r\n\t\treturn blockPosition;\r\n\t}", "public int getBlockId() {\n return blockId;\n \n }", "public int readNonBlock() {\n return (readIntNonBlock());\n }", "public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }", "public Block getLatestBlock() {\n int totalLength = blockChain.size();\n return this.blockChain.get(totalLength - 1);\n }", "private int hopsToTop(Block nextBlock, State goal, int blkLoc) {\n\t\tint idx = 0;\n\t\tfor(int i=0; i<stacksNum; i++){\n\t\t\tidx =1;\t//reset for every stack\n\t\t\tStack<Block> s =this.getStack(i);\n\t\t\tIterator<Block> iter = s.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tif(iter.next().getCh() != nextBlock.getCh()){\n\t\t\t\t\tidx++;\n\t\t\t\t}else{\n\t\t\t\t\treturn s.size()-idx+1;\t\t//as counted from bottom to top, hops will be subtracted\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} \n\t\treturn idx;\n\t}", "public abstract int neighboursInBlock(Set<Integer> block, int vertexIndex);", "public int getIterator(T element) {\n for (int j = 1; j < numberOfBlocks; ++j) {\n if (dataInBegin[j] != null && comparator.compare((T)dataInBegin[j], element) > 0) {\n for (int k = (len * (j - 1) << 1); k < endOfBlock[j - 1]; ++k) {\n if (comparator.compare((T) data[k], element) == 0) {\n return k;\n }\n }\n }\n }\n\n for (int k = (len * (numberOfBlocks - 1) << 1); k < endOfBlock[numberOfBlocks - 1]; k++)\n if (comparator.compare((T)data[k], element) == 0) {\n return k;\n }\n return NO_ELEMENT;\n }", "public abstract void generateNextBlock();", "public long nextUniqueID() {\n final Lock lock = sequenceBlocks.getLock(type);\n lock.lock();\n try {\n Data data = sequenceBlocks.get(type);\n if (data == null || !(data.getCurrentID() < data.getMaxID())) {\n data = getNextBlock();\n }\n\n final long id = data.getCurrentID();\n data.setCurrentID(id + 1);\n sequenceBlocks.put(type, data);\n return id;\n } finally {\n lock.unlock();\n }\n }", "@Override\n\tpublic long getFreeBlocks() {\n\t\treturn 0;\n\t}", "public int read(long addr) {\n\t\treturn findBlock(addr);\n\t}", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "protected void readBlock(BlockMetadata blockMetadata) throws IOException\n {\n readerContext.initialize(stream, blockMetadata, consecutiveBlock);\n ReaderContext.Entity entity;\n while ((entity = readerContext.next()) != null) {\n\n counters.getCounter(ReaderCounterKeys.BYTES).add(entity.getUsedBytes());\n\n byte[] record = entity.getRecord();\n\n if (record != null) {\n counters.getCounter(ReaderCounterKeys.RECORDS).increment();\n records.emit(record);\n }\n }\n }", "public int obtainBlkSize() {\n\t\t// loop until valid block size is received\n\t\tdo {\n\t\t\tsize = JOptionPane.showInputDialog(\"Please enter \"\n\t\t\t\t\t+ \"the size of the block: \");\n\t\t\tblkSize = Integer.parseInt(size);\n\t\t\tif ((blkSize > MINSIZE - 1) && (blkSize < MAXSIZE + 1)) {\n\t\t\t\tvalidSize = true;\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"The block size must be a \"\n\t\t\t\t\t\t+ \"integer which is greater than 2 and smaller \"\n\t\t\t\t\t\t+ \"than 17\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t} while (validSize == false);\n\t\treturn blkSize;\n\t}", "private int binarySearchEndBlock(int firstVis,List<BlockLine> blocks) {\n //end > firstVis\n int left = 0,right = blocks.size() - 1,mid,row;\n int max = right;\n while(left <= right){\n mid = (left + right) / 2;\n if(mid < 0) return 0;\n if(mid > max) return max;\n row = blocks.get(mid).endLine;\n if(row > firstVis) {\n right = mid - 1;\n }else if(row < firstVis) {\n left = mid + 1;\n }else{\n left = mid;\n break;\n }\n }\n return Math.max(0,Math.min(left,max));\n }", "T nextBlock() throws IOException, NoSuchElementException;", "public int getBlockNumber(int inodeOffset, Volume v){\n\n int blockNumber = 0;\n if(inodeOffset > v.getSuperBlock().getTotalInodes()){\n\n new Ext2Error(\"the inode offset is invalid as it is greater than the total number of inodes found in the superblock\").print();\n\n }else if(inodeOffset < v.getSuperBlock().getTotalInodes()){\n double inodeBlockGroup = getInodeBlockGroup(inodeOffset, v.getSuperBlock().getNumberOfInodesPerGroup()); //this is the block group that the inode is inside of\n int blockGroupPosition = getInodeIndex(inodeOffset, v.getSuperBlock().getNumberOfInodesPerGroup()); //gets the index of the inode in the group descriptors inode table\n int inodeTablePointer = v.getGroupDescriptor().getInodeTablePointers()[blockGroupPosition]; //the inode table inodeBlockGroup of the block group of the block group (1,2 or 3 in this instance)\n double block = calculateContainingBlock(inodeBlockGroup, v.getSuperBlock().getInodeSize(), inodeTablePointer);\n blockNumber = (int) block;\n }\n return blockNumber;\n }", "public long getPreviousBlock(long address){\n int marker = readMarkerUpperBits(address - 1);\n int blocksize;\n if(marker == 0) {\n blocksize = readLengthField(address - 2, 1);\n return address - blocksize - 1;\n } else if(marker == 15){\n return address - 1;\n }\n else {\n if (marker >= 9 && marker <= 11) {\n marker -= 8;\n }\n blocksize = readLengthField((address - 1 - marker), marker);\n if (isPreviousBlockUsed(address)) return address - blocksize - 2 * marker - 1;\n else return address - blocksize - 1;\n }\n }", "public int getCurrBytes() {\r\n\t\tint bytes = 0;\r\n\t\tTapeBlock curr = this.headLimit.getNext();\r\n\t\twhile(curr != this.tailLimit) {\r\n\t\t\tbytes += (curr.isTapemark()) ? 0 : curr.getBlockData().length;\r\n\t\t\tcurr = curr.getNext();\r\n\t\t}\r\n\t\treturn bytes;\r\n\t}", "public int getMaximumBlockSize()\n {\n return bouquet.getSheaf().getPageSize() - Pack.BLOCK_PAGE_HEADER_SIZE - Pack.BLOCK_HEADER_SIZE;\n }", "protected BlockStmt currentBlock() {\n return enclosingBlocks.peekFirst();\n }", "public int getBlockIdentCheckResult() {\n return blockIdentCheckResult;\n }", "public int readIntNonBlock() {\n return ((int) readLongNonBlock());\n }", "public int blockSize () {\n\t\treturn blockSize;\n\t}", "public Block getBlock()\n {\n return block;\n }", "@Override\n\tpublic synchronized MemoryBlock getBlock(String blockName) {\n\t\tMemoryBlock memoryBlock = nameBlockMap.get(blockName);\n\t\tif (memoryBlock != null) {\n\t\t\tif (memoryBlock == NoBlock) {\n\t\t\t\t// found placeholder, have searched and found nothing before\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn memoryBlock;\n\t\t}\n\n\t\tfor (MemoryBlock block : blocks) {\n\t\t\tif (block.getName().equals(blockName)) {\n\t\t\t\tnameBlockMap.put(blockName, block);\n\t\t\t\treturn block;\n\t\t\t}\n\t\t}\n\n\t\t// store placeholder there is no memory block with that name\n\t\tnameBlockMap.put(blockName, NoBlock);\n\t\treturn null;\n\t}", "public Block allocateAt(long p) {\n for (Block b : freeSpace) {\n if (b.start == p)\n return checkout(b, b.length);\n }\n return null;\n }" ]
[ "0.6618737", "0.6558993", "0.63320506", "0.6323522", "0.6217563", "0.6184012", "0.61660784", "0.61218363", "0.61182207", "0.60915726", "0.60846764", "0.60846764", "0.60799503", "0.60690725", "0.60690725", "0.6067989", "0.6017516", "0.6017516", "0.60047805", "0.5999389", "0.5987494", "0.5983982", "0.5978189", "0.59094477", "0.58920586", "0.582497", "0.5815997", "0.5809804", "0.5790357", "0.5784352", "0.57360095", "0.57237357", "0.57237357", "0.57156885", "0.5711407", "0.57047", "0.56850576", "0.56782657", "0.5674727", "0.5674727", "0.5649726", "0.5638208", "0.56061614", "0.5583614", "0.55824167", "0.5554439", "0.55533254", "0.55496216", "0.5548556", "0.54822534", "0.5480175", "0.54784274", "0.54634404", "0.54634404", "0.5443523", "0.5434389", "0.54328966", "0.5424354", "0.5415285", "0.5411234", "0.5388949", "0.53831637", "0.5361902", "0.53176093", "0.53154474", "0.5312194", "0.5281565", "0.52763855", "0.52527857", "0.52527857", "0.52504677", "0.52489847", "0.52398014", "0.52268744", "0.5225637", "0.52127767", "0.51939714", "0.51771754", "0.5170072", "0.5164872", "0.5156706", "0.5152535", "0.51491886", "0.5135785", "0.5135723", "0.51249194", "0.5117463", "0.5111011", "0.5104904", "0.51004577", "0.5098014", "0.5087073", "0.50849557", "0.50746626", "0.5067196", "0.50533634", "0.50481135", "0.50425386", "0.5023524", "0.5006457" ]
0.7106098
0
Returns the raw input stream for this file system. Typically this will be the random access file containing the .doc.
public abstract SeekInputStream getRawInput();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected InputStream getInputStream() throws IOException\n\t {\n\t FileInputStream fin = new FileInputStream(fFilename);\n\t BufferedInputStream bin = new BufferedInputStream(fin);\n\t return bin;\n\t }", "public InputStream getInputStream() throws IOException {\n return new FileInputStream(_file);\n }", "public InputStream getAsInputStream () {\r\n\r\n\t //code description\r\n\t \r\n\t if (this.document == null) return null;\r\n\t return new ByteArrayInputStream(this.getAsBytes());\r\n\t \r\n }", "public InputStream readDocumentAsStream(String path) ;", "public InputStream getInputStream() throws IOException {\r\n \t\t \t\r\n \t\t \t\r\n \t\t \tInputStream stream = null;\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t String newXml = null;\r\n\t\t\t\t Map<String, Object> options = new HashMap<String, Object>();\r\n\t\t\t\t options.put(\"includeSchema\", \"true\");\r\n\t\t\t\t// CONNECT TO RSUITE\r\n\t\t\t\t log.println(\"GETTING DOCUMENT WITH MO ID: \" + moId + \"...\");\r\n\t\t\t\t String document = repository.getAsString(moId, options);\r\n\t\t\t\t /*\r\n\t\t\t\t InputStream realInputStream = new URL(host + \"/rsuite/rest/v2/content/binary/id/\" + moId + \"?skey=\" + repository.sessionKey).openConnection().getInputStream();\r\n\t\t\t\t StringWriter writer = new StringWriter();\r\n\t\t\t\t IOUtils.copy(realInputStream, writer);\r\n\t\t\t\t String document = writer.toString();\r\n\t\t\t\t */\r\n\t\t\t\t log.println(\"DOCUMENT FOUND.\");\r\n\t\t\t\t log.print(document);\r\n\t\t\t\t \r\n\t\t\t\t // FIND ENCODING\r\n\t\t\t\t encoding = guessXMLEncoding(document);\r\n\r\n\t\t\t\t XMLStructureDefinitionType xmlStructureDefinitionType = getXMLStructureDefinitionType(document);\r\n\t\t\t\t newXml = document;\r\n\t\t\t\t \r\n\t\t\t\t switch (xmlStructureDefinitionType) {\r\n\t\t\t\t \tcase DTD:\r\n\t\t\t\t \t\tnewXml = replaceDtdDefinition(document, log);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase XSD:\r\n\t\t\t\t\t\tnewXml = replaceXsdDefinition(document, log);\t\r\n\t\t\t\t\tbreak;\t\r\n\t\t\t\t }\r\n\t\t\t\t if (newXml == null) {\r\n\t\t\t\t\t newXml = document;\r\n\t\t\t\t }\r\n\t\t\t\t log.println(\"XML CONVERTED\");\r\n\t\t\t\t log.println(newXml);\r\n\t\t\t\t // RETURN DOCUMENT\r\n\t\t\t\t log.println(\"CREATING INPUT STREAM FROM NEW DOCUMENT...\");\r\n\t\t\t\t stream = new ByteArrayInputStream(newXml.getBytes(encoding));\r\n\t\t\t\t log.println(\"STREAM CREATED SUCCESSFULLY.\");\r\n\t\t\t}\r\n\t\t\tcatch(Throwable t){\r\n\t\t\t\tt.printStackTrace(log);\r\n\t\t\t\tfor (Throwable t1 : t.getSuppressed()) {\r\n\t\t\t\t\tt1.printStackTrace(log);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t\tlog.println(\"RETURNING STREAM TO OXYGEN...\");\r\n\t\t\treturn stream;\r\n\t\t}", "public InputStream getInputStream();", "public InputStream getInputStream();", "public InputStream getInputStream() throws IOException {\r\n return mFile.getInputStream();\r\n }", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "public InputStream getStream() {\n\t\treturn new ByteArrayInputStream(os.toByteArray());\n\t}", "private InputStream openContentStream() {\n\t\tString contents =\n\t\t\t\"This is the initial file contents for *.opera file that should be word-sorted in the Preview page of the multi-page editor\";\n\t\treturn new ByteArrayInputStream(contents.getBytes());\n\t}", "Stream<In> getInputStream();", "public InputStream getStream();", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "@Override\r\n\tpublic InputStream getInputStream() throws IOException {\n\t\treturn this.s.getInputStream();\r\n\t}", "public InputStream getInputStream() throws IOException;", "public InputStream getInputStream() throws IOException;", "public static\n InputStream inputStream() {\n return Input.wrappedInputStream;\n }", "public File getInputFile() {\n\t\treturn infile;\n\t}", "public String getInputFile() {\n return inputFile;\r\n }", "InputStream getInputStream() throws FileSystemException;", "public InputStream getStream() {\n\t\treturn this.in;\n\t}", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "@Override\n public InputStream openInternalInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public File getInputFile() {\n return inputFile;\n }", "@NotNull InputStream openInputStream() throws IOException;", "public InputStream getInputStream()\r\n\t{\r\n\t\treturn this.inputStream;\r\n\t}", "public InputStream getInputStream() throws IOException {\n/* 521 */ return Minecraft.getMinecraft().getResourceManager().getResource(p_148612_0_).getInputStream();\n/* */ }", "public InputStream getIn() {\n\t\treturn proc.getInputStream();\n\t}", "public InputStream getInputStream()\n/* */ {\n/* 105 */ InputStream in = ResourceUtils.getResourceAsStream(this, this);\n/* */ \n/* 107 */ return in;\n/* */ }", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "public final InputStream returnStream()\n\t{\n\t\treturn stream;\n\t}", "private ObjectInputStream getInputStream() {\n\t\t// retornamos el stream de entrada\n\t\treturn this.inputStream;\n\t}", "public static Document getDocument(InputStream input)\n {\n return XMLTools.getDocument(input, false);\n }", "public InputStream getInputStream() {\n return this.inputStream;\n }", "public InputStream getInputStream() {\n\t\treturn fromMonet;\n\t}", "public InputStream getInputStream() {\n\t\treturn inputStream;\n\t}", "public InputStream getInputStream() {\n\t\treturn inputStream;\n\t}", "public InputStream getStream() {\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }", "public InputStream getInputStream() {\n return this.inputStream;\n }", "public InputStream getInputStream() throws IOException {\n return body.getInputStream();\n }", "public InputStream getInputStream() {\n if (fTDeviceInputStream == null) {\n fTDeviceInputStream = new FTDeviceInputStream(this);\n }\n return fTDeviceInputStream;\n }", "protected final InputStream getStream() { return _inputSource; }", "public InputStream getInputStream()\n throws ProcessingException, IOException {\n try {\n return this.source.getInputStream();\n } catch (SourceException e) {\n throw SourceUtil.handle(e);\n }\n }", "public InputStream getInputStream() {\n return inputStream;\n }", "public InputStream getInputStream() {\n return inputStream;\n }", "public InputStream getInputStream() throws IOException {\n \t\treturn liveHelpURL.openStream();\r\n \t}", "public BCPGInputStream getInputStream()\n {\n return in;\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 File getStdin() {\n return mStdin;\n }", "public abstract InputStream getInputStream() throws AccessException;", "@Override\n public InputStream openInputFile(String pathname) throws IOException {\n return new FileInputStream(pathname);\n }", "public InputStream getInputStream() throws IOException {\n return this.mContext.getAssets().open(this.mAssetName);\n }", "@Override\n public InputStream getContentInputStream()\n {\n final class LockingFileInputStream extends FileInputStream\n {\n /** The lock to lock while reading the file. */\n private Lock lock;\n\n /**\n * The Constructor.\n *\n * @param toRead the file for this stream to read.\n * @param lock the lock to lock on creation of the stream and unlock when it is closed.\n * @throws IOException if the extended FileInputStream throws one.\n */\n public LockingFileInputStream(final File toRead, final Lock lock) throws IOException\n {\n super(toRead);\n this.lock = lock;\n lock.lock();\n }\n\n /** {@inheritDoc} */\n public void close() throws IOException\n {\n // Make sure this only happens once.\n if (this.lock != null) {\n super.close();\n this.lock.unlock();\n this.lock = null;\n }\n }\n }\n\n try {\n return new AutoCloseInputStream(\n new LockingFileInputStream(this.storageFile, this.lock.readLock()));\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to get InputStream\", e);\n }\n }", "InputStream openStream() throws IOException;", "private InputStream openContentStream() {\n\t\t// ok, where do we dump our layers to?\n\t\tfinal ByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\t// hmm, now actually output the layers\n\t\tDebriefEclipseXMLReaderWriter.exportThis(_myNewLayers, bos);\n\n\t\t// and return our OS as an IS\n\t\treturn new ByteArrayInputStream(bos.toByteArray());\n\t}", "@Override\n public InputStream getInputStream(String templateName) throws IOException {\n if (templateName.contains(\"..\")) {\n throw new RuntimeException(\"templateName must not contain '..' characters\");\n }\n String templateFile = WELL_KNOWN_CONTAINER + \"/\" + templateName.replaceAll(\"^/+\", \"\"); // remove heading separator\n log.trace(\"locating template file: \" + templateFile + \"; requested template name: \" + templateName);\n try {\n Resource res = StaticResourceServlet.StaticResourceProvider.getInstance().getResource(getServletContext(), templateFile);\n if (res.notFound()) {\n throw new IOException(\"Template file not found: \" + templateName);\n }\n return new ByteArrayInputStream(res.getData());\n } catch (Exception e) {\n throw new IOException(\"Failed open template: \" + templateName, e);\n }\n }", "public FileQuerySerialization getInputSerialization() {\n return inputSerialization;\n }", "public InputStream getInputStream() throws IOException {\r\n if (!connected)\r\n connect();\r\n\r\n return zipFile.getInputStream(zipEntry);\r\n }", "public final SMBInputStream asInputStream()\n\t\tthrows SMBException {\n\n\t\t// Check if the file is a directory\n\n\t\tif ( isDirectory())\n\t\t\tthrow new SMBException(SMBStatus.DOSInvalidFunc, SMBStatus.ErrDos);\n\n\t\t// Create the input stream\n\n\t\treturn new SMBInputStream(this);\n\t}", "public InputStream getFXMLInputStream() {\n return new ByteArrayInputStream(\n FXMLResource.getBytes(StandardCharsets.UTF_8));\n }", "public InputStream getDefaultInputStream() {\n return defaultInputStream;\n }", "private File getIOFile() {\n \t\tIPath location = resource.getLocation();\n \t\tif(location!=null) {\n \t\t\treturn location.toFile();\n \t\t}\n \t\treturn null;\n \t}", "@Override\n\tpublic InputStream getInputStream() throws IOException {\n\t\treturn null;\n\t}", "public LoggedDataInputStream getInputStream() {\n return inputStream;\n }", "public final PrintStream getInputStream() {\n return inputStream;\n }", "public InputStream openInputStream(String path) throws SystemException;", "private InputStream getInstream() {\r\n\t\tif (instream == null) try {\r\n\t\t\tinstream = new FileInputStream(file);\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tthrow new RuntimeException(\"Couldn't create instream for test\", ioe);\r\n\t\t}\r\n\t\treturn instream;\r\n\t}", "public InputStream asByteStream() {\n return new ByteArrayInputStream(rawBytes);\n }", "public InputStream getInputStream(long position);", "public InputStream getInputStream() throws MorseException {\n\t\treturn null;\r\n\t}", "protected File getCurrentDocument() {\n\n return (File)stage.getProperties().get(GlobalConstants.CURRENT_DOCUMENT_PROPERTY_KEY);\n }", "public File getDisplayDocument() {\n\t\tswitch (type) {\n\t\t\tcase SOURCE : return doc.getSourceDocument();\n\t\t\tcase TARGET : return doc.getWorkingDocument();\n\t\t}\n\t\treturn null;\n\t}", "public static InputStream nullInput() {\n if(nullIn == null) {\n nullIn = new NullInputStream();\n }\n return nullIn;\n }", "public String getInputFilePath() {\n return inputFilePath;\n }", "public InputStream openInputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public default InputStream getBinaryStream() throws JdbxException\n\t{\n\t\treturn get(GetAccessors.BINARYTREAM);\n\t}", "public Document readDocument();", "@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }", "public FileInputStream openFileInput(final String path)\n throws java.io.FileNotFoundException {\n return GDFileSystem.openFileInput(path);\n }", "public java.io.File getFileSource(){\n return null;\n }", "protected final ByteSource getInput(String name) {\n try {\n if (name.equals(\"-\")) {\n return new StandardInputSource();\n } else {\n File file = new File(name);\n if (!file.exists()) {\n throw new FileNotFoundException(name);\n } else if (file.isDirectory()) {\n throw new IOException(name); // TODO Message? Exception?\n } else if (!file.canRead()) {\n throw new IOException(name); // TODO Message? Exception?\n } else {\n return Files.asByteSource(file);\n }\n }\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }", "public InputStream asInputStream() {\n return new ByteArrayInputStream(data);\n }", "protected abstract InputStream getFile(final String path);", "public Reader getReader() {\n return in;\n }", "public AudioInputStream getSample() {\n\t\t\ttry {\n\t\t\t\tif (file != null) {\n\t\t\t\t\tfile.close();\n\t\t\t\t}\n\t\t\t\tfile = AudioFileHandler.OpenFile(filepath);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn file;\n\t\t}", "@Override\r\n public Object getBufferedFileInputStream(String name) {\n return null; \r\n }", "public COSInputStream createInputStream() throws IOException\n {\n return stream.createInputStream();\n }", "private Document getDocument(String in) throws DocumentException, IOException {\n \t\tString path=getClass().getPackage().getName().replaceAll(\"\\\\.\",\"/\");\n \t\tInputStream stream=Thread.currentThread().getContextClassLoader().getResourceAsStream(path+\"/\"+in);\n \t\tSAXReader reader=new SAXReader();\n \t\tDocument doc=reader.read(stream);\n \t\tstream.close();\n \t\treturn doc;\n \t}", "public ReplayInputStream getReplayInputStream() throws IOException {\n return getRecordedInput().getReplayInputStream();\n }", "FileObject getFile();", "FileObject getFile();", "StreamReader underlyingReader();", "public InputStream openInputStream() throws IOException {\n return super.openInputStream();\n //StringBuilder sb = getCharContent(true);\n //ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //( charset ==null ? new OutputStreamWriter(baos) : new OutputStreamWriter(baos,charset) )\n // .write(sb.toString()); // ouch!\n //return new ByteArrayInputStream(baos.toByteArray()); // another ouch!\n }", "public RandomAccessFile getFile()\n {\n \treturn f;\n }", "public InputStream open() {\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/{1}.groovy\",\n scenario.getName().toLowerCase(), name));\n }", "InputStream getDataStream();" ]
[ "0.6866603", "0.6801019", "0.67549527", "0.674408", "0.67217314", "0.67042327", "0.67042327", "0.66809726", "0.6575156", "0.6575156", "0.6533479", "0.65201306", "0.64917266", "0.6484974", "0.64144766", "0.64104694", "0.6410208", "0.6410208", "0.63872653", "0.6356354", "0.63369375", "0.6306289", "0.6260393", "0.62473464", "0.62473464", "0.62473464", "0.6241709", "0.6236871", "0.61997133", "0.6182589", "0.6180132", "0.61775064", "0.61539567", "0.61264247", "0.61135024", "0.6073728", "0.607301", "0.60547626", "0.6045205", "0.6040328", "0.6040328", "0.6024913", "0.6008977", "0.60028356", "0.6002708", "0.60009193", "0.59924304", "0.59908104", "0.59908104", "0.5971641", "0.5963549", "0.59470165", "0.59338176", "0.592598", "0.59227204", "0.59173566", "0.5916553", "0.5912222", "0.5900928", "0.58836764", "0.58617944", "0.5843504", "0.5838613", "0.58254105", "0.57986873", "0.57900757", "0.5781891", "0.5740689", "0.57370347", "0.573468", "0.56917447", "0.5689822", "0.5677616", "0.5675383", "0.5669903", "0.5668679", "0.5654396", "0.5631331", "0.5625828", "0.56104994", "0.55970603", "0.5594412", "0.5592275", "0.559182", "0.55868226", "0.5579963", "0.55783427", "0.5556178", "0.5536833", "0.5535894", "0.5532834", "0.5529221", "0.5485742", "0.5483357", "0.5483357", "0.54716957", "0.54683715", "0.5467932", "0.5444084", "0.5442166" ]
0.61188966
34
Paint.setTextSize(float textSize) default unit is px.
public int sp2px(float spValue) { final float fontScale = getResources().getDisplayMetrics().scaledDensity; return (int) (spValue * fontScale + 0.5f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "public float getTextSizePx() {\n return mPaint.getTextSize();\n }", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "public float getFontSize();", "public float getTextSize() {\n return mTextSize;\n }", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "public void setTextLabelFontSize(int mTextLabelFontSize) {\n\t\tthis.mTextLabelFontSize = mTextLabelFontSize;\n\t}", "public double getFontSize(\n )\n {return fontSize;}", "public int getFontSize();", "public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }", "public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}", "public float getTextSize() {\n return mTextContainer.getTextSize();\n }", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "private int getFontSize(LabelGeometry geom)\r\n {\r\n float fontSize = AWTUtilities.getFontSize(geom.getRenderProperties().getFont());\r\n\r\n // Scale based on the view\r\n Function<Kilometers, Float> scaleFunction = geom.getRenderProperties().getScaleFunction();\r\n if (scaleFunction != null)\r\n {\r\n float viewScale = scaleFunction.apply(myViewAltitudeSupplier.get()).floatValue();\r\n fontSize *= viewScale;\r\n }\r\n\r\n return Math.round(fontSize);\r\n }", "public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}", "public float getFontSize() {\n return fontSize;\n }", "private static void setTextSizeForWidth(Paint paint, String text, float desiredWidth) {\n\n // Pick a reasonably large value for the test. Larger values produce\n // more accurate results, but may cause problems with hardware\n // acceleration. But there are workarounds for that, too; refer to\n // http://stackoverflow.com/questions/6253528/font-size-too-large-to-fit-in-cache\n final float defaultTextSize = 44f;\n paint.setTextSize(defaultTextSize);\n Rect textBounds = new Rect();\n paint.getTextBounds(text, 0, text.length(), textBounds);\n // Calculate the desired size as a proportion of our testTextSize.\n if (textBounds.width() > desiredWidth) {\n float desiredTextSize = defaultTextSize * (desiredWidth / textBounds.width());\n\n // Set the paint for that size.\n paint.setTextSize(desiredTextSize);\n }\n\n }", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}", "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}", "public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}", "public final int getFontSize() {\n return fontSize;\n }", "public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }", "public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;", "public static void setDefaultTextSize(int defaultTextSize) {\n if (defaultTextSize < 0){\n throw new IllegalArgumentException(\"The text size must be >= 0\");\n }\n DEFAULT_TEXT_SIZE = defaultTextSize;\n }", "public void setFontSize(int fontSize) {\r\n try {\r\n this.setFont(this.getFont().deriveFont((float) fontSize));\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font size\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "public int setTextSize(int textSelection) {\n // Sets the text size in Settings\n Settings.setTextSize(textSelection);\n\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n return Settings.getTextSize();\n }", "public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "public ComDialogBuilder setMessageTextSize(int textsize) {\n if(dialogMsg!=null){\n dialogMsg.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }", "public int fontSize() {\n\t\treturn fixedFontSize;\n\t}", "public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }", "public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }", "public int getLabelTextSize(){\n return labelTextSize;\n }", "public void adjustTextFontSize(View view) {\n if (this.minimumFontSizeInPixels >= FONT_SIZE_EPSILON && (view instanceof TextView)) {\n TextView textView = (TextView) view;\n float densityScale = view.getResources().getDisplayMetrics().density;\n if (densityScale <= 0.0f) {\n densityScale = DEFAULT_SHADOW_RADIUS;\n }\n int value = textView.getWidth() - (textView.getTotalPaddingLeft() + textView.getTotalPaddingRight());\n if (!(this.layoutParams == null || this.layoutParams.optionWidth == null || this.layoutParams.autoFillsWidth)) {\n value -= (int) Math.ceil((double) densityScale);\n }\n if (value > 0) {\n float viewContentWidth = (float) value;\n String text = null;\n if (textView.getText() != null) {\n text = textView.getText().toString();\n }\n if (text != null && text.length() > 0) {\n float previousFontSize = textView.getTextSize();\n textView.setTextSize(0, this.unscaledFontSizeInPixels);\n while (true) {\n float currentFontSize = textView.getTextSize();\n if (currentFontSize >= this.minimumFontSizeInPixels + FONT_SIZE_EPSILON) {\n TextPaint textPaint = textView.getPaint();\n if (textPaint == null) {\n break;\n }\n float textWidth = textPaint.measureText(text);\n if (textWidth <= viewContentWidth) {\n break;\n }\n textView.setTextSize(0, Math.max(Math.min((viewContentWidth / textWidth) * currentFontSize, currentFontSize - densityScale), this.minimumFontSizeInPixels));\n } else {\n break;\n }\n }\n if (Math.abs(textView.getTextSize() - previousFontSize) >= FONT_SIZE_EPSILON) {\n final View finalView = view;\n view.post(new Runnable() {\n public void run() {\n finalView.requestLayout();\n }\n });\n }\n }\n }\n }\n }", "public final void setFontSize(final String fontSize) {\n if (fontSize.charAt(0) == '-') {\n float newSize = Integer.parseInt(fontSize);\n setFontSize(getFontSize() + (int) newSize);\n } else if (fontSize.charAt(0) == '+') {\n float newSize = Integer.parseInt(\n fontSize.substring(1));\n setFontSize(getFontSize() + (int) newSize);\n } else {\n float newSize = Integer.parseInt(fontSize);\n setFontSize((int) newSize);\n }\n }", "public String getFontSize () {\n\t\treturn fontSizeTextField.getText();\n\t}", "public void setText(String text, int textSize, Colour textColour) {\n this.text = text;\r\n this.textSize = textSize;\r\n this.textColour = textColour;\r\n xTextOffset = w / 2 - text.length() * 7.666f;\r\n yTextOffset = h / 2 + textSize / 2.6666f;\r\n }", "public int getFontSize()\n \t{\n \t\treturn 13;\n \t}", "private void setRawTextSize(float f) {\n if (f != this.mTextView.getPaint().getTextSize()) {\n this.mTextView.getPaint().setTextSize(f);\n boolean bl = false;\n if (Build.VERSION.SDK_INT >= 18) {\n bl = this.mTextView.isInLayout();\n }\n if (this.mTextView.getLayout() != null) {\n this.mNeedsAutoSizeText = false;\n try {\n Method method = this.getTextViewMethod(\"nullLayouts\");\n if (method != null) {\n method.invoke((Object)this.mTextView, new Object[0]);\n }\n }\n catch (Exception exception) {\n Log.w((String)\"ACTVAutoSizeHelper\", (String)\"Failed to invoke TextView#nullLayouts() method\", (Throwable)exception);\n }\n if (!bl) {\n this.mTextView.requestLayout();\n } else {\n this.mTextView.forceLayout();\n }\n this.mTextView.invalidate();\n }\n }\n }", "public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }", "public int getFontSize()\r\n {\r\n return myFontSize;\r\n }", "private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}", "public static void adjustFontSize(Paint paint, String text,\r\n int charCount, Rect area, boolean isVerticalDirection) {\r\n Rect bounds = new Rect();\r\n paint.getTextBounds(text, 0, text.length(), bounds);\r\n\r\n float currentCharCount;\r\n if (!isVerticalDirection){\r\n currentCharCount = area.width() / (1.0f * bounds.width() / text.length());\r\n } else {\r\n currentCharCount = 1.0f * area.height() / bounds.height();\r\n }\r\n float newTextSize = paint.getTextSize() * currentCharCount / charCount;\r\n\r\n paint.setTextSize(newTextSize);\r\n }", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "void setFontScale(\n float s);", "public int getMyFontSize() {\n return myFont.size; /*Fault:: return 5; */\n }", "void setFontSize(float fontSize)\r\n\t{\r\n\t\tint fontIndex = appearanceTokens.indexOf(Operator.getOperator(\"Tf\"));\r\n\t\tif (fontIndex != -1)\r\n\t\t{\r\n\t\t\tappearanceTokens.set(fontIndex - 1, new COSFloat(fontSize));\r\n\t\t}\r\n\t}", "public int getTextLabelFontSize() {\n\t\treturn mTextLabelFontSize;\n\t}", "private float getFontHeight(Paint paint) {\n Rect rect = new Rect();\n paint.getTextBounds(\"1\", 0, 1, rect);\n return rect.height();\n }", "public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public PatchTextStyleProperties fontSize(String fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "public void setExampleDimension(float exampleDimension) {\n mTextSize = exampleDimension;\n invalidateTextPaintAndMeasurements();\n }", "public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "public native final EditorBaseEvent fontSize(String val) /*-{\n\t\tthis.fontSize = val;\n\t\treturn this;\n\t}-*/;", "public FontData deriveFont(float size) {\n return deriveFont(size, javaFont.getStyle());\n }", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "public static void setDefaultSize(int size) {\r\n\t\tSet<Object> keySet = UIManager.getLookAndFeelDefaults().keySet();\r\n\t\tObject[] keys = keySet.toArray(new Object[keySet.size()]);\r\n\r\n\t\tfor (Object key : keys) {\r\n\t\t\tif (key != null && key.toString().toLowerCase().contains(\"font\")) {\r\n\t\t\t\tFont font = UIManager.getDefaults().getFont(key);\r\n\t\t\t\tif (font != null) {\r\n\t\t\t\t\tfont = font.deriveFont((float)size);\r\n\t\t\t\t\tUIManager.put(key, font);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void adjustTextSize(String str) {\n int i;\n int i2 = this.mMinTextSize;\n int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();\n int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight();\n this.mWidthLimit = width;\n this.mAvailableSpaceRect.right = (float) width;\n this.mAvailableSpaceRect.bottom = (float) height;\n if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) {\n i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect);\n } else {\n i = 40;\n }\n this.mEditText.setTextSize(0, (float) i);\n }", "public StockEvent setFontSize(Integer fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "@Override\n public Dimension measureText(String text) {\n return graphicsEnvironmentImpl.measureText(canvas, text);\n }", "private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}", "private void setTextSize(ViewHolder holder) {\n // Get the text size string from SharedPreferences and check for the value associated with the key\n String textSize = sharedPrefs.getString(\n mContext.getString(R.string.settings_text_size_key),\n mContext.getString(R.string.settings_text_size_default));\n\n // Change text size of TextView by using the user's stored preferences\n if(textSize.equals(mContext.getString(R.string.settings_text_size_medium_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp22));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_small_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp20));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_large_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp24));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp18));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n }\n }", "public DisplayText (GraphicsContext gc, Canvas gameCanvas, int size) {\n\t\tthis.gc = gc;\n\t\tthis.gameCanvas = gameCanvas;\n\t\t\n\t\t vector = Font.loadFont(getClass().getResourceAsStream(\"/fonts/Vectorb.ttf\"), size); //load my custom font at the specified size \n\t}", "public static float textHeight(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).height;\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "@Override\r\n\tpublic int getFontSize() {\n\t\treturn 0;\r\n\t}", "float getFontSize()\r\n\t{\r\n\t\tif (!appearanceTokens.isEmpty())\r\n\t\t{\r\n\t\t\t// daString looks like \"BMC /Helv 3.4 Tf EMC\"\r\n\t\t\t// use the fontsize of the default existing apperance stream\r\n\t\t\tint fontIndex = appearanceTokens.indexOf(Operator.getOperator(\"Tf\"));\r\n\t\t\tif (fontIndex != -1)\r\n\t\t\t{\r\n\t\t\t\treturn ((COSNumber) appearanceTokens.get(fontIndex - 1)).floatValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0f;\r\n\t}", "private int calculateFontSize(ImageProcessor processor, double ratioHeightForLabel) {\n // Converts sumSizes into the average size in each dimension\n sumSizes.scale(1.0 / labels.size());\n FontSizeCalculator calculator = new FontSizeCalculator(processor, labels.stream());\n return calculator.calculateOptimalFontSize(sumSizes, ratioHeightForLabel);\n }", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public int getButtonTextSize(){\n return buttonTextSize;\n }", "double getFontSizeAdjustment() {\n return fontSizeAdjustment;\n }", "public Float getHightlightedTextSize() {\n if (mHightlightedTextSize != null)\n return mHightlightedTextSize;\n return getTextSize();\n }", "private void fitTextToView() {\n int currentTextSize = (int) getTextSize();\n if (currentTextSize == mMinTextSize) {\n return;\n }\n\n final float width = getAvailableWidth();\n final String currentText = getText().toString();\n\n if (width <= 0 || TextUtils.isEmpty(currentText)) {\n return;\n }\n\n mTextPaint.set(getPaint());\n mTextPaint.setTextSize(currentTextSize);\n\n while (mTextPaint.measureText(currentText) > width && currentTextSize > mMinTextSize) {\n currentTextSize -= mTextSizeIncrement;\n mTextPaint.setTextSize(currentTextSize);\n }\n\n currentTextSize = Math.max(currentTextSize, mMinTextSize);\n setEllipsize(currentTextSize == mMinTextSize ? TextUtils.TruncateAt.END : null);\n\n setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize);\n }", "public void setPenSize(int pixelSize){\n myPen.setPenSize(pixelSize);\n }", "@RestrictTo(value={RestrictTo.Scope.LIBRARY_GROUP})\n void autoSizeText() {\n if (!this.isAutoSizeEnabled()) {\n return;\n }\n if (this.mNeedsAutoSizeText) {\n if (this.mTextView.getMeasuredHeight() <= 0) {\n return;\n }\n if (this.mTextView.getMeasuredWidth() <= 0) {\n return;\n }\n int n = this.invokeAndReturnWithDefault((Object)this.mTextView, \"getHorizontallyScrolling\", false) != false ? 1048576 : this.mTextView.getMeasuredWidth() - this.mTextView.getTotalPaddingLeft() - this.mTextView.getTotalPaddingRight();\n int n2 = this.mTextView.getHeight() - this.mTextView.getCompoundPaddingBottom() - this.mTextView.getCompoundPaddingTop();\n if (n <= 0) {\n return;\n }\n if (n2 <= 0) {\n return;\n }\n RectF rectF = TEMP_RECTF;\n synchronized (rectF) {\n TEMP_RECTF.setEmpty();\n AppCompatTextViewAutoSizeHelper.TEMP_RECTF.right = n;\n AppCompatTextViewAutoSizeHelper.TEMP_RECTF.bottom = n2;\n float f = this.findLargestTextSizeWhichFits(TEMP_RECTF);\n if (f != this.mTextView.getTextSize()) {\n this.setTextSizeInternal(0, f);\n }\n }\n }\n this.mNeedsAutoSizeText = true;\n }", "public static float textWidth(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).width;\n }", "public double strLen(String str, double size) {\n return mcFont().getStringWidth(str) * size / mcFont().FONT_HEIGHT;\n }", "public final void setFontSize(final int fontSize) {\n if (this.fontSize != fontSize) {\n this.fontSize = fontSize;\n flush();\n }\n }", "public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }", "public Builder setContentTextSize(float size) {\n this.contentTextSize = size;\n return this;\n }", "public static int getAreaButtonTextSize(Context context, Typeface typeface) {\n DisplayMetrics displayMetrics = context.getResources()\n .getDisplayMetrics();\n // int deviceWidth = displayMetrics.widthPixels;\n int deviceWidth = displayMetrics.widthPixels;\n\n return determineTextSize(typeface, (int) (0.23f * (.14f * deviceWidth)));\n\n }", "public void setFontSize(int font) {\n\t\tthis.font = font;\n\t}", "public ModernAutoSizeLabel(String text, Font font) {\r\n super(text, font);\r\n }", "public void setLabelFont(Font f);", "public void setSize(String size) {\n this.size = size;\n }", "@ReactMethod\n public void setFontSize(float fontSize, Promise promise){\n if (woyouService == null) {\n Toast.makeText(this.reactContext, R.string.printer_disconnect, Toast.LENGTH_LONG).show();\n promise.reject(\"0\", \"\");\n }\n\n try {\n woyouService.setFontSize(fontSize, null);\n promise.resolve(null);\n } catch (RemoteException e) {\n promise.reject(\"0\", e.getMessage());\n }\n }", "public float getFontHeight(float fontSize) {\n Font f = getNormalFont(fontSize);\n FontMetrics fm = svgGenerator.getFontMetrics(f);\n return fm.getHeight();\n }" ]
[ "0.8578503", "0.8228485", "0.8134374", "0.79362017", "0.7310464", "0.7183373", "0.7015028", "0.6925667", "0.6888092", "0.6841686", "0.68403244", "0.6838878", "0.67778176", "0.6777546", "0.67264503", "0.6627711", "0.6611977", "0.6609141", "0.6595694", "0.65921605", "0.65699303", "0.65452325", "0.65036666", "0.64749175", "0.64736485", "0.6449779", "0.6419881", "0.63729113", "0.6362826", "0.635794", "0.63278633", "0.6323924", "0.6280391", "0.6272133", "0.62613165", "0.62464434", "0.62307155", "0.62207395", "0.6216549", "0.61835617", "0.6155874", "0.6151191", "0.6130383", "0.61263496", "0.61207557", "0.61149144", "0.6105255", "0.6091459", "0.60783756", "0.60562336", "0.60498065", "0.60462594", "0.6044221", "0.6043744", "0.60367894", "0.6030694", "0.60281265", "0.60270536", "0.6018838", "0.5942625", "0.59367365", "0.5929389", "0.59178346", "0.5914551", "0.5907957", "0.5900239", "0.58976716", "0.5895802", "0.58717763", "0.58686084", "0.5861409", "0.5854132", "0.5851788", "0.58447725", "0.58139205", "0.58137846", "0.58128023", "0.5810218", "0.57620144", "0.57508874", "0.57463413", "0.574228", "0.57378983", "0.57347655", "0.5705821", "0.5696553", "0.56948435", "0.5693631", "0.5677533", "0.56689596", "0.56670797", "0.566567", "0.56535494", "0.5650019", "0.56188804", "0.55991393", "0.5594639", "0.5591938", "0.5582281", "0.5574531", "0.55341434" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.detail_viewpager, container, false); title = getArguments().getString("title"); subtitle = getArguments().getString("subtitle"); writer = getArguments().getString("writer"); image = getArguments().getString("image"); position = getArguments().getInt("position"); max = getArguments().getInt("max"); TextView titleView = (TextView)v.findViewById(R.id.detail_viewpager_title); TextView subtitleView = (TextView)v.findViewById(R.id.detail_viewpager_subtitle); TextView writerView = (TextView)v.findViewById(R.id.detail_viewpager_writer); ImageView imageView = (ImageView)v.findViewById(R.id.detail_viewpager_image); TextView indexView = (TextView)v.findViewById(R.id.detail_viewPager_index); titleView.setText(title); subtitleView.setText(subtitle); writerView.setText("by."+writer); indexView.setText((position+1)+"/"+max); Glide.with(getContext()).load(image).into(imageView); imageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(getContext(), FullScreenImageActivity.class); intent.putExtra("url", image); startActivity(intent); } }); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348", "0.66202056", "0.66176945", "0.66094035", "0.65976113", "0.65937936", "0.6585841", "0.6585124", "0.65741223", "0.65721804", "0.65698904", "0.65695107", "0.6569451", "0.6568099", "0.6565633", "0.6554688", "0.65533894", "0.65447044", "0.65432465", "0.6542017", "0.65385425", "0.6537571", "0.65369105", "0.6535379", "0.6533447", "0.6533258", "0.65316767", "0.6529574", "0.6528449", "0.65262675", "0.6525467", "0.6525181", "0.6524235", "0.6523963", "0.65187466", "0.65138274", "0.65137535", "0.6513218", "0.6513202", "0.65115535", "0.651113", "0.6510943", "0.6510124", "0.65094703", "0.65082514", "0.65038425", "0.65023196", "0.6501983", "0.65014684", "0.64982104", "0.64945936", "0.6492533", "0.6491023", "0.6488248", "0.64879525", "0.6487852", "0.6487744", "0.64873713", "0.6487171", "0.64851", "0.6485003", "0.6483167", "0.6482433", "0.64824027", "0.6481711", "0.6480902", "0.64779234", "0.64767206", "0.6476515", "0.6475657", "0.64747864", "0.64715266", "0.64714354", "0.64711314", "0.6470619", "0.6468112", "0.6466466", "0.64631015", "0.646268", "0.6462456", "0.64620507" ]
0.0
-1
/ access modifiers changed from: protected / JADX WARNING: Code restructure failed: missing block: B:15:0x003f, code lost: if (r0 != 2) goto L_0x0056;
@NonNull public Result onRunJob(@NonNull Params params) { if (mContext == null) { mContext = getContext(); } LogUtil.write("location job : onRunJob() "); String panelId = PrefUtils.getPanelId(mContext); if (panelId == null || "".equals(panelId)) { LogUtil.write("location job not operate : Not Login"); return Result.SUCCESS; } else if (!checkPermission()) { LogUtil.write("location job not operate : no have permission"); return Result.SUCCESS; } else { int engineStatus = Plengi.getInstance(mContext).getEngineStatus(); if (engineStatus == -1) { LoplatManager.initLoplatEngine(mContext, panelId); LogUtil.write("Loplat SDK NOT INITIALIZED : init ok"); } else if (engineStatus != 0) { } LoplatManager.start(mContext); LogUtil.write("Loplat SDK STOPPED : start ok"); final LocationGpsRequest locationGpsRequest = new LocationGpsRequest(getContext()); locationGpsRequest.gps_state = LocationStateExt.getGpsState(getContext()); locationGpsRequest.execute_time = new Date().getTime(); try { Location lastKnownLocation = ((LocationManager) getContext().getSystemService("location")).getLastKnownLocation("gps"); locationGpsRequest.lat = lastKnownLocation.getLatitude(); locationGpsRequest.lng = lastKnownLocation.getLongitude(); } catch (Exception unused) { } HttpManager.getInstance().sendGpsState(locationGpsRequest, new Callback() { public void onFailure(Call call, IOException iOException) { DBOpenHelper.getInstance(LocationJob.this.getContext()).insertGpsState(locationGpsRequest); StringBuilder sb = new StringBuilder(); sb.append("sendGpsState.onFailure : "); sb.append(iOException.getMessage()); LogUtil.write(sb.toString()); } public void onResponse(Call call, Response response) throws IOException { try { StringBuilder sb = new StringBuilder(); sb.append("sendGpsState.onResponse : "); sb.append(response.body().string()); LogUtil.write(sb.toString()); } catch (Exception e) { StringBuilder sb2 = new StringBuilder(); sb2.append("sendGpsState.onResponse : "); sb2.append(e.getMessage()); LogUtil.write(sb2.toString()); } } }); LogUtil.write("Loplat SDK state check complete"); return Result.SUCCESS; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "private final com.google.android.finsky.verifier.p259a.p260a.C4709m m21920b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x0015;\n case 26: goto L_0x0046;\n case 34: goto L_0x0053;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f24221c = r0;\n goto L_0x0000;\n L_0x0015:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r2) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0020;\n case 2: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = 44;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = \" is not a valid enum ResourceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x0043:\n r6.f24222d = r2;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0000;\n L_0x0046:\n r0 = r7.g();\n r6.f24223e = r0;\n r0 = r6.f24220b;\n r0 = r0 | 1;\n r6.f24220b = r0;\n goto L_0x0000;\n L_0x0053:\n r0 = r7.f();\n r6.f24224f = r0;\n r0 = r6.f24220b;\n r0 = r0 | 2;\n r6.f24220b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.finsky.verifier.a.a.m.b(com.google.protobuf.nano.a):com.google.android.finsky.verifier.a.a.m\");\n }", "private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "void m5770d() throws C0841b;", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "void m5769c() throws C0841b;", "void m5768b() throws C0841b;", "private synchronized void a(com.whatsapp.util.x r11, boolean r12) {\n /*\n r10 = this;\n r0 = 0;\n monitor-enter(r10);\n r2 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x0016 }\n r3 = com.whatsapp.util.x.a(r11);\t Catch:{ all -> 0x0016 }\n r1 = com.whatsapp.util.bl.b(r3);\t Catch:{ IllegalArgumentException -> 0x0014 }\n if (r1 == r11) goto L_0x0019;\n L_0x000e:\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r0.<init>();\t Catch:{ IllegalArgumentException -> 0x0014 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0014 }\n L_0x0014:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0016:\n r0 = move-exception;\n monitor-exit(r10);\n throw r0;\n L_0x0019:\n if (r12 == 0) goto L_0x0058;\n L_0x001b:\n r1 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x0052 }\n if (r1 != 0) goto L_0x0058;\n L_0x0021:\n r1 = r0;\n L_0x0022:\n r4 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r1 >= r4) goto L_0x0058;\n L_0x0026:\n r4 = r3.b(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = r4.exists();\t Catch:{ IllegalArgumentException -> 0x0050 }\n if (r4 != 0) goto L_0x0054;\n L_0x0030:\n r11.b();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2.<init>();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r3 = z;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = 24;\n r3 = r3[r4];\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = r2.append(r3);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r2.append(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0.<init>(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0050 }\n L_0x0050:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0052:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0054:\n r1 = r1 + 1;\n if (r2 == 0) goto L_0x0022;\n L_0x0058:\n r1 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r0 >= r1) goto L_0x008f;\n L_0x005c:\n r1 = r3.b(r0);\t Catch:{ all -> 0x0016 }\n if (r12 == 0) goto L_0x0088;\n L_0x0062:\n r4 = r1.exists();\t Catch:{ IllegalArgumentException -> 0x0126 }\n if (r4 == 0) goto L_0x008b;\n L_0x0068:\n r4 = r3.a(r0);\t Catch:{ all -> 0x0016 }\n r1.renameTo(r4);\t Catch:{ all -> 0x0016 }\n r5 = com.whatsapp.util.bl.e(r3);\t Catch:{ all -> 0x0016 }\n r6 = r5[r0];\t Catch:{ all -> 0x0016 }\n r4 = r4.length();\t Catch:{ all -> 0x0016 }\n r8 = com.whatsapp.util.bl.e(r3);\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8[r0] = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r6 = r8 - r6;\n r4 = r4 + r6;\n r10.i = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n a(r1);\t Catch:{ IllegalArgumentException -> 0x0128 }\n L_0x008b:\n r0 = r0 + 1;\n if (r2 == 0) goto L_0x0058;\n L_0x008f:\n r0 = r10.e;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 + 1;\n r10.e = r0;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = 0;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 | r12;\n if (r0 == 0) goto L_0x00e0;\n L_0x00a0:\n r0 = 1;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012c }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = z;\t Catch:{ IllegalArgumentException -> 0x012c }\n r5 = 26;\n r4 = r4[r5];\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = r3.a();\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = 10;\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012c }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012c }\n if (r12 == 0) goto L_0x010f;\n L_0x00d4:\n r0 = r10.n;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 1;\n r4 = r4 + r0;\n r10.n = r4;\t Catch:{ IllegalArgumentException -> 0x012e }\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012e }\n if (r2 == 0) goto L_0x010f;\n L_0x00e0:\n r0 = r10.k;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.remove(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 25;\n r2 = r2[r4];\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = 10;\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x010f:\n r0 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r2 = r10.c;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 > 0) goto L_0x011d;\n L_0x0117:\n r0 = r10.f();\t Catch:{ IllegalArgumentException -> 0x0132 }\n if (r0 == 0) goto L_0x0124;\n L_0x011d:\n r0 = r10.d;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r1 = r10.j;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r0.submit(r1);\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0124:\n monitor-exit(r10);\n return;\n L_0x0126:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0128:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x012a:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012c }\n L_0x012c:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x012e:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0130:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0132:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.a(com.whatsapp.util.x, boolean):void\");\n }", "private void b(int r14) {\n /*\n r13 = this;\n java.lang.Integer r0 = r13.w\n if (r0 != 0) goto L_0x000b\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14)\n r13.w = r14\n goto L_0x005b\n L_0x000b:\n java.lang.Integer r0 = r13.w\n int r0 = r0.intValue()\n if (r0 == r14) goto L_0x005b\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r14 = a(r14)\n java.lang.String r14 = java.lang.String.valueOf(r14)\n java.lang.Integer r1 = r13.w\n int r1 = r1.intValue()\n java.lang.String r1 = a(r1)\n java.lang.String r1 = java.lang.String.valueOf(r1)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n java.lang.String r3 = java.lang.String.valueOf(r14)\n int r3 = r3.length()\n int r3 = r3 + 51\n java.lang.String r4 = java.lang.String.valueOf(r1)\n int r4 = r4.length()\n int r3 = r3 + r4\n r2.<init>(r3)\n java.lang.String r3 = \"Cannot use sign-in mode: \"\n r2.append(r3)\n r2.append(r14)\n java.lang.String r14 = \". Mode was already set to \"\n r2.append(r14)\n r2.append(r1)\n java.lang.String r14 = r2.toString()\n r0.<init>(r14)\n throw r0\n L_0x005b:\n com.google.android.gms.internal.zzqy r14 = r13.l\n if (r14 == 0) goto L_0x0060\n return\n L_0x0060:\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r14 = r13.c\n java.util.Collection r14 = r14.values()\n java.util.Iterator r14 = r14.iterator()\n r0 = 0\n r1 = 0\n L_0x006c:\n boolean r2 = r14.hasNext()\n if (r2 == 0) goto L_0x0088\n java.lang.Object r2 = r14.next()\n com.google.android.gms.common.api.Api$zze r2 = (com.google.android.gms.common.api.Api.zze) r2\n boolean r3 = r2.zzahd()\n r4 = 1\n if (r3 == 0) goto L_0x0080\n r0 = 1\n L_0x0080:\n boolean r2 = r2.zzahs()\n if (r2 == 0) goto L_0x006c\n r1 = 1\n goto L_0x006c\n L_0x0088:\n java.lang.Integer r14 = r13.w\n int r14 = r14.intValue()\n switch(r14) {\n case 1: goto L_0x00ae;\n case 2: goto L_0x0092;\n case 3: goto L_0x00c2;\n default: goto L_0x0091;\n }\n L_0x0091:\n goto L_0x00c2\n L_0x0092:\n if (r0 == 0) goto L_0x00c2\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r3 = r13\n com.google.android.gms.internal.zzqh r14 = com.google.android.gms.internal.zzqh.a(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n L_0x00ab:\n r13.l = r14\n return\n L_0x00ae:\n if (r0 != 0) goto L_0x00b8\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"SIGN_IN_MODE_REQUIRED cannot be used on a GoogleApiClient that does not contain any authenticated APIs. Use connect() instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00b8:\n if (r1 == 0) goto L_0x00c2\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"Cannot use SIGN_IN_MODE_REQUIRED with GOOGLE_SIGN_IN_API. Use connect(SIGN_IN_MODE_OPTIONAL) instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00c2:\n com.google.android.gms.internal.zzqr r14 = new com.google.android.gms.internal.zzqr\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r1 = r14\n r3 = r13\n r12 = r13\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12)\n goto L_0x00ab\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzqp.b(int):void\");\n }", "private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }", "public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5771e() throws C0841b;", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "public final synchronized void d() {\n /*\n r10 = this;\n monitor-enter(r10)\n android.content.Context r0 = r10.f // Catch:{ all -> 0x0053 }\n r1 = 0\n if (r0 != 0) goto L_0x0008\n r0 = 0\n goto L_0x000e\n L_0x0008:\n android.content.Context r0 = r10.f // Catch:{ all -> 0x0053 }\n int r0 = com.google.ads.interactivemedia.v3.internal.vf.a(r0) // Catch:{ all -> 0x0053 }\n L_0x000e:\n int r2 = r10.n // Catch:{ all -> 0x0053 }\n if (r2 != r0) goto L_0x0014\n monitor-exit(r10)\n return\n L_0x0014:\n r10.n = r0 // Catch:{ all -> 0x0053 }\n r2 = 1\n if (r0 == r2) goto L_0x0051\n if (r0 == 0) goto L_0x0051\n r2 = 8\n if (r0 != r2) goto L_0x0020\n goto L_0x0051\n L_0x0020:\n long r2 = r10.a(r0) // Catch:{ all -> 0x0053 }\n r10.q = r2 // Catch:{ all -> 0x0053 }\n com.google.ads.interactivemedia.v3.internal.ua r0 = r10.j // Catch:{ all -> 0x0053 }\n long r2 = r0.a() // Catch:{ all -> 0x0053 }\n int r0 = r10.k // Catch:{ all -> 0x0053 }\n if (r0 <= 0) goto L_0x0037\n long r0 = r10.l // Catch:{ all -> 0x0053 }\n long r0 = r2 - r0\n int r1 = (int) r0 // Catch:{ all -> 0x0053 }\n r5 = r1\n goto L_0x0038\n L_0x0037:\n r5 = 0\n L_0x0038:\n long r6 = r10.m // Catch:{ all -> 0x0053 }\n long r8 = r10.q // Catch:{ all -> 0x0053 }\n r4 = r10\n r4.a(r5, r6, r8) // Catch:{ all -> 0x0053 }\n r10.l = r2 // Catch:{ all -> 0x0053 }\n r0 = 0\n r10.m = r0 // Catch:{ all -> 0x0053 }\n r10.p = r0 // Catch:{ all -> 0x0053 }\n r10.o = r0 // Catch:{ all -> 0x0053 }\n com.google.ads.interactivemedia.v3.internal.ux r0 = r10.i // Catch:{ all -> 0x0053 }\n r0.a() // Catch:{ all -> 0x0053 }\n monitor-exit(r10)\n return\n L_0x0051:\n monitor-exit(r10)\n return\n L_0x0053:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.ads.interactivemedia.v3.internal.ss.d():void\");\n }", "public org.a9 a() {\n /*\n r4 = this;\n r1 = 0;\n r0 = r4.c;\n if (r0 != 0) goto L_0x0040;\n L_0x0005:\n monitor-enter(r4);\n r0 = r4.c;\t Catch:{ all -> 0x0043 }\n if (r0 != 0) goto L_0x003f;\n L_0x000a:\n r2 = r4.e;\t Catch:{ IllegalArgumentException -> 0x0041 }\n if (r2 != 0) goto L_0x003f;\n L_0x000e:\n r0 = r4.b;\t Catch:{ all -> 0x0043 }\n r2 = z;\t Catch:{ all -> 0x0043 }\n r3 = 8;\n r2 = r2[r3];\t Catch:{ all -> 0x0043 }\n r3 = 0;\n r0 = r0.getSharedPreferences(r2, r3);\t Catch:{ all -> 0x0043 }\n r2 = z;\t Catch:{ all -> 0x0043 }\n r3 = 6;\n r2 = r2[r3];\t Catch:{ all -> 0x0043 }\n r3 = \"\";\n r0 = r0.getString(r2, r3);\t Catch:{ all -> 0x0043 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ IllegalArgumentException -> 0x0046 }\n if (r2 == 0) goto L_0x0053;\n L_0x002d:\n r2 = r1;\n L_0x002e:\n if (r2 == 0) goto L_0x0039;\n L_0x0030:\n r0 = new org.a9;\t Catch:{ IllegalArgumentException -> 0x0048 }\n r0.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0048 }\n r2 = com.whatsapp.DialogToastActivity.f;\t Catch:{ IllegalArgumentException -> 0x0048 }\n if (r2 == 0) goto L_0x003a;\n L_0x0039:\n r0 = r1;\n L_0x003a:\n r4.c = r0;\t Catch:{ all -> 0x0043 }\n r1 = 1;\n r4.e = r1;\t Catch:{ all -> 0x0043 }\n L_0x003f:\n monitor-exit(r4);\t Catch:{ all -> 0x0043 }\n L_0x0040:\n return r0;\n L_0x0041:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0043 }\n L_0x0043:\n r0 = move-exception;\n monitor-exit(r4);\t Catch:{ all -> 0x0043 }\n throw r0;\n L_0x0046:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0048 }\n L_0x0048:\n r0 = move-exception;\n r2 = z;\t Catch:{ all -> 0x0043 }\n r3 = 7;\n r2 = r2[r3];\t Catch:{ all -> 0x0043 }\n com.whatsapp.util.Log.c(r2, r0);\t Catch:{ all -> 0x0043 }\n r0 = r1;\n goto L_0x003a;\n L_0x0053:\n r2 = 3;\n r0 = android.backport.util.Base64.decode(r0, r2);\t Catch:{ IllegalArgumentException -> 0x0048 }\n r2 = r0;\n goto L_0x002e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.l9.a():org.a9\");\n }", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "private void level4() {\n }", "private boolean a(java.lang.String r2, java.lang.String r3) {\n /*\n r1 = this;\n r0 = r1.i(r3);\t Catch:{ RuntimeException -> 0x001c }\n if (r0 != 0) goto L_0x0024;\n L_0x0006:\n if (r2 == 0) goto L_0x001a;\n L_0x0008:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x0020 }\n if (r0 == 0) goto L_0x001a;\n L_0x000e:\n r0 = g;\t Catch:{ RuntimeException -> 0x0022 }\n r0 = r0.matcher(r2);\t Catch:{ RuntimeException -> 0x0022 }\n r0 = r0.lookingAt();\t Catch:{ RuntimeException -> 0x0022 }\n if (r0 != 0) goto L_0x0024;\n L_0x001a:\n r0 = 0;\n L_0x001b:\n return r0;\n L_0x001c:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x001e }\n L_0x001e:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0020 }\n L_0x0020:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0022 }\n L_0x0022:\n r0 = move-exception;\n throw r0;\n L_0x0024:\n r0 = 1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.String):boolean\");\n }", "public final void mo91715d() {\n }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void zzcr() throws {\n /*\n r5 = this;\n r0 = zzagr;\n monitor-enter(r0);\n r1 = r5.zzagu;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x0009:\n r1 = r5.zzags;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x001e;\n L_0x000d:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n if (r2 == 0) goto L_0x001e;\n L_0x0011:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n r2.connect();\t Catch:{ Throwable -> 0x001b }\n r3 = 1;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n L_0x0019:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x001b:\n r4 = move-exception;\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n throw r4;\n L_0x001e:\n r3 = 0;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n goto L_0x0019;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzax.zzcr():void\");\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "private void a(java.lang.String r11, java.lang.String r12, boolean r13, boolean r14, com.google.ae r15) {\n /*\n r10 = this;\n r9 = 48;\n r8 = 2;\n r6 = F;\n if (r11 != 0) goto L_0x0017;\n L_0x0007:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0015 }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x0015 }\n r2 = J;\t Catch:{ ao -> 0x0015 }\n r3 = 47;\n r2 = r2[r3];\t Catch:{ ao -> 0x0015 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0015 }\n throw r0;\t Catch:{ ao -> 0x0015 }\n L_0x0015:\n r0 = move-exception;\n throw r0;\n L_0x0017:\n r0 = r11.length();\t Catch:{ ao -> 0x002d }\n r1 = 250; // 0xfa float:3.5E-43 double:1.235E-321;\n if (r0 <= r1) goto L_0x002f;\n L_0x001f:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x002d }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x002d }\n r2 = J;\t Catch:{ ao -> 0x002d }\n r3 = 41;\n r2 = r2[r3];\t Catch:{ ao -> 0x002d }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x002d }\n throw r0;\t Catch:{ ao -> 0x002d }\n L_0x002d:\n r0 = move-exception;\n throw r0;\n L_0x002f:\n r7 = new java.lang.StringBuilder;\n r7.<init>();\n r10.a(r11, r7);\t Catch:{ ao -> 0x004f }\n r0 = r7.toString();\t Catch:{ ao -> 0x004f }\n r0 = b(r0);\t Catch:{ ao -> 0x004f }\n if (r0 != 0) goto L_0x0051;\n L_0x0041:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x004f }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x004f }\n r2 = J;\t Catch:{ ao -> 0x004f }\n r3 = 48;\n r2 = r2[r3];\t Catch:{ ao -> 0x004f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x004f }\n throw r0;\t Catch:{ ao -> 0x004f }\n L_0x004f:\n r0 = move-exception;\n throw r0;\n L_0x0051:\n if (r14 == 0) goto L_0x006f;\n L_0x0053:\n r0 = r7.toString();\t Catch:{ ao -> 0x006d }\n r0 = r10.a(r0, r12);\t Catch:{ ao -> 0x006d }\n if (r0 != 0) goto L_0x006f;\n L_0x005d:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x006b }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x006b }\n r2 = J;\t Catch:{ ao -> 0x006b }\n r3 = 46;\n r2 = r2[r3];\t Catch:{ ao -> 0x006b }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x006b }\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006b:\n r0 = move-exception;\n throw r0;\n L_0x006d:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006f:\n if (r13 == 0) goto L_0x0074;\n L_0x0071:\n r15.b(r11);\t Catch:{ ao -> 0x00d3 }\n L_0x0074:\n r0 = r10.b(r7);\n r1 = r0.length();\t Catch:{ ao -> 0x00d5 }\n if (r1 <= 0) goto L_0x0081;\n L_0x007e:\n r15.a(r0);\t Catch:{ ao -> 0x00d5 }\n L_0x0081:\n r2 = r10.e(r12);\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r1 = r7.toString();\t Catch:{ ao -> 0x00d7 }\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\t Catch:{ ao -> 0x00d7 }\n L_0x0095:\n if (r0 == 0) goto L_0x0182;\n L_0x0097:\n r1 = r10.b(r0);\n r4 = r1.equals(r12);\n if (r4 != 0) goto L_0x017f;\n L_0x00a1:\n r0 = r10.a(r0, r1);\n L_0x00a5:\n if (r6 == 0) goto L_0x00bd;\n L_0x00a7:\n a(r7);\t Catch:{ ao -> 0x0121 }\n r3.append(r7);\t Catch:{ ao -> 0x0121 }\n if (r12 == 0) goto L_0x00b8;\n L_0x00af:\n r1 = r0.L();\n r15.a(r1);\t Catch:{ ao -> 0x0123 }\n if (r6 == 0) goto L_0x00bd;\n L_0x00b8:\n if (r13 == 0) goto L_0x00bd;\n L_0x00ba:\n r15.l();\t Catch:{ ao -> 0x0125 }\n L_0x00bd:\n r1 = r3.length();\t Catch:{ ao -> 0x00d1 }\n if (r1 >= r8) goto L_0x0127;\n L_0x00c3:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x00d1 }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x00d1 }\n r2 = J;\t Catch:{ ao -> 0x00d1 }\n r3 = 44;\n r2 = r2[r3];\t Catch:{ ao -> 0x00d1 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x00d1 }\n throw r0;\t Catch:{ ao -> 0x00d1 }\n L_0x00d1:\n r0 = move-exception;\n throw r0;\n L_0x00d3:\n r0 = move-exception;\n throw r0;\n L_0x00d5:\n r0 = move-exception;\n throw r0;\n L_0x00d7:\n r0 = move-exception;\n r1 = g;\n r4 = r7.toString();\n r1 = r1.matcher(r4);\n r4 = r0.a();\t Catch:{ ao -> 0x0111 }\n r5 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x0111 }\n if (r4 != r5) goto L_0x0113;\n L_0x00ea:\n r4 = r1.lookingAt();\t Catch:{ ao -> 0x0111 }\n if (r4 == 0) goto L_0x0113;\n L_0x00f0:\n r0 = r1.end();\n r1 = r7.substring(r0);\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\n if (r0 != 0) goto L_0x0095;\n L_0x0101:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x010f }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x010f }\n r2 = J;\t Catch:{ ao -> 0x010f }\n r3 = 43;\n r2 = r2[r3];\t Catch:{ ao -> 0x010f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x010f }\n throw r0;\t Catch:{ ao -> 0x010f }\n L_0x010f:\n r0 = move-exception;\n throw r0;\n L_0x0111:\n r0 = move-exception;\n throw r0;\n L_0x0113:\n r1 = new com.google.ao;\n r2 = r0.a();\n r0 = r0.getMessage();\n r1.<init>(r2, r0);\n throw r1;\n L_0x0121:\n r0 = move-exception;\n throw r0;\n L_0x0123:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x0125 }\n L_0x0125:\n r0 = move-exception;\n throw r0;\n L_0x0127:\n if (r0 == 0) goto L_0x013a;\n L_0x0129:\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r10.a(r3, r0, r1);\t Catch:{ ao -> 0x0150 }\n if (r13 == 0) goto L_0x013a;\n L_0x0133:\n r0 = r1.toString();\t Catch:{ ao -> 0x0150 }\n r15.c(r0);\t Catch:{ ao -> 0x0150 }\n L_0x013a:\n r0 = r3.length();\n if (r0 >= r8) goto L_0x0152;\n L_0x0140:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x014e }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x014e }\n r2 = J;\t Catch:{ ao -> 0x014e }\n r3 = 42;\n r2 = r2[r3];\t Catch:{ ao -> 0x014e }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x014e }\n throw r0;\t Catch:{ ao -> 0x014e }\n L_0x014e:\n r0 = move-exception;\n throw r0;\n L_0x0150:\n r0 = move-exception;\n throw r0;\n L_0x0152:\n r1 = 16;\n if (r0 <= r1) goto L_0x0166;\n L_0x0156:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0164 }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x0164 }\n r2 = J;\t Catch:{ ao -> 0x0164 }\n r3 = 45;\n r2 = r2[r3];\t Catch:{ ao -> 0x0164 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0164 }\n throw r0;\t Catch:{ ao -> 0x0164 }\n L_0x0164:\n r0 = move-exception;\n throw r0;\n L_0x0166:\n r0 = 0;\n r0 = r3.charAt(r0);\t Catch:{ ao -> 0x017d }\n if (r0 != r9) goto L_0x0171;\n L_0x016d:\n r0 = 1;\n r15.a(r0);\t Catch:{ ao -> 0x017d }\n L_0x0171:\n r0 = r3.toString();\n r0 = java.lang.Long.parseLong(r0);\n r15.a(r0);\n return;\n L_0x017d:\n r0 = move-exception;\n throw r0;\n L_0x017f:\n r0 = r2;\n goto L_0x00a5;\n L_0x0182:\n r0 = r2;\n goto L_0x00a7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.String, boolean, boolean, com.google.ae):void\");\n }", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void c(int r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r2 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((int) r11) // Catch:{ all -> 0x004b }\n r10.o = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.c(int):void\");\n }", "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "public static boolean a(android.content.Context r4, byte[] r5) {\n /*\n r1 = d;\n r0 = 0;\n L_0x0003:\n r2 = c();\t Catch:{ Exception -> 0x003a }\n if (r2 != 0) goto L_0x0010;\n L_0x0009:\n r2 = e;\t Catch:{ Exception -> 0x003a }\n r2.block();\t Catch:{ Exception -> 0x003a }\n if (r1 == 0) goto L_0x0003;\n L_0x0010:\n r1 = z;\t Catch:{ Exception -> 0x003a }\n r2 = 22;\n r1 = r1[r2];\t Catch:{ Exception -> 0x003a }\n com.whatsapp.util.Log.i(r1);\t Catch:{ Exception -> 0x003a }\n r1 = com.whatsapp.contact.o.NOTIFICATION_DELTA;\t Catch:{ Exception -> 0x003a }\n r0 = a(r4, r1, r5);\t Catch:{ Exception -> 0x003a }\n r1 = b();\t Catch:{ Exception -> 0x0038 }\n if (r1 != 0) goto L_0x002e;\n L_0x0025:\n r1 = z;\t Catch:{ Exception -> 0x0038 }\n r2 = 16;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0038 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0038 }\n L_0x002e:\n r1 = z;\n r2 = 18;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n L_0x0037:\n return r0;\n L_0x0038:\n r0 = move-exception;\n throw r0;\n L_0x003a:\n r1 = move-exception;\n r2 = z;\t Catch:{ all -> 0x005d }\n r3 = 20;\n r2 = r2[r3];\t Catch:{ all -> 0x005d }\n com.whatsapp.util.Log.b(r2, r1);\t Catch:{ all -> 0x005d }\n r1 = b();\n if (r1 != 0) goto L_0x0053;\n L_0x004a:\n r1 = z;\n r2 = 19;\n r1 = r1[r2];\n com.whatsapp.util.Log.e(r1);\n L_0x0053:\n r1 = z;\n r2 = 23;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n goto L_0x0037;\n L_0x005d:\n r0 = move-exception;\n r1 = b();\t Catch:{ Exception -> 0x0077 }\n if (r1 != 0) goto L_0x006d;\n L_0x0064:\n r1 = z;\t Catch:{ Exception -> 0x0077 }\n r2 = 21;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0077 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0077 }\n L_0x006d:\n r1 = z;\n r2 = 17;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n throw r0;\n L_0x0077:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.contact.i.a(android.content.Context, byte[]):boolean\");\n }", "public void mo115190b() {\n }", "void m1864a() {\r\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "public final void run() {\n /*\n r10 = this;\n r8 = 2;\n r7 = 1;\n r6 = 0;\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n r1 = 0;\n r0 = r10.e;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r3 = r10.f;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r0 = com.uc.apollo.media.b.c.a(r0, r3);\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n if (r0 == 0) goto L_0x004b;\n L_0x0010:\n r2 = com.uc.apollo.media.impl.O.M3U8;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n r1 = r0.c();\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n if (r1 == 0) goto L_0x00db;\n L_0x0018:\n r1 = com.uc.apollo.media.impl.O.M3U8_LIVE;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n L_0x001a:\n r2 = r10.h;\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n if (r2 == 0) goto L_0x0022;\n L_0x001e:\n r2 = 1;\n r0.a(r2);\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n L_0x0022:\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r1 == r2) goto L_0x0030;\n L_0x0026:\n r2 = new java.lang.StringBuilder;\n r3 = \"content type is \";\n r2.<init>(r3);\n r2.append(r1);\n L_0x0030:\n r2 = r10.g;\n if (r2 == 0) goto L_0x004a;\n L_0x0034:\n r2 = c;\n r3 = r10.d;\n r4 = 3;\n r4 = new java.lang.Object[r4];\n r5 = r10.g;\n r4[r6] = r5;\n r4[r7] = r1;\n r4[r8] = r0;\n r0 = r2.obtainMessage(r8, r3, r6, r4);\n r0.sendToTarget();\n L_0x004a:\n return;\n L_0x004b:\n r0 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0051:\n r0 = move-exception;\n r9 = r0;\n r0 = r2;\n r2 = r9;\n L_0x0055:\n r3 = r2.a();\n if (r3 == 0) goto L_0x007e;\n L_0x005b:\n r4 = r3.length;\n r5 = 8;\n if (r4 < r5) goto L_0x007e;\n L_0x0060:\n r4 = 4;\n r4 = r3[r4];\n r5 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0067:\n r4 = 5;\n r4 = r3[r4];\n r5 = 116; // 0x74 float:1.63E-43 double:5.73E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x006e:\n r4 = 6;\n r4 = r3[r4];\n r5 = 121; // 0x79 float:1.7E-43 double:6.0E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0075:\n r4 = 7;\n r3 = r3[r4];\n r4 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n if (r3 != r4) goto L_0x007e;\n L_0x007c:\n r0 = com.uc.apollo.media.impl.O.MP4;\n L_0x007e:\n r3 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r0 != r3) goto L_0x008c;\n L_0x0082:\n r3 = new java.lang.StringBuilder;\n r4 = \"parse failure, msg: \";\n r3.<init>(r4);\n r3.append(r2);\n L_0x008c:\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0090:\n r0 = move-exception;\n r1 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\n r1 = a;\n r2 = new java.lang.StringBuilder;\n r3 = \"parse failure: \";\n r2.<init>(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n android.util.Log.w(r1, r2);\n r1 = r10.g;\n if (r1 == 0) goto L_0x004a;\n L_0x00ab:\n r1 = c;\n r2 = r10.d;\n r3 = new java.lang.Object[r8];\n r4 = r10.g;\n r3[r6] = r4;\n r4 = new java.lang.StringBuilder;\n r5 = \"parse failure: \";\n r4.<init>(r5);\n r0 = r4.append(r0);\n r0 = r0.toString();\n r3[r7] = r0;\n r0 = r1.obtainMessage(r7, r2, r6, r3);\n r0.sendToTarget();\n goto L_0x004a;\n L_0x00cf:\n r1 = move-exception;\n r9 = r1;\n r1 = r0;\n r0 = r2;\n r2 = r9;\n goto L_0x0055;\n L_0x00d5:\n r2 = move-exception;\n r9 = r0;\n r0 = r1;\n r1 = r9;\n goto L_0x0055;\n L_0x00db:\n r1 = r2;\n goto L_0x001a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.uc.apollo.media.impl.f.run():void\");\n }", "private void level7() {\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "public void mo23813b() {\n }", "@Override // X.AnonymousClass0l1\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final void A04(int r29) throws java.io.IOException {\n /*\n // Method dump skipped, instructions count: 801\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.AnonymousClass0T3.A04(int):void\");\n }", "private final com.google.android.play.p179a.p352a.C6210u m28673b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x001b;\n case 26: goto L_0x0058;\n case 34: goto L_0x0065;\n case 42: goto L_0x0072;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f31049b = r0;\n r0 = r6.f31048a;\n r0 = r0 | 1;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x001b:\n r1 = r6.f31048a;\n r1 = r1 | 2;\n r6.f31048a = r1;\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0047 }\n switch(r2) {\n case 0: goto L_0x004f;\n case 1: goto L_0x004f;\n case 2: goto L_0x004f;\n case 3: goto L_0x004f;\n case 4: goto L_0x004f;\n case 5: goto L_0x004f;\n case 6: goto L_0x004f;\n default: goto L_0x002c;\n };\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x002c:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = 38;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = \" is not a valid enum OsType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0047 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x0047:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x004f:\n r6.f31050c = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r6.f31048a;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2 | 2;\n r6.f31048a = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n goto L_0x0000;\n L_0x0058:\n r0 = r7.f();\n r6.f31051d = r0;\n r0 = r6.f31048a;\n r0 = r0 | 4;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0065:\n r0 = r7.f();\n r6.f31052e = r0;\n r0 = r6.f31048a;\n r0 = r0 | 8;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0072:\n r0 = r7.f();\n r6.f31053f = r0;\n r0 = r6.f31048a;\n r0 = r0 | 16;\n r6.f31048a = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.u.b(com.google.protobuf.nano.a):com.google.android.play.a.a.u\");\n }", "public int describeContents() {\n/* 48 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n L_0x000a:\n r0 = r3.f1268a;\t Catch:{ all -> 0x002a }\n if (r0 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n L_0x000f:\n return;\n L_0x0010:\n r0 = r3.f1270c;\t Catch:{ IllegalArgumentException -> 0x002d }\n if (r0 == 0) goto L_0x001f;\n L_0x0014:\n r0 = com.google.android.gms.common.stats.C1530b.m6956a();\t Catch:{ IllegalArgumentException -> 0x002d }\n r1 = r3.f1274g;\t Catch:{ IllegalArgumentException -> 0x002d }\n r2 = r3.f1268a;\t Catch:{ IllegalArgumentException -> 0x002d }\n r0.m6963a(r1, r2);\t Catch:{ IllegalArgumentException -> 0x002d }\n L_0x001f:\n r0 = 0;\n r3.f1270c = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1269b = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1268a = r0;\t Catch:{ all -> 0x002a }\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n goto L_0x000f;\n L_0x002a:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n throw r0;\n L_0x002d:\n r0 = move-exception;\n r1 = \"AdvertisingIdClient\";\n r2 = \"AdvertisingIdClient unbindService failed.\";\n android.util.Log.i(r1, r2, r0);\t Catch:{ all -> 0x002a }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.c.a.c():void\");\n }", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }", "public final synchronized java.lang.String m92g(java.lang.String r5) {\n /*\n r4 = this;\n r1 = 1;\n r0 = 0;\n monitor-enter(r4);\n if (r5 == 0) goto L_0x002c;\n L_0x0005:\n r2 = r5.trim();\t Catch:{ all -> 0x0037 }\n r2 = r2.length();\t Catch:{ all -> 0x0037 }\n if (r2 <= 0) goto L_0x002c;\n L_0x000f:\n if (r0 == 0) goto L_0x002e;\n L_0x0011:\n r0 = \"key should not be empty %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x0037 }\n r2 = 0;\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0037 }\n r3.<init>();\t Catch:{ all -> 0x0037 }\n r3 = r3.append(r5);\t Catch:{ all -> 0x0037 }\n r3 = r3.toString();\t Catch:{ all -> 0x0037 }\n r1[r2] = r3;\t Catch:{ all -> 0x0037 }\n com.tencent.bugly.legu.proguard.C0073w.m524d(r0, r1);\t Catch:{ all -> 0x0037 }\n r0 = 0;\n L_0x002a:\n monitor-exit(r4);\n return r0;\n L_0x002c:\n r0 = r1;\n goto L_0x000f;\n L_0x002e:\n r0 = r4.f112Y;\t Catch:{ all -> 0x0037 }\n r0 = r0.get(r5);\t Catch:{ all -> 0x0037 }\n r0 = (java.lang.String) r0;\t Catch:{ all -> 0x0037 }\n goto L_0x002a;\n L_0x0037:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.legu.crashreport.common.info.a.g(java.lang.String):java.lang.String\");\n }", "public void c() {\n /*\n r4 = this;\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.c()\n r1 = 1\n r2 = 0\n if (r0 == 0) goto L_0x000c\n L_0x000a:\n r0 = 0\n goto L_0x0023\n L_0x000c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.a()\n if (r0 != 0) goto L_0x001c\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r0 = r0.b()\n r2 = r0\n goto L_0x000a\n L_0x001c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r2 = r0.e()\n r0 = 1\n L_0x0023:\n boolean r3 = r4.f16998d\n if (r3 == 0) goto L_0x0032\n if (r0 == 0) goto L_0x003a\n com.shopee.app.network.d.c.d r0 = new com.shopee.app.network.d.c.d\n r0.<init>()\n r0.a(r2, r1)\n goto L_0x003a\n L_0x0032:\n com.shopee.app.network.d.c.d r1 = new com.shopee.app.network.d.c.d\n r1.<init>()\n r1.a(r2, r0)\n L_0x003a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.shopee.app.d.c.f.m.c():void\");\n }", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "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 }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "private static synchronized void e(android.content.Context r11) {\n /*\n java.lang.Class<com.tencent.wxop.stat.g> r0 = com.tencent.wxop.stat.g.class\n monitor-enter(r0)\n if (r11 != 0) goto L_0x0007\n monitor-exit(r0)\n return\n L_0x0007:\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0097\n java.lang.String r1 = com.tencent.wxop.stat.d.h // Catch:{ all -> 0x0099 }\n r2 = 0\n long r4 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r1, (long) r2) // Catch:{ all -> 0x0099 }\n java.lang.String r1 = \"2.0.4\"\n long r6 = com.tencent.wxop.stat.a.n.b((java.lang.String) r1) // Catch:{ all -> 0x0099 }\n r1 = 1\n r8 = 0\n int r9 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))\n if (r9 > 0) goto L_0x003b\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r10 = \"MTA is disable for current version:\"\n r9.<init>(r10) // Catch:{ all -> 0x0099 }\n r9.append(r6) // Catch:{ all -> 0x0099 }\n java.lang.String r6 = \",wakeup version:\"\n r9.append(r6) // Catch:{ all -> 0x0099 }\n r9.append(r4) // Catch:{ all -> 0x0099 }\n java.lang.String r4 = r9.toString() // Catch:{ all -> 0x0099 }\n r1.d(r4) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x003b:\n java.lang.String r4 = com.tencent.wxop.stat.d.i // Catch:{ all -> 0x0099 }\n long r2 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r4, (long) r2) // Catch:{ all -> 0x0099 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n int r6 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r6 <= 0) goto L_0x0069\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \"MTA is disable for current time:\"\n r4.<init>(r5) // Catch:{ all -> 0x0099 }\n long r5 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n r4.append(r5) // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \",wakeup time:\"\n r4.append(r5) // Catch:{ all -> 0x0099 }\n r4.append(r2) // Catch:{ all -> 0x0099 }\n java.lang.String r2 = r4.toString() // Catch:{ all -> 0x0099 }\n r1.d(r2) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x0069:\n com.tencent.wxop.stat.d.a((boolean) r1) // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0070\n monitor-exit(r0)\n return\n L_0x0070:\n android.content.Context r11 = r11.getApplicationContext() // Catch:{ all -> 0x0099 }\n t = r11 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = new com.tencent.wxop.stat.a.f // Catch:{ all -> 0x0099 }\n r1.<init>() // Catch:{ all -> 0x0099 }\n g = r1 // Catch:{ all -> 0x0099 }\n java.lang.String r1 = com.tencent.wxop.stat.a.n.a((int) r8) // Catch:{ all -> 0x0099 }\n l = r1 // Catch:{ all -> 0x0099 }\n long r1 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n long r3 = com.tencent.wxop.stat.d.p // Catch:{ all -> 0x0099 }\n r5 = 0\n long r1 = r1 + r3\n f79893b = r1 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.am r2 = new com.tencent.wxop.stat.am // Catch:{ all -> 0x0099 }\n r2.<init>(r11) // Catch:{ all -> 0x0099 }\n r1.a(r2) // Catch:{ all -> 0x0099 }\n L_0x0097:\n monitor-exit(r0)\n return\n L_0x0099:\n r11 = move-exception\n monitor-exit(r0)\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wxop.stat.g.e(android.content.Context):void\");\n }", "private void kk12() {\n\n\t}", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n public void func_104112_b() {\n \n }", "final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\n }", "private void m50366E() {\n }", "private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }", "public final synchronized void a(com.ss.android.ugc.aweme.base.e.b r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r2 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r2 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r0 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r0 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n monitor-exit(r10)\n return\n L_0x0032:\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n boolean r1 = r1.contains(r11) // Catch:{ all -> 0x0041 }\n if (r1 != 0) goto L_0x003f\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n r1.add(r11) // Catch:{ all -> 0x0041 }\n L_0x003f:\n monitor-exit(r10)\n return\n L_0x0041:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.base.e.a.a(com.ss.android.ugc.aweme.base.e.b):void\");\n }", "@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(4096);\n ClassWriter classWriter1 = new ClassWriter((-2894));\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"ConstantValue\";\n stringArray0[1] = \"LocalVariableTable\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n stringArray0[2] = \"ConstantValue\";\n stringArray0[3] = \"ConstantValue\";\n stringArray0[4] = \"0T1MW_`O#}<L\";\n stringArray0[5] = \"h#w=z5(0SfaM)DKLY\";\n stringArray0[6] = \"Synthetic\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"ConstantValue\", \"h#w=z5(0SfaM)DKLY\", \"Synthetic\", stringArray0, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"LocalVariableTable\");\n Label label0 = new Label();\n Edge edge0 = label0.successors;\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn((-2894), \"/#p[v!vM>^U#((tz?0\", \"0T1MW_`O#}<L\", \"Code\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final void b() {\n /*\n r10 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53248e\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55479(0xd8b7, float:7.7743E-41)\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53248e\n r5 = 0\n r6 = 55479(0xd8b7, float:7.7743E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$i r9 = r10.h\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x004b\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x004b:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r2 = g\n monitor-enter(r2)\n r0 = 1\n r9.f53270c = r0 // Catch:{ all -> 0x006e }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ all -> 0x006e }\n r0.notifyAll() // Catch:{ all -> 0x006e }\n L_0x0056:\n boolean r0 = r9.f53269b // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n boolean r0 = r9.f53271d // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ InterruptedException -> 0x0064 }\n r0.wait() // Catch:{ InterruptedException -> 0x0064 }\n goto L_0x0056\n L_0x0064:\n java.lang.Thread r0 = java.lang.Thread.currentThread() // Catch:{ all -> 0x006e }\n r0.interrupt() // Catch:{ all -> 0x006e }\n goto L_0x0056\n L_0x006c:\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n return\n L_0x006e:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.b():void\");\n }", "public final void A04(java.io.IOException r11) {\n /*\n // Method dump skipped, instructions count: 113\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.X0.A04(java.io.IOException):void\");\n }", "public synchronized void a(com.umeng.commonsdk.proguard.f r9) {\n /*\n r8 = this;\n monitor-enter(r8);\n r0 = \"UMSysLocation\";\n r1 = 1;\n r2 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r3 = \"getSystemLocation\";\n r4 = 0;\n r2[r4] = r3;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00c6;\n L_0x0010:\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n if (r0 != 0) goto L_0x0016;\n L_0x0014:\n goto L_0x00c6;\n L_0x0016:\n r8.e = r9;\t Catch:{ all -> 0x00c8 }\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n r2 = \"android.permission.ACCESS_COARSE_LOCATION\";\n r0 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r0, r2);\t Catch:{ all -> 0x00c8 }\n r2 = r8.d;\t Catch:{ all -> 0x00c8 }\n r3 = \"android.permission.ACCESS_FINE_LOCATION\";\n r2 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r2, r3);\t Catch:{ all -> 0x00c8 }\n r3 = 0;\n if (r0 != 0) goto L_0x0039;\n L_0x002b:\n if (r2 == 0) goto L_0x002e;\n L_0x002d:\n goto L_0x0039;\n L_0x002e:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x0037;\n L_0x0032:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n r9.a(r3);\t Catch:{ all -> 0x00c8 }\n L_0x0037:\n monitor-exit(r8);\n return;\n L_0x0039:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n if (r5 == 0) goto L_0x00c4;\n L_0x003d:\n r5 = android.os.Build.VERSION.SDK_INT;\t Catch:{ Throwable -> 0x0098 }\n r6 = 21;\n if (r5 < r6) goto L_0x0054;\n L_0x0043:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x0054:\n if (r2 == 0) goto L_0x005f;\n L_0x0056:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0060;\n L_0x005f:\n r5 = 0;\n L_0x0060:\n if (r0 == 0) goto L_0x006b;\n L_0x0062:\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x006b:\n r6 = 0;\n L_0x006c:\n if (r5 != 0) goto L_0x0070;\n L_0x006e:\n if (r6 == 0) goto L_0x0091;\n L_0x0070:\n r5 = \"UMSysLocation\";\n r6 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0098 }\n r7 = \"getLastKnownLocation(LocationManager.PASSIVE_PROVIDER)\";\n r6[r4] = r7;\t Catch:{ Throwable -> 0x0098 }\n com.umeng.commonsdk.statistics.common.e.a(r5, r6);\t Catch:{ Throwable -> 0x0098 }\n if (r2 == 0) goto L_0x0086;\n L_0x007d:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"passive\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0086:\n if (r0 == 0) goto L_0x0091;\n L_0x0088:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"network\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0091:\n r0 = r3;\n L_0x0092:\n r2 = r8.e;\t Catch:{ Throwable -> 0x0098 }\n r2.a(r0);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x00c4;\n L_0x0098:\n r0 = move-exception;\n r2 = \"UMSysLocation\";\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c8 }\n r5.<init>();\t Catch:{ all -> 0x00c8 }\n r6 = \"e is \";\n r5.append(r6);\t Catch:{ all -> 0x00c8 }\n r5.append(r0);\t Catch:{ all -> 0x00c8 }\n r5 = r5.toString();\t Catch:{ all -> 0x00c8 }\n r1[r4] = r5;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r2, r1);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00bf;\n L_0x00b5:\n r9.a(r3);\t Catch:{ Throwable -> 0x00b9 }\n goto L_0x00bf;\n L_0x00b9:\n r9 = move-exception;\n r1 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r1, r9);\t Catch:{ all -> 0x00c8 }\n L_0x00bf:\n r9 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r9, r0);\t Catch:{ all -> 0x00c8 }\n L_0x00c4:\n monitor-exit(r8);\n return;\n L_0x00c6:\n monitor-exit(r8);\n return;\n L_0x00c8:\n r9 = move-exception;\n monitor-exit(r8);\n throw r9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.d.a(com.umeng.commonsdk.proguard.f):void\");\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final void m15744a(com.p111d.p112a.p114b.C5301g r9) {\n /*\n r8 = this;\n r0 = r8.f17783i;\n r1 = r8.f17781g;\n r2 = 0;\n r3 = 1;\n if (r1 == 0) goto L_0x0010;\n L_0x0008:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0010;\n L_0x000e:\n r4 = r3;\n goto L_0x0011;\n L_0x0010:\n r4 = r2;\n L_0x0011:\n r5 = -1;\n L_0x0012:\n r5 = r5 + r3;\n r6 = 16;\n if (r5 < r6) goto L_0x0029;\n L_0x0017:\n r0 = r0.m4032a();\n if (r0 == 0) goto L_0x0148;\n L_0x001d:\n if (r1 == 0) goto L_0x0027;\n L_0x001f:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0027;\n L_0x0025:\n r4 = r3;\n goto L_0x0028;\n L_0x0027:\n r4 = r2;\n L_0x0028:\n r5 = r2;\n L_0x0029:\n r6 = r0.m4031a(r5);\n if (r6 == 0) goto L_0x0148;\n L_0x002f:\n if (r4 == 0) goto L_0x0043;\n L_0x0031:\n r7 = r0.m4039c(r5);\n if (r7 == 0) goto L_0x003a;\n L_0x0037:\n r9.writeObjectId(r7);\n L_0x003a:\n r7 = r0.m4040d(r5);\n if (r7 == 0) goto L_0x0043;\n L_0x0040:\n r9.writeTypeId(r7);\n L_0x0043:\n r7 = com.p111d.p112a.p121c.p138m.C6523u.C15401.f4807a;\n r6 = r6.ordinal();\n r6 = r7[r6];\n switch(r6) {\n case 1: goto L_0x0143;\n case 2: goto L_0x013e;\n case 3: goto L_0x0139;\n case 4: goto L_0x0134;\n case 5: goto L_0x011e;\n case 6: goto L_0x0108;\n case 7: goto L_0x00c5;\n case 8: goto L_0x0074;\n case 9: goto L_0x0070;\n case 10: goto L_0x006c;\n case 11: goto L_0x0068;\n case 12: goto L_0x0056;\n default: goto L_0x004e;\n };\n L_0x004e:\n r9 = new java.lang.RuntimeException;\n r0 = \"Internal error: should never end up through this code path\";\n r9.<init>(r0);\n throw r9;\n L_0x0056:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p121c.p138m.C5378q;\n if (r7 == 0) goto L_0x0064;\n L_0x005e:\n r6 = (com.p111d.p112a.p121c.p138m.C5378q) r6;\n r6.m11598a(r9);\n goto L_0x0012;\n L_0x0064:\n r9.writeObject(r6);\n goto L_0x0012;\n L_0x0068:\n r9.writeNull();\n goto L_0x0012;\n L_0x006c:\n r9.writeBoolean(r2);\n goto L_0x0012;\n L_0x0070:\n r9.writeBoolean(r3);\n goto L_0x0012;\n L_0x0074:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Double;\n if (r7 == 0) goto L_0x0086;\n L_0x007c:\n r6 = (java.lang.Double) r6;\n r6 = r6.doubleValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0086:\n r7 = r6 instanceof java.math.BigDecimal;\n if (r7 == 0) goto L_0x0090;\n L_0x008a:\n r6 = (java.math.BigDecimal) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0090:\n r7 = r6 instanceof java.lang.Float;\n if (r7 == 0) goto L_0x009f;\n L_0x0094:\n r6 = (java.lang.Float) r6;\n r6 = r6.floatValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x009f:\n if (r6 != 0) goto L_0x00a2;\n L_0x00a1:\n goto L_0x0068;\n L_0x00a2:\n r7 = r6 instanceof java.lang.String;\n if (r7 == 0) goto L_0x00ad;\n L_0x00a6:\n r6 = (java.lang.String) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00ad:\n r0 = new com.d.a.b.f;\n r1 = \"Unrecognized value type for VALUE_NUMBER_FLOAT: %s, can not serialize\";\n r3 = new java.lang.Object[r3];\n r4 = r6.getClass();\n r4 = r4.getName();\n r3[r2] = r4;\n r1 = java.lang.String.format(r1, r3);\n r0.<init>(r1, r9);\n throw r0;\n L_0x00c5:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Integer;\n if (r7 == 0) goto L_0x00d8;\n L_0x00cd:\n r6 = (java.lang.Integer) r6;\n r6 = r6.intValue();\n L_0x00d3:\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00d8:\n r7 = r6 instanceof java.math.BigInteger;\n if (r7 == 0) goto L_0x00e3;\n L_0x00dc:\n r6 = (java.math.BigInteger) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00e3:\n r7 = r6 instanceof java.lang.Long;\n if (r7 == 0) goto L_0x00f2;\n L_0x00e7:\n r6 = (java.lang.Long) r6;\n r6 = r6.longValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00f2:\n r7 = r6 instanceof java.lang.Short;\n if (r7 == 0) goto L_0x0101;\n L_0x00f6:\n r6 = (java.lang.Short) r6;\n r6 = r6.shortValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0101:\n r6 = (java.lang.Number) r6;\n r6 = r6.intValue();\n goto L_0x00d3;\n L_0x0108:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x0117;\n L_0x0110:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x0117:\n r6 = (java.lang.String) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x011e:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x012d;\n L_0x0126:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x012d:\n r6 = (java.lang.String) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x0134:\n r9.writeEndArray();\n goto L_0x0012;\n L_0x0139:\n r9.writeStartArray();\n goto L_0x0012;\n L_0x013e:\n r9.writeEndObject();\n goto L_0x0012;\n L_0x0143:\n r9.writeStartObject();\n goto L_0x0012;\n L_0x0148:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.m.u.a(com.d.a.b.g):void\");\n }", "public final void b(@org.jetbrains.annotations.Nullable java.lang.String r18) {\n /*\n r17 = this;\n r1 = 1\n java.lang.Object[] r2 = new java.lang.Object[r1]\n r9 = 0\n r2[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r4 = f2610e\n java.lang.Class[] r7 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r3 = java.lang.String.class\n r7[r9] = r3\n java.lang.Class r8 = java.lang.Void.TYPE\n r5 = 0\n r6 = 21950(0x55be, float:3.0759E-41)\n r3 = r17\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x0032\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21950(0x55be, float:3.0759E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r0 = java.lang.String.class\n r15[r9] = r0\n java.lang.Class r16 = java.lang.Void.TYPE\n r11 = r17\n com.meituan.robust.PatchProxy.accessDispatch(r10, r11, r12, r13, r14, r15, r16)\n return\n L_0x0032:\n com.ss.android.ugc.aweme.antiaddic.lock.c r2 = com.ss.android.ugc.aweme.antiaddic.lock.c.f33443d\n boolean r2 = r2.e()\n if (r2 == 0) goto L_0x003e\n r17.c(r18)\n return\n L_0x003e:\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21953(0x55c1, float:3.0763E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r2 = java.lang.String.class\n r15[r9] = r2\n java.lang.Class r16 = java.lang.Boolean.TYPE\n r11 = r17\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r10, r11, r12, r13, r14, r15, r16)\n if (r2 == 0) goto L_0x0075\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21953(0x55c1, float:3.0763E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r0 = java.lang.String.class\n r15[r9] = r0\n java.lang.Class r16 = java.lang.Boolean.TYPE\n r11 = r17\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r10, r11, r12, r13, r14, r15, r16)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r1 = r0.booleanValue()\n goto L_0x0096\n L_0x0075:\n com.ss.android.ugc.aweme.antiaddic.lock.entity.TimeLockUserSetting r2 = com.ss.android.ugc.aweme.antiaddic.lock.TimeLockRuler.getUserSetting()\n if (r2 == 0) goto L_0x0095\n r0 = r18\n java.lang.CharSequence r0 = (java.lang.CharSequence) r0\n com.ss.android.ugc.aweme.antiaddic.lock.entity.TimeLockUserSetting r2 = com.ss.android.ugc.aweme.antiaddic.lock.TimeLockRuler.getUserSetting()\n java.lang.String r3 = \"TimeLockRuler.getUserSetting()\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r2, r3)\n java.lang.String r2 = r2.getPassword()\n java.lang.CharSequence r2 = (java.lang.CharSequence) r2\n boolean r0 = android.text.TextUtils.equals(r0, r2)\n if (r0 == 0) goto L_0x0095\n goto L_0x0096\n L_0x0095:\n r1 = 0\n L_0x0096:\n if (r1 == 0) goto L_0x009c\n r17.b()\n return\n L_0x009c:\n android.content.Context r0 = com.ss.android.ugc.aweme.base.utils.d.a()\n r1 = 2131564680(0x7f0d1888, float:1.8754852E38)\n com.bytedance.ies.dmt.ui.d.a r0 = com.bytedance.ies.dmt.ui.d.a.b((android.content.Context) r0, (int) r1)\n r0.a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.antiaddic.lock.ui.fragment.AntiAddictionTipFragment.b(java.lang.String):void\");\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "public int describeContents() {\n/* 1781 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo21787L() {\n }", "public void m9741j() throws cf {\r\n }", "public int getEventCode() {\n/* 41 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void mo56977b() {\n /*\n r2 = this;\n com.ss.android.ugc.aweme.common.e r0 = r2.f67572c\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.i r0 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28951i) r0\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.common.a r1 = r2.f67571b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.d r1 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28944d) r1\n if (r1 == 0) goto L_0x0014\n java.lang.Object r1 = r1.getData()\n java.lang.String r1 = (java.lang.String) r1\n if (r1 != 0) goto L_0x0016\n L_0x0014:\n java.lang.String r1 = \"\"\n L_0x0016:\n r0.mo74240a(r1)\n return\n L_0x001a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28946e.mo56977b():void\");\n }", "private void level6() {\n }", "public void a(com.xiaomi.push.jc r6) {\n /*\n r5 = this;\n r6.a()\n L_0x0003:\n com.xiaomi.push.iz r0 = r6.a()\n byte r1 = r0.a\n if (r1 != 0) goto L_0x0012\n r6.f()\n r5.a()\n return\n L_0x0012:\n short r1 = r0.f784a\n r2 = 11\n switch(r1) {\n case 1: goto L_0x00b6;\n case 2: goto L_0x00a3;\n case 3: goto L_0x0098;\n case 4: goto L_0x008d;\n case 5: goto L_0x0082;\n case 6: goto L_0x0019;\n case 7: goto L_0x0071;\n case 8: goto L_0x0066;\n case 9: goto L_0x0038;\n case 10: goto L_0x002c;\n case 11: goto L_0x0020;\n default: goto L_0x0019;\n }\n L_0x0019:\n byte r0 = r0.a\n com.xiaomi.push.jf.a(r6, r0)\n goto L_0x00c0\n L_0x0020:\n byte r1 = r0.a\n if (r1 != r2) goto L_0x0019\n java.lang.String r0 = r6.a()\n r5.f573g = r0\n goto L_0x00c0\n L_0x002c:\n byte r1 = r0.a\n if (r1 != r2) goto L_0x0019\n java.lang.String r0 = r6.a()\n r5.f572f = r0\n goto L_0x00c0\n L_0x0038:\n byte r1 = r0.a\n r2 = 13\n if (r1 != r2) goto L_0x0019\n com.xiaomi.push.jb r0 = r6.a()\n java.util.HashMap r1 = new java.util.HashMap\n int r2 = r0.f788a\n int r2 = r2 * 2\n r1.<init>(r2)\n r5.f567a = r1\n r1 = 0\n L_0x004e:\n int r2 = r0.f788a\n if (r1 >= r2) goto L_0x0062\n java.lang.String r2 = r6.a()\n java.lang.String r3 = r6.a()\n java.util.Map<java.lang.String, java.lang.String> r4 = r5.f567a\n r4.put(r2, r3)\n int r1 = r1 + 1\n goto L_0x004e\n L_0x0062:\n r6.h()\n goto L_0x00c0\n L_0x0066:\n byte r1 = r0.a\n if (r1 != r2) goto L_0x0019\n java.lang.String r0 = r6.a()\n r5.f571e = r0\n goto L_0x00c0\n L_0x0071:\n byte r1 = r0.a\n r2 = 10\n if (r1 != r2) goto L_0x0019\n long r0 = r6.a()\n r5.f563a = r0\n r0 = 1\n r5.a((boolean) r0)\n goto L_0x00c0\n L_0x0082:\n byte r1 = r0.a\n if (r1 != r2) goto L_0x0019\n java.lang.String r0 = r6.a()\n r5.f570d = r0\n goto L_0x00c0\n L_0x008d:\n byte r1 = r0.a\n if (r1 != r2) goto L_0x0019\n java.lang.String r0 = r6.a()\n r5.f569c = r0\n goto L_0x00c0\n L_0x0098:\n byte r1 = r0.a\n if (r1 != r2) goto L_0x0019\n java.lang.String r0 = r6.a()\n r5.f568b = r0\n goto L_0x00c0\n L_0x00a3:\n byte r1 = r0.a\n r2 = 12\n if (r1 != r2) goto L_0x0019\n com.xiaomi.push.hv r0 = new com.xiaomi.push.hv\n r0.<init>()\n r5.f564a = r0\n com.xiaomi.push.hv r0 = r5.f564a\n r0.a((com.xiaomi.push.jc) r6)\n goto L_0x00c0\n L_0x00b6:\n byte r1 = r0.a\n if (r1 != r2) goto L_0x0019\n java.lang.String r0 = r6.a()\n r5.f565a = r0\n L_0x00c0:\n r6.g()\n goto L_0x0003\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.hx.a(com.xiaomi.push.jc):void\");\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "private S(com.google.ad r9, com.google.h r10) {\n /*\n r8 = this;\n r0 = 0;\n r1 = -1;\n r7 = 2;\n r2 = 1;\n r5 = org.whispersystems.Y.r;\n r8.<init>();\n r8.k = r1;\n r8.n = r1;\n r8.c();\n r6 = com.google.eV.g();\n r1 = r0;\n L_0x0015:\n if (r0 != 0) goto L_0x006f;\n L_0x0017:\n r3 = r9.z();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n switch(r3) {\n case 0: goto L_0x0085;\n case 10: goto L_0x00c6;\n case 18: goto L_0x0055;\n default: goto L_0x001e;\n };\n L_0x001e:\n r3 = r8.a(r9, r6, r10, r3);\t Catch:{ fN -> 0x0089, IOException -> 0x00aa }\n if (r3 != 0) goto L_0x006d;\n L_0x0024:\n if (r5 == 0) goto L_0x00c4;\n L_0x0026:\n r3 = r2;\n L_0x0027:\n r0 = 0;\n r4 = r8.h;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r4 & 1;\n if (r4 != r2) goto L_0x00c1;\n L_0x002e:\n r0 = r8.f;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r0 = r0.w();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r0;\n L_0x0035:\n r0 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r9.a(r0, r10);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = (org.whispersystems.Y) r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n if (r4 == 0) goto L_0x004c;\n L_0x0041:\n r0 = r8.f;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r4.a(r0);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r4.a();\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n L_0x004c:\n r0 = r8.h;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n r0 = r0 | 1;\n r8.h = r0;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n if (r5 == 0) goto L_0x00bf;\n L_0x0054:\n r0 = r3;\n L_0x0055:\n r3 = r1 & 2;\n if (r3 == r7) goto L_0x0062;\n L_0x0059:\n r3 = new java.util.ArrayList;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.<init>();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r8.l = r3;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r1 = r1 | 2;\n L_0x0062:\n r3 = r8.l;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r9.a(r4, r10);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.add(r4);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x006d:\n if (r5 == 0) goto L_0x0015;\n L_0x006f:\n r0 = r1 & 2;\n if (r0 != r7) goto L_0x007b;\n L_0x0073:\n r0 = r8.l;\t Catch:{ fN -> 0x00bb }\n r0 = java.util.Collections.unmodifiableList(r0);\t Catch:{ fN -> 0x00bb }\n r8.l = r0;\t Catch:{ fN -> 0x00bb }\n L_0x007b:\n r0 = r6.d();\n r8.e = r0;\n r8.b();\n return;\n L_0x0085:\n if (r5 == 0) goto L_0x00c4;\n L_0x0087:\n r0 = r2;\n goto L_0x001e;\n L_0x0089:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x008b:\n r0 = move-exception;\n r0 = r0.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x0091:\n r0 = move-exception;\n r1 = r1 & 2;\n if (r1 != r7) goto L_0x009e;\n L_0x0096:\n r1 = r8.l;\t Catch:{ fN -> 0x00bd }\n r1 = java.util.Collections.unmodifiableList(r1);\t Catch:{ fN -> 0x00bd }\n r8.l = r1;\t Catch:{ fN -> 0x00bd }\n L_0x009e:\n r1 = r6.d();\n r8.e = r1;\n r8.b();\n throw r0;\n L_0x00a8:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00aa:\n r0 = move-exception;\n r2 = new com.google.fN;\t Catch:{ all -> 0x0091 }\n r0 = r0.getMessage();\t Catch:{ all -> 0x0091 }\n r2.<init>(r0);\t Catch:{ all -> 0x0091 }\n r0 = r2.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x00b9:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00bb:\n r0 = move-exception;\n throw r0;\n L_0x00bd:\n r0 = move-exception;\n throw r0;\n L_0x00bf:\n r0 = r3;\n goto L_0x006d;\n L_0x00c1:\n r4 = r0;\n goto L_0x0035;\n L_0x00c4:\n r0 = r2;\n goto L_0x006d;\n L_0x00c6:\n r3 = r0;\n goto L_0x0027;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.whispersystems.S.<init>(com.google.ad, com.google.h):void\");\n }", "public final synchronized java.lang.String m90f(java.lang.String r5) {\n /*\n r4 = this;\n r1 = 1;\n r0 = 0;\n monitor-enter(r4);\n if (r5 == 0) goto L_0x002c;\n L_0x0005:\n r2 = r5.trim();\t Catch:{ all -> 0x0037 }\n r2 = r2.length();\t Catch:{ all -> 0x0037 }\n if (r2 <= 0) goto L_0x002c;\n L_0x000f:\n if (r0 == 0) goto L_0x002e;\n L_0x0011:\n r0 = \"key should not be empty %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x0037 }\n r2 = 0;\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0037 }\n r3.<init>();\t Catch:{ all -> 0x0037 }\n r3 = r3.append(r5);\t Catch:{ all -> 0x0037 }\n r3 = r3.toString();\t Catch:{ all -> 0x0037 }\n r1[r2] = r3;\t Catch:{ all -> 0x0037 }\n com.tencent.bugly.legu.proguard.C0073w.m524d(r0, r1);\t Catch:{ all -> 0x0037 }\n r0 = 0;\n L_0x002a:\n monitor-exit(r4);\n return r0;\n L_0x002c:\n r0 = r1;\n goto L_0x000f;\n L_0x002e:\n r0 = r4.f112Y;\t Catch:{ all -> 0x0037 }\n r0 = r0.remove(r5);\t Catch:{ all -> 0x0037 }\n r0 = (java.lang.String) r0;\t Catch:{ all -> 0x0037 }\n goto L_0x002a;\n L_0x0037:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.legu.crashreport.common.info.a.f(java.lang.String):java.lang.String\");\n }", "public com.google.cr a(com.google.ca r5) {\n /*\n r4 = this;\n r0 = 0;\n r1 = com.google.bA.b;\n r2 = com.google.ca.d();\n if (r5 != r2) goto L_0x000a;\n L_0x0009:\n return r4;\n L_0x000a:\n r2 = r4.f;\n if (r2 != 0) goto L_0x003f;\n L_0x000e:\n r2 = com.google.ca.b(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0018:\n r2 = r4.g;\n r2 = r2.isEmpty();\n if (r2 == 0) goto L_0x002e;\n L_0x0020:\n r2 = com.google.ca.b(r5);\n r4.g = r2;\n r2 = r4.h;\n r2 = r2 & -2;\n r4.h = r2;\n if (r1 == 0) goto L_0x003a;\n L_0x002e:\n r4.d();\n r2 = r4.g;\n r3 = com.google.ca.b(r5);\n r2.addAll(r3);\n L_0x003a:\n r4.g();\n if (r1 == 0) goto L_0x0079;\n L_0x003f:\n r2 = com.google.ca.b(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0049:\n r2 = r4.f;\n r2 = r2.i();\n if (r2 == 0) goto L_0x0070;\n L_0x0051:\n r2 = r4.f;\n r2.b();\n r4.f = r0;\n r2 = com.google.ca.b(r5);\n r4.g = r2;\n r2 = r4.h;\n r2 = r2 & -2;\n r4.h = r2;\n r2 = com.google.bL.d;\n if (r2 == 0) goto L_0x006c;\n L_0x0068:\n r0 = r4.k();\n L_0x006c:\n r4.f = r0;\n if (r1 == 0) goto L_0x0079;\n L_0x0070:\n r0 = r4.f;\n r1 = com.google.ca.b(r5);\n r0.a(r1);\n L_0x0079:\n r4.a(r5);\n r0 = r5.getUnknownFields();\n r4.a(r0);\n goto L_0x0009;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.cr.a(com.google.ca):com.google.cr\");\n }", "public final synchronized void e(a.c.a.c.c r5, boolean r6) {\n /*\n r4 = this;\n monitor-enter(r4)\n monitor-enter(r4) // Catch:{ all -> 0x00a9 }\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f15b // Catch:{ all -> 0x00a6 }\n r1 = 1\n r2 = 0\n if (r0 != 0) goto L_0x0009\n goto L_0x001e\n L_0x0009:\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f16c // Catch:{ all -> 0x00a6 }\n int r0 = r0.size() // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r3 = r4.f17d // Catch:{ all -> 0x00a6 }\n int r3 = r3.size() // Catch:{ all -> 0x00a6 }\n int r3 = r3 + r0\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f15b // Catch:{ all -> 0x00a6 }\n int r0 = r0.size() // Catch:{ all -> 0x00a6 }\n if (r3 != r0) goto L_0x0020\n L_0x001e:\n r0 = 1\n goto L_0x0021\n L_0x0020:\n r0 = 0\n L_0x0021:\n r3 = 0\n if (r0 == 0) goto L_0x0055\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x00a3\n java.util.ArrayList<a.c.a.c.c> r5 = r4.f17d // Catch:{ all -> 0x00a6 }\n int r5 = r5.size() // Catch:{ all -> 0x00a6 }\n if (r5 != 0) goto L_0x0040\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x003f\n java.lang.String r6 = \"downloadFinished\"\n a.c.a.f.e.b(r6) // Catch:{ all -> 0x00a6 }\n r5.b(r1) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x003f:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0040:\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r6 = r4.f17d // Catch:{ all -> 0x00a6 }\n r6.size() // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x0054\n java.lang.String r6 = \"downloadFinishedWithErrors\"\n a.c.a.f.e.b(r6) // Catch:{ all -> 0x00a6 }\n r5.b(r2) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x0054:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0055:\n a.c.a.c.h r0 = r4.f14a // Catch:{ all -> 0x00a6 }\n if (r0 == 0) goto L_0x00a3\n if (r6 == 0) goto L_0x0085\n a.c.a.c.h r6 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r6 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r6 // Catch:{ all -> 0x00a6 }\n if (r6 == 0) goto L_0x0084\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00a6 }\n r6.<init>() // Catch:{ all -> 0x00a6 }\n java.lang.String r0 = \"downloadItemSuccess: \"\n r6.append(r0) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r5.f9a // Catch:{ all -> 0x00a6 }\n r6.append(r5) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r6.toString() // Catch:{ all -> 0x00a6 }\n a.c.a.f.e.b(r5) // Catch:{ all -> 0x00a6 }\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r6 = r4.f16c // Catch:{ all -> 0x00a6 }\n r6.size() // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x0083\n goto L_0x00a3\n L_0x0083:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0084:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0085:\n a.c.a.c.h r6 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r6 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r6 // Catch:{ all -> 0x00a6 }\n if (r6 == 0) goto L_0x00a2\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00a6 }\n r6.<init>() // Catch:{ all -> 0x00a6 }\n java.lang.String r0 = \"downloadItemError: \"\n r6.append(r0) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r5.f9a // Catch:{ all -> 0x00a6 }\n r6.append(r5) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r6.toString() // Catch:{ all -> 0x00a6 }\n a.c.a.f.e.b(r5) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x00a2:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x00a3:\n monitor-exit(r4) // Catch:{ all -> 0x00a6 }\n monitor-exit(r4)\n return\n L_0x00a6:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x00a6 }\n throw r5 // Catch:{ all -> 0x00a9 }\n L_0x00a9:\n r5 = move-exception\n monitor-exit(r4)\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.c.a.c.e.e(a.c.a.c.c, boolean):void\");\n }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }" ]
[ "0.6820884", "0.66531765", "0.66330856", "0.66022176", "0.6600626", "0.65812176", "0.65664876", "0.6476755", "0.64711124", "0.64631814", "0.645053", "0.64464563", "0.63993573", "0.63908046", "0.6377925", "0.63603973", "0.63556653", "0.63529813", "0.6351461", "0.63462836", "0.6344086", "0.6343779", "0.6338746", "0.6331765", "0.6314497", "0.6303747", "0.63022196", "0.62775147", "0.6271648", "0.62581706", "0.6256633", "0.62525207", "0.624625", "0.6246145", "0.62364644", "0.62310874", "0.6228647", "0.62269783", "0.62218446", "0.6220004", "0.62194633", "0.6207057", "0.6193665", "0.618319", "0.6178244", "0.6173512", "0.6168499", "0.61525655", "0.6142461", "0.61412233", "0.61356866", "0.6134812", "0.61333257", "0.6131135", "0.612982", "0.6128407", "0.6127499", "0.61261076", "0.6108792", "0.61066365", "0.6096484", "0.60897905", "0.60897464", "0.6087311", "0.6082471", "0.6078699", "0.6076452", "0.6074293", "0.60605764", "0.60592806", "0.605776", "0.6056373", "0.6055234", "0.6053581", "0.60491365", "0.60465616", "0.60389614", "0.6034619", "0.603354", "0.6029776", "0.60290456", "0.6019358", "0.60172766", "0.60123307", "0.6008928", "0.6006347", "0.6004181", "0.6003335", "0.6001402", "0.5995324", "0.59945303", "0.59945303", "0.59940857", "0.5993165", "0.5986649", "0.5984967", "0.5980723", "0.5969491", "0.59673095", "0.5958169", "0.5954524" ]
0.0
-1
Clear Clears all reStructuredText markup written so far and resets all the settings.
public void clear() { rst = ""; indent = 0; lastLineLength = 0; rawInlineHtmlEnabled = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\n\t\tthis.contents.clear();\n\t}", "public void clear() {\n\t\t// setText() is buggy due html formatting :-(\n\t\t// need this little workaround\n\t\tsummaryEditorPane.setDocument( summaryEditorPane.getEditorKit().createDefaultDocument() );\n\t}", "public void clear() {\r\n\t\tthis.document = null;\r\n\t\tthis.elements.clear();\r\n\t}", "public void clear() {\n\t\thighlightsByToken.clear();\n\t}", "public static void clear() {\n doEdit();\n mEditor.clear();\n doCommit();\n }", "public void clear () {\n\t\treset();\n\t}", "public void clear() {\n doClear( false );\n }", "public final void clear() {\n clear(true);\n }", "public void clear() {\n doClear();\n }", "public void clear() {\n }", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "public void clear() {\r\n init();\r\n }", "public void clear() {\n documents.clearIsAllocated();\n documents.clear();\n }", "public void clear() {\n }", "public void clear() {\n }", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear() {\n payload = null;\n // Leave termBuffer to allow re-use\n termLength = 0;\n termText = null;\n positionIncrement = 1;\n flags = 0;\n // startOffset = endOffset = 0;\n // type = DEFAULT_TYPE;\n }", "private void clear() {\n }", "private void resetAll() {\n\t\trightHandNavPanel.clear();\n\t\tmainFlowPanel.clear();\n\t\tparameterNameTxtArea.setText(\"\");\n\t\tdefineNameTxtArea.setText(\"\");\n\t\tfuncNameTxtArea.setText(\"\");\n\t\t\n\t\tdefineAceEditor.setText(\"\");\n\t\tparameterAceEditor.setText(\"\");\n\t\tSystem.out.println(\" in resetAll doing setText\");\n\t\tcqlAceEditor.setText(\"\");\n\t\tfunctionBodyAceEditor.setText(\"\");\n\t\t\n\t\tviewParameterList.clear();\n\t\tviewDefinitions.clear();\n\t\tviewFunctions.clear();\n\t\t\n\t\tif (paramCollapse != null) {\n\t\t\tparamCollapse.clear();\n\t\t}\n\t\tif (defineCollapse != null) {\n\t\t\tdefineCollapse.clear();\n\t\t}\n\t\tif (functionCollapse != null) {\n\t\t\tfunctionCollapse.clear();\n\t\t}\n\t\t\n\t\tsetIsPageDirty(false);\n\t\tresetMessageDisplay();\n\t}", "public void clear() {\n\n\t}", "public void clear()\n {\n }", "public void reset() {\n _styles.clear();\n _styles.add(TextStyle.DEFAULT);\n }", "public void clear(){\n\t\tclear(0);\n\t}", "public void clear() {\n\t\t\r\n\t}", "public void clearAllPreference() {\n editor.clear();\n editor.apply();\n }", "public void clear() {\n content = \"EMPTY\";\n }", "public static void clear(){\n preferences.edit().clear().apply();\n }", "public String clear();", "void clear() ;", "public void clear() {\n\t\t// Do nothing\n\t}", "@Override\n public void clear()\n {\n explore(null);\n }", "public synchronized void clear()\n {\n clear(false);\n }", "public void clearAll();", "public void clearAll();", "public void clear() {\n\t\tString cmd = null;\n\t\ttry {\n\t\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\n\t\t\t\tcmd = \"cls\";\n\t\t\telse\n\t\t\t\tcmd = \"clear\";\n\t\t\tRuntime.getRuntime().exec(cmd);\n\t\t} catch (Exception ignore) {\n\t\t}\n\t}", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();" ]
[ "0.7159577", "0.71465904", "0.7036385", "0.6927271", "0.6876483", "0.6802806", "0.67613786", "0.6752877", "0.6731183", "0.6695986", "0.6659082", "0.6651937", "0.66518074", "0.66503567", "0.66503567", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.66077936", "0.660565", "0.65878785", "0.65785295", "0.65578395", "0.65491384", "0.65402704", "0.6528626", "0.6527752", "0.65170485", "0.6488147", "0.6475569", "0.64744246", "0.646937", "0.64558536", "0.64326453", "0.6418579", "0.64154357", "0.64154357", "0.6392084", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395", "0.63919395" ]
0.76637167
0
Write inline text Used to render the content of inline elements. Characters `, \, |, , _ are escaped.
public void text( String text ) { markup( escape( text ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void verbatimContent(String text) {\n write(escapeHTML(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 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}", "protected void markup( String text, boolean useIdent )\n {\n if ( useIdent )\n {\n // Very dirty hack to avoid opening space if this line start with inline raw HTML\n // (needs to be separated from surrounding text by one space)\n text = text.replaceAll( \"^\\\\s\", \"\" );\n }\n\n int spaces = useIdent ? indent * INDENT_SPACES : 0;\n String[] lines = text.split( NEW_LINE );\n\n for ( int i = 0; i < lines.length; ++i )\n {\n rst += StringUtils.repeat( \" \", spaces ) + lines[i];\n\n // Do not write a new line character if this is the last line of the markup\n if ( i < ( lines.length - 1 ) )\n {\n newLine();\n }\n }\n\n lastLineLength = lines[lines.length - 1].length();\n }", "public void writeText(Object textObj, String property)\n throws IOException\n {\n closeStart();\n\n String text = (textObj == null) ? \"\" : textObj.toString();\n if (dontEscape) {\n out.write(text);\n } else {\n HtmlEncoder.encode(out, text);\n }\n }", "public FreeMindWriter text( String text ) {\n if( ! tagOpen ) throw new IllegalStateException( \"Node start element is no longer open\" );\n \n out.print( \" TEXT='\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"'\" ); \n return this;\n }", "public void writeText(String text) throws IOException {\n markEndAttributes(false);\n write(encode(text));\n }", "@Override\n public void writeSpace(String text)\n throws XMLStreamException\n {\n writeRaw(text);\n }", "public void processText(org.w3c.dom.Text text)\r\n\tthrows Exception\r\n\t{\r\n\tWriter xml = getWriter();\r\n\txml.write(getIndent());\r\n\txml.write(HDOMUtil.trim(text));\r\n\txml.write(\"\\n\");\r\n\treturn;\r\n\t}", "@DISPID(-2147417085)\n @PropPut\n void innerText(\n java.lang.String rhs);", "public final void writeText(String[] data) {\n myRow.setText(data);\n writeRow(myRow);\n }", "public void printWithTemplate(String text) {\n String line = \"____________________________________________________________\";\n\n out.println(line);\n out.println(text);\n out.println(line);\n }", "@Override\n public void write(String text) {\n }", "public void writeToConsole(String text) {\n consoleToWrite += text;\n\n class ConsoleNodeWriteConsole implements Runnable {\n public void run() {\n if (consoleTextArea != null) {\n consoleTextArea.appendText(consoleToWrite);\n\n List<Trigger> triggers = getProgram().getFlowController().getActiveTriggers(getContainedText(), \"New line\");\n for (Trigger trigger : triggers) {\n NodeRunParams nodeRunParams = new NodeRunParams();\n nodeRunParams.setOneTimeVariable(consoleToWrite);\n Program.runHelper(trigger.getParent().getNextNodeToRun(), getProgram().getFlowController().getReferenceID(), trigger.getParent(), false, true, null, nodeRunParams);\n }\n\n consoleToWrite = \"\";\n }\n }\n }\n\n Platform.runLater(new ConsoleNodeWriteConsole());\n }", "public static void multiLineWithEscape()\r\n {\n System.out.print(\"Hello! \\nHello! \\nHello!\\n\\n\");\r\n }", "void write(String text);", "@DISPID(-2147417083)\n @PropPut\n void outerText(\n java.lang.String rhs);", "void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}", "public void setInline(boolean inline) {\n\t\tthis.inline = inline;\n\t}", "public void markup( String text )\n {\n // Indent only of this is the first text on the line\n markup( text, rst.isEmpty() || rst.endsWith( NEW_LINE ) );\n }", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "public void doubleQuote() {\n text.append(\"\\\"\");\n }", "public void quote() {\n text.append(\"\\'\");\n }", "public static void writeText( XMLStreamWriter w,\n Supplier<String> cssClass,\n DoubleSupplier x,\n DoubleSupplier y,\n IntSupplier angle,\n IntSupplier size,\n Supplier<String> fill,\n Supplier<String> stroke,\n Supplier<String> anchor,\n Supplier<String> baseline,\n Supplier<String> text\n )\n {\n try {\n w.writeStartElement( \"text\" );\n writeSvgAttributes( w, cssClass, fill, stroke );\n w.writeAttribute( \"x\", SvgUtils.toString( x.getAsDouble() ) );\n w.writeAttribute( \"y\", SvgUtils.toString( y.getAsDouble() ) );\n\n if( angle != null ) {\n int ang = angle.getAsInt();\n if( ang != 0 ) {\n w.writeAttribute( \"transform\", \"rotate(\" + ang + \")\" );\n }\n }\n\n if( size != null ) {\n w.writeAttribute( \"font-size\", String.valueOf( size.getAsInt() ) );\n }\n\n if( anchor != null ) {\n w.writeAttribute( \"font-text-anchor\", anchor.get() );\n }\n\n if( baseline != null ) {\n w.writeAttribute( \"alignment-baseline\", baseline.get() );\n }\n\n w.writeCharacters( text.get() );\n w.writeEndElement();\n }\n catch( XMLStreamException ex ) {\n throw new RuntimeException( ex );\n }\n }", "public void setTextDivEdicion(String text) { doSetText(this.$element_DivEdicion, text); }", "public void toString(Writer stream) throws IOException {\n stream.write('\"');\n if (this.m_content != null) stream.write(escape(this.m_content));\n stream.write('\"');\n }", "public void renderText(TextRenderInfo renderInfo) {\n \tsuper.renderText(renderInfo);\n\t\tpage.setText(getResultantText());\n \twriteText();\n }", "void writeText(FsPath path, String text);", "@DISPID(-2147417084)\n @PropPut\n void outerHTML(\n java.lang.String rhs);", "protected String escape( String text )\n {\n return text.replaceAll( \"([`\\\\|*_])\", \"\\\\\\\\$1\" );\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment);", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "protected Text text(String content){\n\t\treturn doc.createTextNode(content);\n\t}", "public interface EdentInlineEditableObject {\n public static final String INSERT_VALUE = \"Povinná hodnota\";\n \n public void setStringValue(String name, String value);\n \n}", "public static String escapeJS(String inText)\n {\n return inText\n .replaceAll(\"(?<!\\\\\\\\)'\", \"\\\\\\\\'\")\n .replaceAll(\"(?<!\\\\\\\\)\\\"\", \"\\\\\\\\\\\"\")\n .replaceAll(\"\\n\", \"\\\\\\\\n\");\n }", "@Action\n public void addWrappedText() {\n if (Math.random() < .33) {\n addWrappedTextEndChar();\n } else if (Math.random() < .5) {\n addWrappedTextRandom();\n } else {\n addWrappedTextSmall();\n }\n }", "private static final String formatTextAsHtml(String text) {\n StringBuffer html = new StringBuffer();\n html.append(\"<tt>\");\n for (int idx = 0; idx < text.length(); idx++) {\n if (text.charAt(idx) == ' ') {\n html.append(\"&nbsp;\");\n } else if (text.charAt(idx) == '\\t') {\n html.append(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n } else if (text.charAt(idx) == '\\n') {\n html.append(\"<br>\");\n } else {\n html.append(text.charAt(idx));\n }\n }\n html.append(\"</tt>\");\n return html.toString();\n }", "@JsProperty\n void setInnerText(String innerText);", "public void formatText(String text){\n\t\ttext = text.replaceAll(\"\\\\<[^>]*>\",\"\");\n\t}", "public void ajouterTexteAide(String texte) {\r\n\t\tif (bulleAide != null)\r\n\t\t\tbulleAide.setText(\"<HTML><BODY>\" + texte + \"</HTML></BODY>\");\r\n\t}", "public void setInline(String inline) {\n if (\"true\".equalsIgnoreCase(inline)) {\n this.full = true;\n return;\n }\n if (\"false\".equalsIgnoreCase(inline)) {\n this.full = false;\n return;\n }\n this.full = false;\n this.inline = inline;\n }", "@Override\r\n public void setText(String string) {\r\n super.setText(\"<HTML><U>Ayuda</U></HTML>\");\r\n \r\n }", "public void setInlineProperties(final EntityProviderWriteProperties inlineProperties) {\n this.inlineProperties = inlineProperties;\n }", "void inlineToDoc(OfficeComponent officeComponent, XTextRange textRange, XText destination, Object paramValue, Matcher paramsMatcher)\n throws Exception;", "public void setTextDivCreacionRegistro(String text) { doSetText(this.$element_DivCreacionRegistro, text); }", "public interface HtmlEscaper {\n String escape(String string);\n}", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y);", "private void textilize () {\n\n textIndex = 0;\n int textEnd = line.length() - 1;\n listChars = new StringBuffer();\n linkAlias = false;\n while (textIndex < line.length()\n && (Character.isWhitespace(textChar()))) {\n textIndex++;\n }\n while (textEnd >= 0\n && textEnd >= textIndex\n && Character.isWhitespace (line.charAt (textEnd))) {\n textEnd--;\n }\n boolean blankLine = (textIndex >= line.length());\n if (blankLine) {\n textilizeBlankLine();\n }\n else\n if ((textIndex > 0)\n || ((line.length() > 0 )\n && (line.charAt(0) == '<'))) {\n // First character is white space of the beginning of an html tag:\n // Doesn't look like textile... process it without modification.\n }\n else\n if (((textEnd - textIndex) == 3)\n && line.substring(textIndex,textEnd + 1).equals (\"----\")) {\n // && (line.substring(textIndex, (textEnd + 1)).equals (\"----\")) {\n textilizeHorizontalRule(textIndex, textEnd);\n } else {\n textilizeNonBlankLine();\n };\n }", "public void setInlineCode(String inlineCode) {\n this.inlineCode = inlineCode;\n }", "private static void append(String text) {\n // Print the same text to STDOUT\n System.out.println(text);\n\n try {\n outputFileBuffer.write(text+\"\\n\");\n outputFileBuffer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public String toText() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!description.isEmpty()) {\n\t\t\tsb.append(description.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tif (!blockTags.isEmpty()) {\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tblockTags.forEach(bt -> {\n\t\t\tsb.append(bt.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t});\n\t\treturn sb.toString();\n\t}", "private void Write(String text, HSSFCell cell, HSSFCellStyle style) {\n\n\t\tHSSFRichTextString strRT = new HSSFRichTextString(text);\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(style);\n\n\t}", "public static void writeJavaScript(final Response response, final CharSequence text)\n\t{\n\t\tAttributeMap attributes = new AttributeMap();\n\t\tattributes.putAttribute(ATTR_TYPE, \"text/javascript\");\n\t\twriteInlineScript(response, text, attributes);\n\t}", "private static String printInTagElement(Element element) {\n\t\tif (element == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tif (element instanceof ElementFunction) {\n\t\t\treturn ParserDelimiters.FUNCTION_DELIMITER.getValue() + element.asText();\n\t\t}\n\t\t\n\t\tif (element instanceof ElementString) {\n\t\t\treturn ParserDelimiters.STRING_DELIMITER.getValue()\n\t\t\t\t\t+ addEscapes(\n\t\t\t\t\t\t\telement.asText(),\n\t\t\t\t\t\t\tEscapableArrays.stringEscpable(),\n\t\t\t\t\t\t\tParserDelimiters.ESCAPE_DELIMITER.getValue()\n\t\t\t\t\t\t)\n\t\t\t\t\t+ ParserDelimiters.STRING_DELIMITER.getValue();\n\t\t}\n\t\t\n\t\treturn element.asText();\n\t}", "public void renderText(String text, int x, int y)\n {\n renderText(text, x, y, 0x00000000);\n }", "public void textLogger(String text) {\n loggerTextarea.append(text + \"\\n\");\n }", "public String writeInInputWithSpace(String object, String data) {\n logger.debug(\"Writing in text box\");\n logger.debug(\"Data: \" + data);\n try {\n WebElement ele = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n ele.clear();\n ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele,\" \"+data);\n return Constants.KEYWORD_PASS + \"--\" + data;\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + \" Unable to write \" + e.getLocalizedMessage();\n }\n \n\n }", "public void write(String text) throws ShellIOException;", "private void writeText(HttpServletResponse response, String outText) throws IOException {\n\t\tresponse.setContentType(CONTENT_TYPE);\n\t\tPrintWriter out = response.getWriter();\n\t\tout.print(outText);\n\t\t// 將輸出資料列印出來除錯用\n\t\tSystem.out.println(\"output: \" + outText);\n\n\t}", "public boolean outputText(String incomingText)\n\t{\n\t\ttxtArea.append(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");\n\t\tSystem.out.println(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");//##testing##\n\t\treturn true;\n\t}", "@Override\n public void write(Text arg0, Text arg1) throws IOException, InterruptedException {\n out.writeBytes(arg0.toString() + \",\");\n out.writeBytes(arg1.toString());\n out.writeBytes(\"\\r\\n\"); \n }", "public TextBlock() {\n writer = new StringMaker();\n writer.openForOutput();\n // blockOut = new StringBuilder();\n labels = new ArrayList();\n // writer.close();\n }", "public void writeLine(List<String> values) throws Exception {\n boolean firstVal = true;\n for (String val : values) {\n if (!firstVal) {\n dataWriter.write(\",\");\n }\n //dataWriter.write(\"\\\"\");\n for (int i=0; i<val.length(); i++) {\n char ch = val.charAt(i);\n if (ch=='\\\"') {\n dataWriter.write(\"\\\"\"); //extra quote\n }\n dataWriter.write(ch);\n }\n //dataWriter.write(\"\\\"\");\n firstVal = false;\n }\n dataWriter.write(\"\\n\");\n dataWriter.flush();\n }", "public static void escape() {\n \n // print vs. println\n \n System.out.print(\"Hello Class!\"); // next thing prints on same line\n System.out.println(\"It is Tuesday.\"); // next thing prints on next line\n \n System.out.println(); // prints a blank line\n \n \n // OUTPUT \n System.out.println(2); // you can put text or numbers in a print statement\n System.out.println(1 + 2 * 3); // you can also do math!\n // (order of operations)\n \n // Escape Sequences: \n // special characters denoted with the \\ (the escape character)\n \n // \\n --> new line \n System.out.print(\"Hello! \\n\\n\\n\\n\");\n System.out.println(\"He\\nllo!\");\n \n // \\t --> tab \n System.out.println(\"Hi\\tHi\");\n System.out.println(\"Hi\\t\\t\\t\\tHi\");\n \n // \\\\ --> \\\n System.out.println(\"\\\\\");\n \n // \\\" --> \" \n System.out.println(\"She said \\\"Java is the best!\\\"\");\n \n // You try!\n // Make a new class PrintQuote.java\n // Think of a quote or saying that you know \n // Output that saying with visible \" \" around it \n // Use a method to print your quote!\n \n // Example output: \"That's the way the cookie crumbles.\"\n \n \n \n \n \n \n \n }", "void printTextToConsole(String content){\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void write(String text) throws IOException {\r\n writer.write(text);\r\n writer.flush();\r\n }", "public void writeToConsole(String text) {\n\t\tconsole.append(text);\n\t}", "public void write(String text) {\n\t\tSystem.out.println(\"[byAnnotations] - Write to file: \" + text);\n\t}", "public static void print(Object text) {\r\n\t\tSystem.out.println(text);\r\n\t\tSystem.out.flush();\r\n\t}", "public String encode() throws IOException {\n try (FastStringWriter fsw = new FastStringWriter()) {\n fsw.write(\"{\");\n\n boolean hasComma = false;\n if (LangUtils.isNotBlank(this.fontColor)) {\n ChartUtils.writeDataValue(fsw, \"color\", this.fontColor, hasComma);\n hasComma = true;\n }\n\n getFont().write(fsw, \"font\", hasComma);\n\n fsw.write(\"}\");\n\n return fsw.toString();\n }\n }", "public static void setTextWriter( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TEXTWRITER, value);\r\n\t}", "private void txt() {\n\n\t}", "public void writeln(String text) throws ShellIOException;", "private void appendText(String text) {\n textArea.appendText(text);\n }", "public static String escapeHTML(String str){\r\n\t\treturn FuzzyXMLUtil.escape(str, true);\r\n\t}", "public FreeMindWriter richPreText( String text ) {\n tagClose();\n out.print( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body><pre>\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"</pre></body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "protected void printString(String str, Writer out) throws IOException {\r\n if (currentFormat.textNormalize) {\r\n str = Text.normalizeString( str);\r\n }\r\n else if (currentFormat.textTrim) {\r\n str = str.trim();\r\n }\r\n out.write( escapeElementEntities( str));\r\n }", "public String getPlainText(Element element) {\n FormattingVisitor formatter = new FormattingVisitor();\n NodeTraversor.traverse(formatter, element);\n\n return formatter.toString().trim();\n }", "public FreeMindWriter richText( String text ) {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n out.println( text );\n out.println( \" </body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "public void setTextWriter( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TEXTWRITER, value);\r\n\t}", "public void append(String text)\n{\n\ttextArea().append(text);\n}", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, float alignWidth, HAlignment alignment, GameContainer c,\n\t\t\tStyledText style);", "private void renderText(CharSequence source) {\n \n }", "void write(String s)\n\t\t{\n\t\t\tfor(int i = 0; i < sp; i++)\n\t\t\t\tXMLStream.print(\" \");\n\t\t\tXMLStream.println(\"<\" + s + \"/>\");\n\t\t}", "public void writeText(char[] text, int off, int len) throws IOException {\r\n deNude();\r\n writerEscape.writeText(text, off, len);\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn text.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\").replaceAll(\"[{]\\\\$\", \"\\\\\\\\{\\\\$\");\n\t}", "public void insertStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n lastText.build();\n }", "public void text(String message) {\n text.append(message);\n }", "@Override\n\tpublic void write(int b) throws IOException {\n\tchar a=(char) b;\n\tString s=String.valueOf(a);\n\t//add new output at the end of previous text\n text.append(s);\n\t//keeps reaching at the end of text area\n text.setCaretPosition(text.getDocument().getLength());\n\t}", "public void setTextEl ( Object textEl ) {\r\n\t\tgetStateHelper().put(PropertyKeys.textEl, textEl);\r\n\t\thandleAttribute(\"textEl\", textEl);\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 newLine() {\n text.append(\"\\n\");\n }", "private void fileModify(String text) throws IOException {\n text += \"\\n\";\n try {\n File filePath;\n filePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS);\n if (!filePath.exists()) {\n if (filePath.mkdir()) ; //directory is created;\n }\n\n fileOutputStream = new FileOutputStream(file);\n fileOutputStream.write(text.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n fileOutputStream.flush();\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}", "@Override\r\n public void writeText(String text) {\n String[] lines = text.split(\"\\n\");\r\n JLabel[] labels = new JLabel[lines.length];\r\n for (int i = 0; i < lines.length; i++) {\r\n labels[i] = new JLabel(lines[i]);\r\n labels[i].setFont(new Font(\"Monospaced\", Font.PLAIN, 20));\r\n }\r\n JOptionPane.showMessageDialog(null, labels);\r\n }", "@Override\n\tpublic void setInnerText(String arg0) {\n\n\t}", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addText(String text) {\n\t\tNodeList frameList = maNoteElement.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"frame\");\n\t\tif (frameList.getLength() > 0) {\n\t\t\tDrawFrameElement frame = (DrawFrameElement) frameList.item(0);\n\t\t\tNodeList textBoxList = frame.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"text-box\");\n\t\t\tif (textBoxList.getLength() > 0) {\n\t\t\t\tDrawTextBoxElement textBox = (DrawTextBoxElement) textBoxList.item(0);\n\t\t\t\tTextPElement newPara = textBox.newTextPElement();\n\t\t\t\tnewPara.setTextContent(text);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6231991", "0.58358365", "0.5686595", "0.5499813", "0.54987586", "0.5495993", "0.5272918", "0.521578", "0.52116054", "0.5206199", "0.5135946", "0.5102072", "0.50569814", "0.50562704", "0.5039314", "0.50236183", "0.49846643", "0.49731708", "0.49649101", "0.4950105", "0.4943626", "0.49266413", "0.49240953", "0.49143177", "0.49106354", "0.48567143", "0.48404178", "0.48211497", "0.4819952", "0.48111388", "0.47992358", "0.47874016", "0.47812378", "0.47585678", "0.47549716", "0.4745972", "0.46912244", "0.46866706", "0.4679469", "0.4671678", "0.4669279", "0.46680444", "0.46243888", "0.46154377", "0.46110559", "0.46037287", "0.4593779", "0.45937485", "0.45903042", "0.45886463", "0.4572127", "0.45654094", "0.45635736", "0.45595434", "0.4545817", "0.4531699", "0.4529356", "0.45250008", "0.45229185", "0.45151836", "0.45100647", "0.4504353", "0.45032692", "0.44964373", "0.44943917", "0.44933355", "0.44858932", "0.44782504", "0.44724464", "0.44674775", "0.44614512", "0.44613856", "0.4455517", "0.44484583", "0.44461343", "0.44352537", "0.44285697", "0.4425434", "0.44197676", "0.44196302", "0.44187802", "0.44184107", "0.44166362", "0.44124627", "0.4412341", "0.4409287", "0.44050282", "0.44045052", "0.44000188", "0.43976206", "0.43973884", "0.43945563", "0.4390597", "0.43870422", "0.43840894", "0.43840545", "0.43835542", "0.4382616", "0.43804827", "0.43784863" ]
0.5721345
2
Write raw reStructuredText markup Use methods indent() and outdent() to modify the identation.
public void markup( String text ) { // Indent only of this is the first text on the line markup( text, rst.isEmpty() || rst.endsWith( NEW_LINE ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String output( boolean includeMeta )\n {\n String output = \"\";\n\n // http://docutils.sourceforge.net/docs/ref/rst/roles.html#raw\n if ( includeMeta && rawInlineHtmlEnabled )\n {\n output += \".. role:: raw-html(raw)\\n\";\n output += \" :format: html\\n\";\n output += \"\\n\";\n }\n\n // Remove whitespace at the end of the document\n output += this.rst.replaceAll( \"\\\\s+$\", \"\" );\n\n return output;\n }", "protected void markup( String text, boolean useIdent )\n {\n if ( useIdent )\n {\n // Very dirty hack to avoid opening space if this line start with inline raw HTML\n // (needs to be separated from surrounding text by one space)\n text = text.replaceAll( \"^\\\\s\", \"\" );\n }\n\n int spaces = useIdent ? indent * INDENT_SPACES : 0;\n String[] lines = text.split( NEW_LINE );\n\n for ( int i = 0; i < lines.length; ++i )\n {\n rst += StringUtils.repeat( \" \", spaces ) + lines[i];\n\n // Do not write a new line character if this is the last line of the markup\n if ( i < ( lines.length - 1 ) )\n {\n newLine();\n }\n }\n\n lastLineLength = lines[lines.length - 1].length();\n }", "public SourceGenerator writeIndent(){\r\n\t\tm_indenter.writeIndent();\r\n\t\treturn this;\r\n\t}", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "public void write(Writer writer,\n int indent) {\n PrintWriter out = new PrintWriter(writer);\n\n for (int i = 0; i < indent; i++) {\n out.print(' ');\n }\n\n if (this.tagName == null) {\n this.writeEncoded(out, this.contents);\n return;\n }\n\n out.print('<');\n out.print(this.tagName);\n\n if (!this.attributes.isEmpty()) {\n Enumeration enumeration = this.attributes.keys();\n\n while (enumeration.hasMoreElements()) {\n out.print(' ');\n String key = (String) (enumeration.nextElement());\n String value = (String) (this.attributes.get(key));\n out.print(key);\n out.print(\"=\\\"\");\n this.writeEncoded(out, value);\n out.print('\"');\n }\n }\n\n if ((this.contents != null) && (this.contents.length() > 0)) {\n if (this.skipLeadingWhitespace) {\n out.println('>');\n\n for (int i = 0; i < indent + 4; i++) {\n out.print(' ');\n }\n\n out.println(this.contents);\n\n for (int i = 0; i < indent; i++) {\n out.print(' ');\n }\n }\n else {\n out.print('>');\n this.writeEncoded(out, this.contents);\n }\n\n out.print(\"</\");\n out.print(this.tagName);\n out.println('>');\n }\n else if (this.children.isEmpty()) {\n out.println(\"/>\");\n }\n else {\n out.println('>');\n Enumeration enumeration = this.enumerateChildren();\n\n while (enumeration.hasMoreElements()) {\n XMLElement child = (XMLElement) (enumeration.nextElement());\n child.write(writer, indent + 4);\n }\n\n for (int i = 0; i < indent; i++) {\n out.print(' ');\n }\n\n out.print(\"</\");\n out.print(this.tagName);\n out.println('>');\n }\n }", "public FreeMindWriter startRichText() {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n return this; \n }", "public AsciiDocWriter role(Object role) { nnl(); return w(\"[.\", 1, role, \"]\"); }", "void decorate(Writer out, String content) throws IOException;", "public FreeMindWriter richText( String text ) {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n out.println( text );\n out.println( \" </body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "public SourceGenerator writeNewline(){\r\n\t\tif (m_style == CodeStyle.PRETTY){\r\n\t\t\tm_writer.append(m_newline);\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public String content() {\n StringWriter content = new StringWriter();\n PrintWriter w = new PrintWriter(content);\n\n printHeaderComment(w);\n\n w.println();\n\n w.println(\"#include \\\"\" + className + \".h\\\"\");\n w.println(\"#include <iostream>\");\n w.println();\n\n w.println();\n\n w.println(\"void \" + className + \"::load( PersistableInputStream& \" + INSTREAM_VAR_NAME + \" ){\");\n w.print(loadContent.toString());\n w.println(\"}\");\n\n w.println();\n\n w.println(\"void \" + className + \"::save( PersistableOutputStream& \" + OUTSTREAM_VAR_NAME + \" ){\");\n w.print(saveContent.toString());\n w.println(\"}\");\n\n return content.toString();\n }", "public final Writer wrapAsRawWriter()\n {\n return mWriter.wrapAsRawWriter();\n }", "public String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}", "public interface ContentWriter {\n\t// *** Class Members ***\n\n\t// *** Public Methods ***\n\t\n\t// --- Writer State ---\n\tpublic Name getName();\n\tpublic List<Name> getElementNameStack();\n\t\n\t// --- Escaped Text Content ---\n\tpublic void text(Text text) throws IOException;\n\tpublic void text(String text) throws IOException;\n\tpublic Writer text() throws IOException;\n\tpublic Writer cdata() throws IOException;\n\t\n\t// --- Character Data Content---\n\tpublic void characters(CharData charData) throws IOException;\n\tpublic void cdata(CData cdata) throws IOException;\n\t\n\t// --- Reference Content ---\n\tpublic void reference(CharRef charRef) throws IOException;\n\tpublic void reference(Name entityName) throws IOException;\n\t\n\t// --- Namespaces ---\n\tpublic void defaultNamespace(NamespaceURI uri) throws IOException;\n\tpublic void namespace(NamespaceURI uri) throws IOException;\n\t\n\t// --- Element Content ---\n\tpublic ContentWriter element(Name elementName) throws IOException;\n\tpublic ContentWriter element(Name elementName, Attribute... attributes) throws IOException;\n\t\n\t// --- Misc Content ---\n\tpublic void comment(Comment c) throws IOException;\n\tpublic void pi(Target target, Instruction instruction) throws IOException;\n\tpublic void space(Whitespace space) throws IOException;\n\t\n\t// --- Custom Content ---\n\tpublic void content(Content c) throws IOException;\n}", "@Override\n public void doTag() throws JspException, IOException {\n setAttributes();\n\n String layout = getBodyContent();\n jspContext.getOut().write(layout);\n }", "public void output(IndentedWriter out) \n {\n }", "public String toText() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!description.isEmpty()) {\n\t\t\tsb.append(description.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tif (!blockTags.isEmpty()) {\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tblockTags.forEach(bt -> {\n\t\t\tsb.append(bt.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t});\n\t\treturn sb.toString();\n\t}", "public FreeMindWriter endRichText() {\n out.println( \" </body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "public FreeMindWriter richPreText( String text ) {\n tagClose();\n out.print( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body><pre>\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"</pre></body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "public void write() throws IOException {\n\t\tfinal String timeLog = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd_HH-mm-ss\"));\n\t\tfinal File file = new File(\"wordsaurier-document-\" + timeLog + \".txt\");\n\t\t\n\n\t\ttry (OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {\n\t\t\t\n\n\t\t\t\n\t\t\twriter.write(\"Wordsaurier document\\r\\n\");\n\t\t\twriter.write(this.documentSpecification.toString() + \"\\r\\n\");\n\t\t\twriter.write(\"---------------------\\r\\n\");\n\t\t\twriter.write(this.document.getContent());\n\t\t\tLOG.info(\"document was written to {}\", file.getCanonicalPath());\n\t\t\t\n\t\t} catch (final IOException e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "@Override\r\n\tpublic void writeRents() {\n\t\t\r\n\t}", "@Override\n protected void printXml(final String indent, final PrintWriter printWriter) {\n final boolean hasChildren = (getFirstChild() != null);\n printWriter.print(indent + \"<\");\n printOpeningTagContentAsXml(printWriter);\n\n if (!hasChildren && !isEmptyXmlTagExpanded()) {\n printWriter.println(\"/>\");\n }\n else {\n printWriter.println(\">\");\n printChildrenAsXml(indent, printWriter);\n printWriter.println(indent + \"</\" + getTagName() + \">\");\n }\n }", "static void write() {\n try {\n b.setLength(0); // clear the line buffer\n\n // this next section builds the output string while protecting\n // string literals. All extra spaces are removed from the output\n // string, except that string literals are left as is.\n ArrayList list = new ArrayList();\n String s = new String(\"\");\n for (int i = 0; i < a.size(); i++) {\n Object o = a.get(i);\n if (o instanceof Token) {\n Token token = (Token)o;\n if (token.kind == JavaParserConstants.STRING_LITERAL) {\n s = s.replaceAll(\"[ ]+\", \" \");\n list.add(s);\n s = new String(\"\");\n list.add(token.image);\n }\n else {\n s += ((Token)o).image;\n s = s.replaceAll(\"[ ]+\", \" \");\n }\n }\n else {\n s += (String)o;\n s = s.replaceAll(\"[ ]+\", \" \");\n }\n }\n for (int i = 0; i < list.size(); i++) {\n b.append((String)list.get(i));\n }\n\n b.append(s);\n s = b.toString();\n\n // check for blank line(s)\n String maybe_blank = new String(s);\n if (maybe_blank.trim().length() == 0) {\n // yep, it's a blank, so just print it out\n if (s.length() >= ls.length()) {\n s = s.substring(0, s.length() - ls.length());\n }\n outputBuffer.append(s);\n a.clear();\n return;\n }\n\n // indent --\n // most lines get indented, but there are a few special cases:\n // \"else\" gets put on the same line as the closing \"}\" for the \"if\",\n // so don't want to indent. Similarly with \"catch\" and \"finally\".\n // The \"while\" at the end of a \"do\" loop is marked as \"^while\" to\n // differentiate it from a regular \"while\" block. \"else if\" is also\n // a special case.\n if (!s.startsWith(\" else\")\n && !s.startsWith(\" catch\")\n && !s.startsWith(\" finally\")\n && !s.startsWith(\" ^while\")\n && !s.startsWith(\" {\")\n && (!endsWith(outputBuffer, \"else\") && !endsWith(outputBuffer, \"else \"))) {\n s = s.trim();\n for (int i = 0; i < level; i++) {\n s = indent + s;\n }\n }\n\n // maybe clean out the ^ from the specially marked \"while\" at the\n // end of a \"do\" loop\n if (s.startsWith(\" ^while\")) {\n b.deleteCharAt(1);\n s = b.toString();\n }\n\n // check if the output buffer does NOT end with a new line. If it\n // doesn't, remove any leading whitespace from this line\n if (!endsWith(outputBuffer, \"\\u005cn\") && !endsWith(outputBuffer, \"\\u005cr\")) {\n s = trimStart(s);\n }\n\n // check that there aren't extra spaces in the buffer already --\n // this handles the case where the output buffer ends with a space\n // and the new string starts with a space, don't want 2 spaces.\n if (s.startsWith(\" \") && endsWith(outputBuffer, \" \")) {\n s = s.substring(1);\n }\n\n // check that there is one space between the end of the output\n // buffer and this line -- this handles the case where the output\n // buffer does not end in a space and the new string does not start\n // with a space, want one space in between.\n if (!s.startsWith(\" \")\n && !endsWith(outputBuffer, \" \")\n && !endsWith(outputBuffer, \"\\u005cr\")\n && !endsWith(outputBuffer, \"\\u005cn\")\n && outputBuffer.length() > 0) {\n outputBuffer.append(\" \");\n }\n\n // by the Sun standard, there is no situation where '(' is followed\n // by a space or ')' is preceded with by a space\n s = s.replaceAll(\"[(][ ]\", \"(\");\n s = s.replaceAll(\"[ ][)]\", \")\");\n\n // there should be no situation where a comma is preceded by a space,\n // although that seems to happen when formatting string arrays.\n s = s.replaceAll(\"\\u005c\\u005cs+[,]\", \",\");\n\n // finally! add the string to the output buffer\n // check for line length, may need to wrap. Sun says to avoid lines\n // longer than 80 characters. This doesn't work well yet, so I've \n // commented out the wrapping code. Still need to clean out the\n // wrapping markers.\n //s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n /*\n int wrap_sep_count = countWrapSep(s);\n if (s.length() - wrap_sep_count > 80) {\n String[] lines = wrapLines(s);\n if ( lines != null ) {\n for (int i = 0; i < lines.length; i++) {\n outputBuffer.append(lines[i]).append(ls);\n }\n }\n else {\n // whack any remaining \u001c characters\n s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n }\n }\n else {\n // whack any remaining \u001c characters\n s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n }\n */\n // clear the accumulator for the next line\n a.clear();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }", "public interface LineWriter {\r\n\r\n\t/**\r\n\t * <p> \r\n\t *\t<jdl:section>\r\n\t * \t\t<jdl:text lang='it'>Va a capo.</jdl:text>\r\n\t * \t\t<jdl:text lang='en'>Carriage return.</jdl:text> \r\n\t *\t</jdl:section>\r\n\t * </p> \r\n\t *\r\n\t */\r\n public void println();\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Stampa una pagina senza andare a capo.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Write a line without carriage return.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n * @param line\t<jdl:section>\r\n * \t\t\t\t\t<jdl:text lang='it'>La linea di testo da stampare.</jdl:text>\r\n * \t\t\t\t\t<jdl:text lang='en'>The line of text to print.</jdl:text> \r\n *\t\t\t\t</jdl:section>\r\n */\r\n public void print(String line);\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Stampa una pagina e va a capo.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Write a line with carriage return.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n * @param line\t<jdl:section>\r\n * \t\t\t\t\t<jdl:text lang='it'>La linea di testo da stampare.</jdl:text>\r\n * \t\t\t\t\t<jdl:text lang='en'>The line of text to print.</jdl:text> \r\n *\t\t\t\t</jdl:section>\r\n */\r\n public void println(String line);\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Chiude il LineWriter.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Close the LineWriter.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n\t * @throws IOException\t<jdl:section>\r\n\t * \t\t\t\t\t\t\t<jdl:text lang='it'>Se qualcosa va male durante l'elaborazione.</jdl:text>\r\n\t * \t\t\t\t\t\t\t<jdl:text lang='en'>If something goes wrong during elaboration.</jdl:text> \r\n\t *\t\t\t\t\t\t</jdl:section>\r\n */\r\n public void close() throws IOException;\r\n \r\n}", "private void textilizeNonBlankLine () {\n StringBuffer blockMod = new StringBuffer();\n int startPosition = 0;\n int textPosition = 0;\n leftParenPartOfURL = false;\n attributeType = 0;\n klass = new StringBuffer();\n id = new StringBuffer();\n style = new StringBuffer();\n language = new StringBuffer();\n String imageTitle = \"\";\n String imageURL = \"\";\n int endOfImageURL = -1;\n boolean doublePeriod = false;\n int periodPosition = line.indexOf (\".\");\n if (periodPosition >= 0) {\n textPosition = periodPosition + 1;\n if (textPosition < line.length()) {\n if (line.charAt (textPosition) == '.') {\n doublePeriod = true;\n textPosition++;\n }\n if (textPosition < line.length()\n && line.charAt (textPosition) == ' ') {\n textPosition++;\n textIndex = 0;\n while (textIndex < periodPosition\n && (Character.isLetterOrDigit (textChar()))) {\n blockMod.append (textChar());\n textIndex++;\n } // end while more letters and digits\n if (blockMod.toString().equals (\"p\")\n || blockMod.toString().equals (\"bq\")\n || blockMod.toString().equals (\"h1\")\n || blockMod.toString().equals (\"h2\")\n || blockMod.toString().equals (\"h3\")\n || blockMod.toString().equals (\"h4\")\n || blockMod.toString().equals (\"h5\")\n || blockMod.toString().equals (\"h6\")) {\n // look for attributes\n collectAttributes (periodPosition);\n } else {\n blockMod = new StringBuffer();\n textPosition = 0;\n }\n } // end if space follows period(s)\n } // end if not end of line following first period\n } // end if period found\n\n // Start processing at the beginning of the line\n textIndex = 0;\n\n // If we have a block modifier, then generate appropriate HTML\n if (blockMod.length() > 0) {\n lineDelete (textPosition);\n closeOpenBlockQuote();\n closeOpenBlock();\n doLists();\n if (blockMod.toString().equals (\"bq\")) {\n lineInsert (\"<blockquote><p\");\n context.blockQuoting = true;\n } else {\n lineInsert (\"<\" + blockMod.toString());\n }\n if (klass.length() > 0) {\n lineInsert (\" class=\\\"\" + klass.toString() + \"\\\"\");\n }\n lineInsert (\">\");\n if (doublePeriod) {\n context.nextBlock = blockMod.toString();\n } else {\n context.nextBlock = \"p\";\n }\n }\n\n // See if line starts with one or more list characters\n if (blockMod.length() <= 0) {\n while (textIndex < line.length()\n && (textChar() == '*'\n || textChar() == '#'\n || textChar() == ';')) {\n listChars.append (textChar());\n textIndex++;\n }\n if (listChars.length() > 0\n && (textIndex >= line.length()\n || ((! Character.isWhitespace (textChar()))\n && (textChar() != '(')))) {\n listChars = new StringBuffer();\n textIndex = 0;\n }\n int firstSpace = line.indexOf (\" \", textIndex);\n if (listChars.length() > 0) {\n collectAttributes (firstSpace);\n }\n }\n int endDelete = textIndex;\n if (endDelete < line.length()\n && Character.isWhitespace (line.charAt (endDelete))) {\n endDelete++;\n }\n\n if (listChars.length() > 0) {\n lineDelete (0, endDelete);\n }\n doLists();\n if (listChars.length() > 0\n && listChars.charAt(listChars.length() - 1) == ';') {\n lastDefChar = ';';\n } else {\n lastDefChar = ' ';\n }\n\n // See if this line contains a link alias\n if ((blockMod.length() <= 0)\n && ((line.length() - textIndex) >= 4)\n && (textChar() == '[')) {\n int rightBracketIndex = line.indexOf (\"]\", textIndex);\n if (rightBracketIndex > (textIndex + 1)) {\n linkAlias = true;\n String alias = line.substring (textIndex + 1, rightBracketIndex);\n String url = line.substring (rightBracketIndex + 1);\n lineDelete (line.length() - textIndex);\n lineInsert (\"<a alias=\\\"\" + alias + \"\\\" href=\\\"\" + url + \"\\\"> </a>\");\n }\n }\n\n // If no other instructions, use default start for a new line\n if (blockMod.length() <= 0 \n && listChars.length() <= 0\n & (! linkAlias)) {\n // This non-blank line does not start with a block modifier or a list char\n if (context.lastLineBlank) {\n if (context.nextBlock.equals (\"bq\")) {\n lineInsert (\"<p>\");\n } else {\n closeOpenBlockQuote();\n lineInsert (\"<\" + context.nextBlock + \">\");\n }\n } else {\n lineInsert (\"<br />\");\n }\n }\n\n // Now examine the rest of the line\n char last = ' ';\n char c = ' ';\n char next = ' ';\n leftParenPartOfURL = false;\n resetLineIndexArray();\n while (textIndex <= line.length()) {\n // Get current character, last character and next character\n last = c;\n if (textIndex < line.length()) {\n c = textChar();\n } else {\n c = ' ';\n }\n if ((textIndex + 1) < line.length()) {\n next = line.charAt (textIndex + 1);\n } else {\n next = ' ';\n }\n \n // ?? means a citation\n if (c == '?' && last == '?') {\n if (ix [CITATION] >= 0) {\n replaceWithHTML (CITATION, 2);\n } else {\n ix [CITATION] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // __ means italics\n if (c == '_' && last == '_' && ix [QUOTE_COLON] < 0) {\n if (ix [ITALICS] >= 0) {\n replaceWithHTML (ITALICS, 2);\n } else {\n ix [ITALICS] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // ** means bold\n if (c == '*' && last == '*') {\n if (ix [BOLD] >= 0) {\n replaceWithHTML (BOLD, 2);\n } else {\n ix [BOLD] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // _ means emphasis\n if (c == '_' && next != '_' && ix [QUOTE_COLON] < 0) {\n if (ix [EMPHASIS] >= 0) {\n replaceWithHTML (EMPHASIS, 1);\n } else {\n ix [EMPHASIS] = textIndex;\n textIndex++;\n }\n }\n else\n // * means strong\n if (c == '*' && next != '*') {\n if (ix [STRONG] >= 0) {\n replaceWithHTML (STRONG, 1);\n } else {\n ix [STRONG] = textIndex;\n textIndex++;\n }\n }\n else\n // Exclamation points surround image urls\n if (c == '!' && Character.isLetter(next)\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] < 0) {\n // First exclamation point : store its location and move on\n ix [EXCLAMATION] = textIndex;\n textIndex++;\n }\n else\n // Second exclamation point\n if (c == '!'\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] >= 0) {\n // Second exclamation point\n imageTitle = \"\";\n endOfImageURL = textIndex;\n if (last == ')' && ix [EXCLAMATION_LEFT_PAREN] > 0) {\n ix [EXCLAMATION_RIGHT_PAREN] = textIndex - 1;\n endOfImageURL = ix [EXCLAMATION_LEFT_PAREN];\n imageTitle = line.substring\n (ix [EXCLAMATION_LEFT_PAREN] + 1, ix [EXCLAMATION_RIGHT_PAREN]);\n }\n imageURL = line.substring (ix [EXCLAMATION] + 1, endOfImageURL);\n // Delete the image url, title and parentheses,\n // but leave exclamation points for now.\n lineDelete (ix [EXCLAMATION] + 1, textIndex - ix [EXCLAMATION] - 1);\n String titleString = \"\";\n if (imageTitle.length() > 0) {\n titleString = \" title=\\\"\" + imageTitle + \"\\\" alt=\\\"\" + imageTitle + \"\\\"\";\n }\n lineInsert (ix [EXCLAMATION] + 1,\n \"<img src=\\\"\" + imageURL + \"\\\"\" + titleString + \" />\");\n if (next == ':') {\n // Second exclamation followed by a colon -- look for url for link\n ix [QUOTE_COLON] = textIndex;\n ix [LAST_QUOTE] = ix [EXCLAMATION];\n } else {\n lineDelete (ix [EXCLAMATION], 1);\n lineDelete (textIndex, 1);\n }\n ix [EXCLAMATION] = -1;\n ix [EXCLAMATION_LEFT_PAREN] = -1;\n ix [EXCLAMATION_RIGHT_PAREN] = -1;\n textIndex++;\n } // end if second exclamation point\n else\n // Parentheses within exclamation points enclose the image title\n if (c == '(' && ix [EXCLAMATION] > 0 ) {\n ix [EXCLAMATION_LEFT_PAREN] = textIndex;\n textIndex++;\n }\n else\n // Double quotation marks surround linked text\n if (c == '\"' && ix [QUOTE_COLON] < 0) {\n if (next == ':'\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [LAST_QUOTE] + 1)) {\n ix [QUOTE_COLON] = textIndex;\n } else {\n ix [LAST_QUOTE] = textIndex;\n }\n textIndex++;\n }\n else\n // Flag a left paren inside of a url\n if (c == '(' && ix [QUOTE_COLON] > 0) {\n leftParenPartOfURL = true;\n textIndex++;\n }\n else\n // Space may indicate end of url\n if (Character.isWhitespace (c)\n && ix [QUOTE_COLON] > 0\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [QUOTE_COLON] + 2)) {\n int endOfURL = textIndex - 1;\n // end of url is last character of url\n // do not include any trailing punctuation at end of url\n int backup = 0;\n while ((endOfURL > (ix [QUOTE_COLON] + 2))\n && (! Character.isLetterOrDigit (line.charAt(endOfURL)))\n && (! ((line.charAt(endOfURL) == ')') && (leftParenPartOfURL)))\n && (! (line.charAt(endOfURL) == '/'))) {\n endOfURL--;\n backup++;\n }\n String url = line.substring (ix [QUOTE_COLON] + 2, endOfURL + 1);\n // insert the closing anchor tag\n lineInsert (endOfURL + 1, \"</a>\");\n // Delete the quote, colon and url from the line\n lineDelete (ix [QUOTE_COLON], endOfURL + 1 - ix [QUOTE_COLON]);\n // insert the beginning of the anchor tag\n lineDelete (ix [LAST_QUOTE], 1);\n lineInsert (ix [LAST_QUOTE], \"<a href=\\\"\" + url + \"\\\">\");\n // Reset the pointers\n ix [QUOTE_COLON] = -1;\n ix [LAST_QUOTE] = -1;\n leftParenPartOfURL = false;\n // Increment the index to the next character\n if (backup > 0) {\n textIndex = textIndex - backup;\n } else {\n textIndex++;\n }\n }\n else\n // Look for start of definition\n if ((c == ':' || c == ';')\n && Character.isWhitespace(last)\n && Character.isWhitespace(next)\n && listChars.length() > 0\n && (lastDefChar == ';' || lastDefChar == ':')) {\n lineDelete (textIndex - 1, 3);\n lineInsert (closeDefinitionTag (lastDefChar)\n + openDefinitionTag (c));\n lastDefChar = c;\n }\n /* else\n // -- means an em dash\n if (c == '-' && last == '-') {\n textIndex--;\n lineDelete (2);\n lineInsert (\"&#8212;\");\n } */ else {\n textIndex++;\n }\n }// end while more characters to examine\n\n context.lastLineBlank = false;\n\n }", "public abstract String getFormattedContent();", "public void toXML(Writer stream, String indent, String namespace) throws IOException {\n // if ( m_content != null && m_content.length() > 0 ) {\n // stream.write( \"<text>\");\n // stream.write( quote(this.m_content,false) );\n // stream.write(\"</text>\");\n // } else {\n // stream.write(empty_element);\n // }\n if (this.m_content != null) {\n stream.write(quote(this.m_content, false));\n }\n }", "private void printTree(OutputStreamWriter out, boolean isRight, String indent) throws IOException {\n\t if (right != null) {\n\t right.printTree(out, true, indent + (isRight ? \" \" : \" | \"));\n\t }\n\t out.write(indent);\n\t if (isRight) {\n\t out.write(\" /\");\n\t } else {\n\t out.write(\" \\\\\");\n\t }\n\t out.write(\"----- \");\n\t printNodeValue(out);\n\t if (left != null) {\n\t left.printTree(out, false, indent + (isRight ? \" | \" : \" \"));\n\t }\n\t }", "public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}", "void write(Writer out, boolean escapeXML) throws IOException;", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected SyntaxTreeNode rewriteBlock(@Nonnull final BlockBuilder parent, @Nonnull final Block block) {\n final String content = concatNodeContent(block.getChildren());\n\n final SyntaxTreeNode first = parent.getChildren().stream().findFirst().orElse(null);\n assert first != null;\n\n // Create a new span containing this content\n final SpanBuilder span = new SpanBuilder();\n span.setEditHandler(new SpanEditHandler(HtmlTokenizer.createTokenizeDelegate()));\n fillSpan(span, first.getStart(), content);\n return span.build();\n }", "@Override\n\tpublic String generateHTML() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString level = \"\\t\";\n\t\tstringBuilder.append(level.repeat(levelCount)+\"<div>\\n\");\n\t\tlevelCount++;\n\t\tfor (HTMLGenerator htmlGenerator : tags) {\n\t\t\tstringBuilder.append(level.repeat(levelCount)+htmlGenerator.generateHTML());\n\t\t}\n\t\tstringBuilder.append(\"</div>\\n\");\n\t\treturn stringBuilder.toString();\n\t}", "protected void print(Node node, int level, PrintWriter out)\n{\n int endtagLevel = level;\n // is there anything to do?\n if (node == null)\n {\n return;\n }\n\n for (int i=0; i<level; i++)\n {\n out.print(\" \");\n }\n int type = node.getNodeType();\n switch (type)\n {\n case Node.DOCUMENT_NODE:\n {\n out.println(docHeader);\n this.print(((Document)node).getDoctype(), 0, out);\n this.print(((Document)node).getDocumentElement(), 0, out);\n break;\n }\n\n // print document type\n case Node.DOCUMENT_TYPE_NODE:\n {\n out.println(docType);\n break;\n }\n // print element with attributes\n case Node.ELEMENT_NODE:\n {\n out.print('<');\n out.print(node.getNodeName());\n Attr attrs[] = sortAttributes(node.getAttributes());\n for (int i = 0; i < attrs.length; i++)\n {\n Attr attr = attrs[i];\n out.print(' ');\n out.print(attr.getNodeName());\n out.print(\"=\\\"\");\n out.print(attr.getNodeValue());\n out.print('\"');\n }\n\n NodeList children = node.getChildNodes();\n int len = (children != null) ? children.getLength() : 0;\n if (len == 1 \n && \n (children.item(0).getNodeType() == Node.CDATA_SECTION_NODE\n ||\n children.item(0).getNodeType() == Node.TEXT_NODE))\n {\n out.print('>');\n this.print(children.item(0), 0, out);\n endtagLevel = 0;\n }\n else\n {\n out.println('>');\n for (int i = 0; i < len; i++)\n {\n this.print(children.item(i), (level+1), out);\n }\n }\n break;\n }\n\n // handle entity nodes\n case Node.ENTITY_NODE:\n {\n out.print(\"ENTITY \");\n out.print(node.getNodeName());\n Entity ent = (Entity)node;\n String sId = ent.getSystemId();\n if (sId != null)\n {\n out.print(\" SYSTEM \\\"\" + sId + \"\\\"\");\n }\n break;\n }\n\n // handle entity reference nodes\n case Node.ENTITY_REFERENCE_NODE:\n {\n if (canonical)\n {\n NodeList children = node.getChildNodes();\n if (children != null)\n {\n int len = children.getLength();\n for (int i = 0; i < len; i++)\n {\n this.print(children.item(i), level, out);\n }\n }\n } \n else\n {\n out.print('&');\n out.print(node.getNodeName());\n out.print(';');\n }\n break;\n }\n\n // print cdata sections\n case Node.CDATA_SECTION_NODE:\n {\n // have to normalize it.\n out.print(normalize(node.getNodeValue()));\n break;\n }\n\n // print text\n case Node.TEXT_NODE:\n {\n out.print(node.getNodeValue());\n break;\n }\n\n // print processing instruction\n case Node.PROCESSING_INSTRUCTION_NODE:\n {\n out.print(\"<?\");\n out.print(node.getNodeName());\n String data = node.getNodeValue();\n if (data != null && data.length() > 0)\n {\n out.print(' ');\n out.print(data);\n }\n out.print(\"?>\");\n break;\n }\n default:\n {\n out.print(\"Unknown type \" + type);\n }\n }\n\n if (type == Node.ELEMENT_NODE)\n {\n for (int i=0; i<endtagLevel; i++)\n {\n out.print(\" \");\n }\n out.print(\"</\");\n out.print(node.getNodeName());\n out.println('>');\n }\n\n}", "public String markupDocumentSpan(String documentId,TextLabels labels) {\n\t\tTreeMap boundaries = new TreeMap();\n\t\tfor (Iterator i=labels.getTypes().iterator(); i.hasNext(); ) {\n\t\t\tString type = (String)i.next();\n\t\t\tfor (Span.Looper j=labels.instanceIterator(type, documentId); j.hasNext(); ) {\n\t\t\t\tSpan s = j.nextSpan();\n\t\t\t\t//System.out.println(\"Left Boundary: \" + s.getLeftBoundary());\n\t\t\t\t//System.out.println(\"Right Boundary: \" + s.getRightBoundary());\n\t\t\t\tsetBoundary(boundaries,\"begin\",type,s.getLeftBoundary());\n\t\t\t\tsetBoundary(boundaries,\"end\",type,s.getRightBoundary());\n\t\t\t}\n\t\t}\n\t\t// now walk thru boundaries and find out which set as\n\t\t// associated with each segment - want map from boundaries to\n\t\t// type sets\n\t\tString source = labels.getTextBase().documentSpan(documentId).asString();\n\t\t//System.out.println(\"source is \"+source);\n\t\tStringBuffer buf = new StringBuffer(\"\");\n\t\tbuf.append(\"<root>\");\n\t\tint currentPos = 0;\n\t\tSet currentTypes = new TreeSet();\n\t\tString lastMarkup = null;\n\t\tfor (Iterator i=boundaries.keySet().iterator(); i.hasNext(); ) {\n\t\t\tSpan b = (Span)i.next();\n\t\t\t//System.out.println(\"b=\"+b);\n\t\t\t// work out what types are in effect here\n\t\t\tSet ops = (Set)boundaries.get(b);\n\t\t\tfor (Iterator j=ops.iterator(); j.hasNext(); ) {\n\t\t\t\tString[] op = (String[]) j.next();\n\t\t\t\tSystem.out.println(\"op is \"+op[0]+\",\"+op[1]);\n\t\t\t\tif (\"begin\".equals(op[0])) currentTypes.add(op[1]);\n\t\t\t\telse currentTypes.remove(op[1]);\n\t\t\t}\n\t\t\t// output next section of document\n\t\t\tint pos;\n\t\t\tif (b.documentSpanStartIndex() < b.documentSpan().size())\n\t\t\t\tpos = b.documentSpan().subSpan( b.documentSpanStartIndex(), 1).getTextToken(0).getLo();\n\t\t\telse\n\t\t\t\tpos = b.documentSpan().getTextToken(b.documentSpan().size()-1).getHi();\n\n\t\t\t//System.out.println(\"boundary \"+pos+\" currentTypes=\"+currentTypes);\n\t\t\tbuf.append( source.substring(currentPos, pos) );\n\t\t\t// close off last markup\n\t\t\tif (lastMarkup!=null) buf.append(\"</\"+lastMarkup+\">\");\n\t\t\t// work out next markup symbol\n\t\t\tString markup = null;\n\t\t\tString value = null;\n\t\t\tif (currentTypes.size()==1) {\n\t\t\t\tmarkup = (String) (currentTypes.iterator().next());\n\t\t\t} else if (currentTypes.size()>1) {\n\t\t\t\tmarkup = \"overlap\";\n\t\t\t\tStringBuffer vBuf = new StringBuffer(\"\");\n\t\t\t\tfor (Iterator j=currentTypes.iterator(); j.hasNext(); ) {\n\t\t\t\t\tif (vBuf.length()>0) vBuf.append(\",\");\n\t\t\t\t\tvBuf.append( (String) j.next() );\n\t\t\t\t}\n\t\t\t\tvalue = vBuf.toString();\n\t\t\t}\n\t\t\tif (markup!=null && value!=null) {\n\t\t\t\tbuf.append(\"<\"+markup+\" value=\\\"\"+value+\"\\\">\");\n\t\t\t} else if (markup!=null) {\n\t\t\t\tbuf.append(\"<\"+markup+\">\");\n\t\t\t}\n\t\t\t// update position, lastMarkup\n\t\t\tcurrentPos = pos;\n\t\t\tlastMarkup = markup;\n\t\t\t//System.out.println(\"after update buf='\"+buf+\"'\");\n\t\t} // each boundary\n\t\t// close it all off\n\t\tbuf.append(source.substring(currentPos,source.length()));\n\t\tbuf.append(\"</root>\");\n\t\treturn buf.toString();\n\t}", "private static void render(String s)\n {\n if (s.equals(\"{\"))\n {\n buf_.append(\"\\n\");\n indent();\n buf_.append(s);\n _n_ = _n_ + INDENT_WIDTH;\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\"(\") || s.equals(\"[\"))\n buf_.append(s);\n else if (s.equals(\")\") || s.equals(\"]\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\" \");\n }\n else if (s.equals(\"}\"))\n {\n int t;\n _n_ = _n_ - INDENT_WIDTH;\n for(t=0; t<INDENT_WIDTH; t++) {\n backup();\n }\n buf_.append(s);\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\",\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\" \");\n }\n else if (s.equals(\";\"))\n {\n backup();\n buf_.append(s);\n buf_.append(\"\\n\");\n indent();\n }\n else if (s.equals(\"\")) return;\n else\n {\n buf_.append(s);\n buf_.append(\" \");\n }\n }", "public static void main(String[] args) throws IOException {\n\n BufferedWriter bw = new BufferedWriter(new FileWriter(\"lorem4.txt\"));\n bw.write(\"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. \");\n bw.newLine();\n bw.write(\"sahuashuashuashauh aubduabd augb ua auhuh\");\n\n bw.close();\n\n }", "@Test\n public void testModifier() {\n String html = source.toHTML(new SEclipseStyle(), new SModifier());\n assertEquals(html, \"<pre style='color:#000000;background\"\n + \":#ffffff;'>\"\n + \"<span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class MainClass {\\n\"\n + \" \\n\"\n + \" <span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }<span style=\"\n + \"'color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class Foo {\\n\"\n + \" \\n\"\n + \" <span style='color\"\n + \":#7f0055; font-weight:bold; '>\"\n + \"public</span> boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\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 }", "private void formatSegmentContent(final TermParserReader p) {\n final TermToken tt = p.current();\n final Token tk = token(tt);\n switch (tt.kind()) { // NOPMD\n case CONTROL:\n p.advance();\n break;\n case IGNORABLE:\n processIgnorable(p, tk);\n break;\n case BLOCK_START:\n space();\n consume(p, Terms.BLOCK_START);\n printControl(\"{\");\n forceNewLine();\n indentLevel++;\n formatBlockContent(p);\n indentLevel--;\n startIndentedLine();\n printControl(\"}\");\n consume(p, Terms.BLOCK_END);\n break;\n default:\n if (tk != null) {\n switch (tk.kind()) {\n case BRACKET:\n print(tk);\n spaceSuppressed = true;\n break;\n case COMMA:\n print(tk);\n break;\n case GRAPHICS:\n if (graphicsWithSuppressedSpace.contains(tk.text())) {\n if (lastPrinted.kind() == Tokens.GRAPHICS) {\n spaceSuppressed = false;\n space();\n }\n print(tk);\n spaceSuppressed = true;\n } else {\n if (lastPrinted.kind() == Tokens.GRAPHICS) {\n spaceSuppressed = false;\n }\n space();\n print(tk);\n }\n break;\n default:\n space();\n print(tk);\n break;\n }\n }\n p.advance();\n break;\n }\n }", "private void buildRTF() {\n\t\n}", "public static void escape() {\n \n // print vs. println\n \n System.out.print(\"Hello Class!\"); // next thing prints on same line\n System.out.println(\"It is Tuesday.\"); // next thing prints on next line\n \n System.out.println(); // prints a blank line\n \n \n // OUTPUT \n System.out.println(2); // you can put text or numbers in a print statement\n System.out.println(1 + 2 * 3); // you can also do math!\n // (order of operations)\n \n // Escape Sequences: \n // special characters denoted with the \\ (the escape character)\n \n // \\n --> new line \n System.out.print(\"Hello! \\n\\n\\n\\n\");\n System.out.println(\"He\\nllo!\");\n \n // \\t --> tab \n System.out.println(\"Hi\\tHi\");\n System.out.println(\"Hi\\t\\t\\t\\tHi\");\n \n // \\\\ --> \\\n System.out.println(\"\\\\\");\n \n // \\\" --> \" \n System.out.println(\"She said \\\"Java is the best!\\\"\");\n \n // You try!\n // Make a new class PrintQuote.java\n // Think of a quote or saying that you know \n // Output that saying with visible \" \" around it \n // Use a method to print your quote!\n \n // Example output: \"That's the way the cookie crumbles.\"\n \n \n \n \n \n \n \n }", "@Override\n public final String getRaw(){\n return getDocument().getTextCache(this, () -> {\n /// Raw text is adding up raw text of each child.\n StringBuilder builder = new StringBuilder();\n\n for (Span span: this){\n builder.append(span.getRaw());\n }\n return builder.toString();\n });\n }", "public void addRaw(final String pContent) {\n\t\tout.write(pContent);\n\t\tout.flush();\n\t}", "private static String createOriginalDocumentBody(Node parentNode) {\n\t\tString text = \"\";\n\t\tfor (int i = 0, number = parentNode.numberOfChildren(); i < number; i++) {\n\t\t\tNode node = parentNode.getChild(i);\n\t\t\t\n\t\t\ttext += printNode(node);\n\t\t\ttext += createOriginalDocumentBody(node);\n\t\t\t\n\t\t\tif (node instanceof ForLoopNode) {\n\t\t\t\ttext +=ParserDelimiters.OPEN_TAG_DELIMITER.getValue()\n\t\t\t\t\t\t+ ParserDelimiters.END_LOOP_DELIMITER.getValue()\n\t\t\t\t\t\t+ ParserDelimiters.CLOSE_TAG_DELIMITER.getValue();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn text;\n\t}", "public void writeRaw(String text)\n/* */ throws IOException\n/* */ {\n/* 442 */ int len = text.length();\n/* 443 */ int room = this._outputEnd - this._outputTail;\n/* */ \n/* 445 */ if (room == 0) {\n/* 446 */ _flushBuffer();\n/* 447 */ room = this._outputEnd - this._outputTail;\n/* */ }\n/* */ \n/* 450 */ if (room >= len) {\n/* 451 */ text.getChars(0, len, this._outputBuffer, this._outputTail);\n/* 452 */ this._outputTail += len;\n/* */ } else {\n/* 454 */ writeRawLong(text);\n/* */ }\n/* */ }", "public interface IHtmlStreamWriter extends IXmlStreamWriter {\r\n\tvoid ignoreCurrentEndTag();\r\n}", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "@Override\n public void writeSpace(String text)\n throws XMLStreamException\n {\n writeRaw(text);\n }", "private void doWrite() throws IOException {\n\t\t\tbb.flip();\n\t\t\tsc.write(bb);\n\t\t\tbb.compact();\n\n\t\t\tupdateInterestOps();\n\t\t}", "@Override\n public void write(String text) {\n }", "public static int writeMethod(Element element, PrintWriter writer){\n String tag = \"\";\n String paramreturn = \"\";\n String text = \"\";\n try {\n String docs = element.select(\"div.block\").first().text();\n Elements dt_dd = element.getElementsByTag(\"dl\").first().children();\n docs += dt_dd.size() > 1 ? \"\\n\" : \"\";\n for (int i = 0; i < dt_dd.size(); i++) { //skipping the first because that is the word \"\n text = dt_dd.get(i).text();\n if (text.equals(\"Parameters:\")) {\n tag = \"@param \";\n continue;\n }\n if (text.equals(\"Returns:\")) {\n tag = \"@return \";\n continue;\n }\n if (text.equals(\"Throws:\")) {\n tag = \"@throws \";\n continue;\n }\n if (tag.equals(\"\")) continue;\n paramreturn += \" \\n\" + tag + dt_dd.get(i).text().replace(\" - \", \" \");\n }\n writer.print(tab(comment(docs + paramreturn, true),1));\n }\n catch (java.lang.NullPointerException e){}\n String header = getPreText(element);\n String body = header.contains(\"abstract\") ? \";\\n\" : \" {\\n \\n}\\n\"; //end in semicolon if abstract\n writer.println(tab(header + body,1)); //public int FUNCNAME {\n return 0;\n }", "public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }", "public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }", "private void print(String toBeWritten)\n\t\t{ pw.print(getIndentString() + toBeWritten); }", "public void printWithTemplate(String text) {\n String line = \"____________________________________________________________\";\n\n out.println(line);\n out.println(text);\n out.println(line);\n }", "public static text_node render_text_position(text_position pos,\n int highlight_begin, int highlight_end) {\n\n String input = utilities.s(pos.source.content);\n int begin = pos.begin;\n // nicer display of the end of file -- no caret by itself\n if (begin == input.length() &&\n begin > 0 &&\n input.charAt(begin - 1) == '\\n') {\n begin = begin - 1;\n }\n int line_begin = input.lastIndexOf('\\n', begin - 1) + 1;\n\n base_string prefix;\n base_string highlight_prefix;\n if (highlight_begin < begin) {\n if (highlight_begin < line_begin) {\n highlight_begin = line_begin;\n }\n prefix = new base_string(input.substring(line_begin, highlight_begin));\n highlight_prefix = new base_string(input.substring(highlight_begin, begin));\n } else {\n prefix = new base_string(input.substring(line_begin, begin));\n highlight_prefix = new base_string(\"\");\n }\n\n int line_end = input.indexOf('\\n', line_begin);\n int end = pos.end;\n\n // print an extra caret:\n // 1) if there were no carets printed (e.g. at the end of file),\n // 2) to signal that position continues past newline\n boolean suffix_caret = false;\n if (end == begin) {\n end = begin + 1;\n }\n if (end > line_end) {\n end = line_end;\n suffix_caret = true;\n }\n base_string underlined = new base_string(input.substring(begin, end) +\n (suffix_caret ? \" \" : \"\"));\n\n base_string suffix = new base_string(\"\");\n base_string highlight_suffix = new base_string(\"\");\n if (end < line_end) {\n if (highlight_end > end) {\n if (highlight_end > line_end) {\n highlight_end = line_end;\n }\n highlight_suffix = new base_string(input.substring(end, highlight_end));\n suffix = new base_string(input.substring(highlight_end, line_end));\n } else {\n suffix = new base_string(input.substring(end, line_end));\n }\n }\n\n text_element underlined_element = base_element.make(text_library.UNDERLINE, underlined);\n text_element highlighted_element;\n if (highlight_prefix.is_empty() && highlight_suffix.is_empty()) {\n highlighted_element = underlined_element;\n } else {\n text_fragment highlighted = text_util.join(highlight_prefix, underlined_element,\n highlight_suffix);\n highlighted_element = new base_element(text_library.UNDERLINE2,\n new list_dictionary<attribute_id, string>(), highlighted);\n }\n text_fragment text_line = text_util.join(prefix, highlighted_element, suffix);\n\n return new base_element(text_library.DIV,\n new list_dictionary<attribute_id, string>(), text_line);\n }", "public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }", "public TextBlock() {\n writer = new StringMaker();\n writer.openForOutput();\n // blockOut = new StringBuilder();\n labels = new ArrayList();\n // writer.close();\n }", "@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn String.format(\"#%1$d *%2$s* (%3$s@doc): %4$s\\n%5$s\",\n\t\t\t id, poster_name, poster_uid, title,\n\t\t\t mlong.replaceAll(\"</?(br|BR)( ?/)?>\", \"\").replaceAll(\"</?(p|P) ( ?/)?>\", \"\\n\")\n\t\t\t);\n\t\t}", "protected void writeRepositoryInstruction() throws IOException {\n openTag(\"set-life-cycle-attributes\");\n endUnaryTag();\n Iterator j = attributeList.keySet().iterator();\n Map attributes;\n String field, value, name;\n IntralinkOrigin o;\n while (j.hasNext()) {\n o = (IntralinkOrigin)j.next();\n attributes = (Map)attributeList.get(o);\n value = null;\n field = null;\n Iterator i = attributes.keySet().iterator(); \n openTag(\"metadata\");\n writeParameter(\"name\", o.getName());\n writeParameter(\"branch\", o.getBranch());\n writeParameter(\"revision\", o.getRevision());\n writeParameter(\"version\", o.getVersion());\n while (i.hasNext()) {\n field = i.next().toString();\n if (!attributes.containsKey(field)) continue;\n value = attributes.get(field).toString();\n writeParameter(field, value);\n }\n closeTag();\n }\n closeTag(\"set-life-cycle-attributes\");\n }", "abstract public String asText(boolean pretty);", "public void toString(Writer stream) throws IOException {\n stream.write('\"');\n if (this.m_content != null) stream.write(escape(this.m_content));\n stream.write('\"');\n }", "public static String format(final Document document) {\n try {\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"2\");\n StreamResult result = new StreamResult(new StringWriter());\n DOMSource source = new DOMSource(document);\n transformer.transform(source, result);\n return result.getWriter().toString();\n } catch (IllegalArgumentException | TransformerException e) {\n throw new RuntimeException(e);\n }\n }", "public String markupAsHTML (Markup m)\n {\n\n if (m == null)\n {\n\n return this.paragraph;\n\n }\n\n Markup pm = new Markup (m,\n this.getAllTextStartOffset (),\n this.getAllTextEndOffset ());\n\n pm.shiftBy (-1 * this.getAllTextStartOffset ());\n\n return pm.markupAsHTML (this.paragraph);\n\n }", "@Override\r\n\tpublic void translateToAsm(PrintWriter writer, Memory stack) {\n\t\t\r\n\t}", "public String toXML(int indent) {\n StringBuffer xmlBuf = new StringBuffer();\n //String xml = \"\";\n \n synchronized(xmlBuf) {\n\t\tfor (int i=0;i<indent;i++)\n xmlBuf.append(\"\\t\");\n //xml += \"\\t\";\n\n\t\tString synopsisLengthAsString;\n\n\t\tswitch(length)\n\t\t{\n\t\t\tcase UNDEFINED:\n\t\t\t\tsynopsisLengthAsString = \"undefined\";\n\t\t\t\tbreak;\n\t\t\tcase SHORT:\n\t\t\t\tsynopsisLengthAsString = \"short\";\n\t\t\t\tbreak;\n\t\t\tcase MEDIUM:\n\t\t\t\tsynopsisLengthAsString = \"medium\";\n\t\t\t\tbreak;\n\t\t\tcase LONG:\n\t\t\t\tsynopsisLengthAsString = \"long\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsynopsisLengthAsString = \"undefined\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\txmlBuf.append(\"<Synopsis\");\n //xml += \"<Synopsis\";\n if (length!=UNDEFINED) {\n xmlBuf.append(\" length=\\\"\");\n xmlBuf.append(synopsisLengthAsString);\n xmlBuf.append(\"\\\"\");\n //xml = xml + \" length=\\\"\"+ synopsisLengthAsString + \"\\\"\";\n }\n if (language!=null) {\n xmlBuf.append(\" xml:lang=\\\"\");\n xmlBuf.append(language);\n xmlBuf.append(\"\\\"\");\n //xml = xml + \" xml:lang=\\\"\" + language + \"\\\"\";\n }\n xmlBuf.append(\">\");\n //xml += \">\";\n\t\txmlBuf.append(\"<![CDATA[\");\n xmlBuf.append(text);\n xmlBuf.append(\"]]>\");\n //xml = xml + \"<![CDATA[\" + text + \"]]>\";\n xmlBuf.append(\"</Synopsis>\");\n //xml += \"</Synopsis>\";\n\n\t\treturn xmlBuf.toString();\n }\n\t}", "public void doWrite() throws IOException {\n\t\tbbout.flip();\n\t\tsc.write(bbout);\n\t\tbbout.compact();\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}", "private HTMLElement generateInlineIntroHTML(IntroHTML element,\n \t\t\tint indentLevel) {\n \t\tStringBuffer content = readFromFile(element.getSrc());\n \t\tif (content != null && content.length() > 0) {\n \t\t\t// Create the outer div element\n \t\t\tHTMLElement divElement = generateDivElement(element.getId(),\n \t\t\t\t\tIIntroHTMLConstants.DIV_CLASS_INLINE_HTML, indentLevel);\n \t\t\t// add the content of the specified file into the div element\n \t\t\tdivElement.addContent(content);\n \t\t\treturn divElement;\n \t\t}\n \t\treturn null;\n \t}", "public void generate() {\n\t\t// Print generation stamp\n\t\tcontext.getNaming().putStamp(elementInterface, out);\n\t\t// Print the code\n\t\t// Print header\n\t\tout.println(\"package \"+modelPackage+\";\");\n\t\tout.println();\n\t\tout.println(\"public interface \"+elementInterface);\n\t\tif (context.isGenerateVisitor()) {\n\t\t\tout.println(indent+\"extends \"+context.getNaming().getVisitableInterface(modelName));\n\t\t}\n\t\tout.println(\"{\");\n\t\tif (context.isGenerateID()) {\n\t\t\tout.println(indent+\"/** Get the id */\");\n\t\t\tout.println(indent+\"public String getId();\");\n\t\t\tout.println(indent+\"/** Set the id */\");\n\t\t\tout.println(indent+\"public void setId(String id);\");\n\t\t\tout.println();\n\t\t}\n\t\tif (context.isGenerateBidirectional()) {\n\t\t\tout.println(indent+\"/** Delete */\");\n\t\t\tout.println(indent+\"public void delete();\");\n\t\t}\n\t\tout.println(indent+\"/** Override toString */\");\n\t\tout.println(indent+\"public String toString();\");\n//\t\tif (context.isGenerateInvariant()) {\n//\t\t\tout.println();\n//\t\t\tout.println(indent+\"/** Parse all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean parseInvariants(ILog log);\");\n//\t\t\tout.println(indent+\"/** Evaluate all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean evaluateInvariants(ILog log);\");\n//\t\t}\n\t\tout.println(\"}\");\n\t}", "private ConfigurationHTMLPrinter printIndent() {\n for (int i=0; i<indent; i++) sb.append(\" \");\n return this;\n }", "CodeBlock createCodeBlock();", "public static String saveDomToString(Document doc, String encoding, boolean bIndent,String output)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n // find out how we should form output\n // make sure we have some encoding\n if (encoding == null) {\n encoding = doc.getXmlEncoding();\n }\n if (encoding == null) {\n encoding = default_encoding;\n }\n\n try {\n DOMSource xmlDomSource = new DOMSource(doc);\n\n // make an identity transformation\n TransformerFactory transFac = TransformerFactory.newInstance();\n Transformer trans = transFac.newTransformer();\n // set transformatoion properties\n // this is an identity transformation\n // and no properties are set exept defaults\n\n //NOTE: we have a problem with HTML5 which wants a simple header: \n // <!DOCTYPE HTML>\n // we assume that the template is set accordingly\n // This will not give us PublicID and SystemID as null\n // we will have to detect this situastion before we return\n // the text, see below, after transformation\n\n // problem:\n // this will kill other transformed input that make html root\n // use explicit: html5 output option ? (yes)\n\n DocumentType dt = doc.getDoctype();\n String pid = null;\n String sid = null;\n String name = null;\n if (dt != null) {\n pid = dt.getPublicId();\n sid = dt.getSystemId();\n name = dt.getName();\n }\n\n boolean is_HTML5 = false;\n output=output.toLowerCase();\n switch(output){\n case Options.TEXT:\n trans.setOutputProperty(OutputKeys.MEDIA_TYPE, \"text/plain; charset=\" + encoding);\n break;\n \n case Options.XML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.XHTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.HTML5:\n case Options.HTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n is_HTML5 = true;\n break;\n \n default:\n throw new Exception(\"bad output type: \" + output);\n }\n \n\n trans.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\n trans.setOutputProperty(OutputKeys.ENCODING, encoding);\n\n if (bIndent) {\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n trans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"0\");\n } else {\n // use no to avoid prince-problems with toc targets ?????\n trans.setOutputProperty(OutputKeys.INDENT, \"no\");\n }\n\n java.io.StringWriter out = new java.io.StringWriter();\n java.io.BufferedWriter bos = new java.io.BufferedWriter(out);\n StreamResult outStream = new StreamResult(bos);\n trans.transform(xmlDomSource, outStream);\n bos.flush();\n\n // this is where we can clean up a doctype\n // prepared for html 5\n\n String result = out.toString().trim();\n if (is_HTML5 && ( (result.startsWith(\"<html\")) \n || (result.startsWith(\"<HTML\")))) {\n result = \"<!DOCTYPE HTML>\\n\" + result;\n }\n\n return result;\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveDomToString. \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveDomToString. \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveDomToString. \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveDomToString. \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveDomToString. \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveDomToString. \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "protected void writePreamble() throws IOException {\n\n // Begin graph\n writeLine(\"digraph workflow {\");\n\n // Overall graph style\n writeLine(\" graph [\");\n writeLine(\" bgcolor = \\\"#eeeeee\\\"\");\n writeLine(\" color = \\\"black\\\"\");\n writeLine(\" fontsize = \\\"10\\\"\");\n writeLine(\" labeljust = \\\"left\\\"\");\n writeLine(\" clusterrank = \\\"local\\\"\");\n writeLine(\" ranksep = \\\"0.22\\\"\");\n writeLine(\" nodesep = \\\"0.05\\\"\");\n writeLine(\" ]\");\n\n // Overall node style\n writeLine(\" node [\");\n writeLine(\" fontname = \\\"Helvetica\\\"\");\n writeLine(\" fontsize = \\\"10\\\"\");\n writeLine(\" fontcolor = \\\"black\\\"\");\n writeLine(\" shape = \\\"record\\\"\");\n writeLine(\" height = \\\"0\\\"\");\n writeLine(\" width = \\\"0\\\"\");\n writeLine(\" color = \\\"black\\\"\");\n writeLine(\" fillcolor = \\\"lightgoldenrodyellow\\\"\");\n writeLine(\" style = \\\"filled\\\"\");\n writeLine(\" ];\");\n\n // Overall edge style\n writeLine(\" edge [\");\n writeLine(\" fontname=\\\"Helvetica\\\"\");\n writeLine(\" fontsize=\\\"8\\\"\");\n writeLine(\" fontcolor=\\\"black\\\"\");\n writeLine(\" color=\\\"black\\\"\");\n writeLine(\" arrowsize=\\\"0.7\\\"\");\n writeLine(\" ];\");\n }", "public FreeMindWriter text( String text ) {\n if( ! tagOpen ) throw new IllegalStateException( \"Node start element is no longer open\" );\n \n out.print( \" TEXT='\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"'\" ); \n return this;\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 }", "@Override\n\tpublic void processingInstruction(String target, String data) throws SAXException {\n\t\ttry {\n\t\t\tif (!startTagIsClosed) {\n\t\t\t\twrite('>');\n\t\t\t\tstartTagIsClosed = true;\n\t\t\t}\n\t\t\twrite(\"<?\");\n\t\t\twrite(target);\n\t\t\twrite(' ');\n\t\t\twrite(data);\n\t\t\twrite(\"?>\");\n\t\t\tif (elementLevel < 1) {\n\t\t\t\twrite('\\n');\n\t\t\t}\n\t\t\tsuper.processingInstruction(target, data);\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}", "@Override\n\tpublic Object visit(ASTNewtag node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.println(\"<\" + node.tagName + \"> {\");\n\t\tnode.childrenAccept(this, indent + 2);\n\t\tSystem.out.println();\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"} </\" + node.tagName + \">\");\n\t\treturn null;\n\t}", "private void writeBody(final DataOutput out, final boolean indent) throws IOException {\n out.writeBytes(CRLF);\n if (content == null) {\n if (indent && OpenEJBHttpServer.isTextXml(headers)) {\n final String xml = new String(sosi.getOutputStream().toByteArray());\n out.write(OpenEJBHttpServer.reformat(xml).getBytes());\n } else {\n out.write(sosi.getOutputStream().toByteArray());\n }\n } else {\n final InputStream in = content.getInputStream();\n final byte[] buf = new byte[1024];\n\n int i;\n while ((i = in.read(buf)) != -1) {\n out.write(buf, 0, i);\n }\n }\n }", "public void write(String filePath) {\n\t\tcmd = new WriteCommand(editor, filePath);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void writeDocumentToOutput() {\n log.debug(\"Statemend of XML document...\");\r\n // writeDocumentToOutput(root,0);\r\n log.debug(\"... end of statement\");\r\n }", "public OutputSummary() throws IOException\n\t{\n\t\tsetBorder(BorderFactory.createRaisedBevelBorder());\n\t\tthis.setPreferredSize(new Dimension(500, 600));\n\t\tthis.setVisible(true);\n\t\teditorPane = new JEditorPane();\n\t\teditorPane.setText(\"<output here>\");\n\t\teditorPane.setContentType(\"text/html\");\n\t\tJScrollPane editorScrollPane = new JScrollPane(editorPane);\n\t\teditorScrollPane.setVerticalScrollBarPolicy(\n\t\t JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\teditorScrollPane.setPreferredSize(new Dimension(490, 600));\n\t\tthis.add(editorScrollPane);\n\t}", "public static void saveDom(Document doc, URI theUri, String encoding, boolean bIndent, String output)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n if (theUri == null) {\n throw (new Exception(\"No_uri_to_save_to\"));\n }\n output = output.toLowerCase().trim();\n if ((!output.equals(Options.XML))\n && (!output.equals(Options.HTML))\n && (!output.equals(Options.HTML5))\n && (!output.equals(Options.TEXT))\n && (!output.equals(Options.XHTML))) {\n throw (new Exception(\"unknown_output_method\" + \": \" + output));\n }\n if (encoding == null) {\n encoding = doc.getXmlEncoding();\n }\n if (encoding == null) {\n encoding = default_encoding;\n }\n\n String ds = saveDomToString(doc, encoding, bIndent, output);\n accessutils.saveTFile(theUri, ds, encoding);\n // It would be slightly faster to transform directly to URI\n // but making the string first gives better control and one place to\n // work with the rather tricky code\n\n }", "public String prettyPrint()\n {\n return prettyPrint(\"\");\n }", "public void saveDocument() throws IOException;", "public final Writer wrapAsTextWriter()\n {\n return mWriter.wrapAsTextWriter();\n }", "public boolean saveHTMLInFile()\n {\n String filePath = formatFilePath();\n return saveHTMLInFile(filePath);\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 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 }", "@Test\n public void testCurlyBracket() {\n String html = source.toHTML(new SEclipseStyle(), new SCurlyBracket());\n assertEquals(html, \"<pre style='color:\"\n + \"#000000;background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public interface SegmentWriter {\n\n void flush() throws IOException;\n\n /**\n * Write a blob (as list of block records)\n *\n * @param blob blob to write\n * @return the record id of the blob written\n * @throws IOException\n */\n @NotNull\n RecordId writeBlob(@NotNull Blob blob) throws IOException;\n\n /**\n * Writes a stream value record. The given stream is consumed <em>and\n * closed</em> by this method.\n *\n * @param stream stream to be written\n * @return the record id of the stream written\n * @throws IOException if the input stream could not be read or the output\n * could not be written\n */\n @NotNull\n RecordId writeStream(@NotNull InputStream stream) throws IOException;\n\n /**\n * Write a node state. If non null, the passed {@code stableId} will be assigned to\n * the persisted node. Otherwise the stable id will be inferred from {@code state}.\n *\n * @param state node state to write\n * @param stableIdBytes the stableId that should be assigned to the node or {@code null}.\n * @return the record id of the segment node state written\n * @throws IOException\n */\n @NotNull\n RecordId writeNode(@NotNull NodeState state, @Nullable Buffer stableIdBytes) throws IOException;\n\n /**\n * Write a node state.\n * <p>\n * Equivalent to {@code writeNode(state, null)}\n *\n * @see #writeNode(NodeState, Buffer)\n */\n @NotNull\n default RecordId writeNode(@NotNull NodeState state) throws IOException {\n return writeNode(state, null);\n }\n\n}", "public void writeInstalment(Instalment ins, BufferedWriter bufferedWriter) throws IOException {\n bufferedWriter.write(\"INS @ \" + ins.getPrice() + \" @ \" + ins.getDescription() + \" @ \"\n + ins.getCategory() + \" @ \" + ins.getBoughtDate() + \" @ \" + ins.getNumOfPayments() + \" @ \"\n + ins.getAnnualInterestRate() + \"\\n\");\n }", "public String generateContents(Collection<Reference> references) {\n String contents = references.stream().map(\n ref -> formatReference(ref)\n ).collect(Collectors.joining(\"\\n\"));\n\n return escapeScandicCharacters(contents);\n }", "public String format(String markup) {\n markup = markup.replace(\"[[\", \"^^LEFT$$\").replace(\"]]\", \"^^RIGHT$$\");\n // This is a hacky way of removing emphasis (as EmphasisResolver seems to be buggy; since it's\n // also used by stripAllButInternalLinksAndEmphasis, we need to remove emphasis manually first)\n markup = markup.replaceAll(\"'{6}\", \"'\");\n markup = markup.replaceAll(\"'{5}\", \"\");\n markup = markup.replaceAll(\"'{4}\", \"'\");\n markup = markup.replaceAll(\"'{3}\", \"\");\n markup = markup.replaceAll(\"'{2}\", \"\");\n markup = stripper.stripInternalLinks(markup, null);\n markup = stripper.stripExcessNewlines(markup);\n markup = StringEscapeUtils.unescapeHtml(markup);\n markup = markup.replace('\\u2019', '\\'');\n // Contract multiple whitespaces.\n markup = markup.replaceAll(\"\\\\s+\", \" \");\n return markup;\n }", "public Code visitWriteNode(StatementNode.WriteNode node) {\n beginGen(\"Write\");\n Code code = node.getExp().genCode(this);\n code.generateOp(Operation.WRITE);\n endGen(\"Write\");\n return code;\n }", "public String getWriteFormatDescription(int formatIndex);", "private HTMLElement generateIntroText(IntroText element, int indentLevel) {\n \t\tHTMLElement textElement = generateTextElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_PARAGRAPH, null,\n \t\t\t\tIIntroHTMLConstants.SPAN_CLASS_TEXT, element.getText(),\n \t\t\t\tindentLevel);\n \t\treturn textElement;\n \t}", "Write createWrite();", "public void run() {\n try {\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n // Fortify Mod: prevent external entity injection\r\n tFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\r\n Transformer transformer = tFactory.newTransformer();\r\n transformer.setOutputProperty(\"encoding\", \"UTF-8\");\r\n transformer.setOutputProperty(\"indent\", \"yes\");\r\n transformer.transform(new DOMSource(doc), new StreamResult(\r\n pos));\r\n } catch (Exception e) {\r\n throw new RuntimeException(\r\n \"Error converting Document to InputStream. \"\r\n + e.getMessage());\r\n } finally {\r\n try {\r\n pos.close();\r\n } catch (IOException e) {\r\n\r\n }\r\n }\r\n }", "void write();" ]
[ "0.5885225", "0.57830966", "0.49814662", "0.49386355", "0.48791057", "0.48406717", "0.47828117", "0.4758374", "0.47369155", "0.4723274", "0.46221828", "0.45842996", "0.45739365", "0.45614702", "0.45424727", "0.4519326", "0.45173302", "0.44902727", "0.4478552", "0.44751438", "0.44581378", "0.4453652", "0.4428641", "0.4365983", "0.4334155", "0.4320925", "0.43090513", "0.4299405", "0.42947543", "0.4283855", "0.42803323", "0.4279816", "0.4274558", "0.42637601", "0.42537645", "0.42535773", "0.42480093", "0.42349887", "0.4232805", "0.42269272", "0.4220524", "0.4214051", "0.4205561", "0.42026272", "0.41992977", "0.4197271", "0.41785875", "0.41706353", "0.41634065", "0.41596952", "0.41591692", "0.41551098", "0.41478786", "0.41478786", "0.41342336", "0.41238546", "0.4115707", "0.41062775", "0.4095926", "0.4094579", "0.40857697", "0.40827447", "0.40699285", "0.40399885", "0.4034696", "0.40301988", "0.40273365", "0.40249905", "0.4022462", "0.40107018", "0.40096745", "0.40064248", "0.4000071", "0.39918843", "0.39914888", "0.39896524", "0.39890298", "0.39886296", "0.39878085", "0.39842218", "0.39825103", "0.3979735", "0.39768246", "0.39726207", "0.39673167", "0.39618534", "0.39587072", "0.39583603", "0.39563355", "0.3947441", "0.39471197", "0.39412352", "0.3940784", "0.3935685", "0.39336994", "0.39335197", "0.39333546", "0.39321274", "0.39305153", "0.39273974" ]
0.51590186
2
Write a new line
public void newLine() { rst += NEW_LINE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newLine()\n\t{\n\t\toutput.append(\"\\n\");\n\t}", "public void newLine() {\n text.append(\"\\n\");\n }", "public void newLine() {\n\t\tcommandLine.append(\"\\n\");\n\t}", "public void markNewLine() throws IOException {\n\t\tout.write(\"\\n\");\n\t\tout.flush();\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 appendLine() {\n\t\t\tmBuilder.append(NewLineChar);\n\t\t\tlastAppendNewLine = true;\n\t\t}", "private void newline() {}", "public abstract void newLine();", "private void linefeed() {\n try {\n out.write(lineSeparator);\n } catch (java.io.IOException ioe) {\n }\n ;\n }", "public static void newLine()\r\n {\r\n logFile.println();\r\n logFile.flush();\r\n }", "protected void writeLine(String line) throws IOException {\n writer.write(line);\n writer.write(EOL);\n }", "protected void newline(Writer out) throws IOException {\r\n if (currentFormat.newlines) {\r\n out.write(currentFormat.lineSeparator);\r\n }\r\n }", "private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}", "private void newline() {\n if (enableSplitting) {\n if (out.length() != 0) {\n out.append(System.lineSeparator());\n }\n out.append(\" \".repeat(depth)); // two spaces indent is sufficient\n } else {\n out.append(\" \"); // just a separator between two tokens\n }\n }", "private void writeEndOfLine(final BufferedWriter file) throws IOException {\n file.write(\"\\\\\\\\\");\n file.newLine();\n }", "public void linefeed() {\r\n\t\tconsole.print(LINESEP);\r\n\t}", "public abstract AbstractLine newLine() throws IOException;", "void showNewLine(String lineNumber, String directionId);", "private void writeHline(final BufferedWriter file) throws IOException {\n file.write(\"\\\\hline\");\n file.newLine();\n }", "private void writeLine(String s) throws IOException {\n\tfbuf.write(s, 0, s.length());\n\tfbuf.newLine();\n }", "private void writeOutputLine(String textLine) {\n String outputText = Calendar.getInstance().getTime().toString();\n if (textLine != null) {\n outputText = outputText + \" : \" + textLine;\n }\n try {\n this.bufferedWriter.write(outputText);\n this.bufferedWriter.newLine();\n this.bufferedWriter.flush();\n } catch (IOException e) {\n LOG.error(\"Can not write text line.\", e);\n }\n }", "public void writeln () {\n pw.println();\n }", "private void lineBreak()\n\t{\n\t\tlog += String.format(\"%n\");\n\t\tfor(int i = 0; i < 25; i++)\n\t\t\tlog += \"-\";\n\t\tlog += String.format(\"%n\");\n\t}", "public void writeLine(String line) {\n try {\n out.println(line);\n } catch (Exception e) {\n // done\n cleanup();\n }\n }", "public void endl(){\n putc('\\n');\n }", "public void writeLineToConsole(String text) {\n writeToConsole(text + \"\\n\\r\");\n }", "public int WriteLine(String message) {\n\tWrite(message);\n\tchildStdin.AddCharacters(\"\\n\");\n\treturn message.length() + 1;\n }", "private void addNewLine(StringBuilder builder, String line){\r\n\t\tbuilder.append(line);\r\n\t\tbuilder.append(\"\\n\");\r\n\t}", "public String getNewLine() {\n return newLine;\n }", "public SourceGenerator writeNewline(){\r\n\t\tif (m_style == CodeStyle.PRETTY){\r\n\t\t\tm_writer.append(m_newline);\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "protected void append(String line) {\n\t\t\tout.append(line);\n\t\t}", "public void close() throws IOException {\n write(\"\\n\");\n writer.close();\n }", "public void writeLine(String s) throws IOException {\n raos.writeLine(s);\n }", "public void showLine() {\n System.out.print(LINE_SEPARATOR);\n }", "private void printline(Object o) {\n\t\tprint(o + newline);\n\t}", "public void writeLine(String line){\n\t\ttry{\n\t\t\tout.write(line);\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"File cannot be written too.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static void printLine() {\r\n if (!isDisabled()) {\r\n print(LINE_SEPARATOR);\r\n }\r\n }", "void putLine(String line);", "public static void multiLineWithEscape()\r\n {\n System.out.print(\"Hello! \\nHello! \\nHello!\\n\\n\");\r\n }", "protected void emitLine(String line) {\n if (writer == null) {\n super.emitLine(line);\n return;\n }\n line = line.replaceAll(\"\\t\", \" \");\n writer.println(line);\n }", "private void writeCodeLine(String rCode){\n\t\tCodeCount++;{\n\t\ttry {\n\t\t\tcodes.write(CodeCount+\" \"+rCode+'\\n');;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"FileWriter Error on \"+CodeCount);\n\t\t}\n\t\treturn;\n\t\t}\n\t}", "public void newChatLine(String line) {\n\t\tSystem.out.println(line);\n\t}", "public static String lineBreak() {\n return \"\\n*****************************************************\\n\";\n }", "private void publishLine(String msg) {\r\n\t\ttaOutput.appendText(msg);\r\n\t\ttaOutput.appendText(\"\\n\");\r\n\t}", "public SourceGenerator forceNewline(){\r\n\t\tm_writer.append(m_newline);\r\n\t\treturn this;\r\n\t}", "private static void addLineBreak(XWPFParagraph paragraph) {\n requireNonNull(paragraph);\n\n XWPFRun run = paragraph.createRun();\n run.addCarriageReturn();\n }", "public void newLogFileLine(String line) {\n System.out.println(line);\n }", "public abstract AbstractLine newLine(byte[] data) throws IOException;", "public static void writeWithSystemNewlines (BufferedWriter writer, String string)\n\t\t\tthrows IOException {\n\t\tfor (int i=0; i<string.length(); i++) {\n\t\t\tchar c = string.charAt(i);\n\t\t\tif (c == '\\n')\n\t\t\t\twriter.newLine();\n\t\t\telse\n\t\t\t\twriter.write(c);\n\t\t}\n\t}", "public void addEmptyLine() {\n addLine(\"\");\n }", "void appendStdout(String line);", "public static String newline() {\n return System.getProperty(JavaSystemProperty.LINE_SEPARATOR);\n }", "public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }", "public static void oneLineHellos()\r\n {\r\n System.out.print(\"Hello! \");\r\n System.out.print(\"Hello! \");\r\n System.out.println(\"Hello! \"); // skips to next line after this one\r\n }", "private static void printSeparatorLine() {\r\n System.out.print(\"\\n----------------------------------------------------------\" +\r\n \"----------------------------------------------------------\");\r\n }", "private void displayLine()\n {\n System.out.println(\"#################################################\");\n }", "private void writeFile(String line, BufferedWriter theOutFile) throws Exception {\n\t\ttheOutFile.append(line);\t\t\t// write the line out\n\t\ttheOutFile.newLine();\t\t\t\t// skip to the next line\t\t\n\t}", "public static void writeLine(String string, int line) {\r\n\t\taddLine(string, line);\r\n\t\trefresh();\r\n\t}", "protected void writeLineBreaks(Writer writer, int count) throws IOException {\n for (int i = 0; i < count; i++) {\n writer.write(NL);\n }\n }", "public void println(String line) {\n\t\tif (!outputAnythingOnLine) {\n\t\t\tthis.outputActualIndentation();\n\t\t}\n\t\toutputJALPrintStream.println(line);\n\t\toutputAnythingOnLine = false;\n\t}", "private void printLine()\r\n\t{\r\n\t}", "public void onOutputLineAdded(Window window, OutputLine line) {\n\t\t\t\n\t\t\tlinesLayout.addLine(line);\n\t\t}", "public Log nuevaLinea() {\n cadenas.add(\"\\n\");\n return this;\n }", "private void addLineToCSV(String str) throws IOException\r\n {\r\n csvOutput.write(str.getBytes());\r\n csvOutput.write('\\n');\r\n }", "public Builder addLine(String line) {\n this.contentBuilder.append(line).append(\"\\n\");\n return this;\n }", "public static void rowLine(int n){\r\n for (int i = 0; i<n; i++){\r\n System.out.print(\"+-\");\r\n }\r\n System.out.println('+');\r\n }", "public void append_report(String line) {\n output.println(line);\n }", "public static void writeLine(String fileName, String content) {\r\n write(fileName, content + System.lineSeparator());\r\n\r\n }", "public TypescriptStringBuilder appendln(final String chunk) {\n if (!chunk.endsWith(\"\\n\")) {\n return append(chunk + \"\\n\");\n }\n\n return append(chunk);\n }", "public void writeln(String text) throws ShellIOException;", "public void drawLine() {\n for(int i=0; i < nCols; i++) {\n System.out.print(\"----\");\n }\n System.out.println(\"\");\n }", "public void write(LineWriter writer) {\n\t\tsuper.write(writer);\n\t\twriter.writeLine(1); // version\n\t}", "public static void writeLine(String sLine)\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsJunitOutput = sLine;\n\t\t\tSystem.out.println(sLine);\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(sLine);\n\t\t}\n\t}", "public void println(String line);", "public void generateOutputLine(String outputLine, int index);", "protected String addToMultiLineField(String current, String newline){\n\t\tif(current == null)\n\t\t\tcurrent = \"\";\n\t\t\n\t\tif(newline == null)\n\t\t\tnewline = \"\";\n\t\t\n\t\treturn current +\"\\r\\n\" + newline;\t\n\t}", "void writeLine(Object... columns) throws IOException;", "@Override\n\tprotected void endOfLine() {\n\t}", "public void writeln (String s) {\n pw.println(s);\n }", "private void write(String command) throws IOException {\n if (connected) {\n try {\n writer.write(command);\n writer.newLine();\n writer.flush();\n } catch (IOException e) {\n System.out.println(\"Could not read from server -> ServerCommunication:write()\");\n System.out.println(e);\n }\n } else {\n throw new IOException(\"Not Connected\");\n }\n }", "public void endLine() {\n if (currentLine != null) {\n lines.add(currentLine);\n currentLine = null;\n }\n }", "public static void nl(String nl) {\n Formatting.nl = nl;\n Formatting.dnl = nl + nl;\n }", "public void createLine(int _loc, StringBuilder _sb) {\r\n if (_sb.charAt(_loc) == ' ') {\r\n _sb.insert(_loc, \"<br>\");\r\n }\r\n else {\r\n _loc--;\r\n createLine(_loc, _sb);\r\n }\r\n }", "public static void writeLine(Writer w, List<String> values) throws IOException {\n\n boolean first = true;\n\n StringBuilder sb = new StringBuilder();\n for (String value : values) {\n if (!first) {\n sb.append(DEFAULT_SEPARATOR);\n }\n sb.append(format(value));\n first = false;\n }\n sb.append(\"\\n\");\n w.append(sb.toString());\n }", "public void writeLine(String theString, int color)\r\n\t{\r\n\t\t/*\r\n\t\t * 0 = system! 1 = User Input 2 = Socket Input 3 = Other\r\n\t\t */\r\n\t\tStyleContext context = new StyleContext();\r\n\t\tstyle = context.getStyle(StyleContext.DEFAULT_STYLE);\r\n\t\tStyleConstants.setFontSize(style, 14);\r\n\t\tStyleConstants.setSpaceAbove(style, 4);\r\n\t\tStyleConstants.setSpaceBelow(style, 4);\r\n\r\n\t\tswitch (color)\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\tStyleConstants.setForeground(style, Color.GRAY);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLACK);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLUE);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tStyleConstants.setForeground(style, Color.RED);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ttheString = theString + \"\\n\";\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tdoc.insertString(doc.getLength(), theString, style);\r\n\r\n\t\t}\r\n\t\tcatch (BadLocationException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// scroll to the bottom\r\n\t\ttxtDisplayArea.setCaretPosition(txtDisplayArea.getDocument()\r\n\t\t\t\t.getLength());\r\n\r\n\t}", "public void writeLineToSdcard(String filename, String line) {\n final String outputFile = Environment.getExternalStorageDirectory().toString() + \"/\"\n + filename;\n try {\n FileWriter fstream = null;\n fstream = new FileWriter(outputFile, true);\n BufferedWriter out = new BufferedWriter(fstream);\n out.write(line + \"\\n\");\n out.close();\n fstream.close();\n Log.print(\"write log: \" + outputFile);\n } catch (Exception e) {\n Log.print(\"exception for write log\");\n }\n }", "public void writeLineToFile(File file, String content) throws IOException {\n\t\tBufferedWriter writer = writers.get(file);\n\t\twriter.append(content + \"\\n\");\n\t}", "public void print(String line) {\n\t\tif (!outputAnythingOnLine) {\n\t\t\tthis.outputActualIndentation();\n\t\t}\n\t\toutputJALPrintStream.print(line);\n\t\toutputAnythingOnLine = true;\n\t}", "public final void mNEWLINE() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.NEWLINE;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:5: ( ( ( '\\\\r' )?\n\t\t\t// '\\\\n' ) )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:9: ( ( '\\\\r' )?\n\t\t\t// '\\\\n' )\n\t\t\t{\n\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:9: ( ( '\\\\r'\n\t\t\t\t// )? '\\\\n' )\n\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:10: ( '\\\\r'\n\t\t\t\t// )? '\\\\n'\n\t\t\t\t{\n\t\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:783:10: (\n\t\t\t\t\t// '\\\\r' )?\n\t\t\t\t\tint alt4 = 2;\n\t\t\t\t\tfinal int LA4_0 = this.input.LA(1);\n\n\t\t\t\t\tif ((LA4_0 == '\\r'))\n\t\t\t\t\t{\n\t\t\t\t\t\talt4 = 1;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt4)\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:783:11:\n\t\t\t\t\t\t// '\\\\r'\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.match('\\r');\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.match('\\n');\n\n\t\t\t\t}\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}", "protected static String br() {\n return \"\\r\\n\";\n }", "protected void writeln(String s)\n {\n out.println(s);\n }", "private static void append(String text) {\n // Print the same text to STDOUT\n System.out.println(text);\n\n try {\n outputFileBuffer.write(text+\"\\n\");\n outputFileBuffer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public final void nextRow() {\n this.line++;\n }", "public static void writeLine(String string) {\n\t\t \n\t\tif (tinObject.length() == 0) {\n\t\t\ttinObject.append(firstString);\n\t\t}\n\t\ttinObject.append(string);\n\t}", "public void goNextLine () throws IOException {\n\t\treader.goNextLine();\n\t\tcurrentLine = reader.getCurrentLine();\n\t}", "@Override\n public void write (final int c)\n {\n if (text != null)\n {\n text.append (String.valueOf ((char) c));\n if (++col > wrap)\n println ();\n }\n else\n super.write (c);\n }", "public JodaBeanSer withNewLine(String newLine) {\n JodaBeanUtils.notNull(newLine, \"newLine\");\n return new JodaBeanSer(indent, newLine, converter, iteratorFactory, shortTypes, deserializers, includeDerived);\n }", "private boolean isNewLine(int nextVal) {\n\t\treturn nextVal == CR || nextVal == LF || nextVal == EOF;\n\t}", "void println(String line);", "public final void mNEWLINE() throws RecognitionException {\n try {\n int _type = NEWLINE;\n // /Users/benjamincoe/HackWars/C.g:168:9: ( ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )\n // /Users/benjamincoe/HackWars/C.g:169:5: ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\n {\n // /Users/benjamincoe/HackWars/C.g:169:5: ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\n int alt3=3;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0=='\\r') ) {\n int LA3_1 = input.LA(2);\n\n if ( (LA3_1=='\\n') ) {\n alt3=1;\n }\n else {\n alt3=2;}\n }\n else if ( (LA3_0=='\\n') ) {\n alt3=3;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"169:5: ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // /Users/benjamincoe/HackWars/C.g:169:6: '\\\\r\\\\n'\n {\n match(\"\\r\\n\"); \n\n\n }\n break;\n case 2 :\n // /Users/benjamincoe/HackWars/C.g:170:9: '\\\\r'\n {\n match('\\r'); \n\n }\n break;\n case 3 :\n // /Users/benjamincoe/HackWars/C.g:171:9: '\\\\n'\n {\n match('\\n'); \n\n }\n break;\n\n }\n\n //input.setLine(input.getLine()+1); \n \tchannel=HIDDEN;\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }" ]
[ "0.8130402", "0.78443223", "0.7393443", "0.7367778", "0.7314123", "0.72788304", "0.72210956", "0.7190392", "0.7177982", "0.7168788", "0.700642", "0.68467885", "0.6757036", "0.6753325", "0.6744818", "0.6740585", "0.6660788", "0.6649637", "0.65869135", "0.657208", "0.65329266", "0.6523056", "0.64727175", "0.6439625", "0.6430873", "0.6398229", "0.6348527", "0.6346356", "0.63064903", "0.6289043", "0.6252564", "0.6205959", "0.62002057", "0.61995023", "0.6169486", "0.61371714", "0.6043053", "0.60214514", "0.6012311", "0.5992946", "0.5992576", "0.597861", "0.59310216", "0.59146374", "0.5902006", "0.58921504", "0.58914137", "0.5879252", "0.5852407", "0.5839306", "0.5807752", "0.57566506", "0.5748504", "0.5734732", "0.57341677", "0.5731933", "0.5729865", "0.5729131", "0.57285196", "0.57270414", "0.57112014", "0.5706075", "0.5702679", "0.5695003", "0.56819594", "0.5676825", "0.56754905", "0.5666768", "0.56602615", "0.5639873", "0.56357014", "0.56150776", "0.5609253", "0.55745494", "0.5520805", "0.5517089", "0.55145526", "0.550164", "0.54977083", "0.5483202", "0.54824126", "0.54773444", "0.5472129", "0.54610026", "0.5429043", "0.54275084", "0.54261917", "0.5417313", "0.5412219", "0.5400882", "0.53983283", "0.53835344", "0.53809154", "0.5379019", "0.53788745", "0.5374621", "0.5370782", "0.5369485", "0.5362264", "0.5357341" ]
0.79697937
1
Increase the indent Affects all future calls to markup().
public void indent() { indent += 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ConfigurationHTMLPrinter incrementIndent() {\n indent++;\n return this;\n }", "protected void indentMore() \r\n\t{\r\n\tindent += 3;\r\n\t}", "public void indent() {\n ++tabLevel;\n }", "protected void indentLess() \r\n\t{\r\n\tindent -= 3;\r\n\t}", "public void inc()\n {\n _level++;\n calculateIndentationString();\n }", "private void addIndent() {\r\n if (indentSpace.length() > 0) {\r\n for (int i = 0; i < indent; i++) {\r\n xml.append(indentSpace);\r\n }\r\n }\r\n }", "public void outdent()\n {\n if ( indent > 0 )\n {\n indent -= 1;\n }\n }", "public void indentMore() {\n\t\tindentLevel += indentStep;\n\t}", "private static void indent()\r\n {\r\n for (int i = 0; i < indentLevel * 2; i++) {\r\n System.out.print(' ');\r\n }\r\n }", "public void indentLess() {\n\t\tindentLevel -= indentStep;\n\t}", "public SourceGenerator writeIndent(){\r\n\t\tm_indenter.writeIndent();\r\n\t\treturn this;\r\n\t}", "private void startIndentedLine() {\n startLine();\n for (int i = 0; i < indentLevel; i++) {\n out.print(INDENTATION_STRING);\n }\n }", "public final void increaseIndent(final int amount) {\n indent += amount;\n }", "void indent(final StringBuilder xml, final int level) {\n if (INDENT != null) {\n for (int i = 0; i < level; i++)\n xml.append(INDENT);\n }\n }", "private ConfigurationHTMLPrinter printIndent() {\n for (int i=0; i<indent; i++) sb.append(\" \");\n return this;\n }", "void setIndentLevel(int level);", "public void setIndentSize(short indentSize);", "private ConfigurationHTMLPrinter decrementIndent() {\n indent--;\n return this;\n }", "private String indent(int level) throws IOException {\n return Utility.repeat(\" \", level);\n }", "private void outputIndentation() {\n\t for (int i = 0; i < indent; i++) {\n\t out.print(basicIndent);\n\t }\n\t}", "public void setIndentation(int indentation)\n {\n this.indentation = indentation;\n }", "public void markup( String text )\n {\n // Indent only of this is the first text on the line\n markup( text, rst.isEmpty() || rst.endsWith( NEW_LINE ) );\n }", "public void outputActualIndentation() {\n\t\tfor (int steps = 1; steps <= indentLevel; steps++) {\n\t\t\toutputJALPrintStream.print(\" \");\n\t\t}\n\t\tif (showMarkerFlag) {\n\t\t\toutputJALPrintStream.print(\"|\");\n\t\t}\n\t}", "public TypescriptStringBuilder indent() {\n indent(1);\n return this;\n }", "protected static String indent()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i<toStringIndent; i++) sb.append(\" \");\n\t\treturn sb.toString();\n\t}", "protected void addIndentation(PrintWriter p, int indent) {\n for (int k = 0; k < indent; k++) p.print(\" \");\n }", "private void ensureIndent() {\n if (addIndentation) {\n writeIndent();\n addIndentation = false;\n }\n }", "int getIndentLevel();", "public void setIndent(int size) {\r\n setIndentSize(size);\r\n }", "public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason) {\n boolean supResult = super.indentLine(doc, reason);\n\n /** This method is simply a call to getIndentOfCurrStmt, which is fully tested in IndentHelperTest, so no additional\n * tests are provided for this class.\n */\n\n int indent = 0;\n\n\n indent = doc._getIndentOfCurrStmt(doc.getCurrentLocation(), new char[] {';','{','}'}, new char[] {' ', '\\t','\\n'});\n\n\n indent = indent + _suffix;\n doc.setTab(indent, doc.getCurrentLocation());\n \n return supResult;\n }", "protected void indent(Writer out, int level) throws IOException {\r\n if (currentFormat.newlines) {\r\n if (currentFormat.indent == null ||\r\n currentFormat.indent.equals(\"\")) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < level; i++) {\r\n out.write(currentFormat.indent);\r\n }\r\n }\r\n }", "private void indent(StringBuffer output, Node node) {\n\t\toutput.append(\"\\n\");\n\t\tString lineNumber = (node == null) ? \"\" : \"[\" + node.getLine() + \"]\";\n\t\toutput.append(String.format(\"%5s \", lineNumber));\n\t\tfor (int i = 0; i < depth; ++i)\n\t\t\toutput.append(\" \");\n\t\toutput.append(\"+-- \");\n\t}", "@Override\n\tpublic void print(int indent) {\n\t}", "private void indentNewLine(Token<CppTokenId> current){\n if (current.id() == NEW_LINE) {\n return;\n }\n int space;\n Token<CppTokenId> first = ts.lookNextLineImportant();\n if (first != null && (first.id() == CASE ||first.id() == DEFAULT)){\n space = getCaseIndent();\n } else {\n space = getIndent();\n }\n if (current.id() == WHITESPACE) {\n ts.replaceCurrent(current, 0, space, true);\n } else {\n ts.addBeforeCurrent(0, space, true);\n }\n }", "protected void doIndent(PrintWriter p, int indent) {\r\n for (int k=0; k<indent; k++) p.print(\" \");\r\n }", "@Override\n\tpublic void visitXindent(Xindent p) {\n\n\t}", "public void push()\n {\n\tsetIndentLevel(indentLevel + 1);\n }", "public XMLBuilder setIndent(boolean flag) {\n indentOutput = flag;\n return this;\n }", "protected void doIndent(PrintWriter p, int indent) {\n for (int k=0; k<indent; k++) p.print(\" \");\n }", "public int getIndentation()\n {\n return indentation;\n }", "int getIndentSize();", "public TypescriptStringBuilder indent(final int amount) {\n return setIndentLevel(indentLevel + amount);\n }", "private String indent(int spaces) {\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < spaces; i++) {\n\t\t\tresult = result + \" \";// it creates as much spaces as it is told to\n\t\t}\n\t\treturn result;\n\t}", "public void unindent() {\n if (tabLevel > 0) --tabLevel;\n }", "public void output(IndentedWriter out) \n {\n }", "public void setIndent(boolean doIndent) {\r\n if (doIndent) {\r\n defaultFormat.indent = STANDARD_INDENT;\r\n }\r\n else {\r\n defaultFormat.indent = null;\r\n }\r\n }", "private void indent(StringBuilder sb) {\n for (int i = 0; i < indentLevel; i++) {\n sb.append('\\t');\n }\n }", "public static final void indent(final StringBuilder buf, int level)\n {\n while (level > 0)\n {\n buf.append(\" \");\n --level;\n }\n }", "protected void incrementNesting() {\n m_nestingDepth++;\n }", "public static String tab() {\n return indent;\n }", "public String getIndentation()\n {\n return _indentation;\n }", "public TypescriptStringBuilder unindent() {\n indent(-1);\n return this;\n }", "protected String getIndent() \r\n\t{\r\n\tStringBuffer buffer = new StringBuffer();\r\n\tfor (int i = 0; i < indent; ++i)\r\n\t\tbuffer.append(' ');\r\n\treturn buffer.toString();\r\n\t}", "public String getIndent() {\n return indent;\n }", "@Override\n\tpublic void visitXdefindent(Xdefindent p) {\n\n\t}", "int getIndentation() {\n return this.indentation;\n }", "public void withIndent(Block block) throws Exception {\n increment();\n try {\n block.invoke();\n } finally {\n decrement();\n }\n }", "public void indentNone() {\n\t\tindentLevel = 0;\n\t}", "public void setIndent(int spaces) {\r\n\r\n if (xml.length() > 0) {\r\n // We can't allow the indent set after the user already pushed data\r\n // to the xml.\r\n\r\n } else {\r\n\r\n switch (spaces) {\r\n case 0:\r\n indentSpace = \"\";\r\n break;\r\n\r\n case 1:\r\n indentSpace = \" \";\r\n break;\r\n\r\n case 2:\r\n indentSpace = \" \";\r\n break;\r\n\r\n case 4:\r\n indentSpace = \" \";\r\n break;\r\n\r\n default:\r\n char[] builder = new char[spaces];\r\n for (int i = 0; i < spaces; i++) {\r\n builder[i] = ' ';\r\n }\r\n indentSpace = new String(builder);\r\n break;\r\n }\r\n\r\n }\r\n\r\n }", "protected static void indent(StringBuilder buffer, int number, String character) {\n\t\tfor (int i = 0; i < number; ++i) {\n\t\t\tbuffer.append(character);\n\t\t}\n\t}", "public void setIndent (jkt.hms.masters.business.StoreIndentM indent) {\n\t\tthis.indent = indent;\n\t}", "public static String indent(String text) {\n return indent + text.replaceAll(\"\\\\r?\\\\n\", nl + indent);\n }", "public void setIndent(String indent) {\r\n // if passed the empty string, change it to null, for marginal\r\n // performance gains later (can compare to null first instead\r\n // of calling equals())\r\n if (\"\".equals(indent)) {\r\n indent = null;\r\n }\r\n defaultFormat.indent = indent;\r\n }", "private void print(int indent) {\n \tif (myRight != null) {\n \t\tmyRight.print(indent + 1);\t\n \t}\n println (myItem, indent);\n // TODO your code here\n if (myLeft != null) {\n myLeft.print(indent + 1);\n }\n }", "public static void indent(StringBuilder stringBuilder, int indentLevel) {\r\n\r\n\t\t\tfor(int i = 0; i < indentLevel; i++) {\r\n\r\n\t\t\t\tstringBuilder.append('\\t');\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "public void addLeftIndent(View view){\n\t\tif(INDENT_LEVEL>1 && isListMode){\n\t\t\t\n\t\t\t/* Removing the right indent */\n\t\t\taddHtmlElement(Constants.OPERATION_ADD_LEFT_INDENT);\n\t\t\t\n\t\t\t/* Decreasing the indent level */\n\t\t\tINDENT_LEVEL-=1;\n\t\t\t\n\t\t\t/* Making sure the indent is within bounds */\n\t\t\tif(INDENT_LEVEL<0)\n\t\t\t\tINDENT_LEVEL=0;\n\t\t}\n\t}", "protected short getIndentLevel() {\n return tabLevel;\n }", "protected void markup( String text, boolean useIdent )\n {\n if ( useIdent )\n {\n // Very dirty hack to avoid opening space if this line start with inline raw HTML\n // (needs to be separated from surrounding text by one space)\n text = text.replaceAll( \"^\\\\s\", \"\" );\n }\n\n int spaces = useIdent ? indent * INDENT_SPACES : 0;\n String[] lines = text.split( NEW_LINE );\n\n for ( int i = 0; i < lines.length; ++i )\n {\n rst += StringUtils.repeat( \" \", spaces ) + lines[i];\n\n // Do not write a new line character if this is the last line of the markup\n if ( i < ( lines.length - 1 ) )\n {\n newLine();\n }\n }\n\n lastLineLength = lines[lines.length - 1].length();\n }", "public String prettyPrint(String indent)\n {\n return indent + toString();\n }", "public String toString()\n {\n return getIndentation();\n }", "public void setIndentLevel(int indentLevel)\n {\n\tif (indentLevel >= 0) {\n\t this.indentLevel = indentLevel;\n\t}\n\telse {\n\t this.indentLevel = 0;\n\t}\n }", "public void testShouldAddColonExceptSpace(){\n indentlogic.addText(\"except \\n\");\n assertTrue(indentlogic.shouldAddColon());\n }", "protected short getIndentSize() {\n return (short) (tabLevel * tabSize);\n }", "protected Component newIndentation(MarkupContainer parent, String id, final TreeNode node,\n\t\tfinal int level)\n\t{\n\t\tWebMarkupContainer result = new WebMarkupContainer(id)\n\t\t{\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t/**\n\t\t\t * @see org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag)\n\t\t\t */\n\t\t\t@Override\n\t\t\tprotected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)\n\t\t\t{\n\t\t\t\tResponse response = RequestCycle.get().getResponse();\n\t\t\t\tTreeNode parent = node.getParent();\n\n\t\t\t\tCharSequence urls[] = new CharSequence[level];\n\t\t\t\tfor (int i = 0; i < level; ++i)\n\t\t\t\t{\n\t\t\t\t\tif (isNodeLast(parent))\n\t\t\t\t\t{\n\t\t\t\t\t\turls[i] = \"indent-blank\";\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\turls[i] = \"indent-line\";\n\t\t\t\t\t}\n\n\t\t\t\t\tparent = parent.getParent();\n\t\t\t\t}\n\n\t\t\t\tfor (int i = level - 1; i >= 0; --i)\n\t\t\t\t{\n\t\t\t\t\tresponse.write(\"<span class=\\\"\" + urls[i] + \"\\\"></span>\");\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tresult.setRenderBodyOnly(true);\n\t\treturn result;\n\t}", "public String getIndentId() {\n return indentId;\n }", "public void setIndentationSize(int indentationSize) {\n this.indentationSize = indentationSize;\n }", "public static String indent(String... text) {\n return indent + String.join(nl(), text).replaceAll(\"\\\\r?\\\\n\", nl + indent);\n }", "public void setIndentSize(int indentSize) {\r\n StringBuffer indentBuffer = new StringBuffer();\r\n for (int i=0; i<indentSize; i++) {\r\n indentBuffer.append(\" \");\r\n }\r\n defaultFormat.indent = indentBuffer.toString();\r\n }", "public void increaseDepth() {\n currentDepth++;\n }", "public static void tab(String tab) {\n Formatting.indent = tab;\n }", "public void testShouldAddColonExcept(){\n indentlogic.addText(\"except\\n\");\n assertTrue(indentlogic.shouldAddColon());\n }", "public void setAutoIndent(boolean enabled) {\n mAutoIndent = enabled;\n mCursor.setAutoIndent(enabled);\n }", "public TypescriptStringBuilder setIndentLevel(final int indentLevel) {\n if (indentLevel != this.indentLevel) {\n // Break the current line\n if (status != Status.LINE_START) {\n appendln();\n }\n\n this.indentLevel = indentLevel;\n if (this.indentLevel < 0) {\n this.indentLevel = 0;\n }\n\n buildIndentPrefix();\n }\n\n return this;\n }", "public Indent(String indent_string, int level)\n {\n _indent_string = indent_string;\n _level = level;\n calculateIndentationString();\n }", "@Override\n\tpublic Void visit(Int intt) {\n\t\tif (intt.token != null)\n\t\t\tprintIndent(intt.token.getText());\n\t\treturn null;\n\t}", "private void print(String toBeWritten)\n\t\t{ pw.print(getIndentString() + toBeWritten); }", "protected String getIndentString() {\n return indent.toString();\n }", "@Override\n protected void printXml(final String indent, final PrintWriter printWriter) {\n final boolean hasChildren = (getFirstChild() != null);\n printWriter.print(indent + \"<\");\n printOpeningTagContentAsXml(printWriter);\n\n if (!hasChildren && !isEmptyXmlTagExpanded()) {\n printWriter.println(\"/>\");\n }\n else {\n printWriter.println(\">\");\n printChildrenAsXml(indent, printWriter);\n printWriter.println(indent + \"</\" + getTagName() + \">\");\n }\n }", "public SourceGenerator writeNewline(){\r\n\t\tif (m_style == CodeStyle.PRETTY){\r\n\t\t\tm_writer.append(m_newline);\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public void setIndentFiller(String filler) {\n spaceFill = filler;\n }", "protected void push(int i) {\n\t\t\tif (sp>=MAX_INDENTS) {\n\t\t\t\tthrow new IllegalStateException(\"stack overflow\");\n\t\t\t}\n\t\t\tsp++;\n\t\t\tindentStack[sp] = i;\n\t\t}", "private void printSeparator() {\r\n\t\tthis.printLineGap();\r\n\t}", "public Indent(int level)\n {\n this(\" \", level);\n }", "static void preorderPrint(TreeNode node, String indent) {\n if (node == null)\n return;\n\n System.out.println(\" \" + indent + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next(), indent + \"| \");\n }\n }", "public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}", "public void indent(IndentOutput out, int n) {\n out.indent(n, \"Id(\\\"\" + name + \"\\\", loc=\" + loc + \")\");\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 increaseNestingLevel() {\n\t\tthis.nestingLevel++;\n\t\tthis.resolvableType = null;\n\t\tif (this.methodParameter != null) {\n\t\t\tthis.methodParameter = this.methodParameter.nested();\n\t\t}\n\t}", "public XMLOutputter(String indent) {\r\n setIndent( indent);\r\n }", "public void nextLevelTogo() {\n if (this.myClearedLines % 2 == 0) {\n myLinesToGo = 2;\n } else {\n myLinesToGo = 1;\n }\n }" ]
[ "0.7598648", "0.7502013", "0.7343519", "0.7297049", "0.71687806", "0.71205205", "0.67585766", "0.67392343", "0.66001546", "0.659759", "0.656282", "0.64702696", "0.64692444", "0.6362255", "0.63227904", "0.6289265", "0.62674606", "0.62191373", "0.61765176", "0.6176202", "0.6148516", "0.6147762", "0.61140996", "0.61035925", "0.61007625", "0.6087296", "0.6020675", "0.59654915", "0.59542435", "0.58988595", "0.58964324", "0.58872056", "0.5837746", "0.5823057", "0.5807816", "0.580477", "0.5786146", "0.5785193", "0.57676804", "0.5760898", "0.57175726", "0.5617072", "0.56019926", "0.5572257", "0.55472106", "0.5516602", "0.5503472", "0.55013144", "0.54933625", "0.54494256", "0.5425924", "0.541876", "0.5395316", "0.5382365", "0.537814", "0.535638", "0.53195286", "0.53139234", "0.5302648", "0.52789897", "0.52712226", "0.52597296", "0.5242525", "0.5238959", "0.52347636", "0.5209658", "0.5196746", "0.5196101", "0.5179477", "0.5165349", "0.51506543", "0.5109585", "0.50756925", "0.5046028", "0.50331134", "0.5020347", "0.5012521", "0.5006045", "0.50033206", "0.49903014", "0.49770305", "0.49636015", "0.4955968", "0.493099", "0.49158296", "0.49133784", "0.48589835", "0.4850522", "0.48480484", "0.48384467", "0.48277465", "0.48163497", "0.4809868", "0.4808498", "0.4804492", "0.4795131", "0.47872224", "0.47765282", "0.4775958", "0.4749988" ]
0.8085925
0
Decrease the indent Affects all future calls to markup().
public void outdent() { if ( indent > 0 ) { indent -= 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ConfigurationHTMLPrinter decrementIndent() {\n indent--;\n return this;\n }", "public void unindent() {\n if (tabLevel > 0) --tabLevel;\n }", "protected void indentLess() \r\n\t{\r\n\tindent -= 3;\r\n\t}", "public void dec()\n {\n _level--;\n if(_level < 0) {\n _level = 0;\n }\n calculateIndentationString();\n }", "protected void indentMore() \r\n\t{\r\n\tindent += 3;\r\n\t}", "public void indent()\n {\n indent += 1;\n }", "public void pop()\n {\n\tsetIndentLevel(indentLevel - 1);\n }", "public TypescriptStringBuilder unindent() {\n indent(-1);\n return this;\n }", "public void indent() {\n ++tabLevel;\n }", "public void indentLess() {\n\t\tindentLevel -= indentStep;\n\t}", "private void decreaseLevel()\n\t\tthrows IOException\n\t{\n\t\tlevel--;\n\t\tnextKey = ! lists[level];\n\n\t\tif(beautify && hasData[level])\n\t\t{\n\t\t\twriter.write('\\n');\n\n\t\t\tfor(int i=0; i<level; i++)\n\t\t\t{\n\t\t\t\twriter.write(\"\\t\");\n\t\t\t}\n\t\t}\n\t}", "public void indentNone() {\n\t\tindentLevel = 0;\n\t}", "public void indentMore() {\n\t\tindentLevel += indentStep;\n\t}", "private ConfigurationHTMLPrinter incrementIndent() {\n indent++;\n return this;\n }", "private static void indent()\r\n {\r\n for (int i = 0; i < indentLevel * 2; i++) {\r\n System.out.print(' ');\r\n }\r\n }", "public void setIndentSize(short indentSize);", "public void outputActualIndentation() {\n\t\tfor (int steps = 1; steps <= indentLevel; steps++) {\n\t\t\toutputJALPrintStream.print(\" \");\n\t\t}\n\t\tif (showMarkerFlag) {\n\t\t\toutputJALPrintStream.print(\"|\");\n\t\t}\n\t}", "@Override\n public void decompile(IndentPrintStream s) {\n }", "private ConfigurationHTMLPrinter printIndent() {\n for (int i=0; i<indent; i++) sb.append(\" \");\n return this;\n }", "public SourceGenerator writeIndent(){\r\n\t\tm_indenter.writeIndent();\r\n\t\treturn this;\r\n\t}", "protected void clear()\n\t{\n\t\tsuper.clear();\n\t\tindentRight();\n\t}", "public void markup( String text )\n {\n // Indent only of this is the first text on the line\n markup( text, rst.isEmpty() || rst.endsWith( NEW_LINE ) );\n }", "private void outputIndentation() {\n\t for (int i = 0; i < indent; i++) {\n\t out.print(basicIndent);\n\t }\n\t}", "public void decreaseDepth() {\n currentDepth--;\n }", "public void unparse(PrintWriter p, int indent) {\r\n }", "public void setIndentation(int indentation)\n {\n this.indentation = indentation;\n }", "public void inc()\n {\n _level++;\n calculateIndentationString();\n }", "private String indent(int level) throws IOException {\n return Utility.repeat(\" \", level);\n }", "protected void decrementNesting() {\n --m_nestingDepth;\n if (m_nestingDepth >= 0) {\n while (m_nestingDepth == m_namespaceDepth) {\n closeNamespaces();\n }\n }\n }", "public void decrease() {\r\n\r\n\t\tdecrease(1);\r\n\r\n\t}", "private ConfigurationHTMLPrinter epilogue() {\n return endTable().decrementIndent().println(\"</body\").decrementIndent().println(\"</html>\");\n }", "protected static String indent()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i<toStringIndent; i++) sb.append(\" \");\n\t\treturn sb.toString();\n\t}", "@Override\n\tpublic void visitXindent(Xindent p) {\n\n\t}", "public TypescriptStringBuilder indent() {\n indent(1);\n return this;\n }", "abstract public void unparse(PrintWriter p, int indent);", "abstract public void unparse(PrintWriter p, int indent);", "int getIndentSize();", "public int getIndentation()\n {\n return indentation;\n }", "private void addIndent() {\r\n if (indentSpace.length() > 0) {\r\n for (int i = 0; i < indent; i++) {\r\n xml.append(indentSpace);\r\n }\r\n }\r\n }", "void unsetLeading();", "public static String tab() {\n return indent;\n }", "@Override\n\tpublic void print(int indent) {\n\t}", "void setIndentLevel(int level);", "void indent(final StringBuilder xml, final int level) {\n if (INDENT != null) {\n for (int i = 0; i < level; i++)\n xml.append(INDENT);\n }\n }", "protected void indent(Writer out, int level) throws IOException {\r\n if (currentFormat.newlines) {\r\n if (currentFormat.indent == null ||\r\n currentFormat.indent.equals(\"\")) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < level; i++) {\r\n out.write(currentFormat.indent);\r\n }\r\n }\r\n }", "@Override\n\tpublic void visitXdefindent(Xdefindent p) {\n\n\t}", "protected void doIndent(PrintWriter p, int indent) {\r\n for (int k=0; k<indent; k++) p.print(\" \");\r\n }", "@Override\n public void endVisit(CssIf x, Context ctx) {\n out.indentOut();\n out.printOpt(\"/* } */\");\n out.newlineOpt();\n }", "protected void doIndent(PrintWriter p, int indent) {\n for (int k=0; k<indent; k++) p.print(\" \");\n }", "int getIndentLevel();", "public void withIndent(Block block) throws Exception {\n increment();\n try {\n block.invoke();\n } finally {\n decrement();\n }\n }", "public void setIndent(int size) {\r\n setIndentSize(size);\r\n }", "private void ensureIndent() {\n if (addIndentation) {\n writeIndent();\n addIndentation = false;\n }\n }", "protected void addIndentation(PrintWriter p, int indent) {\n for (int k = 0; k < indent; k++) p.print(\" \");\n }", "public void decreaseCurrentDepth(){\n currentDepth--;\n if (this.children == null) generateChildren();\n else {\n for (Node child : this.children) child.decreaseCurrentDepth();\n }\n }", "public int decrease()\n {\n return this.decrease(1);\n }", "public void clear()\n {\n rst = \"\";\n indent = 0;\n lastLineLength = 0;\n rawInlineHtmlEnabled = false;\n }", "void decrementOldDepth() {\n mOldDepth--;\n }", "public void endTag(int indent, String tag)\n\t{\n\t\t// We should have a new line before every start tag\n\t\tnewLine();\n\n\t\t// Add the appropriate number of indents\n\t\tfor (int i = 0; i < indent; i++)\n\t\t\toutput.append(\"\\t\");\n\n\t\t// Append the tag\n\t\toutput.append(\"</\" + tag + \">\");\n\t}", "public void output(IndentedWriter out) \n {\n }", "void decrementNewDepth() {\n mNewDepth--;\n }", "public XMLBuilder setIndent(boolean flag) {\n indentOutput = flag;\n return this;\n }", "protected void decrement(View view){\r\n if (quantity==1){\r\n return;\r\n }\r\n quantity--;\r\n display(quantity);\r\n }", "private void indent(StringBuffer output, Node node) {\n\t\toutput.append(\"\\n\");\n\t\tString lineNumber = (node == null) ? \"\" : \"[\" + node.getLine() + \"]\";\n\t\toutput.append(String.format(\"%5s \", lineNumber));\n\t\tfor (int i = 0; i < depth; ++i)\n\t\t\toutput.append(\" \");\n\t\toutput.append(\"+-- \");\n\t}", "public void decrement(View view) {\n if(quantity <= 1){\n //Creates toast that will show error on the screen\n Toast.makeText(getApplicationContext(), getString(R.string.decrement), Toast.LENGTH_LONG).show();\n //Exits statement earlier\n return;\n }\n --quantity;\n displayQuantity(quantity);\n }", "private String indent(int spaces) {\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < spaces; i++) {\n\t\t\tresult = result + \" \";// it creates as much spaces as it is told to\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic Void visit(Minus minus) {\n\t\tprintIndent(minus.token.getText());\n\t\tindent++;\n\t\tminus.left.accept(this);\n\t\tminus.right.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "@Override\n public final String asString(int indentSize, int innerIndentInc) {\n return \"\";\n }", "private ConfigurationHTMLPrinter endTable() {\n return decrementIndent().println(\"</table>\");\n }", "private void tear() {\n\t\tthis.torn = true;\n\t\tthis.getContainer().addToContents(getDucatContent());\n\t\tthis.getContainer().removeFromContents(this);\n\t}", "public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }", "void decrease();", "void decrease();", "@Override\n protected TokenSet getIndentedElements() {\n return TokenSet.EMPTY;\n }", "public void unsetItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ITALIC$6, 0);\n }\n }", "private void deNude() throws IOException {\r\n if (this.isNude) {\r\n writer.write('>');\r\n if (peekElement().hasChildren) writer.write('\\n');\r\n this.isNude = false;\r\n }\r\n }", "public String toString()\n {\n return getIndentation();\n }", "public void setIndent(String indent) {\r\n // if passed the empty string, change it to null, for marginal\r\n // performance gains later (can compare to null first instead\r\n // of calling equals())\r\n if (\"\".equals(indent)) {\r\n indent = null;\r\n }\r\n defaultFormat.indent = indent;\r\n }", "public void addRightIndent(View view){\n\t\tif(INDENT_LEVEL<4 && isListMode){\n\t\t\t\n\t\t\t/* Adding the Right indent */\n\t\t\taddHtmlElement(Constants.OPERATION_ADD_RIGHT_INDENT);\n\t\t\t\n\t\t\t/* Increasing the indent level */\n\t\t\tINDENT_LEVEL+=1;\n\t\t\t\n\t\t\t/* Making sure the indent is within bounds */\n\t\t\tif(INDENT_LEVEL>4)\n\t\t\t\tINDENT_LEVEL=4;\n\t\t}\t\t\t\n\t}", "public void sizeDecrease1() {\n\t\t _size--;\n\t}", "public void backSpace(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex > 0) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, true);\n characterIndex--;\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex > 0) {\n characterIndex = codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex - 1).getCharacterEdges().length - 1;\n currentText = codeWindow.getTextLineController().merge(codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex - 1), currentText, codeWindow);\n lineIndex--;\n }\n //The cursors character or line index changed, update accordingly\n updatePosition();\n }\n }", "private void indentNewLine(Token<CppTokenId> current){\n if (current.id() == NEW_LINE) {\n return;\n }\n int space;\n Token<CppTokenId> first = ts.lookNextLineImportant();\n if (first != null && (first.id() == CASE ||first.id() == DEFAULT)){\n space = getCaseIndent();\n } else {\n space = getIndent();\n }\n if (current.id() == WHITESPACE) {\n ts.replaceCurrent(current, 0, space, true);\n } else {\n ts.addBeforeCurrent(0, space, true);\n }\n }", "@Override\n\tpublic void levelUp() {\n\n\t}", "void pop()\n\t\t{\n\t\t\tsp--;\n\t\t\tfor(int i = 0; i < sp; i++)\n\t\t\t\tXMLStream.print(\" \");\n\t\t\tif(sp < 0)\n\t\t\t\tDebug.e(\"RFO: XMLOut stack underflow.\");\n\t\t\tXMLStream.println(\"</\" + stack[sp] + \">\");\n\t\t}", "public String eraseNode() {\n\n String assist = lastIn.info;\n lastIn = lastIn.next;\n size--;\n return assist;\n }", "private void indent(StringBuilder sb) {\n for (int i = 0; i < indentLevel; i++) {\n sb.append('\\t');\n }\n }", "private void printSeparator() {\r\n\t\tthis.printLineGap();\r\n\t}", "int getIndentation() {\n return this.indentation;\n }", "public static final void indent(final StringBuilder buf, int level)\n {\n while (level > 0)\n {\n buf.append(\" \");\n --level;\n }\n }", "public void nextLevelTogo() {\n if (this.myClearedLines % 2 == 0) {\n myLinesToGo = 2;\n } else {\n myLinesToGo = 1;\n }\n }", "public void testShouldAddColonExcept(){\n indentlogic.addText(\"except\\n\");\n assertTrue(indentlogic.shouldAddColon());\n }", "public void decrement(View view) {\n quantity = quantity - 1;\n display(quantity);\n\n }", "public void decrement(View view) {\n quantity = quantity - 1;\n display(quantity);\n\n }", "private void print(int indent) {\n \tif (myRight != null) {\n \t\tmyRight.print(indent + 1);\t\n \t}\n println (myItem, indent);\n // TODO your code here\n if (myLeft != null) {\n myLeft.print(indent + 1);\n }\n }", "private void closeNodes(ArrayList<String> out, int last, int firstDiff)\n throws IOException {\n for (int i = last; i >= firstDiff; --i) {\n if (i == 0) {\n out.add(\"}\");\n break;\n }\n out.add(indent(i) + \"}\");\n }\n }", "public boolean deCode() {\n boolean stop = false;\n\n// if the code is greater than 0, decrease by 1\n if (this.getCode() > 0)\n this.setCode(getCode() - 1);\n// if the code is 0 but there is one more pair of brackets then we decode the next pair and return the current code to the initial state\n else if (this.getCode() < 1 && !this.isEmptyNext()) {\n stop = this.getNextDoubleBrackets().deCode();\n if (!stop)\n this.setCode(sourceCode);\n } else if (this.getCode() < 1 && isEmptyNext()) {\n return true;\n } else stop = false;\n return stop;\n }", "public void push()\n {\n\tsetIndentLevel(indentLevel + 1);\n }", "private XMLDocument endElement(String name, boolean addIndent) {\r\n String endName = startedElements.removeLast();\r\n\r\n if (name != null) {\r\n if (!endName.equals(name)) {\r\n throw new IllegalArgumentException(\"Close the element \" + endName + \" instead of \" + name);\r\n }\r\n\r\n } else {\r\n name = endName;\r\n }\r\n\r\n indent--;\r\n\r\n if (addIndent) {\r\n this.addIndent();\r\n }\r\n\r\n xml.append(\"</\").append(name).append(\">\");\r\n xml.append(\"\\n\");\r\n\r\n return this;\r\n }", "public void setIndent(boolean doIndent) {\r\n if (doIndent) {\r\n defaultFormat.indent = STANDARD_INDENT;\r\n }\r\n else {\r\n defaultFormat.indent = null;\r\n }\r\n }", "public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason) {\n boolean supResult = super.indentLine(doc, reason);\n\n /** This method is simply a call to getIndentOfCurrStmt, which is fully tested in IndentHelperTest, so no additional\n * tests are provided for this class.\n */\n\n int indent = 0;\n\n\n indent = doc._getIndentOfCurrStmt(doc.getCurrentLocation(), new char[] {';','{','}'}, new char[] {' ', '\\t','\\n'});\n\n\n indent = indent + _suffix;\n doc.setTab(indent, doc.getCurrentLocation());\n \n return supResult;\n }" ]
[ "0.77052164", "0.7086591", "0.70255446", "0.6918143", "0.66128707", "0.65956736", "0.6446632", "0.6320487", "0.6163489", "0.6119704", "0.60980093", "0.58593255", "0.581274", "0.56290793", "0.56268406", "0.54639053", "0.54622763", "0.5444519", "0.5433072", "0.5425476", "0.5411737", "0.5344551", "0.52873266", "0.52790475", "0.52742213", "0.5258163", "0.5229855", "0.52200794", "0.52169955", "0.5203484", "0.52005106", "0.51788676", "0.5160326", "0.51327956", "0.5116284", "0.5116284", "0.5112575", "0.5101446", "0.5096738", "0.50879025", "0.5078864", "0.5061375", "0.5048638", "0.5014711", "0.4983509", "0.4980499", "0.49726507", "0.4948647", "0.493797", "0.49354008", "0.4931299", "0.49286193", "0.4927604", "0.48986933", "0.48453376", "0.4845151", "0.48381162", "0.4827716", "0.48242933", "0.48227945", "0.48012653", "0.47856915", "0.4774728", "0.4773764", "0.47731", "0.47674772", "0.47262138", "0.4719582", "0.4712934", "0.47103676", "0.47066605", "0.46943673", "0.46943673", "0.4691467", "0.46905065", "0.4682865", "0.46747318", "0.4672655", "0.46608135", "0.46474418", "0.46334985", "0.4633115", "0.4631385", "0.4626566", "0.46187696", "0.46135277", "0.4607736", "0.46059155", "0.46054178", "0.4602395", "0.458674", "0.45786035", "0.45786035", "0.45690474", "0.45669448", "0.45627356", "0.45569748", "0.4552079", "0.4541635", "0.45331174" ]
0.75430787
1
Get length of the last line written Returns 0 if no line has been written yet.
public int getLastLineLength() { return lastLineLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long lastReadLength() {\n return lastReadLength;\n }", "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "public long length() {\r\n return 1 + 4 + buffer.length;\r\n }", "private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}", "int getLineLength(int line) throws BadLocationException;", "public final int yylength() {\n\t\treturn zzMarkedPos-zzStartRead;\n\t}", "public int getLastVisibleLine(){\n int l = Math.min((getOffsetY() + getHeight()) / getLineHeight(), getLineCount() - 1);\n if(l < 0){\n return 0;\n }else{\n return l;\n }\n }", "private int getLastLine() {\n return lastSourcePosition.line;\n }", "final public int yylength() {\n return yy_markedPos-yy_startRead;\n }", "final public int yylength() {\n return yy_markedPos-yy_startRead;\n }", "int getPenultimateOutputSize() {\n\t\treturn lastStrLen[0];\n\t}", "public int number_of_lines() {\r\n\t\treturn line_index.size() - 1;\r\n\t}", "public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }", "public long length() throws IOException {\n return raos.length();\n }", "@Override\n\tpublic long getLineCount() {\n\t\tif (lineCount == null || checksumChanged()) {\n\t\t\ttry (Stream<String> stream = Files.lines(getDataStore()\n\t\t\t\t\t.getDocument().toPath())) {\n\t\t\t\tlong count = stream.filter(line -> !line.isEmpty()).count();\n\t\t\t\tthis.lineCount = count;\n\t\t\t\treturn count;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\treturn lineCount;\n\t\t}\n\t\tthrow new NullPointerException(\n\t\t\t\t\"Unexpected error. Could not get the line count.\");\n\t}", "public int maxL()\r\n {\r\n return metro.numberOfLines - 1;\r\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }", "public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }", "public static int getEndOfLineIndex() {\n return endOfLineIndex;\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "int getLength() throws IOException;", "public int size()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\treturn lines.size();\r\n\t\t}\r\n\t}", "public int length()\n\t{\n\t\treturn length;\n\t}", "public long length() {\n return length;\n }", "public Integer size() {\n\t\treturn mLines == null ? 0 : mLines.length;\n\t}", "public int length() {\n\t\treturn length;\n\t}", "public int length() {\n\t\treturn length;\n\t}", "public int getEndLIne() {\r\n return this.endLine;\r\n }", "public long getLength() {\n try {\n Long temp = (Long)replyHeaders.getHeader(HeaderSet.LENGTH);\n\n if (temp == null) {\n return -1;\n } else {\n return temp.longValue();\n }\n } catch (IOException e) {\n return -1;\n }\n }", "public int length() {\r\n return fCharBuffer.length();\r\n }", "public int getLinesCount() {\n return lines.length;\n }", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "@Pure\n public int getEndLine() {\n return this.endLine;\n }", "public int getEndLine() {\r\n \r\n return endLine;\r\n }", "public final int length() {\n return this.data.remaining();\n }", "public int length() {\n \t \n \t //return the length\n \t return(len);\n }", "int getBytesPerLine() {\n\t\treturn bytesInLine.intValue();\n\t}", "public final int yylength() {\n return input.readLength();\n }", "public int rawLength() {\n\t\treturn length.rawLength() + s.length();\n\t}", "private int length() { return length; }", "public int length() {\n return length;\n }", "public int length() {\n return length;\n }", "public int length() {\n return length;\n }", "public long getCurrentLength() { \n return currentLength; \n }", "public long getLength();", "public long getLength();", "public int get_length();", "public int length() {\n \treturn length;\n }", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public long lastWrittenBytes()\r\n/* 204: */ {\r\n/* 205:391 */ return this.lastWrittenBytes;\r\n/* 206: */ }", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public final int getLength()\n {\n return m_firstFree;\n }", "public int getLength()\n\t{\n\t\treturn (int) length;\n\t}", "private int length() {\n\t\treturn this.lenght;\n\t}", "@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}" ]
[ "0.70912284", "0.6687602", "0.6675322", "0.6597257", "0.65901035", "0.6564969", "0.6551437", "0.6548116", "0.6513928", "0.6513928", "0.6504164", "0.6495802", "0.64760387", "0.64541143", "0.64371896", "0.64296126", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.64290357", "0.642769", "0.6418806", "0.6410475", "0.6410475", "0.6410475", "0.6410475", "0.6410475", "0.6396109", "0.63668334", "0.6357284", "0.6312863", "0.62576485", "0.6247584", "0.6247584", "0.62424207", "0.6241377", "0.62100303", "0.61988205", "0.6197578", "0.6185496", "0.61816424", "0.6177229", "0.61709577", "0.6170042", "0.61677873", "0.6161088", "0.61529", "0.61406964", "0.61406964", "0.61406964", "0.613973", "0.6131686", "0.6131686", "0.61304337", "0.61231005", "0.61186457", "0.6114289", "0.6112509", "0.6112509", "0.61009234", "0.60932565", "0.6091149", "0.60850286", "0.60813487", "0.60813487", "0.60813487", "0.60813487" ]
0.81999266
0
Enable raw inline HTML Output document will contain a role "rawhtml" that is used to output raw HTML. See for more details.
public void enableRawInlineHtml() { rawInlineHtmlEnabled = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isRawInlineHtmlEnabled()\n {\n \treturn rawInlineHtmlEnabled;\n }", "public String output( boolean includeMeta )\n {\n String output = \"\";\n\n // http://docutils.sourceforge.net/docs/ref/rst/roles.html#raw\n if ( includeMeta && rawInlineHtmlEnabled )\n {\n output += \".. role:: raw-html(raw)\\n\";\n output += \" :format: html\\n\";\n output += \"\\n\";\n }\n\n // Remove whitespace at the end of the document\n output += this.rst.replaceAll( \"\\\\s+$\", \"\" );\n\n return output;\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public void setEscapeHTML(boolean escapeHTML) {\n this.escapeHTML = escapeHTML;\n }", "public void setEnableAsciidocWrapper(boolean enableAsciidocWrapper) {\n\t\tthis.enableAsciidocWrapper = enableAsciidocWrapper;\n\t}", "public void setHtmlMode(boolean mode)\r\n\t{\r\n\t\thtmlMode = mode;\r\n\t}", "public FreeMindWriter startRichText() {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n return this; \n }", "public void setHTML(String html);", "@Override\r\n\tpublic DTextArea setHtmlOnCanPlayThrough(final String script) {\r\n\t\tsuper.setHtmlOnCanPlayThrough(script) ;\r\n\t\treturn this ;\r\n\t}", "public String getHtml() {\n return html;\n }", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "public void setInline(boolean inline) {\n\t\tthis.inline = inline;\n\t}", "protected boolean isVerbatim() {\n return this.inVerbatim;\n }", "public boolean getInline() {\n\t\treturn this.inline;\n\t}", "@Override\n public String getDefaultRenderKitId() {\n return \"HTML_BASIC\";\n }", "protected SafeHtml getInnerHtml() {\n return html;\n }", "public void setInline(String inline) {\n if (\"true\".equalsIgnoreCase(inline)) {\n this.full = true;\n return;\n }\n if (\"false\".equalsIgnoreCase(inline)) {\n this.full = false;\n return;\n }\n this.full = false;\n this.inline = inline;\n }", "private HTMLElement generateInlineIntroHTML(IntroHTML element,\n \t\t\tint indentLevel) {\n \t\tStringBuffer content = readFromFile(element.getSrc());\n \t\tif (content != null && content.length() > 0) {\n \t\t\t// Create the outer div element\n \t\t\tHTMLElement divElement = generateDivElement(element.getId(),\n \t\t\t\t\tIIntroHTMLConstants.DIV_CLASS_INLINE_HTML, indentLevel);\n \t\t\t// add the content of the specified file into the div element\n \t\t\tdivElement.addContent(content);\n \t\t\treturn divElement;\n \t\t}\n \t\treturn null;\n \t}", "@Override\n\tpublic final boolean renderAsNormalBlock()\n\t{\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}", "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}", "public boolean isEnableAsciidocWrapper() {\n\t\treturn enableAsciidocWrapper;\n\t}", "public boolean renderAsNormalBlock()\n {\n return false;\n }", "String renderHTML();", "public boolean renderAsNormalBlock(){\r\n return false;\r\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(true);\r\n \r\n }", "public boolean renderAsNormalBlock()\r\n {\r\n return false;\r\n }", "public InsertBlockHTMLExecutable(RichTextArea rta)\n {\n super(rta);\n }", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "@DISPID(-2147417084)\n @PropGet\n java.lang.String outerHTML();", "@DISPID(-2147417084)\n @PropPut\n void outerHTML(\n java.lang.String rhs);", "public static void enableOutput(boolean enable) {\n outputEnabled = enable;\n }", "public String getInlineCode() {\n return inlineCode;\n }", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "@Override\r\n\tpublic DTextArea setHtmlOnCanPlay(final String script) {\r\n\t\tsuper.setHtmlOnCanPlay(script) ;\r\n\t\treturn this ;\r\n\t}", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "public boolean renderAsNormalBlock()\n\t {\n\t return false;\n\t }", "public native final String html()/*-{\n\t\treturn this.html();\n\t}-*/;", "public String getHtmlRepresentation() {\n\t\treturn getHtmlRepresentation(constraintSets);\n\t}", "@Test(groups = { \"tree\" })\n\tpublic void testLoadViaInlineHtml() throws Exception {\n\t\t\tstartupTest(\"treeLoadViaInlineHtml.html\",null);\n\n\t\t\t//Verify the url\n\t\t\tString url = getBrowserUrl();\n\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t// Verify if the title of the page is correct\n\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_INLINEHTML);\n\t\t\tcheckPageContent(TITLE_INLINEHTML);\n\n\t\t\t//Find the tree element\n\t\t\tWebElement tree = getElement(\"id=tree\");\n\t\t\tlog(\"Found Element for id=tree \" + tree.toString());\n\n\t\t\tcommonLoadTestForHtml();\n\n }", "InlineExample createInlineExample();", "public static HashMap<String, String> OutputHtml() {\n\t\treturn methodMap(\"html\");\n\t}", "public boolean isInline() {\n/* 54 */ return this.inline;\n/* */ }", "@Override\n\tpublic void setDisplayShowCustomEnabled(boolean showCustom) {\n\t\t\n\t}", "public interface SafeHtmlRenderer<T> {\n\n /**\n * Renders {@code object} as safe HTML.\n */\n SafeHtml render(T object);\n\n /**\n * Renders {@code object} as safe HTML, appended directly to {@code builder}.\n */\n void render(T object, SafeHtmlBuilder builder);\n}", "@Override\r\n\tpublic boolean isHtmlbyTemplate() {\n\t\treturn singleItem || headless?false:freeMarkerSupport.isHtmlbyTemplate();\r\n\t}", "@Override\n protected boolean isRenderScriptEnable() {\n return true;\n }", "public String getConsentHTML();", "public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "@Override\n protected HtmlInsertingResponseOutputWrapper createHtmlInsertingResponseOutputWrapper() {\n return new StoreAttributeAddingHtmlInsertingResponseOutputWrapper();\n }", "public String html() {\n\t\treturn HtmlFunction.html(this);\n\t}", "public static String describeEnable() {\n\t\treturn \"Enable/disable constraint inlining\";\n\t}", "public String getHTMLPage() {\r\n String s = \"<html><body>\" + MySystem.lineBreak;\r\n s += \"<h1>Room Control module</h1>\" + MySystem.lineBreak;\r\n s += \"<p>This module controls any on/off-node connected to ARNE bus.</p>\" + MySystem.lineBreak;\r\n s += \"<h2>Controls:</h2>\";\r\n s += \"<center><p><table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\">\";\r\n Iterator it = roomObjects.keySet().iterator();\r\n while (it.hasNext()) {\r\n GenRoomObject o = (GenRoomObject)roomObjects.get(it.next());\r\n if (o!=null) {\r\n if (o.displHTML) { //if display this object (configured in modGenRoomControl.xml)\r\n s += \"<tr><td>\" + o.name + \"</td><td>[<a href=\\\"toggle:\" + o.name + \"\\\">toggle</a>]</td><td>[<a href=\\\"on:\" + o.name + \"\\\">ON</a>]</td><td>[<a href=\\\"off:\" + o.name + \"\\\">OFF</a>]</td></tr></tr>\";\r\n }\r\n }\r\n }\r\n s += \"</table></center>\";\r\n s += \"</body></html>\";\r\n return s;\r\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "@Override\r\n\tpublic boolean renderAsNormalBlock ( )\r\n\t{\n\t\treturn ( Configuration.Cosmetic.renderFallback ) ;\r\n\t}", "private void printHtmlFragment(MessageBroker msgBroker,\r\n PrintWriter writer,\r\n SearchResultRecord record) throws SearchException {\r\n RecordSnippetWriter snippetWriter = new RecordSnippetWriter(msgBroker, writer);\r\n snippetWriter.setShowTitle(true);\r\n snippetWriter.setShowIcon(true);\r\n snippetWriter.setClipText(true);\r\n snippetWriter.write(record);\r\n}", "@Override\n public boolean isEmbedded() {\n return true;\n }", "private Boolean isRaw(PrintDocument printDocument) {\n return printDocument.getRawContent() != null && !printDocument.getRawContent().isEmpty();\n }", "@Override\n public boolean isEnabled() {\n return true;\n }", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "public final Writer wrapAsRawWriter()\n {\n return mWriter.wrapAsRawWriter();\n }", "@DISPID(1002)\n @PropGet\n ms.html.IHTMLStyle inlineStyles();", "boolean getEnableInlineVm();", "public void setInlineCode(String inlineCode) {\n this.inlineCode = inlineCode;\n }", "public static void displayHTML(String html) {\n\t\tSystem.out.println(html);\n\t}", "@Override\n protected void setMultiline(boolean multiline) {\n }", "public boolean getEnableInlineVm() {\n return enableInlineVm_;\n }", "public boolean getEnableInlineVm() {\n return enableInlineVm_;\n }", "public void onClick(ClickEvent event) {\n if(BaseApp.get().getNiceOutput()){\n BaseApp.get().setNiceOutput(false);\n }\n// Toggle from raw to nice\n else {\n BaseApp.get().setNiceOutput(true);\n }\n }", "@Override public boolean isEnabled() {\n return true;\n }", "public void setVisualizeEditEnabled(final boolean visualizeEditEnabled) {\n this.visualizeEditEnabled = visualizeEditEnabled;\n }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public void enableWriter(boolean enabled) {\n this.useWriter = enabled;\n }", "@PUT\r\n @Consumes(MediaType.TEXT_HTML)\r\n public void putHtml(String content) {\r\n }", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(false);\r\n }", "public boolean saveHTMLInFile()\n {\n String filePath = formatFilePath();\n return saveHTMLInFile(filePath);\n }", "public String getHtmlText() {\n return htmlText;\n }", "@Override\r\n\tpublic DTextArea setHtmlAccessKey(final String accessKey) {\r\n\t\tsuper.setHtmlAccessKey(accessKey) ;\r\n\t\treturn this ;\r\n\t}", "public static FormattedTextEncoder getInstanceHtml() {\r\n\t\treturn new FormattedTextEncoder();\r\n\t}", "@Override\n\tpublic void renderSource() {\n\t\t\n\t}", "public void setInlineConstants(final boolean argInlineConstants) {\n mInlineConstants = argInlineConstants;\n }", "@Test (dataProvider = \"blockImportDataProvider\")\r\n public void blockImport(/*BlockImportMode*/int blockImportMode) throws Exception\r\n {\n final String HTML = \"\\n <html>\\n <div style='border:dotted'>\\n <div style='border:solid'>\\n <p>paragraph 1</p>\\n <p>paragraph 2</p>\\n </div>\\n </div>\\n </html>\";\r\n MemoryStream stream = new MemoryStream(Encoding.getUTF8().getBytes(HTML));\r\n\r\n HtmlLoadOptions loadOptions = new HtmlLoadOptions();\r\n // Set the new mode of import HTML block-level elements.\r\n loadOptions.setBlockImportMode(blockImportMode);\r\n \r\n Document doc = new Document(stream, loadOptions);\r\n doc.save(getArtifactsDir() + \"HtmlLoadOptions.BlockImport.docx\");\r\n //ExEnd\r\n }", "public RenderablePanel(@IsSafeHtml String html) {\n this(SafeHtmlUtils.fromTrustedString(html));\n }", "@PUT\n @Consumes(MediaType.TEXT_HTML)\n public void putHtml(String content) {\n }", "public boolean isIdxSearchNoHtml() {\n Preferences prefs = getPreferences();\n return prefs.getBoolean(PROP_SEARCH_NO_HTML, false);\n }", "@GET\n\t@Produces(MediaType.TEXT_HTML)\n\tpublic String getHtml() {\n\t\treturn OpenstackNetProxyConstants.HTML_RESOURCE_MESSAGE_PORT;\n\t}", "@Override\n public void verbatim_()\n {\n getListener().onVerbatim(this.accumulatedText.toString(), true, Collections.<String, String>emptyMap());\n this.accumulatedText.setLength(0);\n this.isInVerbatim = false;\n }", "@PUT\r\n @Consumes(\"text/html\")\r\n public void putHtml(String content) {\r\n }", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}" ]
[ "0.75104904", "0.62484276", "0.60388243", "0.58406335", "0.51286066", "0.5117416", "0.50638413", "0.505065", "0.50228316", "0.5005774", "0.5003399", "0.49971306", "0.49640432", "0.4962503", "0.49173197", "0.48852095", "0.48667514", "0.48633084", "0.4832389", "0.48309353", "0.48309353", "0.48309353", "0.48309353", "0.48210627", "0.47955057", "0.4791872", "0.47895747", "0.47691572", "0.47628725", "0.474421", "0.47375", "0.47343633", "0.4711631", "0.47099805", "0.47074053", "0.47047934", "0.4676791", "0.4668288", "0.46673238", "0.46524522", "0.46176687", "0.46083352", "0.45978", "0.45703077", "0.45701942", "0.45592692", "0.45572346", "0.45329022", "0.45237714", "0.45190445", "0.45098358", "0.45077974", "0.45061934", "0.45022976", "0.4486252", "0.44812134", "0.4480752", "0.44644493", "0.44589174", "0.4458464", "0.444771", "0.4440891", "0.44401312", "0.44399598", "0.44380182", "0.44304618", "0.4423206", "0.4421891", "0.4405417", "0.43995428", "0.4382367", "0.43731797", "0.43696648", "0.4363754", "0.4355735", "0.43541518", "0.43449724", "0.4343113", "0.43378085", "0.4335066", "0.43285674", "0.43279868", "0.4323087", "0.43211943", "0.43195322", "0.43144137", "0.43121302", "0.43108746", "0.43021643", "0.42975232", "0.42974705", "0.42931607", "0.42931607", "0.42931607", "0.42931607", "0.42931607", "0.42931607", "0.42931607", "0.42931607", "0.42931607" ]
0.8538324
0
Is raw inline HTML enabled? See the method enableRawInlineHtml() for more details.
public boolean isRawInlineHtmlEnabled() { return rawInlineHtmlEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "public boolean isInline() {\n\t\tif(this.mType == Code.Inline) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean getInline() {\n\t\treturn this.inline;\n\t}", "public boolean isInline() {\n/* 54 */ return this.inline;\n/* */ }", "protected boolean isVerbatim() {\n return this.inVerbatim;\n }", "public boolean hasEnableInlineVm() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "boolean hasEnableInlineVm();", "public boolean isFixedInline() {\n return _fixedInline;\n }", "public boolean hasEnableInlineVm() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public void setEscapeHTML(boolean escapeHTML) {\n this.escapeHTML = escapeHTML;\n }", "private Boolean isRaw(PrintDocument printDocument) {\n return printDocument.getRawContent() != null && !printDocument.getRawContent().isEmpty();\n }", "public String getInlineCode() {\n return inlineCode;\n }", "boolean getEnableInlineVm();", "private boolean containsHtml(final String str) {\n if (str == null)\n return false;\n return str.indexOf('<') != -1 || str.indexOf('&') != -1;\n }", "public boolean isEnableAsciidocWrapper() {\n\t\treturn enableAsciidocWrapper;\n\t}", "public boolean getEnableInlineVm() {\n return enableInlineVm_;\n }", "@Override\r\n\tpublic boolean isHtmlbyTemplate() {\n\t\treturn singleItem || headless?false:freeMarkerSupport.isHtmlbyTemplate();\r\n\t}", "public boolean getEnableInlineVm() {\n return enableInlineVm_;\n }", "public boolean isInlineConstants() {\n return mInlineConstants;\n }", "protected SafeHtml getInnerHtml() {\n return html;\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public boolean isSetRawTextSpan() {\n return this.rawTextSpan != null;\n }", "public void setInline(boolean inline) {\n\t\tthis.inline = inline;\n\t}", "public String getHtml() {\n return html;\n }", "public boolean isIdxSearchNoHtml() {\n Preferences prefs = getPreferences();\n return prefs.getBoolean(PROP_SEARCH_NO_HTML, false);\n }", "@Override\n public boolean isEnabled() {\n return Boolean.TRUE;\n }", "public boolean canDisplay(){\n if(title.isEmpty() && body.isEmpty()){\n return false;\n }\n\n return true;\n }", "public void setInline(String inline) {\n if (\"true\".equalsIgnoreCase(inline)) {\n this.full = true;\n return;\n }\n if (\"false\".equalsIgnoreCase(inline)) {\n this.full = false;\n return;\n }\n this.full = false;\n this.inline = inline;\n }", "@Override\n\tprotected boolean isInClearText() {\n\t\treturn !this.inQuotes;\n\t}", "public boolean shouldUseRawName() {\n return chkUseRawName.isChecked();\n }", "public boolean isPreformatted() {\n return preformatted;\n }", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn true;\n\t}", "public String isEnabled() {\n return this.isEnabled;\n }", "public boolean isRaw() {\n\t\treturn opcode == -1;\n\t}", "@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn this.enabled;\n\t}", "@Override\n\tpublic boolean isFormatted() {\n\t\treturn false;\n\t}", "@Override\n public boolean isEnabled() {\n return this.enabled;\n }", "public boolean isPlain() {\n\treturn style == 0;\n }", "public boolean isEnabled() {\n\t\treturn true;\n\t}", "@DISPID(-2147417084)\n @PropGet\n java.lang.String outerHTML();", "protected abstract boolean isMultiLine();", "public boolean isMultiline() {\n return multiline;\n }", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn isEnabled;\n\t}", "public boolean isVisualizeEditEnabled() {\n return visualizeEditEnabled;\n }", "public native final String html()/*-{\n\t\treturn this.html();\n\t}-*/;", "public String getHtmlText() {\n return htmlText;\n }", "protected boolean shouldIgnoreContent() {\n return empty;\n }", "public boolean getEnabled () {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\treturn (OS.PtWidgetFlags (topHandle) & OS.Pt_BLOCKED) == 0;\r\n}", "public static boolean containsHTML(String s) {\n return s.contains(\"<p>\") || s.contains(\"<li>\") || s.contains(\"<br/>\");\n }", "public boolean isShouldEncodeUrls() {\n return mShouldEncodeUrls;\n }", "@Override\n public boolean isEnabled() {\n return true;\n }", "private boolean literal() {\r\n return ALT((GO() && escape()) || (OK() && visible()));\r\n }", "public boolean isEnabled() {\n\t\treturn false;\n\t}", "public boolean isEnabled() {\n\t\treturn false;\n\t}", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public static BooleanValueStyle createInlineStyle() {\r\n\t\tBooleanValueStyle result = NotationFactory.eINSTANCE.createBooleanValueStyle();\r\n\t\tresult.setName(INLINE_STYLE);\r\n\t\tresult.setBooleanValue(true);\r\n\t\treturn result;\r\n\t}", "public final boolean isText() {\n return this.getTopLevelType().equals(\"text\");\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\n return enabled;\n }", "public boolean isEnabled() {\r\n return enabled;\r\n }", "public boolean isEnabled() {\r\n return enabled;\r\n }", "public boolean isEnabled() {\n\t\treturn false;\r\n\t}", "public boolean isEnabled() {\n\t\treturn false;\r\n\t}", "public Boolean isEnabled() {\n return this.enabled;\n }", "public Boolean isEnabled() {\n return this.enabled;\n }", "public Boolean isEnabled() {\n return this.enabled;\n }", "public boolean isEnabled() {\n\n return enabled;\n }", "public boolean hasText() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasText() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isPasteEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}", "@Override\n\t\t\t\tpublic boolean isEnabled() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public boolean isEnabled() {\n\t\tboolean isLicensed = isLicensed();\n\t\t// Enabled only if there is an input email\n\t\tboolean noInputFields = Const.isEmpty(inIPAddress);\n\t\treturn isLicensed && !noInputFields;\n\t}", "@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}", "public boolean isEnabled() {\n\t\treturn enabled;\n\t}", "public @Nullable String getMarkup() {\n return media.getMarkup();\n }" ]
[ "0.82446927", "0.6763897", "0.66515446", "0.66511023", "0.622519", "0.5982346", "0.59694725", "0.59231734", "0.59140605", "0.59128046", "0.5802091", "0.57652265", "0.57209235", "0.57164955", "0.5701206", "0.56737316", "0.56569266", "0.5646849", "0.5557234", "0.54644775", "0.5457976", "0.54321367", "0.54219586", "0.54032683", "0.5398775", "0.5323161", "0.53115255", "0.53024614", "0.53023785", "0.5274895", "0.52744436", "0.5229745", "0.5229745", "0.5229745", "0.5225421", "0.5225421", "0.5225421", "0.5225421", "0.5225421", "0.5225421", "0.5225421", "0.5225421", "0.5225421", "0.5225421", "0.5223411", "0.52084297", "0.5197706", "0.5178057", "0.51723826", "0.51676655", "0.5165567", "0.5162555", "0.5158854", "0.51582956", "0.51390004", "0.51245546", "0.50904524", "0.5081217", "0.50796485", "0.5053912", "0.5045441", "0.50307244", "0.5028345", "0.5007249", "0.5006276", "0.49886987", "0.49886987", "0.49811316", "0.49811316", "0.49811316", "0.49811316", "0.49811316", "0.49811316", "0.49811316", "0.49811316", "0.49811316", "0.49811316", "0.49717197", "0.4970249", "0.49622175", "0.49622175", "0.49604368", "0.49604368", "0.49601606", "0.49601606", "0.4957855", "0.4957855", "0.4957855", "0.49542907", "0.4951005", "0.4951005", "0.49493745", "0.4947487", "0.4947487", "0.49440366", "0.49435169", "0.494073", "0.494073", "0.4939878", "0.49345303" ]
0.8924939
0
Get the reST markup of this writer
public String output( boolean includeMeta ) { String output = ""; // http://docutils.sourceforge.net/docs/ref/rst/roles.html#raw if ( includeMeta && rawInlineHtmlEnabled ) { output += ".. role:: raw-html(raw)\n"; output += " :format: html\n"; output += "\n"; } // Remove whitespace at the end of the document output += this.rst.replaceAll( "\\s+$", "" ); return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getContent() {\n\t\tManageProperties properties = ManageProperties.getInstance();\n\t\tDocument gateDoc = null;\n\t\ttry {\n\t\t\tgateDoc = (Document) Factory.createResource(\"gate.corpora.DocumentImpl\", Utils.featureMap(\"encoding\", properties.getValue(PropertiesFields.ENCODING.toString())));\n\t\t\tDocumentType doc = xmldoc.getDocument();\n\t\t\tgateDoc.setContent(new DocumentContentImpl(doc.getText()));\n\t\t\tAnnotationSet defaultSet = gateDoc.getAnnotations();\n\t\t\tTokensType tokens = doc.getTokens();\n\t\t\tIterator<TokenType> iterTokens = tokens.getToken().iterator();\n\t\t\twhile(iterTokens.hasNext()) {\n\t\t\t\tTokenType token = iterTokens.next();\n\t\t\t\tFeatureMap tokenFeatures = Factory.newFeatureMap();\n\t\t\t\ttokenFeatures.put(\"string\", token.getForm());\n\t\t\t\ttokenFeatures.put(\"root\", token.getLemma());\n\t\t\t\ttokenFeatures.put(\"category\", token.getCategory());\n\t\t\t\tdefaultSet.add(token.getBeginspan().longValue(), token.getEndspan().longValue(), \"Token\", tokenFeatures);\n\t\t\t}\n\t\t\t\n\t\t\tIterator<SentenceType> iterSentences = doc.getSentence().iterator();\n\t\t\twhile(iterSentences.hasNext()) {\n\t\t\t\tSentenceType sent = iterSentences.next();\n\t\t\t\tdefaultSet.add(sent.getBeginspan().longValue(), sent.getEndspan().longValue(), \"Sentence\", Factory.newFeatureMap());\n\t\t\t}\n\t\t} catch (ResourceInstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidOffsetException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn (gateDoc);\n\t}", "public @Nullable String getMarkup() {\n return media.getMarkup();\n }", "public String getXML() {\n\t\treturn getXML(false);\n\t}", "public String getHtmlRepresentation() {\n\t\treturn getHtmlRepresentation(constraintSets);\n\t}", "@Override\n public final String getRaw(){\n return getDocument().getTextCache(this, () -> {\n /// Raw text is adding up raw text of each child.\n StringBuilder builder = new StringBuilder();\n\n for (Span span: this){\n builder.append(span.getRaw());\n }\n return builder.toString();\n });\n }", "public String getSaveString() {\n try {\n Node node = getSaveNode();\n\n StringWriter writer = new StringWriter();\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.transform(new DOMSource(node), new StreamResult(writer));\n return writer.toString();\n }\n catch (TransformerConfigurationException e) {\n throw new RuntimeException(e);\n }\n catch (TransformerException e) {\n throw new RuntimeException(e);\n }\n }", "public Document getDisplayDOM() {\n\t\tswitch (type) {\n\t\t\tcase SOURCE : return doc.getSourceDOM();\n\t\t\tcase TARGET : return doc.getWorkingDOM();\n\t\t}\n\t\treturn null;\n\t}", "public static String getHTML() {\n if (create()) {\n return tag.getInnerHTML();\n }\n return \"\";\n }", "public String render() {\n return root.render(0, m_instanceBags);\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 }", "public String getStory() {\n String finalStory = story;\n for(String word : words) {\n finalStory = finalStory.replaceFirst(expression.pattern(), \"@\"+word+\"*\");\n }\n return finalStory.replace(\"@\", \"<b>\").replace(\"*\", \"</b>\");\n }", "public java.lang.String getXml();", "XMLWriter getStringWriter() {\n\t\tOutputFormat format = new OutputFormat(\" \", true);\n\t\tformat.setTrimText(true);\n\t\tStringWriter sw = new StringWriter();\n\t\ttry {\n\t\t\tstringWriter = new XMLWriter(sw, format);\n\t\t} catch (Exception e) {\n\t\t\tprtln(\"getStringWriter(): \" + e);\n\t\t}\n\n\t\tprtln(\" ... format.encoding: \" + format.getEncoding());\n\t\tprtln(\" ... format.isNewLines: \" + format.isNewlines());\n\t\tprtln(\" ... format.isTrimText: \" + format.isTrimText());\n\t\tprtln(\" ... format.indent: \\'\" + format.getIndent() + \"\\'\");\n\n\t\tstringWriter.setEscapeText(false);\n\t\tif (stringWriter.isEscapeText()) {\n\t\t\tprtln(\" ... isEscapeText\");\n\t\t} else {\n\t\t\tprtln(\" ... is NOT escapeText\");\n\t\t}\n\t\treturn stringWriter;\n\t}", "public MarkupDocument getReport ()\n\t{\n\t\tif (markupDocument == null)\n\t\t\tinterprete ();\n\t\treturn markupDocument;\n\t}", "public String getWriter() {\r\n return writer;\r\n }", "public String toString()\n {\n return getHtml();\n }", "public String innerRepresentation() {\n return toStringHelper(this.root, this.depth);\n }", "public String getDocroot() {\n return docroot;\n }", "public String getHtml() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(StringContainer sc : container) {\n\t\t\tsb.append(sc.getString());\n\t\t}\n\t\treturn \"<html><body>\"+sb.toString()+\"</body></html>\";\n\t}", "@Override\n public Tidy get() {\n Tidy tidy = new Tidy();\n tidy.setInputEncoding(\"UTF-8\");\n tidy.setXHTML(true);\n return tidy;\n }", "public String getDocument() {\n\t\treturn null;\r\n\t}", "public String html() {\n\t\treturn HtmlFunction.html(this);\n\t}", "public String getXml() {\n return xml;\n }", "public FreeMindWriter startRichText() {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n return this; \n }", "public StructuredViewer getStructuredViewer() {\n \t\treturn super.getStructuredViewer();\n \t}", "public String getHtml() {\n return html;\n }", "public String getTree ( ) {\n\n String tree;\n StringWriter s = new StringWriter();\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(s);\n } catch ( Exception ex ) {};\n\n program.printIndividual(param.Parameters.STATE, out);\n\n tree = s.toString();\n String list2[] = tree.split(\"\\n\");\n\n out.close();\n try { s.close(); } catch ( Exception e ) {};\n\n return list2[list2.length - 1];\n\n }", "public PdfObject getRichText() {\n return getPdfObject().get(PdfName.RC);\n }", "public StaveGlyph getStave()\n {\n if(parent != null) return parent.getStave();\n else return null;\n }", "public static String getDoc() {\n return doc;\n }", "private String getReleaseNotesHtml() {\r\n\t\tString pkgName = _act.getPackageName();\r\n\t\tResources res = _act.getResources();\r\n\t\tint resId = res.getIdentifier(releaseNotesXml, \"xml\", pkgName);\r\n\t\tXmlResourceParser parser = res.getXml(resId);\r\n\r\n\t\tString html = \"<html><head>\" + css + \"</head><body>\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint eventType = parser.getEventType();\r\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\r\n\t\t\t\tif ((eventType == XmlPullParser.START_TAG) && (parser.getName().equals(\"release\"))){\r\n\t\t\t\t\thtml = html + parseReleaseNotesXML(parser);\r\n\t\t\t\t}\r\n\t\t\t\teventType = parser.next();\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (XmlPullParserException e)\r\n\t\t{\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tparser.close();\r\n\t\t}\r\n\t\thtml = html + \"</body></html>\";\r\n\t\treturn html;\r\n\t}", "public String str() {\n/* 207 */ String str = this.m_DTMXRTreeFrag.getDTM().getStringValue(this.m_dtmRoot).toString();\n/* */ \n/* 209 */ return (null == str) ? \"\" : str;\n/* */ }", "public String getRoot() {\n return root;\n }", "public Document getXML() {\n\t\treturn null;\n\t}", "public String getSourceRoot() {\n return sourceRoot;\n }", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "public String content() {\n StringWriter content = new StringWriter();\n PrintWriter w = new PrintWriter(content);\n\n printHeaderComment(w);\n\n w.println();\n\n w.println(\"#include \\\"\" + className + \".h\\\"\");\n w.println(\"#include <iostream>\");\n w.println();\n\n w.println();\n\n w.println(\"void \" + className + \"::load( PersistableInputStream& \" + INSTREAM_VAR_NAME + \" ){\");\n w.print(loadContent.toString());\n w.println(\"}\");\n\n w.println();\n\n w.println(\"void \" + className + \"::save( PersistableOutputStream& \" + OUTSTREAM_VAR_NAME + \" ){\");\n w.print(saveContent.toString());\n w.println(\"}\");\n\n return content.toString();\n }", "public String getBaseURI() {\n return node.get_BaseURI();\n }", "public String getReplicationXml();", "@GET\n\t@Produces( { MediaType.TEXT_XML })\n\tpublic UserXML getHTML() {\n\t\tUserXML user = new UserXML();\n\t\tuser.setName(\"Sagar Prasad\");\n\t\tuser.setDescription(\"Some Description\");\n\t\treturn user;\n\t}", "public String getXml() {\n\t\treturn _xml;\n\t}", "public XMLBuilder getRoot() {\n\t\treturn xmlBody;\n\t}", "public String getContent();", "public native final String html()/*-{\n\t\treturn this.html();\n\t}-*/;", "public String toString() {\r\n\r\n StructuredTextDocument doc = (StructuredTextDocument) getDocument(MimeMediaType.XMLUTF8);\r\n return doc.toString();\r\n }", "public String getDocument() {\n\t\treturn document;\n\t}", "String renderHTML();", "public String getXsl() {\n return xsl;\n }", "public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllOriginalTextWriter_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), ORIGINALTEXTWRITER);\r\n\t}", "public final Writer wrapAsRawWriter()\n {\n return mWriter.wrapAsRawWriter();\n }", "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllOriginalTextWriter_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALTEXTWRITER, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "public String getPageRight()\n {\n return \"\";\n }", "String getCurrentArticleBody() {\r\n\t\tString currentArticleBody = \"\" ;\r\n\t\t\r\n\t\t// Work out how much of the contribute each athor makes\r\n\t\t// should be accepted\r\n\t\tint contributionLengths = article.getLength() / collaborators.size() ;\r\n\t\t\r\n\t\t// Populate the article body string based on\r\n\t\t// the contributions of the the various collaborators\r\n\t\tfor(Collaborator c: collaborators) {\r\n\t\t\t\r\n\t\t\tString authorContrib = c.getAuthorContribution() ;\r\n\t\t\t\r\n\t\t\t// Pad out or trim the author contribution as appropriate\r\n\t\t\tif(authorContrib.length() >= contributionLengths) {\r\n\t\t\t\tcurrentArticleBody += authorContrib.substring(0, contributionLengths - 1) ;\r\n\t\t\t} else {\r\n\t\t\t\tcurrentArticleBody += authorContrib ;\r\n\t\t\t\tfor(int i = 0 ; i < contributionLengths-authorContrib.length() ; i++) {\r\n\t\t\t\t\tcurrentArticleBody += \" \" ;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn currentArticleBody ;\r\n\t}", "public String getRootElement() {\n return rootElement;\n }", "public Document getDocument() {\n return editor.getDocument();\n }", "public java.lang.String getContent () {\n\t\treturn content;\n\t}", "public final Class<? extends MarkupContainer> getMarkupClass()\n\t{\n\t\treturn markupClass;\n\t}", "public String getRoot() {\n\t\treturn null;\n\t}", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "public ValueExpression getRender() {\n return this.render;\n }", "public String getRepresentation();", "abstract protected String getOtherXml();", "public Transformer getXslt() {\n return xslt;\n }", "protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "public Element getDocument() {\n\t\t\n\t\tElement retval = getRoot();\n\t\t\n\t\tList<Element> children;\n\t\t\n\t\tif ( retval.getName().equals(\"ROOT\") && (children = retval.getAllChildren()).size() > 0 )\n\t\t\tretval = children.get(0);\n\t\t\n\t\treturn retval;\n\n\t}", "public java.lang.String getRootElement() {\r\n return rootElement;\r\n }", "public abstract String getFormattedContent();", "public String getRestorableState()\n {\n // We only create a restorable state XML if this elevation model was constructed with an AVList.\n AVList constructionParams = (AVList) this.getValue(AVKey.CONSTRUCTION_PARAMETERS);\n if (constructionParams == null)\n return null;\n\n RestorableSupport rs = RestorableSupport.newRestorableSupport();\n // Creating a new RestorableSupport failed. RestorableSupport logged the problem, so just return null.\n if (rs == null)\n return null;\n\n this.doGetRestorableState(rs, null);\n return rs.getStateAsXml();\n }", "public int rtf() {\n/* 219 */ return this.m_dtmRoot;\n/* */ }", "public String toString() {\n\t\treturn \"<Milch \" + this.markenname + \" \" + this.menge + \">\";\n\t}", "public String getNodeSetInfo(IWNodeSet ns)\n\t{\n\n\t\tif (ns != null)\n\t\t{\n\t\t\tSentenceRenderer renderer = new SentenceRenderer(ns, \"English\");\n\t\t\t//String nsType = PMLJ.NodeSet.getURI();\n\t\t\t//IWLanguage language = renderer.getLanguage(); // only languages have renderers return non-null\n\t\t\tString rawStr = renderer.getRawString();\n\n\t\t\tSystem.out.println(\"RENDERED Raw String: \"+rawStr);\n\n\t\t\treturn rawStr;\n\t\t}\n\n\t\treturn null;\n\t}", "public String getWriterContent() throws UnsupportedEncodingException {\n if (printWriter == null) {\n return null;\n }\n printWriter.flush();\n return baos.toString(\"UTF-8\");\n }", "public String getRestorableState()\n {\n RestorableSupport rs = RestorableSupport.newRestorableSupport();\n this.doGetRestorableState(rs, null);\n\n return rs.getStateAsXml();\n }", "public final String getPageContent() {\n\t\treturn pageContent;\n\t}", "protected String getBookBlock()\n {\n return \"<!DOCTYPE book PUBLIC \\\"\" + DocBookSink.DEFAULT_XML_PUBLIC_ID\n + \"\\\" \\\"\" + DocBookSink.DEFAULT_XML_SYSTEM_ID + \"\\\"><book></book>\";\n }", "String getTemplateContent(){\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tfor(String templatePart:templateParts){\r\n \t\t\ttemplateBuffer.append(templatePart);\r\n \t\t}\r\n \t\treturn templateBuffer.toString();\r\n \t}", "public RMDocument getDocument() { return _parent!=null? _parent.getDocument() : null; }", "public String getRest() {\n return getRest(\"\");\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "String getTemplate();", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "public final Writer wrapAsTextWriter()\n {\n return mWriter.wrapAsTextWriter();\n }", "public FreeMindWriter endRichText() {\n out.println( \" </body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "public String display()\r\n {\r\n return recDisplay(root);\r\n }" ]
[ "0.60992074", "0.6075075", "0.58911884", "0.5846358", "0.5843153", "0.5781602", "0.5712697", "0.5704377", "0.5682124", "0.56240827", "0.5608083", "0.56011206", "0.55918163", "0.5590377", "0.55808765", "0.5580295", "0.5558692", "0.5556741", "0.55510086", "0.5528787", "0.55007684", "0.5492209", "0.548785", "0.54716235", "0.54438657", "0.54331267", "0.5405051", "0.53940076", "0.53837794", "0.53829944", "0.5366463", "0.53399694", "0.5338182", "0.53134453", "0.53009546", "0.529536", "0.52935374", "0.5275312", "0.5270554", "0.52639925", "0.526091", "0.524718", "0.52395225", "0.5223814", "0.5214155", "0.52140254", "0.5208463", "0.5208202", "0.51993483", "0.5196927", "0.51822317", "0.5177044", "0.5171565", "0.5167995", "0.51594955", "0.5150147", "0.5145784", "0.51391", "0.5135367", "0.5132254", "0.5132254", "0.5132254", "0.5132254", "0.5132254", "0.5132254", "0.5124751", "0.5123342", "0.51226455", "0.51221675", "0.5120768", "0.511966", "0.511966", "0.511966", "0.511966", "0.511966", "0.511966", "0.511966", "0.511966", "0.511546", "0.51148653", "0.51085865", "0.51058507", "0.5104013", "0.5103516", "0.5103296", "0.5092565", "0.5089658", "0.5084379", "0.50774956", "0.5074825", "0.5074787", "0.50738984", "0.5073219", "0.5073219", "0.5072768", "0.5065225", "0.5065225", "0.5062996", "0.5048779", "0.5046351" ]
0.51738876
52
Write raw reStructuredText markup
protected void markup( String text, boolean useIdent ) { if ( useIdent ) { // Very dirty hack to avoid opening space if this line start with inline raw HTML // (needs to be separated from surrounding text by one space) text = text.replaceAll( "^\\s", "" ); } int spaces = useIdent ? indent * INDENT_SPACES : 0; String[] lines = text.split( NEW_LINE ); for ( int i = 0; i < lines.length; ++i ) { rst += StringUtils.repeat( " ", spaces ) + lines[i]; // Do not write a new line character if this is the last line of the markup if ( i < ( lines.length - 1 ) ) { newLine(); } } lastLineLength = lines[lines.length - 1].length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String output( boolean includeMeta )\n {\n String output = \"\";\n\n // http://docutils.sourceforge.net/docs/ref/rst/roles.html#raw\n if ( includeMeta && rawInlineHtmlEnabled )\n {\n output += \".. role:: raw-html(raw)\\n\";\n output += \" :format: html\\n\";\n output += \"\\n\";\n }\n\n // Remove whitespace at the end of the document\n output += this.rst.replaceAll( \"\\\\s+$\", \"\" );\n\n return output;\n }", "public FreeMindWriter richText( String text ) {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n out.println( text );\n out.println( \" </body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "private void buildRTF() {\n\t\n}", "public void markup( String text )\n {\n // Indent only of this is the first text on the line\n markup( text, rst.isEmpty() || rst.endsWith( NEW_LINE ) );\n }", "public FreeMindWriter startRichText() {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n return this; \n }", "public FreeMindWriter richPreText( String text ) {\n tagClose();\n out.print( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body><pre>\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"</pre></body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "void decorate(Writer out, String content) throws IOException;", "public interface ContentWriter {\n\t// *** Class Members ***\n\n\t// *** Public Methods ***\n\t\n\t// --- Writer State ---\n\tpublic Name getName();\n\tpublic List<Name> getElementNameStack();\n\t\n\t// --- Escaped Text Content ---\n\tpublic void text(Text text) throws IOException;\n\tpublic void text(String text) throws IOException;\n\tpublic Writer text() throws IOException;\n\tpublic Writer cdata() throws IOException;\n\t\n\t// --- Character Data Content---\n\tpublic void characters(CharData charData) throws IOException;\n\tpublic void cdata(CData cdata) throws IOException;\n\t\n\t// --- Reference Content ---\n\tpublic void reference(CharRef charRef) throws IOException;\n\tpublic void reference(Name entityName) throws IOException;\n\t\n\t// --- Namespaces ---\n\tpublic void defaultNamespace(NamespaceURI uri) throws IOException;\n\tpublic void namespace(NamespaceURI uri) throws IOException;\n\t\n\t// --- Element Content ---\n\tpublic ContentWriter element(Name elementName) throws IOException;\n\tpublic ContentWriter element(Name elementName, Attribute... attributes) throws IOException;\n\t\n\t// --- Misc Content ---\n\tpublic void comment(Comment c) throws IOException;\n\tpublic void pi(Target target, Instruction instruction) throws IOException;\n\tpublic void space(Whitespace space) throws IOException;\n\t\n\t// --- Custom Content ---\n\tpublic void content(Content c) throws IOException;\n}", "public abstract String getFormattedContent();", "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 String toText() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!description.isEmpty()) {\n\t\t\tsb.append(description.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tif (!blockTags.isEmpty()) {\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tblockTags.forEach(bt -> {\n\t\t\tsb.append(bt.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t});\n\t\treturn sb.toString();\n\t}", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void write() throws IOException {\n\t\tfinal String timeLog = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd_HH-mm-ss\"));\n\t\tfinal File file = new File(\"wordsaurier-document-\" + timeLog + \".txt\");\n\t\t\n\n\t\ttry (OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {\n\t\t\t\n\n\t\t\t\n\t\t\twriter.write(\"Wordsaurier document\\r\\n\");\n\t\t\twriter.write(this.documentSpecification.toString() + \"\\r\\n\");\n\t\t\twriter.write(\"---------------------\\r\\n\");\n\t\t\twriter.write(this.document.getContent());\n\t\t\tLOG.info(\"document was written to {}\", file.getCanonicalPath());\n\t\t\t\n\t\t} catch (final IOException e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "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 }", "@Override\n protected SyntaxTreeNode rewriteBlock(@Nonnull final BlockBuilder parent, @Nonnull final Block block) {\n final String content = concatNodeContent(block.getChildren());\n\n final SyntaxTreeNode first = parent.getChildren().stream().findFirst().orElse(null);\n assert first != null;\n\n // Create a new span containing this content\n final SpanBuilder span = new SpanBuilder();\n span.setEditHandler(new SpanEditHandler(HtmlTokenizer.createTokenizeDelegate()));\n fillSpan(span, first.getStart(), content);\n return span.build();\n }", "public String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}", "public String content() {\n StringWriter content = new StringWriter();\n PrintWriter w = new PrintWriter(content);\n\n printHeaderComment(w);\n\n w.println();\n\n w.println(\"#include \\\"\" + className + \".h\\\"\");\n w.println(\"#include <iostream>\");\n w.println();\n\n w.println();\n\n w.println(\"void \" + className + \"::load( PersistableInputStream& \" + INSTREAM_VAR_NAME + \" ){\");\n w.print(loadContent.toString());\n w.println(\"}\");\n\n w.println();\n\n w.println(\"void \" + className + \"::save( PersistableOutputStream& \" + OUTSTREAM_VAR_NAME + \" ){\");\n w.print(saveContent.toString());\n w.println(\"}\");\n\n return content.toString();\n }", "public FreeMindWriter text( String text ) {\n if( ! tagOpen ) throw new IllegalStateException( \"Node start element is no longer open\" );\n \n out.print( \" TEXT='\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"'\" ); \n return this;\n }", "public FreeMindWriter endRichText() {\n out.println( \" </body>\\n</html>\\n</richcontent>\" );\n return this; \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 }", "public AsciiDocWriter role(Object role) { nnl(); return w(\"[.\", 1, role, \"]\"); }", "public String markupDocumentSpan(String documentId,TextLabels labels) {\n\t\tTreeMap boundaries = new TreeMap();\n\t\tfor (Iterator i=labels.getTypes().iterator(); i.hasNext(); ) {\n\t\t\tString type = (String)i.next();\n\t\t\tfor (Span.Looper j=labels.instanceIterator(type, documentId); j.hasNext(); ) {\n\t\t\t\tSpan s = j.nextSpan();\n\t\t\t\t//System.out.println(\"Left Boundary: \" + s.getLeftBoundary());\n\t\t\t\t//System.out.println(\"Right Boundary: \" + s.getRightBoundary());\n\t\t\t\tsetBoundary(boundaries,\"begin\",type,s.getLeftBoundary());\n\t\t\t\tsetBoundary(boundaries,\"end\",type,s.getRightBoundary());\n\t\t\t}\n\t\t}\n\t\t// now walk thru boundaries and find out which set as\n\t\t// associated with each segment - want map from boundaries to\n\t\t// type sets\n\t\tString source = labels.getTextBase().documentSpan(documentId).asString();\n\t\t//System.out.println(\"source is \"+source);\n\t\tStringBuffer buf = new StringBuffer(\"\");\n\t\tbuf.append(\"<root>\");\n\t\tint currentPos = 0;\n\t\tSet currentTypes = new TreeSet();\n\t\tString lastMarkup = null;\n\t\tfor (Iterator i=boundaries.keySet().iterator(); i.hasNext(); ) {\n\t\t\tSpan b = (Span)i.next();\n\t\t\t//System.out.println(\"b=\"+b);\n\t\t\t// work out what types are in effect here\n\t\t\tSet ops = (Set)boundaries.get(b);\n\t\t\tfor (Iterator j=ops.iterator(); j.hasNext(); ) {\n\t\t\t\tString[] op = (String[]) j.next();\n\t\t\t\tSystem.out.println(\"op is \"+op[0]+\",\"+op[1]);\n\t\t\t\tif (\"begin\".equals(op[0])) currentTypes.add(op[1]);\n\t\t\t\telse currentTypes.remove(op[1]);\n\t\t\t}\n\t\t\t// output next section of document\n\t\t\tint pos;\n\t\t\tif (b.documentSpanStartIndex() < b.documentSpan().size())\n\t\t\t\tpos = b.documentSpan().subSpan( b.documentSpanStartIndex(), 1).getTextToken(0).getLo();\n\t\t\telse\n\t\t\t\tpos = b.documentSpan().getTextToken(b.documentSpan().size()-1).getHi();\n\n\t\t\t//System.out.println(\"boundary \"+pos+\" currentTypes=\"+currentTypes);\n\t\t\tbuf.append( source.substring(currentPos, pos) );\n\t\t\t// close off last markup\n\t\t\tif (lastMarkup!=null) buf.append(\"</\"+lastMarkup+\">\");\n\t\t\t// work out next markup symbol\n\t\t\tString markup = null;\n\t\t\tString value = null;\n\t\t\tif (currentTypes.size()==1) {\n\t\t\t\tmarkup = (String) (currentTypes.iterator().next());\n\t\t\t} else if (currentTypes.size()>1) {\n\t\t\t\tmarkup = \"overlap\";\n\t\t\t\tStringBuffer vBuf = new StringBuffer(\"\");\n\t\t\t\tfor (Iterator j=currentTypes.iterator(); j.hasNext(); ) {\n\t\t\t\t\tif (vBuf.length()>0) vBuf.append(\",\");\n\t\t\t\t\tvBuf.append( (String) j.next() );\n\t\t\t\t}\n\t\t\t\tvalue = vBuf.toString();\n\t\t\t}\n\t\t\tif (markup!=null && value!=null) {\n\t\t\t\tbuf.append(\"<\"+markup+\" value=\\\"\"+value+\"\\\">\");\n\t\t\t} else if (markup!=null) {\n\t\t\t\tbuf.append(\"<\"+markup+\">\");\n\t\t\t}\n\t\t\t// update position, lastMarkup\n\t\t\tcurrentPos = pos;\n\t\t\tlastMarkup = markup;\n\t\t\t//System.out.println(\"after update buf='\"+buf+\"'\");\n\t\t} // each boundary\n\t\t// close it all off\n\t\tbuf.append(source.substring(currentPos,source.length()));\n\t\tbuf.append(\"</root>\");\n\t\treturn buf.toString();\n\t}", "public void writeTemplateContent() throws IOException {\n\t\tFile templateFile = generateTemplateFile(templateFilename);\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(templateFile, false), \"UTF-8\"));\n\t\tbw.write(\"<!DOCTYPE html>\\n<html><head></head><body><p></p>\");\n\t\tfor (String s : contentList) {\n\t\t\tbw.write(s);\n\t\t}\n\t\tbw.write(\"</body></html>\");\n\t\tbw.close();\n\t\tJsoup.parse(templateFile, \"UTF-8\");\n\t}", "private static void appendAutoTextEntry(GlossaryDocument glossaryDoc, String name, String contents) {\n BuildingBlock buildingBlock = new BuildingBlock(glossaryDoc);\n buildingBlock.setName(name);\n buildingBlock.setGallery(BuildingBlockGallery.AUTO_TEXT);\n buildingBlock.setCategory(\"General\");\n buildingBlock.setBehavior(BuildingBlockBehavior.PARAGRAPH);\n\n Section section = new Section(glossaryDoc);\n section.appendChild(new Body(glossaryDoc));\n section.getBody().appendParagraph(contents);\n buildingBlock.appendChild(section);\n\n glossaryDoc.appendChild(buildingBlock);\n }", "public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}", "public interface ContentInliner {\n\n /**\n * Get Regexp Pattern for match format string\n *\n * @return Pattern\n */\n Pattern getTagPattern();\n\n /**\n * Inline content to xlsx template\n */\n void inlineToXlsx(SpreadsheetMLPackage pkg, WorksheetPart worksheetPart, Cell newCell, Object paramValue, Matcher matcher);\n\n /**\n * Inline content into doc template\n */\n void inlineToDoc(OfficeComponent officeComponent, XTextRange textRange, XText destination, Object paramValue, Matcher paramsMatcher)\n throws Exception;\n\n /**\n * Inline content into docx template\n */\n void inlineToDocx(WordprocessingMLPackage wordPackage, Text destination, Object paramValue, Matcher paramsMatcher);\n\n /**\n * Inline content into xls template\n */\n void inlineToXls(HSSFPatriarch patriarch, HSSFCell destination, Object paramValue, Matcher paramsMatcher);\n}", "public String getWriteFormatDescription(int formatIndex);", "public void printWithTemplate(String text) {\n String line = \"____________________________________________________________\";\n\n out.println(line);\n out.println(text);\n out.println(line);\n }", "abstract public String asText(boolean pretty);", "protected Text text(String content){\n\t\treturn doc.createTextNode(content);\n\t}", "@Override\n public void write(String text) {\n }", "public String generateContents(Collection<Reference> references) {\n String contents = references.stream().map(\n ref -> formatReference(ref)\n ).collect(Collectors.joining(\"\\n\"));\n\n return escapeScandicCharacters(contents);\n }", "String buildDoc(ControllerNode controllerNode) throws IOException;", "public String markupAsHTML (Markup m)\n {\n\n if (m == null)\n {\n\n return this.paragraph;\n\n }\n\n Markup pm = new Markup (m,\n this.getAllTextStartOffset (),\n this.getAllTextEndOffset ());\n\n pm.shiftBy (-1 * this.getAllTextStartOffset ());\n\n return pm.markupAsHTML (this.paragraph);\n\n }", "@Override\n public final String getRaw(){\n return getDocument().getTextCache(this, () -> {\n /// Raw text is adding up raw text of each child.\n StringBuilder builder = new StringBuilder();\n\n for (Span span: this){\n builder.append(span.getRaw());\n }\n return builder.toString();\n });\n }", "String getTransformedText();", "@Test\n public void test() throws IOException {\n String url = \"http://blog.csdn.net/seatomorrow/article/details/48393547\";\n Readability readability = new Readability(getDoc(url)); // URL\n readability.init();\n String cleanHtml = readability.outerHtml();\n System.out.println(cleanHtml);\n }", "public void toString(Writer stream) throws IOException {\n stream.write('\"');\n if (this.m_content != null) stream.write(escape(this.m_content));\n stream.write('\"');\n }", "String documentFormat();", "public interface LineWriter {\r\n\r\n\t/**\r\n\t * <p> \r\n\t *\t<jdl:section>\r\n\t * \t\t<jdl:text lang='it'>Va a capo.</jdl:text>\r\n\t * \t\t<jdl:text lang='en'>Carriage return.</jdl:text> \r\n\t *\t</jdl:section>\r\n\t * </p> \r\n\t *\r\n\t */\r\n public void println();\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Stampa una pagina senza andare a capo.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Write a line without carriage return.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n * @param line\t<jdl:section>\r\n * \t\t\t\t\t<jdl:text lang='it'>La linea di testo da stampare.</jdl:text>\r\n * \t\t\t\t\t<jdl:text lang='en'>The line of text to print.</jdl:text> \r\n *\t\t\t\t</jdl:section>\r\n */\r\n public void print(String line);\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Stampa una pagina e va a capo.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Write a line with carriage return.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n * @param line\t<jdl:section>\r\n * \t\t\t\t\t<jdl:text lang='it'>La linea di testo da stampare.</jdl:text>\r\n * \t\t\t\t\t<jdl:text lang='en'>The line of text to print.</jdl:text> \r\n *\t\t\t\t</jdl:section>\r\n */\r\n public void println(String line);\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Chiude il LineWriter.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Close the LineWriter.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n\t * @throws IOException\t<jdl:section>\r\n\t * \t\t\t\t\t\t\t<jdl:text lang='it'>Se qualcosa va male durante l'elaborazione.</jdl:text>\r\n\t * \t\t\t\t\t\t\t<jdl:text lang='en'>If something goes wrong during elaboration.</jdl:text> \r\n\t *\t\t\t\t\t\t</jdl:section>\r\n */\r\n public void close() throws IOException;\r\n \r\n}", "public void text( String text )\n {\n markup( escape( text ) );\n }", "public boolean saveHTMLInFile()\n {\n String filePath = formatFilePath();\n return saveHTMLInFile(filePath);\n }", "@PUT\r\n @Consumes(MediaType.TEXT_HTML)\r\n public void putHtml(String content) {\r\n }", "void write(String text);", "Node getTemplateTextNode();", "public final Writer wrapAsTextWriter()\n {\n return mWriter.wrapAsTextWriter();\n }", "public void addRaw(final String pContent) {\n\t\tout.write(pContent);\n\t\tout.flush();\n\t}", "public String convertMarkupToHTML(String text) {\n return text;\n }", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "public void saveDocument() throws IOException;", "public String generateMarkdown() {\n return MarkdownDocumentationFormatter.generateMarkdownOutput(getFlowDocs());\n }", "void write(Writer out, boolean escapeXML) throws IOException;", "@PUT\n @Consumes(MediaType.TEXT_HTML)\n public void putHtml(String content) {\n }", "private void writeContent(OutputStream os) throws Exception {\n os.write(HTMLcontent.getBytes());\n}", "public TextBlock() {\n writer = new StringMaker();\n writer.openForOutput();\n // blockOut = new StringBuilder();\n labels = new ArrayList();\n // writer.close();\n }", "boolean saveDocument(String path, String documentContent, Charset charset, List <String> moduleList);", "HTML createHTML();", "@Test\n public void testModifier() {\n String html = source.toHTML(new SEclipseStyle(), new SModifier());\n assertEquals(html, \"<pre style='color:#000000;background\"\n + \":#ffffff;'>\"\n + \"<span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class MainClass {\\n\"\n + \" \\n\"\n + \" <span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }<span style=\"\n + \"'color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class Foo {\\n\"\n + \" \\n\"\n + \" <span style='color\"\n + \":#7f0055; font-weight:bold; '>\"\n + \"public</span> boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "private void printHtmlFragment(MessageBroker msgBroker,\r\n PrintWriter writer,\r\n SearchResultRecord record) throws SearchException {\r\n RecordSnippetWriter snippetWriter = new RecordSnippetWriter(msgBroker, writer);\r\n snippetWriter.setShowTitle(true);\r\n snippetWriter.setShowIcon(true);\r\n snippetWriter.setClipText(true);\r\n snippetWriter.write(record);\r\n}", "@Test\n \tpublic void testListAndHeaderInBlockquote() throws IOException{\n \t\tString testString = \"> * Item 1\\n> * Item 2\\n> 1. #### SubItem 2a\\n> 2. SubItem 2b\\n> ``` r\\n> Then a code block!\\n> ```\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n\t\tString expectedResult = \"<blockquote>\\n <ul>\\n <li>Item 1</li>\\n <ul>\\n <li>Item 2</li>\\n <ol>\\n <li><h4 id=\\\"synapseheading0\\\" level=\\\"h4\\\" toc-style=\\\"toc-indent0\\\">SubItem 2a</h4></li>\\n <li>SubItem 2b</li>\\n </ol>\\n </ul>\\n </ul>\\n <pre><code class=\\\"r\\\">Then a code block!</code></pre>\\n <br /> \\n </blockquote>\";\n\t\tassertTrue(actualResult.contains(expectedResult));\n \t}", "public final Writer wrapAsRawWriter()\n {\n return mWriter.wrapAsRawWriter();\n }", "void writeText(FsPath path, String text);", "public static String md2html() throws ScriptException, FileNotFoundException, NoSuchMethodException {\n ScriptEngineManager manager = new ScriptEngineManager();\n ScriptEngine engine = manager.getEngineByName(\"JavaScript\");\n\n File functionscript = new File(\"public/lib/marked.js\");\n Reader reader = new FileReader (functionscript);\n engine.eval(reader);\n\n Invocable invocableEngine = (Invocable) engine;\n Object marked = engine.get(\"marked\");\n Object lexer = invocableEngine.invokeMethod(marked, \"lexer\", \"**hello**\");\n Object result = invocableEngine.invokeMethod(marked, \"parser\", lexer);\n //invocableEngine.invokeFunction (\"yourFunction\", \"param\");\n return result.toString();\n\n }", "public void output(IvyXmlWriter xw,S6SolutionSet ss)\n{\n xw.begin(\"SOLUTION\");\n String code = formatted_code;\n if (code == null) {\n code = getFragment().getFinalText(ss.getSearchType());\n\n }\n formatted_code = null;\n\n// if (code.contains(\"]]>\") || code.contains(\"<![\")) xw.textElement(\"CODE\",code);\n if (code.contains(\"]]>\")) xw.textElement(\"CODE\",code);\n else xw.cdataElement(\"CODE\",code);\n xw.textElement(\"SOLSRC\",for_source.getName());\n xw.textElement(\"NAME\",for_source.getDisplayName());\n xw.textElement(\"LICENSE\",for_source.getLicenseUid());\n\n xw.begin(\"COMPLEXITY\");\n xw.field(\"LINES\",getCodeLines(code));\n xw.field(\"CODE\",getFragment().getCodeComplexity());\n S6TestResults tr = getFragment().getTestResults();\n if (tr != null) xw.field(\"TESTTIME\",tr.getRequiredTime());\n xw.end(\"COMPLEXITY\");\n\n if (transform_set != null) {\n xw.begin(\"TRANSFORMS\");\n for (S6Transform.Memo m : transform_set) {\n\t xw.textElement(\"TRANSFORM\",m.getTransformName());\n }\n xw.end(\"TRANSFORMS\");\n }\n\n xw.end(\"SOLUTION\");\n}", "public void renderText(TextRenderInfo renderInfo) {\n \tsuper.renderText(renderInfo);\n\t\tpage.setText(getResultantText());\n \twriteText();\n }", "public TypeScriptWriter writeDocs(String docs) {\n // Docs can have valid $ characters that shouldn't run through formatters.\n // Escapes multi-line comment closings.\n writeDocs(() -> write(docs.replace(\"$\", \"$$\").replace(\"*/\", \"*\\\\/\")));\n return this;\n }", "@Test\n public void testWrite_3args() {\n String expResult = \"@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . \" + ls\n + \"@prefix lemon: <http://lemon-model.net/lemon#> . \" + ls\n + \"\" + ls\n + \"<file:test#Cat> lemon:sense [ a lemon:LexicalSense ;\" + ls\n + \" lemon:reference <http://dbpedia.org/resource/Cat> ] ;\" + ls\n + \" lemon:canonicalForm [ lemon:writtenRep \\\"cat\\\"@en ;\" + ls\n + \" a lemon:Form ] ;\" + ls\n + \" a lemon:LexicalEntry .\" + ls\n + \"\" + ls\n + \"<file:test#lexicon> lemon:entry <file:test#Cat> ;\" + ls\n + \" a lemon:Lexicon .\";\n //System.out.println(\"write\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel lm = makeModel(instance);\n Writer dt = new StringWriter();\n boolean xml = false;\n instance.write(lm, dt, xml);\n //System.out.println(dt.toString());\n }", "private String generateHtmlLayout(String title, List<HtmlData> data) {\n return html(\n head(\n title(title),\n link().withRel(\"stylesheet\").withHref(\"asciidoctor.css\")\n ),\n body(\n generateHeader(title),\n generateBody(data)\n )\n ).withStyle(\"padding: 10px 30px\").renderFormatted();\n }", "public interface IHtmlStreamWriter extends IXmlStreamWriter {\r\n\tvoid ignoreCurrentEndTag();\r\n}", "private void saveTextToFile(String content, File file) {\n try {\n PrintWriter writer;\n writer = new PrintWriter(file);\n writer.println(content);\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private HTMLElement generateIntroText(IntroText element, int indentLevel) {\n \t\tHTMLElement textElement = generateTextElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_PARAGRAPH, null,\n \t\t\t\tIIntroHTMLConstants.SPAN_CLASS_TEXT, element.getText(),\n \t\t\t\tindentLevel);\n \t\treturn textElement;\n \t}", "public static String getArticleHtml(Document document) {\n Elements article = document.select(\".widget.widget-richtext.6 .text\").first().children();\n return article.toString();\n }", "String getContentFormat();", "public String getStory() {\n String finalStory = story;\n for(String word : words) {\n finalStory = finalStory.replaceFirst(expression.pattern(), \"@\"+word+\"*\");\n }\n return finalStory.replace(\"@\", \"<b>\").replace(\"*\", \"</b>\");\n }", "@Override\n\tpublic String generateHTML() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString level = \"\\t\";\n\t\tstringBuilder.append(level.repeat(levelCount)+\"<div>\\n\");\n\t\tlevelCount++;\n\t\tfor (HTMLGenerator htmlGenerator : tags) {\n\t\t\tstringBuilder.append(level.repeat(levelCount)+htmlGenerator.generateHTML());\n\t\t}\n\t\tstringBuilder.append(\"</div>\\n\");\n\t\treturn stringBuilder.toString();\n\t}", "private static String createOriginalDocumentBody(DocumentNode document) {\n\t\tStringBuilder text = new StringBuilder();\n\t\tNode childNode;\n\t\tint size;\n\t\t\n\t\ttry {\n\t\t\tsize = document.numberOfChildren();\n\t\t} catch (NullPointerException e) {\n\t\t\tsize = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tchildNode = document.getChild(i);\n\n\t\t\tif ((childNode instanceof ForLoopNode)) {\n\t\t\t\ttext.append(getText(childNode));\n\t\t\t} else {\n\t\t\t\ttext.append(childNode.getText());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn text.toString();\n\t}", "public void write(String text) {\n\t\tSystem.out.println(\"[byAnnotations] - Write to file: \" + text);\n\t}", "@Override\n public String getDescription() {\n return \"Text documents (*.xml)\";\n }", "private void textilizeNonBlankLine () {\n StringBuffer blockMod = new StringBuffer();\n int startPosition = 0;\n int textPosition = 0;\n leftParenPartOfURL = false;\n attributeType = 0;\n klass = new StringBuffer();\n id = new StringBuffer();\n style = new StringBuffer();\n language = new StringBuffer();\n String imageTitle = \"\";\n String imageURL = \"\";\n int endOfImageURL = -1;\n boolean doublePeriod = false;\n int periodPosition = line.indexOf (\".\");\n if (periodPosition >= 0) {\n textPosition = periodPosition + 1;\n if (textPosition < line.length()) {\n if (line.charAt (textPosition) == '.') {\n doublePeriod = true;\n textPosition++;\n }\n if (textPosition < line.length()\n && line.charAt (textPosition) == ' ') {\n textPosition++;\n textIndex = 0;\n while (textIndex < periodPosition\n && (Character.isLetterOrDigit (textChar()))) {\n blockMod.append (textChar());\n textIndex++;\n } // end while more letters and digits\n if (blockMod.toString().equals (\"p\")\n || blockMod.toString().equals (\"bq\")\n || blockMod.toString().equals (\"h1\")\n || blockMod.toString().equals (\"h2\")\n || blockMod.toString().equals (\"h3\")\n || blockMod.toString().equals (\"h4\")\n || blockMod.toString().equals (\"h5\")\n || blockMod.toString().equals (\"h6\")) {\n // look for attributes\n collectAttributes (periodPosition);\n } else {\n blockMod = new StringBuffer();\n textPosition = 0;\n }\n } // end if space follows period(s)\n } // end if not end of line following first period\n } // end if period found\n\n // Start processing at the beginning of the line\n textIndex = 0;\n\n // If we have a block modifier, then generate appropriate HTML\n if (blockMod.length() > 0) {\n lineDelete (textPosition);\n closeOpenBlockQuote();\n closeOpenBlock();\n doLists();\n if (blockMod.toString().equals (\"bq\")) {\n lineInsert (\"<blockquote><p\");\n context.blockQuoting = true;\n } else {\n lineInsert (\"<\" + blockMod.toString());\n }\n if (klass.length() > 0) {\n lineInsert (\" class=\\\"\" + klass.toString() + \"\\\"\");\n }\n lineInsert (\">\");\n if (doublePeriod) {\n context.nextBlock = blockMod.toString();\n } else {\n context.nextBlock = \"p\";\n }\n }\n\n // See if line starts with one or more list characters\n if (blockMod.length() <= 0) {\n while (textIndex < line.length()\n && (textChar() == '*'\n || textChar() == '#'\n || textChar() == ';')) {\n listChars.append (textChar());\n textIndex++;\n }\n if (listChars.length() > 0\n && (textIndex >= line.length()\n || ((! Character.isWhitespace (textChar()))\n && (textChar() != '(')))) {\n listChars = new StringBuffer();\n textIndex = 0;\n }\n int firstSpace = line.indexOf (\" \", textIndex);\n if (listChars.length() > 0) {\n collectAttributes (firstSpace);\n }\n }\n int endDelete = textIndex;\n if (endDelete < line.length()\n && Character.isWhitespace (line.charAt (endDelete))) {\n endDelete++;\n }\n\n if (listChars.length() > 0) {\n lineDelete (0, endDelete);\n }\n doLists();\n if (listChars.length() > 0\n && listChars.charAt(listChars.length() - 1) == ';') {\n lastDefChar = ';';\n } else {\n lastDefChar = ' ';\n }\n\n // See if this line contains a link alias\n if ((blockMod.length() <= 0)\n && ((line.length() - textIndex) >= 4)\n && (textChar() == '[')) {\n int rightBracketIndex = line.indexOf (\"]\", textIndex);\n if (rightBracketIndex > (textIndex + 1)) {\n linkAlias = true;\n String alias = line.substring (textIndex + 1, rightBracketIndex);\n String url = line.substring (rightBracketIndex + 1);\n lineDelete (line.length() - textIndex);\n lineInsert (\"<a alias=\\\"\" + alias + \"\\\" href=\\\"\" + url + \"\\\"> </a>\");\n }\n }\n\n // If no other instructions, use default start for a new line\n if (blockMod.length() <= 0 \n && listChars.length() <= 0\n & (! linkAlias)) {\n // This non-blank line does not start with a block modifier or a list char\n if (context.lastLineBlank) {\n if (context.nextBlock.equals (\"bq\")) {\n lineInsert (\"<p>\");\n } else {\n closeOpenBlockQuote();\n lineInsert (\"<\" + context.nextBlock + \">\");\n }\n } else {\n lineInsert (\"<br />\");\n }\n }\n\n // Now examine the rest of the line\n char last = ' ';\n char c = ' ';\n char next = ' ';\n leftParenPartOfURL = false;\n resetLineIndexArray();\n while (textIndex <= line.length()) {\n // Get current character, last character and next character\n last = c;\n if (textIndex < line.length()) {\n c = textChar();\n } else {\n c = ' ';\n }\n if ((textIndex + 1) < line.length()) {\n next = line.charAt (textIndex + 1);\n } else {\n next = ' ';\n }\n \n // ?? means a citation\n if (c == '?' && last == '?') {\n if (ix [CITATION] >= 0) {\n replaceWithHTML (CITATION, 2);\n } else {\n ix [CITATION] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // __ means italics\n if (c == '_' && last == '_' && ix [QUOTE_COLON] < 0) {\n if (ix [ITALICS] >= 0) {\n replaceWithHTML (ITALICS, 2);\n } else {\n ix [ITALICS] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // ** means bold\n if (c == '*' && last == '*') {\n if (ix [BOLD] >= 0) {\n replaceWithHTML (BOLD, 2);\n } else {\n ix [BOLD] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // _ means emphasis\n if (c == '_' && next != '_' && ix [QUOTE_COLON] < 0) {\n if (ix [EMPHASIS] >= 0) {\n replaceWithHTML (EMPHASIS, 1);\n } else {\n ix [EMPHASIS] = textIndex;\n textIndex++;\n }\n }\n else\n // * means strong\n if (c == '*' && next != '*') {\n if (ix [STRONG] >= 0) {\n replaceWithHTML (STRONG, 1);\n } else {\n ix [STRONG] = textIndex;\n textIndex++;\n }\n }\n else\n // Exclamation points surround image urls\n if (c == '!' && Character.isLetter(next)\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] < 0) {\n // First exclamation point : store its location and move on\n ix [EXCLAMATION] = textIndex;\n textIndex++;\n }\n else\n // Second exclamation point\n if (c == '!'\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] >= 0) {\n // Second exclamation point\n imageTitle = \"\";\n endOfImageURL = textIndex;\n if (last == ')' && ix [EXCLAMATION_LEFT_PAREN] > 0) {\n ix [EXCLAMATION_RIGHT_PAREN] = textIndex - 1;\n endOfImageURL = ix [EXCLAMATION_LEFT_PAREN];\n imageTitle = line.substring\n (ix [EXCLAMATION_LEFT_PAREN] + 1, ix [EXCLAMATION_RIGHT_PAREN]);\n }\n imageURL = line.substring (ix [EXCLAMATION] + 1, endOfImageURL);\n // Delete the image url, title and parentheses,\n // but leave exclamation points for now.\n lineDelete (ix [EXCLAMATION] + 1, textIndex - ix [EXCLAMATION] - 1);\n String titleString = \"\";\n if (imageTitle.length() > 0) {\n titleString = \" title=\\\"\" + imageTitle + \"\\\" alt=\\\"\" + imageTitle + \"\\\"\";\n }\n lineInsert (ix [EXCLAMATION] + 1,\n \"<img src=\\\"\" + imageURL + \"\\\"\" + titleString + \" />\");\n if (next == ':') {\n // Second exclamation followed by a colon -- look for url for link\n ix [QUOTE_COLON] = textIndex;\n ix [LAST_QUOTE] = ix [EXCLAMATION];\n } else {\n lineDelete (ix [EXCLAMATION], 1);\n lineDelete (textIndex, 1);\n }\n ix [EXCLAMATION] = -1;\n ix [EXCLAMATION_LEFT_PAREN] = -1;\n ix [EXCLAMATION_RIGHT_PAREN] = -1;\n textIndex++;\n } // end if second exclamation point\n else\n // Parentheses within exclamation points enclose the image title\n if (c == '(' && ix [EXCLAMATION] > 0 ) {\n ix [EXCLAMATION_LEFT_PAREN] = textIndex;\n textIndex++;\n }\n else\n // Double quotation marks surround linked text\n if (c == '\"' && ix [QUOTE_COLON] < 0) {\n if (next == ':'\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [LAST_QUOTE] + 1)) {\n ix [QUOTE_COLON] = textIndex;\n } else {\n ix [LAST_QUOTE] = textIndex;\n }\n textIndex++;\n }\n else\n // Flag a left paren inside of a url\n if (c == '(' && ix [QUOTE_COLON] > 0) {\n leftParenPartOfURL = true;\n textIndex++;\n }\n else\n // Space may indicate end of url\n if (Character.isWhitespace (c)\n && ix [QUOTE_COLON] > 0\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [QUOTE_COLON] + 2)) {\n int endOfURL = textIndex - 1;\n // end of url is last character of url\n // do not include any trailing punctuation at end of url\n int backup = 0;\n while ((endOfURL > (ix [QUOTE_COLON] + 2))\n && (! Character.isLetterOrDigit (line.charAt(endOfURL)))\n && (! ((line.charAt(endOfURL) == ')') && (leftParenPartOfURL)))\n && (! (line.charAt(endOfURL) == '/'))) {\n endOfURL--;\n backup++;\n }\n String url = line.substring (ix [QUOTE_COLON] + 2, endOfURL + 1);\n // insert the closing anchor tag\n lineInsert (endOfURL + 1, \"</a>\");\n // Delete the quote, colon and url from the line\n lineDelete (ix [QUOTE_COLON], endOfURL + 1 - ix [QUOTE_COLON]);\n // insert the beginning of the anchor tag\n lineDelete (ix [LAST_QUOTE], 1);\n lineInsert (ix [LAST_QUOTE], \"<a href=\\\"\" + url + \"\\\">\");\n // Reset the pointers\n ix [QUOTE_COLON] = -1;\n ix [LAST_QUOTE] = -1;\n leftParenPartOfURL = false;\n // Increment the index to the next character\n if (backup > 0) {\n textIndex = textIndex - backup;\n } else {\n textIndex++;\n }\n }\n else\n // Look for start of definition\n if ((c == ':' || c == ';')\n && Character.isWhitespace(last)\n && Character.isWhitespace(next)\n && listChars.length() > 0\n && (lastDefChar == ';' || lastDefChar == ':')) {\n lineDelete (textIndex - 1, 3);\n lineInsert (closeDefinitionTag (lastDefChar)\n + openDefinitionTag (c));\n lastDefChar = c;\n }\n /* else\n // -- means an em dash\n if (c == '-' && last == '-') {\n textIndex--;\n lineDelete (2);\n lineInsert (\"&#8212;\");\n } */ else {\n textIndex++;\n }\n }// end while more characters to examine\n\n context.lastLineBlank = false;\n\n }", "@Override\n public void unpackMarkup(Document doc) throws DocumentFormatException {\n unpackMarkup(doc, (RepositioningInfo)null, (RepositioningInfo)null);\n }", "@PUT\r\n @Consumes(\"text/html\")\r\n public void putHtml(String content) {\r\n }", "@Override\r\n\tpublic void translateToAsm(PrintWriter writer, Memory stack) {\n\t\t\r\n\t}", "public static String transformGFM(IStoredSettings settings, String input, String repositoryName) {\r\n\t\tString text = input;\r\n\r\n\t\t// strikethrough\r\n\t\ttext = text.replaceAll(\"~~(.*)~~\", \"<s>$1</s>\");\r\n\t\ttext = text.replaceAll(\"\\\\{(?:-){2}(.*)(?:-){2}}\", \"<s>$1</s>\");\r\n\r\n\t\t// underline\r\n\t\ttext = text.replaceAll(\"\\\\{(?:\\\\+){2}(.*)(?:\\\\+){2}}\", \"<u>$1</u>\");\r\n\r\n\t\t// strikethrough, replacement\r\n\t\ttext = text.replaceAll(\"\\\\{~~(.*)~>(.*)~~}\", \"<s>$1</s><u>$2</u>\");\r\n\r\n\t\t// highlight\r\n\t\ttext = text.replaceAll(\"\\\\{==(.*)==}\", \"<span class='highlight'>$1</span>\");\r\n\r\n\t\tString canonicalUrl = settings.getString(Keys.web.canonicalUrl, \"https://localhost:8443\");\r\n\r\n\t\t// emphasize and link mentions\r\n\t\tString mentionReplacement = String.format(\" **[@$1](%1s/user/$1)**\", canonicalUrl);\r\n\t\ttext = text.replaceAll(\"\\\\s@([A-Za-z0-9-_]+)\", mentionReplacement);\r\n\r\n\t\t// link ticket refs\n\t\tString ticketReplacement = MessageFormat.format(\"$1[#$2]({0}/tickets?r={1}&h=$2)$3\", canonicalUrl, repositoryName);\n\t\ttext = text.replaceAll(\"([\\\\s,]+)#(\\\\d+)([\\\\s,:\\\\.\\\\n])\", ticketReplacement);\n\n\t\t// link commit shas\r\n\t\tint shaLen = settings.getInteger(Keys.web.shortCommitIdLength, 6);\r\n\t\tString commitPattern = MessageFormat.format(\"\\\\s([A-Fa-f0-9]'{'{0}'}')([A-Fa-f0-9]'{'{1}'}')\", shaLen, 40 - shaLen);\r\n\t\tString commitReplacement = String.format(\" [`$1`](%1$s/commit?r=%2$s&h=$1$2)\", canonicalUrl, repositoryName);\r\n\t\ttext = text.replaceAll(commitPattern, commitReplacement);\r\n\r\n\t\tString html = transformMarkdown(text);\r\n\t\treturn html;\r\n\t}", "public static String saveDomToString(Document doc, String encoding, boolean bIndent,String output)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n // find out how we should form output\n // make sure we have some encoding\n if (encoding == null) {\n encoding = doc.getXmlEncoding();\n }\n if (encoding == null) {\n encoding = default_encoding;\n }\n\n try {\n DOMSource xmlDomSource = new DOMSource(doc);\n\n // make an identity transformation\n TransformerFactory transFac = TransformerFactory.newInstance();\n Transformer trans = transFac.newTransformer();\n // set transformatoion properties\n // this is an identity transformation\n // and no properties are set exept defaults\n\n //NOTE: we have a problem with HTML5 which wants a simple header: \n // <!DOCTYPE HTML>\n // we assume that the template is set accordingly\n // This will not give us PublicID and SystemID as null\n // we will have to detect this situastion before we return\n // the text, see below, after transformation\n\n // problem:\n // this will kill other transformed input that make html root\n // use explicit: html5 output option ? (yes)\n\n DocumentType dt = doc.getDoctype();\n String pid = null;\n String sid = null;\n String name = null;\n if (dt != null) {\n pid = dt.getPublicId();\n sid = dt.getSystemId();\n name = dt.getName();\n }\n\n boolean is_HTML5 = false;\n output=output.toLowerCase();\n switch(output){\n case Options.TEXT:\n trans.setOutputProperty(OutputKeys.MEDIA_TYPE, \"text/plain; charset=\" + encoding);\n break;\n \n case Options.XML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.XHTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.HTML5:\n case Options.HTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n is_HTML5 = true;\n break;\n \n default:\n throw new Exception(\"bad output type: \" + output);\n }\n \n\n trans.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\n trans.setOutputProperty(OutputKeys.ENCODING, encoding);\n\n if (bIndent) {\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n trans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"0\");\n } else {\n // use no to avoid prince-problems with toc targets ?????\n trans.setOutputProperty(OutputKeys.INDENT, \"no\");\n }\n\n java.io.StringWriter out = new java.io.StringWriter();\n java.io.BufferedWriter bos = new java.io.BufferedWriter(out);\n StreamResult outStream = new StreamResult(bos);\n trans.transform(xmlDomSource, outStream);\n bos.flush();\n\n // this is where we can clean up a doctype\n // prepared for html 5\n\n String result = out.toString().trim();\n if (is_HTML5 && ( (result.startsWith(\"<html\")) \n || (result.startsWith(\"<HTML\")))) {\n result = \"<!DOCTYPE HTML>\\n\" + result;\n }\n\n return result;\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveDomToString. \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveDomToString. \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveDomToString. \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveDomToString. \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveDomToString. \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveDomToString. \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "TemplateOutputStream getOutput();", "@Override\n public void unpackMarkup(Document doc, RepositioningInfo repInfo,\n RepositioningInfo ampCodingInfo) throws DocumentFormatException {\n if((doc == null)\n || (doc.getSourceUrl() == null && doc.getContent() == null)) {\n\n throw new DocumentFormatException(\n \"GATE document is null or no content found. Nothing to parse!\"); }// End\n // if\n\n // Create a status listener\n StatusListener statusListener = new StatusListener() {\n @Override\n public void statusChanged(String text) {\n // This is implemented in DocumentFormat.java and inherited here\n fireStatusChanged(text);\n }\n };\n\n // determine whether we have a GATE format document or not\n /*String content = doc.getContent().toString();\n if(content.length() > 2048) {\n content = content.substring(0, 2048);\n }*/\n boolean gateFormat = isGateFIFormat(doc);\n \n\n if(gateFormat) {\n unpackGateFormatMarkup(doc, statusListener);\n } else {\n unpackGeneralXmlMarkup(doc, repInfo, ampCodingInfo, statusListener);\n }\n }", "Paragraph createParagraph();", "String renderHTML();", "public void saveBeforeJavadoc() { }", "public void saveBeforeJavadoc() { }", "@Test\n public void main() throws IOException {\n currentArticle = null;\n\n for(String line: FileUtils.readLines(new File(\"D:\\\\projects\\\\вёрстка томов ИИ\\\\9 том\\\\термины.txt\"))) {\n\n Matcher matcher = compile(\"\\\\|([^\\\\|]+)\\\\|\\\\s[–\\\\-—]\\\\s(.+)\").matcher(line);\n if (matcher.find()) {\n if (currentArticle != null) {\n saveItem();\n currentArticle = null;\n }\n String term = matcher.group(1);\n String body = matcher.group(2);\n if(body.indexOf(\"см. \") != 0) {\n currentArticle = new Article(term, body);\n } /*else {\n String alias = body.replace(\"см. \", \"\").replace(\"«\", \"\").replace(\"»\", \"\").replace(\".\", \"\");\n saveAliases(alias, term);\n }*/\n } else if (currentArticle != null) {\n currentArticle.setContent(currentArticle.getContent() + \"<br/>\"+line);\n }\n }\n if (currentArticle != null) {\n saveItem();\n }\n }", "private static String createOriginalDocumentBody(Node parentNode) {\n\t\tString text = \"\";\n\t\tfor (int i = 0, number = parentNode.numberOfChildren(); i < number; i++) {\n\t\t\tNode node = parentNode.getChild(i);\n\t\t\t\n\t\t\ttext += printNode(node);\n\t\t\ttext += createOriginalDocumentBody(node);\n\t\t\t\n\t\t\tif (node instanceof ForLoopNode) {\n\t\t\t\ttext +=ParserDelimiters.OPEN_TAG_DELIMITER.getValue()\n\t\t\t\t\t\t+ ParserDelimiters.END_LOOP_DELIMITER.getValue()\n\t\t\t\t\t\t+ ParserDelimiters.CLOSE_TAG_DELIMITER.getValue();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn text;\n\t}", "public String getAsRTF(List mindMapNodes) {\n\t\ttry {\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tBufferedWriter fileout = new BufferedWriter(stringWriter);\n\t\t\tsaveRTF(mindMapNodes, fileout);\n\t\t\tfileout.close();\n\n\t\t\treturn stringWriter.toString();\n\t\t} catch (Exception e) {\n\t\t\tfreemind.main.Resources.getInstance().logException(e);\n\t\t\treturn null;\n\t\t}\n\t}", "private String getReleaseNotesHtml() {\r\n\t\tString pkgName = _act.getPackageName();\r\n\t\tResources res = _act.getResources();\r\n\t\tint resId = res.getIdentifier(releaseNotesXml, \"xml\", pkgName);\r\n\t\tXmlResourceParser parser = res.getXml(resId);\r\n\r\n\t\tString html = \"<html><head>\" + css + \"</head><body>\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint eventType = parser.getEventType();\r\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\r\n\t\t\t\tif ((eventType == XmlPullParser.START_TAG) && (parser.getName().equals(\"release\"))){\r\n\t\t\t\t\thtml = html + parseReleaseNotesXML(parser);\r\n\t\t\t\t}\r\n\t\t\t\teventType = parser.next();\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (XmlPullParserException e)\r\n\t\t{\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tparser.close();\r\n\t\t}\r\n\t\thtml = html + \"</body></html>\";\r\n\t\treturn html;\r\n\t}", "public void toXML(Writer stream, String indent, String namespace) throws IOException {\n // if ( m_content != null && m_content.length() > 0 ) {\n // stream.write( \"<text>\");\n // stream.write( quote(this.m_content,false) );\n // stream.write(\"</text>\");\n // } else {\n // stream.write(empty_element);\n // }\n if (this.m_content != null) {\n stream.write(quote(this.m_content, false));\n }\n }", "private static void write(String s, Style style) {\r\n\t\ttry {\r\n\t\t\tdoc.insertString(doc.getLength(), s, style);\r\n\t\t} catch (BadLocationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void replaceWithHTML (int tagType, int numberOfChars) {\n\n lineDelete (ix [tagType], numberOfChars);\n lineInsert (ix [tagType], \"<\" + html [tagType] + \">\");\n if (numberOfChars > 1) {\n textIndex--;\n }\n lineDelete (numberOfChars);\n lineInsert (\"</\" + html [tagType] + \">\");\n resetLineIndex (tagType);\n }", "public void writeText(String text) throws IOException {\n markEndAttributes(false);\n write(encode(text));\n }", "public interface HtmlEscaper {\n String escape(String string);\n}" ]
[ "0.5970453", "0.5581369", "0.5534475", "0.5495652", "0.5414683", "0.5275599", "0.5225452", "0.51725745", "0.509786", "0.49538308", "0.49348775", "0.4895424", "0.48947644", "0.4890838", "0.4876905", "0.47991788", "0.47683376", "0.47678557", "0.47650358", "0.47634074", "0.47261894", "0.47102994", "0.47030357", "0.4671913", "0.46632266", "0.46594536", "0.4656632", "0.4645279", "0.46402684", "0.46257958", "0.46242332", "0.46166524", "0.4614527", "0.4611495", "0.45877808", "0.45778117", "0.45694825", "0.45593396", "0.45526016", "0.45339543", "0.4533435", "0.45275772", "0.45248374", "0.45213598", "0.4514311", "0.4512755", "0.45125243", "0.45104116", "0.45024496", "0.44982824", "0.44922364", "0.44916207", "0.4487372", "0.44860363", "0.44855502", "0.44742483", "0.44706637", "0.4457265", "0.4456275", "0.4454139", "0.44519815", "0.44504443", "0.44416615", "0.44385788", "0.44355145", "0.44352698", "0.4424274", "0.44050235", "0.43989873", "0.4395974", "0.4388164", "0.43871275", "0.43858364", "0.43850225", "0.43835667", "0.43825194", "0.4379284", "0.43774515", "0.43771735", "0.43682554", "0.4366192", "0.4362574", "0.43611765", "0.43551946", "0.435203", "0.43485898", "0.4347941", "0.43467942", "0.43213856", "0.4321209", "0.4321209", "0.43210033", "0.43203777", "0.43203425", "0.43109718", "0.43091553", "0.43054894", "0.43054277", "0.43016925", "0.4299664" ]
0.5460561
4
Escape reStructuredText markup See
protected String escape( String text ) { return text.replaceAll( "([`\\|*_])", "\\\\$1" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface HtmlEscaper {\n String escape(String string);\n}", "public void markup( String text )\n {\n // Indent only of this is the first text on the line\n markup( text, rst.isEmpty() || rst.endsWith( NEW_LINE ) );\n }", "protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }", "public String format(String markup) {\n markup = markup.replace(\"[[\", \"^^LEFT$$\").replace(\"]]\", \"^^RIGHT$$\");\n // This is a hacky way of removing emphasis (as EmphasisResolver seems to be buggy; since it's\n // also used by stripAllButInternalLinksAndEmphasis, we need to remove emphasis manually first)\n markup = markup.replaceAll(\"'{6}\", \"'\");\n markup = markup.replaceAll(\"'{5}\", \"\");\n markup = markup.replaceAll(\"'{4}\", \"'\");\n markup = markup.replaceAll(\"'{3}\", \"\");\n markup = markup.replaceAll(\"'{2}\", \"\");\n markup = stripper.stripInternalLinks(markup, null);\n markup = stripper.stripExcessNewlines(markup);\n markup = StringEscapeUtils.unescapeHtml(markup);\n markup = markup.replace('\\u2019', '\\'');\n // Contract multiple whitespaces.\n markup = markup.replaceAll(\"\\\\s+\", \" \");\n return markup;\n }", "protected void markup( String text, boolean useIdent )\n {\n if ( useIdent )\n {\n // Very dirty hack to avoid opening space if this line start with inline raw HTML\n // (needs to be separated from surrounding text by one space)\n text = text.replaceAll( \"^\\\\s\", \"\" );\n }\n\n int spaces = useIdent ? indent * INDENT_SPACES : 0;\n String[] lines = text.split( NEW_LINE );\n\n for ( int i = 0; i < lines.length; ++i )\n {\n rst += StringUtils.repeat( \" \", spaces ) + lines[i];\n\n // Do not write a new line character if this is the last line of the markup\n if ( i < ( lines.length - 1 ) )\n {\n newLine();\n }\n }\n\n lastLineLength = lines[lines.length - 1].length();\n }", "public interface EscapeMarker {}", "public static String transformGFM(IStoredSettings settings, String input, String repositoryName) {\r\n\t\tString text = input;\r\n\r\n\t\t// strikethrough\r\n\t\ttext = text.replaceAll(\"~~(.*)~~\", \"<s>$1</s>\");\r\n\t\ttext = text.replaceAll(\"\\\\{(?:-){2}(.*)(?:-){2}}\", \"<s>$1</s>\");\r\n\r\n\t\t// underline\r\n\t\ttext = text.replaceAll(\"\\\\{(?:\\\\+){2}(.*)(?:\\\\+){2}}\", \"<u>$1</u>\");\r\n\r\n\t\t// strikethrough, replacement\r\n\t\ttext = text.replaceAll(\"\\\\{~~(.*)~>(.*)~~}\", \"<s>$1</s><u>$2</u>\");\r\n\r\n\t\t// highlight\r\n\t\ttext = text.replaceAll(\"\\\\{==(.*)==}\", \"<span class='highlight'>$1</span>\");\r\n\r\n\t\tString canonicalUrl = settings.getString(Keys.web.canonicalUrl, \"https://localhost:8443\");\r\n\r\n\t\t// emphasize and link mentions\r\n\t\tString mentionReplacement = String.format(\" **[@$1](%1s/user/$1)**\", canonicalUrl);\r\n\t\ttext = text.replaceAll(\"\\\\s@([A-Za-z0-9-_]+)\", mentionReplacement);\r\n\r\n\t\t// link ticket refs\n\t\tString ticketReplacement = MessageFormat.format(\"$1[#$2]({0}/tickets?r={1}&h=$2)$3\", canonicalUrl, repositoryName);\n\t\ttext = text.replaceAll(\"([\\\\s,]+)#(\\\\d+)([\\\\s,:\\\\.\\\\n])\", ticketReplacement);\n\n\t\t// link commit shas\r\n\t\tint shaLen = settings.getInteger(Keys.web.shortCommitIdLength, 6);\r\n\t\tString commitPattern = MessageFormat.format(\"\\\\s([A-Fa-f0-9]'{'{0}'}')([A-Fa-f0-9]'{'{1}'}')\", shaLen, 40 - shaLen);\r\n\t\tString commitReplacement = String.format(\" [`$1`](%1$s/commit?r=%2$s&h=$1$2)\", canonicalUrl, repositoryName);\r\n\t\ttext = text.replaceAll(commitPattern, commitReplacement);\r\n\r\n\t\tString html = transformMarkdown(text);\r\n\t\treturn html;\r\n\t}", "public static String escapeHTML(String str){\r\n\t\treturn FuzzyXMLUtil.escape(str, true);\r\n\t}", "default HtmlFormatter escapeJava() {\n return andThen(StringEscapeUtils::escapeJava);\n }", "public String output( boolean includeMeta )\n {\n String output = \"\";\n\n // http://docutils.sourceforge.net/docs/ref/rst/roles.html#raw\n if ( includeMeta && rawInlineHtmlEnabled )\n {\n output += \".. role:: raw-html(raw)\\n\";\n output += \" :format: html\\n\";\n output += \"\\n\";\n }\n\n // Remove whitespace at the end of the document\n output += this.rst.replaceAll( \"\\\\s+$\", \"\" );\n\n return output;\n }", "public void text( String text )\n {\n markup( escape( text ) );\n }", "public static CharSequence escapeMarkup(final String s)\n\t{\n\t\treturn escapeMarkup(s, false);\n\t}", "public static String escapeMarkup(final String s)\n\t{\n\t\treturn escapeMarkup(s, false);\n\t}", "public void formatText(String text){\n\t\ttext = text.replaceAll(\"\\\\<[^>]*>\",\"\");\n\t}", "public FreeMindWriter richPreText( String text ) {\n tagClose();\n out.print( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body><pre>\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"</pre></body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "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 }", "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 interface ContentInliner {\n\n /**\n * Get Regexp Pattern for match format string\n *\n * @return Pattern\n */\n Pattern getTagPattern();\n\n /**\n * Inline content to xlsx template\n */\n void inlineToXlsx(SpreadsheetMLPackage pkg, WorksheetPart worksheetPart, Cell newCell, Object paramValue, Matcher matcher);\n\n /**\n * Inline content into doc template\n */\n void inlineToDoc(OfficeComponent officeComponent, XTextRange textRange, XText destination, Object paramValue, Matcher paramsMatcher)\n throws Exception;\n\n /**\n * Inline content into docx template\n */\n void inlineToDocx(WordprocessingMLPackage wordPackage, Text destination, Object paramValue, Matcher paramsMatcher);\n\n /**\n * Inline content into xls template\n */\n void inlineToXls(HSSFPatriarch patriarch, HSSFCell destination, Object paramValue, Matcher paramsMatcher);\n}", "public static String transformPlainText(String text) {\r\n\t\t// url auto-linking\r\n\t\ttext = text.replaceAll(\"((http|https)://[0-9A-Za-z-_=\\\\?\\\\.\\\\$#&/]*)\", \"<a href=\\\"$1\\\">$1</a>\");\r\n\t\tString html = \"<pre>\" + text + \"</pre>\";\r\n\t\treturn html;\r\n\t}", "B highlightExpression(String highlightExpression);", "@AutoEscape\n public String getDescription();", "public String markupAsHTML (Markup m)\n {\n\n if (m == null)\n {\n\n return this.paragraph;\n\n }\n\n Markup pm = new Markup (m,\n this.getAllTextStartOffset (),\n this.getAllTextEndOffset ());\n\n pm.shiftBy (-1 * this.getAllTextStartOffset ());\n\n return pm.markupAsHTML (this.paragraph);\n\n }", "private String constructEscapedSolrQuery(String query, boolean literal_query) {\n StringBuilder highlightQuery = new StringBuilder();\n String highLightField;\n if (literal_query) {\n highLightField = LuceneQuery.HIGHLIGHT_FIELD_LITERAL;\n } else {\n highLightField = LuceneQuery.HIGHLIGHT_FIELD_REGEX;\n }\n highlightQuery.append(highLightField).append(\":\").append(\"\\\"\").append(KeywordSearchUtil.escapeLuceneQuery(query)).append(\"\\\"\");\n return highlightQuery.toString();\n }", "public String convertMarkupToHTML(String text) {\n return text;\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 }", "@Test\n \tpublic void testListAndHeaderInBlockquote() throws IOException{\n \t\tString testString = \"> * Item 1\\n> * Item 2\\n> 1. #### SubItem 2a\\n> 2. SubItem 2b\\n> ``` r\\n> Then a code block!\\n> ```\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n\t\tString expectedResult = \"<blockquote>\\n <ul>\\n <li>Item 1</li>\\n <ul>\\n <li>Item 2</li>\\n <ol>\\n <li><h4 id=\\\"synapseheading0\\\" level=\\\"h4\\\" toc-style=\\\"toc-indent0\\\">SubItem 2a</h4></li>\\n <li>SubItem 2b</li>\\n </ol>\\n </ul>\\n </ul>\\n <pre><code class=\\\"r\\\">Then a code block!</code></pre>\\n <br /> \\n </blockquote>\";\n\t\tassertTrue(actualResult.contains(expectedResult));\n \t}", "public abstract String getFormattedContent();", "public static final String escapeForIntro(String string) {\n String str = string;\n str = replace(str, \"\\r\\n\", \"<br>\");\n str = replace(str, \"\\n\", \"<br>\");\n str = replace(str, \"'\", \"\\\\'\");\n return replace(str, \"\\r\", \"\");\n\n }", "@Override\n public void handleSpecialChar(\n com.globalsight.ling.docproc.extractor.html.HtmlObjects.Text t)\n {\n\n }", "default HtmlFormatter replace(Pattern pattern, String replacement) {\n return andThen(s -> pattern.matcher(s).replaceAll(replacement));\n }", "@Test\n public void testCurlyBracket() {\n String html = source.toHTML(new SEclipseStyle(), new SCurlyBracket());\n assertEquals(html, \"<pre style='color:\"\n + \"#000000;background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\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}", "String getContentFormat();", "public FreeMindWriter richText( String text ) {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n out.println( text );\n out.println( \" </body>\\n</html>\\n</richcontent>\" );\n return this; \n }", "TextWithReferences getTextWithReferences();", "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}", "default HtmlFormatter wrapWith(String str) {\n return wrapWith(\n str,\n str\n );\n }", "public interface BibtexConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int COMMENT = 5;\r\n /** RegularExpression Id. */\r\n int COMMENT_START = 6;\r\n /** RegularExpression Id. */\r\n int PREAMBLE_START = 7;\r\n /** RegularExpression Id. */\r\n int STRING_START = 8;\r\n /** RegularExpression Id. */\r\n int COMMENT_ENTRY = 9;\r\n /** RegularExpression Id. */\r\n int OPEN_ENTRY = 11;\r\n /** RegularExpression Id. */\r\n int CLOSE_ENTRY = 12;\r\n /** RegularExpression Id. */\r\n int START_B_CONTENT = 14;\r\n /** RegularExpression Id. */\r\n int CLOSE_B_CONTENT = 15;\r\n /** RegularExpression Id. */\r\n int START_Q_CONTENT = 18;\r\n /** RegularExpression Id. */\r\n int CLOSE_Q_CONTENT = 19;\r\n /** RegularExpression Id. */\r\n int CONTENT_TEXT = 20;\r\n /** RegularExpression Id. */\r\n int ID = 21;\r\n /** RegularExpression Id. */\r\n int SEPARATOR = 22;\r\n /** RegularExpression Id. */\r\n int EQUALS = 23;\r\n /** RegularExpression Id. */\r\n int NUMBER = 24;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_ENTRY = 1;\r\n /** Lexical state. */\r\n int IN_ENTRY_TYPE = 2;\r\n /** Lexical state. */\r\n int IN_COMMENT_ENTRY = 3;\r\n /** Lexical state. */\r\n int IN_PREAMBLE = 4;\r\n /** Lexical state. */\r\n int IN_BRACED_CONTENT = 5;\r\n /** Lexical state. */\r\n int IN_BRACED_NESTED_CONTENT = 6;\r\n /** Lexical state. */\r\n int IN_QUOTED_CONTENT = 7;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"<COMMENT>\",\r\n \"\\\"comment\\\"\",\r\n \"\\\"preamble\\\"\",\r\n \"\\\"string\\\"\",\r\n \"<COMMENT_ENTRY>\",\r\n \"<token of kind 10>\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"<token of kind 13>\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"\\\\\\\"\\\"\",\r\n \"\\\"\\\\\\\"\\\"\",\r\n \"<CONTENT_TEXT>\",\r\n \"<ID>\",\r\n \"\\\",\\\"\",\r\n \"\\\"=\\\"\",\r\n \"<NUMBER>\",\r\n \"\\\"#\\\"\",\r\n };\r\n\r\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}", "@Override\n\tpublic String toString() {\n\t\treturn text.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\").replaceAll(\"[{]\\\\$\", \"\\\\\\\\{\\\\$\");\n\t}", "private void buildRTF() {\n\t\n}", "public static String getArticleHtml(Document document) {\n Elements article = document.select(\".widget.widget-richtext.6 .text\").first().children();\n return article.toString();\n }", "protected Text text(String content){\n\t\treturn doc.createTextNode(content);\n\t}", "public String getStory() {\n String finalStory = story;\n for(String word : words) {\n finalStory = finalStory.replaceFirst(expression.pattern(), \"@\"+word+\"*\");\n }\n return finalStory.replace(\"@\", \"<b>\").replace(\"*\", \"</b>\");\n }", "public static String escapeHTML(String s) {\n return escapeHTML(s, true);\n }", "@Test\n public void test() throws IOException {\n String url = \"http://blog.csdn.net/seatomorrow/article/details/48393547\";\n Readability readability = new Readability(getDoc(url)); // URL\n readability.init();\n String cleanHtml = readability.outerHtml();\n System.out.println(cleanHtml);\n }", "abstract public String asText(boolean pretty);", "@Test\n \tpublic void testRAssign() throws IOException{\n \t\tString testString = \"DemoClinicalOnlyModel <- setRefClass(Class = \\\"CINModel\\\",...\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n \t\t//there should be no space between the less than and the dash:\n \t\tassertTrue(actualResult.contains(\"&lt;-\"));\n \t}", "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 }", "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 }", "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}", "String documentFormat();", "@Override\n public String getText() {\n try {\n return doc.select(\".post-content\").get(0).text().replaceAll(\"\\n\", \" \").\n // removing references\n replaceAll(\"\\\\[[\\\\w\\\\s\\\\.\\\\-\\\\,;\\\\?\\\\!\\\\:]+\\\\]\", \"\");\n } catch (NullPointerException e) {\n return null;\n }\n }", "public static CharSequence escapeMarkup(final String s, final boolean escapeSpaces)\n\t{\n\t\treturn escapeMarkup(s, escapeSpaces, false);\n\t}", "String getTransformedText();", "@PUT\r\n @Consumes(MediaType.TEXT_HTML)\r\n public void putHtml(String content) {\r\n }", "public void setEscapeHTML(boolean escapeHTML) {\n this.escapeHTML = escapeHTML;\n }", "private String render(OWLClass cls) {\n\t\treturn ren.render(cls).replaceAll(\"'\", \"\").replaceAll(\" \", \"\");\n\t}", "CharSequence escape(char c);", "public String quotate(String content){\n\n return \"'\"+content+\"'\";\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 }", "@Test\n public void sourceTextInReferenceTest() {\n final String transcription = \"This is a test moo\";\n final String expected = \"This is a test <a class=\\\"internal-ref\\\" href=\\\"javascript:;\\\" \" +\n \"data-targetid=\\\"https://example.com/col/book/page/canvas\\\" \" +\n \"data-label=\\\"test\\\" \" +\n \"data-manifestid=\\\"https://example.com/col/book/manifest\\\">moo</a>\";\n\n String result = adapter.addInternalRefs(fakeCollection, transcription, Collections.singletonList(weirdRef()));\n assertEquals(expected, result);\n }", "void decorate(Writer out, String content) throws IOException;", "@PUT\n @Consumes(MediaType.TEXT_HTML)\n public void putHtml(String content) {\n }", "String renderHTML();", "private String formatLatex(String text){\r\n\r\n String output=text.replaceAll(\"_\",\"-\");\r\n\r\n return output;\r\n }", "Node getTemplateTextNode();", "private String escapeFragment(String pathFragment) {\n\t\treturn pathFragment.replaceAll(\"~\", \"~0\").replaceAll(\"\\\\/\", \"~1\");\n\t}", "private static String printInTagElement(Element element) {\n\t\tif (element == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tif (element instanceof ElementFunction) {\n\t\t\treturn ParserDelimiters.FUNCTION_DELIMITER.getValue() + element.asText();\n\t\t}\n\t\t\n\t\tif (element instanceof ElementString) {\n\t\t\treturn ParserDelimiters.STRING_DELIMITER.getValue()\n\t\t\t\t\t+ addEscapes(\n\t\t\t\t\t\t\telement.asText(),\n\t\t\t\t\t\t\tEscapableArrays.stringEscpable(),\n\t\t\t\t\t\t\tParserDelimiters.ESCAPE_DELIMITER.getValue()\n\t\t\t\t\t\t)\n\t\t\t\t\t+ ParserDelimiters.STRING_DELIMITER.getValue();\n\t\t}\n\t\t\n\t\treturn element.asText();\n\t}", "public String getPlainText(Element element) {\n FormattingVisitor formatter = new FormattingVisitor();\n NodeTraversor.traverse(formatter, element);\n\n return formatter.toString().trim();\n }", "protected String escape(String replacement) {\n return replacement.replace(\"\\\\\", \"\\\\\\\\\").replace(\"$\", \"\\\\$\");\n }", "public String toReference(Object text) { String t=toString(text); if(t==null || t.length()==0) {return null;} return \"<<\"+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 }", "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 String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}", "public static String md2html() throws ScriptException, FileNotFoundException, NoSuchMethodException {\n ScriptEngineManager manager = new ScriptEngineManager();\n ScriptEngine engine = manager.getEngineByName(\"JavaScript\");\n\n File functionscript = new File(\"public/lib/marked.js\");\n Reader reader = new FileReader (functionscript);\n engine.eval(reader);\n\n Invocable invocableEngine = (Invocable) engine;\n Object marked = engine.get(\"marked\");\n Object lexer = invocableEngine.invokeMethod(marked, \"lexer\", \"**hello**\");\n Object result = invocableEngine.invokeMethod(marked, \"parser\", lexer);\n //invocableEngine.invokeFunction (\"yourFunction\", \"param\");\n return result.toString();\n\n }", "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 }", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@Test\n public void testModifier() {\n String html = source.toHTML(new SEclipseStyle(), new SModifier());\n assertEquals(html, \"<pre style='color:#000000;background\"\n + \":#ffffff;'>\"\n + \"<span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class MainClass {\\n\"\n + \" \\n\"\n + \" <span style='color:#7f0055; font-weight:bold; '>\"\n + \"public</span> static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }<span style=\"\n + \"'color:#7f0055; font-weight:bold; '>\"\n + \"public</span> class Foo {\\n\"\n + \" \\n\"\n + \" <span style='color\"\n + \":#7f0055; font-weight:bold; '>\"\n + \"public</span> boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public String generateContents(Collection<Reference> references) {\n String contents = references.stream().map(\n ref -> formatReference(ref)\n ).collect(Collectors.joining(\"\\n\"));\n\n return escapeScandicCharacters(contents);\n }", "public String getBibtexEntry(){\n return \"@ARTICLE { REF\" + this.getMyUniqueID() + \",\\n\" +\n \"author = \\\"\" + this.getAuthor() + \"\\\",\\n\" +\n \"title = \\\"\" + this.getTitle() + \"\\\",\\n\" +\n \"journal = \\\"\" + this.getJournal() + \"\\\",\\n\" +\n \"pages = \\\"\" + this.getStartingPage() + \"-\" + this.getEndingPage() + \"\\\",\\n\" +\n \"year = \\\"\" + this.getPublicationYear() + \"\\\"\\n\" +\n \"},\";\n }", "public Synopsis(String text)\n\t{\n\t\tthis.text = text;\n\t}", "public native final String html()/*-{\n\t\treturn this.html();\n\t}-*/;", "@Override\n public SentenceBuilder call(SentenceBuilder builder, Map<String, Object> metadata) throws\n ProcessingException {\n\n /*find all substrings matching XML Escape Entities\n in the SentenceBuilder current String*/\n Matcher m = XMLCharacterEntity.EntityPattern.matcher(builder.toString());\n\n int stringIndex = 0;\n SentenceBuilder.Editor editor = builder.edit();\n\n /*for each entity found,\n * ask the editor to replace the entity text\n * with the character it stands for,\n * obtained by asking it to the XMLCharacterEntity*/\n while (m.find()) {\n int start = m.start();\n int end = m.end();\n\n if (stringIndex < start)\n stringIndex = end;\n\n String entity = m.group();\n String c = XMLCharacterEntity.unescape(entity);\n\n if (c != null)\n editor.replace(start, end - start, c);\n }\n editor.commit();\n return builder;\n }", "private void replaceWithHTML (int tagType, int numberOfChars) {\n\n lineDelete (ix [tagType], numberOfChars);\n lineInsert (ix [tagType], \"<\" + html [tagType] + \">\");\n if (numberOfChars > 1) {\n textIndex--;\n }\n lineDelete (numberOfChars);\n lineInsert (\"</\" + html [tagType] + \">\");\n resetLineIndex (tagType);\n }", "private static final String formatTextAsHtml(String text) {\n StringBuffer html = new StringBuffer();\n html.append(\"<tt>\");\n for (int idx = 0; idx < text.length(); idx++) {\n if (text.charAt(idx) == ' ') {\n html.append(\"&nbsp;\");\n } else if (text.charAt(idx) == '\\t') {\n html.append(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n } else if (text.charAt(idx) == '\\n') {\n html.append(\"<br>\");\n } else {\n html.append(text.charAt(idx));\n }\n }\n html.append(\"</tt>\");\n return html.toString();\n }", "private static String cleanHighlightingMarks(final String hlText) {\n String hlLiteral = hlText;\n int indexPre = hlLiteral.indexOf(HL_PRE);\n while (indexPre > -1) {\n int indexPost = hlLiteral.indexOf(HL_POST, indexPre + HL_PRE.length());\n if (indexPost > -1) {\n String post = hlLiteral.substring(indexPost + HL_POST.length());\n String pre = hlLiteral.substring(0, indexPost);\n Matcher preMatcher = HL_PRE_REGEX.matcher(pre);\n pre = preMatcher.replaceFirst(\"\");\n hlLiteral = pre + post;\n }\n indexPre = hlLiteral.indexOf(HL_PRE);\n }\n return hlLiteral;\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 }", "public static String escapeXML(String value){\r\n\t\treturn FuzzyXMLUtil.escape(value, false);\r\n\t}", "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 }", "public void testBlogEntryHasTagsAndMediaIsHtml() throws Exception {\n Category category = new Category(\"/java\", \"Java\");\n category.setBlog(blog);\n category.setTags(\"java\");\n blogEntry.addCategory(category);\n blogEntry.setExcerpt(\"Excerpt - here is some text\");\n blogEntry.setBody(\"Body - here is some text\");\n blogEntry.setTags(\"junit, automated unit testing\");\n context.setMedia(ContentDecoratorContext.HTML_PAGE);\n decorator.decorate(context, blogEntry);\n\n StringBuffer tags = new StringBuffer();\n tags.append(\"<div class=\\\"tags\\\"><span>Technorati Tags : </span>\");\n tags.append(\"<a href=\\\"http://technorati.com/tag/automatedunittesting\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">automatedunittesting</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/java\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">java</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/junit\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">junit</a>\");\n tags.append(\"</div>\");\n\n assertEquals(\"Excerpt - here is some text\" + tags, blogEntry.getExcerpt());\n assertEquals(\"Body - here is some text\" + tags, blogEntry.getBody());\n }", "@Test\n public void testString() {\n String html = source.toHTML(new SEclipseStyle(), new SString());\n assertEquals(html, \"<pre style='color:\"\n + \"#000000;background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=<span style='color:#2a00ff; '>\"\n + \"\\\"Java \\\"</span>;\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "@Test\n public void main() throws IOException {\n currentArticle = null;\n\n for(String line: FileUtils.readLines(new File(\"D:\\\\projects\\\\вёрстка томов ИИ\\\\9 том\\\\термины.txt\"))) {\n\n Matcher matcher = compile(\"\\\\|([^\\\\|]+)\\\\|\\\\s[–\\\\-—]\\\\s(.+)\").matcher(line);\n if (matcher.find()) {\n if (currentArticle != null) {\n saveItem();\n currentArticle = null;\n }\n String term = matcher.group(1);\n String body = matcher.group(2);\n if(body.indexOf(\"см. \") != 0) {\n currentArticle = new Article(term, body);\n } /*else {\n String alias = body.replace(\"см. \", \"\").replace(\"«\", \"\").replace(\"»\", \"\").replace(\".\", \"\");\n saveAliases(alias, term);\n }*/\n } else if (currentArticle != null) {\n currentArticle.setContent(currentArticle.getContent() + \"<br/>\"+line);\n }\n }\n if (currentArticle != null) {\n saveItem();\n }\n }", "protected String extractDocumentation(AnnotatedBase element) {\n if (m_schemaCustom.isJavaDocDocumentation()) {\n StringWriter writer = new StringWriter();\n AnnotationElement anno = element.getAnnotation();\n if (anno != null) {\n FilteredSegmentList items = anno.getItemsList();\n for (int i = 0; i < items.size(); i++) {\n AnnotationItem item = (AnnotationItem)items.get(i);\n if (item instanceof DocumentationElement) {\n DocumentationElement doc = (DocumentationElement)item;\n List contents = doc.getContent();\n if (contents != null) {\n for (Iterator iter = contents.iterator(); iter.hasNext();) {\n Node node = (Node)iter.next();\n DOMSource source = new DOMSource(node);\n StreamResult result = new StreamResult(writer);\n try {\n s_transformer.transform(source, result);\n } catch (TransformerException e) {\n s_logger.error(\"Failed documentation output transformation\", e);\n }\n }\n }\n }\n }\n }\n StringBuffer buff = writer.getBuffer();\n if (buff.length() > 0) {\n \n // make sure there's no embedded comment end marker\n int index = buff.length();\n while ((index = buff.lastIndexOf(\"*/\", index)) >= 0) {\n buff.replace(index, index+2, \"* /\");\n }\n return buff.toString();\n }\n }\n return null;\n }" ]
[ "0.6018332", "0.5936934", "0.5861958", "0.5775224", "0.5745645", "0.5550454", "0.5444981", "0.5432036", "0.538709", "0.53856885", "0.53147864", "0.5246674", "0.52139693", "0.52092177", "0.51560175", "0.5142334", "0.5137118", "0.5107381", "0.51028967", "0.5082891", "0.5075317", "0.5043737", "0.50133914", "0.5007582", "0.4935116", "0.4935116", "0.4913084", "0.49124527", "0.4902058", "0.48863435", "0.48616236", "0.48570758", "0.48481333", "0.48330972", "0.4830956", "0.4827225", "0.4822795", "0.48223415", "0.4819597", "0.48062766", "0.48062766", "0.48028928", "0.47970217", "0.4787663", "0.47821695", "0.47802013", "0.47762743", "0.47346982", "0.47174847", "0.47155425", "0.46910807", "0.46861026", "0.4684133", "0.4671039", "0.467028", "0.46621022", "0.4654793", "0.46501723", "0.46460295", "0.46434247", "0.46432805", "0.46411067", "0.4632387", "0.46302834", "0.46245298", "0.46225452", "0.46216327", "0.4620099", "0.4612258", "0.46095887", "0.46049815", "0.4602026", "0.4599997", "0.4595832", "0.4580859", "0.45802918", "0.4579999", "0.45761412", "0.45759726", "0.45744315", "0.4574396", "0.4574396", "0.4574396", "0.4574396", "0.45718566", "0.4565917", "0.45577866", "0.45577306", "0.45494282", "0.45296702", "0.45269123", "0.45203677", "0.45185524", "0.45153746", "0.45002335", "0.4492967", "0.44927898", "0.44921464", "0.4490367", "0.4487868" ]
0.52255756
12
/ function used to retrieve the complete set of java files in a repository
public void getSourceJavaFilesForOneRepository(File dir, FilenameFilter searchSuffix, ArrayList<File> al) { File[] files = dir.listFiles(); for(File f : files) { String lowercaseName = f.getName().toLowerCase(); if(lowercaseName.indexOf("test")!=-1) { /* we do not consider test files in our study */ } else { if(f.isDirectory()){ /* iterate over every directory */ getSourceJavaFilesForOneRepository(f, searchSuffix, al); } else { /* returns the desired java files */ if(searchSuffix.accept(dir, f.getName())){ al.add(f); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<String> getFiles( );", "public List<String> getFiles();", "public Set<String> getJavaSourceListing() {\n Set<String> javasrcs = new TreeSet<String>();\n \n String javasrc;\n for(String classname: classlist) {\n if(classname.contains(\"$\")) {\n continue; // skip (inner classes don't have a direct 1::1 java source file\n }\n \n javasrc = classname.replaceFirst(\"\\\\.class$\", \".java\");\n javasrcs.add(javasrc);\n }\n \n return javasrcs;\n }", "GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }", "public static String[] listFilesAsArray() {\n\t\t// Recursively find all .java files\n\t\tFile path = new File(Project.pathWorkspace());\n\t\tFilenameFilter filter = new FilenameFilter() {\n\n\t\t\tpublic boolean accept(File directory, String fileName) {\n\t\t\t\treturn fileName.endsWith(\".java\");\n\t\t\t}\n\t\t};\n\t\tCollection<File> files = listFiles(path, filter, true);\n\n\t\tArrayList<File> t = new ArrayList<File>(files);\n\t\tfor (int i = 0; i < t.size(); i++) {\n\t\t\tString s = t.get(i).getAbsolutePath();\n\t\t\tif (s.contains(\"XX\") || s.contains(\"testingpackage\") || s.contains(\"datageneration\")) {\n\t\t\t\tt.remove(t.get(i));\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tfiles = t;\n\n\t\t// Convert the Collection into an array\n\t\tFile[] allJavaFiles = new File[files.size()];\n\t\tfiles.toArray(allJavaFiles);\n\n\t\tString[] allTestClasses = new String[allJavaFiles.length];\n\t\tString temp = \"\";\n\n\t\t// convert file path to full package declaration for the class\n\t\tfor (int i = 0; i < allJavaFiles.length; i++) {\n\t\t\ttemp = allJavaFiles[i].toString();\n\t\t\ttemp = temp.replace(\".java\", \"\").replace(\"\\\\\", \".\"); // remove .java convert backslash\n\t\t\tif (temp.indexOf(\"com.textura\") < 0) {\n\t\t\t\tallTestClasses[i] = \"null\";\n\t\t\t} else {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\"com.textura\"));\n\t\t\t\ttemp = temp.replace(\"com.\", \"\");\n\t\t\t\tallTestClasses[i] = temp;\n\t\t\t}\n\t\t}\n\t\treturn allTestClasses;\n\t}", "public List<File> getFiles();", "List<Path> getFiles();", "private List<ICompilationUnit> packageFiles(IPackageFragment p) throws JavaModelException\n {\n\tList<ICompilationUnit> files = new ArrayList<ICompilationUnit>();\n\tICompilationUnit[] compilationUnits = p.getCompilationUnits();\n\tfor (ICompilationUnit cu : compilationUnits)\n\t{\n\t files.add(cu);\n\t}\n\treturn files;\n }", "List<File> list(String directory) throws FindException;", "public List getAll() throws FileNotFoundException, IOException;", "java.util.List<java.lang.String>\n getSourceFileList();", "private List<File> getContents(String whichFiles) {\n List<File> result = new ArrayList<File>();\n Files f1 = mService.files();\n Files.List request = null;\n\n do {\n try { \n request = f1.list();\n // get the language folders from drive\n request.setQ(whichFiles);\n FileList fileList = request.execute();\n \n result.addAll(fileList.getItems());\n request.setPageToken(fileList.getNextPageToken());\n } catch (UserRecoverableAuthIOException e) {\n startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);\n } catch (IOException e) {\n e.printStackTrace();\n if (request != null) \n request.setPageToken(null);\n }\n } while ((request.getPageToken() != null) \n && (request.getPageToken().length() > 0));\n \n return result;\n }", "@Override\n public GitFile[] getFiles()\n {\n if(_files==null) try { _files = getFilesImpl(); } catch(Exception e) { throw new RuntimeException(e); }\n return _files;\n }", "public abstract List<LocalFile> getAllFiles();", "protected URL[] getDAOJavaFiles() {\r\n\t\treturn FileUtils.getUrls(getDaoInDir(), DEFAULT_JAVA_SUFFIX,\r\n\t\t\t\tgetDAOFileNameFilter());\r\n\t}", "List<String> getFiles(String path) throws IOException;", "protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}", "public Map<String,List<RevisionFile>> getSourceFiles();", "public GitFile[] getFiles() { return null; }", "public ICompilationUnit[] getFiles() throws CoreException, JavaModelException\n {\n\tList<ICompilationUnit> files = new ArrayList<ICompilationUnit>();\n\tfor (final String projectName : ConfigurationSettings.projects)\n\t{\n\t IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);\n\t if (project.isNatureEnabled(\"org.eclipse.jdt.core.javanature\"))\n\t {\n\t\tIJavaProject javaProject = JavaCore.create(project);\n\t\tIPackageFragment[] packages = javaProject.getPackageFragments();\n\t\tfor (IPackageFragment p : packages)\n\t\t if (p.getKind() == IPackageFragmentRoot.K_SOURCE)\n\t\t\tfiles.addAll(packageFiles(p));\n\t }\n\t}\n\treturn files.toArray(new ICompilationUnit[0]);\n }", "public List listFiles(String path);", "@Classpath\n @Incremental\n public abstract ConfigurableFileCollection getJavaResourceFiles();", "List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;", "public static File[] findFiles(String fileName) {\n List<File> fileList_ = new ArrayList<File>();\n if(fileRepoPath_ != null)\n listFiles(new File(fileRepoPath_),fileName, fileList_);\n if(fileList_.size()==0) {\n try {\n \t Enumeration<URL> en_ = FileFinder.class.getClassLoader().getResources(fileName);\n \t while(en_.hasMoreElements()) {\n \t fileList_.add(new File(en_.nextElement().getFile().replaceAll(\"%20\",\" \")));\n \t }\n \t } \n \t catch(IOException e) { }\n }\n \treturn (File[])fileList_.toArray(new File[fileList_.size()]);\n }", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "private static String[] findFiles(String dirpath) {\n\t\tString fileSeparator = System.getProperty(\"file.separator\");\n\t\tVector<String> fileListVector = new Vector<String>();\n\t\tFile targetDir = null;\n\t\ttry {\n\t\t\ttargetDir = new File(dirpath);\n\t\t\tif (targetDir.isDirectory())\n\t\t\t\tfor (String val : targetDir.list(new JavaFilter()))\n\t\t\t\t\tfileListVector.add(dirpath + fileSeparator + val);\n\t\t} catch(Exception e) {\n\t\t\tlogger.error(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString fileList = \"\";\n\t\tfor (String filename : fileListVector) {\n\t\t\tString basename = filename.substring(filename.lastIndexOf(fileSeparator) + 1);\n\t\t\tfileList += \"\\t\" + basename;\n\t\t}\n\t\tif (fileList.equals(\"\")) \n\t\t\tfileList += \"none.\";\n\t\tlogger.trace(\"Unpackaged source files found in dir \" + dirpath + fileSeparator + \": \" + fileList);\n\t\t\n\t\treturn (String[]) fileListVector.toArray(new String[fileListVector.size()]);\n\t}", "List<String> getFiles(String path, String searchPattern) throws IOException;", "List<File> getSystemDescriptionFiles();", "java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();", "@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}", "private ArrayList<String> gettemplates(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\ttry {\n\t\t String[] cmd = {\n\t\t \t\t\"/bin/sh\",\n\t\t \t\t\"-c\",\n\t\t \t\t\"ls -p | grep -v / | grep -v 'pom.xml' \"\n\t\t \t\t};\n\n\t\t Process p = Runtime.getRuntime().exec(cmd); //Runtime r = Runtime.getRuntime(); Process p = r.exec(cmd);\n\t\t BufferedReader in =\n\t\t new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t String inputLine;\n\t\t while ((inputLine = in.readLine()) != null) {\n\t\t result.add(inputLine);\n\t\t }\n\t\t in.close();\n\n\t\t} catch (IOException e) {\n\t\t System.out.println(e);\n\t\t}\n\t\t\n\t\treturn result;\n\t\t}", "public static void main(String[] args) throws IOException {\n\n _project _sc = _project.of();\n //reads from a maven-central jar file\n _downloadArchiveConsumer.of(\"https://search.maven.org/remotecontent?filepath=com/github/javaparser/javaparser-core/3.15.18/javaparser-core-3.15.18-sources.jar\",\n (ZipEntry ze, InputStream is)-> {\n if( ze.getName().endsWith(\".java\")){\n _sc.add( _codeUnit.of(is) );\n }\n });\n System.out.println( _sc.size() );\n\n _project _src = _githubProject.of(\"https://github.com/edefazio/bincat\").load();\n //_sources _src = _sources.of();\n //_downloadArchive _da = _downloadArchive.of(url, (ZipEntry ze,InputStream is)-> {\n // if( ze.getName().endsWith(\".java\")){\n // _src.add( _codeUnit.of(is) );\n // }\n //});\n /*\n try( InputStream inputStream = url.openStream();\n ZipInputStream zis = new ZipInputStream(inputStream) ) {\n\n byte[] buffer = new byte[2048];\n\n while (zis.available() > 0) {\n ZipEntry ze = zis.getNextEntry();\n System.out.println(\"reading \" + ze.getName());\n\n if( ze.isDirectory() ){\n ze.\n } else if( ze.)\n\n if (!ze.isDirectory() && ze.getName().endsWith(\".java\")) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int len;\n while ((len = zis.read(buffer)) > 0) {\n baos.write(buffer, 0, len);\n }\n try {\n System.out.println(\"adding\" + ze.getName());\n _src.add(_codeUnit.of(baos.toString()));\n } catch (Exception e) {\n throw new _ioException(\"could not read from entry \" + ze.getName());\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n */\n\n System.out.println( \"finished reading \"+ _src.size());\n }", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "public IAstRlsSourceFile[] getRlsSourceFiles();", "private List<Path> listSourceFiles(Path dir) throws IOException {\n\t\tList<Path> result = new ArrayList<>();\n\t\ttry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, \"*.json\")) {\n\t\t\tfor (Path entry: stream) {\n\t\t\t\tresult.add(entry);\n\t\t\t}\n\t\t} catch (DirectoryIteratorException ex) {\n\t\t\t// I/O error encounted during the iteration, the cause is an IOException\n\t\t\tthrow ex.getCause();\n\t\t}\n\t\treturn result;\n\t}", "private void getDriveContents() {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n // get only the folders in the root directory of drive account\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }\n });\n t.start();\n }", "public Set<String> get(JavaProject javaProject, ProgressMonitor progressMonitor);", "@Override\n\tpublic String[] query() {\n\t\t// Return an array of (decoded) filenames\n\t\tif (!serviceDir.exists()) {\n\t\t\treturn new String[0];\n\t\t}\n\t\tFile[] files = serviceDir.listFiles();\n\t\tString[] addrs = new String[files.length];\n\t\tfor (int i = 0; i < addrs.length; ++i) {\n\t\t\taddrs[i] = decode(files[i].getName());\n\t\t}\n\t\treturn addrs;\n\t}", "private WebFile[] getFilesForPackageName(String packageName)\n {\n // Get file path\n String filePath = '/' + packageName.replace(\".\", \"/\");\n WebFile[] files = new WebFile[0];\n\n // Iterate over sites and return first match\n for (WebSite classPathSite : _classPathSites) {\n WebFile nodeFile = classPathSite.getFileForPath(filePath);\n if (nodeFile != null)\n files = ArrayUtils.add(files, nodeFile);\n }\n\n // Return files\n return files;\n }", "public ClassFile[] getClassFiles() {\n\t\treturn getResult().getClassFiles();\n\t}", "public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}", "@Classpath\n @Incremental\n public abstract ConfigurableFileCollection getFeatureJavaResourceFiles();", "RepositoryPackage getRepositoryPackage();", "@Override\n public Iterable<JavaFileObject> list(Location location, String packageName, Set<JavaFileObject.Kind> kinds, boolean recurse) throws IOException {\n if (location.equals(StandardLocation.CLASS_PATH)) {\n kinds.remove(JavaFileObject.Kind.SOURCE);\n }\n return fileManager.list(location, packageName, kinds, recurse);\n }", "public interface IReadDirectory {\n\n /**\n * List all files existing in the given directory.\n * \n * @param directory\n * @return file list\n * @throws FindException\n */\n List<File> list(String directory) throws FindException;\n\n}", "@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}", "public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}", "public abstract List<File> listFiles() throws AccessException;", "@Override public void outputAllNames(Set<String> files,IvyXmlWriter xw)\n{\n resolve();\n\n Set<String> done = new HashSet<String>();\n\n\n for (RebaseJavaFile jf : file_nodes) {\n // output package element\n if (files != null && !files.contains(jf.getFile().getFileName())) continue;\n\n RebaseFile rf = jf.getFile();\n String pkg = rf.getPackageName();\n if (pkg != null && pkg.length() > 0 && !done.contains(pkg)) {\n\t done.add(pkg);\n\t xw.begin(\"ITEM\");\n\t xw.field(\"HANDLE\",rf.getPackageName() + \"/\" + pkg);\n\t xw.field(\"NAME\",pkg);\n\t File f1 = new File(rf.getFileName());\n\t xw.field(\"PATH\",f1.getParent());\n\t xw.field(\"PROJECT\",rf.getProjectName());\n\t xw.field(\"SOURCE\",\"USERSOURCE\");\n\t xw.field(\"TYPE\",\"Package\");\n\t xw.end(\"ITEM\");\n }\n\n xw.begin(\"FILE\");\n xw.textElement(\"PATH\",jf.getFile().getFileName());\n\n OutputVisitor ov = new OutputVisitor(jf,xw);\n jf.getAstNode().accept(ov);\n\n xw.end(\"FILE\");\n }\n}", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}", "private List<String> getMyDocsFromSomewhere(String aPath) {\n\t\tList<String> ret = new ArrayList<>();\n\t\ttry {\n\t\t\tFile startFileUrl = new File(aPath);\n\t\t\tFile[] files = startFileUrl.listFiles();\n\t\t\tfor (File file : files) {\n\t\t\t\t\n\t\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\t\tMetadata metadata = new Metadata();\n\t\t\t\tFileInputStream inputstream = new FileInputStream(file);\n\t\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t\t// Html parser\n\t\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\t\t// System.out.println(\"Contents of the document:\" +\n\t\t\t\t// handler.toString());\n\t\t\t\t// System.out.println(\"Metadata of the document:\");\n\t\t\t\tString[] metadataNames = metadata.names();\n\t\t\t\tStringBuilder build = new StringBuilder();\n\t\t\t\tfor (String name : metadataNames) {\n\t\t\t\t\tbuild.append(metadata.get(name));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tret.add(handler.toString());\n\t\t\t\tret.add(build.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"--error: \" + aPath);\n\t\t\tSystem.out.println(\"--error: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn ret;\n\t}", "public abstract URI[] getKnownRepositories();", "public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }", "private List<String> copyDependencies(File javaDirectory) throws MojoExecutionException {\n ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();\n\n List<String> list = new ArrayList<String>();\n\n // First, copy the project's own artifact\n File artifactFile = project.getArtifact().getFile();\n list.add(layout.pathOf(project.getArtifact()));\n\n try {\n FileUtils.copyFile(artifactFile, new File(javaDirectory, layout.pathOf(project.getArtifact())));\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could not copy artifact file \" + artifactFile + \" to \" + javaDirectory, ex);\n }\n\n if (excludeDependencies) {\n // skip adding dependencies from project.getArtifacts()\n return list;\n }\n\n for (Artifact artifact : project.getArtifacts()) {\n File file = artifact.getFile();\n File dest = new File(javaDirectory, layout.pathOf(artifact));\n\n getLog().debug(\"Adding \" + file);\n\n try {\n FileUtils.copyFile(file, dest);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying file \" + file + \" into \" + javaDirectory, ex);\n }\n\n list.add(layout.pathOf(artifact));\n }\n\n return list;\n }", "public static void main(String[] args) throws Exception{\n \n String filePath=args[0]; //pass path of the corpus as argument\n Part1_SourceCode.listFiles(filePath);\n \n }", "@Override\n\tpublic Iterable<JavaFileObject> list(Location location, String packageName, Set<Kind> kinds, boolean recurse) throws IOException\n\t{\n\t\treturn super.list(location, packageName, kinds, recurse);\n\t}", "List<ChangedFile> getChangedFiles(Project project);", "public List<Resource> getFileLocations() throws IOException;", "Set<File> getModules();", "public List<File> findAll() {\n\t\treturn files;\n\t}", "java.util.List<java.lang.String>\n getClasspathList();", "IIndexFragmentFile[] getFiles(IIndexFileLocation location) throws CoreException;", "public static String[] getResourceListing(Class<?> clazz, String path) throws\r\n URISyntaxException, IOException {\r\n URL dirURL = clazz.getClassLoader().getResource(path);\r\n\r\n if (dirURL != null && dirURL.getProtocol().equals(\"file\")) {\r\n /* A file path: easy enough */\r\n return new File(dirURL.toURI()).list();\r\n }\r\n\r\n if (dirURL == null) {\r\n /*\r\n * In case of a jar file, we can't actually find a directory. Have\r\n * to assume the same jar as clazz.\r\n */\r\n String me = clazz.getName().replace(\".\", \"/\") + \".class\";\r\n dirURL = clazz.getClassLoader().getResource(me);\r\n }\r\n\r\n if (dirURL != null && dirURL.getProtocol().equals(\"jar\")) {\r\n /* A JAR path */\r\n String jarPath = dirURL.getPath().substring(5, dirURL.getPath().indexOf(\"!\")); //strip out only the JAR file\r\n JarFile jar = new JarFile(URLDecoder.decode(jarPath, \"UTF-8\"));\r\n\r\n LOGGER.debug(\"Listing files in \" + jarPath);\r\n\r\n Enumeration<JarEntry> entries = jar.entries(); //gives ALL entries in jar\r\n Set<String> result = new HashSet<>(); //avoid duplicates in case it is a subdirectory\r\n while (entries.hasMoreElements()) {\r\n String name = entries.nextElement().getName();\r\n if (name.startsWith(path)) { //filter according to the path\r\n LOGGER.debug(\"Found in jar \" + name);\r\n String entry = name.replace(path + \"/\", \"\");\r\n LOGGER.debug(\"Keeping \" + entry);\r\n result.add(entry);\r\n }\r\n }\r\n jar.close();\r\n return result.toArray(new String[0]);\r\n\r\n } else {\r\n\r\n InputStream inputstream = clazz.getResourceAsStream(\"/\" + path);\r\n if (inputstream != null) {\r\n final InputStreamReader isr = new InputStreamReader(inputstream, StandardCharsets.UTF_8);\r\n final BufferedReader br = new BufferedReader(isr);\r\n\r\n Set<String> result = new HashSet<>(); //avoid duplicates in case it is a subdirectory\r\n String filename = null;\r\n while ((filename = br.readLine()) != null) {\r\n result.add(filename);\r\n }\r\n return result.toArray(new String[0]);\r\n }\r\n\r\n }\r\n\r\n throw new UnsupportedOperationException(\"Cannot list files for URL \" + dirURL);\r\n }", "private void scanRepository(String type, HashMap<String, String> liste) {\n String chemin = new String(Parameters.COMPONENTS_REPOSITORY+\"/\"+type);\n//System.out.println(\"explore : \"+chemin);\n File depot = new File(chemin);\n File[] fichiers = depot.listFiles(); // liste des fichiers contenus dans ce repertoire\n for (int i = 0; i<fichiers.length; i++) { // explorer ces fichiers\n if (fichiers[i].isFile()) { // c'est un fichier\n if (fichiers[i].getName().endsWith(\".jar\")) { // c'est un fichier .jar\n try {\n JarFile accesJar = new JarFile(fichiers[i]);\n Manifest manifest = accesJar.getManifest(); // recuperer le manifest de ce fichier\n // Recuperer le nom de la classe du composant metier (dans ce manifest)\n String classeCM = manifest.getMainAttributes().getValue(KalimuchoClassLoader.BC_CLASS);\n liste.put(classeCM, fichiers[i].getName());\n//System.out.println(\"ajoute : (\"+classeCM+\" , \"+fichiers[i].getName()+\")\");\n }\n catch (IOException ioe) {\n System.err.println(\"Can't access to jar file \"+fichiers[i].getName()+\" in \"+chemin);\n }\n }\n }\n }\n }", "List readFile(String pathToFile);", "List<IDirectory> getSourcePath();", "private ArrayList<char[]> getJavaFileList(String inputDir){\n\t\ttry {\n\t\t\treturn subdirectoriesToFiles(inputDir, new ArrayList<char[]>());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private void getCompilationUnits(String filePath) {\n File file = new File(filePath);\n\n for(File f : file.listFiles()) {\n if(f.isFile() && f.getName().endsWith(\".java\")) {\n FileInputStream in = null;\n try {\n\n in = new FileInputStream(f);\n CompilationUnit cu = JavaParser.parse(in);\n compilationUnits.add(cu);\n\n } catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException from getCompilationUnits method\");\n e.printStackTrace();\n } catch (Exception e) {\n System.out.println(\"Exception from getCompilationUnits method\");\n e.printStackTrace();\n } finally {\n try {\n\n in.close();\n\n } catch (IOException e) {\n System.out.println(\"IOException from getCompilationUnits method\");\n e.printStackTrace();\n }\n }\n }\n }\n }", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "public List<String> readFileContents(String filePath) throws APIException;", "@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }", "String[] getResourceListing(Class<?> clazz, String path) throws URISyntaxException, IOException{\n\t\tURL dirURL = clazz.getClassLoader().getResource(path);\n\t\tif(dirURL != null && dirURL.getProtocol().equals(\"file\")){\n\t\t\t/* A file path: easy enough */\n\t\t\treturn new File(dirURL.toURI()).list();\n\t\t}\n\t\tif(dirURL == null){\n\t\t\t// In case of a jar file, we can't actually find a directory. Have to assume the same jar as clazz.\n\t\t\tfinal String me = clazz.getName().replace(\".\", \"/\") + \".class\";\n\t\t\tdirURL = clazz.getClassLoader().getResource(me);\n\t\t}\n\t\tif(dirURL.getProtocol().equals(\"jar\")){\n\t\t\t// A JAR path\n\t\t\tfinal String jarPath = dirURL.getPath().substring(5, dirURL.getPath().indexOf(\"!\")); // strip out only the JAR file\n\t\t\tfinal JarFile jar = new JarFile(URLDecoder.decode(jarPath, \"UTF-8\"));\n\t\t\tfinal Enumeration<JarEntry> entries = jar.entries(); // gives ALL entries in jar\n\t\t\tfinal Set<String> result = new HashSet<>(); // avoid duplicates in case it is a subdirectory\n\t\t\twhile(entries.hasMoreElements()){\n\t\t\t\tfinal String name = entries.nextElement().getName();\n\t\t\t\tif(name.startsWith(path)){ // filter according to the path\n\t\t\t\t\tString entry = name.substring(path.length());\n\t\t\t\t\tint checkSubdir = entry.indexOf(\"/\");\n\t\t\t\t\tif(checkSubdir >= 0){\n\t\t\t\t\t\t// if it is a subdirectory, we just return the directory name\n\t\t\t\t\t\tentry = entry.substring(0, checkSubdir);\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result.toArray(new String[result.size()]);\n\t\t}\n\t\tthrow new UnsupportedOperationException(\"Cannot list files for URL \" + dirURL);\n\t}", "static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }", "String getRepositoryPath();", "private ArrayList<String> readReturnFileContents(String fileName){\n String startingDir = System.getProperty(\"user.dir\");\n BufferedReader reader = null;\n String line = \"\";\n ArrayList<String> wholeFile = new ArrayList<String>();\n try {\n reader = new BufferedReader(new FileReader(startingDir + \"/\" + fileName));\n while ((line = reader.readLine()) != null) {\n wholeFile.add(line);\n }\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe.getMessage());\n System.exit(1);\n } catch (NullPointerException npe) {\n System.out.println(npe.getMessage());\n System.exit(1);\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n return wholeFile;\n }", "public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}", "public static void main(String[] args) {\n File directoryPath = new File(\"C:\\\\Users\\\\jarek\\\\Downloads\");\n //List of all files and directories\n String[] contents = directoryPath.list();\n\n Pattern p= Pattern.compile(\"zip$\");\n Matcher m;\n Vector<String> lis = new Vector<>();\n for(int i = 0; i< Objects.requireNonNull(contents).length; i++){\n m=p.matcher(contents[i]);\n if(m.find()) lis.addElement(contents[i]);\n }\n System.out.println(\"List of files and directories in the specified directory:\");\n for (String content : contents) {\n System.out.println(content);\n }\n }", "static String[] getRepositoryNames(File rootDirFile) {\n\t\tFile[] dirList = rootDirFile.listFiles();\n\t\tif (dirList == null) {\n\t\t\t//throw new FileNotFoundException(\"Folder \" + rootDirFile + \" not found\");\n\t\t\treturn new String[0];\n\t\t}\n\t\tArrayList<String> list = new ArrayList<>(dirList.length);\n\t\tfor (File element : dirList) {\n\t\t\tif (!element.isDirectory() ||\n\t\t\t\tLocalFileSystem.isHiddenDirName(element.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!NamingUtilities.isValidMangledName(element.getName())) {\n\t\t\t\tlog.warn(\"Ignoring repository directory with bad name: \" + element);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlist.add(NamingUtilities.demangle(element.getName()));\n\t\t}\n\t\tCollections.sort(list);\n\t\tString[] names = new String[list.size()];\n\t\treturn list.toArray(names);\n\t}", "java.util.List<java.lang.String>\n getClasspathList();", "java.util.List<java.lang.String>\n getFileNamesList();", "FileCollection getGeneratedSourcesDirs();", "public interface IRepositoryService {\n\n /**\n * Returns the path to an artifact with the given identifier.\n *\n * @param identifier artifact identifier\n * @return the path to an artifact with the given identifier.\n */\n Path getArtifact(String identifier);\n\n /**\n * Returns the set of paths to the artifacts that the artifact with the given identifier depends on. If the given\n * artifact has no dependencies, returns an empty set.\n *\n * @param identifier artifact identifier\n * @param transitive if {@code false}, returns the immediate dependencies of the artifact; otherwise, returns all\n * dependencies, including dependencies of dependencies\n * @return the set of paths to the dependent artifacts\n */\n Set<Path> getArtifactDependencies(String identifier, boolean transitive);\n\n}", "private List<String> returnFiles(int selection) {\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tList<String> allImages = new ArrayList<String>();\n\t\tpath += this.setFolderPath(selection);\n\t\tFile[] files = new File(path).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile() && isCorrectFile(file)) {\n\t\t\t\tallImages.add(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\treturn allImages;\n\t}", "java.util.List<java.lang.String>\n getSourcepathList();", "private static void processRepository(File repo) {\n System.out.println(\"Processing repository: \" + repo);\n for (File fileOrDir : repo.listFiles()) {\n if (fileOrDir.isDirectory()) {\n processModule(fileOrDir);\n }\n }\n }", "public java.lang.String[] getNewFiles(){\r\n return localNewFiles;\r\n }", "public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }", "private static void retrieveFiles(File fileDir) {\n List<String> files = Arrays.asList(fileDir.list());\n if (files.isEmpty()) {\n System.out.println(\"There are no files under current directory.\");\n return;\n }\n Collections.sort(files);\n int numOfFiles = files.size();\n System.out.println(\"There are \" + numOfFiles + \" files under current directory.\");\n for (int i = 1; i <= numOfFiles; i++) {\n System.out.println(i + \" - \" + files.get(i - 1));\n }\n }", "public abstract Collection<RepositoryUser> getProjectMembers(KenaiProject kp) throws IOException;", "ds.hdfs.generated.FileMetadata getFiles(int index);", "java.util.List<java.lang.String>\n getFileNamesList();", "private List<String> scanFileSet(File sourceDirectory, FileSet fileSet) {\n final String[] emptyStringArray = {};\n\n DirectoryScanner scanner = new DirectoryScanner();\n\n scanner.setBasedir(sourceDirectory);\n if (fileSet.getIncludes() != null && !fileSet.getIncludes().isEmpty()) {\n scanner.setIncludes(fileSet.getIncludes().toArray(emptyStringArray));\n } else {\n scanner.setIncludes(DEFAULT_INCLUDES);\n }\n\n if (fileSet.getExcludes() != null && !fileSet.getExcludes().isEmpty()) {\n scanner.setExcludes(fileSet.getExcludes().toArray(emptyStringArray));\n }\n\n if (fileSet.isUseDefaultExcludes()) {\n scanner.addDefaultExcludes();\n }\n\n scanner.scan();\n\n return Arrays.asList(scanner.getIncludedFiles());\n }", "public static void main(String[] args) {\n\t\tPath path = Paths.get(\"F:\\\\AccentureMayBatch\\\\JSTLProject\");\r\n\r\n\t\r\n\r\n\t\tSystem.out.format(\"toString: %s%n\", path.toString());\r\n\t\tSystem.out.format(\"getFileName: %s%n\", path.getFileName());\r\n\t\tSystem.out.format(\"getName(0): %s%n\", path.getName(0));\r\n\t\tSystem.out.format(\"getNameCount: %d%n\", path.getNameCount());\r\n\t\tSystem.out.format(\"subpath(0,2): %s%n\", path.subpath(0,2));\r\n\t\tSystem.out.format(\"getParent: %s%n\", path.getParent());\r\n\t\tSystem.out.format(\"getRoot: %s%n\", path.getRoot());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.list(new File(\".\").toPath())\r\n\t\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFiles.walk(new File(\".\").toPath())\r\n\t\t .filter(p -> !p.getFileName()\r\n\t\t .toString().startsWith(\".\"))\r\n\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\tFiles.lines(new File(\"./src/com/polaris/utility/PathDemo.java\").toPath())\r\n\t\t .map(s -> s.trim())\r\n\t\t .filter(s -> !s.isEmpty())\r\n\t\t .forEach(System.out::println);\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\t\t//finding path and sub path into string\r\n\t\t Path start = Paths.get(\".\");\r\n\t\t int maxDepth = 5;\r\n\t\t try (Stream<Path> stream = Files.find(start, maxDepth, (path2, attr) -> String.valueOf(path2).endsWith(\".java\"))) \r\n\t\t {\r\n\t\t String joined = stream\r\n\t\t .sorted()\r\n\t\t .map(String::valueOf)\r\n\t\t .collect(Collectors.joining(\"; \"));\r\n\t\t System.out.println(\"Found: \" + joined);\r\n\t\t } catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t \r\n\t\t\r\n\t\tPath source = Paths.get(\"./src/com/polaris/utility/PathDemo.java\");\r\n\t\tPath target = Paths.get(\"F:/yatrabakup\");\r\n\t\t\r\n/*\r\n\t\ttry {\r\n\t\t // Files.copy(source, target);\r\n\t\t} catch(FileAlreadyExistsException fae) {\r\n\t\t fae.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t // something else went wrong\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(Paths.get(\"f:\\\\yatrabakup\\\\EmployeeData.csv\"))) {\r\n\t\t reader.lines().map(String::toLowerCase).forEach(System.out::println);\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\t}", "public SortedMap<String, File> download() {\n Set<String> versionsToCheck = getAvailableVersions();\n\n SortedMap<String, File> versionMap = new TreeMap<>(new VersionStringComparator());\n\n System.out.print(ansi().saveCursorPosition());\n\n int i = 1;\n for (String ver : versionsToCheck) {\n String filename = \"checkstyle-\" + ver + \".jar\";\n File f = new File(csBinaries, filename);\n if (!f.exists()) {\n if (print)\n System.out.print(ansi()\n .eraseLine()\n .restoreCursorPosition()\n .a(MessageFormat.format(res.getString(\"downloadprogmsg\"),\n i++, versionsToCheck.size(), ver)));\n try {\n FileUtils.copyURLToFile(new URL(res.getString(\"mavenCheckstyleURL\") + ver + \"/\" + filename), f);\n versionMap.put(ver, f);\n } catch (IOException e) {\n System.err.print(\"Failed: \");\n System.err.println(e.getMessage());\n System.err.println(\"Skipping...\");\n }\n } else {\n versionMap.put(ver, f);\n }\n }\n\n if (print)\n System.out.println();\n\n return versionMap;\n }", "@Override\n public ObservableList<File> call() {\n this.updateTitle(\"Collections Finder Task\");\n collectionsToAdd = FXCollections.<File>observableArrayList();\n foldersToSearch = new ArrayList<>();\n foldersToSearch.add(startingFolder);\n while (foldersToSearch.size() > 0) {\n if (this.isCancelled()) { break; }\n searchNextFolder();\n }\n return collectionsToAdd;\n }", "String[] getFileTypes();", "Set<Path> getDependencies();", "public List<String> getFileContent() {\r\n\t\tTextFileProcessor proc = new TextFileProcessor();\r\n\t\tthis.processFile(proc);\r\n\t\treturn proc.strList;\r\n\t}", "public Collection<AbstractRepository> getRepositories();" ]
[ "0.6357401", "0.6184334", "0.61663693", "0.61185247", "0.611288", "0.60853726", "0.60413545", "0.60410035", "0.6036056", "0.6009415", "0.6005259", "0.59608436", "0.59603816", "0.5931736", "0.59312856", "0.5903084", "0.5803489", "0.57718575", "0.5732157", "0.57228875", "0.571862", "0.5706666", "0.5705956", "0.569529", "0.5691247", "0.5641971", "0.56404275", "0.5640208", "0.56132615", "0.5612205", "0.5607395", "0.5604805", "0.5598136", "0.55927396", "0.5576535", "0.556748", "0.5560412", "0.5553714", "0.5551037", "0.5490838", "0.5481984", "0.54819214", "0.5473392", "0.5465995", "0.54632896", "0.54585546", "0.5458455", "0.54546106", "0.5431924", "0.5429982", "0.5428267", "0.5413749", "0.5409999", "0.540564", "0.5391488", "0.5388601", "0.538628", "0.5383817", "0.53728116", "0.53727645", "0.5372016", "0.53710717", "0.5368449", "0.53560036", "0.5354422", "0.5353958", "0.534583", "0.5339127", "0.53337085", "0.53333324", "0.53281546", "0.5322868", "0.53210264", "0.53138006", "0.53130394", "0.5310982", "0.53097934", "0.5309575", "0.52927506", "0.52913356", "0.5283325", "0.52808887", "0.5277953", "0.52761227", "0.5272352", "0.5253158", "0.52443266", "0.52426195", "0.5240504", "0.523511", "0.5233798", "0.52330065", "0.5225953", "0.522403", "0.5220712", "0.5215174", "0.521511", "0.521382", "0.52073365", "0.52042484" ]
0.61501753
3
Berisi membuat objek Input berdasarkan parameter expr dan precision
public void execute(String[] expr, int precision){ Input input = new Input(expr, precision); Log.d("execute", "masuk1"); //mengubah objek Input ke dalam bentuk string json menggunakan GSON gson = new Gson(); String json = gson.toJson(input); try{ JSONObject obj = new JSONObject(json); Log.d("My App", obj.toString()); //panggil method callVolley callVolley(obj); } catch(Throwable t){ Log.e("My App", "Could not parse malformed JSON: \"" + json + "\""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getParameterValue (Assignment input) ;", "public ConvCalculator(Expression exp){\r\n this();\r\n this.expression = exp;\r\n }", "ExpOperand createExpOperand();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "NumericExpression createNumericExpression();", "void insertDecimalPoint();", "private PrecisionAndRecall() {\n\n }", "protected RealExpression() {\r\n super();\r\n }", "static void setInputExpr(JobConf conf, TableExpr expr) {\n StringBuilder out = new StringBuilder();\n expr.encode(out);\n conf.set(INPUT_EXPR, out.toString());\n }", "public void setInputPrice(BigDecimal inputPrice) {\r\n this.inputPrice = inputPrice;\r\n }", "public void setPriceStdEntered (BigDecimal PriceStdEntered);", "Expression getExp();", "Expression() { }", "private void expression(){\n\t\twhile (in.token != Token.exit){\n\t\t\tdouble value = terms();\n\t\t\tif(in.buffer.variableDetected && initialization == true){\n\t\t\t\tvariables.put(in.buffer.variable, new BigDecimal(value));\n\t\t\t\tin.buffer.variableDetected = false;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif(initialization && !in.buffer.empty)\n\t\t\t\t\tSystem.out.println(\"= \" + value);\n\t\t\tinitialization = true;\n\t\t\tin.getToken(); \t\t\t//This command flushes the end of input marker \";\" which allows for new expressions to be taken in.\n\t\t}\n\t}", "public Expression() {\r\n }", "Operand createOperand();", "public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}", "private double IntegerParseIn(double Precio) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "Expression createExpression();", "Multiply createMultiply();", "public MathEquation() {\n }", "public void setPriceEntered (BigDecimal PriceEntered);", "public MathEval() {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n setConstant(\"E\" ,Math.E);\r\n setConstant(\"Euler\" ,0.577215664901533D);\r\n setConstant(\"LN2\" ,0.693147180559945D);\r\n setConstant(\"LN10\" ,2.302585092994046D);\r\n setConstant(\"LOG2E\" ,1.442695040888963D);\r\n setConstant(\"LOG10E\",0.434294481903252D);\r\n setConstant(\"PHI\" ,1.618033988749895D);\r\n setConstant(\"PI\" ,Math.PI);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n offset=0;\r\n isConstant=false;\r\n }", "private Polynomial inputPoly(String doubleStrCoef, String intStrExp){\n double coef = 0; \n int exp = 0; \n if (doubleStrCoef == null || doubleStrCoef.equals(\"\")) \n coef = 0;\n else \n coef = Double.parseDouble(doubleStrCoef); \n if (intStrExp == null || intStrExp.equals(\"\"))\n exp = 1; \n else \n exp = Integer.parseInt(intStrExp); \n Polynomial inputPoly = new Polynomial(exp, coef);\n return inputPoly; \n }", "public Edificio() {\n leer = new Scanner(System.in);\n int pisoActual = 0;\n System.out.println(\"Dime el piso actual\");\n pisoActual = leer.nextInt();\n PisoActual(pisoActual);\n }", "public Equation()\r\n\t{\r\n\t\texpression = \"\";\r\n\t}", "public static void main(String args[] ) throws Exception {\n\n \n Scanner s = new Scanner(System.in);\n System.out.print(\"enter exprestion : \");\n String expr=s.nextLine(); \n \n \n \n\n }", "public MathEval(MathEval oth) {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n constants.putAll(oth.constants);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n variables.putAll(oth.variables);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n functions.putAll(oth.functions);\r\n\r\n relaxed=oth.relaxed;\r\n\r\n offset=0;\r\n isConstant=false;\r\n }", "public void setCost (BigDecimal Cost)\n{\nif (Cost == null) throw new IllegalArgumentException (\"Cost is mandatory\");\nset_Value (\"Cost\", Cost);\n}", "Object getPrecision();", "Object getPrecision();", "public interface PrecisionProvider {\n\n /**\n * Returns the number of digits that can be calculated precisely with a given amount of iterations.\n *\n * @param iterations The number of iterations you want to calculate\n * @return The number of digits that will be calculated correctly\n */\n int getPrecision(int iterations);\n\n /**\n * Calculates the number of iterations required for the specified level of precision. More information:\n * https://mathoverflow.net/q/261162/146822\n *\n * @param precision The level of precision you want to calculate.\n * @return The number of iterations required\n */\n int getNumIterations(int precision);\n}", "public void setGivenNum(double input) {\n givenNum = input;\n }", "public BigDecimal getInputPrice() {\r\n return inputPrice;\r\n }", "public DecimalConstant( BigDecimal value, String format)\n {\n super( Type.NUMBER, value);\n setFormat( format);\n }", "public Writeln(Expression exp)\n {\n this.exp = exp;\n }", "public static ExpressionType construire(Element elemType) {\n ExpressionType expr = null;\n Element classeElem = (Element) elemType\n .getElementsByTagName(\"expression-class\").item(0);\n String classe = classeElem.getChildNodes().item(0).getNodeValue();\n Element motCleElem = (Element) elemType.getElementsByTagName(\"keyword\")\n .item(0);\n String motCleNom = motCleElem.getChildNodes().item(0).getNodeValue();\n ConstraintOperator keyWord = ConstraintOperator\n .shortcut(StringEscapeUtils.unescapeXml(motCleNom));\n if (classe.equals(ConfigExpressionType.class.getSimpleName())) {\n expr = new ConfigExpressionType(null, keyWord);\n } else if (classe.equals(MarginExpressionType.class.getSimpleName())) {\n Element pourElem = (Element) elemType.getElementsByTagName(\"margin\")\n .item(0);\n Double pourcent = Double\n .valueOf(pourElem.getChildNodes().item(0).getNodeValue());\n double pourcentage = 0.0;\n if (pourcent != null)\n pourcentage = pourcent.doubleValue();\n // on récupère l'unité\n Element unitElem = (Element) elemType.getElementsByTagName(\"unit\")\n .item(0);\n ValueUnit unite = ValueUnit\n .valueOf(unitElem.getChildNodes().item(0).getNodeValue());\n expr = new MarginExpressionType(null, keyWord, pourcentage, unite);\n } else if (classe.equals(ReductionExpressionType.class.getSimpleName())) {\n Element pourElem = (Element) elemType.getElementsByTagName(\"value\")\n .item(0);\n double pourcentage = Double\n .valueOf(pourElem.getChildNodes().item(0).getNodeValue());\n expr = new ReductionExpressionType(null, keyWord, pourcentage);\n } else {\n // on récupère la valeur\n Element valElem = (Element) elemType.getElementsByTagName(\"value\")\n .item(0);\n String valeurS = valElem.getChildNodes().item(0).getNodeValue();\n CharacterValueType type = getTypeSimple(valeurS);\n Object valeur = valeurS;\n if (type.equals(CharacterValueType.INT))\n valeur = Integer.valueOf(valeurS);\n else if (type.equals(CharacterValueType.REAL))\n valeur = Double.valueOf(valeurS);\n else if (type.equals(CharacterValueType.BOOLEAN))\n valeur = Boolean.valueOf(valeurS);\n // on récupère l'unité\n Element unitElem = (Element) elemType.getElementsByTagName(\"unit\")\n .item(0);\n ValueUnit unite = ValueUnit\n .valueOf(unitElem.getChildNodes().item(0).getNodeValue());\n if (classe.equals(ThreshExpressionType.class.getSimpleName()))\n expr = new ThreshExpressionType(null, keyWord, valeur, unite);\n else\n expr = new ControlExpressionType(null, keyWord, valeur, unite);\n }\n return expr;\n }", "public void setMyExp(MyExp me);", "abstract int estimationParameter1();", "public abstract double fromBasicUnit(double valueJTextInsert);", "public static void main(String[] args) {\n\t\t TextInput input = new NumericInput();\n\t\t input.add('1');\n\t\t input.add('a');\n\t\t input.add('0');\n\t\t System.out.println(input.getValue());\n\n}", "public Object processInput(Object input) {\n if (input instanceof String) {\n String str = (String) input;\n if (StringUtils.isNumeric(str))\n return new BigInteger(str);\n if (StringUtils.contains(str, \".\") && StringUtils.isNumeric(StringUtils.remove(str, '.'))) {\n return new BigDecimal(str);\n }\n }\n return input;\n }", "public void setProductQty (BigDecimal ProductQty)\n{\nif (ProductQty == null) throw new IllegalArgumentException (\"ProductQty is mandatory\");\nset_Value (\"ProductQty\", ProductQty);\n}", "@Test\n public void test_constructor_1(){\n \tSystem.out.println(\"Testing MeasuredRatioModel's MeasuredRatioModel(String Name,BigDecimal value,String uncertaintyType,BigDecimal oneSigma,boolean FracCorr,boolean OxideCorr)\"); \n //Tests if default values are correct\n MeasuredRatioModel instance=new MeasuredRatioModel(\"r207_339\",new BigDecimal(\"-12.34567890\"),\"PCT\",new BigDecimal(\".9876543210\"),false,true); \n String expResult=\"r207_339\";\n String result=instance.getName();\n assertEquals(expResult,result);\n expResult=\"PCT\";\n result=instance.getUncertaintyType();\n assertEquals(expResult,result);\n BigDecimal expectedResult=new BigDecimal(\"-12.34567890\");\n BigDecimal actualResult=instance.getValue();\n assertEquals(expectedResult,actualResult);\n actualResult=instance.getOneSigma();\n expectedResult=new BigDecimal(\".9876543210\");\n assertEquals(expectedResult,actualResult);\n assertEquals(false,instance.isFracCorr()); \n assertEquals(true,instance.isOxideCorr()); \n }", "@Test\r\n public void testSetPrecio() {\r\n int expResult = 3;\r\n articuloPrueba.setPrecio(expResult);\r\n assertEquals(expResult, articuloPrueba.getPrecio());\r\n }", "public Math2()\r\n {\r\n \r\n }", "double getActiveOperand();", "static BigInteger evaluate(String input) throws IllegalArgumentException{\n input = input.replace(\" \", \"\");\n\n //2. parsing.\n Matcher m = EXPRESSION_PATTERN.matcher(input);\n if(!m.matches()){//find는 일치하는 게 포함되면 T, matches()는 입력 전체가 일치해야 T.\n new IllegalArgumentException();\n }\n\n //3. extract unary, binary operators.\n bin_oper = m.group(3);\n una_oper1 = m.group(1).equals(\"\") ? \"+\" : m.group(1); //unary default = \"+\"\n una_oper2 = m.group(4).equals(\"\") ? \"+\" : m.group(4);\n\n //4. make operands instances.\n BigInteger num1 = new BigInteger(m.group(2));\n BigInteger num2 = new BigInteger(m.group(5));\n\n //5. binary oper == *, go to mul.\n if (bin_oper.equals(\"*\")) return num1.multiply(num2);\n\n //6. add/sub operator handle\n // By comparing binary and unary2, convert unary2 to \"+\", in order to simplify later calculation.\n if (una_oper2.equals(\"-\")){\n una_oper2 = \"+\";\n bin_oper = bin_oper.equals(\"+\") ? \"-\" : \"+\";\n }\n\n // if right input is not guaranteed, should do exception handling.\n return (una_oper1.equals(bin_oper)) ? num1.add(num2) : num1.subtract(num2);\n }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void setConvertedProductQty (BigDecimal ConvertedProductQty)\n{\nset_Value (\"ConvertedProductQty\", ConvertedProductQty);\n}", "public interface CalcModel {\n\t/**\n\t * Adds a listener to the model.\n\t * \n\t * @param l\n\t * listener to ad\n\t */\n\tvoid addCalcValueListener(CalcValueListener l);\n\n\t/**\n\t * Removes a listener from the model.\n\t * \n\t * @param l\n\t * listener to remove\n\t */\n\tvoid removeCalcValueListener(CalcValueListener l);\n\n\t/**\n\t * Returns a string representation of the current value in the calculator.\n\t * \n\t * @return string representation of the current value\n\t */\n\tString toString();\n\n\t/**\n\t * Returns a current value in calculator.\n\t * \n\t * @return current value in calculator\n\t */\n\tdouble getValue();\n\n\t/**\n\t * Sets the current value of the calculator to the given one.\n\t * \n\t * @param value\n\t * value to set\n\t */\n\tvoid setValue(double value);\n\n\t/**\n\t * Clears the current value in the calculator (sets it to 0).\n\t */\n\tvoid clear();\n\n\t/**\n\t * Clears the current value (sets it to 0), clears the active operand and clears\n\t * the pending binary operator.\n\t */\n\tvoid clearAll();\n\n\t/**\n\t * Swaps the sign of the current value in the calculator.\n\t */\n\tvoid swapSign();\n\n\t/**\n\t * Inserts a decimal point into the current number if one already doesn't exist.\n\t */\n\tvoid insertDecimalPoint();\n\n\t/**\n\t * Inserts a digit into the current number at the right most position.\n\t * \n\t * @param digit\n\t * new digit to be inserted\n\t */\n\tvoid insertDigit(int digit);\n\n\t/**\n\t * Checks if the active operand is set.\n\t * \n\t * @return true if active operand is set, false otherwise\n\t */\n\tboolean isActiveOperandSet();\n\n\t/**\n\t * Returns the active operand if it is set.\n\t * \n\t * @return active operand\n\t * @throws IllegalStateException\n\t * if active operand isn't set\n\t */\n\tdouble getActiveOperand();\n\n\t/**\n\t * Sets the active operand.\n\t * \n\t * @param activeOperand\n\t * a value to set as an active operand\n\t */\n\tvoid setActiveOperand(double activeOperand);\n\n\t/**\n\t * Clears the active operand.\n\t */\n\tvoid clearActiveOperand();\n\n\t/**\n\t * Returns pending binary operation.\n\t * \n\t * @return pending binary operation or null if it is not set\n\t */\n\tDoubleBinaryOperator getPendingBinaryOperation();\n\n\t/**\n\t * Sets pending binary operation.\n\t * \n\t * @param op\n\t * binary operator to set\n\t */\n\tvoid setPendingBinaryOperation(DoubleBinaryOperator op);\n}", "public Precision() {\n\t\tthis.threshold = 1.0;\n\t}", "private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }", "@Override\n public BigDecimal evaluate(TextMap args, String variableName) {\n return null;\n\n// return first.getBonus();\n }", "Expr createExpr();", "private Equation createEquation() throws MainApplicationException {\r\n\t\tEquation equation = new Equation(false,\r\n\t\t\t\t\"a+b=c\", \r\n\t\t\t\tfalse, \r\n\t\t\t\tnew Parametre(), \r\n\t\t\t\t\"Insérer Propriété\",\r\n\t\t\t\t\"Insérer commentaire\");\r\n\t\tequation.setIsModifiable(true);\r\n\t\treturn equation;\r\n\t}", "public void setPriceLimitEntered (BigDecimal PriceLimitEntered);", "public void ee_parameter(Double ee_parameter) {\n }", "public ParamShoppingCartTest(int precio1, int precio2) {\n \n this.precio1 = precio1;\n this.precio2 = precio2; \n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\t\t\t\tansStri=\"\"+ans;\r\n\r\n\t\t\t\tdfltStri=\"\";\r\n\t\t\t\tdflt=0;\r\n\r\n\t\t\t\toperator='*';\r\n\t\t\t\ttf2.setText(\"X\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}", "public ProductionPower(int points, NumberOfResources outputRes, NumberOfResources inputRes, int ofYourChoiceInput, int ofYourChoiceOutput){\n if(ofYourChoiceInput<0 || ofYourChoiceOutput<0 || points<0)\n throw new ArithmeticException();\n this.pointsFaithOut =points;\n this.outputRes=outputRes;\n this.inputRes=inputRes;\n this.ofYourChoiceInput = ofYourChoiceInput;\n this.ofYourChoiceOutput = ofYourChoiceOutput;\n }", "INPUT createINPUT();", "public void setPriceStd (BigDecimal PriceStd);", "public void setQtyEntered (BigDecimal QtyEntered);", "private static void getExpression()\r\n {\r\n System.out.print(\"Please enter an equation you want changed to postfix and prefix: \");\r\n infix_expression = scanner.nextLine();\r\n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public Expression(IExpressionPart expressionPart)\r\n\t{\r\n\t\tthis.expressionPart = expressionPart;\r\n\t}", "private void operation(char operator){\n if(initialised == false){\n calc.setNum1(Double.parseDouble(txtBox.getText()));\n operatorPressed = true;\n } else { \n calc.setNum2(Double.parseDouble(txtBox.getText()));\n Decimal();\n calc.setNum1(calc.getAnswer());\n txtBox.setText(Double.toString(calc.getAnswer()));\n }\n \n calc.setOperator(operator);\n\n operatorPressed = true;\n initialised = true;\n \n }", "public abstract BaseQuantityDt setValue(BigDecimal theValue);", "@Test\n public void test01(){\n Object result = FelEngine.instance.eval(\"5000*12+7500\");\n System.out.println(result);\n }", "public void setShrinkQty (BigDecimal ShrinkQty)\n{\nset_Value (\"ShrinkQty\", ShrinkQty);\n}", "@Test (dataProvider= \"My data provider\")\r\n\tpublic void TestCalcParamitarized(String in1,String Op, String in2,String Expec){ //.... 1- Parameterized test method -Define method input parameters-\r\n\t\tCalc(in1, Op, in2);\r\n\t\tassertResult(Expec);\t\t\r\n\t}", "public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "public Theory(double n){\r\n\t\tthis.n= n;\r\n\t}", "public void setConvertedSplitQty (BigDecimal ConvertedSplitQty)\n{\nset_Value (\"ConvertedSplitQty\", ConvertedSplitQty);\n}", "@Override\n public float getPrecision() {\n return 0.09F;\n }", "private XMath()\n {\n \n }", "abstract Valuable createMoney(double value);", "private ExpectedApproximation(int param) {\r\n this(Double.MIN_VALUE, param, Double.MAX_VALUE);\r\n }", "@Test\n public void testCalculerValeurLot() {\n double superficie = 456.0;\n double prixMin = 4.32;\n double expResult = 1969.95;\n double result = CalculAgricole.calculerValeurLot(superficie, prixMin);\n assertEquals(\"Montant pour la Valeur du Lot n'était pas correct.\", expResult, result, 0);\n }", "Exp\ngetExp1();", "public void setConvertedShrinkQty (BigDecimal ConvertedShrinkQty)\n{\nset_Value (\"ConvertedShrinkQty\", ConvertedShrinkQty);\n}", "QuoteCoefficient createQuoteCoefficient();", "public void deleteExpression(){\n\n if(currentExp.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n currentExp = \"\";\n calculationResult.onExpressionChange(currentExp,true);\n calculationResult.onExpressionChangeResult(\"\",true);\n\n }", "@PostMapping(value= \"/expression\")\n\tpublic String save(final@RequestBody @Valid MathExpression exp){\n\t\tservice.save(exp);\n\t\topratorService.updateOpratorTable(exp);\n\t\treturn service.calulateExp(exp);\n\t}", "static void multiplier() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 * nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" * \" + nb2 + \" = \" + resultat);\n\t}", "public Funcionario(String nome, double salario){//construtor\nthis.nome=nome;\nthis.salario=salario;\n\n}", "private AvgExpression() {\n }", "int getPrecision();", "int getPrecision();", "int getPrecision();", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "@Test\n public void MyTest() {\n System.out.println(\"Parameterized Number is : \" + inputNumber);\n System.out.println(\"Expected Result is : \" + expectedResult);\n }", "public Parameter multiplyParameter(Parameter otherPram);", "public CalculatorUtil(){\n value = \"\";\n decimalUsed = false;\n arr = new String[20];\n tail = 0;\n }", "Exp\ngetExp2();", "@Test\r\n public void testGetPrecio() {\r\n int expResult = 2;\r\n articuloPrueba.setPrecio(expResult);\r\n int result = articuloPrueba.getPrecio();\r\n assertEquals(expResult, result);\r\n }", "public void setSplitQty (BigDecimal SplitQty)\n{\nif (SplitQty == null) throw new IllegalArgumentException (\"SplitQty is mandatory\");\nset_Value (\"SplitQty\", SplitQty);\n}", "public Expression() {\r\n\t\ttext = new StringBuffer();\r\n\t\txttext = new StringBuffer();\r\n\t}" ]
[ "0.5684102", "0.5635427", "0.56346536", "0.56038404", "0.5541541", "0.5441167", "0.5396418", "0.5308689", "0.52808774", "0.5251718", "0.5241584", "0.52211237", "0.5216573", "0.51963615", "0.51562274", "0.5148661", "0.51441914", "0.5134743", "0.5124382", "0.5120835", "0.5120451", "0.511481", "0.5089788", "0.50852305", "0.5079439", "0.5069112", "0.5034885", "0.50322336", "0.5031728", "0.5010935", "0.5010935", "0.5006651", "0.49938938", "0.49843678", "0.49765047", "0.49718997", "0.49647048", "0.4961345", "0.49513665", "0.4949086", "0.49402055", "0.49211723", "0.49198264", "0.4918038", "0.49109972", "0.49101523", "0.4908472", "0.49004477", "0.48997885", "0.4889695", "0.48846436", "0.48822147", "0.48763087", "0.487624", "0.48724505", "0.48643488", "0.48494434", "0.48478335", "0.48440832", "0.48366967", "0.4832087", "0.48250493", "0.48233408", "0.48122406", "0.48118392", "0.48102036", "0.4807116", "0.4802436", "0.48017955", "0.47935355", "0.47923273", "0.4782894", "0.47793043", "0.4776164", "0.4774521", "0.47743157", "0.47723144", "0.47710466", "0.47663164", "0.47661704", "0.47655764", "0.47588086", "0.47587645", "0.47551152", "0.47489315", "0.47485566", "0.47479615", "0.47439528", "0.47433224", "0.47418717", "0.47418717", "0.47418717", "0.47406018", "0.4740423", "0.4738138", "0.4732277", "0.47306898", "0.47288972", "0.47287065", "0.4725937" ]
0.6302723
0
pemanggilan web service dengan menggunakan library Volley (POST)
public void callVolley(JSONObject obj){ RequestQueue queue = Volley.newRequestQueue(mContext); JSONObject obj1 = obj; //1. URL dari BASE_URL BASE_URL = BASE_URL+obj1.toString(); //2. input = parameter //3. response listener : panggil processResult((response listener dijalankan di UI Thread) JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, BASE_URL, obj1, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { processResult(response.toString()); Log.d("RESPONSE", response.toString()); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError volleyError) { Log.d("RESPONSE", "That didn't work!"); } }); queue.add(request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}", "@RequiresApi(api = Build.VERSION_CODES.O)\n private void sendDataToWebServiceADI_Register() {\n pro.setTitle(\"جاري عملية التسجيل\");\n pro.show();\n // String url=\"https://712051643.000webhostapp.com/connection.php\"; https://investigatory-boile.000webhostapp.com/log.php\n String url=\"https://investigatory-boile.000webhostapp.com/log.php\";\n System.out.println(\"1111111111111111111111111111111111111111111111\");\n\n\n StringRequest request=new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n pro.dismiss();\n\n System.out.println(\"_________________IN REspons_______________________\"+response);\n JSONObject jsonObject = null;\n try {\n jsonObject = new JSONObject(response);\n\n JSONArray result = jsonObject.getJSONArray(\"result\");\n\n if (result.getString(0).equals(\"1\"))\n {\n // StyleableToast.makeText(create_account.this,result.getString(1), Toast.LENGTH_LONG, R.style.Eror_net).show();\n Toast.makeText(create_account.this,result.getString(1),Toast.LENGTH_LONG).show();\n Intent intent=new Intent(create_account.this,MainActivity.class);\n startActivity(intent);\n\n }\n else {\n // StyleableToast.makeText(create_account.this,result.getString(1), Toast.LENGTH_LONG, R.style.Eror_connection).show();\n\n Toast.makeText(create_account.this,result.getString(1),Toast.LENGTH_LONG).show();\n\n\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n } }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n pro.dismiss();\n Toast.makeText(create_account.this,\"eroor respones\",Toast.LENGTH_LONG).show();\n\n System.out.println(\"_______________________ERROR______________________\"+error);\n }\n\n\n }\n )\n\n {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> parems=new HashMap<String, String>();\n\n parems.put(\"f_name\", txt_fname.getText().toString());\n parems.put(\"l_name\", txt_lname.getText().toString());\n parems.put(\"u_tell\", txt_phne.getText().toString());\n parems.put(\"u_email\", txt_email.getText().toString());\n parems.put(\"u_pass\", txt_pass1.getText().toString());\n parems.put(\"username\", txt_username.getText().toString());\n\n parems.put(\"op\",\"reg\");\n\n\n return parems;\n }\n };\n\n request.setRetryPolicy(new RetryPolicy() {\n @Override\n public int getCurrentTimeout() {\n return 30000;\n }\n\n @Override\n public int getCurrentRetryCount() {\n return 30000;\n }\n\n @Override\n public void retry(VolleyError error) throws VolleyError {\n\n }\n });\n\n\n RequestQueue requestQueue= Volley.newRequestQueue(this);\n requestQueue.add(request);\n }", "public static void insertarGestoTerrible(Context context, int idNino, int idalimento) {\n String url = \"http://161.35.14.188/Persuhabit/GestoTerrible\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"idalimento\", idalimento);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "public static void insertarTiempoAplicacion(Context context, int idusu, String duracion) {\n String url = \"http://161.35.14.188/Persuhabit/tiempoaplicacion\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idusu\", idusu);\n params.put(\"duracion\", duracion);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "public static void insertarRegistroNuevo(Context context, int idNino, String fechar) {\n String url = \"http://161.35.14.188/Persuhabit/registro\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"fechar\", fechar);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "public static void insertarGestoBien(Context context, int idNino, int idalimento) {\n String url = \"http://161.35.14.188/Persuhabit/GestoBien\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"idalimento\", idalimento);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "public static void insertarVioNotificacion(Context context, int idusu) {\n String url = \"http://161.35.14.188/Persuhabit/VioNotificacion\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idusu\", idusu);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "private void erweimaHttpPost() {\n\t\tHttpUtils httpUtils = new HttpUtils();\n\t\tUtils utils = new Utils();\n\t\tString[] verstring = utils.getVersionInfo(getActivity());\n\t\tRequestParams params = new RequestParams();\n\t\tparams.addHeader(\"ccq\", utils.getSystemVersion()+\",\"+ verstring[0]+\",\"+verstring[2]);\n\t\tparams.addBodyParameter(\"token\",\n\t\t\t\tnew DButil().gettoken(getActivity()));\n\t\tparams.addBodyParameter(\"member_id\",\n\t\t\t\tnew DButil().getMember_id(getActivity()));\n\t\thttpUtils.send(HttpMethod.POST, JiekouUtils.TUIGUANGERWEIMA, params,\n\t\t\t\tnew RequestCallBack<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n public void onClick(View v) {\n String url = \"https://jsonplaceholder.typicode.com/posts\";\n\n //****** SE CREA UNA SOLICITUD DE COLA DONDE SE LE MANDA EL MÉTODO \"POST\", LA URL Y SE CREAN LOS EVENTOS \"RESPONSE\" Y \"ON ERROR RESPONSE\" ******//\n\n StringRequest requestCrearPost = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //****** SI LA SOLICITUD SE COMPLETA CORRECTAMENTE Y EL RESPONSE ES \"OK\", SE MUESTRA UN TOAST DE CONFIRMACIÓN Y SE RE-CREA LA ACTIVIDAD******//\n Toast.makeText(PostActivity.this, \"POST CREADO CORRECTAMENTE\", Toast.LENGTH_SHORT).show();\n recreate();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n //****** SI LA SOLICITU NO SE COMPLETA CORRECTAMENTE, SE MUESTRA UN TOAST CON EL ERROR ******//\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }) {\n\n //****** SE MAPEAN Y SE RETORNAN LOS PARÁMETROS MANDÁNDOLE EL NOMBRE (COMO LO PIDE EL SERVIDOR) Y EL VALOR ******//\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", txtTituloPost.getText().toString());\n params.put(\"body\", txtContenidoPost.getText().toString());\n params.put(\"userId\", MainActivity.idUsuario);\n\n return params;\n }\n };\n //****** SE AGREGA A LA COLA DE SOLICITUDES LA SOLICITUD \"requestCrearPost\" ******//\n queue.add(requestCrearPost);\n }", "private void enviarJson(String user, String pass) {\n String API = DOMINIO + \"usuarios/login/\";\n Log.v(\"test\",API);\n\n //String API = \"http://192.168.43.157:8001/usuarios/login/\";\n HashMap<String, String> hm = new HashMap();\n hm.put(\"username\", user);\n hm.put(\"password\", pass);\n JSONObject jsonObject = new JSONObject(hm);\n\n\n JsonObjectRequest peticionJSON = new JsonObjectRequest(Request.Method.POST, API, jsonObject, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n procesarLogin(response);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n // Log.v(\"test\", response.toString());\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"error1\",error.toString());\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_LONG).show();\n }\n\n }) {\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n final HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Access-Control-Allow-Origin\", \"*\");\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }\n\n @Override\n public String getBodyContentType() {\n return super.getBodyContentType();\n }\n };\n\n RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());\n requestQueue.add(peticionJSON);\n }", "public static void sendPostWebservice(Activity activity, String url, Response.Listener responseListener, Response.ErrorListener errorListener, final Map<String, String> params) {\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, responseListener, errorListener) {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n return params;\n }\n\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> paramh = new HashMap<String, String>();\n paramh.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n return paramh;\n }\n };\n// Add the request to the RequestQueue.\n handler.addToRequestQueue(stringRequest);\n }", "public static void insertarGestoGenial(Context context, int idNino, int idalimento) {\n String url = \"http://161.35.14.188/Persuhabit/GestoGenial\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"idalimento\", idalimento);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "public void tambahKost(Kost kostt){\n RequestQueue queue = Volley.newRequestQueue(this);\n\n final ProgressDialog progressDialog;\n progressDialog = new ProgressDialog(this);\n progressDialog.setMessage(\"loading....\");\n progressDialog.setTitle(\"Menambahkan Data Kost\");\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.show();\n\n //Memulai membuat permintaan request menghapus data ke jaringan\n StringRequest stringRequest = new StringRequest(POST, KostAPI.URL_ADD, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //Disini bagian jika response jaringan berhasil tidak terdapat ganguan/error\n progressDialog.dismiss();\n try {\n //Mengubah response string menjadi object\n JSONObject obj = new JSONObject(response);\n //obj.getString(\"message\") digunakan untuk mengambil pesan status dari response\n finish();\n\n\n //obj.getString(\"message\") digunakan untuk mengambil pesan message dari response\n Toast.makeText(AddKostActivity.this, obj.getString(\"message\"), Toast.LENGTH_SHORT).show();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //Disini bagian jika response jaringan terdapat ganguan/error\n progressDialog.dismiss();\n Toast.makeText(AddKostActivity.this, error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }){\n @Override\n protected Map<String, String> getParams()\n {\n /*\n Disini adalah proses memasukan/mengirimkan parameter key dengan data value,\n dan nama key nya harus sesuai dengan parameter key yang diminta oleh jaringan\n API.\n */\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"nama_kost\", kostt.getNama_kost());\n params.put(\"emailPemilik\", emailFB);\n params.put(\"tipe_kost\", kostt.getTipe_kost());\n params.put(\"alamat_kost\", kostt.getAlamat_kost());\n params.put(\"luas_kost\", String.valueOf(kostt.getLuas_kost()));\n params.put(\"sisa_kamar\", String.valueOf(kostt.getSisa_kamar()));\n if(cek==1) {\n params.put(\"image\", kostt.getImageUrl());\n System.out.println(\"image adalah \"+kostt.getImageUrl());\n }else {\n params.put(\"image\", \"kosong\");\n }\n\n\n return params;\n }\n };\n\n //Disini proses penambahan request yang sudah kita buat ke reuest queue yang sudah dideklarasi\n queue.add(stringRequest);\n }", "private void doPost(String orden, String comentario, String url){\n Map<String, String> params = new HashMap<String, String>();\n //PREPARE BODY FOR POST\n params.put(\"token\", usuario.getmToken());\n params.put(\"idPedido\", orden);\n params.put(\"idUsuario\", Integer.toString(usuario.getmIdUsuario()));\n params.put(\"descripcion\", comentario);\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, url,\n new JSONObject(params), new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n if (response.getString(\"status\").equals(\"200\")){\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_succes), Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"Is 200: \" + response);\n } else {\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_error_genericpost), Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"Not 200: \" + response);\n }\n } catch (JSONException e) {\n Log.d(TAG, \"onResponse: Error en parsing: \" + e);\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"onErrorResponse: Error de conexión\");\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_error_connection), Toast.LENGTH_LONG).show();\n }\n });\n //DO HTTP REQUEST\n VolleyController.getmInstance(getApplicationContext()).addToRequestQueque(request);\n }", "public void addTicket(){\n RequestQueue rq = Volley.newRequestQueue(getApplicationContext());\n\n StringRequest request = new StringRequest(Request.Method.POST, ticketURL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //display\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error)\n {\n error.printStackTrace();\n }\n }) {\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\";\n }\n\n @Override\n public byte[] getBody() {\n Gson gson = new Gson();\n String json = gson.toJson(1);\n\n try{ return (json).getBytes(\"utf-8\"); }\n catch (UnsupportedEncodingException e) { return null; }\n }\n };\n rq.add(request);\n }", "private void sendRequest(String URL) {\n RequestQueue requestQueue = Volley.newRequestQueue(context);\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL, new JSONObject(headers)\n , new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.e(\"sendRequest Response\", response.toString());\n try {\n //temp\n JSONObject j = new JSONObject();\n j = response;\n Log.e(\"j\",j.toString());\n\n //responseJSONObject = new JSONObject(response);\n serverResponse.saveResponse(response);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Response_Error\",databaseURL + \" : \" + error.toString());\n }\n });\n\n requestQueue.add(jsonObjectRequest);\n }", "public void okhttpClick(View view) {\n\n\n String url = \"https://gank.io/api/add2gank\";\n RequestBody requestBody = new MultipartRequestBody()\n .addFormDataPart(\"pageNo\", \"1\")\n .addFormDataPart(\"pageSize\", \"50\")\n .addFormDataPart(\"platform\", \"android\");\n final Request request = new Request.Builder()\n .url(url)\n .tag(this)\n .post(requestBody)\n .build();\n\n OkHttpClient okHttpClient = new OkHttpClient();\n\n okHttpClient.newCall(request).enqueue(new Callback() {\n\n @Override\n public void onFailure(Call call, Exception e) {\n e.printStackTrace();\n Log.e(\"dengzi\", \"出错了\");\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n String result = response.string();\n Log.e(\"dengzi\", result);\n }\n });\n }", "private void LoginUsuario(){\n String url=maya.buscarUrlServidor()+\"/app/servicesREST/ws_login.php\";\n Log.d(\"URL Sesion \", url);\n Log.d(\"SESION \", _etNombreUsuario.getEditText().getText().toString().trim()+\" / \"+_etcontrasenia.getEditText().getText().toString().trim());\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n try {\n Log.e(\"JSON Usuario\",response);\n JSONObject jsonUsuario = new JSONObject(response);\n //maya.Toast(\"tam \"+jsonUsuario.length());\n if(jsonUsuario.length() > 0){\n //Preguntamos que usuario es el logeado\n switch (Integer.parseInt(jsonUsuario.optString(\"id_rol\"))){\n case 2:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent ma = new Intent(getApplicationContext(),MenuPrincipalActivity.class);\n startActivity(ma);\n break;\n case 3:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent mat = new Intent(getApplicationContext(),MenuTutorActivity.class);\n startActivity(mat);\n break;\n case 4:\n manejaBD = new HandlerBasedeDatos(getApplicationContext());\n manejaBD.addUsuario(Integer.parseInt(jsonUsuario.optString(\"id_user\")),jsonUsuario.optString(\"id_rol\"),jsonUsuario.optString(\"rol\"),jsonUsuario.optString(\"id_objeto\"),jsonUsuario.optString(\"nombre\")+\" \"+jsonUsuario.optString(\"ap_paterno\")+\" \"+jsonUsuario.optString(\"ap_materno\"),\"https://cdn.pixabay.com/photo/2016/08/08/09/17/avatar-1577909_960_720.png\",_etNombreUsuario.getEditText().getText().toString().trim(),_etcontrasenia.getEditText().getText().toString().trim());\n Intent me = new Intent(getApplicationContext(),MenuEstudianteActivity.class);\n startActivity(me);\n break;\n }\n finish();\n }else{\n maya.Toast(\"Comuniquese con su administrador :(\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n maya.toastError(\"No existe respuesta correcta a la peticion\");\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"URLLogin \", error+\"\");\n //maya.Toast(error+\"\");\n maya.toastInfo(\"No existe respuesta para continuar\");\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params = new HashMap<String, String>();\n params.put(\"user\",_etNombreUsuario.getEditText().getText().toString().trim());\n params.put(\"password\",_etcontrasenia.getEditText().getText().toString().trim());\n params.put(\"token\", Variables.TOKEN);\n //params.put(\"token\", \"LUIS MIGUEL\");\n return params;\n }\n };\n requestQueue.add(stringRequest);\n }", "public void sendAddCity(final Context context,\n final String name,\n final String country,\n final String population,\n final String category,\n final TextView results){\n RequestQueue queue = Volley.newRequestQueue(this);\n String addr = \"http://35.160.5.169/user/city\";\n\n final JSONObject jsonRequest = new JSONObject();\n try {\n jsonRequest.put(\"name\", name);\n jsonRequest.put(\"country\", country);\n jsonRequest.put(\"population\", population);\n jsonRequest.put(\"category\", category);\n\n } catch (JSONException e){\n results.setText(\"Error: \" + e);\n return;\n }\n\n // Request a string response from the provided URL.\n StringRequest stringRequest = new StringRequest(Request.Method.POST, addr,\n new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n results.setTextColor(Color.GREEN);\n results.setText( \"City added successfully!\" );\n Intent intent = new Intent(context, ViewCitiesActivity.class);\n startActivity( intent );\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n results.setTextColor(Color.RED);\n results.setText(\"Error: \" + error.toString());\n }\n }){\n @Override\n public byte[] getBody(){\n return jsonRequest.toString().getBytes();\n }\n\n @Override\n public String getBodyContentType(){\n return \"application/json\";\n }\n\n // send our cookie along with the volley request\n @Override\n public Map<String, String> getHeaders(){\n AndroidApplication app = (AndroidApplication)getApplication();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Accept\", \"application/json\" );\n headers.put(\"Cookie\", \"session-cookie=\" + app.getCookie() );\n return headers;\n }\n };\n\n // add our post request to the volley queue\n queue.add(stringRequest);\n\n }", "void doCountryList()\n {\n final ProgressDialog progressDialog2=new ProgressDialog(ChefEditKitchenPart2.this);\n progressDialog2.setMessage(\"loading...\");\n progressDialog2.show();\n progressDialog2.setCancelable(false);\n progressDialog2.setCanceledOnTouchOutside(false);\n String url;\n\n url =WebServiceURL.COUNTRY_LIST;\n\n StringRequest postRequest = new StringRequest(Request.Method.POST, url,\n new Response.Listener<String>()\n {\n @Override\n public void onResponse(String response) {\n parseCountry(response);\n if(progressDialog2!=null)\n progressDialog2.dismiss();\n Log.d(\"Response\", response);\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n if(progressDialog2!=null)\n progressDialog2.dismiss();\n System.out.println(\"Error==========\"+error);\n Toast.makeText(ChefEditKitchenPart2.this, \"Have a Network Error Please check Internet Connection.\", Toast.LENGTH_LONG).show();\n }\n }\n ){\n @Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"format\",\"json\");\n return params;\n }\n };\n // Adding request to volley request queue\n AppController.getInstance().addToRequestQueue(postRequest);\n AppController.getInstance().getRequestQueue().getCache().remove(url);\n AppController.getInstance().getRequestQueue().getCache().clear();\n }", "public void ceking(final String id_paket, final String id_imei, final String pass, final String nohps, final double harga, final String trxpass){\n StringRequest postRequest = new StringRequest(Request.Method.POST, LogConfig.url_beli,\n new Response.Listener<String>()\n {\n @Override\n public void onResponse(String response) {\n Log.d(\"Response\", response);\n try {\n JSONObject jo = new JSONObject(response);\n final android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(VGActivity.this);\n builder.setMessage(jo.getString(\"catatan\"))\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(@SuppressWarnings(\"unused\") final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n // ui = 0;\n//imgprov.setVisibility(View.GONE);\n// poinpulsa.setVisibility(View.GONE);\n }\n })\n ;\n final android.app.AlertDialog alert = builder.create();\n alert.show();\n\n if(jo.getString(\"sukses\").equals(\"true\")) {\n Intent intent = new Intent(RoosterConnectionService.SEND_MESSAGE);\n intent.putExtra(RoosterConnectionService.BUNDLE_MESSAGE_BODY, kode_kirim);\n intent.putExtra(RoosterConnectionService.BUNDLE_TO, \"h2h@nobita.harmonyb12.com\");\n sendBroadcast(intent);\n }\n saldo();\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n Toast.makeText(VGActivity.this, e.toString()+\"ceking\" , Toast.LENGTH_SHORT).show();\n }\nif(dialog.isShowing()){\n dialog.dismiss();\n}\n\n if(loadingawal.isShowing()){\n loadingawal.dismiss();\n }\n\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n // error\n Log.d(\"Error.Response\", error.toString() );\n Toast.makeText(VGActivity.this, \"Invalid Connection\" , Toast.LENGTH_SHORT).show();\n }\n }\n ) {\n @Override\n protected Map<String, String> getParams()\n { // Menambahkan parameters post\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_paket\", id_paket);\n params.put(\"id_imei\", id_imei);\n params.put(\"password\", b.md5(pass));\n params.put(\"nohp\", idpelanggan);\n params.put(\"kode\", kode);\n params.put(\"kode_rahasia\", secret_code);\n params.put(\"ket\", \"Pembelian Voucher Game\");\n params.put(\"harga\", String.valueOf(hslpoin));\n params.put(\"harga_jual\", harga_jual);\n params.put(\"harga_rupiah\", harga_rupiah);\n params.put(\"harga_beli\", harga_beli);\n params.put(\"trxpass\", b.md5(trxtx));\n params.put(\"counter\", String.valueOf(jumlah_akhir));\n\n return params;\n }\n };\n queue.add(postRequest);\n }", "private void sendJson(){\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n JSONObject jsonBodyObj = new JSONObject();\n String url = \"http://10.0.2.2:5000/user\";\n try{\n jsonBodyObj.put(\"key1\", encodedString);\n jsonBodyObj.put(\"key2\", courseslistid.get(spinnerCourses.getSelectedItemPosition()));\n\n }catch (JSONException e){\n e.printStackTrace();\n }\n final String requestBody = jsonBodyObj.toString();\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST,\n url, null, new Response.Listener<JSONObject>(){\n @Override public void onResponse(JSONObject response) {\n Log.i(\"Response\",String.valueOf(response));\n }\n }, new Response.ErrorListener() {\n @Override public void onErrorResponse(VolleyError error) {\n VolleyLog.e(\"Error: \", error.getMessage());\n }\n }){\n @Override public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }\n\n\n @Override public byte[] getBody() {\n try {\n return requestBody == null ? null : requestBody.getBytes(\"utf-8\");\n } catch (UnsupportedEncodingException uee) {\n VolleyLog.wtf(\"Unsupported Encoding while trying to get the bytes of %s using %s\",\n requestBody, \"utf-8\");\n return null;\n }\n }\n };\n\n requestQueue.add(jsonObjectRequest);\n Toast.makeText(getApplicationContext(), \"Yoklama Alma Başarılı!\", Toast.LENGTH_LONG).show();\n\n }", "public String makePostRequestSoDoGhe(String url){\n String result = null;\n HttpClient httpClient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(url);\n\n try {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"MaChuyen\", MaChuyen);\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n nameValuePairs.add(new BasicNameValuePair(\"Chuyen\", jsonObject.toString()));\n Log.d(\"JSON POST DATA\", \"mainToPost: \" + nameValuePairs.toString());\n httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs,\"UTF-8\"));\n //execute HttpPost request\n HttpResponse httpResponse = httpClient.execute(httpPost);\n InputStream inputStream = httpResponse.getEntity().getContent();\n InputStreamToString str = new InputStreamToString();\n result = str.getStringFromInputStream(inputStream);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return result;\n }", "public void loginc( String id1, String id2, final IViewCallback<JSONObject> call)\n{\n Log.d(\"payload run\",id1);\n Payload payload = new Payload();\n payload.add(\"user_name\",id1);\n payload.add(\"user_pass\",id2);\n\n Request request = RequestFactory.createRequest(\n HttpMethod.POST, \"http://stage.overboxd.com/index.php/loginapi/\", null, payload, null, 60000, null, null);\n\n if(request==null)\n {\n Log.d(\"request not going\",\"goo na\");\n }\n VolleyQueueUtils.getGeneralRequestQueue().add(new VolleyStringRequest(request, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n\n HttpResponse<JSONObject> httpResponse = new HttpResponse<>(\n new HttpResponseStatus(),\n new JSONObject(response)\n );\n\n\n\n\n notifyResponse(httpResponse, call);\n }\n\n catch (JSONException e) {\n //Toast.makeText(context,\"Msg\", Toast.LENGTH_LONG).show();\n\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n }));\n}", "public void postAPICall() {\n /**\n * String Request\n */\n\n JSONObject mJsonObjectRequest = null;\n try {\n mJsonObjectRequest = new JSONObject(parameters);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n JsonRequest<JSONArray> request = new JsonRequest<JSONArray>(Request.Method.POST,\n (AppConstants.APP_WEBSERVICE_API_URL + GlobalKeys.ORDER_STATUS_INFO).trim(),\n mJsonObjectRequest.toString(),\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray jsonArray) {\n System.out.println(jsonArray.toString());\n responseListener.onSuccessOfResponse(jsonArray.toString());\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n\n try {\n Response<JSONObject> errorResponse = Response.error(volleyError);\n String errorString = new String(errorResponse.error.networkResponse.data,\n HttpHeaderParser\n .parseCharset(errorResponse.error.networkResponse.headers));\n JSONObject errorJsonObj = new JSONObject(errorString);\n WebserviceAPIErrorHandler.getInstance()\n .VolleyErrorHandler(volleyError, mActivity);\n responseListener.onFailOfResponse(errorJsonObj);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }) {\n @Override\n protected Response<JSONArray> parseNetworkResponse(NetworkResponse networkResponse) {\n try {\n String jsonString = new String(networkResponse.data,\n HttpHeaderParser\n .parseCharset(networkResponse.headers));\n return Response.success(new JSONArray(jsonString),\n HttpHeaderParser\n .parseCacheHeaders(networkResponse));\n } catch (UnsupportedEncodingException e) {\n return Response.error(new ParseError(e));\n } catch (JSONException je) {\n return Response.error(new ParseError(je));\n }\n }\n\n\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(GlobalKeys.HEADER_KEY_CONTENT_TYPE,\n GlobalKeys.HEADER_VALUE_CONTENT_TYPE);\n params.put(GlobalKeys.ACCEPT_KEY_CONTENT_TYPE,\n GlobalKeys.HEADER_VALUE_CONTENT_TYPE);\n params.put(GlobalKeys.AUTHTOKEN, auth_token);\n params.put(GlobalKeys.USERID, userId);\n return params;\n }\n };\n\n\n // Adding request to request queue\n if (ParkingAppController.getInstance() != null) {\n ParkingAppController.getInstance().addToRequestQueue(\n request, GlobalKeys.ORDER_STATUS_INFO);\n }\n // set request time-out\n request.setRetryPolicy(new DefaultRetryPolicy(\n AppConstants.ONE_SECOND * 20, 0,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }", "private void cargardatos() {\n String link = \"http://192.168.43.30:8080/appLavanderia/subidadatos.php?\";\n\n //Toast.makeText(getApplicationContext(), \"1\", Toast.LENGTH_SHORT).show();\n respuesta = new StringRequest(Request.Method.POST, link, new Response.Listener<String>() {\n\n @Override //En caso que si se pudo hacer la conexion\n public void onResponse(String response) {\n if (response.equalsIgnoreCase(\"registra\")){\n Toast.makeText(getApplicationContext(), \"Registro Exitoso\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(getApplicationContext(), \"errorr\", Toast.LENGTH_SHORT).show();\n }\n //Toast.makeText(getApplicationContext(), \"2\", Toast.LENGTH_SHORT).show();\n\n }//En dado caso que no se pueda guardar\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"No \"+error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }){\n @Override //Contiene la informacion para enviar\n protected Map<String, String> getParams() throws AuthFailureError {\n\n String nombre = nombreimagen.getText().toString();\n String descripcion = descricpion.getText().toString();\n String fecha = fechaexp.getText().toString();\n String Foto = ConvertImagenTexto(imagenpro);\n\n //enviar los datos al servidor\n Map<String, String> datosparaenviar = new HashMap<>();\n datosparaenviar.put(\"Nombre\",nombre);\n datosparaenviar.put(\"DescripcionPromo\",descripcion);\n datosparaenviar.put(\"FechaPromo\",fecha);\n datosparaenviar.put(\"ImagenPromo\",Foto);\n return datosparaenviar;\n }\n };\n envio.add(respuesta);\n }", "public static void PonerMensajes_PersuasivosNuevo(Context context, String tipo, String msg) {\n String url = \"http://161.35.14.188/Persuhabit/MsgPersuasivo\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"tipo\", tipo);\n params.put(\"msg\", msg);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "public void cekvg(){\n StringRequest postRequest = new StringRequest(Request.Method.POST, LogConfig.url_cek_trx,\n new Response.Listener<String>()\n {\n @Override\n public void onResponse(String response) {\n Log.d(\"Response\", response);\n Log.d(\"Response\", response);\n JSONObject jo = null;\n try {\n jo = new JSONObject(response);\n if(jo.getString(\"sukses\").equals(\"false\")){\n final android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(VGActivity.this);\n builder.setMessage(jo.getString(\"catatan\"))\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(@SuppressWarnings(\"unused\") final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n // ui = 0;\n//imgprov.setVisibility(View.GONE);\n// poinpulsa.setVisibility(View.GONE);\n }\n })\n ;\n final android.app.AlertDialog alert = builder.create();\n alert.show();\n\n if(dialog.isShowing()){\n dialog.dismiss();\n }\n\n if(loadingawal.isShowing()){\n loadingawal.dismiss();\n }\n }else{\n// Toast.makeText(getBaseContext(), response, Toast.LENGTH_SHORT).show();\n String lengkap = \"\";\n int jumlah = Integer.parseInt(response);\n\n jumlah_akhir = jumlah+1;\n kode_kirim = jumlah_akhir+\".\"+kodep+\".\"+idpelanggan+\".6\";\n\n\n\n\n ceking(idpaket ,id_imei,pass, \"\" , hslpoin, trxtx);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n String lengkap = \"\";\n int jumlah = Integer.parseInt(response);\n\n jumlah_akhir = jumlah+1;\n kode_kirim = jumlah_akhir+\".\"+kodep+\".\"+idpelanggan+\".6\";\n\n\n\n\n ceking(idpaket ,id_imei,pass, \"\" , hslpoin, trxtx);\n }\n\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n // error\n Log.d(\"Error.Response\", error.toString() );\n Toast.makeText(VGActivity.this, \"Invalid Connection\" , Toast.LENGTH_SHORT).show();\n }\n }\n ) {\n @Override\n protected Map<String, String> getParams()\n { // Menambahkan parameters post\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"id_imei\", id_imei);\n params.put(\"password\", b.md5(pass));\n params.put(\"trxpass\", b.md5(trxtx));\n params.put(\"kode_rahasia\", secret_code);\n params.put(\"kode\", kode);\n\n return params;\n }\n };\n queue.add(postRequest);\n\n }", "private void postData() {\n\n\t\tString result = \"\";\n\t\ttry {\n\t\t\tLog.d(\"LOgg\", \"INpost\");\n\t\t\tJSONObject json = new JSONObject();\n\t\t\tjson.put(\"firstname\", fname);\n\t\t\tjson.put(\"lastname\", lname);\n\t\t\tjson.put(\"phone\", contactno);\n\t\t\tjson.put(\"password\", password);\n\t\t\tjson.put(\"email\", email);\n\t\t\tjson.put(\"longitude\", longitude);\n\t\t\tjson.put(\"latitude\", latitude);\n\n\t\t\tHttpParams httpParams = new BasicHttpParams();\n\t\t\tHttpConnectionParams.setConnectionTimeout(httpParams, 1000000);\n\t\t\tHttpConnectionParams.setSoTimeout(httpParams, 1000000);\n\t\t\tHttpClient client = new DefaultHttpClient(httpParams);\n\t\t\tString link = StaticData.SERVER_URL;\n\t\t\tString url = link + \"register.php\";\n\n\t\t\tHttpPost request = new HttpPost(url);\n\t\t\trequest.setEntity(new ByteArrayEntity(json.toString().getBytes(\n\t\t\t\t\t\"UTF8\")));\n\n\t\t\trequest.setHeader(\"Accept\", \"application/json\");\n\t\t\trequest.setHeader(\"Content-type\", \"application/json\");\n\n\t\t\trequest.setHeader(\"json\", json.toString());\n\n\t\t\tHttpResponse response = client.execute(request);\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\t// If the response does not enclose an entity, there is no need\n\n\t\t\tif (entity != null) {\n\t\t\t\tInputStream instream = entity.getContent();\n\n\t\t\t\tresult = RestClient.convertStreamToString(instream);\n\t\t\t\tLog.i(\"Read from server\", result);\n\t\t\t}\n\n\t\t} catch (Exception t) {\n\t\t\tLog.e(\"postData\", t.toString());\n\t\t}\n\n\t\ttry {\n\t\t\tLog.i(\"result\", result);\n\t\t\tResponse_code = result;\n\t\t\tLog.e(\"Result....\", \"....\" + Response_code);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tLog.e(\"Result\", \"....\" + e.toString());\n\t\t}\n\n\t\ttry {\n\t\t\tjobj = new JSONObject(Response_code);\n\t\t\tlogin_result = jobj.getString(\"ResponseCode\");\n\t\t\t// Response_msg = jobj.getString(\"ResponseMsg\");\n\t\t\tLog.e(\"Result\", \"....\" + login_result);\n\t\t\t// JSONObject jobj1 = new JSONObject(\"userdetail\");\n\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.w(\"JSONException\", e.toString());\n\t\t} catch (NullPointerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.w(\"null\", e.toString());\n\t\t}\n\n\t}", "private void cargarWebService() {\n String iddoc = \"20181\";\n String url_lh = Globals.url;\n\n //String url = \"http://192.168.0.13/proyecto_dconfo/wsJSONConsultarListaCursosDocente.php?iddocente=\" + txtiddoc.getText().toString();\n\n // String url = \"http://\"+url_lh+\"/proyecto_dconfo/wsJSONConsultarListaCursosDocente.php?iddocente=\" + txtiddoc.getText().toString();\n String url = \"http://\" + url_lh + \"/proyecto_dconfo_v1/wsJSON1ConsultarListaImagenes.php\";\n // http://localhost/proyecto_dconfo/\n///wsJSONConsultarEstudiante.php?documento=\" + edt_codigo.getText().toString();\n url = url.replace(\" \", \"%20\");\n //hace el llamado a la url\n jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, this, this);\n\n final int MY_DEFAULT_TIMEOUT = 15000;\n jsonObjectRequest.setRetryPolicy(new DefaultRetryPolicy(\n MY_DEFAULT_TIMEOUT,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n\n // request.add(jsonObjectRequest);\n VolleySingleton.getIntanciaVolley(getApplicationContext()).addToRequestQueue(jsonObjectRequest);//p21\n //Toast.makeText(getApplicationContext(), \"web service 1111\", Toast.LENGTH_LONG).show();\n }", "private void postRequest(String my_id, int owner_id, Boolean accept) {\n ApiInterface apiService = ApiClient.getRetrofitClient().create(ApiInterface.class);\n Call<Request> call = apiService.getRequest(my_id, owner_id, accept);\n // progressDoalog.show();\n loadingDialog = new LoadingDialog((Activity) context);\n alert = new Alert((Activity) context);\n loadingDialog.startLoadingDialog();\n call.enqueue(new Callback<Request>() {\n @Override\n public void onResponse(Call<Request> call, Response<Request> response) {\n\n if (response.isSuccessful()) {\n loadingDialog.dismissDialog();\n if (response.body().equals(true))\n // progressDoalog.dismiss();\n alert.showAlertSuccess(\"تم قبول الطلب\");\n else\n alert.showAlertSuccess(\"تم رفض الطلب\");\n //Toast.makeText(context, \"don\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Request> call, Throwable t) {\n // progressDoalog.dismiss();\n loadingDialog.dismissDialog();\n // Toast.makeText(context, \"خطاء في النظام الخارجي\", Toast.LENGTH_SHORT).show();\n alert.showAlertError(\"خطاء في النظام الخارجي\");\n\n }\n });\n }", "public void bringHeadData(String url, final String id, final VolleyResponseListener volleyResponseListener){\r\n try {\r\n final RequestQueue queue = Volley.newRequestQueue(mContext);\r\n\r\n StringRequest req = new StringRequest(Request.Method.POST, url,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String s) {\r\n volleyResponseListener.onSuccess(s);\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError volleyError) {\r\n volleyResponseListener.onError(volleyError);\r\n Log.v(\"see error responce\",volleyError.toString());\r\n }\r\n })\r\n\r\n {\r\n\r\n\r\n @Override\r\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\r\n Log.v(\"see error responce\",response.toString());\r\n return super.parseNetworkResponse(response);\r\n\r\n\r\n }\r\n\r\n @Override\r\n protected Map<String, String> getParams(){\r\n HashMap<String, String> params = new HashMap<String, String>();\r\n\r\n String workerName,workerContact,workerCnic,workerFatherName,WorkerJobStatus;\r\n int workerTeam;\r\n\r\n http://alefcabs.com/dev/apis/pax_login.php?pax_mobile_number=0303&pax_password=alifcabs\r\n params.put(\"id\",id);\r\n\r\n\r\n\r\n\r\n\r\n return params;\r\n }\r\n };\r\n queue.add(req);\r\n\r\n\r\n\r\n }catch (Exception e){\r\n Log.v(\"see error responce\",e.toString());\r\n\r\n }\r\n\r\n }", "private void makeSampleHttpRequest(String url) {\r\n\r\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String response) {\r\n texto_a_imprimir = response.toString();\r\n //showToast(texto_a_imprimir);\r\n vistaprevia.setText(texto_a_imprimir);\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n // Handle your error types accordingly.For Timeout & No connection error, you can show 'retry' button.\r\n // For AuthFailure, you can re login with user credentials.\r\n // For ClientError, 400 & 401, Errors happening on client side when sending api request.\r\n // In this case you can check how client is forming the api and debug accordingly.\r\n // For ServerError 5xx, you can do retry or handle accordingly.\r\n if( error instanceof NetworkError) {\r\n } else if( error instanceof ClientError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof ServerError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof AuthFailureError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof ParseError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof NoConnectionError) {\r\n texto_a_imprimir = error.toString();\r\n } else if( error instanceof TimeoutError) {\r\n texto_a_imprimir = error.toString();\r\n }\r\n showToast(error.getMessage());\r\n }\r\n });\r\n /*\r\n //Set a retry policy in case of SocketTimeout & ConnectionTimeout Exceptions. Volley does retry for you if you have specified the policy.\r\n jsonObjRequest.setRetryPolicy(new DefaultRetryPolicy(5000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\r\n jsonObjRequest.setTag(TAG_REQUEST);\r\n mVolleyQueue.add(jsonObjRequest);\r\n */\r\n stringRequest.setShouldCache(true);\r\n stringRequest.setTag(TAG_REQUEST);\r\n mVolleyQueue.add(stringRequest);\r\n }", "private void checkKonsultasi(final String pasien) {\n String tag_string_req = \"req_lihatKonsultasi\";\n System.out.println(pasien);\n pDialog.setMessage(\"TUNGGU BEBERAPA SAAT...\");\n showDialog();\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_lihatKosultasi, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Konsultasi Response: \" + response.toString());\n hideDialog();\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n // user successfully logged in\n\n // Now store the user in SQLite\n JSONObject konsultasi = jObj.getJSONObject(\"konsultasi\");\n String idDokter = konsultasi.getString(\"namaDokter\");\n String namaPenyakit = konsultasi.getString(\"namaPenyakit\");\n JSONArray saranList = konsultasi.getJSONArray(\"saranDokter\");\n String tanggal = konsultasi.getString(\"tanggal\");\n String idKon= konsultasi.getString(\"idKonsultasi\");\n\n /*\n JSONObject obat = jObj.getJSONObject(\"obat\");\n String idObat = obat.getString(\"idObat\");\n String idKonsultasi = obat.getString(\"idKonsultasi\");\n String namaObat = obat.getString(\"namaObat\");\n String frekuensi = obat.getString(\"frekuensi\");\n String interval = obat.getString(\"interval\");\n db.addObat(idObat,idKonsultasi,namaObat,frekuensi,interval);\n */\n\n username.setText(\"DR. \"+idDokter);\n namaPenyakitTxt.setText(namaPenyakit);\n tanggalKonsul.setText(tanggal);\n idKonsultasi.setText(\"Nomor Konsultasi : \"+idKon);\n\n for(int i=0;i<saranList.length();i++){\n createEditSaran(saranList.getString(i));\n }\n\n\n\n /*Intent intent = new Intent(lihatKonsultasi.this,\n LoginActivity.class);\n startActivity(intent);\n finish();*/\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg, Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"pasien\", pasien);\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(strReq);\n }", "@Override\n public void onClick(View view) {\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n// System.out.println(response);\n Context context = getApplicationContext();\n try {\n JSONObject jsonResponse = new JSONObject(response);\n SharedPreferences.Editor editor = context\n .getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE)\n .edit();\n editor.putString(\"token\", jsonResponse.getString(\"token\"));\n editor.commit();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n// Toast toast = Toast.makeText(context, response, Toast.LENGTH_LONG);\n// toast.show();\n\n gotoHomeActivity();\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n System.out.println(error);\n Context context = getApplicationContext();\n Toast toast = Toast.makeText(context, String.valueOf(error), Toast.LENGTH_LONG);\n toast.show();\n }\n }){\n @Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n // Get user's input from the TextFields for email and password.\n String email = String.valueOf(textField_registerEmail.getText());\n String password = String.valueOf(textField_registerPassword.getText());\n params.put(\"email\", email);\n params.put(\"password\", password);\n return params;\n }\n };\n // Add the request to the RequestQueue.\n queue.add(stringRequest);\n }", "private void obtenerProductos() {\n String url = \"http://192.168.43.127/MiTiendaOnline/?c=ProductoMovil\";\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n\n Productos = response;\n traercategorias();\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),\n \"Error al conectarse\".toString(), Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(), \"Verifique su conexion a la red\".toString(), Toast.LENGTH_SHORT).show();\n }\n });\n requestQueue.add(stringRequest);\n }", "public void submit(View view) {\n EditText nameBox = (EditText)findViewById(R.id.name);\n String name = \"null\";\n try {\n name = URLEncoder.encode(nameBox.getText().toString(), \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n System.out.println(\"Error Encoding Name\");\n }\n String encodedData = JSONify.encode(name, data);\n RequestQueue queue = Volley.newRequestQueue(this);\n String url = Reference.BASE_URL + \"b/\" + Reference.ean + encodedData;\n\n // Request a string response from the provided URL.\n StringRequest stringRequest = new StringRequest(com.android.volley.Request.Method.GET, url,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //TODO add an alert here\n System.out.println(\"GET request error\");\n }\n });\n // Add the request to the RequestQueue.\n queue.add(stringRequest);\n\n Reference.ean = null;\n Reference.name = null;\n Reference.canEat = -1;\n Reference.data = null;\n switchToHome();\n }", "public interface ApiService {\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_userLogin\")\n Call<LoginBean> login(@Field(\"username\") String userName, @Field(\"password\") String psw);\n\n\n @POST(\"D{ealer_estateLis}t\")\n Call<NewListBean> newList(@Path(\"ealer_estateLis\") String replaceableUrl);\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_estateDetail\")\n Call<SecondHandListBean> getSecondList(@Field(\"project_key\") String key);\n\n}", "public void catalogProductWebsiteLinkRepositoryV1SavePost (String sku, Body2 body, final Response.Listener<Boolean> responseListener, final Response.ErrorListener errorListener) {\n Object postBody = body;\n\n \n // verify the required parameter 'sku' is set\n if (sku == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'sku' when calling catalogProductWebsiteLinkRepositoryV1SavePost\",\n new ApiException(400, \"Missing the required parameter 'sku' when calling catalogProductWebsiteLinkRepositoryV1SavePost\"));\n }\n \n\n // create path and map variables\n String path = \"/v1/products/{sku}/websites\".replaceAll(\"\\\\{format\\\\}\",\"json\").replaceAll(\"\\\\{\" + \"sku\" + \"\\\\}\", apiInvoker.escapeString(sku.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n\n\n\n String[] contentTypes = {\n \n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n \n\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { };\n\n try {\n apiInvoker.invokeAPI(basePath, path, \"POST\", queryParams, postBody, headerParams, formParams, contentType, authNames,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String localVarResponse) {\n try {\n responseListener.onResponse((Boolean) ApiInvoker.deserialize(localVarResponse, \"\", Boolean.class));\n } catch (ApiException exception) {\n errorListener.onErrorResponse(new VolleyError(exception));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n errorListener.onErrorResponse(error);\n }\n });\n } catch (ApiException ex) {\n errorListener.onErrorResponse(new VolleyError(ex));\n }\n }", "public interface DataService {\n @GET(\"getdata.php\")\n Call<List<Hocsinh>> Getdata();\n\n @FormUrlEncoded\n @POST(\"insertdata.php\")\n Call<String> Insertdata(@Field(\"tenhocsinh\") String ten\n ,@Field(\"namsinh\") String namsinh\n ,@Field(\"diachi\") String diachi);\n\n @FormUrlEncoded\n @POST(\"delete.php\")\n Call<String> Deletedata(@Field(\"id\") String id);\n\n @FormUrlEncoded\n @POST(\"update.php\")\n Call<String> Update(@Field(\"ten\") String ten\n ,@Field(\"diachi\") String diachi\n ,@Field(\"namsinh\") String namsinh\n ,@Field(\"id\") String id);\n}", "public interface AntrianSendAPI {\n String URL_FILE = \"/response_place.php\";\n\n @FormUrlEncoded\n @POST(URL_FILE)\n void reserve(\n @Field(\"api_key\") String apiKey,\n @Field(\"antrian_numb\") Integer antrianNumb,\n @Field(\"antrian_code\") String antrianCode,\n @Field(\"user_token\") String userToken,\n Callback<Response> callback);\n}", "private void makeEnquiryRequest(String url) {\n\t\t\n\t\t showpDialog();\n\t JsonObjectRequest jsonObjReq = new JsonObjectRequest(Method.POST,\n\t \t\turl, null, new Response.Listener<JSONObject>() {\n\t \n\t @SuppressLint(\"NewApi\")\n\t\t\t\t\t\t@Override\n\t public void onResponse(JSONObject response) {\n\t Log.d(TAG, response.toString());\n\t \n\t\t\t\t\t\t\tJSONObject jobj = null;\n\n\t try {\n\t \t\n\t \t jobj = new JSONObject(response.toString());\n\t\t\t\t\t\t\t\t Iterator<String> iter = jobj.keys();\n\t\t\t\t\t\t\t\t while (iter.hasNext()) {\n\t\t\t\t\t String key = iter.next();\n\t\t\t\t\t\t\t\t\t\tif(key.equalsIgnoreCase(\"failure\")){\n\t\t\t\t\t\t String failure=jobj.getString(\"failure\");\n\n\t\t\t\t\t\t\t\t\t\tToast.makeText(OperationDeatails.this,failure,\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\n\t\t\t\t\t\t\t\t\t\t}else if(key.equalsIgnoreCase(\"success\")){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tbtnEnquiry.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\tlinearLayoutEnquiry.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t }\t\n\t \n\t } catch (JSONException e) {\n\t e.printStackTrace();\n\t Toast.makeText(getApplicationContext(),\n\t \"Error: \" + e.getMessage(),\n\t Toast.LENGTH_LONG).show();\n\t }\n\t hidepDialog();\n\t }\n\t }, new Response.ErrorListener() {\n\t \n\t @Override\n\t public void onErrorResponse(VolleyError error) {\n\t VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n\t Toast.makeText(getApplicationContext(),\n\t error.getMessage(), Toast.LENGTH_SHORT).show();\n\t // hide the progress dialog\n\t hidepDialog();\n\t }\n\t });\n\t \n\t // Adding request to request queue\n\t AppController.getInstance().addToRequestQueue(jsonObjReq);\n\t }", "private void makeVolleyRequest( String url, final Map<String, String> params ){\r\n\r\n StringRequest postRequest = new StringRequest(Request.Method.POST, url,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String response) {\r\n parseResponse( response );\r\n }\r\n }, new Response.ErrorListener() {\r\n\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n // TODO: Handle error\r\n callback.errorResponse( error.getMessage() );\r\n }\r\n }\r\n ){\r\n @Override\r\n protected Map<String, String> getParams()\r\n {\r\n return params;\r\n }\r\n };\r\n\r\n queue.add( postRequest );\r\n }", "private void registration_url(final String name, final String phone, final String email,\n final String password , final String device_id,\n final String fcm_token , final String device_type) {\n String tag_string_req = \"req_signup\";\n pd.show();\n\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n WebserviceUrl.signup, new Response.Listener<String>() {\n\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"url_hit: \"+ WebserviceUrl.login);\n Log.d(TAG, \"Response: \" + response);\n\n Gson gson = new Gson();\n\n try {\n\n\n JsonObject jobj = gson.fromJson(response, JsonObject.class);\n //JSONObject jObject = new JSONObject(String.valueOf(content));\n String status = jobj.get(\"status\").toString().replaceAll(\"\\\"\", \"\");\n String message = jobj.get(\"message\").toString().replaceAll(\"\\\"\", \"\");\n\n\n Log.d(\"TAG\", \"status :\\t\" + status);\n Log.d(\"TAG\", \"message :\\t\" + message);\n if(status.equals(\"1\")) {\n\n JsonObject jsonObject = jobj.getAsJsonObject(\"info\");\n\n String uid = jsonObject.get(\"uid\").toString().replaceAll(\"\\\"\", \"\");\n String name = jsonObject.get(\"name\").toString().replaceAll(\"\\\"\", \"\");\n String mobile = jsonObject.get(\"mobile\").toString().replaceAll(\"\\\"\", \"\");\n String email = jsonObject.get(\"email\").toString().replaceAll(\"\\\"\", \"\");\n //String name = jsonObject.get(\"name\").toString().replaceAll(\"\\\"\", \"\");\n\n\n globalClass.setId(uid);\n globalClass.setName(name);\n globalClass.setPhone_number(mobile);\n globalClass.setEmail(email);\n globalClass.setLogin_status(true);\n\n prefrence.savePrefrence();\n\n Intent intent = new Intent(Signup.this, DrawerActivity.class);\n startActivity(intent);\n finish();\n\n pd.dismiss();\n }else{\n Toasty.error(Signup.this, message, Toast.LENGTH_LONG, true).show();\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Sign_up Error: \" + error.getMessage());\n Toast.makeText(Signup.this, error.getMessage(), Toast.LENGTH_LONG).show();\n // hideDialog();\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"name\", name);\n params.put(\"mobile\",phone);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"device_id\", device_id);\n params.put(\"fcm_reg_token\", fcm_token);\n params.put(\"device_type\", device_type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n strReq.setRetryPolicy(new DefaultRetryPolicy(20 * 1000, 10, 1.0f));\n\n\n }", "void doCityList(final String stateId)\n {\n final ProgressDialog progressDialog3=new ProgressDialog(ChefEditKitchenPart2.this);\n progressDialog3.setMessage(\"loading...\");\n progressDialog3.show();\n progressDialog3.setCancelable(false);\n progressDialog3.setCanceledOnTouchOutside(false);\n String url;\n\n url =WebServiceURL.CITY_LIST;\n\n StringRequest postRequest = new StringRequest(Request.Method.POST, url,\n new Response.Listener<String>()\n {\n @Override\n public void onResponse(String response) {\n parseCity(response);\n if(progressDialog3!=null)\n progressDialog3.dismiss();\n Log.d(\"Response\", response);\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error) {\n if(progressDialog3!=null)\n progressDialog3.dismiss();\n System.out.println(\"Error==========\"+error);\n //doCityList(stateid);\n Toast.makeText(ChefEditKitchenPart2.this, \"Have a Network Error Please check Internet Connection.\", Toast.LENGTH_LONG).show();\n }\n }\n ){\n @Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"state_id\",stateId);\n params.put(\"format\",\"json\");\n return params;\n }\n };\n // Adding request to volley request queue\n AppController.getInstance().addToRequestQueue(postRequest);\n AppController.getInstance().getRequestQueue().getCache().remove(url);\n AppController.getInstance().getRequestQueue().getCache().clear();\n }", "private void callVolley(){\n itemList.clear();\n adapter.notifyDataSetChanged();\n swipe.setRefreshing(true);\n\n // membuat request JSON\n JsonArrayRequest jArr = new JsonArrayRequest(url_select, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n Log.d(TAG, response.toString());\n\n // Parsing json\n for (int i = 0; i < response.length(); i++) {\n try {\n JSONObject obj = response.getJSONObject(i);\n\n dkoridor item = new dkoridor();\n\n item.setId(obj.getString(TAG_ID_rute));\n item.setNama(obj.getString(TAG_NAMA_koridor));\n item.setTujuan(obj.getString(TAG_Tujuan));\n\n // menambah item ke array\n itemList.add(item);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n // notifikasi adanya perubahan data pada adapter\n adapter.notifyDataSetChanged();\n\n swipe.setRefreshing(false);\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n swipe.setRefreshing(false);\n }\n });\n\n // menambah request ke request queue\n AppController.getInstance().addToRequestQueue(jArr);\n }", "public interface ProgressWebService {\n @FormUrlEncoded\n @POST(\"getChartPoints.php\")\n Call<AllChartResponse> getChartPoints(@Field(\"token\") String token);\n\n}", "private void makeRegisterRequest(String name, String mobile,\n String email, String password) {\n\n final SweetAlertDialog loading=new SweetAlertDialog(RegisterActivity.this,SweetAlertDialog.PROGRESS_TYPE);\n loading.setCancelable(false);\n loading.setTitleText(\"Loading...\");\n\n loading.getProgressHelper().setBarColor(getResources().getColor(R.color.green));\n\n loading.show();\n\n String refercode=et_refer.getText().toString();\n\n // Tag used to cancel the request\n String tag_json_obj = \"json_register_req\";\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"user_name\", name);\n params.put(\"user_mobile\", mobile);\n params.put(\"user_email\", email);\n params.put(\"password\", password);\n if(!refercode.isEmpty()){\n params.put(\"referal_code\",refercode);\n }\n CustomVolleyJsonRequest jsonObjReq = new CustomVolleyJsonRequest(Request.Method.POST,\n BaseURL.REGISTER_URL, params, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, response.toString());\n\n try {\n loading.dismiss();\n Boolean status = response.getBoolean(\"responce\");\n if (status) {\n\n String msg = response.getString(\"message\");\n Toast.makeText(RegisterActivity.this, \"\" + msg, Toast.LENGTH_SHORT).show();\n\n Intent i = new Intent(RegisterActivity.this, LoginActivity.class);\n startActivity(i);\n\n if(!f)\n {\n finish();\n }\n btn_register.setEnabled(false);\n\n } else {\n String error = response.getString(\"error\");\n btn_register.setEnabled(true);\n Toast.makeText(RegisterActivity.this, \"\" + error, Toast.LENGTH_SHORT).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n loading.dismiss();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n if (error instanceof TimeoutError || error instanceof NoConnectionError) {\n Toast.makeText(RegisterActivity.this, getResources().getString(R.string.connection_time_out), Toast.LENGTH_SHORT).show();\n loading.dismiss();\n }\n }\n });\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(jsonObjReq, tag_json_obj);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(context,\"Erreur lors de la connexion\",Toast.LENGTH_SHORT).show();\n }", "public void makeStringReq(final String tag, int getPost, String url, final HashMap<String, String> params, @NonNull final VolleyListner mlistner) {\n\n if(tag.equalsIgnoreCase(urlConstants.CASE_SEARCH_AUTO_TAG)||tag.equalsIgnoreCase(urlConstants.COURT_LCD_TAG)\n ||tag.equalsIgnoreCase(urlConstants.NOTIFICATION_API_TAG)\n ){\n showDilog=true;\n }\n\n if (!showDilog) {\n showProgressDialog();\n showDilog = true;\n }\n StringRequest strReq = new StringRequest(getPost,\n url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n if (showDilog) {\n dismissProgressDialog();\n showDilog = false;\n }\n MyApplication.getInstance().setRequestQueue();\n\n// if(!tag.equalsIgnoreCase(urlConstants.NOTIFICATION_TAG)) {\n\n Log.d(TAG, response);\n String status = \"0\", message = \"\";\n JSONObject myJson = null;\n try {\n myJson = new JSONObject(response);\n status = myJson.optString(\"status\");\n message = myJson.optString(\"message\");\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n if (status.equalsIgnoreCase(\"1\")) {\n mlistner.onVolleyRespondString(1, response);\n } else {\n mlistner.onVolleyRespondString(0, message);\n }\n// }else{\n// Log.e(\"**** Notify \",\"***** \"+tag+response);\n// }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(@NonNull VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n MyApplication.getInstance().setRequestQueue();\n\n if (error instanceof TimeoutError || error instanceof NoConnectionError) {\n mlistner.onVolleyError(\"Timeout Error\");\n } else if (error instanceof AuthFailureError) {\n mlistner.onVolleyError(\"AuthFailure Error\");\n\n } else if (error instanceof ServerError) {\n mlistner.onVolleyError(\"Server Error\");\n\n } else if (error instanceof NetworkError) {\n mlistner.onVolleyError(\"Network Error\");\n\n } else {\n mlistner.onVolleyError(\"Try Again\");\n }\n\n\n if (showDilog) {\n dismissProgressDialog();\n showDilog = false;\n }\n }\n })\n\n {\n @Override\n protected HashMap<String, String> getParams() {\n return params;\n }\n\n// @Override\n// public Map<String, String> getHeaders() throws AuthFailureError {\n// Map<String, String> headers = new HashMap<>();\n// String credentials = \"username:password\";\n// String auth = \"Basic \"\n// + Base64.encodeToString(credentials.getBytes(), Base64.NO_WRAP);\n//// headers.put(\"Content-Type\", \"application/json\");\n// headers.put(\"Authorization\", auth);\n// return headers;\n// }\n\n };\n\n // Adding request to request queue\n strReq.setShouldCache(false);\n RetryPolicy policy = new DefaultRetryPolicy(15000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);\n strReq.setRetryPolicy(policy);\n MyApplication.getInstance().getRequestQueue().addRequestFinishedListener(new RequestQueue.RequestFinishedListener<Object>() {\n @Override\n public void onRequestFinished(@NonNull Request<Object> request) {\n dismissProgressDialog();\n Log.e(\"RequesFinish\", \"-----> Finish\" + tag + request.toString());\n MyApplication.getInstance().stopRequest();\n MyApplication.getInstance().setRequestQueue();\n }\n });\n MyApplication.getInstance().addToRequestQueue(strReq, tag);\n\n }", "public interface ApiService {\n\n// @FormUrlEncoded\n// @POST(\"tambah_data.php\")\n// Call<ResponseBody> tambahData(@Field(\"nama\") String nama, @Field(\"jenis\") String jenis, @Field(\"keterangan\") String keterangan);\n//\n// @FormUrlEncoded\n// @POST(\"edit_data.php\")\n// Call<ResponseBody> editData(@Field(\"id_barang\") String id, @Field(\"nama_barang\") String nama, @Field(\"jenis_barang\") String jenis, @Field(\"keterangan_barang\") String keterangan);\n//\n// @FormUrlEncoded\n// @POST(\"hapus_data.php\")\n// Call<ResponseBody> hapusData(@Field(\"id_barang\") String id_barang);\n\n @GET(\"api_notif.php\")\n Call<List<ModelDataNotif>> getAllSewa();\n\n// @GET(\"single_data.php\")\n// Call<List<ModelData>> getSingleData(@Query(\"id_barang\") String id);\n\n}", "@Override\n public void onResponse(String response) {\n Toast.makeText(PencocokanTandaTangan.this, \"Verifikasi Kehadiran Berhasil\", Toast.LENGTH_SHORT).show();\n Log.d(\"VolleyResponse\", \"Dapat Response Volley Berhasil Kirim Status Absensi\");\n }", "public void postJSONObject(String request_url, JSONObject postparams,\n Response.Listener<JSONObject> listener,\n Response.ErrorListener errorListener){\n\n Log.e(this.getClass().toString(), \"inside data manager\");\n try {\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.POST,\n request_url, postparams, listener,\n errorListener);\n\n mReqQueue = GlobalRequestQueue.getInstance();\n mReqQueue.addToRequestQueue(jsonObjReq, \"post\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void Login() {\n String url = \"http://192.168.43.127/miTiendaOnline/?c=AuthMovil\";\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n\n String[] retorno = response.trim().split(\"-\");\n // Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG ).show();\n\n if (retorno[0].trim().equals(\"error\")) {\n Toast.makeText(getApplicationContext(), retorno[1], Toast.LENGTH_SHORT).show();\n } else {\n if (retorno[0].trim().equals(\"usuario\")) {\n Toast.makeText(getApplicationContext(), \"Bienvenid@ \".toString() + edtUserName.getText().toString(), Toast.LENGTH_SHORT).show();\n\n usuarioLogin = retorno[1];\n obtenerProductos();\n\n\n } else {\n Toast.makeText(getApplicationContext(), \"Usuario no permitido\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),\n \"Error al conectarse\".toString(), Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(), \"Verifique su conexion a la red\".toString(), Toast.LENGTH_SHORT).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n\n Map<String, String> params = new HashMap<>();\n params.put(\"login\", edtUserName.getText().toString().trim());\n params.put(\"password\", edtPassword.getText().toString().trim());\n return params;\n }\n };\n requestQueue.add(stringRequest);\n }", "public interface APIService {\n\n @FormUrlEncoded\n @POST(\"receipts.php\")\n Call<Receipt> verifyParticipant(@Field(\"regID\") int regID, @Field(\"mobile\") String mobile);\n}", "public static int doPost(String name, String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n int status = 0;\n String output =\"\";\n \n try {\n // Make call to a particular URL\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n // set request method to POST and send name value pair\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // write to POST data area\n JSONObject objJson = new JSONObject();\n JSONObject objJsonSend = new JSONObject();\n try {\n objJson.put(\"id\", id);\n objJson.put(\"name\", name);\n objJsonSend.put(\"name\", name);\n } catch (JSONException ex) {\n Logger.getLogger(RestaurantApiClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n String ans = objJson.toString();\n System.out.println(\"Request Body:\");\n System.out.println(objJsonSend.toString());\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n out.write(ans);\n out.close();\n // get HTTP response code sent by server\n status = conn.getResponseCode();\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n output = \"\";\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect();\n //close the connection\n conn.disconnect();\n }\n // handle exceptions\n catch (MalformedURLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n } \n // return HTTP status\n r.setValue(response);\n return status; \n }", "public static void ObtenerDatosRegistro(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/registro\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "private void AddQualifications(final String DegreeName, final String InsName) {\n String cancel_req_tag = \"AddingQualifications\";\n progressDialog.setMessage(\"Working Plz Wait ...\");\n showDialog();\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n URL_FOR_Add_Qualifications, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Added Response: \" + response.toString());\n hideDialog();\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n if (!error) {\n String degreename = jObj.getJSONObject(\"degree\").getString(\"name\");\n Toast.makeText(getContext(), degreename +\", Hospital successfully Added!\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getContext(),\n errorMsg, Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Addind Error: \" + error.getMessage());\n Toast.makeText(getContext(),\n error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n }\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(\"Dname\", DegreeName);\n params.put(\"iName\", InsName);\n params.put(\"UserId\", uId);\n\n return params;\n }\n };\n // Adding request to request queue\n AppSingleton.getInstance(getContext()).addToRequestQueue(strReq, cancel_req_tag);\n }", "public static void insertCloth_Connect(Context context, final String uid, final String season, final String type, final String info, final String detail1, final String detail2) {\n String tag_string_req = \"req_cloth\";\n\n\n StringRequest strReq = new StringRequest(Request.Method.POST, // 여기서 데이터를 POST로 서버로 보내는 것 같다\n AppConfig.URL_CLOTHDATA, new Response.Listener<String>() { // URL_REGISTER = \"http://192.168.116.1/android_login_api/register.php\";\n\n @Override\n public void onResponse(String response) {\n Log.d(\"saea\", \" Response: \" + response.toString());\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n Log.d(\"saea\", error+\"saea\");\n if (!error) {\n // User successfully stored in MySQL\n // Now store the user in sqlite\n String uid = jObj.getString(\"uid\");\n\n /*) JSONObject user = jObj.getJSONObject(\"user\");\n String name = user.getString(\"name\");\n String user_id = user.getString(\"user_id\");\n String email = user.getString(\"email\");\n String gender = user.getString(\"gender\");\n String created_at = user.getString(\"created_at\"); // 보내는 값이 json형식의 response 이다\n */\n Log.d(\"saea\", \"resulttoday:\"+ uid);\n\n\n } else {\n\n // Error occurred in registration. Get the error\n // message\n String errorMsg = jObj.getString(\"error_msg\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"saea\", \"Registration Error: \" + error.getMessage());\n\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() { // StringRequest에 대한 메소드\n // Posting params to register url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"status\", \"insert\");\n params.put(\"uid\", uid);\n params.put(\"season\", season);\n params.put(\"type\", type);\n params.put(\"info\", info);\n params.put(\"detail1\", detail1);\n params.put(\"detail2\", detail2);\n return params;\n }\n\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "@Override\n public void onClick(View v) {\n RequestQueue queue = Volley.newRequestQueue(getApplicationContext());\n String url = \"http://mafiv.freeoda.com/android_php/poll_add.php\";\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String s) {\n Log.e(\"rs\", s);\n JSONObject num;\n try {\n num = new JSONObject(s);\n if(num.getString(\"data\").equals(\"1\"))\n {\n Toast.makeText(CreatePoll.this,\"Poll created successfully\",Toast.LENGTH_LONG).show();\n Intent intent=new Intent(CreatePoll.this,PollFeature.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n\n\n }\n\n else\n Toast.makeText(CreatePoll.this,\"Poll not created\",Toast.LENGTH_LONG).show();\n\n }\n catch (Exception e)\n {\n Log.e(\"except\",e.toString());\n }\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n\n Log.e(\"err\", volleyError.toString());\n }\n }) {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n\n\n\n JSONObject json = new JSONObject();\n Map<String, String> params = new HashMap<>();\n\n\n year_array=new int[4];\n for(int i=0;i<4;i++)\n {\n year_array[i]=-1;\n }\n branch_array=new int[2];\n for(int i=0;i<2;i++)\n {\n branch_array[i]=-1;\n }\n int count_year=0,count_branch=0;\n\n if(year1.isChecked())\n {\n count_year++;\n //Sem1=\"sem1\";\n year_array[0]=1;\n\n }\n\n if(year2.isChecked())\n {\n count_year++;\n //Sem3=\"sem3\";\n year_array[1]=2;\n }\n\n if(year3.isChecked())\n {\n count_year++;\n //Sem5=\"sem5\";\n year_array[2]=3;\n\n }\n\n if(year4.isChecked())\n {\n count_year++;\n //Sem7=\"sem7\";\n year_array[3]=4;\n }\n\n if(CS.isChecked())\n {\n count_branch++;\n //Cs=\"CS\";\n branch_array[0]=1;\n\n }\n\n if(IT.isChecked())\n {\n count_branch++;\n branch_array[1]=0;\n\n }\n JSONArray desc=new JSONArray();\n JSONArray audi=new JSONArray();\n\n int total_count=count_branch*count_year;\n int[] audience_array=new int[total_count];\n int k=0;\n for(int i=0;i<4;i++)\n {\n for(int j=0;j<2;j++)\n {\n if(year_array[i]!=-1 && branch_array[j]!=-1)\n {\n int x;\n x=2*year_array[i]-branch_array[j];\n audience_array[k]=x;\n audi.put(String.valueOf(audience_array[k]));\n k++;\n }\n\n }\n }\n\n\n\n\n\n try{\n\n num_audience=2;\n audience=new String[num_audience];\n\n json.put(\"question\",question.getText().toString());\n json.put(\"expiry_date\",date1.getText().toString());\n json.put(\"number_of_options\",String.valueOf(num_choices));\n SaveUserData saveUserData = new SaveUserData(CreatePoll.this);\n UserData userData = saveUserData.Logged_User_Data();\n String id = userData.id;\n json.put(\"student_id\", id);\n String[] choice_array=new String[num_choices];\n\n for(int i=0;i<num_choices;i++)\n {\n choice_array[i]=editTextArray[i].getText().toString();\n desc.put(choice_array[i]);\n Log.e(\"des\",choice_array[i]);\n }\n\n json.put(\"description\",desc);\n\n json.put(\"number_of_audience\",String.valueOf(total_count));\n\n json.put(\"audience\",audi);\n }\n catch(Exception e){\n\n }\n\n params.put(\"data\", json.toString());\n String x = params.toString();\n Log.e(\"ss\", x);\n return params;\n\n }\n };\n queue.add(stringRequest);\n }", "@Override\n public void onErrorResponse(VolleyError volleyError) {\n Toast.makeText(MulaiActivity.this, volleyError.toString(), Toast.LENGTH_LONG).show();\n }", "public static String POST(String data) {\n\n Response response = null;\n OkHttpClient client = new OkHttpClient();\n MediaType JSON = MediaType.parse(\"application/json; charset=utf-8\");\n\n RequestBody body = RequestBody.create(JSON, data);\n Request request = new Request.Builder()\n .url(Constants.WS_URL)\n .post(body)\n .build();\n\n try {\n response = client.newCall(request).execute();\n return response.body().string();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n return \"\";\n }\n }", "String postRequest(String url);", "private void saveNameToServer() {\n\n\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, URL_SAVE_NAME,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n // progressDialog.dismiss();\n try {\n JSONObject obj = new JSONObject(response);\n if (!obj.getBoolean(\"error\")) {\n //if there is a success\n //storing the name to sqlite with status synced\n saveNameToLocalStorage(phNumber, NAME_SYNCED_WITH_SERVER);\n } else {\n //if there is some error\n //saving the name to sqlite with status unsynced\n saveNameToLocalStorage(phNumber, NAME_NOT_SYNCED_WITH_SERVER);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //progressDialog.dismiss();\n //on error storing the name to sqlite with status unsynced\n saveNameToLocalStorage(phNumber, NAME_NOT_SYNCED_WITH_SERVER);\n }\n }) {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", phNumber);\n return params;\n }\n };\n\n VolleySingleton.getInstance(this).addToRequestQueue(stringRequest);\n\n\n\n\n\n\n\n }", "public interface RegisterAPI {\n\n @FormUrlEncoded\n @POST(\"android/restfull/insert.php\")\n Call<Value> daftar(@Field(\"kode\") String kode,\n @Field(\"nama\") String nama,\n @Field(\"harga\") String harga);\n\n @GET(\"android/restfull/view.php\")\n Call<Value> view();\n\n @FormUrlEncoded\n @POST(\"android/restfull/update.php\")\n Call<Value> ubah(@Field(\"kode\") String kode,\n @Field(\"nama\") String nama,\n @Field(\"harga\") String harga);\n\n\n @FormUrlEncoded\n @POST(\"android/restfull/delete.php\")\n Call<Value> hapus(@Field(\"kode\") String kode);\n\n @FormUrlEncoded\n @POST(\"android/restfull/search.php\")\n Call<Value> search(@Field(\"search\") String search);\n}", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.e(\"wsrong\", error.toString());\n }\n catch (Exception ex)\n {\n Toast.makeText(context,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.e(\"wsrong\", error.toString());\n }\n catch (Exception ex)\n {\n Toast.makeText(context,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "public static void ObtenerDatosDetalleReg(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/DetalleReg\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "private void likeset(final String is_like, final String p_name)\n {\n String tag_string_req = \"req_login\";\n\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_Like, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(\"Likes :\", \"Response: \" + response.toString());\n\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n\n returnedcount = jObj.getString(\"likes_count\");\n\n\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Likes :\", \"Response: \" + error.getMessage());\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"is_like\", is_like);\n params.put(\"p_name\", p_name);\n return params;\n }\n\n };\n\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n}", "private void getpnotes(final String Id){\n StringRequest stringRequest = new StringRequest(Request.Method.POST, ApiConfig.EDIT_PAIN_ ,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try {\n Log.e(\"result\",response);\n dialog.dismiss();\n mCallback.onViewItemClick(mList.get(0), -2, Constants.ClickIDConst.ID_DELETE_CLICK);\n }\n\n catch (Exception e) {\n e.printStackTrace();\n }\n Log.e(\"Postdat\", \"\" + response.toString());\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// Toast.makeText(StmtActivity.this,error.toString(),Toast.LENGTH_LONG).show();\n Log.w(\"Postdat\", \"\" + error);\n }\n }){\n\n\n protected Map<String,String> getParams(){\n Map<String,String> params = new HashMap<String, String>();\n\n params.put(ApiConfig.PAIN_SIDE, pain_side.getText().toString());\n params.put(ApiConfig.PAIN_DURATION, pain_duration.getText().toString());\n params.put(ApiConfig.TRIGGER_POINT, trigger_point.getText().toString());\n params.put(ApiConfig.PAIN_LOCATION, location.getText().toString());\n params.put(ApiConfig.SEVERITY_PAIN, severity_pain.getText().toString());\n params.put(ApiConfig.PRESURE_PAIN, pressure_pain.getText().toString());\n params.put(ApiConfig.PAIN_NATURE, pain_nature.getText().toString());\n params.put(ApiConfig.PAIN_ONSET, pain_onset.getText().toString());\n params.put(\"threshold_site\", \"\");\n params.put(ApiConfig.DIURNAL_VARIATION, diurnal_variations.getText().toString());\n params.put(ApiConfig.AGGRAVATING_FACTORS, aggravating_factors.getText().toString());\n params.put(ApiConfig.RELIEVING_FACTORS, relieving_factors.getText().toString());\n params.put(\"pain_id\", Id);\n return params;\n }\n\n };\n\n RequestQueue requestQueue = Volley.newRequestQueue(context);\n requestQueue.add(stringRequest);\n }", "public void makeCallPostWithoutToken(String url, Context context, Map<String, String> requestParams, CompleteListener<String> mCompleteTaskListener) {\n // Instantiate the RequestQueue\n mCompleteTaskListener.setProgressBar(true);\n RequestQueue queue = Volley.newRequestQueue(context);\n // Request a string response from the provided URL\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url,\n response -> {\n Log.v(TAG, \"Json result: > \" + response);\n //Listeners for use methods of activity\n mCompleteTaskListener.setProgressBar(false);\n mCompleteTaskListener.onTaskComplete(true, response);\n }, error -> {\n VolleyLog.e(\"Error: \", error.getMessage());\n //Listeners for use methods of activity\n mCompleteTaskListener.setProgressBar(false);\n mCompleteTaskListener.onTaskComplete(false, context.getResources().getString(R.string.error_label));\n }) {\n //Set params of the request\n @Override\n protected Map<String, String> getParams() {\n return requestParams;\n }\n };\n stringRequest.setShouldCache(false);\n // Add the request to the RequestQueue\n queue.add(stringRequest);\n }", "@Override\r\n public void onFailure(VolleyError error)\r\n {\n }", "@Override\r\n public void onFailure(VolleyError error)\r\n {\n }", "@Override\r\n public void onFailure(VolleyError error)\r\n {\n }", "public void postSignUpData(String userName, String email , String password) {\n\n HttpPost httppost = new HttpPost(\"http://192.168.1.224:3000/signup\");\n\n try {\n // Add your data\n\n JSONObject json = new JSONObject();\n json.put(\"username\" , userName);\n json.put(\"email\" , email);\n json.put(\"password\" , password);\n\n StringEntity se = new StringEntity( json.toString());\n se.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, \"application/json\"));\n httppost.setEntity(se);\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n\n s = EntityUtils.toString(response.getEntity());\n\n s = s.toString();\n\n\n int a=response.getStatusLine().getStatusCode();\n\n\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onResponse(JSONArray response) {\n if (response.length() == 0){\n final String token = FirebaseInstanceId.getInstance().getToken();\n //Inicia la peticion\n RequestQueue queueInsertar = Volley.newRequestQueue(context);\n String consultaInsertar = \"INSERT INTO token_puntoventa(token,puntoventa_id)VALUES('\"+token+\"',\"+rutaID+\");\";\n consultaInsertar = consultaInsertar.replace(\" \", \"%20\");\n String cadenaInsertar = \"?host=\" + HOST + \"&db=\" + DB + \"&usuario=\" + USER + \"&pass=\" + PASS + \"&consulta=\" + consultaInsertar;\n String urlInsertar= SERVER + RUTA + \"consultaGeneral.php\" + cadenaInsertar;\n Log.i(\"info\", urlInsertar);\n JsonArrayRequest jsonArrayRequestInsertar = new JsonArrayRequest(Request.Method.GET, urlInsertar, null, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queueInsertar.add(jsonArrayRequestInsertar);\n }\n }", "@Override\n public void onResponse(JSONArray response) {\n if (response.length() == 0){\n final String token = FirebaseInstanceId.getInstance().getToken();\n //Inicia la peticion\n RequestQueue queueInsertar = Volley.newRequestQueue(context);\n String consultaInsertar = \"INSERT INTO token_cliente(token,claveCliente_id)VALUES('\"+token+\"',\"+clienteID+\");\";\n consultaInsertar = consultaInsertar.replace(\" \", \"%20\");\n String cadenaInsertar = \"?host=\" + HOST + \"&db=\" + DB + \"&usuario=\" + USER + \"&pass=\" + PASS + \"&consulta=\" + consultaInsertar;\n String urlInsertar= SERVER + RUTA + \"consultaGeneral.php\" + cadenaInsertar;\n Log.i(\"info\", urlInsertar);\n JsonArrayRequest jsonArrayRequestInsertar = new JsonArrayRequest(Request.Method.GET, urlInsertar, null, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queueInsertar.add(jsonArrayRequestInsertar);\n }\n }", "public void onClick(DialogInterface dialog, final int id) {\n\n\n String url = \"https://api.festember.com/user/register/event\";\n final ProgressDialog pDialog = new ProgressDialog(Single_Activity.this);\n pDialog.setMessage(\"Loading...\");\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n\n StringRequest postRequest = new StringRequest(Request.Method.POST, url,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n Log.e(\"TAG\",Utilities.f_id);\n Log.e(\"TAG\",Utilities.f_pass);\n Log.e(\"TAG\",\"\"+e_id);\n\n\n\n try {\n JSONObject jsonResponse = new JSONObject(response);\n int status = jsonResponse.getInt(\"status\");\n String error = jsonResponse.getString(\"data\");\n pDialog.dismiss();\n Toast.makeText(Single_Activity.this, error, Toast.LENGTH_SHORT).show();\n System.out.println(error);\n\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n System.out.println(\"error\");\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n pDialog.dismiss();\n error.printStackTrace();\n Toast.makeText(Single_Activity.this, \"Please check your internet and try again\", Toast.LENGTH_LONG).show();\n\n }\n }\n ) {\n @Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<>();\n // the POST parameters:\n params.put(\"user_id\", Utilities.f_id);\n params.put(\"user_pass\", Utilities.f_pass);\n params.put(\"event_id\",\"\"+e_id);\n\n return params;\n }\n };\n Volley.newRequestQueue(Single_Activity.this).add(postRequest);\n\n }", "private void CreateAccount() {\n JSONObject finalJS = new JSONObject();\n try {\n\n finalJS.put(\"password\", _password.getText().toString());\n finalJS.put(\"username\", _email.getText().toString());\n\n } catch (JSONException e) {\n e.printStackTrace();\n Log.e(\"JSONErrorin serializing\", e.toString());\n }\n Log.e(\"JSON serializing\", finalJS.toString());\n String tag_string_req = \"req_Categories\";\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(\n Request.Method.POST, MyShortcuts.baseURL() + \"twiga/auth/signup\", finalJS,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.e(\"Response from server is\", response.toString());\n try {\n String status = response.getString(\"success\");\n if (status.equals(\"true\")) {\n Toast.makeText(getBaseContext(), \"You have successfully registered!\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n\n startActivity(intent);\n } else {\n MyShortcuts.showToast(response.getString(\"message\"), getBaseContext());\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getBaseContext(), \"Server errror, Try again later\", Toast.LENGTH_LONG).show();\n }\n }\n\n\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(\"VolleyError\", \"Error: \" + error.getMessage());\n// hideProgressDialog()\n MyShortcuts.showToast(\"Check you internet connection or try again later\", getBaseContext());\n Log.d(\"error volley\", error.toString());\n }\n }) {\n\n /**\n * Passing some request headers\n * */\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n setRetryPolicy(new DefaultRetryPolicy(5 * DefaultRetryPolicy.DEFAULT_TIMEOUT_MS, 0, 0));\n setRetryPolicy(new DefaultRetryPolicy(0, 0, 0));\n headers = MyShortcuts.AunthenticationHeaders(getBaseContext());\n return headers;\n }\n };\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(jsonObjReq);\n Log.e(\"request is\", jsonObjReq.toString());\n }", "private void postRequest(RequestBody requestBody, String url) throws JSONException {\n System.out.println(url);\n OkHttpClient okHttpClient = new OkHttpClient();\n Request request = new Request\n .Builder()\n .post(requestBody)\n .url(url)\n .build();\n\n okHttpClient.newCall(request).enqueue(new Callback() {\n @Override\n public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {\n\n }\n\n @Override\n public void onFailure(final Call call, final IOException e) {\n }\n });\n }", "@Override\r\n public void onFailure(VolleyError error)\r\n {\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"error\",error.toString());\n }", "@FormUrlEncoded\n @POST(\"api/Daftar/tambah\")\n Call<UserModel> daftarUser(@Field(\"nama\") String nama,\n @Field(\"identitas\") String identitas,\n @Field(\"email\") String email,\n @Field(\"password\") String password,\n @Field(\"token_firebase\") String token_firebase);", "public void createTeam(){\n\n if(!(validation())){\n return;\n }\n\n final ProgressDialog progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(\"Loading...\");\n progressDialog.show();\n\n RequestQueue requestQueue = Volley.newRequestQueue(getActivity());\n StringRequest stringRequest = new StringRequest(Request.Method.POST, \"http://192.169.138.14:4000/api/teams/create\", new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.v(\"qwe\", response);\n progressDialog.dismiss();\n Gson gson = new Gson();\n TeamSucessWithId sucessResponse = gson.fromJson(response, TeamSucessWithId.class);\n String _message = sucessResponse.getMessage();\n int _status = sucessResponse.getStatus();\n int teamId = sucessResponse.getTeamId();\n //Toast.makeText(getActivity(), _status+\": \"+_message+\" \"+teamId, Toast.LENGTH_LONG).show();\n if(_status == 200){\n Toast.makeText(getActivity(), _status+\": \"+_message+\" \", Toast.LENGTH_LONG).show();\n Prefs.putString(getActivity(), Prefs.TEAM_LOGO, logoBitmap);\n Prefs.putString(getActivity(), Prefs.HOME_SHIRT, homeImgBitmap);\n Prefs.putString(getActivity(), Prefs.AWAY_SHIRT, awayShirtBitmap);\n Prefs.putString(getActivity(), Prefs.TEAM_NAME, teamName.getText().toString());\n Prefs.putString(getActivity(), Prefs.COACH, coachName.getText().toString());\n Prefs.putString(getActivity(), Prefs.COLOR, currentColor+\"\");\n Prefs.putString(getActivity(), Prefs.CITY_ID, mCity_Id+\"\");\n Prefs.putString(getActivity(), Prefs.FIELD_ID, \"\"+mField_Id);\n Prefs.putString(getActivity(), Prefs.TEAM_ID, teamId+\"\");\n startActivity(new Intent(getActivity(), InvitePlayerActivity.class));\n }else {\n\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n Log.v(\"wsx\", \"======== \"+error+\"\");\n Toast.makeText(getActivity(), \"Unable to connect...\", Toast.LENGTH_LONG).show();\n }\n }){\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"x-access-key\", Globels.ACCESS_KEY);\n headers.put(\"x-access-token\", Prefs.getString(getActivity(), Prefs.auth_key));\n headers.put(\"locale\", Globels.LOCAL);\n headers.put(\"Content-Type\", Globels.CONTENT_TYPE);\n return headers;\n }\n\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n //EditText teamName, colorName, coachName, groundName, teamCity;ss\n\n Log.v(\"kkk\", \"city====\"+mCity_Id);\n Log.v(\"jjj\", \"Field====\"+mField_Id);\n\n params.put(\"team_name\", teamName.getText().toString());\n params.put(\"color\", currentColor+\"\");\n params.put(\"coach\", coachName.getText().toString());\n// params.put(\"team_name\", \"dsfs\");\n// params.put(\"color\", \"\"+currentColor);\n// params.put(\"coach\", \"dsfs\");\n params.put(\"city\", \"\"+mCity_Id);\n params.put(\"shirt_home\", homeImgBitmap);\n params.put(\"shirt_away\", awayShirtBitmap);\n params.put(\"logo\", logoBitmap);\n params.put(\"found_date\", \"2017-05-15\");\n params.put(\"country\", \"1\");\n params.put(\"avg_age\", \"\");\n params.put(\"city_flexible\", \"0\");\n params.put(\"field_flexible\", \"0\");\n params.put(\"field_id\", \"\"+mField_Id);\n return params;\n }\n };;\n\n requestQueue.add(stringRequest);\n }", "public void postDatatoServer(String type, JSONObject data) {\n Log.w(\"Note\", data.toString());\r\n final Home baseHomeActivity = (Home) getActivity();\r\n\r\n JsonObjectRequest jsonArrayRequest =\r\n new JsonObjectRequest(\r\n Request.Method.POST, serverURL + \"/\" + type + \"/\", data, this, this) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n HashMap<String, String> headers = new HashMap<String, String>();\r\n headers.put(\"Authorization\", \"Token \" + baseHomeActivity.mToken);\r\n return headers;\r\n }\r\n };\r\n baseHomeActivity.mQueue.add(jsonArrayRequest);\r\n }", "public void addTimer(){\n RequestQueue rq = Volley.newRequestQueue(getApplicationContext());\n\n StringRequest request = new StringRequest(Request.Method.POST, URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //display\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error)\n {\n error.printStackTrace();\n }\n }) {\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\";\n }\n\n @Override\n public byte[] getBody() {\n Gson gson = new Gson();\n String json = gson.toJson(dateStart);\n json = json.concat(\",\").concat(gson.toJson(dateEnd));\n\n try{ return (json).getBytes(\"utf-8\"); }\n catch (UnsupportedEncodingException e) { return null; }\n }\n };\n rq.add(request);\n }", "public void registerUser(){\n\n final JSONObject jsonobj = new JSONObject();\n\n final String adapter = \"application\";\n final String name = nome.getText().toString().trim();\n final String username = usuario.getText().toString().trim();\n final String password = senha.getText().toString().trim();\n final String emaill = email.getText().toString().trim();\n final Date date = new Date();\n\n Log.i(\"script\", \"data \"+date);\n final String passwordHash = hashSHA256(password);\n Log.i(\"script\", \"hash cadastro \"+passwordHash);\n\n try {\n jsonobj.put(KEY_NAME,name);\n jsonobj.put(KEY_USERNAME,username);\n jsonobj.put(KEY_EMAIL, emaill);\n jsonobj.put(KEY_PASSWORD,passwordHash);\n jsonobj.put(KEY_ADAPTER,adapter);\n// jsonobj.put(KEY_DATEC,date);\n// jsonobj.put(KEY_DATEU,date);\n } catch (JSONException e) {\n e.printStackTrace();\n //Toast.makeText(getApplicationContext(),\"Erro: \" + e.getMessage(),Toast.LENGTH_LONG).show();\n Toast.makeText(getApplicationContext(),\"Ocorreu um erro! Tente novamente mais tarde.\",Toast.LENGTH_LONG).show();\n }\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.POST,\n REGISTER_URL, jsonobj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Toast.makeText(CadastroActivity.this, \"Cadastro salvo!\", Toast.LENGTH_LONG).show();\n Intent intentLogar = new Intent(CadastroActivity.this, LoginNovoActivity.class);\n startActivity(intentLogar);\n finish();\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(CadastroActivity.this,\"Ocorreu um erro: \"+error.toString(),Toast.LENGTH_LONG).show();\n }\n }){\n\n };\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(jsonObjReq);\n }", "public void setupMapa(final String idCliente) {\n\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_MAPA_UBICACION, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n //Log.d(TAG, \"Login Response: \" + response.toString());\n //hideDialog();\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n\n //obtengo la respuesta del servidor relacionada al contacto, si existe o no\n String Latitud = jObj.getString(\"Latitud\");\n String Longitud = jObj.getString(\"Longitud\");\n String Fecha = jObj.getString(\"Fecha\");\n\n //parseo los datos\n double x_lat = Double.parseDouble(Latitud.toString());\n double x_long = Double.parseDouble(Longitud.toString());\n\n //obtengo los datos de mi ubicacion\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n try {\n List<Address> addresses = geoCoder.getFromLocation(x_lat, x_long, 1);\n\n\n if (addresses.size() > 0){\n for (int i=0; i<addresses.get(0).getMaxAddressLineIndex();i++) {\n direccionCompleta += addresses.get(0).getAddressLine(i) + \" \";\n }\n }\n\n }catch (Exception e1) {\n e1.printStackTrace();\n }\n\n //\n CENTER = new LatLng(x_lat, x_long);\n\n //mapa\n map = mapView.getMap();\n if (map == null) {\n Toast.makeText(getActivity(), \"Map Fragment Not Found or no Map in it\", Toast.LENGTH_SHORT).show();\n }\n\n //muestro la ubiccion\n map.clear();\n\n final LatLng MELBOURNE = new LatLng(x_lat, x_long);\n Marker melbourne = map.addMarker(new MarkerOptions()\n .position(MELBOURNE)\n .title(\"Ultima Ubicacion Conocida\")\n .snippet(direccionCompleta)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker_icon_2)));\n\n melbourne.showInfoWindow();\n\n txtFecha.setText(\"Ultima actualizacion el \"+Fecha);\n\n map.moveCamera(CameraUpdateFactory.zoomTo(16));\n if (CENTER != null) {\n map.animateCamera(CameraUpdateFactory.newLatLng(CENTER), 1750, null);\n }\n\n\n map.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n map.getUiSettings().setZoomControlsEnabled(true);\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getActivity(), errorMsg, Toast.LENGTH_LONG).show();\n //logerror = errorMsg;\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getActivity(), \"Json error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n\n\n }\n }) {\n\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"idCliente\", idCliente);\n\n\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n\n\n }", "public void onClick(DialogInterface dialog, int id) {\n\t \t \n\t \t StringRequest cancelReservationRequest = new StringRequest(Request.Method.POST,MyNetworkRequestsSingleton.TESTING_SERVER_URL, \n\t \t \t\t\t new Response.Listener<String>() { \t\t \t\t\n\t \t \t\t \t\t@Override\n\t \t\t\t \t\t public void onResponse(String response) {\n\t \t \t\t \t\t\tLog.i(\"pantelis\",\"testVolley cancelReservationRequest response = \" + response);\n\t \t \t\t \t\t\ttry {\n\t \t\t\t\t\t\t\t\tJSONObject jsonResponse = new JSONObject(response);\t\t\t\t\t\t\t\t\t\n\t \t\t\t\t\t\t\t\t\tString status = jsonResponse.getJSONObject(\"body\").getJSONObject(\"response\").getJSONObject(\"context\").getString(\"status\");\n\t \t\t\t\t\t\t\t\tif (status.equalsIgnoreCase(\"1\")) {\n\t \t\t\t\t\t\t\t\t\n\t \t\t\t\t\n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\telse {\n\t \t\t\t\t\t \t\t\tToast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t \t\t\t\t\t \t\t\t//Toast.makeText(mContext, \"cancelReservationRequest error failed 3\", Toast.LENGTH_LONG).show();\n\n\t \t\t\t\t\t\t\t\t}\t\t\n\t \t \t\t \t\t\t} catch (JSONException e) {\n\t \t\t\t\t\t\t\t\te.printStackTrace();\n\t \t\t\t\t\t\t\t\t//emfanise minima lathous\n\t \t\t\t\t \t\t\tToast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\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\n\t \t\t \t\t\n\t \t\t\t \t\t }\n\t \t \t\t }, \n\t \t \t\t \n\t \t\t \t\t new Response.ErrorListener() {\n\t \t\t\t \t\t @Override\n\t \t\t\t \t\t public void onErrorResponse(VolleyError error) {\n\t \t\t\t \t\t\t Log.e(\"pantelis\",\"testVolley cancelReservationRequest response error 2\");\n\t \t\t\t \t\t\t Toast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t \t\t\t\t \t\t// Toast.makeText(mContext, \"cancelReservationRequest error 2\", Toast.LENGTH_LONG).show();\n\t \t\t\t\t \t\t\n\t \t\t \t\t\n\t \t\t\t \t\t }\n\t \t \t\t }){\n\t \t \t\t\n\t \t \t\t @Override\n\t \t \t\t protected Map<String,String> getParams(){\n\t \t\t \t\t Map<String,String> params = new HashMap<String, String>();\n\t \t\t \t\t params.put(\"app_id\", MyNetworkRequestsSingleton.APP_ID);\n\t \t\t \t\t params.put(\"akey\", MyNetworkRequestsSingleton.A_KEY);\n\t \t\t \t\t params.put(\"app_vn\", \"api/unreserve\");\n\t \t\t \t\t params.put(\"uid\", Utilities.getUID(mContext));\n\t \t\t \t\t params.put(\"pid\",Utilities.getPID(mContext));\n\t \t\t \t\t return params;\n\t \t \t\t }\n\t \t \t\t \n\t \t \t\t @Override\n\t \t \t\t public Map<String, String> getHeaders() throws AuthFailureError {\n\t \t\t \t\t Map<String,String> params = new HashMap<String, String>();\n\t \t\t \t\t params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n\t \t\t \t\t return params;\n\t \t \t\t \t}\n\t \t \t};\n\t \t\t\t// Access the RequestQueue through your singleton class.\n\t \t\t\tMyNetworkRequestsSingleton.getInstance(mContext).addToRequestQueue(cancelReservationRequest);\n\t \t\t\tmListener.onCloseActivity(); \t \n\t }", "public void childRegistration(String url, final ChildModel workerObj, final VolleyResponseListener volleyResponseListener){\r\n try {\r\n final RequestQueue queue = Volley.newRequestQueue(mContext);\r\n\r\n StringRequest req = new StringRequest(Request.Method.POST, url,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String s) {\r\n volleyResponseListener.onSuccess(s);\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError volleyError) {\r\n volleyResponseListener.onError(volleyError);\r\n Log.v(\"see error responce\",volleyError.toString());\r\n }\r\n })\r\n\r\n {\r\n\r\n\r\n @Override\r\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\r\n Log.v(\"see error responce\",response.toString());\r\n return super.parseNetworkResponse(response);\r\n\r\n\r\n }\r\n\r\n @Override\r\n protected Map<String, String> getParams(){\r\n HashMap<String, String> params = new HashMap<String, String>();\r\n\r\n String workerName,workerContact,workerCnic,workerFatherName,WorkerJobStatus;\r\n int workerTeam;\r\n params.put(\"child_name\",workerObj.getChild_name());\r\n params.put(\"child_father_name\",workerObj.getChild_father_name());\r\n params.put(\"child_father_cnic\",workerObj.getFather_cnic());\r\n params.put(\"child_family_no\",workerObj.getChild_family_no());\r\n params.put(\"child_location\",workerObj.getChild_location());\r\n params.put(\"child_reg_date\",workerObj.getChild_reg_date());\r\n params.put(\"entery_person_type\",workerObj.getEntery_person_type());\r\n\r\n\r\n\r\n return params;\r\n }\r\n };\r\n queue.add(req);\r\n\r\n\r\n\r\n }catch (Exception e){\r\n Log.v(\"see error responce\",e.toString());\r\n\r\n }\r\n\r\n }", "public void Connection(String email, String password) {\n RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());\n\n String URL = \"http://\"+ SessionManager.IPSERVER + \"/RestFullTEST-1.0-SNAPSHOT/account/signIn\";\n\n JSONObject jsonBody = new JSONObject();\n try {\n jsonBody.put(\"mail\", email);\n jsonBody.put(\"password\", password);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n Log.d(\"test\", jsonBody.toString());\n // Enter the correct url for your api service site\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL, jsonBody,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n uuidUser = response.getString(\"uuid\");\n sessionManager.Logout();\n\n //-----------if good account---------//\n if(!uuidUser.equals(\"0\")){\n\n SessionManager.age = response.getInt(\"age\");\n SessionManager.name = response.getString(\"name\");\n SessionManager.firstname = response.getString(\"firstname\");\n sessionManager.CreateSession(email, password);\n SessionManager.uuid = uuidUser;\n SignIn();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n mail.setText(\"Error Json\");\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n mail.setText(\"Error getting response\");\n }\n });\n requestQueue.add(jsonObjectRequest);\n }", "@FormUrlEncoded\n @POST(\"api/Paslon/tampil\")\n Call<GetPaslon> postPaslon(@Field(\"id_kategori\") String id_kategori);", "@Override\n public void onClick(View view) {\n String name, uname, cnic, password, phone, address;\n EditText etName, etUserName, etCinc, etPassword, etPhone, etAddress;\n\n etName = (EditText) findViewById(R.id.txtColName_signup);\n if (etName.getText().toString().length() == 0)\n etName.setError(\"plz enter Name..!\");\n\n etUserName = (EditText) findViewById(R.id.txtColUserName_signup);\n if (etUserName.getText().toString().length() == 0)\n etUserName.setError(\"plz enter User Name..!\");\n\n etCinc = (EditText) findViewById(R.id.txtColCNIC);\n if (etCinc.getText().toString().length() == 0)\n etCinc.setError(\"plz enter CNIC..!\");\n\n etPassword = (EditText) findViewById(R.id.txtColPassword_signup);\n if (etPassword.getText().toString().length() == 0)\n etPassword.setError(\"plz enter Password..!\");\n\n etPhone = (EditText) findViewById(R.id.txtColPhone_signup);\n if (etPhone.getText().toString().length() == 0)\n etPhone.setError(\"plz enter Phone..!\");\n\n etAddress = (EditText) findViewById(R.id.txtColAddress_signup);\n if (etAddress.getText().toString().length() == 0)\n etAddress.setError(\"plz enter Address..!\");\n\n name = etName.getText().toString();\n uname = etUserName.getText().toString();\n cnic = etCinc.getText().toString();\n password = etPassword.getText().toString();\n phone = etPhone.getText().toString();\n address = etAddress.getText().toString();\n\n\n String url = \"http://192.168.2.23:8040/Service1.svc/CollectorSignUp/\" +\"/\"+ name +\"/\"+ address +\"/\"+ phone +\"/\"+ cnic +\"/\"+ uname +\"/\"+ password;\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(CollectorSignUp.this, error.getMessage() + \"\", Toast.LENGTH_SHORT).show();\n }\n });\n RQ.add(stringRequest);\n }", "public void changePassword(String url, final String id, final String password, final VolleyResponseListener volleyResponseListener){\r\n try {\r\n final RequestQueue queue = Volley.newRequestQueue(mContext);\r\n\r\n StringRequest req = new StringRequest(Request.Method.POST, url,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String s) {\r\n volleyResponseListener.onSuccess(s);\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError volleyError) {\r\n volleyResponseListener.onError(volleyError);\r\n Log.v(\"see error responce\",volleyError.toString());\r\n }\r\n })\r\n\r\n {\r\n\r\n\r\n @Override\r\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\r\n Log.v(\"see error responce\",response.toString());\r\n return super.parseNetworkResponse(response);\r\n\r\n\r\n }\r\n\r\n @Override\r\n protected Map<String, String> getParams(){\r\n HashMap<String, String> params = new HashMap<String, String>();\r\n\r\n String workerName,workerContact,workerCnic,workerFatherName,WorkerJobStatus;\r\n int workerTeam;\r\n\r\n http://alefcabs.com/dev/apis/pax_login.php?pax_mobile_number=0303&pax_password=alifcabs\r\n params.put(\"id\",id);\r\n params.put(\"password\",password);\r\n\r\n\r\n\r\n\r\n\r\n return params;\r\n }\r\n };\r\n queue.add(req);\r\n\r\n\r\n\r\n }catch (Exception e){\r\n Log.v(\"see error responce\",e.toString());\r\n\r\n }\r\n\r\n }", "public interface RegisterService {\n @POST(\"register.php\")\n Call<RegisterResponse>getRegisterResponse(@Body RegisterForm registerForm);\n}", "private void makeJsonObjReq(JSONObject json,String url,final String file) {\n\t\t showProgressDialog();\n\t\t\tRequestQueue mRequestQueue = Volley.newRequestQueue(getApplicationContext());\n\t\t\tJsonUTF8Request jsonObjReq = new JsonUTF8Request(Method.POST,\n\t\t\t\turl, json,\n\t\t\t\tnew Response.Listener<JSONObject>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\t\t\tLog.d(TAG, response.toString());\n\t\t\t\t\t // Dismiss the progress dialog\n\t\t\t\t\t\t \t JSONObject jsonObjSend = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tjsonObjSend = new JSONObject(response.toString());\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\t\t\t\tparseJsonFeed(response, file);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t \t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} \n \n\t\t\t\t\t\thideProgressDialog();\n\t\t\t\t\t}\n\t\t\t\t}, new Response.ErrorListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\tVolleyLog.d(TAG, \"Error: \" + error.getMessage());\n\t\t\t\t\t\tif(incrConnexion<=Const.count)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpublier();\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\tToast.makeText(getBaseContext(),getString(R.string.st_connection_failled), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\thideProgressDialog();\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tincrConnexion++;\n\t\t\t\t\t}\n\t\t\t\t}) {\n\n\t\t\t/**\n\t\t\t * Passing some request headers\n\t\t\t * */\n\t\t\t@Override\n\t\t\tpublic Map<String, String> getHeaders() throws AuthFailureError {\n\t\t\t\tHashMap<String, String> headers = new HashMap<String, String>();\n\t\t\t\theaders.put(\"Content-Type\", \"application/json;charset=UTF-8\");\n\t\t\t\treturn headers;\n\t\t\t}\n \n\n\t\t};\n\t\t/*\n\t\tint socketTimeout = Const.timer_connection_request;//30 seconds - change to what you want\n\t\tRetryPolicy policy = new DefaultRetryPolicy(socketTimeout, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);\n\t\tjsonObjReq.setRetryPolicy(policy);\n\t\tmRequestQueue.add(jsonObjReq);\n\t\t*/\n\t\t// Adding request to request queue\n\t\tAppController.getInstance().addToRequestQueue(jsonObjReq,\n\t\t\t\ttag_json_obj);\n \t}", "private void crearUsuarioWS(RequestParams params){\n prgDialog.show();\n AsyncHttpClient client = new AsyncHttpClient();\n client.post(ws.urlservice+\"registroCliente\", params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n prgDialog.dismiss();\n if(statusCode==201){\n //Toast.makeText(getApplicationContext(), \"Registro con Exito!\", Toast.LENGTH_SHORT).show();\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(\"Registro con Exito!\");\n builder.setMessage(\"Por favor revise su correo electrónico para verificar su cuenta.\").setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n AlertDialog alert = builder.create();\n alert.setCancelable(false);\n alert.show();\n }else{\n Toast.makeText(getApplicationContext(), \"No se pudo guardar el registro!\", Toast.LENGTH_SHORT).show();\n }\n }\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n prgDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Ocurrio un error con el servidor\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void sendParentFeedback(String url, final Parents_Model parents_model, final VolleyResponseListener volleyResponseListener){\r\n try {\r\n final RequestQueue queue = Volley.newRequestQueue(mContext);\r\n\r\n StringRequest req = new StringRequest(Request.Method.POST, url,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String s) {\r\n volleyResponseListener.onSuccess(s);\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError volleyError) {\r\n volleyResponseListener.onError(volleyError);\r\n Log.v(\"see error responce\",volleyError.toString());\r\n }\r\n })\r\n\r\n {\r\n\r\n\r\n @Override\r\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\r\n Log.v(\"see error responce\",response.toString());\r\n return super.parseNetworkResponse(response);\r\n\r\n\r\n }\r\n\r\n @Override\r\n protected Map<String, String> getParams(){\r\n HashMap<String, String> params = new HashMap<String, String>();\r\n\r\n String workerName,workerContact,workerCnic,workerFatherName,WorkerJobStatus;\r\n int workerTeam;\r\n\r\n http://alefcabs.com/dev/apis/pax_login.php?pax_mobile_number=0303&pax_password=alifcabs\r\n params.put(\"father_name\",parents_model.getFeedback_father_name());\r\n params.put(\"date\",parents_model.getFeedback_date());\r\n params.put(\"family_no\",parents_model.getFeedbac_family_number());\r\n params.put(\"description\",parents_model.getFeedback_decrition());\r\n params.put(\"cnic\",parents_model.getFeedbac_cnic());\r\n params.put(\"address\",parents_model.getFeedback_address());\r\n\r\n\r\n\r\n\r\n return params;\r\n }\r\n };\r\n queue.add(req);\r\n\r\n\r\n\r\n }catch (Exception e){\r\n Log.v(\"see error responce\",e.toString());\r\n\r\n }\r\n\r\n }", "public static void ObtenerCanjeFi(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/CanjeFi\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "public interface NetService {\n\n\n @FormUrlEncoded\n @POST(\"getcode\")\n Call<CodeResponse> getCode(@Field(\"tel\") String tel);\n\n @FormUrlEncoded\n @POST(\"setinfo\")\n Call<UserInfo> updateUserInfo(@FieldMap() Map appNo);\n\n @FormUrlEncoded\n @POST(\"setmode\")\n Call<ResultData> setMode(@Field(\"tel\") String tel, @Field(\"up\")String up, @Field(\"down\")String down, @Field(\"time\")String time);\n\n @FormUrlEncoded\n @POST(\"getMode\")\n Call<List<ModelData>> getMode(@Field(\"tel\")String tel);\n\n @FormUrlEncoded\n @GET(\"getnews\")\n Call<BaseResponse> getNews();\n\n\n}" ]
[ "0.773", "0.73616755", "0.71325344", "0.7099549", "0.70725566", "0.7035198", "0.7008946", "0.69763386", "0.69417745", "0.6905391", "0.68908024", "0.6867595", "0.68530077", "0.685231", "0.68229836", "0.67902476", "0.6767971", "0.6734729", "0.673344", "0.6732163", "0.6729906", "0.672978", "0.6724527", "0.66621554", "0.6661309", "0.66409624", "0.659465", "0.65910375", "0.65728027", "0.6558494", "0.65558857", "0.6534044", "0.6526122", "0.6501656", "0.6480758", "0.6462272", "0.64499646", "0.6418479", "0.63932407", "0.6362364", "0.6359024", "0.63446486", "0.63397825", "0.63182586", "0.631228", "0.6302566", "0.6298718", "0.62914044", "0.6288656", "0.6284281", "0.6277896", "0.6274584", "0.6273484", "0.6253888", "0.6250812", "0.6246264", "0.6239778", "0.623925", "0.62320155", "0.6230207", "0.62179095", "0.6215428", "0.62034124", "0.6180801", "0.6180345", "0.6177902", "0.6177902", "0.6174222", "0.61716014", "0.6162418", "0.6157326", "0.61549664", "0.61549664", "0.61549664", "0.6150283", "0.61490315", "0.61438274", "0.6140379", "0.6136361", "0.6126183", "0.61255336", "0.61234456", "0.6121395", "0.61137974", "0.6112765", "0.6108204", "0.6084355", "0.6081679", "0.60802907", "0.6080113", "0.6079111", "0.60741657", "0.60698897", "0.6053235", "0.60525477", "0.6048773", "0.6048401", "0.60475826", "0.6047426", "0.60451853" ]
0.67338467
18
Mengubah string json ke Kelas Result menggunakan GSON (Pelajari :
public void processResult(String json){ Result res = gson.fromJson(json, Result.class); // Jika tidak terdapat error, maka lakukan pemrosesan data // dan ditampilkan pada TextView. res.getError(); MainActivity mainActivity = new MainActivity(); mainActivity.tvHasil.setText(res.getResult().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getJson();", "String getJson();", "String getJson();", "public String getJson();", "public abstract String toJsonString();", "public void setResultJson(java.lang.String value) {\n this.result_json = value;\n }", "String getJSON();", "@Override\r\n\tprotected ProfitHistoryDetalleResponse responseText(String json) {\n\t\tProfitHistoryDetalleResponse response = JSONHelper.desSerializar(json,ProfitHistoryDetalleResponse.class);\r\n\t\treturn response;\r\n\t}", "public java.lang.String getResultJson() {\n return result_json;\n }", "@Override\n\tpublic Object onSuccess(String str) {\n\t\treturn new Gson().fromJson(str, Result.class);\n\t}", "@Override\n public String toString() {\n return jsonString;\n }", "public java.lang.String getResultJson() {\n return result_json;\n }", "@Override\n protected void onPostExecute(String result) {\n Gson gson = new Gson(); //iz Jsona napravi objekte unutar jave\n ArhivaRoot arhivaRoot = gson.fromJson(result, ArhivaRoot.class);\n\n textView.setText(joinRows(arhivaRoot.getRows()));\n mProgressDialog.dismiss();\n }", "public abstract String toJson();", "private JsonValidate convertFromJson(String result) {\n JsonValidate jv = null;\n if (result != null && result.length() > 0) {\n try {\n Gson gson = new Gson();\n jv = gson.fromJson(result, JsonValidate.class);\n } catch (Exception ex) {\n Log.v(Constants.LOG_TAG, \"Error: \" + ex.getMessage());\n }\n }\n return jv;\n }", "@Override\r\n\tprotected GuardarVtaCeroMotivoResponse responseText(String json) {\n\t\tGuardarVtaCeroMotivoResponse guardarVtaCeroMotivoResponse = JSONHelper.desSerializar(json, GuardarVtaCeroMotivoResponse.class);\r\n\t\treturn guardarVtaCeroMotivoResponse;\r\n\t}", "private String getJsonFromServiceResult(BookServiceResult bookServiceResult) {\n final JSONObject returnJsonObject = new JSONObject();\n returnJsonObject.put(\"Status\", bookServiceResult.getStatus().getStatusCode());\n returnJsonObject.put(\"Message\", bookServiceResult.getMessage());\n return returnJsonObject.toString();\n }", "@Override\r\n\tprotected ConsultarIndiceEjecucionAnioResponse responseText(String json) {\n\t\tConsultarIndiceEjecucionAnioResponse response = JSONHelper.desSerializar(json, ConsultarIndiceEjecucionAnioResponse.class);\r\n\t\treturn response;\r\n\t}", "public void gsonData() {\n Gson gson = new Gson();\n gson.toJson(list);\n System.out.println(\"gson string is :----->\" + list);\n }", "@Override\r\n\tprotected GuardarSustentoResponse responseText(String json) {\n\t\tGuardarSustentoResponse guardarSustentoResponse = JSONHelper.desSerializar(json, GuardarSustentoResponse.class);\r\n\t\treturn guardarSustentoResponse;\r\n\t}", "void mo59932a(String str, JSONObject jSONObject);", "public static String convertirGson(Partida partida) {\n Gson gson = new Gson();\n String objeto = gson.toJson(partida);\n return objeto;\n }", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n\n JSONObject rezultat = new JSONObject();\n\n List<Korisnici> korisnici = korisniciFacade.findAll();\n\n \n\n try {\n for (Korisnici k : korisnici) {\n if (k.getIdkorisnik() == Long.parseLong(id)) {\n\n SoapListaAdresa soapOdgovor = listaDodanihAdresaBesplatno(k.getKorisnickoime(), k.getLozinka());\n\n List<Adresa> adrese = soapOdgovor.getAdrese();\n \n JSONArray jsonPolje = new JSONArray();\n int brojac = 0;\n for (Adresa a : adrese) {\n JSONObject jsonAdresa = new JSONObject();\n jsonAdresa.put(\"idadresa\", a.getIdadresa());\n jsonAdresa.put(\"adresa\", a.getAdresa());\n jsonAdresa.put(\"lat\", a.getGeoloc().getLatitude());\n jsonAdresa.put(\"long\", a.getGeoloc().getLongitude());\n jsonPolje.put(brojac,jsonAdresa);\n brojac++;\n }\n rezultat.put(\"adrese\", jsonPolje);\n } \n }\n return rezultat.toString();\n } catch (JSONException ex) {\n Logger.getLogger(MeteoRESTResource.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public static String JsonToString(JsonObject jso, String param, String defaulx) {\n try {\n JsonElement res = securGetJSON(jso, param);\n if (res != null) {\n String result = res.getAsString();\n result = result.trim().replace(\"\\n\", \"\\\\n\").replace(\"\\t\", \"\\\\t\").replace(\"'\", \"''\");\n return result;\n } else {\n return defaulx;\n }\n } catch (Exception e) {\n// System.out.println(\"erro json a string\");\n return defaulx;\n }\n }", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "private String parseResultSingle(String jsonString) {\n String ans = \"\";\n JSONArray obj = new JSONArray(jsonString);\n\n // meaning\n JSONArray obj2 = new JSONArray(obj.get(0).toString());\n JSONArray meaning = new JSONArray(obj2.get(0).toString());\n\n ans += (String) (\"\\n\" + meaning.get(1) + \" | \" + meaning.get(0) + \"\\n\");\n // different meaning\n JSONArray obj3 = new JSONArray(obj.get(1).toString());\n for (Object o : obj3) {\n JSONArray example = new JSONArray(o.toString());\n ans += (String) (\"\\n- \" + example.get(0) + \": \");\n JSONArray exampleWords = new JSONArray(example.get(1).toString());\n for (Object o2 : exampleWords) {\n ans += (String) (o2.toString() + \", \");\n }\n ans = ans.substring(0, ans.length() - 2);\n ans += (String) (\"\\n\");\n }\n return ans;\n }", "protected abstract Object buildJsonObject(R response);", "void mo16412a(String str, JSONObject jSONObject);", "public String pasarAjson(ArrayList<Cliente> miLista){\n String textoenjson;\n Gson gson = new Gson();\n textoenjson = gson.toJson(miLista);\n\n\n return textoenjson;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String consultarSolicitudes()\n {\n Object objeto = sdao.consultaGeneral();\n return gson.toJson(objeto);\n }", "private String parseJsonResult(String json) {\n final JsonElement parsed = new JsonParser().parse(json);\n if (parsed.isJsonObject()) {\n final JsonObject obj = parsed.getAsJsonObject();\n if (obj.has(\"result\")) {\n return obj.get(\"result\").getAsString();\n }\n if(obj.has(\"error\")) {\n return obj.get(\"error\").getAsString();\n }\n }\n return \"no json received: \" + json;\n }", "@Override\r\n\tprotected ActualizarCompromisoResponse responseText(String json) {\n\t\tActualizarCompromisoResponse response = JSONHelper.desSerializar(json, ActualizarCompromisoResponse.class);\r\n\t\treturn response;\r\n\t}", "public String getJsonFromRequest(HttpResponse httpResult)\n throws ParseException, IOException {\n String stringResult = null;\n stringResult = EntityUtils.toString(httpResult.getEntity(), \"UTF-8\");\n return stringResult;\n }", "void mo26099a(String str, JSONObject jSONObject);", "@Override\r\n\tprotected ActualizarClienteResponse responseText(String json) {\n\t\tActualizarClienteResponse actualizarClienteResponse = JSONHelper.desSerializar(json, ActualizarClienteResponse.class);\r\n\t\treturn actualizarClienteResponse;\r\n\t}", "String toJSON();", "public String renderJsonString(Object model) {\r\n \r\n StringBuffer buffer = new StringBuffer();\r\n jsonSerializer.deepSerialize(model, buffer);\r\n StringBuilder jsonResponse = new StringBuilder();\r\n jsonResponse.append(buffer);\r\n \r\n //Pattern.compile(regex).matcher(str).replaceAll(repl)\r\n String s = pattrenEscapedBackquote.matcher(jsonResponse.toString()).replaceAll(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n //String s = jsonResponse.toString().replaceAll(\"\\\\\\\\\\\\\\\\\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n s = pattrenEscapedQuoubleQuotePrefixedwithBackquote.matcher(s).replaceAll(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\");\r\n //s = s.replaceAll(\"\\\\\\\\\\\\\\\"\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\");\r\n s = pattrenForDoubleQuote.matcher(s).replaceAll(\"$1\\\\\\\\\\\"\");\r\n s = pattrenEscapedQuoubleQuoteNotPrefixedwithBackquote.matcher(s).replaceAll(\"$1\\\\\\\\\\\"\");\r\n //s = s.replaceAll(\"([^\\\\\\\\])\\\"\", \"$1\\\\\\\\\\\"\");\r\n \r\n return (\"\\\"\" + s + \"\\\"\");\r\n }", "public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}", "private String notificacionesSRToJson(List<DaNotificacion> notificacions){\n String jsonResponse=\"\";\n Map<Integer, Object> mapResponse = new HashMap<Integer, Object>();\n Integer indice=0;\n for(DaNotificacion notificacion : notificacions){\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"idNotificacion\",notificacion.getIdNotificacion());\n if (notificacion.getFechaInicioSintomas()!=null)\n map.put(\"fechaInicioSintomas\",DateUtil.DateToString(notificacion.getFechaInicioSintomas(), \"dd/MM/yyyy\"));\n else\n map.put(\"fechaInicioSintomas\",\" \");\n map.put(\"codtipoNoti\",notificacion.getCodTipoNotificacion().getCodigo());\n map.put(\"tipoNoti\",notificacion.getCodTipoNotificacion().getValor());\n map.put(\"fechaRegistro\",DateUtil.DateToString(notificacion.getFechaRegistro(), \"dd/MM/yyyy\"));\n map.put(\"SILAIS\",notificacion.getCodSilaisAtencion()!=null?notificacion.getCodSilaisAtencion().getNombre():\"\");\n map.put(\"unidad\",notificacion.getCodUnidadAtencion()!=null?notificacion.getCodUnidadAtencion().getNombre():\"\");\n //Si hay persona\n if (notificacion.getPersona()!=null){\n /// se obtiene el nombre de la persona asociada a la ficha\n String nombreCompleto = \"\";\n nombreCompleto = notificacion.getPersona().getPrimerNombre();\n if (notificacion.getPersona().getSegundoNombre()!=null)\n nombreCompleto = nombreCompleto +\" \"+ notificacion.getPersona().getSegundoNombre();\n nombreCompleto = nombreCompleto+\" \"+notificacion.getPersona().getPrimerApellido();\n if (notificacion.getPersona().getSegundoApellido()!=null)\n nombreCompleto = nombreCompleto +\" \"+ notificacion.getPersona().getSegundoApellido();\n map.put(\"persona\",nombreCompleto);\n //Se calcula la edad\n int edad = DateUtil.calcularEdadAnios(notificacion.getPersona().getFechaNacimiento());\n map.put(\"edad\",String.valueOf(edad));\n //se obtiene el sexo\n map.put(\"sexo\",notificacion.getPersona().getSexo().getValor());\n if(edad > 12 && notificacion.getPersona().isSexoFemenino()){\n map.put(\"embarazada\", envioMxService.estaEmbarazada(notificacion.getIdNotificacion()));\n }else\n map.put(\"embarazada\",\"--\");\n if (notificacion.getMunicipioResidencia()!=null){\n map.put(\"municipio\",notificacion.getMunicipioResidencia().getNombre());\n }else{\n map.put(\"municipio\",\"--\");\n }\n }else{\n map.put(\"persona\",\" \");\n map.put(\"edad\",\" \");\n map.put(\"sexo\",\" \");\n map.put(\"embarazada\",\"--\");\n map.put(\"municipio\",\"\");\n }\n\n mapResponse.put(indice, map);\n indice ++;\n }\n jsonResponse = new Gson().toJson(mapResponse);\n UnicodeEscaper escaper = UnicodeEscaper.above(127);\n return escaper.translate(jsonResponse);\n }", "public JSONArray connectWSPut_Get_Data(String url, JSONObject json, String jsonName) {\n\t\t\n\t\tJSONArray jarr = null;\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// cach khac de thay vao entity __________________________________\n\t\t\tStringEntity se = new StringEntity(json.toString(), \"UTF-8\");\n\t\t\tInputStreamEntity ise = new InputStreamEntity(new ByteArrayInputStream(json.toString().getBytes(\"UTF-8\")), -1);\n\t\t\t// ---------------------------------------------------------------------\n\t\t\tHttpParams httpParams = new BasicHttpParams();\n\t\t\tHttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);\n\t\t\tHttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);\n\t\t\t// -----------------------\n\t\t\tHttpClient client = new DefaultHttpClient(httpParams);\n\n\t\t\tHttpPost request = new HttpPost(url);\n\t\t\t\n\t\t\t// set POST request\n\t\t\trequest.setEntity(new ByteArrayEntity(json.toString().getBytes(\"UTF-8\")));\n\t\t\t\t\t\t\t\n\t\t\tLog.d(\"fuck\", \"fuck\");\t// oh, this so fun :>\n\t\t\t\n\t\t\t///??????????????????????????????\n\t\t\t// it use for debug?\n\t\t\trequest.setHeader(\"json\", json.toString());\n\t\t\tLog.e(\"fuck\", json.toString());\n\t\t\t\n\t\t\tHttpResponse response = client.execute(request);\n\t\t\tHttpEntity entity = response.getEntity();\n\n\t\t\tInputStream instream = entity.getContent();\n\t\t\t\n\t\t\t// test\n\t\t\t// no connect to server\n\t\t\t// set hardstring to result :>\n\t\t\t//String result = \"{\\\"voucher\\\":[{\\\"_id\\\":38,\\\"code_id\\\":\\\"BSM840-12\\\",\\\"product_name\\\":\\\"BSTONE 12\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"abc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590100\\\"},{\\\"_id\\\":41,\\\"code_id\\\":\\\"BSM840-11\\\",\\\"product_name\\\":\\\"BSTONE 11\\\",\\\"group_id\\\":\\\"11.00R20\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"abc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590101\\\"},{\\\"_id\\\":43,\\\"code_id\\\":\\\"5555\\\",\\\"product_name\\\":\\\"55555\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR16\\\",\\\"note\\\":\\\"555555\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590102\\\"},{\\\"_id\\\":44,\\\"code_id\\\":\\\"MVT101\\\",\\\"product_name\\\":\\\"BSBMW\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR20\\\",\\\"note\\\":null,\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 21 2014 4:52PM\\\",\\\"update_date\\\":\\\"Apr 21 2014 4:52PM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590103\\\"},{\\\"_id\\\":45,\\\"code_id\\\":\\\"LOPHONDA\\\",\\\"product_name\\\":\\\"CRB\\\",\\\"group_id\\\":\\\"11.00R18\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":null,\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 21 2014 4:55PM\\\",\\\"update_date\\\":\\\"Apr 21 2014 4:55PM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590104\\\"},{\\\"_id\\\":46,\\\"code_id\\\":\\\"MH01\\\",\\\"product_name\\\":\\\"CSTONE 22\\\",\\\"group_id\\\":\\\"11.00R18\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"fvssdsc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 8:49AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 8:49AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590105\\\"},{\\\"_id\\\":47,\\\"code_id\\\":\\\"123\\\",\\\"product_name\\\":\\\"acb123\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR13\\\",\\\"note\\\":\\\"fdff\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 10:04AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 10:04AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590106\\\"},{\\\"_id\\\":48,\\\"code_id\\\":\\\"T555\\\",\\\"product_name\\\":\\\"555\\\",\\\"group_id\\\":\\\"thuoc ngoai\\\",\\\"type_id\\\":\\\"nhom ngoai\\\",\\\"note\\\":\\\"thuoc la\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"May 13 2014 12:00AM\\\",\\\"update_date\\\":\\\"May 13 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\" \\\"}]}\";\n\t\t\t\n\t\t\t\n\t\t\tString result = ConfigurationWSRestClient.convertStreamToString(instream);\n\t\t\t\n\t\t\t//test\n\t\t\tLog.e(\"json string result\", result);\n\t\t\t//Log.e(\"jsonName\", jsonName);\n\t\t\t\n\t\t\t\n\t\t\t// decode string to jsonobject\n\t\t\tJSONObject jobj = new JSONObject(result);\n\t\t\tjarr = jobj.getJSONArray(jsonName);\n\n\t\t} catch (Exception t) { }\n\t\t\n\t\t\n\t\treturn jarr;\n\t}", "public String toJson() { return new Gson().toJson(this); }", "private int returnParsedJsonObject(String result){\n\n JSONObject resultObject = null;\n int returnedResult = 0;\n try {\n resultObject = new JSONObject(result);\n returnedResult = resultObject.getInt(\"success\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n Log.d(\"PRUEBA\",\"se obtubo en el JSON: \"+returnedResult);\n return returnedResult;\n }", "public Producto[] parseResponse(String jsonAsString){\r\n\r\n //manually parsing to productos\r\n JsonParser parser = new JsonParser();\r\n JsonObject rootObject = parser.parse(jsonAsString).getAsJsonObject();\r\n JsonElement projectElement = rootObject.get(\"productos\");\r\n\r\n Producto [] productos = null;\r\n\r\n if(projectElement != null){\r\n\r\n QuantityDictionay.debugLog(\"LOS PRODUCTOS--->\"+projectElement.toString());\r\n\r\n //Use Gson to map response\r\n Gson gson = new Gson();\r\n //set type of response\r\n Type collectionType = new TypeToken<Producto[]>(){}.getType();\r\n //get java objects from json string\r\n productos = gson.fromJson(projectElement.toString(),collectionType);\r\n\r\n QuantityDictionay.debugLog(\"PARSING SIZE---->\"+productos.length);\r\n\r\n }\r\n\r\n\r\n return productos;\r\n\r\n }", "private String getListData() {\n String jsonStr = \"{ \\\"users\\\" :[\" +\n \"{\\\"name\\\":\\\"Ritesh Kumar\\\",\\\"designation\\\":\\\"Team Leader\\\",\\\"department\\\":\\\"Main office\\\",\\\"location\\\":\\\"Brampton\\\"}\" +\n \",{\\\"name\\\":\\\"Frank Lee\\\",\\\"designation\\\":\\\"Developer\\\",\\\"department\\\":\\\"Developer's office\\\",\\\"location\\\":\\\"Markham\\\"}\" +\n \",{\\\"name\\\":\\\"Arthur Young\\\",\\\"designation\\\":\\\"Charted Accountant\\\",\\\"department\\\":\\\"Account office\\\",\\\"location\\\":\\\"Toronto\\\"}] }\";\n return jsonStr;\n }", "public static String getResultFromMap(Map<String, Object> result) {\n\t\tString userJsonStr=\"\";\n\t\ttry {\n\t\t\tuserJsonStr = JSON.toJSONString(result);\n\t\t\treturn userJsonStr;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public String createJsonObject() {\n JSONObject jsonObject = new JSONObject();\n\n try {\n if (!vslaId.equalsIgnoreCase(\"-1\")) {\n // editing existing information\n jsonObject.put(\"VslaId\", vslaId);\n }\n jsonObject.put(\"GroupSupport\", grpSupportType);\n jsonObject.put(\"VslaName\", vslaName);\n jsonObject.put(\"grpPhoneNumber\", grpPhoneNumber);\n jsonObject.put(\"PhysicalAddress\", physAddress);\n jsonObject.put(\"GpsLocation\", locCoordinates);\n jsonObject.put(\"representativeName\", representativeName);\n jsonObject.put(\"representativePosition\", representativePost);\n jsonObject.put(\"GroupAccountNumber\", grpBankAccount);\n jsonObject.put(\"repPhoneNumber\", repPhoneNumber);\n jsonObject.put(\"RegionName\", regionName);\n jsonObject.put(\"tTrainerId\", tTrainerId);\n jsonObject.put(\"Status\", \"2\");\n jsonObject.put(\"numberOfCycles\", numberOfCycles);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }", "public io.confluent.developer.InterceptTest.Builder setResultJson(java.lang.String value) {\n validate(fields()[7], value);\n this.result_json = value;\n fieldSetFlags()[7] = true;\n return this;\n }", "public static String getJson() {\n\t\treturn jsonString;\n\t}", "public static void main(String[] args) {\n Gson json = new Gson();\n RestPregunta client = new RestPregunta();\n ArrayList value = client.getPreguntasCuestionario(ArrayList.class, \"68\");\n for(Object ob: value){ \n System.out.println(ob);\n Pregunta pregunta = json.fromJson(ob.toString(), Pregunta.class);\n System.out.println(pregunta.getPregunta());\n }\n client.close();\n //Gson json = new Gson();\n RestPregunta restPregunta = new RestPregunta();\n ArrayList<Pregunta> lista = new ArrayList();\n ArrayList values = restPregunta.getPreguntasCuestionario(ArrayList.class,\"68\");\n for(Object pro: values){\n Pregunta pregunta = json.fromJson(pro.toString(), Pregunta.class);\n lista.add(new Pregunta(pregunta.getIdPregunta(), pregunta.getIdCuestionario(), pregunta.getPuntoAsignado(), pregunta.getPuntoObtenido(), pregunta.getPregunta())); \n }\n// Pregunta pregunta = client.getPregunta(Pregunta.class, \"1\");\n// System.out.println(pregunta);\n// System.out.println(pregunta.toString());\n \n// ArrayList value = client.getPreguntas(ArrayList.class);\n // ArrayList<Pregunta> list = new ArrayList();\n// System.out.println(value);\n \n //list.add(pregunta);\n \n //System.out.println(pregunta.getArchivoimg2());\n \n// Pregunta p = new Pregunta(1,14,400,300,\"5000?\",\"C:\\\\Users\\\\Matias\\\\Pictures\\\\Pictures\\\\Sample Pictures\\\\Desert.jpg\", inputStream,\" \");\n //Object ob = p;\n// client.addPregunta(p, Pregunta.class);\n// System.out.println(list);\n \n }", "public void getResult(String str) {\n\n json = null;\n\n final QueryRes qs = (QueryRes) getActivity().getApplication();\n Activity activity = getActivity();\n pre_btn = (Button) activity.findViewById(R.id.pre_btn);\n next_btn = (Button) activity.findViewById(R.id.next_btn);\n //final QueryRes data = (QueryRes) get\n if(str == \"Users\") {\n if(qs.getUser_obj() != null) {\n json = qs.getUser_obj();\n }\n listems = QueryRes.user_fav_list;\n } else if(str == \"Pages\") {\n if(qs.getPage_obj() != null) {\n json = qs.getPage_obj();\n }\n listems = QueryRes.page_fav_list;\n } else if(str == \"Events\") {\n if(qs.getEvent_obj() != null) {\n json = qs.getEvent_obj();\n }\n listems = QueryRes.event_fav_list;\n } else if(str == \"Places\") {\n if(qs.getPlace_obj() != null) {\n json = qs.getPlace_obj();\n }\n listems = QueryRes.place_fav_list;\n } else {\n if(qs.getGroup_obj() != null) {\n json = qs.getGroup_obj();\n }\n listems = QueryRes.group_fav_list;\n }\n if(json != null) {\n parseJson(json);\n }\n\n\n\n\n\n //parseJson(json);\n\n // System.out.println(\"cooo\" + po);\n //return po;\n }", "String toJson() throws IOException;", "public String composeJSONfromSQLite()\n {\n ArrayList<User> wordList;\n wordList = new ArrayList<User>();\n String selectQuery = \"SELECT * FROM UsersTable where udpateStatus = '\"+\"no\"+\"'\";\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) \n\t\t{\n do {\n \tUser data=new User(cursor.getString(0),cursor.getString(1),cursor.getString(2), cursor.getString(3),cursor.getString(4),cursor.getString(6));\n wordList.add(data);\n } \n while (cursor.moveToNext());\n }\n database.close();\n Gson gson = new GsonBuilder().create();\n //Use GSON to serialize Array List to JSON \n return gson.toJson(wordList);\n }", "JsonObject raw();", "public JSONObject transformer() {\n JSONObject jsonObject = new JSONObject();\n JSONArray listening = new JSONArray();\n JSONArray listening_correction = new JSONArray();\n JSONArray reading = new JSONArray();\n JSONArray reading_correction = new JSONArray();\n JSONArray historique = new JSONArray();\n\n for (int i = 0; i < this.listening.size(); i++) {\n listening.put(this.listening.get(i).whoIs());\n listening_correction.put(this.listening_correction.get(i).whoIs());\n }\n\n for (int j = 0; j < this.reading.size(); j++) {\n reading.put(this.reading.get(j).whoIs());\n reading_correction.put(this.reading_correction.get(j).whoIs());\n }\n\n for(int k=0; k < this.historique.size(); k++){\n historique.put( transforme(this.historique.get(k)) );\n }\n\n try {\n jsonObject.put(\"nom\", this.nom);\n jsonObject.put(\"listening\", listening);\n jsonObject.put(\"reading\", reading);\n jsonObject.put(\"listening_correction\", listening_correction);\n jsonObject.put(\"reading_correction\", reading_correction);\n jsonObject.put(\"historique\",historique);\n jsonObject.put(\"etat\", this.etat);\n jsonObject.put(\"mode\", this.mode);\n jsonObject.put(\"est_termine\", this.est_termine);\n jsonObject.put(\"chronometre\", this.chronometre);\n Log.i(\"jsonObject\",jsonObject.toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return jsonObject;\n }", "protected abstract String getJSON(B bean);", "@Override\n public void onResponse(String response) {\n Log.d(\"Response: \",response);\n try {\n JSONObject g = new JSONObject(response);\n JSONArray nombres = g.names();\n if(g.has(\"error\")){\n Toast.makeText(getActivity(),g.getString(\"mensaje\"),Toast.LENGTH_LONG).show();\n return;\n }else{//si no muestra ningun error estoy recibiendo datos\n for (int i =0; i<nombres.length();i++){\n JSONObject elementoLista = g.getJSONObject(nombres.getString(i));\n if(elementoLista.has(\"error\")){\n Toast.makeText(getActivity(),elementoLista.getString(\"mensaje\"),Toast.LENGTH_LONG).show();\n return;\n }else{\n\n activarBotonInicioTerapia();\n\n DecimalFormat dc = new DecimalFormat(\"00.00\");\n String x = dc.format(elementoLista.getDouble(\"x\"));\n String y = dc.format(elementoLista.getDouble(\"y\"));\n String z = dc.format(elementoLista.getDouble(\"z\"));\n ParametrosJuego pj = new ParametrosJuego(nombres.getString(i),x,y,z);\n //parametrosJuegoDataList.add(new ParametrosJuego(\"eje1\",\"1\",\"2\",\"3\"));\n params.add(pj);\n Toast.makeText(getActivity(),\"Si hubo datos\",Toast.LENGTH_LONG).show();\n }\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }finally {\n inicializarAdaptadorParametrosJuego(params);\n }\n }", "public String toJson(final String object) {\n if (object != null && (object.startsWith(\"[\") || object.startsWith(\"{\")\n || (object.startsWith(\"\\\"[\") || object.startsWith(\"\\\"{\")))) {\n return object;\n } else\n return \"{\\\"\" + \"{\\\"success\\\" : 1}\" + \"\\\":\\\"\" + object + \"\\\"}\";\n }", "@Override\n protected void onPostExecute(String result) {\n // convert JSON string to a POJO\n JsonValidate jv = convertFromJson(result);\n if (jv != null) {\n Log.v(Constants.LOG_TAG, \"Conversion Succeed: \" + result);\n } else {\n Log.v(Constants.LOG_TAG, \"Conversion Failed\");\n }\n }", "public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }", "@GET\n //@Path(\"/{usuario}-{clave}\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response ConsultaItemsWS(@QueryParam(\"tipo\") String tipo, \n @QueryParam(\"cod_int\") String codigoIterno,\n @QueryParam(\"cod_alt\") String codigoAlterno,\n @QueryParam(\"descripcion\") String Descripcion,\n @QueryParam(\"linea\") String Linea\n ){\n String datos =\"[]\";\n JSONObject json = new JSONObject();\n JSONArray itemSelectedJson = new JSONArray();\n datos=item.ConsultaItems(tipo, codigoIterno, codigoAlterno, Descripcion, Linea);\n \n JsonParser parser = new JsonParser();\n\n // Obtain Array\n JsonArray gsonArr = parser.parse(datos).getAsJsonArray();\n json = new JSONObject();\n \n /*json.put(\"data\", gsonArr);\n json.put(\"mensaje\", \"ok\");\n json.put(\"codigo_error\", 1);\n itemSelectedJson.add(json);*/\n String datosJSON=\"{ \\\"data\\\":\"+gsonArr+\",\\\"mensaje\\\":\\\"ok\\\",\\\"codigo_error\\\":1}\";\n \n System.out.println(\"datosJSON: \"+datosJSON);\n //return Response.ok(itemSelectedJson.toString()).build();\n return Response.ok(datosJSON).build();\n }", "public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }", "public String CriteriatoJson() {\n\t\t\tJsonb jsonb = JsonbBuilder.create((new JsonbConfig().withFormatting(true)));\n\t\t \tString json = jsonb.toJson(criteria);\n\t\t\treturn json;\n\n\t }", "@Override\n\tpublic JSONObject findGauge(String jsonStr) throws Exception {\n\t\tJSONObject responseData = new JSONObject();\n\t\t try {\n\t\t\t JSONObject allData = JSONObject.fromObject(jsonStr);\n\t\t\t Integer type = allData.getInt(\"type\");\n\t\t\t String jianju_name = allData.getString(\"jianju_name\");\n\t\t\t if(type==1){\n\t\t\t\t List<SpecialGauge> specialGauges = fuliaoMapper.findSpecialGauge(\"%\"+jianju_name+\"%\", \"%\"+jianju_name+\"%\");\n\t\t \t\t\tif(specialGauges.size()!=0){\n\t\t \t\t\t\tJSONArray jsonArray = JSONArray.fromObject(specialGauges);\n\t\t \t\t\t\tresponseData.put(\"is_success\", \"1\");\n\t\t \t\t\t\tresponseData.put(\"type\", 1);\n\t\t \t\t\t\tresponseData.put(\"all\", jsonArray);\n\t\t \t\t\t\treturn responseData;\n\t\t \t\t\t}else{\n\t\t \t\t\t\tresponseData.put(\"is_success\", \"0\");\n\t\t \t\t\t\treturn responseData;\n\t\t \t\t\t}\n\t\t\t }else if(type==2){\n\t\t\t\t List<HeightGauge> heightGauges = fuliaoMapper.findHeightGauge(\"%\"+jianju_name+\"%\");\n\t\t \t\t\tif(heightGauges.size()!=0){\n\t\t \t\t\t\tJSONArray jsonArray = JSONArray.fromObject(heightGauges);\n\t\t \t\t\t\tresponseData.put(\"is_success\", \"1\");\n\t\t \t\t\t\tresponseData.put(\"type\", 2);\n\t\t \t\t\t\tresponseData.put(\"all\", jsonArray);\n\t\t \t\t\t\treturn responseData;\n\t\t \t\t\t}else{\n\t\t \t\t\t\tresponseData.put(\"is_success\", \"0\");\n\t\t \t\t\t\treturn responseData;\n\t\t \t\t\t}\n\t\t\t }else{\n\t\t\t\t responseData.put(\"is_success\", \"-1\");\n\t\t\t\t return responseData; \n\t\t\t }\n\t\t }catch(Exception e) {\n\t\t\t e.printStackTrace();\n\t\t\t responseData.put(\"is_success\", \"-1\");\n\t\t\t return responseData;\n\t\t }\n\t}", "public String toJSON() throws JSONException;", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n GsonBuilder gBuilder = new GsonBuilder();\n Gson jObject = gBuilder.create();\n\n try {\n return jObject.toJson(dao.getAll());\n } catch (Exception e) {\n Resposta lResposta = new Resposta();\n\n lResposta.setMensagem(e.getMessage());\n lResposta.setSucesso(false);\n\n return jObject.toJson(lResposta);\n }\n }", "private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }", "ArrayList<Tour> parsearResultado(String JSONstr) throws JSONException {\n ArrayList<Tour> tours = new ArrayList<>();\n JSONArray jsonTours = new JSONArray(JSONstr);\n if (jsonTours.length()!=0) {\n for (int i = 0; i < jsonTours.length(); i++) {\n JSONObject jsonResultado = jsonTours.getJSONObject(i);\n int jsonId = jsonResultado.getInt(\"Id\");\n String jsonNombre = jsonResultado.getString(\"Nombre\");\n String jsonUbicacion = jsonResultado.getString(\"Ubicacion\");\n String jsonFoto = jsonResultado.getString(\"FotoURL\");\n String jsonLikes = jsonResultado.getString(\"Likes\");\n String jsonDescripcion = jsonResultado.getString(\"Descripcion\");\n\n JSONObject jsonResultadoUsuario = jsonResultado.getJSONObject(\"Usuario\");\n int idUsuario = jsonResultadoUsuario.getInt(\"Id\");\n String nomUsuario = jsonResultadoUsuario.getString(\"Nombre\");\n String fotoUsuario = jsonResultadoUsuario.getString(\"FotoURL\");\n\n Usuario usu = new Usuario(nomUsuario, fotoUsuario, idUsuario, \"\", null, null);\n\n gustosparc = new ArrayList<>();\n JSONArray jsongustos = jsonResultado.getJSONArray(\"Gustos\");\n for (int j = 0; j < jsongustos.length(); j++) {\n JSONObject jsonresultadoGustos = jsongustos.getJSONObject(j);\n int jsonIdGusto = jsonresultadoGustos.getInt(\"Id\");\n String jsonnombregustos = jsonresultadoGustos.getString(\"Nombre\");\n Gusto gus = new Gusto(jsonIdGusto, jsonnombregustos);\n gustosparc.add(gus);\n }\n\n Tour t = new Tour(jsonNombre, jsonDescripcion, jsonFoto, jsonUbicacion, jsonId, jsonLikes, usu, null, gustosparc);\n tours.add(t);\n }\n }\n return tours;\n }", "public static Value makeJSONStr() {\n return theJSONStr;\n }", "private String parseResultParagraph(String jsonString) {\n JSONArray obj = new JSONArray(jsonString);\n JSONArray obj2 = new JSONArray(obj.get(0).toString());\n JSONArray obj_final = new JSONArray(obj2.get(0).toString());\n return (String) (obj_final.get(0));\n }", "public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }", "@Override\n\tpublic String getJsonString(String queryURL) {\n\t\t\n\t\tURL url = null;\n\t\t\n\t\tHttpURLConnection httpConn = null;\n\t\t\n\t\ttry {\n\t\t\turl = new URL(queryURL);\n\t\t\t\n\t\t\thttpConn = (HttpURLConnection) url.openConnection();\n\t\t\t\n\t\t\thttpConn.setRequestMethod(\"GET\");\n\t\t\thttpConn.setRequestProperty(\"X-Naver-Client-Id\", NaverSecret.NAVER_CLIENT_ID);\n\t\t\thttpConn.setRequestProperty(\"X-Naver-Client-Secret\", NaverSecret.NAVER_CLIENT_SECRET);\n\t\t\t\n\t\t\tint httpStatusCode = httpConn.getResponseCode();\n\t\t\t\n\t\t\tInputStreamReader is = null;\n\t\t\t\n\t\t\tif(httpStatusCode == 200) {\n\t\t\t\tis = new InputStreamReader(httpConn.getInputStream());\n\t\t\t} else {\n\t\t\t\tis = new InputStreamReader(httpConn.getErrorStream());\n\t\t\t}\n\t\t\t\n\t\t\tBufferedReader buffer = null;\n\t\t\tbuffer = new BufferedReader(is);\n\t\t\t\n\t\t\tStringBuffer sBuffer = new StringBuffer();\n\t\t\t\n\t\t\twhile(true) {\n\t\t\t\tString reader = buffer.readLine();\n\t\t\t\tif(reader == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsBuffer.append(reader);\n\t\t\t}\n\t\t\tlog.debug(\"확인 sBuffer : \" + sBuffer);\n\t\t\treturn sBuffer.toString();\n\t\t\t\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public void fiddle(String jso) {\n\n Lexicon dict = gson.fromJson(jso,Lexicon.class);\n\n Log.i(TAG,\"POJO Success: language = \" + dict.getLanguage() );\n for (String s : dict.dictionary.keySet()) {\n Log.i(TAG,\"key = \" + s + \" value = \" + dict.dictionary.get(s));\n }\n\n String jsonString = gson.toJson(jso);\n Log.i(TAG,\"jsonString = \" + jsonString);\n\n DictionaryAdapter adapter = new DictionaryAdapter(dict.getDictionary());\n ListView lv = (ListView) findViewById(R.id.dictview);\n lv.setAdapter(adapter);\n }", "public static String fixImageClassificationResultJson(String resultJson) {\n try {\n if (resultJson != null && !resultJson.isEmpty()) {\n resultJson = resultJson.trim();\n boolean shouldFix = DBBasedConfigs.getConfig(\"dFixImageClassificationResultJson\", Boolean.class, false);\n // a json starts with '{'\n if (shouldFix && resultJson.charAt(0) != '{') {\n\n ObjectMapper mapper = AppConfig.getInstance().getObjectMapper();\n\n\n JsonNode rootNode = mapper.createObjectNode();\n //add notes.\n ((ObjectNode) rootNode).put(\"notes\", \"\");\n\n //add labels.\n String[] labels = resultJson.split(DConstants.LABEL_SEPARATOR);\n ArrayNode labelsArrayNode = ((ObjectNode) rootNode).putArray(\"label\");\n for (String label : labels) {\n labelsArrayNode.add(label);\n }\n return mapper.writeValueAsString(rootNode);\n\n }\n }\n }\n catch (Exception e) {\n LOG.error(\"Error fixImageClassificationResultJson for \" + resultJson + \" Error = \" + e.toString());\n e.printStackTrace();\n }\n return resultJson;\n }", "public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }", "private String processandFormReponse(Set<String> lcsSet) throws JSONException{\n\t\tList<String> finalList = new ArrayList<>(lcsSet);\n\t\tCollections.sort(finalList);\n\t\tJSONObject finaljson = new JSONObject();\n\t\tJSONArray jsonArray = new JSONArray();\n\t\tfor(String str : finalList) {\n\t\t\tJSONObject row = new JSONObject();\n\t\t\trow.put(VALUE, str);\n\t\t\tjsonArray.put(row);\n\t\t}\n\t\tfinaljson.put(LCS, jsonArray);\n\t\tString values = finaljson.toString();\n\t\treturn values;\n\t\t\n\t}", "private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }", "static String getStringJsonEscaped(String str) {\n JsonStringEncoder e = JsonStringEncoder.getInstance();\n StringBuilder sb = new StringBuilder();\n e.quoteAsString(str, sb);\n return sb.toString();\n }", "@Override\n\tpublic String getJSONString() {\n\t\treturn ipd.selectAll();\n\t}", "public PersonajeVO getPersonaje(String url) {\n\t\tGson gson = new Gson();\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tPersonajeVO data = new PersonajeVO();\n\t\t java.lang.reflect.Type aType = new TypeToken<PersonajeVO>()\n\t\t{}.getType();\n\t\t gson = new Gson();\n\t\t httpClient = WebServiceUtils.getHttpClient();\n\t\t try {\n\t\t HttpResponse response = httpClient.execute(new HttpGet(url));\n\t\t HttpEntity entity = response.getEntity();\n\t\t Reader reader = new InputStreamReader(entity.getContent());\n\t\t data = gson.fromJson(reader, aType);\n\t\t } catch (Exception e) {\n\t\t Log.i(\"json array\",\"While getting server response server generate error. \");\n\t\t }\n\t\t return data;\n\t}", "JSONObject toJson();", "JSONObject toJson();", "public String toJson()\n\t{\n\t\tJsonStringEncoder encoder = JsonStringEncoder.getInstance();\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append('{');\n\n\t\tboolean needComma = true;\n\t\tif (m_Message != null)\n\t\t{\n\t\t\tchar [] message = encoder.quoteAsString(m_Message.toString());\n\t\t\tbuilder.append(\"\\n \\\"message\\\" : \\\"\").append(message).append('\"').append(',');\n\t\t\tneedComma = false;\n\t\t}\n\n\t\tif (m_ErrorCode != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n \\\"errorCode\\\" : \").append(m_ErrorCode.getValueString());\n\t\t\tneedComma = true;\n\t\t}\n\n\t\tif (m_Cause != null)\n\t\t{\n\t\t\tif (needComma)\n\t\t\t{\n\t\t\t\tbuilder.append(',');\n\t\t\t}\n\t\t\tchar [] cause = encoder.quoteAsString(m_Cause.toString());\n\t\t\tbuilder.append(\"\\n \\\"cause\\\" : \\\"\").append(cause).append('\"');\n\t\t}\n\n\t\tbuilder.append(\"\\n}\\n\");\n\n\t\treturn builder.toString();\n\t}", "public JsonObject covertToJson() {\n JsonObject transObj = new JsonObject(); //kasutaja portf. positsiooni tehing\n transObj.addProperty(\"symbol\", symbol);\n transObj.addProperty(\"type\", type);\n transObj.addProperty(\"price\", price);\n transObj.addProperty(\"volume\", volume);\n transObj.addProperty(\"date\", date);\n transObj.addProperty(\"time\", time);\n transObj.addProperty(\"profitFromSell\", profitFromSell);\n transObj.addProperty(\"averagePurchasePrice\", averagePurchasePrice);\n return transObj;\n }", "protected void erweimaJsonInfo(String result) {\n\t\ttry {\n\t\t\tJSONObject object = new JSONObject(result);\n\t\t\tString status = object.getString(\"code\");\n\t\t\tif (\"200\".equals(status)) {\n\t\t\t\tmember_qrcode = object.getString(\"member_qrcode\");\n\t\t\t\tJSONObject jo = object.getJSONObject(\"data\");\n\t\t\t\tmember_name = jo.getString(\"member_name\");\n\t\t\t\tString avator = jo.getString(\"avator\");\n\t\t\t\thandler.sendEmptyMessage(HANDLER_ERWEIMA_SUCCESS);\n\t\t\t} else if (\"700\".equals(status)){\n\t\t\t\tString message = object.getString(\"message\");\n\t\t\t\thandler.sendEmptyMessage(HANDLER_TOKEN_FAILURE);\n\t\t\t}else {\n\t\t\t\tString message = object.getString(\"message\");\n\t\t\t\thandler.sendMessage(handler.obtainMessage(\n\t\t\t\t\t\tHANDLER_GETINFO_FAILURE, message));\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\thandler.sendEmptyMessage(HANDLER_NN_FAILURE);\n\t\t}\n\t}", "public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }", "private void createJSON(){\n json = new JSONObject();\n JSONArray userID = new JSONArray();\n JSONArray palabras = new JSONArray();\n JSONArray respuesta = new JSONArray();\n\n @SuppressLint(\"SimpleDateFormat\") DateFormat formatForId = new SimpleDateFormat(\"yyMMddHHmmssSSS\");\n String id = formatForId.format(new Date()) + \"_\" + android_id;\n userID.put(id);\n global.setUserID(id);\n\n for (int i = 0; i < global.getWords().size() && i < 7; i++){\n palabras.put(global.getWords().get(i));\n }\n\n respuesta.put(url);\n\n try {\n json.put(\"userID\", userID);\n json.put(\"palabras\", palabras);\n json.put(\"respuesta\", respuesta);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic String onData() {\n\t\tMap<String, Object> mapObj = new HashMap<String, Object>();\n\t\tfor (BasicNameValuePair pair : pairs) {\n\t\t\tmapObj.put(pair.getName(), pair.getValue());\n\t\t}\n\t\tGson gson = new Gson();\n\t\tString json = gson.toJson(mapObj);\n\t\treturn json;\n\t}", "private JSON() {\n\t}", "public static Example stringToJSON(String s){\n Gson gson = new Gson();\n JsonReader reader = new JsonReader(new StringReader(s));\n reader.setLenient(true);\n\n Example ex = gson.fromJson(reader, Example.class);\n\n return ex;\n }", "public JSONResponse(String jsonString) {\n this.jsonString = jsonString;\n }", "@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }", "@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }", "public static List<Producto> convertirProductoTextoALIsta(String cadena){\n Gson gson = new Gson();\n\n Type lista = new TypeToken<List<Producto>>() {}.getType();\n return gson.fromJson(cadena,lista); //pasamos la cadena y adaptara el formato para esta lista\n}", "public String toJSon() {\n File jsonFile = new File(context.getFilesDir(), \"data.json\");\n String previousJson = null;\n if (jsonFile.exists()) {\n previousJson = readFromFile(jsonFile);\n } else {\n previousJson = \"{}\";\n }\n\n // create new \"complex\" object\n JSONObject mO = null;\n try {\n mO = new JSONObject(previousJson);\n\n JSONArray arr;\n if (!mO.has(getIntent().getStringExtra(\"date\"))) {\n arr = new JSONArray();\n }\n else{\n arr = mO.getJSONArray(getIntent().getStringExtra(\"date\"));\n }\n JSONObject jo = new JSONObject();\n jo.put(\"title\", titleField.getText().toString());\n jo.put(\"minute\", minute);\n jo.put(\"hour\", hour);\n jo.put(\"description\", descriptionField.getText().toString());\n jo.put(\"location\", locationField.getText().toString());\n\n arr.put(jo);\n\n mO.put(getIntent().getStringExtra(\"date\"), arr);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // generate string from the object\n String jsonString = null;\n try {\n jsonString = mO.toString(4);\n return jsonString;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n\n }", "private static String jsonToString(final Object obj) throws JsonProcessingException {\n String result;\n try {\n final ObjectMapper mapper = new ObjectMapper();\n final String jsonContent = mapper.writeValueAsString(obj);\n result = jsonContent;\n } catch (JsonProcessingException e) {\n result = \"Json processing error\";\n }\n return result;\n }", "public String getJsonAsString() {\n\t\treturn this.flodJsonObject.toString();\n\t}", "@GET\r\n @Produces(\"application/json\")\r\n public String listCarro() throws Exception {\r\n List<CarroModel> lista;\r\n //CarroDao dao = new CarroDao();\r\n CarroDao dao = CarroDao.getInstance();\r\n List<model.CarroModel> carros = dao.getAll();\r\n //Converter para Gson\r\n Gson g = new Gson();\r\n return g.toJson(carros);\r\n }", "protected String getJSON() {\n/*Generated! Do not modify!*/ return gson.toJson(replyDTO);\n/*Generated! Do not modify!*/ }", "public interface GPSMetier {\n JSONEntitie createJSON(String Id, double lat, double lon, boolean isServer);\n String jsonToString(JSONEntitie jsonEntitie);\n JSONEntitie stringToJSON(String jsonString, int codeResponse);\n\n}" ]
[ "0.68299145", "0.68299145", "0.68299145", "0.6686753", "0.65689296", "0.6508112", "0.6499025", "0.6495143", "0.6447806", "0.6429154", "0.6406051", "0.6384415", "0.63824546", "0.6327157", "0.62869364", "0.6236947", "0.62290174", "0.62093776", "0.61981905", "0.61973953", "0.61279196", "0.61175454", "0.61030805", "0.6100038", "0.60802835", "0.6079516", "0.60718", "0.6037852", "0.60300183", "0.6029287", "0.6027305", "0.6012095", "0.5968863", "0.59685975", "0.5940871", "0.5932212", "0.59218955", "0.5903302", "0.5874584", "0.5873167", "0.5873099", "0.58449006", "0.58401704", "0.5834098", "0.58312964", "0.58226025", "0.5787324", "0.5769886", "0.5768154", "0.57657653", "0.576415", "0.57410383", "0.57372993", "0.5720901", "0.5711833", "0.57103497", "0.56989783", "0.56972975", "0.5695383", "0.56864905", "0.5672364", "0.56690526", "0.56667197", "0.56598055", "0.5657742", "0.56553596", "0.5653227", "0.56439686", "0.5632084", "0.5630096", "0.56273305", "0.56244636", "0.56195414", "0.5617488", "0.56174064", "0.5615095", "0.56087923", "0.5606834", "0.55991626", "0.5596013", "0.5596013", "0.55928814", "0.5590197", "0.5583736", "0.5582004", "0.55756044", "0.5574531", "0.5572075", "0.5564416", "0.55555624", "0.55480164", "0.5541689", "0.553771", "0.55173254", "0.550646", "0.54986024", "0.5497262", "0.549012", "0.54895437", "0.5476213" ]
0.6336381
13
Overrides the Object's clone method to prevent the singleton object to be cloned.
@Override public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException(\"Singleton class doesn't support cloning of object.\");\n }", "public Object clone() throws CloneNotSupportedException {\n\tthrow new CloneNotSupportedException(\"This is a Singleton Ojbect; Buzz off\");\n }", "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n // return super.clone(); // OR we can return the already present :: return getInstance();\n }", "public abstract Object clone() ;", "@Override\n public Object clone() {\n return super.clone();\n }", "public abstract Object clone();", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "public Object clone() throws CloneNotSupportedException {\n // return INSTANCE\n throw new CloneNotSupportedException();\n }", "public Object clone() throws CloneNotSupportedException { return super.clone(); }", "Object clone();", "Object clone();", "public final Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "@Override\n public SharedObject clone() {\n SharedObject c;\n try {\n c = (SharedObject)super.clone();\n } catch (CloneNotSupportedException e) {\n // Should never happen.\n throw new ICUCloneNotSupportedException(e);\n }\n c.refCount = new AtomicInteger();\n return c;\n }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }", "@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "public Object clone ()\n\t{\n\t\ttry \n\t\t{\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n throw new InternalError(e.toString());\n\t\t}\n\t}", "@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }", "public Object clone() {\r\n try {\r\n return super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n return null;\r\n }\r\n }", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "public Object clone() throws CloneNotSupportedException {\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public Object clone () {\n\t\t\ttry {\n\t\t\t\treturn super.clone();\n\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\tthrow new InternalError(e.toString());\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "public Object clone() {\n\t\ttry {\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch(CloneNotSupportedException exc) {\n\t\t\treturn null;\n\t\t}\n\t}", "protected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone() {\n return this.copy();\n }", "public Object clone() {\n try {\n return super.clone();\n } catch (Exception exception) {\n throw new InternalError(\"Clone failed\");\n }\n }", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone()\n {\n Object o = null;\n try\n {\n o = super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n e.printStackTrace();\n }\n return o;\n}", "public Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException(\"clone() is not supported in \"+this.getClass().getName());\n }", "public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n /* Cannot happen */\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public final Object clone() throws java.lang.CloneNotSupportedException {\n\t\tthrow new java.lang.CloneNotSupportedException();\n\t}", "public Object clone() {\n try {\n // clones itself\n return super.clone();\n } catch (Exception exception) {\n ;\n }\n return null;\n }", "@Override\n\tpublic Object clone() {\n\t\treturn null;\n\t}", "@Override\n public Object clone() throws CloneNotSupportedException{\n return super.clone();\n }", "public Object clone() throws CloneNotSupportedException\n\t{\n\t\tthrow new CloneNotSupportedException();\n\t}", "public /*@ non_null @*/ Object clone() {\n return this;\n }", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\treturn super.clone();\n\t}", "@Override\n public Object clone() throws CloneNotSupportedException {\n\t return new TypeCloner(this, super.clone()).invoke();\n\t}", "@Override\r\n\tprotected A clone() throws CloneNotSupportedException {\r\n\t\tA clone = (A)super.clone();\r\n//\t\tclone.b = new B();\r\n\t\treturn clone;\r\n\t}", "public Object clone(){\n \t\n \treturn this;\n \t\n }", "@Override\n public MetaContainer clone() {\n return clone(false);\n }", "public Object clone() throws CloneNotSupportedException{\n\t\tthrow (new CloneNotSupportedException());\n\t}", "public Clone() {}", "@Override\r\n\tprotected B clone() throws CloneNotSupportedException {\r\n\t\tB clone = (B)super.clone();\r\n//\t\tclone.a = new A();\r\n\t\treturn clone;\r\n\t}", "public Object clone()\n {\n try {\n Object newObj = super.clone();\n ((LDAPUrl)newObj).url = (com.github.terefang.jldap.ldap.LDAPUrl)this.url.clone();\n return newObj;\n } catch( CloneNotSupportedException ce) {\n throw new RuntimeException(\"Internal error, cannot create clone\");\n }\n }", "public Function clone();", "public /*@ non_null @*/ Object clone() { \n //@ assume owner == null;\n return this;\n }", "@Override\n protected Control clone() {\n \n try {\n return (Control)super.clone();\n } catch (CloneNotSupportedException ex) {\n // Never happens, once Control is implementing Cloneable. \n throw new RuntimeException(ex);\n }\n }", "@Override\n\tpublic Object clone() \n\t{\n\t\ttry{\n\t\t// Note all state is primitive so no need to deep copy reference types.\n\t\treturn (Tile) super.clone();\n\t\t} catch (CloneNotSupportedException e) \n\t\t{\n\t\t\t// We should not ever be here as we implement Cloneable.\n\t\t\t// It is better to deal with the exception here rather than letting\n\t\t\t// clone throw it as we would have to catch it in more places then.\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic Object clone()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new Molecule(((Molecule) super.clone()).getSequence());\n\t\t}\n\t\tcatch (CloneNotSupportedException e)\n\t\t{\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t}", "@Override\n\tpublic ClassPainter clone() {\n ClassPainter clone = null;\n try {\n clone = (ClassPainter) super.clone();\n } catch (CloneNotSupportedException e) {\n // Object does support clone()\n }\n return clone;\n }", "public Object clone()\n {\n Object o = null;\n try \n { o = super.clone(); } \n catch(CloneNotSupportedException e) \n { System.err.println(\"Erreur dans le clonage de la cellule...\"); }\n return o;\n }", "public final PaintObject clone() {\n \t\n \ttry {\n\t\t\treturn (PaintObject) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "public abstract GameObject clone();", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "public abstract Pessoa clone();", "@Override\n public MultiCache clone () {\n return new MultiCache(this);\n }", "public Object clone() {\n GlobalizedAnswer cloned;\n try {\n cloned = (GlobalizedAnswer)super.clone();\n }\n catch (CloneNotSupportedException e) {\n throw new Error(getClass() + \" must support cloning\", e);\n }\n assert cloned != null;\n \n // Copy mutable fields by value\n cloned.tuples = (Tuples) tuples.clone();\n \n return cloned;\n }", "public Instance clone() {\n Instance copy;\n try {\n copy = new Instance(getNameValue().toString());\n } catch (JNCException e) {\n copy = null;\n }\n return (Instance)cloneContent(copy);\n }", "@Override\n\tpublic Component clone() {\n\t\treturn null;\n\t}", "@Override \n public Score clone()\n {\n try\n { \n return (Score)super.clone();\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\tpublic YoungO clone() throws CloneNotSupportedException {\n\t\tYoungO toReturn = (YoungO) super.clone();\n\t\treturn toReturn;\n\t}", "public Object clone() {\n/* */ try {\n/* 111 */ return super.clone();\n/* */ }\n/* 113 */ catch (CloneNotSupportedException cloneNotSupportedException) {\n/* 114 */ throw new InternalError(cloneNotSupportedException.toString(), cloneNotSupportedException);\n/* */ } \n/* */ }", "@Override\n\t\tpublic Pair clone()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Create copy of this pair\n\t\t\t\tPair copy = (Pair)super.clone();\n\n\t\t\t\t// Create copy of value\n\t\t\t\tcopy.value = value.clone();\n\n\t\t\t\t// Return copy\n\t\t\t\treturn copy;\n\t\t\t}\n\t\t\tcatch (CloneNotSupportedException e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(\"Unexpected exception\", e);\n\t\t\t}\n\t\t}", "public Object clone() {\n\t\ttry {\n\t\t\tAbstractHashSet newSet = (AbstractHashSet) super.clone();\n\t\t\tnewSet.map = (DelegateAbstractHashMap) map.clone();\n\t\t\treturn newSet;\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\tthrow new InternalError();\n\t\t}\n\t}", "public Object clone() throws CloneNotSupportedException {\r\n super.clone();\r\n return new JMSCacheReplicator(replicatePuts, replicateUpdates,\r\n replicateUpdatesViaCopy, replicateRemovals, replicateAsync, asynchronousReplicationInterval);\r\n }", "public Object clone() {\r\n // Implementation notes: Since all state of an XMLOutputter is\r\n // embodied in simple private instance variables, Object.clone\r\n // can be used. Note that since Object.clone is totally\r\n // broken, we must catch an exception that will never be\r\n // thrown.\r\n try {\r\n return super.clone();\r\n }\r\n catch (java.lang.CloneNotSupportedException e) {\r\n // even though this should never ever happen, it's still\r\n // possible to fool Java into throwing a\r\n // CloneNotSupportedException. If that happens, we\r\n // shouldn't swallow it.\r\n throw new RuntimeException(e.toString());\r\n }\r\n }", "@Override \n public Door clone()\n {\n try\n {\n Door copy = (Door)super.clone();\n \n //a copy of the location class\n copy.room = room.clone(); \n \n return copy;\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }", "public abstract State clone();", "public static void main(String[] args) throws CloneNotSupportedException {\n\n CloneSingleton instance = CloneSingleton.getSingleton();\n CloneSingleton instance1 = (CloneSingleton) instance.clone();\n System.out.println(instance.hashCode());\n System.out.println(instance1.hashCode());\n }", "public Scm clone()\n {\n try\n {\n Scm copy = (Scm) super.clone();\n\n if ( copy.locations != null )\n {\n copy.locations = new java.util.LinkedHashMap( copy.locations );\n }\n\n return copy;\n }\n catch ( java.lang.Exception ex )\n {\n throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()\n + \" does not support clone()\" ).initCause( ex );\n }\n }", "public Object clone() {\r\n//STUB BEGIN\r\n \t/*\r\n DoubleLinkedList clone = null;\r\n try { \r\n \tclone = (DoubleLinkedList) super.clone();\r\n } catch (CloneNotSupportedException e) { \r\n \tthrow new InternalError();\r\n }*/ //JBSE still does not implement Object.clone\r\n \tDoubleLinkedList clone = new DoubleLinkedList();\r\n//STUB END\r\n\r\n // Put clone into \"virgin\" state\r\n//INSTRUMENTATION BEGIN\r\n //clone.header = new Entry(null, null, null);\r\n clone.header = new Entry(null, null, null, clone);\r\n//INSTRUMENTATION END\r\n clone.header.next = clone.header.previous = clone.header;\r\n clone.size = 0;\r\n clone.modCount = 0;\r\n\r\n // Initialize clone with our elements\r\n for (Entry e = header.next; e != header; e = e.next)\r\n clone.add(e.element);\r\n\r\n return clone;\r\n }", "@Override\n public PhoneNumberCloneable clone() {\n try {\n return (PhoneNumberCloneable) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(); // Can't happen}\n }\n }", "Component deepClone();", "protected Shingle copy() {\n return new Shingle(this);\n }", "@Override\r\n public Object clone() throws CloneNotSupportedException {\r\n MRUCache<K, V> copy = null;\r\n try {\r\n copy = (MRUCache<K, V>) super.clone();\r\n } catch (CloneNotSupportedException x) {\r\n // This is impossible.\r\n }\r\n int next = 0;\r\n for (Map.Entry<K, V> pair : entrySet()) {\r\n // Optimize in case the Entry is one of our own.\r\n if (pair != null) {\r\n copy.buckets[next++].set(factory.createPair(pair.getKey(), pair.getValue()));\r\n }\r\n }\r\n return copy;\r\n }" ]
[ "0.88100404", "0.858407", "0.8148998", "0.8134842", "0.81088406", "0.8092082", "0.806696", "0.8050277", "0.80141425", "0.8002843", "0.8002843", "0.7958175", "0.7952047", "0.7930927", "0.7930927", "0.7930927", "0.7930927", "0.7801111", "0.77745384", "0.77720517", "0.77704155", "0.77688473", "0.77687925", "0.7747117", "0.7747117", "0.7747117", "0.77443", "0.7731923", "0.7713768", "0.77104115", "0.77024376", "0.7695734", "0.7694031", "0.76622397", "0.7633638", "0.7632583", "0.7632583", "0.7632583", "0.7632583", "0.7632583", "0.7632583", "0.7632583", "0.7632583", "0.7632583", "0.7631629", "0.763071", "0.7617115", "0.7604488", "0.75917256", "0.75917256", "0.75917256", "0.758346", "0.7579143", "0.7568305", "0.75574553", "0.75316125", "0.7531384", "0.75177956", "0.7496005", "0.7480413", "0.7470505", "0.74545586", "0.7439859", "0.7426483", "0.74061286", "0.73975426", "0.7379578", "0.7363992", "0.73246306", "0.727896", "0.7274576", "0.7247164", "0.71941465", "0.71878564", "0.718361", "0.71756715", "0.7159177", "0.71565896", "0.7154791", "0.71466714", "0.71412814", "0.7089781", "0.7079045", "0.7068354", "0.7058138", "0.70410246", "0.7040714", "0.70393586", "0.7015099", "0.69975257", "0.6981182", "0.6977826", "0.6975463", "0.6969009", "0.6956682", "0.6946862", "0.69405", "0.69212645", "0.6914894", "0.6899185" ]
0.7534705
55
Creates a new Credential Manager UI's frame.
public CredentialManagerUI(CredentialManager credentialManager, DistinguishedNameParser dnParser) { credManager = credentialManager; this.dnParser = dnParser; setModalExclusionType(APPLICATION_EXCLUDE); // Initialise the UI components initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AuthFrame() {\n initComponents();\n }", "public LoginFrame() {\n\t\tsetJFrame();\n\t\t\n\t\tbuildGUI();\n\t}", "public LoginFrame() {\n initComponents();\n this.setIconImage(new ImageIcon(getClass().getResource(\"/image/Home/Logo Company.png\")).getImage());\n //\n UIManager UI = new UIManager();\n UI.put(\"OptionPane.background\", Color.white);\n UI.put(\"Panel.background\", Color.white);\n //\n setBackground(new Color(0, 0, 0, 0));\n setLocationRelativeTo(null);\n userNameTextField.requestFocus();\n setTitle(\"Click Login\");\n }", "public LoginFrame() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Windows\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(LoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n this.getContentPane().setBackground(new Color(91, 173, 236));\n initComponents();\n setDefaultFocus();\n \n }", "private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }", "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public LoginUI() {\n\t\tparentFrame = Main.getMainFrame();\n\t\tparentFrame.setVisible(true);\n\n\t\tsetLayout(new BorderLayout(5, 5));\n\t\tadd(initFields(), BorderLayout.NORTH);\n\t\tadd(initButtons(), BorderLayout.CENTER);\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setType(Type.POPUP);\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 359, 238);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setTitle(I18N.getInstance().getString(I18N.AUTHENTICATION));\n\t\tframe.setIconImage(Toolkit.getDefaultToolkit().getImage(\n\t\t\t\tMainWindow.class.getResource(ThemeManager.getInstance()\n\t\t\t\t\t\t.getImage(ThemeManager.ICON))));\n\n\t\ttfUsername = new JTextField();\n\t\ttfUsername.setColumns(10);\n\t\ttfUsername.setBounds(90, 89, 253, 20);\n\t\ttfUsername.setText(PreferencesManager.getInstance()\n\t\t\t\t.getLastLoggedUsername());\n\t\tframe.getContentPane().add(tfUsername);\n\n\t\tJLabel label = new JLabel(I18N.getInstance().getString(I18N.USERNAME));\n\t\tlabel.setBounds(10, 92, 46, 14);\n\t\tframe.getContentPane().add(label);\n\n\t\tJLabel label_1 = new JLabel(I18N.getInstance().getString(I18N.PASSWORD));\n\t\tlabel_1.setBounds(10, 123, 65, 14);\n\t\tframe.getContentPane().add(label_1);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.WHITE);\n\t\tpanel.setBounds(0, 0, 354, 67);\n\t\tframe.getContentPane().add(panel);\n\n\t\tJLabel label_2 = new JLabel(\"\");\n\t\tlabel_2.setIcon(new ImageIcon(AuthenticationFrame.class\n\t\t\t\t.getResource(ThemeManager.getInstance().getImage(\n\t\t\t\t\t\tThemeManager.AUTHENTICATION_BANNER))));\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlabel_2.setBounds(0, 0, 354, 67);\n\t\tpanel.add(label_2);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBackground(SystemColor.controlShadow);\n\t\tpanel_1.setBounds(0, 67, 400, 1);\n\t\tframe.getContentPane().add(panel_1);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBackground(SystemColor.controlShadow);\n\t\tpanel_2.setBounds(0, 167, 400, 1);\n\t\tframe.getContentPane().add(panel_2);\n\n\t\tbtnCancel = new JButton(I18N.getInstance().getString(I18N.CANCEL));\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(241, 176, 89, 23);\n\t\tframe.getContentPane().add(btnCancel);\n\n\t\tbtnAccept = new JButton(I18N.getInstance().getString(I18N.ACCEPT));\n\t\tbtnAccept.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tlogin();\n\t\t\t}\n\t\t});\n\t\tbtnAccept.setBounds(142, 176, 89, 23);\n\t\tframe.getRootPane().setDefaultButton(btnAccept);\n\t\tframe.getContentPane().add(btnAccept);\n\n\t\tpasswordField = new JPasswordField();\n\t\tpasswordField.setBounds(90, 120, 253, 20);\n\t\tframe.getContentPane().add(passwordField);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setVisible(true);\n\t}", "public static void createStartingFrame() {\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tapp_frame = new JFrame();\n\t\tapp_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tapp_frame.setSize(500, 90);\n\t\tapp_frame.setLocationRelativeTo(null);\n\t\tapp_frame.setTitle(\"Welcome!\");\n\n\t\tJPanel encompassing_panel = new JPanel();\n\t\tencompassing_panel.setBackground(new Color(24, 110, 155));\n\t\tapp_frame.setContentPane(encompassing_panel);\n\t\tencompassing_panel.setLayout(new BoxLayout(encompassing_panel, BoxLayout.Y_AXIS));\n\n\t\tJPanel field_panel = new JPanel();\n\t\tfield_panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\tfield_panel.setBackground(new Color(24, 110, 155));\n\n\t\tJLabel username_label = new JLabel(\"Choose your username:\", SwingConstants.CENTER);\n\t\tusername_label.setFont(new Font(\"Lucida Sans Unicode\", Font.BOLD, 15));\n\t\tusername_label.setForeground(Color.white);\n\n\t\tJTextField username_textfield = new JTextField();\n\t\tusername_textfield.setColumns(12);\n\t\tusername_textfield.setPreferredSize(new Dimension(0, 25));\n\n\t\tJButton accept_button = new JButton(\"Accept\");\n\t\taccept_button.setPreferredSize(new Dimension(150, 25));\n\t\taccept_button.setBackground(new Color(196, 236, 237));\n\t\taccept_button.setOpaque(true);\n\t\taccept_button.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\t\tfield_panel.add(username_label);\n\t\tfield_panel.add(username_textfield);\n\t\tencompassing_panel.add(field_panel);\n\t\tencompassing_panel.add(Box.createRigidArea(new Dimension(0, 5)));\n\t\tencompassing_panel.add(accept_button);\n\t\tencompassing_panel.add(Box.createRigidArea(new Dimension(0, 5)));\n\t\tapp_frame.setContentPane(encompassing_panel);\n\t\tapp_frame.setVisible(true);\n\t\t\n\t\taccept_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(username_textfield.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR: Please enter a username!\",\n\t\t\t\t\t\t\t\"User Initialization Error\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tStockGUI game_frame = new StockGUI();\n\t\t\t\t\tapp_frame.getContentPane().removeAll();\n\t\t\t\t\tapp_frame.setContentPane(game_frame);\n\t\t\t\t\tapp_frame.revalidate();\n\t\t\t\t\tapp_frame.pack();\n\t\t\t\t\tapp_frame.setLocationRelativeTo(null);\n\t\t\t\t\tapp_frame.setSize(new Dimension(1225, 715));\n\t\t\t\t\tnewuser_obj.setUserName(username_textfield.getText());\n\t\t\t\t\t\n\t\t\t\t\tThread t = new Thread(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tSocketUtilities su = new SocketUtilities();\n\t\t\t\t\t\t\t\tif (su.socketConnect() == true) {\n\t\t\t\t\t\t\t\t\tuser_key = createUserKey(newuser_obj);\n\t\t\t\t\t\t\t\t\tSGUserKO userKO = new SGUserKO(user_key, newuser_obj);\n\t\t\t\t\t\t\t\t\tsu.sendUserKO(userKO);\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR: Connection to Socket Server is down!\",\n\t\t\t\t\t\t\t\t\t\t\t\"Socket Server Error\", JOptionPane.WARNING_MESSAGE);\n\t\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\tt.start();\n\t\t\t\t\t\n\t\t\t\t\tapp_frame.setTitle(\"Stock Market Game: Welcome \" + newuser_obj.getUserName() + \"!\");\n\t\t\t\t\tapp_frame.setVisible(true);\n\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}", "public LoginUI() {\n \n \n \n if (checkSetup ()) {\n OwnerSetup ow = new OwnerSetup ();\n \n \n \n ow.setLocation(200, 200);\n ow.pack();\n ow.setVisible(true);\n \n \n } \n \n this.setUndecorated(true);\n this.getContentPane().setBackground(new Color (32, 32, 32)); \n \n UIManager.put(\"ComboBox.background\", new Color (35, 35, 35));\n UIManager.put(\"ComboBox.foreground\", new Color (235, 235, 235));\n UIManager.put(\"ComboBox.selectionBackground\", new ColorUIResource(new Color (74,74,74)));\n UIManager.put(\"ComboBox.selectionForeground\", new ColorUIResource(new Color (235, 235, 235)));\n UIManager.put(\"ComboBox.buttonBackground\", new Color (35, 35, 35));\n \n \n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n } catch (Exception e) {}\n \n \n initComponents(); \n \n cbUser.setEditor(new ComboBoxUI ());\n cbUser.setEditable(true);\n \n cbUser2.setEditor (new ComboBoxUI ());\n cbUser2.setEditable(true); \n \n this.lblPosIcon.setIcon ( new ImageIcon ( (new ImageIcon (\"C:\\\\Users\\\\Gina\\\\Desktop\\\\cs 202 project\\\\POS\\\\src\\\\icons\\\\icons\\\\posIconWhite.png\")).getImage().getScaledInstance(70, 62, Image.SCALE_DEFAULT)) );\n \n Font roboto = new Font (\"C:\\\\Users\\\\Gina\\\\Desktop\\\\cs 202 project\\\\POS\\\\src\\\\fonts\\\\roboto\\\\Roboto-Regular.ttf\", Font.TRUETYPE_FONT, 12);\n \n lblUsername.setFont(roboto);\n lblPassword.setFont(roboto);\n lblLoginTitle.setFont(roboto);\n lblMessage.setFont(roboto);\n lblCreate.setFont(roboto);\n lblForgotIt.setFont(roboto);\n lblLoginFor.setFont(roboto);\n \n lblForgotMessage.setFont(roboto);\n lblForgotMessage2.setFont (roboto);\n lblFor.setFont (roboto);\n \n this.dgForgotPassword.setUndecorated(true);\n this.dgForgotPassword.getContentPane().setBackground(new Color (35, 35, 35));\n \n this.dgForgotPassword2.setUndecorated(true);\n this.dgForgotPassword2.getContentPane().setBackground (new Color (35, 35, 35));\n \n \n setLocationRelativeTo(null);\n \n \n \n \n \n \n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public void loginBuilder(){\n loginFrame = new JFrame(\"Coronos Login\");\n loginFrame.setLayout(new GridLayout(3, 1));\n\n jpUserName = new JPanel(new FlowLayout());\n jtfUserNameField = new JTextField(10);\n userNameLabel = new JLabel(\"Username:\");\n userNameLabel.setLabelFor(jtfUserNameField);\n jpUserName.add(userNameLabel);\n jpUserName.add(jtfUserNameField);\n loginFrame.add(jpUserName);\n \n jpPassWord = new JPanel(new FlowLayout());\n passWordField = new JPasswordField(10);\n passWordLabel = new JLabel(\"Password:\");\n passWordField.addActionListener(this);\n passWordField.setActionCommand(\"Login\");\n passWordLabel.setLabelFor(passWordField);\n jpPassWord.add(passWordLabel);\n jpPassWord.add(passWordField);\n loginFrame.add(jpPassWord);\n \n jpOptions = new JPanel(new FlowLayout());\n loginButton = new JButton(\"Login\");\n loginButton.addActionListener(this);\n showPassword = new JButton(\"Reveal Password\");\n showPassword.addActionListener(this);\n jpOptions.add(loginButton);\n jpOptions.add(showPassword);\n loginFrame.add(jpOptions);\n \n loginFrame.setLocationRelativeTo(null);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "public FramePrincipal() {\n initComponents();\n }", "public void createAndShowGUI() {\n frame= new JFrame(\"TabAdmin\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLocation(200,50);\n //Create and set up the content pane.\n \n addComponentToPane(frame.getContentPane());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n //create admin to operate \n \n }", "public FramePrincipal() {\r\n initComponents();\r\n }", "public void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(92, 255, 208));\n\t\tframe.setBounds(100, 100, 1050, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // Dispose on close, otherwise closes all the app\n\t\tframe.setTitle(\"Creació d'usuari\");\n\t\tPreferences prefs = Preferences.userNodeForPackage(LoginForm.class);\n\t\tString token = prefs.get(\"token\", \"token\");\n\t\tframe.setTitle(\"Creació d'usuari\");\n\t\tframe.setBounds(300, 90, 500, 500);\n\n\t\t// Components for the form of creation user.\n\t\ttitle = new JLabel(\"Creació d'usuari\");\n\t\ttitle.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\ttitle.setSize(235, 30);\n\t\ttitle.setLocation(150, 20);\n\t\tframe.add(title);\n\n\t\tname = new JLabel(\"Nom:\");\n\t\tname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tname.setSize(100, 20);\n\t\tname.setLocation(100, 80);\n\t\tframe.add(name);\n\n\t\ttname = new JTextField();\n\t\ttname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttname.setSize(190, 20);\n\t\ttname.setLocation(200, 80);\n\t\tframe.add(tname);\n\n\t\tsurname = new JLabel(\"Cognom:\");\n\t\tsurname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tsurname.setSize(100, 20);\n\t\tsurname.setLocation(100, 120);\n\t\tframe.add(surname);\n\n\t\ttsurname = new JTextField();\n\t\ttsurname.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttsurname.setSize(190, 20);\n\t\ttsurname.setLocation(200, 120);\n\t\tframe.add(tsurname);\n\n\t\temail = new JLabel(\"Email:\");\n\t\temail.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\temail.setSize(100, 20);\n\t\temail.setLocation(100, 160);\n\t\tframe.add(email);\n\n\t\ttemail = new JTextField();\n\t\ttemail.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttemail.setSize(190, 20);\n\t\ttemail.setLocation(200, 160);\n\t\tframe.add(temail);\n\n\t\ttlf = new JLabel(\"Telèfon:\");\n\t\ttlf.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\ttlf.setSize(100, 20);\n\t\ttlf.setLocation(100, 200);\n\t\tframe.add(tlf);\n\n\t\tttlf = new JTextField();\n\t\tttlf.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tttlf.setSize(190, 20);\n\t\tttlf.setLocation(200, 200);\n\t\tframe.add(ttlf);\n\n\t\tpass = new JLabel(\"Contrasenya:\");\n\t\tpass.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tpass.setSize(100, 20);\n\t\tpass.setLocation(100, 240);\n\t\tframe.add(pass);\n\n\t\ttpass = new JTextField();\n\t\ttpass.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttpass.setSize(190, 20);\n\t\ttpass.setLocation(200, 240);\n\t\tframe.add(tpass);\n\n\t\tpassc = new JLabel(\"Confirmació de Contrasenya:\");\n\t\tpassc.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tpassc.setSize(100, 20);\n\t\tpassc.setLocation(100, 280);\n\t\tframe.add(passc);\n\n\t\ttpassc = new JTextField();\n\t\ttpassc.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\ttpassc.setSize(190, 20);\n\t\ttpassc.setLocation(200, 280);\n\t\tframe.add(tpassc);\n\n\t\trole = new JLabel(\"Rol:\");\n\t\trole.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\trole.setSize(100, 20);\n\t\trole.setLocation(100, 320);\n\t\tframe.add(role);\n\n\t\tadmin = new JRadioButton(\"Admin\");\n\t\tadmin.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tadmin.setSelected(true);\n\t\tadmin.setSize(106, 20);\n\t\tadmin.setLocation(200, 320);\n\t\tframe.add(admin);\n\n\t\trastreator = new JRadioButton(\"Rastreator\");\n\t\trastreator.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\trastreator.setSelected(false);\n\t\trastreator.setSize(125, 20);\n\t\trastreator.setLocation(200, 350);\n\t\tframe.add(rastreator);\n\n\t\trolegp = new ButtonGroup();\n\t\trolegp.add(admin);\n\t\trolegp.add(rastreator);\n\n\t\tsub = new JButton(\"Aceptar\");\n\t\tsub.setBackground(new Color(255, 255, 255));\n\t\tsub.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tsub.setSize(100, 20);\n\t\tsub.setLocation(130, 420);\n\t\tsub.addActionListener(this);\n\t\tframe.add(sub);\n\n\t\treset = new JButton(\"Reset\");\n\t\treset.setBackground(new Color(255, 255, 255));\n\t\treset.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\treset.setSize(100, 20);\n\t\treset.setLocation(250, 420);\n\t\treset.addActionListener(this);\n\t\tframe.add(reset);\n\n\t\tres = new JLabel(\"\");\n\t\tres.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n\t\tres.setSize(500, 25);\n\t\tres.setLocation(100, 500);\n\t\tframe.add(res);\n\n\t\tframe.setVisible(true);\n\t}", "private Widget createLoginPanel(final IViewContext<ICommonClientServiceAsync> viewContext)\n {\n DockPanel loginPanel = new DockPanel();\n // WORKAROUND The mechanism behind the autofill support does not work in testing\n if (!GWTUtils.isTesting())\n {\n final LoginPanelAutofill loginWidget = LoginPanelAutofill.get(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n } else\n {\n final LoginWidget loginWidget = new LoginWidget(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n }\n return loginPanel;\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }", "public LoginFrame() {\n initComponents();\n }", "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}", "private JFrame makeOptionsFrame(){\n MenuBarHandler menuBarHandler = new MenuBarHandler();\n JFrame optionsFrame = new JFrame(\"Options\");\n optionsFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n optionsFrame.setResizable(false);\n optionsFrame.setLocationRelativeTo(frame);\n followRedirect = new JCheckBox(\"follow redirect\");\n followRedirect.setSelected(true);\n followRedirect.addActionListener(menuBarHandler);\n hideOnSystemTray = new JCheckBox(\"Hide to tray\");\n hideOnSystemTray.addActionListener(menuBarHandler);\n ButtonGroup themes = new ButtonGroup();\n JRadioButton light = new JRadioButton(\"Light theme\");\n light.setSelected(true);\n JRadioButton dark = new JRadioButton(\"Dark theme\");\n light.addActionListener(menuBarHandler);\n dark.addActionListener(menuBarHandler);\n themes.add(light);\n themes.add(dark);\n optionsFrame.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n optionsFrame.add(hideOnSystemTray, c);\n optionsFrame.add(followRedirect, c);\n c.gridy = 1;\n optionsFrame.add(light, c);\n c.gridy = 2;\n optionsFrame.add(dark, c);\n optionsFrame.pack();\n return optionsFrame;\n }", "private void createAdminPanel() {\n username = new JTextField(8);\n password = new JPasswordField(8);\n JPanel loginArea = adminLoginPanels();\n JPanel buttons = adminLoginButtons();\n loginFrame = new JFrame();\n loginFrame.setLayout(new BorderLayout());\n loginFrame.getRootPane().setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n loginLabel = new JLabel(\"Please log in as administrator\", SwingConstants.CENTER);\n loginFrame.getContentPane().add(loginLabel, BorderLayout.NORTH);\n loginFrame.getContentPane().add(loginArea, BorderLayout.CENTER);\n loginFrame.getContentPane().add(buttons, BorderLayout.SOUTH);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "public DashboardFrame() {\n WebLookAndFeel.install ();\n Controller = new Controller();\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 410, 288);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),},\n\t\t\tnew RowSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,}));\n\t\t\n\t\tlblLogin = new JLabel(\"Login\");\n\t\tframe.getContentPane().add(lblLogin, \"12, 6\");\n\t\t\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\n\t\tframe.getContentPane().add(lblUsername, \"10, 10\");\n\t\t\n\t\tusernameField = new JTextField();\n\t\tframe.getContentPane().add(usernameField, \"12, 10, fill, default\");\n\t\tusernameField.setColumns(10);\n\t\t\n\t\tlblPassword = new JLabel(\"Password:\");\n\t\tframe.getContentPane().add(lblPassword, \"10, 14\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tframe.getContentPane().add(passwordField, \"12, 14\");\n\t\t\n\t\tbtnLogin = new JButton(\"Login\");\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.login(usernameField.getText(), passwordField.getText());\n\t\t\t\t\tparent.setVisible(true);\n\t\t\t\t\tframe.dispose();\t\t\t\t\t\n\t\t\t\t\tparentProjWindow.displayProjects();\n\t\t\t\t\t\n\t\t\t\t} catch (RemoteAccessException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Server unreacheable!\", \"Network Error!\", 0, null);\n\t\t\t\t}\t\n\t\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong credentials!\", \"Access denied!\", 0, null);\n\t\t\t\t} catch (RemoteException 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});\n\t\tframe.getContentPane().add(btnLogin, \"12, 18\");\n\t}", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(410, 210, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(262, 83, 86, 20);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lbl1 = new JLabel(\"UserName\");\r\n\t\tlbl1.setBounds(103, 86, 60, 14);\r\n\t\tframe.getContentPane().add(lbl1);\r\n\t\tJLabel err = new JLabel(\"\");\r\n\t\terr.setBounds(71, 23, 277, 14);\r\n\t\tframe.getContentPane().add(err);\r\n\t\t\r\n\t\tJLabel lNewLabel_1 = new JLabel(\"Password\");\r\n\t\tlNewLabel_1.setBounds(103, 139, 92, 14);\r\n\t\tframe.getContentPane().add(lNewLabel_1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Login\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString uname = textField.getText();\r\n\t\t\t\t\tString password = new String(passwordField.getPassword());\r\n\t\t\t\t\tint num = ConnectDB.Login(uname,password);\r\n\t\t\t\t\r\n\t\t\t\tif(num==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showInfoDialog(\"Employee Login\");\r\n\t\t\t\t\tMenu m = new Menu();\r\n\t\t\t\t\tm.Newscreen();\r\n\t\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if(num==2)\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showInfoDialog(\"Employee Login\");\r\n\t\t\t\t\tMenu m = new Menu();\r\n\t\t\t\t\tm.Newscreen();\r\n\t\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showWarningDialog(\"ERROR\");\r\n\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t} catch (NoSuchAlgorithmException 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\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(106, 196, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Exit\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setBounds(262, 196, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tpasswordField = new JPasswordField();\r\n\t\tpasswordField.setBounds(262, 136, 86, 20);\r\n\t\tframe.getContentPane().add(passwordField);\r\n\t\t\r\n\t\r\n\t}", "@Override\n\tpublic void createControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NULL);\n\n\t\tsetControl(container);\n\n\t\tString username = \"\";\n\t\tString password = \"\";\n\t\ttry {\n\t\t\tString[] array = window.ds.getURI().getUserInfo().split(\":\");\n\t\t\tusername = array[0];\n\t\t\tpassword = array[1];\n\t\t} catch (Exception e) {\n\t\t}\n\n\t\tLabel lblUsername = new Label(container, SWT.NONE);\n\t\tlblUsername.setBounds(10, 52, 75, 13);\n\t\tlblUsername.setText(\"Username\");\n\n\t\tusernameText = new Text(container, SWT.BORDER);\n\t\tusernameText.setText(username);\n\t\tusernameText.addModifyListener(new ModifyListener() {\n\t\t\t@Override\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tgetWizard().getContainer().updateButtons();\n\t\t\t}\n\t\t});\n\n\t\tusernameText.setBounds(10, 71, 187, 19);\n\t\tusernameText.setFocus();\n\n\t\tLabel lblPassword = new Label(container, SWT.NONE);\n\t\tlblPassword.setBounds(10, 96, 75, 13);\n\t\tlblPassword.setText(\"Password\");\n\n\t\tpasswordText = new Text(container, SWT.BORDER | SWT.PASSWORD);\n\t\tpasswordText.setText(password);\n\t\tpasswordText.addModifyListener(new ModifyListener() {\n\t\t\t@Override\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tgetWizard().getContainer().updateButtons();\n\t\t\t}\n\t\t});\n\n\t\tpasswordText.setBounds(10, 115, 187, 19);\n\t\tControl[] list = null;\n\t\t\n\t\tif (window.ds.usesComponent(IUserCreation.class)) {\n\t\t\tbtnCreateAnNew = new Button(container, SWT.NONE);\n\t\t\tbtnCreateAnNew.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tLOG.info(\"Create an account\");\n\t\t\t\t\tSignInWithAuthenticationWizard wizard = (SignInWithAuthenticationWizard) getWizard();\n\t\t\t\t\twizard.getWizardDialog().close();\n\t\t\t\t\twindow.newUserAction.run();\n\t\t\t\t\tLOG.info(\"Create an account 2\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnCreateAnNew.setBounds(10, 10, 152, 25);\n\t\t\tbtnCreateAnNew.setText(\"Create a new account\");\n\t\t\tlist = new Control[] { btnCreateAnNew, usernameText,\n\t\t\t\t\tpasswordText };\n\t\t\tcontainer.setTabList(list);\n\t\t} else {\n\t\t\tlist = new Control[] { usernameText,\n\t\t\t\t\tpasswordText };\n\t\t\tcontainer.setTabList(list);\n\t\t}\n\n\t\t\n\t\t\n\t}", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "private void genLoginGui(){\n loginFrame = new JFrame(\"Log in\");\n\n // login panel, inputs name\n loginPanel = new JPanel();\n loginPanel.setLayout(new FlowLayout());\n nameLabel = new JLabel(\"Name\");\n nameTextFiled = new JTextField();\n nameTextFiled.setPreferredSize(new Dimension(100, 20));\n nameTextFiled.addActionListener(clientAction);\n nameTextFiled.setActionCommand(\"ENTERROOM\");\n\n btnEnterRoom = new JButton(\"Enter Room\");\n btnEnterRoom.addActionListener(clientAction);\n btnEnterRoom.setActionCommand(\"ENTERROOM\");\n\n loginPanel.add(nameLabel);\n loginPanel.add(nameTextFiled);\n loginPanel.add(btnEnterRoom);\n\n loginFrame.add(loginPanel, BorderLayout.CENTER);\n\n loginFrame.setSize(700, 500);\n loginFrame.setLocation(0, 200);\n loginFrame.add(loginPanel);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n }", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "private void initialize() {\n\t\tLoginFrame = new JFrame();\n\t\tLoginFrame.getContentPane().setBackground(SystemColor.text);\n\t\tLoginFrame.setIconImage(Toolkit.getDefaultToolkit()\n\t\t\t\t.getImage(Login.class.getResource(\"/imgs/Profile_GroupFriend-RoundedBlack-512.png\")));\n\t\tLoginFrame.setResizable(false);\n\t\tLoginFrame.setSize(800, 600);\n\t\tLoginFrame.setLocationRelativeTo(null);\n\t\tLoginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tLoginFrame.getContentPane().setLayout(null);\n\n\t\tJLabel jTorrentLabel = new JLabel(\"ShareP2P\");\n\t\tjTorrentLabel.setBorder(new EtchedBorder(EtchedBorder.RAISED, null, new Color(255, 255, 255)));\n\t\tjTorrentLabel.setOpaque(true);\n\t\tjTorrentLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tjTorrentLabel.setBackground(new Color(255, 255, 255));\n\t\tjTorrentLabel.setForeground(new Color(51, 102, 153));\n\t\tjTorrentLabel.setFont(new Font(\"Berlin Sans FB Demi\", Font.BOLD, 70));\n\t\tjTorrentLabel.setBounds(218, 69, 399, 67);\n\t\tLoginFrame.getContentPane().add(jTorrentLabel);\n\n\t\tJLabel userNameLabel = new JLabel(\"Username\");\n\t\tuserNameLabel.setIcon(new ImageIcon(Login.class.getResource(\"/imgs/768px-Circle-icons-profile.jpeg\")));\n\t\tuserNameLabel.setForeground(new Color(255, 255, 255));\n\t\tuserNameLabel.setFont(new Font(\"Berlin Sans FB Demi\", Font.BOLD, 28));\n\t\tuserNameLabel.setBounds(218, 158, 222, 40);\n\t\tLoginFrame.getContentPane().add(userNameLabel);\n\n\t\tuserNametextField = new JTextField();\n\t\tuserNametextField.setBorder(new EmptyBorder(2, 2, 2, 2));\n\t\tuserNametextField.setBounds(439, 165, 164, 40);\n\t\tLoginFrame.getContentPane().add(userNametextField);\n\t\tuserNametextField.setColumns(10);\n\n\t\tpasswordField = new JPasswordField();\n\t\tpasswordField.setBounds(439, 272, 164, 40);\n\t\tLoginFrame.getContentPane().add(passwordField);\n\n\t\tJLabel lblEnterUsername = new JLabel(\"Enter username\");\n\t\tlblEnterUsername.setFont(new Font(\"Times New Roman\", Font.BOLD, 17));\n\t\tlblEnterUsername.setForeground(new Color(255, 0, 0));\n\t\tlblEnterUsername.setBounds(449, 215, 175, 25);\n\t\tlblEnterUsername.setVisible(false);\n\t\tLoginFrame.getContentPane().add(lblEnterUsername);\n\n\t\tJLabel lblEnterPassword = new JLabel(\"Enter Password\");\n\t\tlblEnterPassword.setFont(new Font(\"Times New Roman\", Font.PLAIN, 17));\n\t\tlblEnterPassword.setForeground(new Color(255, 0, 0));\n\t\tlblEnterPassword.setBounds(439, 317, 178, 25);\n\t\tlblEnterPassword.setVisible(false);\n\t\tLoginFrame.getContentPane().add(lblEnterPassword);\n\n\t\tJLabel RegisterLabel = new JLabel(\"New User ? Register.\");\n\t\tRegisterLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tRegisterLabel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\t\tRegisterLabel.setForeground(new Color(255, 255, 255));\n\t\tRegisterLabel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tLoginFrame.setVisible(false);\n\t\t\t\tRegister register = new Register(peer);\n\t\t\t\tregister.registerFrame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tRegisterLabel.setFont(new Font(\"Berlin Sans FB Demi\", Font.BOLD, 24));\n\t\tRegisterLabel.setBounds(205, 426, 427, 40);\n\t\tLoginFrame.getContentPane().add(RegisterLabel);\n\n\t\tJButton btnLogin = new JButton(\"LOGIN\");\n\t\tbtnLogin.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tString[] credentials = new String[2];\n\t\t\t\tString loginStatus;\n\t\t\t\tcredentials[0] = userNametextField.getText().toString();\n\t\t\t\tcredentials[1] = passwordField.getText().toString();\n\t\t\t\tif (credentials[0].equals(\"\")) {\n\t\t\t\t\tlblEnterUsername.setVisible(true);\n\t\t\t\t} else if (credentials[1].equals(\"\")) {\n\t\t\t\t\tlblEnterPassword.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tloginStatus = peer.Connect(\"LOGIN\", credentials);\n\t\t\t\t\tif (loginStatus.contains(\"successful\")) {\n\t\t\t\t\t\tDashBoard dashboard = new DashBoard(peer);\n\t\t\t\t\t\tLoginFrame.setVisible(false);\n\t\t\t\t\t\tdashboard.DashBoardFrame.setVisible(true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(btnLogin, \"Invalid credentials\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\t\tbtnLogin.setForeground(new Color(0, 102, 153));\n\t\tbtnLogin.setBackground(new Color(255, 255, 255));\n\t\tbtnLogin.setFont(new Font(\"Berlin Sans FB Demi\", Font.BOLD, 20));\n\t\tbtnLogin.setBounds(327, 376, 191, 40);\n\t\tLoginFrame.getContentPane().add(btnLogin);\n\n\t\tJLabel ForgetPasswordLabel = new JLabel(\"Forget Password?\");\n\t\tForgetPasswordLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tForgetPasswordLabel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\t\tForgetPasswordLabel.setForeground(new Color(255, 255, 255));\n\t\tForgetPasswordLabel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tLoginFrame.setVisible(false);\n\t\t\t\tForgetPassword forgetPassword = new ForgetPassword(peer);\n\t\t\t\tforgetPassword.ForgetPasswordFrame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tForgetPasswordLabel.setFont(new Font(\"Berlin Sans FB Demi\", Font.BOLD, 27));\n\t\tForgetPasswordLabel.setBounds(205, 461, 427, 45);\n\t\tLoginFrame.getContentPane().add(ForgetPasswordLabel);\n\n\t\tJLabel lblPassword = new JLabel(\" Password\");\n\t\tlblPassword.setIcon(new ImageIcon(Login.class.getResource(\"/imgs/images.png\")));\n\t\tlblPassword.setForeground(Color.WHITE);\n\t\tlblPassword.setFont(new Font(\"Berlin Sans FB Demi\", Font.BOLD, 28));\n\t\tlblPassword.setBounds(218, 265, 211, 40);\n\t\tLoginFrame.getContentPane().add(lblPassword);\n\n\t\tJLabel lblbg = new JLabel(\"\");\n\t\tlblbg.setIcon(new ImageIcon(Login.class.getResource(\"/imgs/qw11.jpg\")));\n\t\tlblbg.setBounds(41, 0, 797, 637);\n\t\tLoginFrame.getContentPane().add(lblbg);\n\n\t\tuserNametextField.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tlblEnterUsername.setVisible(false);\n\n\t\t\t}\n\t\t});\n\t\tpasswordField.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tlblEnterPassword.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tString[] credentials = new String[2];\n\t\t\t\tString loginStatus;\n\t\t\t\tcredentials[0] = userNametextField.getText().toString();\n\t\t\t\tcredentials[1] = passwordField.getText().toString();\n\t\t\t\tif (credentials[0].equals(\"\")) {\n\t\t\t\t\tlblEnterUsername.setVisible(true);\n\t\t\t\t} else if (credentials[1].equals(\"\")) {\n\t\t\t\t\tlblEnterPassword.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tloginStatus = peer.Connect(\"LOGIN\", credentials);\n\t\t\t\t\tif (loginStatus.contains(\"successful\")) {\n\t\t\t\t\t\tDashBoard dashboard = new DashBoard(peer);\n\t\t\t\t\t\tLoginFrame.setVisible(false);\n\t\t\t\t\t\tdashboard.DashBoardFrame.setVisible(true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(btnLogin, \"Invalid Credentials\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public loginGUI() {\r\n\r\n\t\tsuper.frame.setTitle(\"Login\");\r\n\t\ttry {\r\n\t\t\tJLabel label = new JLabel(new ImageIcon(ImageIO.read(new File(\"..\\\\images\\\\login-background.png\"))));\r\n\t\t\tframe.setContentPane(label);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Image doesn't exist...\");\r\n\t\t}\r\n\r\n\t\tcopyright();\r\n\t\tlabels();\r\n\t\ttextField();\r\n\t\tstartButton();\r\n\t\tsignup();\r\n\r\n\t\tsuper.frame.setVisible(true);\r\n\t}", "public MainFrame() {\n initComponents();\n java.net.URL url = ClassLoader.getSystemResource(\"icon.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(url);\n setIconImage(img);\n \n lf = new LoginFrame(this);\n lf.setVisible(true);\n //changeLayout(\"Login\");\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\r\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tcontainer.setLayout(new FormLayout());\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(container, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Username :\");\r\n\t\t\r\n\t\ttext = new Text(container, SWT.BORDER);\r\n\t\tfd_lblNewLabel.top = new FormAttachment(text, 3, SWT.TOP);\r\n\t\tfd_lblNewLabel.right = new FormAttachment(text, -30);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.top = new FormAttachment(0, 92);\r\n\t\tfd_text.right = new FormAttachment(100, -107);\r\n\t\ttext.setLayoutData(fd_text);\r\n\t\t\r\n\t\tLabel lblPassword = new Label(container, SWT.NONE);\r\n\t\tfd_lblNewLabel.bottom = new FormAttachment(lblPassword, -20);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 151);\r\n\t\tlblPassword.setText(\"Password :\");\r\n\t\tlblPassword.setAlignment(SWT.CENTER);\r\n\t\tFormData fd_lblPassword = new FormData();\r\n\t\tfd_lblPassword.left = new FormAttachment(lblNewLabel, 0, SWT.LEFT);\r\n\t\tfd_lblPassword.bottom = new FormAttachment(100, -75);\r\n\t\tlblPassword.setLayoutData(fd_lblPassword);\r\n\t\t\r\n\t\ttext_1 = new Text(container, SWT.BORDER);\r\n\t\tFormData fd_text_1 = new FormData();\r\n\t\tfd_text_1.top = new FormAttachment(text, 14);\r\n\t\tfd_text_1.left = new FormAttachment(text, 0, SWT.LEFT);\r\n\t\ttext_1.setLayoutData(fd_text_1);\r\n\t\t\r\n\t\tCLabel lblNewLabel_1 = new CLabel(container, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(LoginDialog.class, \"/com/acme/rcp/app/logo.png\"));\r\n\t\tFormData fd_lblNewLabel_1 = new FormData();\r\n\t\tfd_lblNewLabel_1.bottom = new FormAttachment(text, -14);\r\n\t\tfd_lblNewLabel_1.right = new FormAttachment(100, -140);\r\n\t\tlblNewLabel_1.setLayoutData(fd_lblNewLabel_1);\r\n\t\tlblNewLabel_1.setText(\"\");\r\n\r\n\t\treturn container;\r\n\t}", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "public void CreateTheFrame()\n {\n setSize(250, 300);\n setMaximumSize( new Dimension(250, 300) );\n setMinimumSize(new Dimension(250, 300));\n setResizable(false);\n\n pane = getContentPane();\n insets = pane.getInsets();\n\n // Apply the null layout\n pane.setLayout(null);\n }", "private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"ButtonDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n ButtonDemo newContentPane = new ButtonDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\tLevelEditor le = new LevelEditor();\n\t}", "public CashierOptionFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n lblUsername.setText(\"Hello \"+UserProfile.getUserName());\n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}", "public FramePrincipal() {\n\t\tinitComponents();\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame frame = new JFrame(\"ComboBox2\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);;\n\t\t\n\t\t//create and set up the content pane\n\t\tJComponent content = new ComboboxDemo2();\n\t\tcontent.setOpaque(true);\n\t\tframe.setContentPane(content);\n\t\t\n\t\t//display the window\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "public StudentOptionsFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n lblUsername.setText(\"Hello \"+UserProfile.getUsername());\n }", "public TelaLogin(JFrame frameLayout) \n {\n \n initComponents();\n this.frameLayout = frameLayout;\n this.frameLayout.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.frameLayout.add(this);\n this.frameLayout.pack();\n this.frameLayout.setLocationRelativeTo(null); \n this.frameLayout.setResizable(false);\n this.frameLayout.setVisible(true);\n }", "private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\", \"EditorPane\", \"TitledBorder\", \"Menu\", \"TextArea\",\n \"OptionPane\", \"MenuBar\", \"ToolBar\", \"ToggleButton\", \"ToolTip\",\n \"ProgressBar\", \"TableHeader\", \"Panel\", \"List\", \"ColorChooser\",\n \"PasswordField\", \"TextField\", \"Table\", \"Label\", \"Viewport\",\n \"RadioButtonMenuItem\", \"RadioButton\", \"DesktopPane\", \"InternalFrame\"\n };\n for (String item : names) {\n UIManager.put(item + \".font\", f);\n }\n //Create and set up the window.\n JFrame frame = new JFrame(\"AutoCapturePackagesTool\");\n\n String src = \"/optimizationprogram/GUICode/u5.png\";\n Image image = null;\n try {\n image = ImageIO.read(new CaptureGUI().getClass().getResource(src));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n frame.setIconImage(image);\n //frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,\n Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);\n frame.getContentPane().add(new CaptureGUI());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public void createFirebaseAccountsUI() {\n mAccountsFragment.startActivityForResult(\n AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(providers)\n .build(),\n mAccountsFragment.RC_SIGN_IN);\n }", "public PrincipalFrame() {\n initComponents();\n setIconsWhite(true);\n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public MembershipFrame() {\n initComponents();\n }", "public Login() \n {\n super();\n create();\n this.setVisible(true);\n initComponents();\n }", "public jframePrincipal() \n {\n initComponents();\n }", "private static void createAndShowGUI() {\n //Create and set up the window.\n //JFrame frame = new JFrame(\"Basics of Color\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Add content to the window.\n frame.add(new ColorBasics(), BorderLayout.CENTER);\n Menu menu = new Menu();\n frame.setJMenuBar(menu.createMenuBar());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n }", "public void createAndShowGUI(JFrame frame) {\n providerSideBar(frame.getContentPane(), pat);\n topBarPatientInformation(frame.getContentPane(), pat);\n patientReferralPanel(frame.getContentPane());\n\n }", "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}", "Frame createFrame();", "public ColorPickerMainFrame()\n {\n initComponents();\n \n getContentPane().add(panel);\n setSize(640, 640);\n }", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private static void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n frame = new JFrame(\"ATC simulator\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n atcscreen = new AtcScreen();\r\n atcscreen.setOpaque(true);\r\n frame.setContentPane(atcscreen);\r\n \r\n //Display the window.\r\n frame.setSize(1000,1000);\r\n //atcscreen.setSize(300,300);\r\n //frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"用户登陆界面\");\n\t\tframe.setBounds(600, 250, 689, 541);\n\t\tframe.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setUndecorated(true); // 去掉窗口的装饰 \n\t\tframe.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);//采用指定的窗口装饰风格 \n\t\t//禁止调整大小\n\t\tframe.setResizable(false); \n\n\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"是否退出用户登陆界面\", \"提示\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option==JOptionPane.YES_OPTION) { \n\t\t\t\t\tframe.dispose();\n\t\t\t\t}\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\tJPanel bj = new JPanel() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tImage image;\n\t\t\t\ttry {\n\t\t\t\t\timage = ImageIO.read(new File(\"src/Image/6.jpg\"));\n\t\t\t\t\tg.drawImage(image, 0, 0,getWidth(),getHeight(),null);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\tframe.setContentPane(bj);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel label = new JLabel(\"用户账号登陆\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"黑体\", Font.PLAIN, 40));\n\t\tlabel.setBounds(230, 66, 250, 58);\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"账号:\");\n\t\tlblNewLabel.setFont(new Font(\"宋体\", Font.PLAIN, 25));\n\t\tlblNewLabel.setBounds(131, 185, 72, 30);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"密码:\");\n\t\tlblNewLabel_1.setFont(new Font(\"宋体\", Font.PLAIN, 25));\n\t\tlblNewLabel_1.setBounds(131, 258, 72, 30);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setFont(new Font(\"黑体\", Font.PLAIN, 20));\n\t\ttextField.setBounds(217, 189, 282, 31);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tpasswordField.setBounds(217, 262, 282, 31);\n\t\tframe.getContentPane().add(passwordField);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"登陆\");\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tbtnNewButton.setForeground(Color.BLUE);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tbtnNewButton.setForeground(Color.BLACK);\n\t\t\t}\n\t\t\t/**\n\t\t\t * 用户登陆验证\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//从客户获取账号密码进行验证\n\t\t\t\tString account = textField.getText();\n\t\t\t\tString pwd = passwordField.getText();\n\t\t\t\t//获取验证模块\n\t\t\t\tUserQuery usqy = new UserQuery();\n\t\t\t\t//用户对象\n\t\t\t\tUser user = null;\n\t\t\t\tif(usqy.checkAccount(account)) {//验证用户账号是否存在\n\t\t\t\t\tif((user = (User) usqy.checkVaild(account, pwd))!=null) {//验证密码是否正确\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"登陆成功\", \"提示\", JOptionPane.INFORMATION_MESSAGE);\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\tnew UserOperateWindow(user);\n\t\t\t\t\t\t//销毁窗口\n\t\t\t\t\t\tframe.dispose();\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"输入密码不正确,请重新输入\", \"错误\", JOptionPane.ERROR_MESSAGE); \n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}else {//用户账号不存在\n\t\t\t\t\ttextField.setText(\"\");\n\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"您输入的账号不存在,请重新输入\", \"错误\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"黑体\", Font.PLAIN, 20));\n\t\tbtnNewButton.setBounds(217, 356, 120, 51);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"退出\");\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tbtnNewButton_1.setForeground(Color.RED);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tbtnNewButton_1.setForeground(Color.BLACK);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"是否退出用户登陆界面\", \"提示\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option==JOptionPane.YES_OPTION) {//确认退出\n\t\t\t\t\t//退出时销毁窗口\n\t\t\t\t\tframe.dispose();\n\t\t\t\t}else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setFont(new Font(\"黑体\", Font.PLAIN, 20));\n\t\tbtnNewButton_1.setBounds(379, 356, 120, 51);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t\t\n\n\t\t\n\t\tframe.setVisible(true);\n\t}", "public NewJFrame() {\n Connect();\n initComponents();\n }", "private JFrame showAbout(){\n JFrame aboutFrame = new JFrame(\"About\");\n aboutFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n aboutFrame.setResizable(false);\n aboutFrame.setLocationRelativeTo(frame);\n\n JLabel applicationName = new JLabel(\"Roham-H HTTP Client\");\n JLabel developerName = new JLabel(\"Developer: Roham Hayedi\");\n JLabel developerAUTID = new JLabel(\"ID: 9831107\");\n JLabel developerEmail = new JLabel(\"Email: rohamhayedi@gmail.com\");\n JPanel aboutPanel = new JPanel(new GridLayout(0, 2));\n JPanel aboutMainPanel = new JPanel(new BorderLayout());\n aboutFrame.setContentPane(aboutMainPanel);\n aboutMainPanel.add(applicationName, BorderLayout.NORTH);\n aboutMainPanel.add(aboutPanel, BorderLayout.CENTER);\n aboutPanel.add(developerName);\n aboutPanel.add(developerAUTID);\n aboutPanel.add(developerEmail);\n aboutFrame.pack();\n return aboutFrame;\n }", "private void setUpGUI() {\r\n\r\n\t\t// All the components to the panel\r\n\t\tuserName = new JTextField();\r\n\t\tpassword = new JPasswordField();\r\n\t\tuserNameLabel = new JLabel(\"UserName\");\r\n\t\tpasswordLabel = new JLabel(\"Password\");\r\n\t\tloginButton = new JButton(\"Login\");\r\n\t\tregisterButton = new JButton(\"Register\");\r\n\r\n\t\t// Null layout for custom layout\r\n\t\tthis.setLayout(null);\r\n\r\n\t\t// Sets the size and location of all the labels, fields, and buttons\r\n\t\tuserNameLabel.setLocation(labelXLocation, labelYLocation);\r\n\t\tuserNameLabel.setSize(labelXSize, labelYSize);\r\n\r\n\t\tuserName.setLocation(labelXLocation + xFieldOffset, labelYLocation);\r\n\t\tuserName.setSize(textFieldXSize, textFieldYSize);\r\n\r\n\t\tpasswordLabel.setLocation(labelXLocation, labelYLocation + labelYSize\r\n\t\t\t\t+ buffer);\r\n\t\tpasswordLabel.setSize(labelXSize, labelYSize);\r\n\r\n\t\tpassword.setLocation(labelXLocation + xFieldOffset, labelYLocation\r\n\t\t\t\t+ yFieldOffset);\r\n\t\tpassword.setSize(textFieldXSize, textFieldYSize);\r\n\r\n\t\tloginButton.setLocation(labelXLocation, labelYLocation + labelYSize\r\n\t\t\t\t+ textFieldYSize + buffer * 3);\r\n\t\tloginButton.setSize(xButtonSize, yButtonSize);\r\n\r\n\t\tregisterButton.setLocation(labelXLocation + xFieldOffset + buffer\r\n\t\t\t\t+ buffer, labelYLocation + labelYSize + textFieldYSize + buffer\r\n\t\t\t\t* 3);\r\n\t\tregisterButton.setSize(xButtonSize, yButtonSize);\r\n\r\n\t\t\r\n\t\t// Adds everything to the panel\r\n\t\tthis.add(userNameLabel);\r\n\t\tthis.add(userName);\r\n\t\tthis.add(passwordLabel);\r\n\t\tthis.add(password);\r\n\t\tthis.add(loginButton);\r\n\t\tthis.add(registerButton);\r\n\t\tthis.repaint();\r\n\t}", "public DisplayStaffMemberFrame() {\n initComponents();\n }", "public NewFrame() {\n initComponents();\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "public JFramePrincipal() {\n initComponents();\n controladorPrincipal = new ControladorPrincipal(this);\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 1280, 720);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnBack = new JButton(\"Back\");\r\n\t\tbtnBack.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPrincipal window = new Principal();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t} catch (Exception a) {\r\n\t\t\t\t\ta.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBack.setBounds(26, 28, 171, 41);\r\n\t\tframe.getContentPane().add(btnBack);\r\n\t}", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public AdminRegistrationFrame() {\n initComponents();\n console = Toolbox.getDBConsole();\n java.awt.Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }", "public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }", "private JPanel initButtons() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout(FlowLayout.CENTER, 3, 3));\n\t\tsigninButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tsigninButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// validate the credentials of the user being logged in \n\t\t\t\tif(ValidCredentials()){\n\t\t\t\t\t// if credentials are valid, initialize differnt panes\n\t\t\t\t\t// search , committee, update profile and logout tabs\n\t\t\t\t\tparentFrame.getContentPane().removeAll();\n\t\t\t\t\tparentFrame.getContentPane().revalidate();\n\t\t\t\t\tparentFrame.getContentPane().repaint();\n\t\t\t\t\tparentFrame.getContentPane().setLayout(new BorderLayout());\n\t\t\t\t\t\n\t\t\t\t\tJTabbedPane tabbedPane = new JTabbedPane();\n\t\t\t\t\ttabbedPane.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\t\t\t\ttabbedPane.addTab(\"Search\", new SearchUI(null));\n\t\t\t\t\ttabbedPane.addTab(\"Committee List\", new CommitteeListUI());\n\t\t\t\t\ttabbedPane.addTab(\"Update Profile\", new UpdateProfileUI());\n\t\t\t\t\t\n\t\t\t\t\ttabbedPane.add(\"Logout\", new LogoutUI());\n\t\t\t\t\tparentFrame.getContentPane().add(tabbedPane);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// if the credentials are invalid, pop up the following message window\n\t\t\t\t\tjOptionPane.showMessageDialog(LoginUI.this,\n\t\t\t\t\t\t\t\"Invalid username or password\",\n\t\t\t\t\t\t\t\"Login\",\n\t\t\t\t\t\t\tjOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t// reset username and password\n\t\t\t\t\tuserNameField.setText(\"\");\n\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tpanel.add(signinButton);\n\t\treturn panel;\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Change password\");\n\t\tframe.getContentPane().setBackground(new Color(51, 51, 51));\n\t\tframe.setBounds(0, 0, 1360, 759);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setExtendedState(6);\n frame.getContentPane().setLayout(null);\n frame.setVisible(true);\n \n JLabel lblSyllabusMonitoringSystem = new JLabel(\"Syllabus Monitoring System\");\n lblSyllabusMonitoringSystem.setForeground(UIManager.getColor(\"OptionPane.questionDialog.titlePane.background\"));\n lblSyllabusMonitoringSystem.setFont(new Font(\"Sawasdee\", Font.BOLD, 48));\n lblSyllabusMonitoringSystem.setBackground(UIManager.getColor(\"Button.foreground\"));\n lblSyllabusMonitoringSystem.setBounds(332, 12, 961, 208);\n frame.getContentPane().add(lblSyllabusMonitoringSystem);\n \n JButton button = new JButton(\"\");\n button.setBackground(Color.LIGHT_GRAY);\n button.setBounds(285, 236, 716, 4);\n frame.getContentPane().add(button);\n \n JButton button_1 = new JButton(\"\");\n button_1.setBackground(Color.LIGHT_GRAY);\n button_1.setBounds(285, 662, 716, 4);\n frame.getContentPane().add(button_1);\n \n JLabel label_1 = new JLabel(\"Mini Project - Database Management System\");\n label_1.setForeground(Color.WHITE);\n label_1.setBounds(598, 136, 441, 67);\n frame.getContentPane().add(label_1);\n \n JButton btnBack = new JButton(\"Back\");\n btnBack.setForeground(new Color(255, 255, 255));\n btnBack.setBackground(new Color(51, 51, 51));\n btnBack.setActionCommand(\"back\");\n btnBack.addActionListener(new ActionListener() {\n \tpublic void actionPerformed(ActionEvent e) {\n \t String s= e.getActionCommand();\n \t if(s.equals(\"back\"))\n \t {\n \t\t frame.dispose();\n \t\t new Confirm_detail();\n \t }\n \t}\n });\n btnBack.setBounds(51, 214, 117, 25);\n frame.getContentPane().add(btnBack);\n \n JLabel lblEditYourPassword = new JLabel(\"Edit Your Password\");\n lblEditYourPassword.setForeground(new Color(255, 255, 255));\n lblEditYourPassword.setFont(new Font(\"Laksaman\", Font.PLAIN, 37));\n lblEditYourPassword.setBounds(285, 251, 497, 67);\n frame.getContentPane().add(lblEditYourPassword);\n \n textField_1 = new JTextField();\n textField_1.setBounds(700, 421, 114, 19);\n frame.getContentPane().add(textField_1);\n textField_1.setColumns(10);\n \n textField_2 = new JTextField();\n textField_2.setBounds(700, 472, 114, 19);\n frame.getContentPane().add(textField_2);\n textField_2.setColumns(10);\n \n JLabel lblEnterNewPassword = new JLabel(\"Enter new password\");\n lblEnterNewPassword.setForeground(new Color(255, 255, 255));\n lblEnterNewPassword.setBounds(528, 411, 154, 38);\n frame.getContentPane().add(lblEnterNewPassword);\n \n JLabel lblRetypeNewPassword = new JLabel(\"Re-type new password\");\n lblRetypeNewPassword.setForeground(new Color(255, 255, 255));\n lblRetypeNewPassword.setBounds(528, 458, 163, 47);\n frame.getContentPane().add(lblRetypeNewPassword);\n \n JButton btnUpdate = new JButton(\"Update\");\n btnUpdate.setActionCommand(\"update\");\n btnUpdate.addActionListener(new ActionListener() {\n \tpublic void actionPerformed(ActionEvent e) {\n \t String s12= e.getActionCommand();\n \t if(s12.equals(\"update\"))\n \t {\n \t\t try {\n\t\t\t\t\tif(textField_2.getText()==\"\" || eu1.user.equals(\"null\"))\n\t\t\t\t\t{\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Error in User or Password Check Details again\");\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\tc2.test();\n\t\t\t\t\t c2.st= (Statement) c2.con.createStatement();\n\t\t\t\t\t c2.st.executeUpdate(\"UPDATE user SET password='\"+textField_2.getText()+\"' WHERE username='\"+eu1.user+\"'\");\n\t \t\t textField_1.setText(\"\");\n\t \t\t textField_2.setText(\"\");\n\t \t\t JOptionPane.showMessageDialog(null, \"Password Updated Sucessfully\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t} 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 \n \t }\n \t\n \t}\n });\n btnUpdate.setBounds(697, 552, 117, 25);\n frame.getContentPane().add(btnUpdate);\n \n JButton btnReset = new JButton(\"Reset\");\n btnReset.setActionCommand(\"reset\");\n btnReset.addActionListener(new ActionListener() {\n \tpublic void actionPerformed(ActionEvent e) {\n \tString s1= e.getActionCommand();\n \tif(s1.equals(\"reset\"))\n \t{\n textField_1.setText(\"\");\n textField_2.setText(\"\");\n \n \t}\n \t}\n });\n btnReset.setBounds(528, 552, 117, 25);\n frame.getContentPane().add(btnReset);\n \n JLabel lblImage = new JLabel(\"\");\n lblImage.setIcon(new ImageIcon(\"/home/nikhil/eclipse-workspace/Teacher Monitoring System/src/Images/administrator.png\"));\n lblImage.setBounds(1086, 82, 107, 112);\n frame.getContentPane().add(lblImage);\n \n \n JLabel label = new JLabel(\"Hi \"+eu1.user);\n label.setForeground(new Color(255, 255, 255));\n label.setBounds(1112, 195, 134, 25);\n frame.getContentPane().add(label);\n\t}", "private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }", "public PrincipalFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 400, 250);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t// Set Icon to frame\n\t\tURL iconURL_Frm = getClass().getResource(\"/lock-icon-frm.png\");\n\t\tImageIcon img = new ImageIcon(iconURL_Frm);\n\t\tframe.setIconImage(img.getImage());\n\n\t\tJLabel lblHelp = new JLabel(\"Help:\");\n\t\tlblHelp.setFont(new Font(\"Tahoma\", Font.PLAIN, 13));\n\t\tlblHelp.setBounds(40, 23, 46, 14);\n\t\tframe.getContentPane().add(lblHelp);\n\n\t\tAbstractAction action = new AbstractAction() {\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long\tserialVersionUID\t= -2859249038075476850L;\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (e.getSource() instanceof JButton) {\n\t\t\t\t\tJButton button = (JButton) e.getSource();\n\t\t\t\t\tbutton.doClick();\n\t\t\t\t} else if (e.getSource() instanceof JComponent) {\n\t\t\t\t\tJComponent component = (JComponent) e.getSource();\n\t\t\t\t\tcomponent.transferFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tJButton btnResetPswd = new JButton(\"Reset Password\");\n\t\tbtnResetPswd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t\tResetPasswordGUI.main(null);\n\t\t\t}\n\t\t});\n\t\tbtnResetPswd.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"DoClick\");\n\t\tbtnResetPswd.getActionMap().put(\"DoClick\", action);\n\t\tbtnResetPswd.setBounds(40, 50, 295, 23);\n\t\tframe.getContentPane().add(btnResetPswd);\n\n\t\tJButton btnForgotPswd = new JButton(\"Forgot Password\");\n\t\tbtnForgotPswd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// forgot password logic\n\t\t\t\tFORGOT_PASSWORD = true;\n\t\t\t\tframe.dispose();\n\t\t\t\tSecurityQuestionsGUI.main(null);\n\t\t\t}\n\t\t});\n\t\tbtnForgotPswd.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"DoClick\");\n\t\tbtnForgotPswd.getActionMap().put(\"DoClick\", action);\n\t\tbtnForgotPswd.setBounds(40, 85, 295, 23);\n\t\tframe.getContentPane().add(btnForgotPswd);\n\n\t\tJButton btnUnisatall = new JButton(\"Unisatall\");\n\t\tbtnUnisatall.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"DoClick\");\n\t\tbtnUnisatall.getActionMap().put(\"DoClick\", action);\n\t\tbtnUnisatall.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tUNINSTALL = true;\n\t\t\t\tframe.dispose();\n\t\t\t\tUninstalledSuccessfully.main(null);\n\t\t\t}\n\t\t});\n\t\tbtnUnisatall.setBounds(40, 120, 295, 23);\n\t\tframe.getContentPane().add(btnUnisatall);\n\n\t\tJButton btnBack = new JButton(\"Back\");\n\t\tbtnBack.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"DoClick\");\n\t\tbtnBack.getActionMap().put(\"DoClick\", action);\n\t\tbtnBack.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t\tHomeScreenGUI.main(null);\n\t\t\t}\n\t\t});\n\t\tbtnBack.setBounds(246, 165, 89, 23);\n\t\tframe.getContentPane().add(btnBack);\n\t}", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }", "private void initialize() {\r\n\t\ttry {\r\n\t\tdao = new DAO();\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 458, 627);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBorder(new TitledBorder(null, \"Create Account\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tpanel.setForeground(Color.WHITE);\r\n\t\tpanel.setBackground(Color.WHITE);\r\n\t\tpanel.setBounds(0, 0, 442, 589);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel Usernamelbl = new JLabel(\"*Username:\");\r\n\t\tUsernamelbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tUsernamelbl.setBounds(33, 47, 75, 14);\r\n\t\tpanel.add(Usernamelbl);\r\n\t\t\r\n\t\tusername = new JTextField();\r\n\t\tusername.setBounds(118, 44, 183, 20);\r\n\t\tpanel.add(username);\r\n\t\tusername.setColumns(10);\r\n\t\t\r\n\t\tJLabel Passwordlbl = new JLabel(\"*Password:\");\r\n\t\tPasswordlbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tPasswordlbl.setBounds(33, 77, 75, 14);\r\n\t\tpanel.add(Passwordlbl);\r\n\t\t\r\n\t\tpassword = new JPasswordField();\r\n\t\tpassword.setBounds(118, 75, 183, 20);\r\n\t\tpanel.add(password);\r\n\t\t\r\n\t\tJLabel PasswordVerifylbl = new JLabel(\"*Password(Verify):\");\r\n\t\tPasswordVerifylbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tPasswordVerifylbl.setBounds(0, 109, 108, 14);\r\n\t\tpanel.add(PasswordVerifylbl);\r\n\t\t\r\n\t\tpasswordVerify = new JPasswordField();\r\n\t\tpasswordVerify.setBounds(118, 106, 183, 20);\r\n\t\tpanel.add(passwordVerify);\r\n\t\t\r\n\t\tuserId = new JTextField();\r\n\t\tuserId.setColumns(10);\r\n\t\tuserId.setBounds(118, 137, 183, 20);\r\n\t\tpanel.add(userId);\r\n\t\t\r\n\t\tJLabel userIdlbl = new JLabel(\"*Account ID:\");\r\n\t\tuserIdlbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tuserIdlbl.setBounds(33, 140, 75, 14);\r\n\t\tpanel.add(userIdlbl);\r\n\t\t\r\n\t\tsecurityQst = new JTextField();\r\n\t\tsecurityQst.setColumns(10);\r\n\t\tsecurityQst.setBounds(118, 191, 183, 20);\r\n\t\tpanel.add(securityQst);\r\n\t\t\r\n\t\tJLabel lblAnswer = new JLabel(\"*Answer:\");\r\n\t\tlblAnswer.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tlblAnswer.setBounds(50, 194, 58, 14);\r\n\t\tpanel.add(lblAnswer);\r\n\t\t\r\n\t\tJLabel SecurityQuestionlbl = new JLabel(\"What is your favorite animal?\");\r\n\t\tSecurityQuestionlbl.setBounds(118, 168, 183, 14);\r\n\t\tpanel.add(SecurityQuestionlbl);\r\n\t\t\r\n\t\tfirstName = new JTextField();\r\n\t\tfirstName.setColumns(10);\r\n\t\tfirstName.setBounds(118, 222, 183, 20);\r\n\t\tpanel.add(firstName);\r\n\t\t\r\n\t\tJLabel FirstNamelbl = new JLabel(\"*First Name:\");\r\n\t\tFirstNamelbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tFirstNamelbl.setBounds(33, 225, 75, 14);\r\n\t\tpanel.add(FirstNamelbl);\r\n\t\t\r\n\t\tlastName = new JTextField();\r\n\t\tlastName.setColumns(10);\r\n\t\tlastName.setBounds(118, 253, 183, 20);\r\n\t\tpanel.add(lastName);\r\n\t\t\r\n\t\tJLabel LastNamelbl = new JLabel(\"*Last Name:\");\r\n\t\tLastNamelbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tLastNamelbl.setBounds(33, 256, 75, 14);\r\n\t\tpanel.add(LastNamelbl);\r\n\t\t\r\n\t\tmiddleName = new JTextField();\r\n\t\tmiddleName.setColumns(10);\r\n\t\tmiddleName.setBounds(118, 284, 183, 20);\r\n\t\tpanel.add(middleName);\r\n\t\t\r\n\t\tJLabel MiddleNamelbl = new JLabel(\"Middle Name:\");\r\n\t\tMiddleNamelbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tMiddleNamelbl.setBounds(10, 287, 98, 14);\r\n\t\tpanel.add(MiddleNamelbl);\r\n\t\t\r\n\t\taddress = new JTextField();\r\n\t\taddress.setColumns(10);\r\n\t\taddress.setBounds(118, 315, 183, 20);\r\n\t\tpanel.add(address);\r\n\t\t\r\n\t\tJLabel Addresslbl = new JLabel(\"*Address:\");\r\n\t\tAddresslbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tAddresslbl.setBounds(33, 318, 75, 14);\r\n\t\tpanel.add(Addresslbl);\r\n\t\t\r\n\t\tcity = new JTextField();\r\n\t\tcity.setColumns(10);\r\n\t\tcity.setBounds(118, 346, 183, 20);\r\n\t\tpanel.add(city);\r\n\t\t\r\n\t\tJLabel Citylbl = new JLabel(\"*City:\");\r\n\t\tCitylbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tCitylbl.setBounds(33, 349, 75, 14);\r\n\t\tpanel.add(Citylbl);\r\n\t\t\r\n\t\tstate = new JTextField();\r\n\t\tstate.setColumns(10);\r\n\t\tstate.setBounds(118, 377, 183, 20);\r\n\t\tpanel.add(state);\r\n\t\t\r\n\t\tJLabel Statelbl = new JLabel(\"*State:\");\r\n\t\tStatelbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tStatelbl.setBounds(33, 380, 75, 14);\r\n\t\tpanel.add(Statelbl);\r\n\t\t\r\n\t\tJLabel ZipCodelbl = new JLabel(\"*Zip Code:\");\r\n\t\tZipCodelbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tZipCodelbl.setBounds(33, 411, 75, 14);\r\n\t\tpanel.add(ZipCodelbl);\r\n\t\t\r\n\t\tJLabel Phonelbl = new JLabel(\"Phone:\");\r\n\t\tPhonelbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tPhonelbl.setBounds(33, 442, 75, 14);\r\n\t\tpanel.add(Phonelbl);\r\n\t\t\r\n\t\temail = new JTextField();\r\n\t\temail.setColumns(10);\r\n\t\temail.setBounds(118, 470, 183, 20);\r\n\t\tpanel.add(email);\r\n\t\t\r\n\t\tJLabel Emaillbl = new JLabel(\"*Email:\");\r\n\t\tEmaillbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tEmaillbl.setBounds(33, 473, 75, 14);\r\n\t\tpanel.add(Emaillbl);\r\n\t\t\r\n\t\temailVerify = new JTextField();\r\n\t\temailVerify.setColumns(10);\r\n\t\temailVerify.setBounds(118, 501, 183, 20);\r\n\t\tpanel.add(emailVerify);\r\n\t\t\r\n\t\tJLabel EmailVerifylbl = new JLabel(\"*Email(Verify):\");\r\n\t\tEmailVerifylbl.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tEmailVerifylbl.setBounds(10, 504, 98, 14);\r\n\t\tpanel.add(EmailVerifylbl);\r\n\t\t\r\n\t\tJButton cancelBtn = new JButton(\"Cancel\");\r\n\t\tcancelBtn.setBounds(210, 540, 139, 38);\r\n\t\tpanel.add(cancelBtn);\r\n\t\t\r\n\t\tcancelBtn.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tframe.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJButton createBtn = new JButton(\"Create\");\r\n\t\tcreateBtn.setBounds(50, 540, 139, 38);\r\n\t\tpanel.add(createBtn);\r\n\t\t\r\n\t\tJLabel lblRequired = new JLabel(\"Required = *\");\r\n\t\tlblRequired.setBounds(50, 22, 70, 14);\r\n\t\tpanel.add(lblRequired);\r\n\t\t\r\n\t\t\r\n\t\tphone = new JTextField();\r\n\t\tphone.setBounds(118, 439, 183, 20);\r\n\t\tpanel.add(phone);\r\n\t\t\r\n\t\tzipCode = new JTextField();\r\n\t\tzipCode.setBounds(118, 408, 183, 20);\r\n\t\tpanel.add(zipCode);\r\n\t\t\r\n\t\tPlainDocument zipdoc = (PlainDocument) zipCode.getDocument();\r\n\t\tzipdoc.setDocumentFilter(new IntegerFilter());\r\n\t\t\r\n\t\tPlainDocument phonedoc = (PlainDocument) phone.getDocument();\r\n\t\tphonedoc.setDocumentFilter(new IntegerFilter());\r\n\t\t\r\n\t\tcreateBtn.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tcreateFunction();\r\n\t\t\t}\r\n\t\t});\r\n\t\t} catch(SQLException es){\r\n\t\t\tes.printStackTrace();\r\n\t\t}\r\n\t}", "public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "public NewSessionGui() {\n initComponents();\n client = new HttpBraimClient();\n setLocationRelativeTo(null);\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setBackground(new Color(0, 102, 51));\r\n\t\tframe.setBounds(100, 100, 519, 350);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Tenant Registration\");\r\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel.setBackground(new Color(0, 0, 128));\r\n\t\tlblNewLabel.setForeground(new Color(255, 228, 225));\r\n\t\tlblNewLabel.setFont(new Font(\"Tempus Sans ITC\", Font.BOLD, 26));\r\n\t\tlblNewLabel.setBounds(40, 22, 371, 29);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJButton btnSave = new JButton(\"Save\");\r\n\t\tbtnSave.setForeground(new Color(255, 255, 255));\r\n\t\tbtnSave.setBackground(new Color(0, 0, 128));\r\n\t\tbtnSave.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\tbtnSave.setBounds(42, 265, 110, 35);\r\n\t\tframe.getContentPane().add(btnSave);\r\n\t\t\r\n\t\tJButton btnReset = new JButton(\"Reset\");\r\n\t\tbtnReset.setForeground(Color.WHITE);\r\n\t\tbtnReset.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\tbtnReset.setBackground(new Color(178, 34, 34));\r\n\t\tbtnReset.setBounds(337, 265, 110, 35);\r\n\t\tframe.getContentPane().add(btnReset);\r\n\t\t\r\n\t\tbtnSave.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Tenant ID\");\r\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblNewLabel_1.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_1.setBounds(276, 67, 124, 29);\r\n\t\tframe.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJTextField tenantId = new JTextField();\r\n\t\ttenantId.setBounds(276, 95, 171, 29);\r\n\t\tframe.getContentPane().add(tenantId);\r\n\t\ttenantId.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Tenant Names\");\r\n\t\tlblNewLabel_1_1.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblNewLabel_1_1.setBounds(40, 67, 124, 29);\r\n\t\tframe.getContentPane().add(lblNewLabel_1_1);\r\n\t\t\r\n\t\tJLabel tenantEmail = new JLabel(\"Available House\");\r\n\t\ttenantEmail.setForeground(Color.WHITE);\r\n\t\ttenantEmail.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\ttenantEmail.setBounds(276, 138, 124, 29);\r\n\t\tframe.getContentPane().add(tenantEmail);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1_3 = new JLabel(\"Tenant Tel.Number\");\r\n\t\tlblNewLabel_1_3.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1_3.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblNewLabel_1_3.setBounds(40, 138, 137, 29);\r\n\t\tframe.getContentPane().add(lblNewLabel_1_3);\r\n\t\t\r\n\t\ttenantNames = new JTextField();\r\n\t\ttenantNames.setColumns(10);\r\n\t\ttenantNames.setBounds(40, 95, 171, 29);\r\n\t\tframe.getContentPane().add(tenantNames);\r\n\t\t\r\n\t\ttenantTel = new JTextField();\r\n\t\ttenantTel.setColumns(10);\r\n\t\ttenantTel.setBounds(40, 167, 171, 29);\r\n\t\tframe.getContentPane().add(tenantTel);\r\n\t\t\r\n\t\tbookedHouse = new JComboBox();\r\n\t\tbookedHouse.setBounds(276, 167, 171, 29);\r\n\t\tframe.getContentPane().add(bookedHouse);\r\n\t}", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "public JFrame createGUI() {\n\n TreeSelectionListener treeSelectionListener = tse -> {\n DefaultMutableTreeNode node =\n (DefaultMutableTreeNode)tse.getPath().getLastPathComponent();\n showDirectory(node);\n updateView((File)node.getUserObject());\n };\n\n view.getTree().addTreeSelectionListener(treeSelectionListener);\n view.getTree().setCellRenderer(new FileTreeCellRenderer());\n\n listSelectionListener = (event) -> {\n try {\n updateView(getSelectedFile());\n } catch (Exception e) {\n handleException(ERROR_SELECT_FILE, e);\n }\n };\n\n view.getTable().getSelectionModel()\n .addListSelectionListener(listSelectionListener);\n\n initFileOperationsAction();\n\n return view.getFrame();\n }", "public void run() {\r\n frame = new MainFrame(this);\r\n newAccountFrame = new NewAccountPage(this);\r\n \r\n frame.setVisible(true);\r\n }", "public ProviderFrame() {\n this.setTitle(FACE_DETECTION_APPLICATION_TITLE);\n this.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent event) {\n System.exit(0);\n }\n });\n\n buildElements();\n\n centerFrame();\n }" ]
[ "0.6454466", "0.6413615", "0.64114004", "0.6401358", "0.6386075", "0.6372392", "0.63177335", "0.62473017", "0.62174183", "0.6185974", "0.60835904", "0.6050762", "0.6043841", "0.60430104", "0.6027936", "0.6025038", "0.5994764", "0.5990796", "0.5976812", "0.5965187", "0.595263", "0.5923568", "0.5921973", "0.5920199", "0.59175754", "0.5905206", "0.58833426", "0.58829045", "0.5880308", "0.587017", "0.5851253", "0.58375525", "0.5826742", "0.58264077", "0.58247846", "0.58233285", "0.5823187", "0.58195937", "0.58173954", "0.5810263", "0.58073676", "0.5805475", "0.5804724", "0.58009267", "0.57955474", "0.5786637", "0.5785604", "0.5777245", "0.5769459", "0.576903", "0.57604665", "0.5757476", "0.5750748", "0.5741507", "0.5739935", "0.57390356", "0.5734644", "0.5734347", "0.57303274", "0.57271063", "0.5724337", "0.5722718", "0.571578", "0.5712259", "0.570641", "0.57014453", "0.5697448", "0.56893426", "0.5689149", "0.56853426", "0.5677886", "0.56761837", "0.5672374", "0.5670278", "0.56689876", "0.56684744", "0.5659921", "0.5653046", "0.56506896", "0.56489253", "0.5647561", "0.5638188", "0.5637832", "0.5630009", "0.5629998", "0.5618241", "0.56168914", "0.5616639", "0.5610244", "0.56101483", "0.55994636", "0.5596962", "0.55905837", "0.55843216", "0.55831665", "0.5580848", "0.55808365", "0.5578522", "0.5570922", "0.55643237" ]
0.5816331
39
/ Initialise the tabbed pane that contains the tabs with tabular representations of the Keystore's content.
private void initComponents() { keyStoreTabbedPane = new JTabbedPane(); /* * Initialise the tab containing the table for username/password entries * from the Keystore */ passwordsTable = initTable(PASSWORDS, passwordsTab); /* * Initialise the tab containing the table for key pair entries from the * Keystore */ keyPairsTable = initTable(KEYPAIRS, keyPairsTab); /* * Initialise the tab containing the table for proxy entries from the * Keystore */ //proxiesTable = initTable(PROXIES, proxiesTab); /* * Initialise the tab containing the table for trusted certificate * entries from the Truststore */ trustedCertsTable = initTable(TRUSTED_CERTIFICATES, trustedCertificatesTab); /* * Set the size of the tabbed pane to the preferred size - the size of * the main application frame depends on it. */ keyStoreTabbedPane.setPreferredSize(new Dimension(DEFAULT_FRAME_WIDTH, DEFAULT_FRAME_HEIGHT)); JPanel globalButtons = new JPanel(new FlowLayout(FlowLayout.RIGHT)); JButton resetJavaAuthCache = new JButton("Clear HTTP authentication"); resetJavaAuthCache.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { clearAuthenticationCache(); } }); globalButtons.add(resetJavaAuthCache); // Button for changing Credential Manager's master password JButton changeMasterPasswordButton = new JButton( "Change master password"); changeMasterPasswordButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { changeMasterPassword(); } }); globalButtons.add(changeMasterPasswordButton); // Add change master password to the main application frame getContentPane().add(globalButtons, NORTH); // Add tabbed pane to the main application frame getContentPane().add(keyStoreTabbedPane, CENTER); // Handle application close addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent evt) { closeFrame(); } }); setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); pack(); // Centre the frame in the centre of the screen setLocationRelativeTo(null); // Set the frame's icon setIconImage(credManagerIconImage); // Set the frame's title setTitle("Credential Manager"); // setModal(true); // setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\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}", "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "private void setupTabs() {\n }", "private void setupTab() {\n setLayout(new BorderLayout());\n JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n mainSplit.setDividerLocation(160);\n mainSplit.setBorder(BorderFactory.createEmptyBorder());\n\n // set up the MBean tree panel (left pane)\n tree = new XTree(this);\n tree.setCellRenderer(new XTreeRenderer());\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n tree.addTreeSelectionListener(this);\n tree.addTreeWillExpandListener(this);\n tree.addMouseListener(ml);\n JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel treePanel = new JPanel(new BorderLayout());\n treePanel.add(theScrollPane, BorderLayout.CENTER);\n mainSplit.add(treePanel, JSplitPane.LEFT, 0);\n\n // set up the MBean sheet panel (right pane)\n viewer = new XDataViewer(this);\n sheet = new XSheet(this);\n mainSplit.add(sheet, JSplitPane.RIGHT, 0);\n\n add(mainSplit);\n }", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }", "private void initialize() {\n this.setSize(394, 201);\n\n this.addTab(\"看病人基本資料\", null, getSeePatientFoundamentalDataPanel(), null);\n this.addTab(\"看病歷\", null, getSeeCaseHistoryPanel(), null);\n this.addTab(\"查藥品庫存\", null, getSeeMedicinesPanel(), null);\n this.addTab(\"看檢查報告\", null, getSeeInspectionReportPanel(), null);\n this.addTab(\"看掛號病人\", null, getSeeRegisteredPatientFoundamentalDataPanel(), null);\n this.addTab(\"開藥單\", null, getWritePrescriptionPanel(), null);\n this.addTab(\"寫病歷\", null, getWriteCaseHistoryPanel(), null);\n this.addTab(\"決定病人住院\", null, getDecideHospitalizePanel(), null);\n this.addTab(\"急診\", null, getEmergencyTreatmentPanel(), null);\n }", "private void layoutTabs() {\n\tJTabbedPane tabs = new JTabbedPane();\n\ttabs.add(\"MAIN MENU\", mainMenu);\n\ttabs.add(\"LEVEL EDITOR\", levelEditor);\n\tthis.getContentPane().add(tabs);\n }", "public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }", "TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}", "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }", "public void init(){\n tabHost = (TabHost)findViewById(android.R.id.tabhost);\n\n //Creating tab menu.\n TabHost.TabSpec TabMenu1 = tabHost.newTabSpec(\"First tab\");\n TabHost.TabSpec TabMenu2 = tabHost.newTabSpec(\"Second tab\");\n TabHost.TabSpec TabMenu3 = tabHost.newTabSpec(\"Third tab\");\n\n //Setting up tab 1 name.\n TabMenu1.setIndicator(getResources().getString(R.string.map));\n //Set tab 1 activity to tab 1 menu.\n Intent intent = new Intent(this, MapsActivity.class);\n intent.putExtra(\"studentObj\", student);\n TabMenu1.setContent(intent);\n\n\n //Setting up tab 2 name.\n TabMenu2.setIndicator(getResources().getString(R.string.people));\n intent = new Intent(this, PeopleActivity.class);\n TabMenu2.setContent(intent);\n\n //Setting up tab 2 name.\n TabMenu3.setIndicator(getResources().getString(R.string.setting));\n intent = new Intent(this, SettingActivity.class);\n TabMenu3.setContent(intent);\n\n //\n tabHost.addTab(TabMenu1);\n tabHost.addTab(TabMenu2);\n tabHost.addTab(TabMenu3);\n }", "private void initTab()\n {\n \n }", "public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}", "public DoctorMainTabbedPane() {\n super();\n initialize();\n }", "private void initMainWorkspace() throws IOException {\n // THE TOP WORKSPACE PANE WILL ONLY DIRECTLY HOLD 2 THINGS, A LABEL\n // AND A SPLIT PANE, WHICH WILL HOLD 2 ADDITIONAL GROUPS OF CONTROLS\n mainWorkspacePane = new TabPane();\n mainWorkspacePane.setSide(Side.BOTTOM);\n mainWorkspacePane.setTabClosingPolicy(UNAVAILABLE);\n \n initTeamsTab();\n initPlayersTab();\n initStandingTab();\n initDraftTab();\n initMLBTeamTab();\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }", "private void initDraftTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n draftTab = new Tab();\n draftWorkspacePane = new VBox();\n draftWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD PAGE LABEL & BUTTON\n Label draftLabel = new Label();\n draftLabel = initChildLabel(draftWorkspacePane, DraftKit_PropertyType.DRAFT_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.DRAFT_ICON);\n Image buttonImage = new Image(imagePath);\n draftTab.setGraphic(new ImageView(buttonImage));\n \n // ADD BUTTONS TO THE DRAFT PAGE\n HBox draftButtons = new HBox();\n \n pickPlayer = initHBoxButton(draftButtons, PICK_ICON, PICK_PLAYER_TOOLTIP, false);\n autoPickPlayer = initHBoxButton(draftButtons, PLAY_ICON, AUTO_DRAFT_TOOLTIP, false);\n autoPickPause = initHBoxButton(draftButtons, PAUSE_ICON, AUTO_PAUSE_TOOLTIP, false);\n \n pickPlayer.setMinHeight(10);\n autoPickPlayer.setMinHeight(34);\n autoPickPause.setMinHeight(34);\n pickPlayer.setMinWidth(8);\n autoPickPlayer.setMinWidth(38);\n autoPickPause.setMinWidth(38);\n \n ToolBar draftToolBar = new ToolBar(\n pickPlayer,\n autoPickPlayer,\n autoPickPause\n );\n \n // CREATE THE DRAFT TABLE\n draftTable = new TableView();\n\n draftPick = new TableColumn<>(\"Pick #\");\n draftPick.setCellValueFactory(new Callback<CellDataFeatures<Player, Integer>, ObservableValue<Integer>>() {\n @Override\n public ObservableValue<Integer> call(CellDataFeatures<Player, Integer> p) {\n return new ReadOnlyObjectWrapper(draftTable.getItems().indexOf(p.getValue()) + 1);\n }\n }); \n draftPick.setSortable(false);\n draftFirst = new TableColumn<>(\"First\");\n draftFirst.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n draftLast = new TableColumn<>(\"Last\");\n draftLast.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n draftTeam = new TableColumn<>(\"Team\");\n draftTeam.setCellValueFactory(new PropertyValueFactory<>(\"ChosenTeam\"));\n draftContract = new TableColumn<>(\"Contract\");\n draftContract.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n draftSalary = new TableColumn<>(\"Salary ($)\");\n draftSalary.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n \n draftTable.getColumns().addAll(draftPick, draftFirst, draftLast, draftTeam, draftContract, draftSalary);\n \n // NEED TO CREATE THE WAY TO ADD THE TABLE (REFRESH IT)\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Draft Summary Page\");\n draftTab.setTooltip(t);\n \n // PUT IN TAB PANE\n draftWorkspacePane.getChildren().add(draftToolBar);\n draftWorkspacePane.getChildren().add(draftTable);\n draftTab.setContent(draftWorkspacePane);\n mainWorkspacePane.getTabs().add(draftTab);\n }", "private void initStandingTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n standingsTab = new Tab();\n standingsWorkspacePane = new VBox();\n standingsWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD PAGE LABEL & BUTTON\n Label standing = new Label();\n standing = initChildLabel(standingsWorkspacePane, DraftKit_PropertyType.STANDINGS_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.STANDINGS_ICON);\n Image buttonImage = new Image(imagePath);\n standingsTab.setGraphic(new ImageView(buttonImage));\n \n // CREATE THE STANDINGS TABLE\n standingTable = new TableView();\n\n teamName = new TableColumn<>(\"Team Name\");\n teamName.setCellValueFactory(new PropertyValueFactory<>(\"TeamName\"));\n pNeeded = new TableColumn<>(\"Players Needed\");\n pNeeded.setCellValueFactory(new PropertyValueFactory<>(\"PlayersNeeded\"));\n moneyLeft = new TableColumn<>(\"$ Left\");\n moneyLeft.setCellValueFactory(new PropertyValueFactory<>(\"MoneyLeft\"));\n moneyPP = new TableColumn<>(\"$ PP\");\n moneyPP.setCellValueFactory(new PropertyValueFactory<>(\"MoneyPP\"));\n rEst = new TableColumn<>(\"R\");\n rEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalR\"));\n hrEst = new TableColumn<>(\"HR\");\n hrEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalHR\"));\n rbiEst = new TableColumn<>(\"RBI\");\n rbiEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalRBI\"));\n sbEst = new TableColumn<>(\"SB\");\n sbEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalSB\"));\n baEst = new TableColumn<>(\"BA\");\n baEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalBA\"));\n wEst = new TableColumn<>(\"W\");\n wEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalW\"));\n svEst = new TableColumn<>(\"SV\");\n svEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalSV\"));\n kEst = new TableColumn<>(\"K\");\n kEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalK\"));\n eraEst = new TableColumn<>(\"ERA\");\n eraEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalERA\"));\n whipEst = new TableColumn<>(\"WHIP\");\n whipEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalWHIP\"));\n totalPoints = new TableColumn<>(\"Total Points\");\n totalPoints.setCellValueFactory(new PropertyValueFactory<>(\"TotalPoints\"));\n \n standingTable.getColumns().addAll(teamName, pNeeded, moneyLeft, moneyPP, rEst,\n hrEst, rbiEst, sbEst, baEst, wEst, svEst, kEst, eraEst, whipEst, totalPoints);\n \n standingTable = resetStandingTable(dataManager.getDraft().getFantasyTeams());\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Fantasy Standings Page\");\n standingsTab.setTooltip(t);\n \n // PUT IN TAB PANE\n standingsWorkspacePane.getChildren().add(standingTable);\n standingsTab.setContent(standingsWorkspacePane);\n mainWorkspacePane.getTabs().add(standingsTab);\n }", "private void initTeamsTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n teamTab = new Tab();\n teamWorkspacePane = new VBox();\n teamWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n teamScroll = new ScrollPane();\n \n // PAGE LABEL & BUTTON\n Label teams = new Label();\n teams = initChildLabel(teamWorkspacePane, DraftKit_PropertyType.TEAMS_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.TEAM_ICON);\n Image buttonImage = new Image(imagePath);\n teamTab.setGraphic(new ImageView(buttonImage));\n \n // ADD THINGS TO VBOX HERE\n HBox draftNameControls = new HBox();\n initHBoxLabel(draftNameControls, DraftKit_PropertyType.DRAFT_NAME_LABEL, CLASS_PROMPT_LABEL);\n draftNameText = initHBoxTextField(draftNameControls, \"\", true);\n\n HBox teamControls = new HBox();\n addTeam = initHBoxButton(teamControls, DraftKit_PropertyType.ADD_ICON, DraftKit_PropertyType.ADD_TEAM_TOOLTIP, false);\n removeTeam = initHBoxButton(teamControls, DraftKit_PropertyType.MINUS_ICON, DraftKit_PropertyType.REMOVE_TEAM_TOOLTIP, true);\n editTeam = initHBoxButton(teamControls, DraftKit_PropertyType.EDIT_ICON, DraftKit_PropertyType.EDIT_TEAM_TOOLTIP, true);\n\n initHBoxLabel(teamControls, DraftKit_PropertyType.TEAM_SELECT_LABEL, CLASS_PROMPT_LABEL);\n selectTeam = new ComboBox();\n selectTeam.getItems().clear();\n for (int n = 0; n < dataManager.getDraft().getFantasyTeams().size(); n++) {\n selectTeam.getItems().add(dataManager.getDraft().getFantasyTeams().get(n).getTeamName());\n }\n selectTeam.setValue(\"Choose a team\");\n \n selectTeam.valueProperty().addListener(new ChangeListener<String>() {\n @Override public void changed(ObservableValue ov, String t, String t1) {\n ArrayList<Player> tempTeam = new ArrayList<>();\n ArrayList<Player> tempTaxi = new ArrayList<>();\n teamTable.getItems().clear();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem())) {\n tempTeam = tt.getTeamList();\n tempTaxi = tt.getTaxiList();\n }\n }\n teamTable = resetTeamTable(tempTeam);\n teamTaxiTable = resetTaxiTable(tempTaxi);\n }\n });\n \n teamControls.getChildren().add(selectTeam);\n\n // TABLE FOR MAIN PLAYERS IN THE FANTASY TEAMS PAGE\n VBox teamTableBox = new VBox();\n initVBoxLabel(teamTableBox, DraftKit_PropertyType.TEAM_TABLE_LABEL, CLASS_SUBHEADING_LABEL);\n positionCompare = new PositionCompare();\n teamTable = new TableView<>();\n \n posCol = new TableColumn<>(\"Position\");\n posCol.setCellValueFactory(new PropertyValueFactory<>(\"ChosenPosition\"));\n posCol.setComparator(positionCompare);\n posCol.setSortType(SortType.ASCENDING);\n posCol.setSortable(true);\n firstCol = new TableColumn<>(\"First\");\n firstCol.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n firstCol.setSortable(false);\n lastCol = new TableColumn<>(\"Last\");\n lastCol.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n lastCol.setSortable(false);\n teamCol = new TableColumn<>(\"Pro Team\");\n teamCol.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n teamCol.setSortable(false);\n positionsCol = new TableColumn<>(\"Positions\");\n positionsCol.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n positionsCol.setSortable(false);\n rwCol = new TableColumn<>(\"R/W\");\n rwCol.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n rwCol.setSortable(false);\n hrsvCol = new TableColumn<>(\"HR/SV\");\n hrsvCol.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n hrsvCol.setSortable(false);\n rbikCol = new TableColumn<>(\"RBI/K\");\n rbikCol.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n rbikCol.setSortable(false);\n sberaCol = new TableColumn<>(\"SB/ERA\");\n sberaCol.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n sberaCol.setSortable(false);\n bawhipCol = new TableColumn<>(\"BA/WHIP\");\n bawhipCol.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n bawhipCol.setSortable(false);\n eValueCol = new TableColumn<>(\"Estimated Value\");\n eValueCol.setCellValueFactory(new PropertyValueFactory<>(\"estimatedValue\"));\n eValueCol.setSortable(false);\n contractCol = new TableColumn<>(\"Contract\");\n contractCol.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n contractCol.setSortable(false);\n salaryCol = new TableColumn<>(\"Salary\");\n salaryCol.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n salaryCol.setSortable(false);\n \n teamTable.getColumns().setAll(posCol, firstCol, lastCol, positionsCol,\n rwCol, hrsvCol, rbikCol, sberaCol, bawhipCol, eValueCol, contractCol, salaryCol);\n \n teamTable.getSortOrder().add(posCol);\n \n teamTable.setItems(teamList);\n \n // TABLE FOR TAXI PLAYERS IN THE FANTASY TEAMS PAGE\n VBox teamTaxiBox = new VBox();\n initVBoxLabel(teamTaxiBox, DraftKit_PropertyType.TEAM_TAXI_LABEL, CLASS_SUBHEADING_LABEL);\n teamTaxiTable = new TableView<>();\n \n firstCol2 = new TableColumn<>(\"First\");\n firstCol2.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n lastCol2 = new TableColumn<>(\"Last\");\n lastCol2.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n teamCol2 = new TableColumn<>(\"Pro Team\");\n teamCol2.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n positionsCol2 = new TableColumn<>(\"Positions\");\n positionsCol2.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n rwCol2 = new TableColumn<>(\"R/W\");\n rwCol2.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n hrsvCol2 = new TableColumn<>(\"HR/SV\");\n hrsvCol2.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n rbikCol2 = new TableColumn<>(\"RBI/K\");\n rbikCol2.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n sberaCol2 = new TableColumn<>(\"SB/ERA\");\n sberaCol2.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n bawhipCol2 = new TableColumn<>(\"BA/WHIP\");\n bawhipCol2.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n eValueCol2 = new TableColumn<>(\"Estimated Value\");\n eValueCol2.setCellValueFactory(new PropertyValueFactory<>(\"EValue\"));\n contractCol2 = new TableColumn<>(\"Contract\");\n contractCol2.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n salaryCol2 = new TableColumn<>(\"Salary\");\n salaryCol2.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n \n teamTaxiTable.getColumns().setAll(firstCol2, lastCol2, positionsCol2,\n rwCol2, hrsvCol2, rbikCol2, sberaCol2, bawhipCol2, eValueCol2, contractCol2, salaryCol2);\n \n teamTaxiTable.setItems(teamTaxiList);\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Fantasy Teams Page\");\n teamTab.setTooltip(t);\n \n // PUT IN TAB PANE\n teamTableBox.getChildren().add(teamTable);\n teamTaxiBox.getChildren().add(teamTaxiTable);\n teamWorkspacePane.getChildren().add(draftNameControls);\n teamWorkspacePane.getChildren().add(teamControls);\n teamWorkspacePane.getChildren().add(teamTableBox);\n teamWorkspacePane.getChildren().add(teamTaxiBox);\n teamScroll.setContent(teamWorkspacePane);\n teamTab.setContent(teamScroll);\n mainWorkspacePane.getTabs().add(teamTab);\n \n ArrayList<Player> tempTeam = new ArrayList<>();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem()))\n tempTeam = tt.getTeamList();\n }\n teamTable = resetTeamTable(tempTeam);\n }", "private void initMainComponents() {\n\t\tsetBackground(Color.RED);\n\t\tsetTitle(\"TABL\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 974, 842);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(new Color(100, 149, 237));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\t\n\t\tcontentPane.setVisible(true);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\t\n\t\tlayeredPane = new JLayeredPane();\n\t\tlayeredPane.setBounds(10, 40, 941, 757);\n\t\tcontentPane.add(layeredPane);\n\t\t\n\t\tsetForeground(Color.BLACK);\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(AdminManageUsers.class.getResource(\"/resources/Logo.PNG\")));\n\n\t}", "private void initGUI() {\n\t\tContainer cp = getContentPane();\n\t\tcp.setLayout(new BorderLayout());\n\t\t\n\t\tJPanel top = new JPanel(new GridLayout(0, 1));\n\t\tcp.add(top, BorderLayout.PAGE_START);\n\t\t\n\t\ttop.add(createMenuBar());\n\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\ttabs.add(\"Encryptor\", encryptorPanel);\n\t\ttabs.add(\"Decryptor\", decryptorPanel);\n\t\ttabs.setSelectedComponent(encryptorPanel);\n\t\t\n\t\tcp.add(tabs);\n\t}", "private void makeCenter() {\r\n // JTabbedPane border.center\r\n // JScrollPane\r\n // JTable\r\n final JTabbedPane tabPane = new JTabbedPane();\r\n\r\n List<String[]> columnNamesList = connectToDB();\r\n\r\n // = {{\"Title\", \"Artist\", \"Genre\"}, \r\n // {\"Title\", \"Year\"}, \r\n // {\"Title\", \"Author\"}, \r\n // {\"Title\"}};\r\n\r\n final Object[][][] data = {\r\n {\r\n {\"Blue\", \"Third Eye Blind\", \"Pop-Punk\"}, {\"Ten\", \"Pearl Jam\", \"Grunge\"}\r\n }, {\r\n {\"Pacific Rim\", \"2013\"}\r\n }, {\r\n {\"Core Java\", \"Horstmann\"}\r\n }, {\r\n {\"DDR Revolution\"}\r\n }\r\n };\r\n\r\n final List<JTable> tables = new ArrayList<JTable>();\r\n for (int i = 0; i < columnNamesList.size(); i++) {\r\n String[] columnNamesArray = columnNamesList.get(i);\r\n @SuppressWarnings(\"serial\")\r\n final DefaultTableModel tableModel = \r\n new DefaultTableModel(data[i], columnNamesArray) {\r\n @Override\r\n public boolean isCellEditable(final int theRow, final int theColumn) {\r\n //all cells false\r\n return false;\r\n }\r\n };\r\n final JTable table = new JTable(tableModel);\r\n table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(final ListSelectionEvent theEvent) {\r\n // do some actions here, for example\r\n // print first column value from selected row\r\n final StringBuilder string = new StringBuilder();\r\n for (int i = 0; i < table.getColumnCount(); i++) {\r\n string.append(table.getValueAt(table.getSelectedRow(), i).\r\n toString().\r\n replaceAll(\"\\\\s+\", \"\"));\r\n }\r\n System.out.println(string.toString());\r\n }\r\n });\r\n tables.add(table);\r\n }\r\n\r\n for (int i = 0; i < TAB_NAMES.length; i++) {\r\n final JScrollPane scrollPane = new JScrollPane(tables.get(i));\r\n tabPane.addTab(TAB_NAMES[i], null, scrollPane,\r\n \"Does nothing\");\r\n final int ascii = (int) TAB_NAMES[i].charAt(0);\r\n tabPane.setMnemonicAt(0, ascii);\r\n }\r\n myFrame.add(tabPane, BorderLayout.NORTH);\r\n }", "public void initTab(ArrayList<CircuitUsageModel> modelList) {\n\t\ttabHost = getTabHost();\n\t\tResources res = getResources();\n\n\t\t// energy\n\t\tenergySpec = tabHost.newTabSpec(\"energy\");\n\t\tenergySpec.setIndicator(getString(R.string.energy),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_energy));\n\t\t// power\n\t\tpowerSpec = tabHost.newTabSpec(\"power\");\n\t\tpowerSpec.setIndicator(getString(R.string.power),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_power));\n\t\t// credit\n\t\tcreditSpec = tabHost.newTabSpec(\"credit\");\n\t\tcreditSpec.setIndicator(getString(R.string.credit),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_credit));\n\n\t\t// set tab content\n\t\tsetTabContent(modelList);\n\t\t\n\t\t// auto refresh\n\t\tautoRefresh();\n\t}", "public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }", "@Override\n\tpublic void init() {\n\t\tsetMainWindow(new Window(\"Module Demo Application\", tabs));\n\t\ttabs.setSizeFull();\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 }", "public void initialize() {\n\t\tLocale.setDefault(new Locale(\"vi\", \"VN\"));\n\t\tframe = new JFrame();\n\t\tframe.setIconImage(Toolkit.getDefaultToolkit().getImage(\"C:\\\\Users\\\\Phuoc Dang\\\\git\\\\pala-finance\\\\src\\\\main\\\\resources\\\\piggy-bank-icon.png\"));\n\t\tframe.setBounds(100, 100, 723, 502);\n\t\t\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tframe.getContentPane().add(tabbedPane, BorderLayout.CENTER);\n\t\t\n\t\tJPanel pnlAdmin = new JPanel();\n\t\ttabbedPane.addTab(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.tabAdministration\"), null, pnlAdmin, null);\n\t\tpnlAdmin.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\ttblItem = new JTable();\n\t\ttblItem.setOpaque(false);\n\t\tJScrollPane scrollPane = new JScrollPane(tblItem);\n\t\tscrollPane.setBackground(new Color(255, 0, 0));\n\n\t\t// Add the scroll pane to this panel.\n\t\tpnlAdmin.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\tJPanel pnlButtons = new JPanel();\n\t\tpnlButtons.setBackground(new Color(255, 240, 245));\n\t\tFlowLayout fl_pnlButtons = (FlowLayout) pnlButtons.getLayout();\n\t\tfl_pnlButtons.setAlignment(FlowLayout.LEFT);\n\t\tpnlAdmin.add(pnlButtons, BorderLayout.NORTH);\n\t\tJButton btnAdd = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnAdd);\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tItemDialog dialog = new ItemDialog(frame);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\titemRepo.addItem(dialog.getName(), dialog.getDescription());\n\t\t\t\t\tItem item = itemRepo.findItemNamed(dialog.getName());\n\t\t\t\t\tif(item != null) {\n\t\t\t\t\t\tloadItemTable();\n\t\t\t\t\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnEdit = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnEdit.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnEdit);\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblItem);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tItem item = itemRepo.findByID(selectedID);\n\t\t\t\t\tItemDialog dialog = new ItemDialog(frame, item);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t\titem.setName(dialog.getName());\n\t\t\t\t\t\titem.setDescription(dialog.getDescription());\n\t\t\t\t\t\titemRepo.saveItem(item);\n\t\t\t\t\t\tloadItemTable();\n\t\t\t\t\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Please selected an item to edit\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnDelete);\n\t\tbtnDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblItem);\n\t\t\t\titemRepo.deleteItem(selectedID);\n\t\t\t\tloadItemTable();\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlInput = new JPanel();\n\t\ttabbedPane.addTab(\"Input\", null, pnlInput, null);\n\t\tpnlInput.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJScrollPane scrollBarInput = new JScrollPane((Component) null);\n\t\tpnlInput.add(scrollBarInput, BorderLayout.CENTER);\n\t\t\n\t\ttblInput = new JTable();\n\t\tscrollBarInput.setViewportView(tblInput);\n\t\t\n\t\tJPanel pnlInputButtons = new JPanel();\n\t\tpnlInputButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout = (FlowLayout) pnlInputButtons.getLayout();\n\t\tflowLayout.setAlignment(FlowLayout.LEFT);\n\t\tpnlInput.add(pnlInputButtons, BorderLayout.NORTH);\n\t\t\n\t\tJButton btnInputAdd = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnInputAdd);\n\t\t\n\t\tJButton btnEditInputItem = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnEdit.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnEditInputItem);\n\t\tbtnEditInputItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblInput);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tInputItem item = inputItemRepo.findByID(selectedID);\n\t\t\t\t\tInputItemDialog dialog = new InputItemDialog(frame, item);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\titem = dialog.getInputItem();\n\t\t\t\t\t\tInputItem inputItem = inputItemRepo.saveInputItem(item);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(inputItem != null) {\n\t\t\t\t\t\t\tloadInputItemTable();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnInputDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnInputDelete);\n\t\tbtnInputDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblInput);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tinputItemRepo.deleteInputItem(selectedID);\n\t\t\t\t\tloadInputItemTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnInputAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tInputItemDialog dialog = new InputItemDialog(frame, MainApp.this);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t//currently, do nothing...\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlIncome = new JPanel();\n\t\ttabbedPane.addTab(\"Income\", null, pnlIncome, null);\n\t\tpnlIncome.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tincomeTable = new JTable();\n\t\tJScrollPane scrollPaneIncome = new JScrollPane(incomeTable);\n\t\tpnlIncome.add(scrollPaneIncome);\n\t\t\n\t\tJPanel pnlIncomeButtons = new JPanel();\n\t\tpnlIncomeButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_1 = (FlowLayout) pnlIncomeButtons.getLayout();\n\t\tflowLayout_1.setAlignment(FlowLayout.LEFT);\n\t\tpnlIncome.add(pnlIncomeButtons, BorderLayout.NORTH);\n\t\t\n\t\tdateFieldIncome = CalendarFactory.createDateField();\n\t\tdateFieldIncome.setPreferredSize(new Dimension(100, 18));\n\t\tpnlIncomeButtons.add(dateFieldIncome);\n\t\t\n\t\tcbxIncome = new JComboBox();\n\t\tpnlIncomeButtons.add(cbxIncome);\n\t\tcbxIncome.setModel(new DefaultComboBoxModel(IncomeType.values()));\n\t\t\n\t\ttxtIncomeCost = new JFormattedTextField(NumberFormat.getNumberInstance());\n\t\ttxtIncomeCost.setMinimumSize(new Dimension(100, 20));\n\t\ttxtIncomeCost.setPreferredSize(new Dimension(100, 20));\n\t\tpnlIncomeButtons.add(txtIncomeCost);\n\t\t\n\t\tJButton btnAddIncome = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlIncomeButtons.add(btnAddIncome);\n\t\t\n\t\tJButton btnIncomeDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlIncomeButtons.add(btnIncomeDelete);\n\t\tbtnIncomeDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(incomeTable);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tincomeItemRepo.deleteIncomeItem(selectedID);\n\t\t\t\t\tloadIncomeTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAddIncome.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tlong cost = ((Number)txtIncomeCost.getValue()).longValue();\n\t\t\t\tIncomeItem item = incomeItemRepo.addIncomeItem((IncomeType)cbxIncome.getSelectedItem(), cost, (Date)dateFieldIncome.getValue());\n\t\t\t\tif(item != null) {\n\t\t\t\t\tloadIncomeTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlReport = new JPanel();\n\t\tpnlReport.setBackground(new Color(255, 0, 255));\n\t\ttabbedPane.addTab(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.tabReportByDay\"), null, pnlReport, null);\n\t\tpnlReport.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJScrollPane scrollBarReport = new JScrollPane();\n\t\tscrollBarReport.setBackground(new Color(135, 206, 250));\n\t\tpnlReport.add(scrollBarReport, BorderLayout.CENTER);\n\t\t\n\t\ttblReport = new JTable();\n\t\ttblReport.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = tblReport.rowAtPoint(e.getPoint());\n\t\t\t\tint col = tblReport.columnAtPoint(e.getPoint());\n\t\t\t\tif(row >= 0 && col == 4) {\n\t\t\t\t\tString attachedFile = tblReport.getValueAt(row, col).toString();\n\t\t\t\t\tFile file = new File(\"attachment/\" + attachedFile);\n\t\t\t\t\tDesktop dt = Desktop.getDesktop();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdt.open(file);\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\tSystem.out.println(attachedFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tscrollBarReport.setViewportView(tblReport);\n\t\t\n\t\tJPanel pnlReportButtons = new JPanel();\n\t\tpnlReportButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_2 = (FlowLayout) pnlReportButtons.getLayout();\n\t\tflowLayout_2.setAlignment(FlowLayout.LEFT);\n\t\tpnlReport.add(pnlReportButtons, BorderLayout.NORTH);\n\t\t\n\t\tdateFieldReport = CalendarFactory.createDateField();\n\t\tdateFieldReport.setPreferredSize(new Dimension(100, 18));\n\t\tpnlReportButtons.add(dateFieldReport);\n\t\t\n\t\tchxByDate = new JCheckBox(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.chxByDate.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tchxByDate.setBackground(new Color(224, 255, 255));\n\t\tpnlReportButtons.add(chxByDate);\n\t\t\n\t\tJButton btnShow = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportButtons.add(btnShow);\n\t\t\n\t\tJPanel pnlReportSummary = new JPanel();\n\t\tpnlReport.add(pnlReportSummary, BorderLayout.SOUTH);\n\t\tpnlReportSummary.setLayout(new GridLayout(3, 2, 2, 5));\n\t\t\n\t\tJLabel lblTotal = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotal.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblTotal);\n\t\t\n\t\ttxtTotalCost = new JTextField();\n\t\tpnlReportSummary.add(txtTotalCost);\n\t\ttxtTotalCost.setEditable(false);\n\t\ttxtTotalCost.setColumns(10);\n\t\t\n\t\tJLabel lblTotalIncome = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotalIncome.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotalIncome.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblTotalIncome);\n\t\t\n\t\ttxtTotalIncome = new JTextField();\n\t\tpnlReportSummary.add(txtTotalIncome);\n\t\ttxtTotalIncome.setEditable(false);\n\t\ttxtTotalIncome.setColumns(10);\n\t\t\n\t\tJLabel lblRemaining = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblRemaining.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblRemaining.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblRemaining);\n\t\t\n\t\ttxtRemaining = new JTextField();\n\t\tpnlReportSummary.add(txtRemaining);\n\t\ttxtRemaining.setEditable(false);\n\t\ttxtRemaining.setColumns(10);\n\t\tbtnShow.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDate selectedDate = (Date)dateFieldReport.getValue();\n\t\t\t\ttry {\n\t\t\t\t\tDateTime dt = new DateTime(selectedDate);\n\t\t\t\t\tLocalDate fromDate = dt.toLocalDate();\n\t\t\t\t\tLocalDate toDate = dt.toLocalDate();\n\t\t\t\t\t\n\t\t\t\t\tif(!chxByDate.isSelected()) {\n\t\t\t\t\t\tDate firstDateOfMonth = DateUtil.getFirstDay(selectedDate);\n\t\t\t\t\t\tDate lastDateOfMonth = DateUtil.getLastDay(selectedDate);\n\t\t\t\t\t\tdt = new DateTime(firstDateOfMonth);\n\t\t\t\t\t\tfromDate = dt.toLocalDate();\n\t\t\t\t\t\tdt = new DateTime(lastDateOfMonth);\n\t\t\t\t\t\ttoDate = dt.toLocalDate();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tloadReportTable(fromDate, toDate);\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, e.getMessage());\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlReportByMonth = new JPanel();\n\t\ttabbedPane.addTab(\"Report By Month\", null, pnlReportByMonth, null);\n\t\tpnlReportByMonth.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\ttblReportByMonth = new JTable();\n\t\tJScrollPane scrPnlReportByMonth = new JScrollPane(tblReportByMonth);\n\t\tpnlReportByMonth.add(scrPnlReportByMonth);\n\t\t\n\t\tJPanel pnlReportByMonthButtons = new JPanel();\n\t\tpnlReportByMonthButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_3 = (FlowLayout) pnlReportByMonthButtons.getLayout();\n\t\tflowLayout_3.setAlignment(FlowLayout.LEFT);\n\t\tpnlReportByMonth.add(pnlReportByMonthButtons, BorderLayout.NORTH);\n\t\t\n\t\tJLabel lblMonth = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblMonth.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(lblMonth);\n\t\t\n\t\tfinal JComboBox cbxMonth = new JComboBox();\n\t\tpnlReportByMonthButtons.add(cbxMonth);\n\t\tcbxMonth.setMaximumRowCount(12);\n\t\tcbxMonth.setModel(new DefaultComboBoxModel(Month.values()));\n\t\t\n\t\tJLabel lblYear = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblYear.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(lblYear);\n\t\t\n\t\tfinal JComboBox cbxYear = new JComboBox();\n\t\tpnlReportByMonthButtons.add(cbxYear);\n\t\tcbxYear.setModel(new DefaultComboBoxModel(new String[] {\"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\"}));\n\t\t\n\t\tJButton btnReportByMonth = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(btnReportByMonth);\n\t\t\n\t\tJPanel rptReportByItem = new JPanel();\n\t\ttabbedPane.addTab(\"Report By Item\", null, rptReportByItem, null);\n\t\trptReportByItem.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tFlowLayout flowLayout_4 = (FlowLayout) panel.getLayout();\n\t\tflowLayout_4.setAlignment(FlowLayout.LEFT);\n\t\tpanel.setBackground(new Color(224, 255, 255));\n\t\trptReportByItem.add(panel, BorderLayout.NORTH);\n\t\t\n\t\tJLabel label = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblMonth.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(label);\n\t\t\n\t\tcbxMonthByItem = new JComboBox();\n\t\tcbxMonthByItem.setModel(new DefaultComboBoxModel(Month.values()));\n\t\tcbxMonthByItem.setMaximumRowCount(12);\n\t\tpanel.add(cbxMonthByItem);\n\t\t\n\t\tJLabel label_1 = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblYear.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(label_1);\n\t\t\n\t\tcbxYearByItem = new JComboBox();\n\t\tcbxYearByItem.setModel(new DefaultComboBoxModel(new String[] {\"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\"}));\n\t\tpanel.add(cbxYearByItem);\n\t\t\n\t\tJLabel lblItem = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblItem.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(lblItem);\n\t\t\n\t\tcbxItemByItem = new JComboBox();\n\t\tcbxItemByItem.setModel(new DefaultComboBoxModel(new String[] {\"All\"}));\n\t\tpanel.add(cbxItemByItem);\n\t\t\n\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\n\t\tJButton btnShowByItem = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tbtnShowByItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint year = Integer.parseInt(cbxYearByItem.getSelectedItem().toString());\n\t\t\t\tint month = ((Month)cbxMonthByItem.getSelectedItem()).getValue();\n\t\t\t\tDateTime selectedDate = new DateTime(year, month, 1, 0, 0, 0);\n\t\t\t\tDateTime fromDate = selectedDate.dayOfMonth().withMinimumValue();\n\t\t\t\tDateTime toDate = selectedDate.dayOfMonth().withMaximumValue();\n\t\t\t\ttoDate= toDate.plusDays(1);\n\t\t\t\tString sFromDate = String.valueOf(fromDate.getMillis());\n\t\t\t\tString sToDate = String.valueOf(toDate.getMillis());\n\t\t\t\tList<ReportByItemResult> results = inputRep.reportByItem(sFromDate, sToDate);\n\t\t\t\tloadReportByItemTable(results);\n\t\t\t\tdouble totalCost = 0;\n\t\t\t\tfor(ReportByItemResult item : results) {\n\t\t\t\t\ttotalCost += item.getCost();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNumberFormat nf = NumberFormat.getNumberInstance();\n\t\t\t\ttxtTotalItemCost.setText(nf.format(totalCost));\n\t\t\t}\n\t\t});\n\t\tpanel.add(btnShowByItem);\n\t\t\n\t\tJScrollPane scrollPaneReportByItem = new JScrollPane();\n\t\trptReportByItem.add(scrollPaneReportByItem, BorderLayout.CENTER);\n\t\t\n\t\ttblReportByItem = new JTable();\n\t\tscrollPaneReportByItem.setViewportView(tblReportByItem);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\trptReportByItem.add(panel_1, BorderLayout.SOUTH);\n\t\tpanel_1.setLayout(new GridLayout(1, 2, 5, 5));\n\t\t\n\t\tJLabel lblTotalItem = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotal.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotalItem.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpanel_1.add(lblTotalItem);\n\t\t\n\t\ttxtTotalItemCost = new JTextField();\n\t\ttxtTotalItemCost.setEditable(false);\n\t\tpanel_1.add(txtTotalItemCost);\n\t\ttxtTotalItemCost.setColumns(10);\n\t\tbtnReportByMonth.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint year = Integer.parseInt(cbxYear.getSelectedItem().toString());\n\t\t\t\tint month = ((Month)cbxMonth.getSelectedItem()).getValue();\n\t\t\t\tDateTime selectedDate = new DateTime(year, month, 1, 0, 0, 0);\n\t\t\t\tDateTime fromDate = selectedDate.dayOfMonth().withMinimumValue();\n\t\t\t\tDateTime toDate = selectedDate.dayOfMonth().withMaximumValue();\n\t\t\t\ttoDate= toDate.plusDays(1);\n\t\t\t\tString sFromDate = String.valueOf(fromDate.getMillis());\n\t\t\t\tString sToDate = String.valueOf(toDate.getMillis());\n\t\t\t\tList<ReportByMonthResult> results = inputRep.reportByMonth(sFromDate, sToDate);\n\t\t\t\tloadReportByMonthTable(results);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//fetch all data\n\t\tloadAllData();\n\t}", "@Override\r\n protected Control createContents( final Composite parent ) {\r\n TabFolder folder = new TabFolder( parent, SWT.NONE );\r\n\r\n Tab appearanceTab = new AppearanceTab( overlayStore );\r\n createTab( folder, \"Appeara&nce\", appearanceTab.createControl( folder ) );\r\n\r\n Tab syntaxTab = new SyntaxTab( overlayStore );\r\n createTab( folder, \"Synta&x\", syntaxTab.createControl( folder ) );\r\n\r\n Tab annotationsTab = new AnnotationsTab( overlayStore );\r\n createTab( folder, \"Annotation&s\", annotationsTab.createControl( folder ) );\r\n\r\n Tab typingTab = new TypingTab( overlayStore );\r\n createTab( folder, \"T&yping\", typingTab.createControl( folder ) );\r\n\r\n return folder;\r\n }", "private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 452, 334);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 438, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\ttabbedPane.addTab(\"面积\", null, panel, null);\n\t\t\n\t\tJTabbedPane tabbedPane_1 = new JTabbedPane(JTabbedPane.TOP);\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\n\t\tgl_panel.setHorizontalGroup(\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(tabbedPane_1, GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel.setVerticalGroup(\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\n\t\t\t\t\t.addGap(5)\n\t\t\t\t\t.addComponent(tabbedPane_1, GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\ttabbedPane_1.addTab(\"圆面积\", null, panel_1, null);\n\t\t\n\t\ttextField_Cr = new JTextField();\n\t\ttextField_Cr.setColumns(10);\n\t\ttextField_Cr.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\tJLabel label_3 = new JLabel(\"半径\");\n\t\t\n\t\tJLabel label_4 = new JLabel(\"圆面积\");\n\t\t\n\t\ttextField_Cs = new JTextField();\n\t\ttextField_Cs.setEditable(false);\n\t\ttextField_Cs.setColumns(10);\n\t\t\n\t\tJButton button = new JButton(\"计算\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdouble r,s;//r圆的半径,s是圆的面积\n\t\t\t\tString tem_r,res_S;\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"####.##\");\n\t\t\t\tCalculator Cal= new Calculator();\n\t\t\t\ttry{\n\t\t\t\t\ttem_r = textField_Cr.getText();\n\t\t\t\t\tif(tem_r.isEmpty()) throw new ReadError(\"圆的半径不能为空!\");\n\t\t\t\t\tr = Double.parseDouble(tem_r);\n\t\t\t\t\tif(r>100) throw new ReadError(\"圆的半径请输入小于100的值\");\n\t\t\t\t\ts = Cal.Shape2DGetS(\"Circle\", r);\n\t\t\t\t\tres_S = df.format(s);\n\t\t\t\t\ttextField_Cs.setText(res_S);\n\t\t\t\t}catch(Exception re){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, re.getMessage(),\"错误\", JOptionPane.ERROR_MESSAGE); //弹出警告窗口\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_1 = new GroupLayout(panel_1);\n\t\tgl_panel_1.setHorizontalGroup(\n\t\t\tgl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t.addGap(35)\n\t\t\t\t\t.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(38)\n\t\t\t\t\t\t\t.addComponent(label_3, GroupLayout.PREFERRED_SIZE, 26, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(67)\n\t\t\t\t\t\t\t.addComponent(textField_Cr, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(38)\n\t\t\t\t\t\t\t.addComponent(label_4, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(28)\n\t\t\t\t\t\t\t.addComponent(textField_Cs, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 305, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addContainerGap(46, Short.MAX_VALUE))\n\t\t);\n\t\tgl_panel_1.setVerticalGroup(\n\t\t\tgl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t.addGap(16)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(5)\n\t\t\t\t\t\t\t.addComponent(label_3))\n\t\t\t\t\t\t.addComponent(textField_Cr, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(35)\n\t\t\t\t\t.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_1.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(5)\n\t\t\t\t\t\t\t.addComponent(label_4))\n\t\t\t\t\t\t.addComponent(textField_Cs, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(button)\n\t\t\t\t\t.addContainerGap(31, Short.MAX_VALUE))\n\t\t);\n\t\tpanel_1.setLayout(gl_panel_1);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\ttabbedPane_1.addTab(\"三角形面积\", null, panel_2, null);\n\t\t\n\t\tJLabel label_5 = new JLabel(\"三角形的边长\");\n\t\t\n\t\ttextField_Ta = new JTextField();\n\t\ttextField_Ta.setColumns(10);\n\t\ttextField_Ta.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\tJLabel label_6 = new JLabel(\"三角形的面积\");\n\t\t\n\t\ttextField_Ts = new JTextField();\n\t\ttextField_Ts.setEditable(false);\n\t\ttextField_Ts.setColumns(10);\n\t\t\n\t\t\n\t\ttextField_Tb = new JTextField();\n\t\ttextField_Tb.setColumns(10);\n\t\ttextField_Tb.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\ttextField_Tc = new JTextField();\n\t\ttextField_Tc.setColumns(10);\n\t\ttextField_Tc.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\tJButton button_1 = new JButton(\"计算\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdouble a,b,c,s;\n\t\t\t\tCalculator Cal= new Calculator();\n\t\t\t\tString tem_a, tem_b, tem_c, res_S;\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"####.##\");\n\t\t\t\ttry{\n\t\t\t\t\ttem_a = textField_Ta.getText();\n\t\t\t\t\tif(tem_a.isEmpty()) throw new ReadError(\"三角形的边长不能为空!\");\n\t\t\t\t\ttem_b = textField_Tb.getText();\n\t\t\t\t\tif(tem_b.isEmpty()) throw new ReadError(\"三角形的边长不能为空!\");\n\t\t\t\t\ttem_c = textField_Tc.getText();\n\t\t\t\t\tif(tem_c.isEmpty()) throw new ReadError(\"三角形的边长不能为空!\");\n\t\t\t\t\ta = Double.parseDouble(tem_a);\n\t\t\t\t\tb = Double.parseDouble(tem_b);\n\t\t\t\t\tc = Double.parseDouble(tem_c);\n\t\t\t\t\tif(a>100||b>100||c>100) throw new ReadError(\"三角形的边长请输入小于100的值\");\n\t\t\t\t\tif((a+b)<=c||(a+c)<=b||(b+c)<=a) throw new TriangleError();\n\t\t\t\t\ts = Cal.Shape2DGetS(\"Triangle\", a,b,c);\n\t\t\t\t\tres_S = df.format(s);\n\t\t\t\t\ttextField_Ts.setText(res_S);\n\t\t\t\t}catch(Exception re){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, re.getMessage(),\"错误\", JOptionPane.ERROR_MESSAGE); //弹出警告窗口\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_2 = new GroupLayout(panel_2);\n\t\tgl_panel_2.setHorizontalGroup(\n\t\t\tgl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(34, Short.MAX_VALUE)\n\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(label_5, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(textField_Ta, GroupLayout.PREFERRED_SIZE, 95, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addComponent(textField_Tb, GroupLayout.PREFERRED_SIZE, 94, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addComponent(textField_Tc, GroupLayout.PREFERRED_SIZE, 95, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(label_6, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(35)\n\t\t\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(button_1, GroupLayout.PREFERRED_SIZE, 77, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(textField_Ts, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t.addGap(32))\n\t\t);\n\t\tgl_panel_2.setVerticalGroup(\n\t\t\tgl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t.addGap(31)\n\t\t\t\t\t.addComponent(label_5)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(textField_Ta, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textField_Tb, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textField_Tc, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_2.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(5)\n\t\t\t\t\t\t\t.addComponent(label_6))\n\t\t\t\t\t\t.addComponent(textField_Ts, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 27, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(button_1)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tpanel_2.setLayout(gl_panel_2);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\ttabbedPane_1.addTab(\"长方形面积\", null, panel_3, null);\n\t\t\n\t\tJLabel label_10 = new JLabel(\"长方形的长和宽\");\n\t\t\n\t\ttextField_Ra = new JTextField();\n\t\ttextField_Ra.setColumns(10);\n\t\ttextField_Ra.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9) || keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\tJLabel label_11 = new JLabel(\"长方形的面积\");\n\t\t\n\t\ttextField_Rs = new JTextField();\n\t\ttextField_Rs.setEditable(false);\n\t\ttextField_Rs.setColumns(10);\n\t\t\n\t\ttextField_Rb = new JTextField();\n\t\ttextField_Rb.setColumns(10);\n\t\ttextField_Rb.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\tJButton button_4 = new JButton(\"计算\");\n\t\tbutton_4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdouble a,b,s;\n\t\t\t\tCalculator Cal= new Calculator();\n\t\t\t\tString tem_a, tem_b, res_S;\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"####.##\");\n\t\t\t\ttry{\n\t\t\t\t\ttem_a = textField_Ra.getText();\n\t\t\t\t\tif(tem_a.isEmpty()) throw new ReadError(\"长方形的长不能为空!\");\n\t\t\t\t\ttem_b = textField_Rb.getText();\n\t\t\t\t\tif(tem_b.isEmpty()) throw new ReadError(\"长方形的宽不能为空!\");\n\t\t\t\t\ta = Double.parseDouble(tem_a);\n\t\t\t\t\tb = Double.parseDouble(tem_b);\n\t\t\t\t\tif(a>100||b>100) throw new ReadError(\"长方形的长宽请输入小于100的值\");\n\t\t\t\t\ts = Cal.Shape2DGetS(\"Rectangle\", a,b);\n\t\t\t\t\tres_S = df.format(s);\n\t\t\t\t\ttextField_Rs.setText(res_S);\n\t\t\t\t}catch(Exception re){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, re.getMessage(),\"错误\", JOptionPane.ERROR_MESSAGE); //弹出警告窗口\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_3 = new GroupLayout(panel_3);\n\t\tgl_panel_3.setHorizontalGroup(\n\t\t\tgl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup()\n\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(62)\n\t\t\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(label_11, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addGap(35)\n\t\t\t\t\t\t\t\t\t.addComponent(textField_Rs, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addGap(113)\n\t\t\t\t\t\t\t\t\t.addComponent(button_4, GroupLayout.PREFERRED_SIZE, 77, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addComponent(label_10, GroupLayout.PREFERRED_SIZE, 152, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(76)\n\t\t\t\t\t\t\t.addComponent(textField_Ra, GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGap(45)\n\t\t\t\t\t\t\t.addComponent(textField_Rb, GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)))\n\t\t\t\t\t.addGap(76))\n\t\t);\n\t\tgl_panel_3.setVerticalGroup(\n\t\t\tgl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_3.createSequentialGroup()\n\t\t\t\t\t.addGap(22)\n\t\t\t\t\t.addComponent(label_10)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(textField_Ra, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textField_Rb, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 18, Short.MAX_VALUE)\n\t\t\t\t\t.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_3.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(5)\n\t\t\t\t\t\t\t.addComponent(label_11))\n\t\t\t\t\t\t.addComponent(textField_Rs, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(27)\n\t\t\t\t\t.addComponent(button_4)\n\t\t\t\t\t.addGap(15))\n\t\t);\n\t\tpanel_3.setLayout(gl_panel_3);\n\t\tpanel.setLayout(gl_panel);\n\t\t\n\t\tJPanel panel_4 = new JPanel();\n\t\ttabbedPane.addTab(\"体积\", null, panel_4, null);\n\t\t\n\t\tJTabbedPane tabbedPane_2 = new JTabbedPane(JTabbedPane.TOP);\n\t\tGroupLayout gl_panel_4 = new GroupLayout(panel_4);\n\t\tgl_panel_4.setHorizontalGroup(\n\t\t\tgl_panel_4.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(tabbedPane_2, GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_panel_4.setVerticalGroup(\n\t\t\tgl_panel_4.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_4.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(tabbedPane_2, GroupLayout.DEFAULT_SIZE, 242, Short.MAX_VALUE)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\ttabbedPane_2.addTab(\"圆柱体体积\", null, panel_5, null);\n\t\t\n\t\tJLabel label_7 = new JLabel(\"半径\");\n\t\t\n\t\ttextField_r = new JTextField();\n\t\ttextField_r.setColumns(10);\n\t\ttextField_r.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\tJLabel label_8 = new JLabel(\"高\");\n\t\t\n\t\ttextField_h = new JTextField();\n\t\ttextField_h.setColumns(10);\n\t\ttextField_h.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\ttextField_Cv = new JTextField();\n\t\ttextField_Cv.setEditable(false);\n\t\ttextField_Cv.setColumns(10);\n\t\t\n\t\tJLabel label_9 = new JLabel(\"圆柱体体积\");\n\t\t\n\t\tJButton button_2 = new JButton(\"计算\");\n\t\tbutton_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdouble r,h,v;//r圆的半径,s是圆的面积\n\t\t\t\tCalculator Cal= new Calculator();\n\t\t\t\tString tem_r, tem_h, res_V;\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"####.##\");\n\t\t\t\ttry{\n\t\t\t\t\ttem_r = textField_r.getText();\n\t\t\t\t\tif(tem_r.isEmpty()) throw new ReadError(\"圆柱底面的半径不能为空!\");\n\t\t\t\t\ttem_h = textField_h.getText();\n\t\t\t\t\tif(tem_h.isEmpty()) throw new ReadError(\"圆柱的高不能为空!\");\n\t\t\t\t\tr = Double.parseDouble(tem_r);\n\t\t\t\t\th = Double.parseDouble(tem_h);\n\t\t\t\t\tif(r>100) throw new ReadError(\"圆柱的底面半径请输入小于100的值\");\n\t\t\t\t\tv = Cal.Shape3DGetV(\"Podetium\",\"Circle\",h, r);\n\t\t\t\t\tres_V = df.format(v);\n\t\t\t\t\ttextField_Cv.setText(res_V);\n\t\t\t\t}catch(Exception re){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, re.getMessage(),\"错误\", JOptionPane.ERROR_MESSAGE); //弹出警告窗口\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_5 = new GroupLayout(panel_5);\n\t\tgl_panel_5.setHorizontalGroup(\n\t\t\tgl_panel_5.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t.addGap(40)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(4)\n\t\t\t\t\t\t\t.addComponent(label_7, GroupLayout.PREFERRED_SIZE, 26, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(134)\n\t\t\t\t\t\t\t.addComponent(label_8, GroupLayout.PREFERRED_SIZE, 13, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(4)\n\t\t\t\t\t\t\t.addComponent(textField_r, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t\t.addComponent(textField_h, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(36)\n\t\t\t\t\t\t\t.addComponent(label_9, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(28)\n\t\t\t\t\t\t\t.addComponent(textField_Cv, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addComponent(button_2, GroupLayout.PREFERRED_SIZE, 305, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addContainerGap(41, Short.MAX_VALUE))\n\t\t);\n\t\tgl_panel_5.setVerticalGroup(\n\t\t\tgl_panel_5.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_5.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(21, Short.MAX_VALUE)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(label_7)\n\t\t\t\t\t\t.addComponent(label_8))\n\t\t\t\t\t.addGap(12)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(textField_r, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textField_h, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(31)\n\t\t\t\t\t.addGroup(gl_panel_5.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_5.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(5)\n\t\t\t\t\t\t\t.addComponent(label_9))\n\t\t\t\t\t\t.addComponent(textField_Cv, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(button_2)\n\t\t\t\t\t.addGap(17))\n\t\t);\n\t\tpanel_5.setLayout(gl_panel_5);\n\t\t\n\t\tJPanel panel_6 = new JPanel();\n\t\ttabbedPane_2.addTab(\"三棱柱体积\", null, panel_6, null);\n\t\t\n\t\tJLabel label = new JLabel(\"三棱柱底面三角形的边长\");\n\t\t\n\t\ttextField_a = new JTextField();\n\t\ttextField_a.setColumns(10);\n\t\ttextField_a.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\ttextField_b = new JTextField();\n\t\ttextField_b.setColumns(10);\n\t\ttextField_b.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\ttextField_c = new JTextField();\n\t\ttextField_c.setColumns(10);\n\t\ttextField_c.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\ttextField_Th = new JTextField();\n\t\ttextField_Th.setColumns(10);\n\t\ttextField_Th.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\t\n\t\tJLabel label_1 = new JLabel(\"三棱柱的高\");\n\t\t\n\t\tJLabel label_2 = new JLabel(\"三棱柱的体积\");\n\t\t\n\t\ttextField_Tv = new JTextField();\n\t\ttextField_Tv.setEditable(false);\n\t\ttextField_Tv.setColumns(10);\n\t\t\n\t\tJButton button_3 = new JButton(\"计算\");\n\t\tbutton_3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdouble a,b,c,h,v;\n\t\t\t\tCalculator Cal= new Calculator();\n\t\t\t\tString tem_a, tem_b, tem_c, tem_h, res_V;\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"####.##\");\n\t\t\t\ttry{\n\t\t\t\t\ttem_a = textField_a.getText();\n\t\t\t\t\tif(tem_a.isEmpty()) throw new ReadError(\"三棱柱底面的边长不能为空!\");\n\t\t\t\t\ttem_b = textField_b.getText();\n\t\t\t\t\tif(tem_b.isEmpty()) throw new ReadError(\"三棱柱底面的边长不能为空!\");\n\t\t\t\t\ttem_c = textField_c.getText();\n\t\t\t\t\tif(tem_c.isEmpty()) throw new ReadError(\"三棱柱底面的边长不能为空!\");\n\t\t\t\t\ttem_h = textField_Th.getText();\n\t\t\t\t\tif(tem_h.isEmpty()) throw new ReadError(\"三棱柱的高不能为空!\");\n\t\t\t\t\ta = Double.parseDouble(tem_a);\n\t\t\t\t\tb = Double.parseDouble(tem_b);\n\t\t\t\t\tc = Double.parseDouble(tem_c);\n\t\t\t\t\th = Double.parseDouble(tem_h);\n\t\t\t\t\tif(a>100||b>100||c>100) throw new ReadError(\"三棱柱底面的边长请输入小于100的值\");\n\t\t\t\t\tif((a+b)<=c||(a+c)<=b||(b+c)<=a) throw new TriangleError();\n\t\t\t\t\tv = Cal.Shape3DGetV(\"Podetium\",\"Triangle\",h, a,b,c);\n\t\t\t\t\tres_V = df.format(v);\n\t\t\t\t\ttextField_Tv.setText(res_V);\n\t\t\t\t}catch(Exception re){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, re.getMessage(),\"错误\", JOptionPane.ERROR_MESSAGE); //弹出警告窗口\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_6 = new GroupLayout(panel_6);\n\t\tgl_panel_6.setHorizontalGroup(\n\t\t\tgl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_6.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(textField_a, GroupLayout.PREFERRED_SIZE, 115, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addComponent(textField_b, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addComponent(textField_c, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(40)\n\t\t\t\t\t\t\t.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(109)\n\t\t\t\t\t\t\t.addComponent(textField_Th, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(40)\n\t\t\t\t\t\t\t.addComponent(label_2, GroupLayout.PREFERRED_SIZE, 140, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(34)\n\t\t\t\t\t\t\t.addComponent(textField_Tv, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(154)\n\t\t\t\t\t\t\t.addComponent(button_3, GroupLayout.PREFERRED_SIZE, 77, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(label, GroupLayout.PREFERRED_SIZE, 145, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addContainerGap(240, Short.MAX_VALUE))\n\t\t);\n\t\tgl_panel_6.setVerticalGroup(\n\t\t\tgl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(label)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(textField_a, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textField_b, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textField_c, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(12)\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_6.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(11)\n\t\t\t\t\t\t\t.addComponent(label_1))\n\t\t\t\t\t\t.addComponent(textField_Th, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(17)\n\t\t\t\t\t.addGroup(gl_panel_6.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(label_2)\n\t\t\t\t\t\t.addComponent(textField_Tv, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(button_3)\n\t\t\t\t\t.addContainerGap(7, Short.MAX_VALUE))\n\t\t);\n\t\tpanel_6.setLayout(gl_panel_6);\n\t\t\n\t\tJPanel panel_7 = new JPanel();\n\t\ttabbedPane_2.addTab(\"长方体体积\", null, panel_7, null);\n\t\t\n\t\tJLabel label_12 = new JLabel(\"长方体的底边长和宽\");\n\t\t\n\t\ttextField_La = new JTextField();\n\t\ttextField_La.setColumns(10);\n\t\ttextField_La.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\ttextField_Lb = new JTextField();\n\t\ttextField_Lb.setColumns(10);\n\t\ttextField_Lb.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\tJLabel label_13 = new JLabel(\"长方体的高\");\n\t\t\n\t\ttextField_Lh = new JTextField();\n\t\ttextField_Lh.setColumns(10);\n\t\ttextField_Lh.addKeyListener(new KeyAdapter(){ \n public void keyTyped(KeyEvent e) { \n int keyChar = e.getKeyChar(); \n if((keyChar >= KeyEvent.VK_0 && keyChar <= KeyEvent.VK_9)|| keyChar=='.'){ \n \n }else{ \n e.consume(); \n } \n } \n }); \n\t\t\n\t\tJLabel label_14 = new JLabel(\"长方体的体积\");\n\t\t\n\t\ttextField_Lv = new JTextField();\n\t\ttextField_Lv.setEditable(false);\n\t\ttextField_Lv.setColumns(10);\n\t\t\n\t\tJButton button_5 = new JButton(\"计算\");\n\t\tbutton_5.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdouble a,b,h,v;\n\t\t\t\tCalculator Cal= new Calculator();\n\t\t\t\tString tem_a, tem_b,tem_h, res_V;\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"####.##\");\n\t\t\t\ttry{\n\t\t\t\t\ttem_a = textField_La.getText();\n\t\t\t\t\tif(tem_a.isEmpty()) throw new ReadError(\"长方体底面的长不能为空!\");\n\t\t\t\t\ttem_b = textField_Lb.getText();\n\t\t\t\t\tif(tem_b.isEmpty()) throw new ReadError(\"长方体底面的宽不能为空!\");\n\t\t\t\t\ttem_h = textField_Lh.getText();\n\t\t\t\t\tif(tem_h.isEmpty()) throw new ReadError(\"长方体的高不能为空!\");\n\t\t\t\t\ta = Double.parseDouble(tem_a);\n\t\t\t\t\tb = Double.parseDouble(tem_b);\n\t\t\t\t\th = Double.parseDouble(tem_h);\n\t\t\t\t\tif(a>100||b>100) throw new ReadError(\"长方体底面的长宽请输入小于100的值\");\n\t\t\t\t\tv = Cal.Shape3DGetV(\"Podetium\",\"Rectangle\",h, a,b);\n\t\t\t\t\tres_V = df.format(v);\n\t\t\t\t\ttextField_Lv.setText(res_V);\n\t\t\t\t}catch(Exception re){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, re.getMessage(),\"错误\", JOptionPane.ERROR_MESSAGE); //弹出警告窗口\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tGroupLayout gl_panel_7 = new GroupLayout(panel_7);\n\t\tgl_panel_7.setHorizontalGroup(\n\t\t\tgl_panel_7.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_7.createSequentialGroup()\n\t\t\t\t\t.addGap(25)\n\t\t\t\t\t.addGroup(gl_panel_7.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_7.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(40)\n\t\t\t\t\t\t\t.addComponent(label_13, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(109)\n\t\t\t\t\t\t\t.addComponent(textField_Lh, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_7.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(40)\n\t\t\t\t\t\t\t.addComponent(label_14, GroupLayout.PREFERRED_SIZE, 140, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(34)\n\t\t\t\t\t\t\t.addComponent(textField_Lv, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(gl_panel_7.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(154)\n\t\t\t\t\t\t\t.addComponent(button_5, GroupLayout.PREFERRED_SIZE, 77, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addGap(22))\n\t\t\t\t.addGroup(gl_panel_7.createSequentialGroup()\n\t\t\t\t\t.addGap(63)\n\t\t\t\t\t.addComponent(label_12, GroupLayout.PREFERRED_SIZE, 145, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addContainerGap(183, Short.MAX_VALUE))\n\t\t\t\t.addGroup(gl_panel_7.createSequentialGroup()\n\t\t\t\t\t.addGap(60)\n\t\t\t\t\t.addComponent(textField_La, GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)\n\t\t\t\t\t.addGap(38)\n\t\t\t\t\t.addComponent(textField_Lb, GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)\n\t\t\t\t\t.addGap(61))\n\t\t);\n\t\tgl_panel_7.setVerticalGroup(\n\t\t\tgl_panel_7.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel_7.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(7, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(label_12)\n\t\t\t\t\t.addGap(12)\n\t\t\t\t\t.addGroup(gl_panel_7.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(textField_La, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textField_Lb, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(12)\n\t\t\t\t\t.addGroup(gl_panel_7.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(gl_panel_7.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(11)\n\t\t\t\t\t\t\t.addComponent(label_13))\n\t\t\t\t\t\t.addComponent(textField_Lh, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(17)\n\t\t\t\t\t.addGroup(gl_panel_7.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(label_14)\n\t\t\t\t\t\t.addComponent(textField_Lv, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(button_5)\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tpanel_7.setLayout(gl_panel_7);\n\t\tpanel_4.setLayout(gl_panel_4);\n\t\tframe.getContentPane().setLayout(groupLayout);\n\t\t\n\n\t\t\n\t}", "public void initializeTabs() {\n\n\t\tTabHost.TabSpec spec;\n\n\t\tspec = mTabHost.newTabSpec(Const.EVENTS);\n\t\tmTabHost.setCurrentTab(0);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_events_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(1);\n\t\tspec = mTabHost.newTabSpec(Const.FEED);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_feed_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(2);\n\t\tspec = mTabHost.newTabSpec(Const.INFO);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_info_selector));\n\t\tmTabHost.addTab(spec);\n\n\t}", "void init() {\n tabHost = findViewById(android.R.id.tabhost);\n tabHost.setup(this, getSupportFragmentManager(), android.R.id.tabcontent);\n tabHost.addTab(tabHost.newTabSpec(\"Login\").setIndicator(\"Login\", null), LoginFragment.class, null);\n tabHost.addTab(tabHost.newTabSpec(\"Register\").setIndicator(\"Register\", null), RegisterFragment.class, null);\n }", "private void initPlayersTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n playerTab = new Tab();\n playerWorkspacePane = new VBox();\n playerWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // PAGE LABEL & BUTTON\n Label playersHeading = new Label();\n playersHeading = initChildLabel(playerWorkspacePane, DraftKit_PropertyType.PLAYER_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.PLAYER_ICON);\n Image buttonImage = new Image(imagePath);\n playerTab.setGraphic(new ImageView(buttonImage));\n \n // SEARCH AREA\n HBox search = new HBox();\n addPlayer = initHBoxButton(search, DraftKit_PropertyType.ADD_ICON, DraftKit_PropertyType.ADD_PLAYER_TOOLTIP, false);\n removePlayer = initHBoxButton(search, DraftKit_PropertyType.MINUS_ICON, DraftKit_PropertyType.REMOVE_PLAYER_TOOLTIP, false);\n initHBoxLabel(search, DraftKit_PropertyType.SEARCH_LABEL, CLASS_PROMPT_LABEL);\n searchText = initHBoxTextField(search, \"\", true);\n \n // RADIO BUTTONS AREA FUNESS\n group = new ToggleGroup();\n all = new RadioButton(\"All\");\n all.setToggleGroup(group);\n c = new RadioButton(\"C\");\n c.setToggleGroup(group);\n oneB = new RadioButton(\"1B\");\n oneB.setToggleGroup(group);\n ci = new RadioButton(\"CI\");\n ci.setToggleGroup(group);\n threeB = new RadioButton(\"3B\");\n threeB.setToggleGroup(group);\n twoB = new RadioButton(\"2B\");\n twoB.setToggleGroup(group);\n mi = new RadioButton(\"MI\");\n mi.setToggleGroup(group);\n ss = new RadioButton(\"SS\");\n ss.setToggleGroup(group);\n of = new RadioButton(\"OF\");\n of.setToggleGroup(group);\n u = new RadioButton(\"U\");\n u.setToggleGroup(group);\n p = new RadioButton(\"P\");\n p.setToggleGroup(group);\n \n ToolBar radioTool = new ToolBar(\n all, c, oneB, ci, threeB, twoB, mi, ss, of, u, p\n );\n \n // CREATE TABLE FOR PLAYER PAGE\n playerTable = new TableView<>();\n \n first = new TableColumn<>(\"First\");\n first.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n last = new TableColumn<>(\"Last\");\n last.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n proTeam = new TableColumn<>(\"Pro Team\");\n proTeam.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n positions = new TableColumn<>(\"Positions\");\n positions.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n yob = new TableColumn<>(\"Year of Birth\");\n yob.setCellValueFactory(new PropertyValueFactory<>(\"YearOfBirth\"));\n rw = new TableColumn<>(\"R/W\");\n rw.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n hrsv = new TableColumn<>(\"HR/SV\");\n hrsv.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n rbik = new TableColumn<>(\"RBI/K\");\n rbik.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n sbera = new TableColumn<>(\"SB/ERA\");\n sbera.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n bawhip = new TableColumn<>(\"BA/WHIP\");\n bawhip.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n estimatedValue = new TableColumn<>(\"Estimated Value\");\n estimatedValue.setCellValueFactory(new PropertyValueFactory<>(\"EValue\"));\n // MAKE SURE TO CHANGE ESTIMATED VALUE TO MATCH GETTERS/ SETTERS\n notes = new TableColumn<>(\"Notes\");\n notes.setCellValueFactory(new PropertyValueFactory<>(\"notes\"));\n notes.setCellFactory(TextFieldTableCell.forTableColumn());\n playerTable.setEditable(true);\n notes.setOnEditCommit((CellEditEvent<Player, String> event) -> {\n ((Player) event.getTableView().getItems().get(event.getTablePosition().getRow())).setNotes(event.getNewValue());\n });\n \n // ADD ALL THE COLUMNS TO THE TABLE\n playerTable.getColumns().setAll(first, last, proTeam, positions, yob, rw, hrsv, rbik, sbera, bawhip, estimatedValue, notes);\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Available Players Page\");\n playerTab.setTooltip(t);\n \n // PUT IN TAB PANE\n playerWorkspacePane.getChildren().add(search);\n playerWorkspacePane.getChildren().add(radioTool);\n playerWorkspacePane.getChildren().add(playerTable);\n playerTab.setContent(playerWorkspacePane);\n mainWorkspacePane.getTabs().add(playerTab);\n \n playerTable = resetTable(dataManager.getDraft().getPlayerPool());\n }", "public void buildStagingPanel() {\n if (tabbedPane == null) {\n tabbedPane = new JTabbedPane(SwingConstants.TOP);\n tabbedPane.addTab(\"Query\", _widgetPanel);\n tabbedPane.addTab(om.getProgramName(), om.getTreePanel());\n tabbedPane.addTab(\"Calibrations\", calibrationMenu);\n tabbedPane.setVisible(true);\n } else {\n tabbedPane.setTitleAt(1, om.getProgramName());\n }\n\n tabbedPane.setSelectedIndex(1);\n }", "public void initialize() {\r\n setLayout(new BorderLayout());\r\n add(BorderLayout.CENTER, tabbedPane);\r\n for (Iterator it = widgets.iterator(); it.hasNext();) {\r\n SlotWidget widget = (SlotWidget) it.next();\r\n widget.initialize();\r\n }\r\n }", "public static void loadTabContent(String fxml, Node tabBorderPane, Initializable i) {\n\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setController(i);\n loader.setLocation(ApplicationNavigator.class.getResource(fxml));\n Node centerContent = loader.load();\n\n controller.setTabScreen(centerContent, tabBorderPane);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "private Tab getCoinageTab() {\n /*\n * Creates a new ArrayList for the Fields to be stored in.\n */\n coinageFields = new ArrayList<TextField>();\n /*\n * Creates a new ArrayList for the Labels to be stored in.\n */\n coinageLabels = new ArrayList<Label>();\n \n /*\n * Creates a GridPane to display all Nodes for this Tab.\n */\n GridPane grid = new GridPane();\n grid.setAlignment(Pos.CENTER);\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(10, 10, 10, 10));\n \n /*\n * Adds Columns to the GridPane, so they can be configured.\n */\n for (int i = 0; i <= 5; i++) {\n grid.getColumnConstraints().add(new ColumnConstraints());\n grid.getColumnConstraints().get(i).setHalignment(HPos.CENTER);\n }\n /*\n * Configures the Width for all columns, so they match the wanted design.\n */\n grid.getColumnConstraints().get(0).setMinWidth(60);\n grid.getColumnConstraints().get(1).setMaxWidth(60);\n grid.getColumnConstraints().get(2).setMinWidth(50);\n grid.getColumnConstraints().get(2).setMaxWidth(50);\n grid.getColumnConstraints().get(3).setMinWidth(50);\n grid.getColumnConstraints().get(3).setMaxWidth(50);\n grid.getColumnConstraints().get(4).setMinWidth(70);\n grid.getColumnConstraints().get(4).setMaxWidth(70);\n grid.getColumnConstraints().get(4).setHalignment(HPos.RIGHT);\n grid.getColumnConstraints().get(5).setMinWidth(50);\n grid.getColumnConstraints().get(5).setHalignment(HPos.LEFT);\n \n /*\n * The Content for the Cells with given Content.\n */\n String[] coinageBase = {\"0,01€\", \"0,02€\", \"0,05€\", \"0,10€\", \"0,20€\", \"0,50€\", \"1€\", \"2€\"};\n \n /*\n * Creates the first Row, where basic Information is displayed.\n */\n Label lbChange = new Label(\"Wechselgeld:\");\n grid.add(lbChange, 0, 0);\n \n Label lbRoleau = new Label(\"Lose:\");\n grid.add(lbRoleau, 1, 0);\n \n Label lbAmount = new Label(\"Anzahl:\");\n grid.add(lbAmount, 3, 0);\n \n /*\n * Creates the Area, where the User can enter the amount of each Coinage type,\n */\n for (int i = 0; i <= 7; i++) {\n Label lbCoinageBase = new Label(coinageBase[i]);\n grid.add(lbCoinageBase, 1, i + 1);\n \n TextField tfAmount = new TextField(\"0\");\n tfAmount.setAlignment(Pos.CENTER);\n tfAmount.focusedProperty().addListener(new TextFieldFocusChangedListener(tfAmount, this));\n tfAmount.textProperty().addListener(new TextFieldTextChangedListener(this));\n tfAmount.setTooltip(new Tooltip(\"Geben Sie hier die Anzahl der \\\"\" + coinageBase[i] \n + \"\\\"-Münzen ein.\"));\n grid.add(tfAmount, 3, i + 1);\n coinageFields.add(tfAmount);\n \n Label lbSum = new Label(\"Summe:\");\n grid.add(lbSum, 4, i + 1);\n \n Label lbSumDisplay = new Label(\"0,00€\");\n grid.add(lbSumDisplay, 5, i + 1);\n coinageLabels.add(lbSumDisplay);\n }\n \n /*\n * Creates a new Tab to store the created content in.\n */\n Tab coinageTab = new Tab();\n coinageTab.setText(\"Münzgeld\");\n coinageTab.setContent(grid);\n return coinageTab;\n }", "public MainUiPanel() {\n initComponents();\n// initializeTable();\n ArrayList<Client> loc = LocationAction.getLocationList();\n for(Client cl: loc){\n// column.add(cl.getClientName());\n// }\n \n jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi(cl.getClientId()));\n// jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi());\n }\n }", "private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}", "private void initialiseTabHost(Bundle args) {\n\t\tmTabHost = (TabHost)findViewById(android.R.id.tabhost);\n mTabHost.setup();\n TabInfo tabInfo = null;\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Waveform\"), ( tabInfo = new TabInfo(\"Tab1\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab2\").setIndicator(\"FFT\"), ( tabInfo = new TabInfo(\"Tab2\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab3\").setIndicator(\"AC\"), ( tabInfo = new TabInfo(\"Tab3\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Pitch\"), ( tabInfo = new TabInfo(\"Tab4\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n // Default to first tab\n this.onTabChanged(\"Tab1\");\n //\n mTabHost.setOnTabChangedListener(this);\n\t}", "public void initCon() {\n\t\t\n\t\t//ImageIcon icon = new ImageIcon(this.getClass().getResource(\"lib/data/icon/log.png\"));\n\t\t//txtArea.setLineWrap(true);\n\t\ttxtArea = new JTextArea(16,70);\n\t\t//txtArea.setLineWrap(true);\n\t\tJTabbedPane tPane = new JTabbedPane();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(txtArea); \n\t\t\n\t\t\n\t\tJPanel top = new JPanel();\n\t\tJPanel center = new JPanel();\n\t\t\n\t\tbottom = new JPanel();\n\t\tColor color = UIManager.getColor ( \"Panel.background\" );\n\t\t\n\t\ttop.add( scrollPane );\n\t\ttPane.addTab(\"Console\", top);\n\t\t\n\t\t\n\t\t//set colors\n\t\treadout.setBackground(color);\n\t\ttop.setBackground(color);\n\t\tcenter.setBackground(color);\n\t\tbottom.setBackground(color);\n\t\t//.setOpaque(true);\n\t\t\n\t\tbottom.setLayout(new GridLayout(1,2));\n\t\tbottom.add(readout);\n\t\tcenter.setLayout(new GridLayout(2,1));\n\t\tadd(center, BorderLayout.CENTER);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\tadd(tPane, BorderLayout.NORTH);\n\t}", "public AccidentFrame(){\r\n super(\"Motor Vehicle Registration Application\");\r\n accidentPanel = new AccidentPanel();\r\n JTabbedPane tabbedPane = new JTabbedPane();\r\n tabbedPane.addTab(\"Add new accident\", accidentPanel); \r\n tabbedPane.addTab(\"View all accidents\", new DisplayAccident());\r\n JLabel titleLabel=new JLabel(\"Queensland Road and Transport Authority\");\r\n \r\n this.add(tabbedPane);\r\n \r\n }", "public Tabs() {\n initComponents();\n }", "private void initialize() {\r\n\r\n // set up EmployeeGUI JPanel\r\n setLayout(new BorderLayout());\r\n setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n // setBackground(MainGUI.backgroundColor);\r\n\r\n initializeLogInPanel();\r\n\r\n // ** initialize JTabbedPane **\r\n tabbedPane = new JTabbedPane();\r\n tabbedPane.setBackground(MainGUI.backgroundColor);\r\n tabbedPane.setForeground(MainGUI.fontColor);\r\n\r\n initializeAppointmentsTab();\r\n initializePatientInfoTab();\r\n initializeBillingTab();\r\n initializeSearchTab();\r\n initializeCalendarTab();\r\n\r\n // NEW JDialogs\r\n initializePaymentDialog();\r\n initializeSelectPatientDialog();\r\n\r\n // add panels to tabbed pane\r\n tabbedPane.add(\"Search\", searchTab);\r\n tabbedPane.add(\"Patient Information\", patientTab);\r\n tabbedPane.add(\"Appointments\", appTab);\r\n tabbedPane.add(\"Billing\", billingTab);\r\n tabbedPane.add(\"Calendar\", calTab);\r\n\r\n // set up login panel - what is shown first to Employee\r\n add(loginPanel, BorderLayout.CENTER);\r\n\r\n validate();\r\n\r\n // ALL ACTION LISTENERS\r\n\r\n // Login Listeners\r\n loginButton.addActionListener(e -> login());\r\n\r\n // Appointments Tab listeners\r\n app_requestAppointmentButton.addActionListener(e -> app_requestAppointment());\r\n app_lookUpAppointmentButton.addActionListener(e -> app_lookUpAppointment());\r\n app_cancelAppointmentButton.addActionListener(e -> app_cancelAppointment());\r\n\r\n // Patient Info Tab Listeners\r\n pInfo_submitNewInfoButton.addActionListener(e -> pInfo_createNew());\r\n pInfo_updateInfoButton.addActionListener(e -> pInfo_updateExisting());\r\n\r\n // Billing Tab Listeners\r\n billing_calculateButton.addActionListener(e -> billing_calculate());\r\n\r\n // SearchTab Listeners\r\n search_searchButton.addActionListener(e -> searchPatient());\r\n selectPatient_selectPatientFoundButton.addActionListener(e -> search_selectPatientToDisplay());\r\n\r\n // Calendar Tab Listeners\r\n cal_chooseDateButton.addActionListener(e -> search_date());\r\n\r\n // Payment Dialog Listeners\r\n payment_payButton.addActionListener(e -> payment_pay());\r\n\r\n }", "private JTabbedPane getCenterTabbedPane() {\r\n if (this.centerTabbedPane == null) {\r\n this.centerTabbedPane = new JTabbedPane();\r\n this.centerTabbedPane.addTab(\"Points of Contact\", null, getCenterPOCPanel(), null);\r\n this.centerTabbedPane.addTab(\"Address\", null, getCenterAddressPanel(), null);\r\n this.centerTabbedPane.addTab(\"Additional Information\", null, getCenterAdditionalInfoPanel(), null);\r\n }\r\n return this.centerTabbedPane;\r\n }", "private void createTabList() throws UnsupportedEncodingException {\n\n org.mortbay.html.List tabList =\n new org.mortbay.html.List(org.mortbay.html.List.Unordered);\n tabsDiv.add(tabList);\n Integer tabCount = 1;\n for (Map.Entry letterPairs : startLetterList.entrySet()) {\n Character startLetter = (Character) letterPairs.getKey();\n Character endLetter = (Character) letterPairs.getValue();\n Link tabLink = new Link(\"DisplayContentTab?start=\" + startLetter + \"&amp;end=\" + endLetter + \"&amp;group=\"\n + grouping + \"&amp;type=\" + type + \"&amp;filter=\" + filterKey +\n \"&amp;timeKey=\" + timeKey, startLetter + \" - \" + endLetter);\n Composite tabListItem = tabList.newItem();\n tabListItem.add(tabLink);\n Block loadingDiv = new Block(Block.Div, \"id='ui-tabs-\" + tabCount++ + \"'\");\n Image loadingImage = new Image(LOADING_SPINNER);\n loadingImage.alt(\"Loading...\");\n loadingDiv.add(loadingImage);\n loadingDiv.add(\" Loading...\");\n tabsDiv.add(loadingDiv);\n }\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 956, 905);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tframe.getContentPane().add(tabbedPane, BorderLayout.CENTER);\n\t\t\n\t\t\n\t\t// ==================================Panel Trending Topics Declaraciones ===================================\n\t\tJPanel tt_panel = new JPanel();\n\t\ttabbedPane.addTab(\"Trending Topics\", null, tt_panel, null);\n\t\ttt_panel.setLayout(null);\n\t\t\n\t\tcb_lugares = inicializarLugares();\n\t\tcb_lugares.setBounds(135, 31, 118, 20);\n\t\t\n\t\ttt_panel.add(cb_lugares);\n\t\t\n\t\t\n\t\tJLabel lblLugar = new JLabel(\"Lugar:\");\n\t\tlblLugar.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblLugar.setBounds(43, 34, 52, 14);\n\t\tlblLugar.setVerticalAlignment(SwingConstants.TOP);\n\t\ttt_panel.add(lblLugar);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Fecha:\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(313, 34, 46, 14);\n\t\ttt_panel.add(lblNewLabel);\n\t\t\n\t\t\n\t\t\n\t\ttrendingTopics = new JEditorPane();\n\t\t\n\t\t\n\t\ttrendingTopics.setEditorKit(JEditorPane.createEditorKitForContentType(\"text/html\"));\n\t\t\n\t\ttrendingTopics.addHyperlinkListener(new HyperlinkListener() {\n\t\t\t public void hyperlinkUpdate(HyperlinkEvent e) {\n\t\t\t if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n\t\t\t \tif(Desktop.isDesktopSupported()) {\n\t\t\t \t try {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(e.getURL().toURI());\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (URISyntaxException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t \t}\n\n\t\t\t }\n\t\t\t }\n\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\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\ttrendingTopics.setEditable(false);\n\t\tJScrollPane scrollPane = new JScrollPane(trendingTopics);\n\t\tscrollPane.setLocation(30, 123);\n\t\tscrollPane.setSize(843, 297);\n\t\t\n\t\ttrendingTopics.setBounds(23, 225, 613, 197);\n\t\ttt_panel.add(scrollPane);\n\t\n\t\tthis.btnBuscar = new JButton(\"Buscar\");\n\n\t\tbtnBuscar.setBounds(578, 30, 89, 23);\n\t\ttt_panel.add(btnBuscar);\n\t\t\n\t\tfecha_tt = new JDateChooser();\n\t\tfecha_tt.getDateEditor().setDate(new Date());\n\t\tfecha_tt.setBounds(395, 31, 118, 20);\n\t\ttt_panel.add(fecha_tt);\n\t\t\n\t\t\n\t\tinicializarFecha(((JTextField)fecha_tt.getDateEditor().getUiComponent()).getText().toString());\n\t\tthis.trendingTopics.setText(RecuperarInfo.obtenerListaTT(RecuperarInfo.obtenerCursor(dia,mes,año,\"Spain\")));\n\t\t\n\t\t\n\t\t//=========================Panel Tweets Declaraciones =============================================== \n\t\tJPanel Tweet_panel = new JPanel();\n\t\ttabbedPane.addTab(\"Tweets\", null, Tweet_panel, null);\n\t\tTweet_panel.setLayout(null);\n\t\t\n\t\t//Contiene los tweets buscados por la palabra clave\n\t\ttweets = new JEditorPane();\n\t\t\n\t\ttweets.setEditorKit(JEditorPane.createEditorKitForContentType(\"text/html\"));\n\t\t\ttweets.addHyperlinkListener(new HyperlinkListener() {\n\t\t\t public void hyperlinkUpdate(HyperlinkEvent e) {\n\t\t\t if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n\t\t\t \tif(Desktop.isDesktopSupported()) {\n\t\t\t \t try {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(e.getURL().toURI());\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (URISyntaxException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t \t}\n\n\t\t\t }\n\t\t\t }\n\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\ttweets.setEditable(false);\n\t\tJScrollPane tweetsSP = new JScrollPane(tweets);\n\t\ttweetsSP.setLocation(30, 104);\n\t\ttweetsSP.setSize(868, 316);\n\t\t\n\t\ttweets.setBounds(23, 225, 613, 197);\n\t\tTweet_panel.add(tweetsSP);\n\t\t\n\t\tJLabel lblClave = new JLabel(\"Clave:\");\n\t\tlblClave.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblClave.setBounds(78, 50, 46, 14);\n\t\tTweet_panel.add(lblClave);\n\t\t\n\t\tsearchTF = new JTextField();\n\t\tsearchTF.setBounds(159, 47, 86, 20);\n\t\tTweet_panel.add(searchTF);\n\t\tsearchTF.setColumns(10);\n\t\t\n\t\tbtnBuscarTweets = new JButton(\"Buscar\");\n\t\tbtnBuscarTweets.setBounds(619, 50, 89, 23);\n\t\tTweet_panel.add(btnBuscarTweets);\n\t\t\n\t\tfecha_tweets = new JDateChooser();\n\t\tfecha_tweets.getDateEditor().setDate(new Date());\n\t\tfecha_tweets.setBounds(385, 50, 118, 20);\n\t\t((JTextField)fecha_tweets.getDateEditor().getUiComponent()).setText(\"\");\n\t\tTweet_panel.add(fecha_tweets);\n\t\t\n\t\t//==========================================Clasificador Panel ===============================\n\t\t\n\t\tJPanel classPanel = new JPanel();\n\t\ttabbedPane.addTab(\"Clasificador\", null, classPanel, null);\n\t\tclassPanel.setLayout(null);\n\t\t\n\t\tJLabel lblLugarCP = new JLabel(\"Lugar: \");\n\t\tlblLugarCP.setBounds(46, 47, 46, 14);\n\t\tclassPanel.add(lblLugarCP);\n\t\t\n\t\tcb_lugarCP = inicializarLugares2();\n\t\tcb_lugarCP.setBounds(104, 44, 118, 20);\n\t\tclassPanel.add(cb_lugarCP);\n\t\t\n\t\tdc_fechaCP = new JDateChooser();\n\t\tdc_fechaCP.getDateEditor().setDate(new Date());\n\t\tdc_fechaCP.setBounds(406, 47, 118, 20);\n\t\t((JTextField)dc_fechaCP.getDateEditor().getUiComponent()).setText(\"\");\n\t\tclassPanel.add(dc_fechaCP);\n\t\t\n\t\tLabel label_fechaCP = new Label(\"Fecha: \");\n\t\tlabel_fechaCP.setBounds(327, 47, 62, 22);\n\t\tclassPanel.add(label_fechaCP);\n\t\t\n\t\tb_GenerarDatos = new JButton(\"Clasificar\");\n\t\tb_GenerarDatos.setBounds(552, 47, 105, 22);\n\t\tclassPanel.add(b_GenerarDatos);\n\t\t\n\t\t\n\t\t/*====================================Clasificador ==============================*/\n\t\t\n\t\t\n\t\t\n\t\tthis.class_Cultura = new JEditorPane();\n\t\tcrearEventoJEditorPane(this.class_Cultura);\n\t\t\n\t\tthis.class_Deportes = new JEditorPane();\n\t\tcrearEventoJEditorPane(class_Deportes);\n\t\t\n\t\tthis.class_Entretenimiento = new JEditorPane();\n\t\tcrearEventoJEditorPane(class_Entretenimiento);\n\t\t\n\t\tthis.class_Politica = new JEditorPane();\n\t\tcrearEventoJEditorPane(class_Politica);\n\t\t\n\t\tthis.class_Tecnologia = new JEditorPane();\n\t\tcrearEventoJEditorPane(class_Tecnologia);\n\t\t\n\t\tthis.class_Otros = new JEditorPane();\n\t\tcrearEventoJEditorPane(class_Otros);\n\t\t\n\t\t\n\t\tclass_Cultura.setText(\"\");\n\t\tclass_Deportes.setText(\"\");\n\t\tclass_Entretenimiento.setText(\"\");\n\t\tclass_Politica.setText(\"\");\n\t\tclass_Tecnologia.setText(\"\");\n\t\tclass_Otros.setText(\"\");\n\t\t\n\t\tJScrollPane js_Cultura = new JScrollPane(class_Cultura);\n\t\tJScrollPane js_Deportes = new JScrollPane(class_Deportes);\n\t\tJScrollPane js_Entretenimiento = new JScrollPane(class_Entretenimiento);\n\t\tJScrollPane js_Politica = new JScrollPane(class_Politica);\n\t\tJScrollPane js_Tecnologia = new JScrollPane(class_Tecnologia);\n\t\tJScrollPane js_Otros = new JScrollPane(class_Otros);\n\t\t\n\t\tjs_Cultura.setLocation(30, 104);\n\t\tjs_Cultura.setBounds(20, 130, 130, 300);\n\t\t\n\t\tjs_Deportes.setLocation(180, 104);\n\t\tjs_Deportes.setBounds(180, 130, 130, 300);\n\t\t\n\t\tjs_Entretenimiento.setLocation(330, 104);\n\t\tjs_Entretenimiento.setBounds(330, 130, 130, 300);\n\t\t\n\t\tjs_Politica.setLocation(480, 104);\n\t\tjs_Politica.setBounds(480, 130, 130, 300);\n\t\t\n\t\tjs_Tecnologia.setLocation(630, 104);\n\t\tjs_Tecnologia.setBounds(630, 130, 130, 300);\n\t\t\n\t\tjs_Otros.setLocation(780, 104);\n\t\tjs_Otros.setBounds(780, 130, 130, 300);\n\t\t\n\t\tclassPanel.add(js_Cultura);\n\t\tclassPanel.add(js_Deportes);\n\t\tclassPanel.add(js_Entretenimiento);\n\t\tclassPanel.add(js_Politica);\n\t\tclassPanel.add(js_Tecnologia);\n\t\tclassPanel.add(js_Otros);\n\t\t\n\t\tJLabel lblCultura = new JLabel(\"Cultura\");\n\t\tlblCultura.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCultura.setBounds(20, 95, 121, 14);\n\t\tclassPanel.add(lblCultura);\n\t\t\n\t\tJLabel lblDeportes = new JLabel(\"Deportes\");\n\t\tlblDeportes.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblDeportes.setBounds(189, 95, 121, 14);\n\t\tclassPanel.add(lblDeportes);\n\t\t\n\t\tJLabel lblEntretenimiento = new JLabel(\"Entretenimiento\");\n\t\tlblEntretenimiento.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblEntretenimiento.setBounds(339, 95, 121, 14);\n\t\tclassPanel.add(lblEntretenimiento);\n\t\t\n\t\tJLabel lblPolitica = new JLabel(\"Politica\");\n\t\tlblPolitica.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblPolitica.setBounds(489, 95, 121, 14);\n\t\tclassPanel.add(lblPolitica);\n\t\t\n\t\tJLabel lblTecnologia = new JLabel(\"Ciencia/Tecnologia\");\n\t\tlblTecnologia.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblTecnologia.setBounds(630, 95, 121, 14);\n\t\tclassPanel.add(lblTecnologia);\n\t\t\n\t\tJLabel lblOtros = new JLabel(\"Otros\");\n\t\tlblOtros.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblOtros.setBounds(780, 95, 121, 14);\n\t\tclassPanel.add(lblOtros);\n\t\t\n\t\tcb_tredingTopics = new JComboBox<String>();\n\t\tcb_tredingTopics.setBounds(181, 158, 130, 20);\n\t\t\n\t\t\n\t\tJLabel lblClavePopular = new JLabel(\"Trending Topic: \");\n\t\tlblClavePopular.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblClavePopular.setBounds(59, 161, 109, 14);\n\t\t\n\t\t\n\t\tbtn_populares = new JButton(\"Obtener TTs\");\n\t\tbtn_populares.setBounds(380, 36, 121, 23);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tthis.tt_populares = new JEditorPane();\n\t\ttt_populares.setText(\"\");\n\t\t\n\t\ttt_populares.setEditorKit(JEditorPane.createEditorKitForContentType(\"text/html\"));\n\t\t\ttt_populares.addHyperlinkListener(new HyperlinkListener() {\n\t\t\t public void hyperlinkUpdate(HyperlinkEvent e) {\n\t\t\t if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n\t\t\t \tif(Desktop.isDesktopSupported()) {\n\t\t\t \t try {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(e.getURL().toURI());\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (URISyntaxException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t \t}\n\n\t\t\t }\n\t\t\t }\n\n\t\t\t\t\n\t\t\t});\n\t\t\ttt_populares.setEditable(false);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJScrollPane js_populares = new JScrollPane(tt_populares);\n\t\tjs_populares.setLocation(780, 104);\n\t\tjs_populares.setBounds(53, 205, 816, 334);\n\t\t\n\t\t\n\t\t\n\n\t\t btn_muestraGrafo = new JButton(\"Relaci\\u00F3nTrending Topics\");\n\t\tbtn_muestraGrafo.setBounds(586, 470, 174, 23);\n\t\tclassPanel.add(btn_muestraGrafo);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"M\\u00C1S INFORMACI\\u00D3N\");\n\t\tlblNewLabel_1.setBounds(400, 445, 169, 14);\n\t\tclassPanel.add(lblNewLabel_1);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tseparator.setBounds(0, 441, 935, 2);\n\t\tclassPanel.add(separator);\n\t\t\n\t cb_ttGraficas = new JComboBox<String>();\n\t\tcb_ttGraficas.setBounds(104, 474, 118, 22);\n\t\tclassPanel.add(cb_ttGraficas);\n\t\t\n\t\t b_generarGrafica = new JButton(\"Generar Gr\\u00E1fica\");\n\t\tb_generarGrafica.setBounds(255, 470, 143, 23);\n\t\tclassPanel.add(b_generarGrafica);\n\t\t\n\t\t\n\t\trdbtnFavoritos = new JRadioButton(\"Favoritos\");\n\t\trdbtnFavoritos.setBounds(376, 157, 109, 23);\n\t\t\n\t\t\n\t\trdbtnRT = new JRadioButton(\"ReTweets\", true);\n\t\trdbtnRT.setBounds(500, 157, 109, 23);\n\t\t//rdbtnRT.doClick();\n\t\t\n\t\t\n\t\trdbtnFollowers = new JRadioButton(\"Followers\");\n\t\trdbtnFollowers.setBounds(622, 157, 109, 23);\n\t\t\n\t\t\n\t\tgroup = new ButtonGroup();\n\t group.add(rdbtnFavoritos);\n\t group.add(rdbtnRT);\n\t group.add(rdbtnFollowers);\n\t\t\n\t\tfecha_populares = new JDateChooser();\n\t\tfecha_populares.setBounds(220, 36, 109, 20);\n\t\t\n\t\tJPanel popularPanel = new JPanel();\n\t\tpopularPanel.setLayout(null);\n\t\t\n\t\tpopularPanel.add(this.btn_populares);\n\t\tpopularPanel.add(lblClavePopular);\n\t\tpopularPanel.add(js_populares);\n\t\tpopularPanel.add(cb_tredingTopics);\n\t\tpopularPanel.add(rdbtnRT);\n\t\tpopularPanel.add(rdbtnFollowers);\n\t\tpopularPanel.add(rdbtnFavoritos);\n\t\tpopularPanel.add(fecha_populares);\n\t\n\t\t\n\t\t\n\t\ttabbedPane.addTab(\"Populares\", null, popularPanel, null);\n\t\t\n\t\tJLabel lblFecha = new JLabel(\"Fecha: \");\n\t\tlblFecha.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblFecha.setBounds(87, 40, 81, 14);\n\t\tpopularPanel.add(lblFecha);\n\t\t\n\t\tbtnGetPopulars = new JButton(\"Populares\");\n\t\tbtnGetPopulars.setBounds(737, 157, 109, 23);\n\t\tpopularPanel.add(btnGetPopulars);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//Añadimos listeners a los botones de ambos Panel \n\t\t\n\n\t\tbtnBuscar.addActionListener(this);\n\t\tbtnBuscarTweets.addActionListener(this);\n\t\tb_GenerarDatos.addActionListener(this);\n\t\tbtn_populares.addActionListener(this);\n\t\tbtn_muestraGrafo.addActionListener(this);\n\t\tbtnGetPopulars.addActionListener(this);\n\t\tb_generarGrafica.addActionListener(this);\n\t\n\t\t\n\t\t\n\t\t\n\t//======================== EVENTOS ====================================\n\n\t\t\n\t}", "public void onModuleLoad() {\n\t\tTabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);\n\t\tFlexTable ft3 = new FlexTable();\n\t\tFlexCellFormatter cf3 = ft3.getFlexCellFormatter();\n\t\tDecoratorPanel dp3 = new DecoratorPanel();\n\t\tHorizontalPanel hp = new HorizontalPanel();\n\t\tButton plusButton = new Button(\"+\");\n\t\tButton minusButton = new Button(\"-\");\n\t\tButton devideButton = new Button(\"/\");\n\t\tButton multiplyButton = new Button(\"*\");\n\t\thp.add(plusButton);\n\t\thp.add(minusButton);\n\t\thp.add(devideButton);\n\t\thp.add(multiplyButton);\n\t\tfinal TextBox l1 = new TextBox();\n\t\tfinal TextBox l2 = new TextBox();\n\t\tfinal Label wynik = new Label();\n\t\tft3.setHTML(0,0,\"Podaj pierwsza liczbe:\");\n\t\tft3.setWidget(0,1, l1);\n\t\tft3.setHTML(1,0, \"Podaj druga liczbe:\");\n\t\tft3.setWidget(1,1,l2);\n\t\tft3.setHTML(2,0, \"Wybierz operacje:\");\n\t\tft3.setWidget(2, 1, hp);\n\t\tft3.setHTML(3,0, \"Wynik\");\n\t\tft3.setWidget(3,1, wynik);\n\t\tdp3.add(ft3);\n\t\t//RootPanel.get(\"mainContainer\").add(hp);\n\t\t//pan1.add(hp);\n\t\ttabPanel.add(dp3, new HTML(\"Prosty kalkulator\"));\n\t\tfinal TextBox t1 = new TextBox();\n\t\tfinal ListBox list = new ListBox();\n\t\tlist.addItem(\"2\");\n\t\tlist.addItem(\"4\");\n\t\tlist.addItem(\"8\");\n\t\tlist.addItem(\"16\");\n\t\tfinal Label wynik10 = new Label();\n\t\tFlexTable ft = new FlexTable();\n\t\tButton przeliczButton = new Button(\"Przelicz\");\n\t\tft.setHTML(0, 0, \"Podaj liczbe w systemie 10:\");\n\t\tft.setWidget(0, 1, t1);\n\t\tft.setHTML(1, 0, \"Podaj docelowy system liczbowy:\");\n\t\tft.setWidget(1, 1, list);\n\t\tft.setHTML(2, 0, \"Wynik:\");\n\t\tft.setWidget(2, 1, wynik10);\n\t\tft.setWidget(3, 0, przeliczButton);\n\t\tFlexCellFormatter cf = ft.getFlexCellFormatter();\n\t\tDecoratorPanel dp = new DecoratorPanel();\n\t\tcf.setColSpan(3,0,2);\n\t\tcf.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp.setWidget(ft);\n\t\ttabPanel.add(dp, new HTML(\"Przeliczanie z 10 na inne\"));\n\t\tFlexTable ft2 = new FlexTable();\n\t\tFlexCellFormatter cf2 = ft2.getFlexCellFormatter();\n\t\tDecoratorPanel dp2 = new DecoratorPanel();\n\t\tfinal TextBox t2 = new TextBox();\n\t\tfinal ListBox list2 = new ListBox();\n\t\tlist2.addItem(\"2\");\n\t\tlist2.addItem(\"4\");\n\t\tlist2.addItem(\"8\");\n\t\tlist2.addItem(\"16\");\n\t\tButton przelicztoButton = new Button(\"Przelicz\");\n\t\tfinal Label wynik20 = new Label();\n\t\tft2.setHTML(0, 0, \"Podaj system w jakim zapisana jest liczba:\");\n\t\tft2.setWidget(0, 1, list2);\n\t\tft2.setHTML(1, 0, \"Podaj liczbe:\");\n\t\tft2.setWidget(1, 1, t2);\n\t\tft2.setHTML(2, 0, \"Wynik:\");\n\t\tft2.setWidget(2, 1, wynik20);\n\t\tft2.setWidget(3, 0, przelicztoButton);\n\t\tcf2.setColSpan(3,0,2);\n\t\tcf2.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp2.setWidget(ft2);\n\t\t//RootPanel.get(\"mainContainer\").add(tabPanel);\n\t\ttabPanel.add(dp2, new HTML(\"Przeliczanie do systemu 10\"));\n\t\tRootLayoutPanel.get().add(tabPanel);\n\t\tprzelicztoButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przeliczto10(t2.getText(), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik20.setText(\" \" + result);\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}\n\t\t});\n\t\tprzeliczButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przelicz10(Integer.parseInt(t1.getText()), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\twynik10.setText(\" \" + result);\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}\n\t\t});\n\t\tplusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dodaj(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t\tminusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.odejmij(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t\tdevideButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dziel(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t\tmultiplyButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.mnoz(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t}", "public TabbedFrame() throws IOException\r\n\t{\r\n\t\tDatabase data = new Database(\"studenti.txt\", \"predmeti.txt\", \"UpisaniPredmeti.txt\");\r\n\t\tstudents = new StudentsPanel(data);\r\n\t\tsubjects = new SubjectsPanel(data);\r\n\t\tsubjectList = new SubjectListPanel(data);\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\ttabbedPane.addTab(\"Studenti\", students);\r\n\t\ttabbedPane.addTab(\"Predmeti\", subjects);\r\n\t\ttabbedPane.addTab(\"Svi predmeti\", subjectList);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tadd(tabbedPane, BorderLayout.CENTER);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }", "public SalesSystemUI(SalesDomainController domainController) {\n this.domainController = domainController;\n this.model = new SalesSystemModel(domainController);\n \n // Create singleton instances of the tab classes\n historyTab = new HistoryTab(model);\n stockTab = new StockTab(model);\n purchaseTab = new PurchaseTab(domainController, model);\n \n setTitle(\"Sales system\");\n \n // set L&F to the nice Windows style\n try {\n UIManager.setLookAndFeel(new WindowsLookAndFeel());\n \n } catch (UnsupportedLookAndFeelException e1) {\n log.warn(e1.getMessage());\n }\n \n drawWidgets();\n \n // size & location\n int width = 600;\n int height = 400;\n setSize(width, height);\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation((screen.width - width) / 2, (screen.height - height) / 2);\n \n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n }", "private TabPane createSettingsWindow() {\r\n\t\tint tabHeight = 380, tabWidth = 318, textfieldWidth = 120;\r\n\t\tColor settingsTitleColor = Color.DODGERBLUE;\r\n\t\tColor settingsTextColor = Color.ORANGE;\r\n\t\tFont settingsTitleFont = new Font(\"Aria\", 20);\r\n\t\tFont settingsFont = new Font(\"Aria\", 18);\r\n\t\tFont infoFont = new Font(\"Aria\", 16);\r\n\t\tInsets settingsInsets = new Insets(0, 0, 5, 0);\r\n\t\tInsets topSettingsInsets = new Insets(5, 0, 5, 0);\r\n\t\tInsets paddingAllAround = new Insets(5, 5, 5, 5);\r\n\t\tInsets separatorInsets = new Insets(5, 0, 5, 0);\r\n\t\tfeedbackSettingsLabel.setFont(settingsFont);\r\n\t\tfeedbackSimulationLabel.setFont(settingsFont);\r\n\t\tString updateHelp = \"Enter new values into the textfields\" + System.lineSeparator() + \"and click [enter] to update current values.\";\r\n\r\n//\t\t*** Settings>informationTab ***\r\n\t\tTab infoTab = new Tab(\"Information\");\r\n\t\tinfoTab.setClosable(false);\r\n\t\t\r\n\t\tVBox infoContent = new VBox();\r\n\t\tinfoContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tfinal Label proxim8Version = new Label(\"Proxim8 v3.3\");\r\n\t\tproxim8Version.setTextFill(settingsTitleColor);\r\n\t\tproxim8Version.setFont(new Font(\"Aria\", 24));\r\n\t\tfinal Label driveModeLabel = new Label(\"Drive mode:\");\r\n\t\tdriveModeLabel.setTextFill(settingsTitleColor);\r\n\t\tdriveModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text driveModeInfo = new Text(\"- measures the distance to the car infront of you\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t \t + \"- checks if your brakedistance < current distance\");\r\n\t\tdriveModeInfo.setFill(settingsTextColor);\r\n\t\tdriveModeInfo.setFont(infoFont);\r\n\t\tfinal Label blindspotLabel = new Label(\"Blindspot mode:\");\r\n\t\tblindspotLabel.setTextFill(settingsTitleColor);\r\n\t\tblindspotLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text blindspotModeInfo = new Text(\"- checks if there's a car in your blindzone\");\r\n\t\tblindspotModeInfo.setFill(settingsTextColor);\r\n\t\tblindspotModeInfo.setFont(infoFont);\r\n\t\tfinal Label parkingModeLabel = new Label(\"Parking mode:\");\r\n\t\tparkingModeLabel.setTextFill(settingsTitleColor);\r\n\t\tparkingModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text parkingModeInfo = new Text(\"- measures the distances around the car\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"- gives a warning incase the distance < door length\");\r\n\t\tparkingModeInfo.setFill(settingsTextColor);\r\n\t\tparkingModeInfo.setFont(infoFont);\r\n\t\t\r\n\t\tinfoContent.getChildren().addAll(proxim8Version, driveModeLabel, driveModeInfo, blindspotLabel, blindspotModeInfo, parkingModeLabel, parkingModeInfo);\r\n\t\tinfoTab.setContent(infoContent);\r\n\t\t\r\n//\t\t*** Settings>settingsTab ***\r\n\t\tTab settingsTab = new Tab(\"Settings\");\r\n\t\tsettingsTab.setClosable(false);\r\n\t\t\r\n\t\tVBox settingsContent = new VBox();\r\n\t\tsettingsContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tHBox getAndSetValues = new HBox();\r\n\t\tgetAndSetValues.setPadding(paddingAllAround);\r\n//\t\tSettings>settingsTab>currentValues\r\n\t\tGridPane currentValues = new GridPane();\r\n\t\tfinal Label currentValuesLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label door = new Label(DOOR_LENGTH + \": \");\r\n\t\tdoor.setTextFill(settingsTextColor);\r\n\t\tdoor.setFont(settingsFont);\r\n\t\tdoor.setPadding(topSettingsInsets);\r\n\t\tfinal Label doorValue = new Label(String.valueOf(carData.getDoorLength()) + \"m\");\r\n\t\tdoorValue.setTextFill(settingsTextColor);\r\n\t\tdoorValue.setFont(settingsFont);\r\n\t\tfinal Label rearDoor = new Label(REAR_DOOR_LENGTH + \": \");\r\n\t\trearDoor.setTextFill(settingsTextColor);\r\n\t\trearDoor.setFont(settingsFont);\r\n\t\trearDoor.setPadding(settingsInsets);\r\n\t\tfinal Label rearDoorValue = new Label(String.valueOf(carData.getRearDoorLength()) + \"m\");\r\n\t\trearDoorValue.setTextFill(settingsTextColor);\r\n\t\trearDoorValue.setFont(settingsFont);\r\n\t\tfinal Label blindZone = new Label(BLIND_ZONE_VALUE + \": \");\r\n\t\tblindZone.setTextFill(settingsTextColor);\r\n\t\tblindZone.setFont(settingsFont);\r\n\t\tblindZone.setPadding(settingsInsets);\r\n\t\tfinal Label blindZoneValue = new Label(String.valueOf(carData.getBlindZoneValue()) + \"m\");\r\n\t\tblindZoneValue.setTextFill(settingsTextColor);\r\n\t\tblindZoneValue.setFont(settingsFont);\r\n\t\tfinal Label frontParkDist = new Label(FRONT_PARK_DISTANCE + \": \");\r\n\t\tfrontParkDist.setTextFill(settingsTextColor);\r\n\t\tfrontParkDist.setFont(settingsFont);\r\n\t\tfrontParkDist.setPadding(settingsInsets);\r\n\t\tfinal Label frontParkDistValue = new Label(String.valueOf(carData.getFrontDistParking()) + \"m\");\r\n\t\tfrontParkDistValue.setTextFill(settingsTextColor);\r\n\t\tfrontParkDistValue.setFont(settingsFont);\r\n\t\tfrontParkDistValue.setPadding(settingsInsets);\r\n\t\t\r\n\t\tcurrentValues.add(currentValuesLabel, 0, 0);\r\n\t\tcurrentValues.add(door, 0, 1);\r\n\t\tcurrentValues.add(doorValue, 1, 1);\r\n\t\t\r\n\t\tcurrentValues.add(rearDoor, 0, 2);\r\n\t\tcurrentValues.add(rearDoorValue, 1, 2);\r\n\t\t\r\n\t\tcurrentValues.add(blindZone, 0, 3);\r\n\t\tcurrentValues.add(blindZoneValue, 1, 3);\r\n\t\t\r\n\t\tcurrentValues.add(frontParkDist, 0, 4);\r\n\t\tcurrentValues.add(frontParkDistValue, 1, 4);\r\n\t\t\r\n//\t\tSettings>settingTab>updateFields\r\n\t\tVBox updateFields = new VBox();\r\n\t\tupdateFields.setPadding(paddingAllAround);\r\n\t\tfinal Label updateLabel = new Label(\"Set new value:\");\r\n\t\tupdateLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField doorLengthField = new TextField();\r\n\t\tdoorLengthField.setPromptText(\"meter\");\r\n\t\tdoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\tdoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(doorValue, feedbackSettingsLabel, doorLengthField, DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField rearDoorLengthField = new TextField();\r\n\t\trearDoorLengthField.setPromptText(\"meter\");\r\n\t\trearDoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\trearDoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(rearDoorValue, feedbackSettingsLabel, rearDoorLengthField, REAR_DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField blindZoneValueField = new TextField();\r\n\t\tblindZoneValueField.setMaxWidth(textfieldWidth);\r\n\t\tblindZoneValueField.setPromptText(\"meter\");\r\n\t\tblindZoneValueField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(blindZoneValue, feedbackSettingsLabel, blindZoneValueField, BLIND_ZONE_VALUE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField frontParkDistField = new TextField();\r\n\t\tfrontParkDistField.setMaxWidth(textfieldWidth);\r\n\t\tfrontParkDistField.setPromptText(\"meter\");\r\n\t\tfrontParkDistField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(frontParkDistValue, feedbackSettingsLabel, frontParkDistField, FRONT_PARK_DISTANCE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFields.getChildren().addAll(updateLabel, doorLengthField, rearDoorLengthField, blindZoneValueField, frontParkDistField);\r\n\t\t\r\n\t\tRegion regionSettings = new Region();\r\n\t\tregionSettings.setPrefWidth(25);\r\n\t\tgetAndSetValues.getChildren().addAll(currentValues, regionSettings, updateFields);\r\n\t\t\r\n\t\tSeparator settingsSeparator = new Separator();\r\n\t\tsettingsSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text howToUpdate = new Text(updateHelp);\r\n\t\thowToUpdate.setFill(settingsTextColor);\r\n\t\thowToUpdate.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator settingsSeparator2 = new Separator();\r\n\t\tsettingsSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsettingsContent.getChildren().addAll(getAndSetValues, settingsSeparator, howToUpdate, settingsSeparator2, feedbackSettingsLabel);\r\n\t\tsettingsTab.setContent(settingsContent);\r\n\t\t\r\n//\t\t*** Settings>simulate ***\r\n\t\tTab simulateTab = new Tab(\"Simulation\");\r\n\t\tsimulateTab.setClosable(false);\r\n\t\t\r\n\t\tVBox simulateContent = new VBox();\r\n\t\tsimulateContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\t\r\n\t\tHBox getAndSetSim = new HBox();\r\n\t\tgetAndSetSim.setPadding(paddingAllAround);\r\n//\t\tSettings>simulate>currentValues\r\n\t\tGridPane currentValuesSim = new GridPane();\r\n\t\tfinal Label currentValuesSimLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesSimLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label topSpeed = new Label(TOP_SPEED + \": \");\r\n\t\ttopSpeed.setTextFill(settingsTextColor);\r\n\t\ttopSpeed.setFont(settingsFont);\r\n\t\ttopSpeed.setPadding(topSettingsInsets);\r\n\t\tfinal Label topSpeedValue = new Label(String.valueOf(carData.getTopSpeed()) + \"km/h\");\r\n\t\ttopSpeedValue.setTextFill(settingsTextColor);\r\n\t\ttopSpeedValue.setFont(settingsFont);\r\n\t\t\r\n\t\tcurrentValuesSim.add(currentValuesSimLabel, 0, 0);\r\n\t\tcurrentValuesSim.add(topSpeed, 0, 1);\r\n\t\tcurrentValuesSim.add(topSpeedValue, 1, 1);\r\n\t\t\r\n//\t\tSettings>simulate>updateFields\r\n\t\tVBox updateFieldsSim = new VBox();\r\n\t\tfinal Label updateSimLabel = new Label(\"Set new value:\");\r\n\t\tupdateSimLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField topSpeedField = new TextField();\r\n\t\ttopSpeedField.setMaxWidth(textfieldWidth);\r\n\t\ttopSpeedField.setPromptText(\"km/h\");\r\n\t\ttopSpeedField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(topSpeedValue, feedbackSimulationLabel, topSpeedField, TOP_SPEED, Double.valueOf(carSpeed), 999.0);\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFieldsSim.getChildren().addAll(updateSimLabel, topSpeedField);\r\n\t\t\r\n\t\tRegion simulateRegion = new Region();\r\n\t\tsimulateRegion.setPrefWidth(25);\r\n\t\tgetAndSetSim.getChildren().addAll(currentValuesSim, simulateRegion, updateFieldsSim);\r\n\t\t\r\n\t\tSeparator simulationSeparator = new Separator();\r\n\t\tsimulationSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text simulateInfo = new Text(updateHelp);\r\n\t\tsimulateInfo.setFill(settingsTextColor);\r\n\t\tsimulateInfo.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator simulationSeparator2 = new Separator();\r\n\t\tsimulationSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsimulateContent.getChildren().addAll(getAndSetSim, simulationSeparator, simulateInfo, simulationSeparator2, feedbackSimulationLabel);\r\n\t\tsimulateTab.setContent(simulateContent);\r\n\t\t\r\n//\t\t*** Settings>checkBoxTab ***\r\n\t\tTab extraFeaturesTab = new Tab(\"Extra features\");\r\n\t\textraFeaturesTab.setClosable(false);\r\n\t\t\r\n\t\tVBox extraFeaturesContent = new VBox();\r\n\t\textraFeaturesContent.setPrefSize(tabWidth, tabHeight);\r\n\t\textraFeaturesContent.setPadding(paddingAllAround);\r\n\t\t\r\n\t\tfinal Label extraFeaturesLabel = new Label(\"Extra features\");\r\n\t\textraFeaturesLabel.setTextFill(settingsTitleColor);\r\n\t\textraFeaturesLabel.setFont(settingsTitleFont);\r\n\t\textraFeaturesLabel.setPadding(topSettingsInsets);\r\n\t\t\r\n\t\tSeparator separatorExtraFeatures = new Separator();\r\n\t\tseparatorExtraFeatures.setPadding(separatorInsets);\r\n\t\t\r\n\t\tInsets checkInsets = new Insets(5, 0, 5, 5);\r\n\t\tfinal CheckBox smartBrake = new CheckBox(\"Smart brake\");\r\n\t\tsmartBrake.setSelected(smartBrakeActivated);\r\n\t\tsmartBrake.setFont(settingsFont);\r\n\t\tsmartBrake.setTextFill(settingsTextColor);\r\n\t\tsmartBrake.setPadding(checkInsets);\r\n\t\tsmartBrake.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tsmartBrakeActivated = ! smartBrakeActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox blindspotAlways = new CheckBox(\"Blindspot always\");\r\n\t\tblindspotAlways.setSelected(blindspotAlwaysActivated);\r\n\t\tblindspotAlways.setFont(settingsFont);\r\n\t\tblindspotAlways.setTextFill(settingsTextColor);\r\n\t\tblindspotAlways.setPadding(checkInsets);\r\n\t\tblindspotAlways.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tblindspotAlwaysActivated = ! blindspotAlwaysActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox audioWarning = new CheckBox(\"Audio warning\");\r\n\t\taudioWarning.setSelected(audioWarningActivated);\r\n\t\taudioWarning.setFont(settingsFont);\r\n\t\taudioWarning.setTextFill(settingsTextColor);\r\n\t\taudioWarning.setPadding(checkInsets);\r\n\t\taudioWarning.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\taudioWarningActivated = ! audioWarningActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\textraFeaturesContent.getChildren().addAll(extraFeaturesLabel, separatorExtraFeatures, smartBrake, blindspotAlways); //, audioWarning);\r\n\t\textraFeaturesTab.setContent(extraFeaturesContent);\r\n\t\t\r\n\t\t\r\n\t\tTabPane settingsWindow = new TabPane();\r\n\t\tsettingsWindow.setVisible(false);\r\n\t\tsettingsWindow.getTabs().addAll(infoTab, settingsTab, simulateTab, extraFeaturesTab);\r\n\t\treturn settingsWindow;\r\n\t}", "@FXML\n void initialize() {\n\n\n\n Configuration.setCellValueFactory(new PropertyValueFactory<ConfData,String>(\"Configuration\"));\n\n ConfTable.setItems(getConfDataTable());\n\n InstallKey.setOnAction(event ->\n\n SetTabVisible()\n //System.out.println(\"Hello\")\n );\n SetNewKey.setOnAction(event ->\n SetTabVisible()\n //System.out.println(\"Hello world\")\n );\n\n\n SetTabVisible();\n\n }", "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 Tab getBillTab() {\n /*\n * Creates a new ArrayList for the Fields to be stored in.\n */\n billFields = new ArrayList<TextField>();\n /*\n * Creates a new ArrayList for the Labels to be stored in.\n */\n billLabels = new ArrayList<Label>();\n \n /*\n * Creates a GridPane to display all Nodes for this Tab.\n */\n GridPane grid = new GridPane();\n grid.setAlignment(Pos.CENTER);\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(10, 10, 10, 10));\n \n /*\n * Adds Columns to the GridPane, so they can be configured.\n */\n for (int i = 0; i <= 5; i++) {\n grid.getColumnConstraints().add(new ColumnConstraints());\n grid.getColumnConstraints().get(i).setHalignment(HPos.CENTER);\n }\n /*\n * Configures the Width for all columns, so they match the wanted design.\n */\n grid.getColumnConstraints().get(0).setMinWidth(60);\n grid.getColumnConstraints().get(1).setMaxWidth(60);\n grid.getColumnConstraints().get(2).setMinWidth(50);\n grid.getColumnConstraints().get(2).setMaxWidth(50);\n grid.getColumnConstraints().get(3).setMinWidth(50);\n grid.getColumnConstraints().get(3).setMaxWidth(50);\n grid.getColumnConstraints().get(4).setMinWidth(70);\n grid.getColumnConstraints().get(4).setMaxWidth(70);\n grid.getColumnConstraints().get(4).setHalignment(HPos.RIGHT);\n grid.getColumnConstraints().get(5).setMinWidth(50);\n grid.getColumnConstraints().get(5).setHalignment(HPos.LEFT);\n \n /*\n * The Content for the Cells with given Content.\n */\n String[] billBase = {\"5€\", \"10€\", \"20€\", \"50€\", \"100€\", \"200€\", \"500€\"};\n \n /*\n * Creates the first Row, where basic Information is displayed.\n */\n Label lbChange = new Label(\"Geldscheine:\");\n grid.add(lbChange, 0, 0);\n \n Label lbAmount = new Label(\"Anzahl:\");\n grid.add(lbAmount, 3, 0);\n \n /*\n * Creates the Area, where the User can enter the amount of each Coinage type,\n */\n for (int i = 0; i <= 6; i++) {\n Label lbBillBase = new Label(billBase[i]);\n grid.add(lbBillBase, 1, i + 1);\n \n TextField tfAmount = new TextField(\"0\");\n tfAmount.setAlignment(Pos.CENTER);\n tfAmount.focusedProperty().addListener(new TextFieldFocusChangedListener(tfAmount, this));\n tfAmount.textProperty().addListener(new TextFieldTextChangedListener(this));\n tfAmount.setTooltip(new Tooltip(\"Geben Sie hier die Anzahl der \\\"\" + billBase[i] \n + \"\\\"-Scheine ein.\"));\n grid.add(tfAmount, 3, i + 1);\n billFields.add(tfAmount);\n \n Label lbSum = new Label(\"Summe:\");\n grid.add(lbSum, 4, i + 1);\n \n Label lbSumDisplay = new Label(\"0,00€\");\n grid.add(lbSumDisplay, 5, i + 1);\n billLabels.add(lbSumDisplay);\n }\n \n /*\n * Creates a new Tab to store the created content in.\n */\n Tab billTab = new Tab();\n billTab.setText(\"Geldscheine\");\n billTab.setContent(grid);\n return billTab;\n }", "private void initMLBTeamTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n mlbTeamTab = new Tab();\n mlbTeamWorkspacePane = new VBox();\n mlbTeamWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD LABEL & BUTTON\n Label mlbTeams = new Label();\n mlbTeams = initChildLabel(mlbTeamWorkspacePane, DraftKit_PropertyType.MLB_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.MLB_ICON);\n Image buttonImage = new Image(imagePath);\n mlbTeamTab.setGraphic(new ImageView(buttonImage));\n \n // CREATE THE COMBOBOX\n HBox mlbTeamHBox = new HBox();\n initHBoxLabel(mlbTeamHBox, DraftKit_PropertyType.MLB_TEAM_LABEL, CLASS_PROMPT_LABEL);\n \n mlbTeamBox = new ComboBox();\n proTeams = new ArrayList<>();\n \n proTeams.add(\"ATL\");\n proTeams.add(\"AZ\");\n proTeams.add(\"CHC\");\n proTeams.add(\"CIN\");\n proTeams.add(\"COL\");\n proTeams.add(\"LAD\");\n proTeams.add(\"MIA\");\n proTeams.add(\"MIL\");\n proTeams.add(\"NYM\");\n proTeams.add(\"PHI\");\n proTeams.add(\"PIT\");\n proTeams.add(\"SD\");\n proTeams.add(\"SF\");\n proTeams.add(\"STL\");\n proTeams.add(\"WAS\");\n \n for (String s : proTeams) {\n mlbTeamBox.getItems().add(s);\n }\n \n mlbTeamBox.setValue(\"Choose a MLB Team\");\n \n mlbTeamHBox.getChildren().add(mlbTeamBox);\n \n mlbTeamBox.valueProperty().addListener(new ChangeListener<String>() {\n @Override public void changed(ObservableValue ov, String t, String t1) {\n ArrayList<Player> tempTeam = new ArrayList<>();\n teamTable.getItems().clear();\n for (Player p : dataManager.getDraft().getPlayerPool()) {\n if (p.getMLBTeam().equals(mlbTeamBox.getSelectionModel().getSelectedItem())) {\n tempTeam.add(p);\n }\n }\n teamTable = resetMLBTable(tempTeam);\n }\n });\n \n // CREATE THE TABLE VIEW FOR THE MLB TEAMS PAGE\n mlbTable = new TableView();\n \n mlbFirst = new TableColumn<>(\"First\");\n mlbFirst.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n mlbFirst.setSortType(SortType.ASCENDING);\n mlbFirst.setSortable(true);\n mlbLast = new TableColumn<>(\"Last\");\n mlbLast.setSortType(SortType.ASCENDING);\n mlbLast.setSortable(true);\n mlbLast.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n mlbPositions = new TableColumn<>(\"Positions\");\n mlbPositions.setCellValueFactory(new PropertyValueFactory<>(\"Position\"));\n \n mlbTable.getColumns().setAll(mlbFirst, mlbLast, mlbPositions);\n \n mlbTable = resetMLBTable(dataManager.getDraft().getPlayerPool());\n \n // SET TOOL TIP\n Tooltip t = new Tooltip(\"MLB Teams Page\");\n mlbTeamTab.setTooltip(t);\n \n // PUT IN TAB PANE\n mlbTeamWorkspacePane.getChildren().add(mlbTeamHBox);\n mlbTeamWorkspacePane.getChildren().add(mlbTable);\n mlbTeamTab.setContent(mlbTeamWorkspacePane);\n mainWorkspacePane.getTabs().add(mlbTeamTab);\n }", "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}", "private void initTabs()\n {\n updateDayTab();\n\n // Set initial time on time tab\n updateTimeTab();\n }", "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}", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n pnlTree = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtrLocal = new DnDTree();\n pnlTab = new javax.swing.JPanel();\n jtpApps = new javax.swing.JTabbedPane();\n\n jSplitPane1.setDividerLocation(260);\n\n pnlTree.setBorder(javax.swing.BorderFactory.createTitledBorder(\n NbBundle.getMessage(\n EditDistributionVisualPanel2.class,\n \"EditDistributionVisualPanel2.pnlTree.border.title\"))); // NOI18N\n\n jtrLocal.setDragEnabled(true);\n jScrollPane1.setViewportView(jtrLocal);\n\n final javax.swing.GroupLayout pnlTreeLayout = new javax.swing.GroupLayout(pnlTree);\n pnlTree.setLayout(pnlTreeLayout);\n pnlTreeLayout.setHorizontalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 246,\n Short.MAX_VALUE));\n pnlTreeLayout.setVerticalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 238,\n Short.MAX_VALUE));\n\n jSplitPane1.setLeftComponent(pnlTree);\n\n final javax.swing.GroupLayout pnlTabLayout = new javax.swing.GroupLayout(pnlTab);\n pnlTab.setLayout(pnlTabLayout);\n pnlTabLayout.setHorizontalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 200,\n Short.MAX_VALUE));\n pnlTabLayout.setVerticalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 266,\n Short.MAX_VALUE));\n\n jSplitPane1.setRightComponent(pnlTab);\n\n final javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 471,\n Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 270,\n Short.MAX_VALUE));\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "private void initComponents() {\n tabbedPane = new javax.swing.JTabbedPane();\n statusLabel = new javax.swing.JLabel();\n\n statusLabel.setText(\" \");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(statusLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(statusLabel))\n );\n }", "public JTabbedPane createPanel()\r\n {\r\n\r\n /** LoadTabPaneData Thread - Inner class that will load the historic data on the AWT\r\n * Thread as to not muck up things on the GUI thread\r\n * The Thread will die after it loads everything.\r\n */\r\n class LoadTabPaneDataTask extends TimerTask\r\n {\r\n // Handle to main outer class\r\n WatchListTableModule watchListTableModule = null;\r\n\r\n /** \r\n * LoadTabPaneDataTask constructor\r\n */\r\n public LoadTabPaneDataTask(WatchListTableModule watchListTableModule)\r\n {\r\n this.watchListTableModule = watchListTableModule;\r\n }\r\n\r\n /** \r\n * LoadTabPaneDataTask::run() this method simply invokes. \r\n * WatchListTableModule::loadPersistantWatchLists() method.\r\n * The method will populate all watchlists to be loaded on\r\n * the JTabbedPane then it dies off\r\n */\r\n public void run()\r\n {\r\n debug(\"LoadTabPaneDataTask::run() - calling watchListTableModule.loadPersistantWatchLists()\");\r\n watchListTableModule.loadPersistantWatchLists();\r\n this.cancel();\r\n }\r\n }\r\n\r\n // Create an Application Properties instance\r\n appProps = new AppProperties(getString(\"WatchListTableModule.application_ini_filename\"));\r\n // Setup our Time Delays\r\n standardDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.standard_time_delay\"), ONE_MINUTE);\r\n extendedDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.extended_time_delay\"), ONE_HOUR);\r\n\r\n // Create our Basic Tabbed Pane and Listener ( inner class )\r\n tabPane = new JTabbedPane();\r\n tabPane.addChangeListener(new TabPaneListener());\r\n\r\n // Load the Tab Pane Data on the Util Event Thread as \r\n // to get our screen up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes method\r\n // loadPersistantWatchLists();\r\n TimerTask tabPaneTask = new LoadTabPaneDataTask(this);\r\n Timer timer = new Timer(true); // Deamon\r\n timer.schedule(tabPaneTask, ONE_SECOND);\r\n\r\n return tabPane;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n tabbedPaneBrowser = new WebTabbedPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(tabbedPaneBrowser, javax.swing.GroupLayout.DEFAULT_SIZE, 649, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tabbedPaneBrowser, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 411, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void adminOperations() {\n adminOps = new JFrame(\"Administrator Frame\");\n adminOps.getRootPane().setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n JTabbedPane adminPane = new JTabbedPane();\n adminPane.addTab(\"Withdraw $\", withdrawMoney());\n adminPane.addTab(\"Update Inventory\", updateInventoryPanel());\n adminOps.getContentPane().add(adminPane);\n adminOps.setVisible(true);\n adminOps.pack();\n }", "public void createPage3(){\n tabAbout = new JPanel();\n tabAbout.setLayout( null );\n \n\n JLabel lblGuidText_syn = new JLabel( \"<html><h1>Useless Dictionary</h1><p>Sulochana Kodituwakku<br>2014/CS/066<br>14000662</p></html>\" ); //html can be used in JLables\n lblGuidText_syn.setHorizontalAlignment(JLabel.LEFT);\n lblGuidText_syn.setVerticalAlignment(JLabel.TOP);\n lblGuidText_syn.setBounds( 10, 200, 750, 380 );\n tabAbout.add( lblGuidText_syn );\n \n btnImport.setBounds(10,10,125,25);\n tabAbout.add(btnImport);\n \n \n //set conlick event for Import button\n event_buttonImport ebd = new event_buttonImport();\n btnImport.addActionListener(ebd);\n }", "private void initControlsPage()\r\n {\n \tString keyTitleString = \"KEYBOARD\";\r\n \tkeyTitleText = new OText(25, 200, 300, keyTitleString);\r\n \tkeyTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the keyboard movement text\r\n \tString keyMoveString = \"Move Optimus with the WASD keys \"\r\n \t\t\t + \" <br> \"\r\n \t\t\t + \"as if they were the arrow keys.\";\r\n \tkeyMoveText = new OText(25, 225, 300, keyMoveString);\r\n \tkeyMoveText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t\r\n \t//Initialize the mouse title text\r\n \tString mouseTitleString = \"MOUSE\";\r\n \tmouseTitleText = new OText(375, 200, 300, mouseTitleString);\r\n \tmouseTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the mouse text\r\n \tString mouseMoveString = \"Aim by moving the mouse and shoot bullets from Optimus in the direction of the cursor using both clicks. \";\r\n \tmouseText = new OText(375, 225, 300, mouseMoveString);\r\n \tmouseText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n }", "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 initComponents() {\n \n rightsPane = new PropertiesRightsPane(this);\n \n doubleFormat = new DecimalFormat(\"0.00\");\n doubleFormat.setGroupingUsed(false);\n\n DecimalFormatSymbols custom=new DecimalFormatSymbols();\n custom.setDecimalSeparator('.');\n ((DecimalFormat) doubleFormat).setDecimalFormatSymbols(custom);\n \n tabbedPane = new JTabbedPane();\n \n nameField = new javax.swing.JTextField(); \n image = new ImageButton();\n jPanel1 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n nameLabel = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n yLabel = new javax.swing.JLabel();\n zLabel = new javax.swing.JLabel();\n locationFieldY = new javax.swing.JFormattedTextField(doubleFormat);\n locationFieldZ = new javax.swing.JFormattedTextField(doubleFormat);\n xLabel = new javax.swing.JLabel();\n locationFieldX = new javax.swing.JFormattedTextField(doubleFormat);\n jPanel2 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n image = new ImageButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n rotXLabel = new javax.swing.JLabel();\n rotYLabel = new javax.swing.JLabel();\n rotZLabel = new javax.swing.JLabel();\n \n rotationFieldX = new javax.swing.JFormattedTextField(doubleFormat);\n rotationFieldY = new javax.swing.JFormattedTextField(doubleFormat);\n rotationFieldZ = new javax.swing.JFormattedTextField(doubleFormat);\n jPanel4 = new javax.swing.JPanel();\n scaleLabel = new javax.swing.JLabel();\n scaleField = new javax.swing.JFormattedTextField(doubleFormat);\n okButton = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n applyButton = new javax.swing.JButton();\n resetButton = new javax.swing.JButton();\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel2.setText(BUNDLE.getString(\"Location\"));\n\n yLabel.setText(\"Y:\");\n\n zLabel.setText(\"Z:\");\n \n xLabel.setText(\"X:\");\n locationFieldX.setText(\"0\");\n locationFieldY.setText(\"0\");\n locationFieldZ.setText(\"0\");\n rotationFieldX.setText(\"0\");\n rotationFieldY.setText(\"0\");\n rotationFieldZ.setText(\"0\");\n scaleField.setText(\"1\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(45, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(zLabel)\n .addComponent(yLabel, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(xLabel, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(locationFieldY)\n .addComponent(locationFieldZ)\n .addComponent(locationFieldX, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n )\n ))\n .addContainerGap(45, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {locationFieldX, locationFieldY, locationFieldZ});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(15, 15, 15)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(xLabel)\n .addComponent(locationFieldX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(yLabel)\n .addComponent(locationFieldY, 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 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(zLabel)\n .addComponent(locationFieldZ, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGap(20, 20, 20))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {locationFieldX, locationFieldY, locationFieldZ});\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n \n nameLabel.setText(BUNDLE.getString(\"Name\"));\n\n jLabel3.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n\n image.addActionListener(new java.awt.event.ActionListener(){\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n imageButtonActionPerformed(evt);\n }\n });\n \n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n )\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(nameField, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n )\n .addGap(45, 45, 45)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(image, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n )\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n )\n )\n );\n \n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nameLabel)\n .addComponent(nameField)\n .addComponent(image, 150, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) \n )\n .addContainerGap()\n )\n );\n \n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel4.setText(BUNDLE.getString(\"Rotation\"));\n\n rotXLabel.setText(\"X:\");\n\n rotYLabel.setText(\"Y:\");\n\n rotZLabel.setText(\"Z:\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rotZLabel)\n .addComponent(rotYLabel)\n .addComponent(rotXLabel))\n .addGap(50, 50, 50)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(rotationFieldY, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rotationFieldX, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rotationFieldZ, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {rotationFieldX, rotationFieldY, rotationFieldZ});\n\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rotXLabel)\n .addComponent(rotationFieldX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rotYLabel)\n .addComponent(rotationFieldY, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rotZLabel)\n .addComponent(rotationFieldZ, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {rotationFieldX, rotationFieldY, rotationFieldZ});\n\n jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n scaleLabel.setText(BUNDLE.getString(\"Scale\"));\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(scaleLabel)\n .addGap(27, 27, 27)\n .addComponent(scaleField, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(61, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(scaleLabel)\n .addComponent(scaleField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n okButton.setText(BUNDLE.getString(\"OK\"));\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt, true);\n }\n });\n\n cancelButton.setText(BUNDLE.getString(\"Cancel\"));\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonActionPerformed(evt);\n }\n });\n \n applyButton.setText(BUNDLE.getString(\"Apply\"));\n applyButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt, false);\n }\n });\n\n resetButton.setText(BUNDLE.getString(\"Reset\"));\n resetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n resetButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.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.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(applyButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(resetButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cancelButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(okButton)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\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)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(okButton)\n .addComponent(cancelButton)\n .addComponent(resetButton)\n .addComponent(applyButton))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n \n tabbedPane.addTab(BUNDLE.getString(\"PropertiesGeneral\"), null, jPanel5,\n BUNDLE.getString(\"PropertiesGeneralInfo\"));\n getContentPane().add(tabbedPane);\n tabbedPane.addTab(BUNDLE.getString(\"PropertiesRights\"), null, rightsPane, \n BUNDLE.getString(\"PropertiesRightsInfo\"));\n\n\n setLocation(GUISettings.FRAMEPOSX, GUISettings.FRAMEPOSY); \n setTitle(BUNDLE.getString(\"MenuProperties\"));\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n setResizable(false);\n pack();\n }", "public void setupCenterPanel() {\n\t\tcenterPanel = new JPanel();\n\t\tcenterPanel.setLayout(new BoxLayout(centerPanel, BoxLayout.Y_AXIS));\n\t\tcenterPanel.add(tabs);\n\t\tcenterPanel.add(scroll);\n\t\tadd(centerPanel, BorderLayout.CENTER);\n\t}", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));\n CellConstraints cc = new CellConstraints();\n panel1.add(panel2, cc.xy(1, 3));\n saveButton = new JButton();\n this.$$$loadButtonText$$$(saveButton, ResourceBundle.getBundle(\"bundles/button\").getString(\"Save\"));\n panel2.add(saveButton);\n tabbedPane = new JTabbedPane();\n panel1.add(tabbedPane, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n final JScrollPane scrollPane1 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"countryBorder\"), scrollPane1);\n countryBorderTable = new JTable();\n scrollPane1.setViewportView(countryBorderTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"provinceBorder_title\"), scrollPane2);\n provinceBorderTable = new JTable();\n provinceBorderTable.setToolTipText(\"\");\n scrollPane2.setViewportView(provinceBorderTable);\n }", "private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }", "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 }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 752, 842);\r\n\t\t// frame.setSize(700, 500);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addComponent(tabbedPane,\r\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 512, Short.MAX_VALUE));\r\n\t\tgroupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addComponent(tabbedPane,\r\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE));\r\n\t\ttabbedPane.setPreferredSize(new Dimension(700, 850));\r\n\t\tJScrollPane scrollFrame = new JScrollPane(tabbedPane);\r\n\t\ttabbedPane.setAutoscrolls(true);\r\n\t\tscrollFrame.setPreferredSize(new Dimension(200, 300));\r\n\t\tframe.getContentPane().add(scrollFrame);\r\n\r\n\t\tPanel panel = new Panel();\r\n\t\ttabbedPane.addTab(\"Parameters\", null, panel, null);\r\n\t\tpanel.setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"Financial Transaction\");\r\n\t\tlblNewLabel.setBounds(10, 11, 141, 22);\r\n\t\tpanel.add(lblNewLabel);\r\n\r\n\t\tJLabel lblTransactionType = new JLabel(\"Transaction Type :\");\r\n\t\tlblTransactionType.setBounds(10, 44, 117, 22);\r\n\t\tpanel.add(lblTransactionType);\r\n\r\n\t\ttextField_btMap1 = new JTextField();\r\n\t\ttextField_btMap1.setBounds(180, 94, 468, 20);\r\n\t\tpanel.add(textField_btMap1);\r\n\t\ttextField_btMap1.setText(\"1111001000111110010001001000000100101000111001001001000000000000\");\r\n\t\ttextField_btMap1.setColumns(10);\r\n\r\n\t\ttextField_btMap2 = new JTextField();\r\n\t\ttextField_btMap2.setColumns(10);\r\n\t\ttextField_btMap2.setBounds(180, 119, 468, 20);\r\n\t\ttextField_btMap2.setText(\"0000000000000000000000000000000000000110000000000000000000110000\");\r\n\t\tpanel.add(textField_btMap2);\r\n\r\n\t\tChoice choice = new Choice();\r\n\t\tchoice.setBounds(180, 44, 113, 20);\r\n\t\tchoice.add(\"Fund Transfer\");\r\n\t\tchoice.add(\"Balance Enquiry\");\r\n\t\tchoice.add(\"Mini-Statement\");\r\n\t\tchoice.add(\"Purchase\");\r\n\t\tchoice.add(\"Reversal\");\r\n\t\tpanel.add(choice);\r\n\t\tchoice.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\r\n\t\t\t\tif (choice.getSelectedItem().equalsIgnoreCase(\"Fund Transfer\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"400000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Balance Enquiry\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"301000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Mini-Statement\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"350000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Purchase\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"001000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Reversal\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"400000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0420\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23A44810EE48000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000004006000000\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tJLabel lblProcessCode = new JLabel(\"Process Code:\");\r\n\t\tlblProcessCode.setBounds(10, 72, 86, 14);\r\n\t\tpanel.add(lblProcessCode);\r\n\r\n\t\ttextField_ProcessCode = new JTextField();\r\n\t\ttextField_ProcessCode.setBounds(180, 69, 113, 20);\r\n\t\ttextField_ProcessCode.setText(\"400000\");\r\n\t\tpanel.add(textField_ProcessCode);\r\n\t\ttextField_ProcessCode.setEditable(false);\r\n\t\ttextField_ProcessCode.setColumns(10);\r\n\r\n\t\tJLabel lblMessageCode = new JLabel(\"Message Code\");\r\n\t\tlblMessageCode.setBounds(302, 46, 86, 18);\r\n\t\tpanel.add(lblMessageCode);\r\n\r\n\t\ttextField_messageCode = new JTextField();\r\n\t\ttextField_messageCode.setBounds(294, 69, 86, 20);\r\n\t\ttextField_messageCode.setText(\"0200\");\r\n\t\tpanel.add(textField_messageCode);\r\n\t\ttextField_messageCode.setEditable(false);\r\n\t\ttextField_messageCode.setColumns(10);\r\n\r\n\t\tJLabel lblBitmapstr = new JLabel(\"BitHPMapStr1 :\");\r\n\t\tlblBitmapstr.setBounds(10, 97, 92, 14);\r\n\t\tpanel.add(lblBitmapstr);\r\n\r\n\t\tJLabel lblBithpmapstr = new JLabel(\"BitHPMapStr2 :\");\r\n\t\tlblBithpmapstr.setBounds(10, 122, 92, 14);\r\n\t\tpanel.add(lblBithpmapstr);\r\n\r\n\t\ttextField_hexValues1 = new JTextField();\r\n\t\ttextField_hexValues1.setBounds(180, 147, 144, 20);\r\n\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\tpanel.add(textField_hexValues1);\r\n\t\ttextField_hexValues1.setColumns(10);\r\n\r\n\t\ttextField_hexValues2 = new JTextField();\r\n\t\ttextField_hexValues2.setColumns(10);\r\n\t\ttextField_hexValues2.setBounds(334, 147, 146, 20);\r\n\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\tpanel.add(textField_hexValues2);\r\n\r\n\t\tJLabel lblHexValues = new JLabel(\"Hex Values\");\r\n\t\tlblHexValues.setBounds(10, 147, 70, 14);\r\n\t\tpanel.add(lblHexValues);\r\n\r\n\t\tJLabel lblFromAccount = new JLabel(\"Source MainCode :\");\r\n\t\tlblFromAccount.setBounds(10, 172, 117, 22);\r\n\t\tpanel.add(lblFromAccount);\r\n\r\n\t\tJLabel lblToAccount = new JLabel(\"Destination MainCode: \");\r\n\t\tlblToAccount.setBounds(10, 194, 141, 22);\r\n\t\tpanel.add(lblToAccount);\r\n\r\n\t\ttextField_from = new JTextField();\r\n\t\ttextField_from.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_from.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_from.setBounds(180, 173, 199, 20);\r\n\t\tpanel.add(textField_from);\r\n\t\ttextField_from.setColumns(10);\r\n\r\n\t\ttextField_To = new JTextField();\r\n\t\ttextField_To.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_To.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_To.setColumns(10);\r\n\t\ttextField_To.setBounds(180, 195, 199, 20);\r\n\t\tpanel.add(textField_To);\r\n\r\n\t\tJLabel lblTerminalId = new JLabel(\"Terminal ID: \");\r\n\t\tlblTerminalId.setBounds(10, 224, 86, 14);\r\n\t\tpanel.add(lblTerminalId);\r\n\r\n\t\ttextField_terminal = new JTextField();\r\n\t\ttextField_terminal.setBounds(180, 221, 102, 20);\r\n\t\tpanel.add(textField_terminal);\r\n\t\ttextField_terminal.setColumns(10);\r\n\r\n\t\tJLabel lblAmount = new JLabel(\"Amount :\");\r\n\t\tlblAmount.setBounds(10, 249, 62, 20);\r\n\t\tpanel.add(lblAmount);\r\n\r\n\t\ttextField_Amount = new JTextField();\r\n\t\ttextField_Amount.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Amount.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Amount.setBounds(180, 252, 102, 20);\r\n\t\tpanel.add(textField_Amount);\r\n\t\ttextField_Amount.setColumns(10);\r\n\r\n\t\tButton button = new Button(\"Next\");\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttabbedPane.setSelectedIndex(1);\r\n\t\t\t\tTranDate d = new TranDate();\r\n\t\t\t\tRandom rnd = new Random();\r\n\t\t\t\ttextField_Ac1.setText(textField_from.getText());\r\n\t\t\t\ttextField_amount.setText(textField_Amount.getText());\r\n\t\t\t\ttextField_Ac2.setText(textField_To.getText());\r\n\t\t\t\ttextField_Terminal.setText(textField_terminal.getText());\r\n\t\t\t\ttextField_proCode.setText(textField_ProcessCode.getText());\r\n\t\t\t\ttextField_primary.setText(textField_hexValues1.getText());\r\n\t\t\t\ttextField_secondarybtmap.setText(textField_hexValues2.getText());\r\n\t\t\t\ttextField_Date.setText(d.getTranDateTime());\r\n\t\t\t\ttextField.setText(String.valueOf(100000 + rnd.nextInt(900000)));\r\n\t\t\t\ttextField_1_time.setText(d.getTimeLocal());\r\n\t\t\t\ttextField_DateLocal.setText(d.getLocalSettle());\r\n\t\t\t\ttextField_DateExp.setText(d.getexpDate());\r\n\t\t\t\ttextField_1.setText(d.getLocalSettle());\r\n\t\t\t\ttextField_retrival.setText(String.valueOf(d.generateRandom(12)));\r\n\r\n\t\t\t\tif (textField_messageCode.getText().equals(\"0420\")) {\r\n\t\t\t\t\t// reversalfield();\r\n//\t\t\t\t\ttextField_primary.setText(\"F23A44810EE48000\");\r\n//\t\t\t\t\ttextField_secondarybtmap.setText(\"0000004006000000\");\r\n\t\t\t\t\ttextField_OriData.setEnabled(true);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(false);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(false);\r\n\t\t\t\t\ttextField_track.setEnabled(false);\r\n\t\t\t\t\ttextField_PIN.setEnabled(false);\r\n\t\t\t\t\ttextField_123.setEnabled(false);\r\n\t\t\t\t\ttextField_124.setEnabled(false);\r\n\t\t\t\t\ttextField_authorization.setEnabled(true);\r\n\t\t\t\t\ttextField_responseCODE.setEnabled(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttextField_authorization.setEnabled(false);\r\n\t\t\t\t\ttextField_responseCODE.setEnabled(false);\r\n\t\t\t\t\ttextField_OriData.setEnabled(false);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(true);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(true);\r\n\t\t\t\t\ttextField_track.setEnabled(true);\r\n\t\t\t\t\ttextField_PIN.setEnabled(true);\r\n\t\t\t\t\ttextField_123.setEnabled(true);\r\n\t\t\t\t\ttextField_124.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(10, 283, 70, 22);\r\n\t\tbutton.setEnabled(false);\r\n\t\tpanel.add(button);\r\n\r\n\t\tJLabel lblNewLabel_52 = new JLabel(\"Password : \");\r\n\t\tlblNewLabel_52.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\r\n\t\tlblNewLabel_52.setBounds(180, 12, 81, 18);\r\n\t\tpanel.add(lblNewLabel_52);\r\n\r\n\t\ttextField_2 = new JPasswordField();\r\n\t\ttextField_2.setBounds(264, 12, 163, 20);\r\n\t\tpanel.add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_53 = new JLabel(\"Locked\");\r\n\t\tlblNewLabel_53.setForeground(Color.RED);\r\n\t\tlblNewLabel_53.setBounds(571, 15, 54, 14);\r\n\t\tpanel.add(lblNewLabel_53);\r\n\t\tframe.addWindowListener(new WindowAdapter() {\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\r\n\t\t\t\ttextField_2.requestFocus();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tJLabel lblNewLabel_54 = new JLabel(\"Status : \");\r\n\t\tlblNewLabel_54.setFont(new Font(\"Cambria\", Font.PLAIN, 12));\r\n\t\tlblNewLabel_54.setBounds(523, 15, 54, 14);\r\n\t\tpanel.add(lblNewLabel_54);\r\n\r\n\t\ttabbedPane.addTab(\"Values\", null, panel_1, null);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"0. Primary BitMap: \");\r\n\t\tlblNewLabel_1.setBounds(20, 30, 126, 17);\r\n\r\n\t\ttextField_primary = new JTextField();\r\n\t\ttextField_primary.setBounds(178, 28, 140, 20);\r\n\t\ttextField_primary.setColumns(10);\r\n\r\n\t\tJLabel lblSecondayBitMap = new JLabel(\"1. Seconday Bit Map: \");\r\n\t\tlblSecondayBitMap.setBounds(20, 51, 126, 20);\r\n\r\n\t\ttextField_secondarybtmap = new JTextField();\r\n\t\ttextField_secondarybtmap.setBounds(178, 51, 140, 20);\r\n\t\ttextField_secondarybtmap.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"2. Primry Account Number:\");\r\n\t\tlblNewLabel_2.setBounds(20, 79, 160, 14);\r\n\r\n\t\ttextField_PAN = new JTextField();\r\n\t\ttextField_PAN.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_PAN.getText().length() >= 19) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_PAN.setBounds(178, 76, 140, 20);\r\n\t\ttextField_PAN.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"4. Amount :\");\r\n\t\tlblNewLabel_3.setBounds(20, 104, 91, 14);\r\n\r\n\t\ttextField_amount = new JTextField();\r\n\t\ttextField_amount.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_amount.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_amount.setBounds(178, 101, 140, 20);\r\n\t\ttextField_amount.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"7. Transmission Date :\");\r\n\t\tlblNewLabel_4.setBounds(20, 129, 148, 14);\r\n\r\n\t\ttextField_Date = new JTextField();\r\n\t\ttextField_Date.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Date.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Date.setBounds(178, 127, 140, 23);\r\n\t\ttextField_Date.setText(\"\");\r\n\t\ttextField_Date.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_5 = new JLabel(\"11. System Trace :\");\r\n\t\tlblNewLabel_5.setBounds(20, 154, 114, 14);\r\n\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField.setBounds(178, 151, 140, 20);\r\n\t\ttextField.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_6 = new JLabel(\"12. Time, Local : \");\r\n\t\tlblNewLabel_6.setBounds(20, 179, 114, 14);\r\n\r\n\t\ttextField_1_time = new JTextField();\r\n\t\ttextField_1_time.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_1_time.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_1_time.setBounds(178, 176, 104, 20);\r\n\t\ttextField_1_time.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_7 = new JLabel(\"13. Date, Local :\");\r\n\t\tlblNewLabel_7.setBounds(20, 204, 91, 14);\r\n\r\n\t\ttextField_DateLocal = new JTextField();\r\n\t\ttextField_DateLocal.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_DateLocal.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_DateLocal.setBounds(178, 201, 68, 20);\r\n\t\ttextField_DateLocal.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_8 = new JLabel(\"14. Date, Exp\");\r\n\t\tlblNewLabel_8.setBounds(20, 229, 91, 14);\r\n\r\n\t\ttextField_DateExp = new JTextField();\r\n\t\ttextField_DateExp.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_DateExp.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_DateExp.setBounds(178, 226, 68, 20);\r\n\t\ttextField_DateExp.setColumns(10);\r\n\r\n\t\tlblNewLabel_48 = new JLabel(\"90. Original Data Element :\");\r\n\t\tlblNewLabel_48.setBounds(328, 54, 168, 14);\r\n\t\tpanel_1.add(lblNewLabel_48);\r\n\r\n\t\ttextField_OriData = new JTextField();\r\n\t\ttextField_OriData.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_OriData.getText().length() >= 42) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_OriData.setColumns(10);\r\n\t\ttextField_OriData.setBounds(328, 76, 350, 20);\r\n\t\ttextField_OriData.setEnabled(false);\r\n\t\tpanel_1.add(textField_OriData);\r\n\r\n\t\tJLabel lblNewLabel_9 = new JLabel(\"15. Date Settle :\");\r\n\t\tlblNewLabel_9.setBounds(20, 254, 91, 14);\r\n\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_1.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_1.setBounds(178, 248, 68, 20);\r\n\t\ttextField_1.setColumns(10);\r\n\t\tpanel_1.setLayout(null);\r\n\t\tpanel_1.add(lblNewLabel_1);\r\n\t\tpanel_1.add(textField_primary);\r\n\t\tpanel_1.add(lblSecondayBitMap);\r\n\t\tpanel_1.add(textField_secondarybtmap);\r\n\t\tpanel_1.add(lblNewLabel_2);\r\n\t\tpanel_1.add(textField_PAN);\r\n\t\tpanel_1.add(lblNewLabel_3);\r\n\t\tpanel_1.add(textField_amount);\r\n\t\tpanel_1.add(lblNewLabel_4);\r\n\t\tpanel_1.add(textField_Date);\r\n\t\tpanel_1.add(lblNewLabel_5);\r\n\t\tpanel_1.add(textField);\r\n\t\tpanel_1.add(lblNewLabel_6);\r\n\t\tpanel_1.add(textField_1_time);\r\n\t\tpanel_1.add(lblNewLabel_7);\r\n\t\tpanel_1.add(textField_DateLocal);\r\n\t\tpanel_1.add(lblNewLabel_8);\r\n\t\tpanel_1.add(textField_DateExp);\r\n\t\tpanel_1.add(lblNewLabel_9);\r\n\t\tpanel_1.add(textField_1);\r\n\r\n\t\tJLabel lblNewLabel_10 = new JLabel(\"18. Merchant Type : \");\r\n\t\tlblNewLabel_10.setBounds(20, 279, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_10);\r\n\r\n\t\ttextField_Merchant = new JTextField();\r\n\t\ttextField_Merchant.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Merchant.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Merchant.setBounds(178, 276, 41, 20);\r\n\t\tpanel_1.add(textField_Merchant);\r\n\t\ttextField_Merchant.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_11 = new JLabel(\"22. Point of service :\");\r\n\t\tlblNewLabel_11.setBounds(20, 307, 134, 14);\r\n\t\tpanel_1.add(lblNewLabel_11);\r\n\r\n\t\ttextField_Service = new JTextField();\r\n\t\ttextField_Service.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Service.getText().length() >= 3) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Service.setBounds(178, 304, 30, 20);\r\n\t\tpanel_1.add(textField_Service);\r\n\t\ttextField_Service.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_12 = new JLabel(\"25. Point of condition : \");\r\n\t\tlblNewLabel_12.setBounds(20, 332, 148, 14);\r\n\t\tpanel_1.add(lblNewLabel_12);\r\n\r\n\t\ttextField_condition = new JTextField();\r\n\t\ttextField_condition.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_condition.getText().length() >= 2) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_condition.setBounds(178, 329, 19, 20);\r\n\t\tpanel_1.add(textField_condition);\r\n\t\ttextField_condition.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_13 = new JLabel(\"32. Acquirer Id :\");\r\n\t\tlblNewLabel_13.setBounds(20, 357, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_13);\r\n\r\n\t\ttextField_Acquirer = new JTextField();\r\n\t\ttextField_Acquirer.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Acquirer.getText().length() >= 8) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Acquirer.setBounds(178, 354, 140, 20);\r\n\t\tpanel_1.add(textField_Acquirer);\r\n\t\ttextField_Acquirer.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_14 = new JLabel(\"35. Track 2 data : \");\r\n\t\tlblNewLabel_14.setBounds(20, 382, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_14);\r\n\r\n\t\ttextField_track = new JTextField();\r\n\t\ttextField_track.setBounds(178, 379, 140, 20);\r\n\t\tpanel_1.add(textField_track);\r\n\t\ttextField_track.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_15 = new JLabel(\"37. Retrieval ref : \");\r\n\t\tlblNewLabel_15.setBounds(20, 407, 104, 14);\r\n\t\tpanel_1.add(lblNewLabel_15);\r\n\r\n\t\ttextField_retrival = new JTextField();\r\n\t\ttextField_retrival.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_retrival.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_retrival.setBounds(177, 404, 91, 20);\r\n\t\tpanel_1.add(textField_retrival);\r\n\t\ttextField_retrival.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_16 = new JLabel(\"41. Terminal Id :\");\r\n\t\tlblNewLabel_16.setBounds(20, 431, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_16);\r\n\r\n\t\ttextField_Terminal = new JTextField();\r\n\t\ttextField_Terminal.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Terminal.getText().length() >= 8) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Terminal.setBounds(178, 428, 140, 20);\r\n\t\tpanel_1.add(textField_Terminal);\r\n\t\ttextField_Terminal.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_17 = new JLabel(\"42. Card Identification : \");\r\n\t\tlblNewLabel_17.setBounds(20, 456, 134, 14);\r\n\t\tpanel_1.add(lblNewLabel_17);\r\n\r\n\t\ttextField_cardidentity = new JTextField();\r\n\t\ttextField_cardidentity.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_cardidentity.getText().length() >= 15) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_cardidentity.setBounds(178, 453, 140, 20);\r\n\t\tpanel_1.add(textField_cardidentity);\r\n\t\ttextField_cardidentity.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_18 = new JLabel(\"43. Card Location :\");\r\n\t\tlblNewLabel_18.setBounds(20, 478, 114, 14);\r\n\t\tpanel_1.add(lblNewLabel_18);\r\n\r\n\t\ttextField_cardlocation = new JTextField();\r\n\t\ttextField_cardlocation.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_cardlocation.getText().length() >= 40) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_cardlocation.setBounds(178, 475, 140, 20);\r\n\t\tpanel_1.add(textField_cardlocation);\r\n\t\ttextField_cardlocation.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_19 = new JLabel(\"46. Additional data iso : \");\r\n\t\tlblNewLabel_19.setBounds(20, 499, 148, 14);\r\n\t\tpanel_1.add(lblNewLabel_19);\r\n\r\n\t\ttextField_field46 = new JTextField();\r\n\t\ttextField_field46.setBounds(178, 496, 318, 20);\r\n\t\tpanel_1.add(textField_field46);\r\n\t\ttextField_field46.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_20 = new JLabel(\"49. Currency Code : \");\r\n\t\tlblNewLabel_20.setBounds(20, 524, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_20);\r\n\r\n\t\ttextField_Currency = new JTextField();\r\n\t\ttextField_Currency.setBounds(178, 521, 30, 20);\r\n\t\ttextField_Currency.setText(\"524\");\r\n\t\ttextField_Currency.setEditable(false);\r\n\t\tpanel_1.add(textField_Currency);\r\n\t\ttextField_Currency.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_21 = new JLabel(\"52. PIN :\");\r\n\t\tlblNewLabel_21.setBounds(20, 549, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_21);\r\n\r\n\t\tJLabel lblNewLabel_22 = new JLabel(\"102. Account 1 :\");\r\n\t\tlblNewLabel_22.setBounds(20, 574, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_22);\r\n\r\n\t\tJLabel lblAccount = new JLabel(\"103. Account 2 :\");\r\n\t\tlblAccount.setBounds(20, 599, 126, 14);\r\n\t\tpanel_1.add(lblAccount);\r\n\r\n\t\tJLabel lblReservedPrivateUse = new JLabel(\"123. Reserved private : 123\");\r\n\t\tlblReservedPrivateUse.setBounds(20, 624, 160, 14);\r\n\t\tpanel_1.add(lblReservedPrivateUse);\r\n\r\n\t\tJLabel lblReservedPrivateUse_1 = new JLabel(\"124. Reserved private : 124\");\r\n\t\tlblReservedPrivateUse_1.setBounds(20, 651, 160, 14);\r\n\t\tpanel_1.add(lblReservedPrivateUse_1);\r\n\r\n\t\ttextField_PIN = new JTextField();\r\n\t\ttextField_PIN.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_PIN.getText().length() >= 16) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_PIN.setBounds(178, 546, 140, 20);\r\n\t\tpanel_1.add(textField_PIN);\r\n\t\ttextField_PIN.setColumns(10);\r\n\r\n\t\ttextField_Ac1 = new JTextField();\r\n\t\ttextField_Ac1.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Ac1.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Ac1.setColumns(10);\r\n\t\ttextField_Ac1.setBounds(178, 571, 140, 20);\r\n\t\tpanel_1.add(textField_Ac1);\r\n\r\n\t\ttextField_Ac2 = new JTextField();\r\n\t\ttextField_Ac2.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Ac2.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Ac2.setColumns(10);\r\n\t\ttextField_Ac2.setBounds(178, 596, 140, 20);\r\n\t\tpanel_1.add(textField_Ac2);\r\n\r\n\t\ttextField_123 = new JTextField();\r\n\t\ttextField_123.setColumns(10);\r\n\t\ttextField_123.setBounds(188, 621, 140, 20);\r\n\t\tpanel_1.add(textField_123);\r\n\r\n\t\ttextField_124 = new JTextField();\r\n\t\ttextField_124.setColumns(10);\r\n\t\ttextField_124.setBounds(190, 648, 140, 20);\r\n\t\tpanel_1.add(textField_124);\r\n\t\t// button placement\r\n\r\n\t\tJLabel lblNewLabel_46 = new JLabel(\"3. Pro Code : \");\r\n\t\tlblNewLabel_46.setBounds(333, 31, 84, 14);\r\n\t\tpanel_1.add(lblNewLabel_46);\r\n\r\n\t\ttextField_proCode = new JTextField();\r\n\t\ttextField_proCode.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_proCode.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_proCode.setBounds(427, 28, 75, 20);\r\n\t\tpanel_1.add(textField_proCode);\r\n\t\ttextField_proCode.setColumns(10);\r\n\r\n\t\tJButton btnNewButton = new JButton(\"Next\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttabbedPane.setSelectedIndex(3);\r\n\t\t\t\tscrollFrame.getViewport().setViewPosition(new Point(0, 0));\r\n\t\t\t\tframe.invalidate();\r\n\t\t\t\tframe.validate();\r\n\t\t\t\tframe.repaint();\r\n\t\t\t\tif (textField_messageCode.getText().equals(\"0420\")) {\r\n\t\t\t\t\teditorPane.setText(MakeISO8583Reversal());\r\n\t\t\t\t} else {\r\n\t\t\t\t\teditorPane.setText(Makeiso8583());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setBounds(20, 676, 91, 23);\r\n\t\tbtnNewButton.setEnabled(false);\r\n\t\tpanel_1.add(btnNewButton);\r\n\r\n\t\tJLabel lblNewLabel_49 = new JLabel(\"38. Authorization identity: \");\r\n\t\tlblNewLabel_49.setBounds(338, 101, 148, 17);\r\n\t\tpanel_1.add(lblNewLabel_49);\r\n\r\n\t\ttextField_authorization = new JTextField();\r\n\t\ttextField_authorization.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_authorization.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_authorization.setBounds(496, 101, 91, 20);\r\n\t\tpanel_1.add(textField_authorization);\r\n\t\ttextField_authorization.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_50 = new JLabel(\"39. Response Code :\");\r\n\t\tlblNewLabel_50.setBounds(337, 129, 134, 14);\r\n\t\tpanel_1.add(lblNewLabel_50);\r\n\r\n\t\ttextField_responseCODE = new JTextField();\r\n\t\ttextField_responseCODE.setColumns(10);\r\n\t\ttextField_responseCODE.setBounds(454, 126, 54, 20);\r\n\t\tpanel_1.add(textField_responseCODE);\r\n\r\n\t\tJPanel panel_3 = new JPanel();\r\n\t\ttabbedPane.addTab(\"Custom1\", null, panel_3, null);\r\n\t\tpanel_3.setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel_47 = new JLabel(\"Amount Settle: \");\r\n\t\tlblNewLabel_47.setBounds(10, 22, 91, 19);\r\n\t\tpanel_3.add(lblNewLabel_47);\r\n\r\n\t\ttextField_amt_settle = new JTextField();\r\n\t\ttextField_amt_settle.setBounds(111, 21, 118, 20);\r\n\t\tpanel_3.add(textField_amt_settle);\r\n\t\ttextField_amt_settle.setColumns(10);\r\n\t\t/*\r\n\t\t * Custom can be added For on and off fields. Dynamic Version is more effective\r\n\t\t */\r\n\t\t// JPanel panel_4 = new JPanel();\r\n\t\t// tabbedPane.addTab(\"Custom2\", null, panel_4, null);\r\n\r\n\t\t// JPanel panel_5 = new JPanel();\r\n\t\t// tabbedPane.addTab(\"Custom3\", null, panel_5, null);\r\n\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\ttabbedPane.addTab(\"Connect\", null, panel_2, null);\r\n\t\tpanel_2.setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel_23 = new JLabel(\"Server :\");\r\n\t\tlblNewLabel_23.setBounds(10, 21, 52, 20);\r\n\t\tpanel_2.add(lblNewLabel_23);\r\n\r\n\t\tJLabel lblPort = new JLabel(\"Port :\");\r\n\t\tlblPort.setBounds(195, 21, 43, 20);\r\n\t\tpanel_2.add(lblPort);\r\n\r\n\t\ttextField_Server = new JTextField();\r\n\t\ttextField_Server.setBounds(69, 21, 116, 20);\r\n\t\tpanel_2.add(textField_Server);\r\n\t\ttextField_Server.setColumns(10);\r\n\r\n\t\ttextField_Port = new JTextField();\r\n\t\ttextField_Port.setBounds(233, 21, 58, 20);\r\n\t\tpanel_2.add(textField_Port);\r\n\t\ttextField_Port.setColumns(10);\r\n\r\n\t\teditorPane.setBounds(10, 75, 681, 90);\r\n\t\tpanel_2.add(editorPane);\r\n\r\n\t\tJEditorPane editorPane_1 = new JEditorPane();\r\n\t\teditorPane_1.setBounds(10, 196, 681, 90);\r\n\t\tpanel_2.add(editorPane_1);\r\n\r\n\t\tJLabel lblNewLabel_24 = new JLabel(\"Request :\");\r\n\t\tlblNewLabel_24.setBounds(10, 52, 83, 12);\r\n\t\tpanel_2.add(lblNewLabel_24);\r\n\r\n\t\tJLabel lblResponse = new JLabel(\"Response :\");\r\n\t\tlblResponse.setBounds(10, 173, 73, 12);\r\n\t\tpanel_2.add(lblResponse);\r\n\r\n\t\tJLabel lblNewLabel_25 = new JLabel(\"Response List\");\r\n\t\tlblNewLabel_25.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tlblNewLabel_25.setBounds(10, 311, 104, 20);\r\n\t\tpanel_2.add(lblNewLabel_25);\r\n\r\n\t\tJLabel lblNewLabel_26 = new JLabel(\"Response Code : \");\r\n\t\tlblNewLabel_26.setBounds(286, 345, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_26);\r\n\r\n\t\ttextField_responseCode = new JTextField();\r\n\t\ttextField_responseCode.setBounds(412, 345, 43, 20);\r\n\t\tpanel_2.add(textField_responseCode);\r\n\t\ttextField_responseCode.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_27 = new JLabel(\"Account identification 1 :\");\r\n\t\tlblNewLabel_27.setBounds(273, 528, 148, 14);\r\n\t\tpanel_2.add(lblNewLabel_27);\r\n\r\n\t\ttextField_Acc1 = new JTextField();\r\n\t\ttextField_Acc1.setBounds(431, 525, 203, 20);\r\n\t\tpanel_2.add(textField_Acc1);\r\n\t\ttextField_Acc1.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_28 = new JLabel(\"Unsuccessful\");\r\n\t\tlblNewLabel_28.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tlblNewLabel_28.setBounds(395, 21, 95, 19);\r\n\t\tpanel_2.add(lblNewLabel_28);\r\n\t\tJEditorPane editorPane_2 = new JEditorPane();\r\n\t\teditorPane_2.setBounds(115, 631, 536, 77);\r\n\t\tpanel_2.add(editorPane_2);\r\n\r\n\t\tJLabel lblNewLabel_42 = new JLabel(\"Additional Data[N] : \");\r\n\t\tlblNewLabel_42.setBounds(274, 475, 147, 14);\r\n\t\tpanel_2.add(lblNewLabel_42);\r\n\r\n\t\tJLabel lblAdditionalDatap = new JLabel(\"Additional Data[P] : \");\r\n\t\tlblAdditionalDatap.setBounds(274, 503, 116, 14);\r\n\t\tpanel_2.add(lblAdditionalDatap);\r\n\r\n\t\tButton button_1 = new Button(\"Connect\");\r\n\t\tbutton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (textField_Server.getText().isEmpty() || textField_Port.getText().isEmpty()) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Server/Port Can't be empty\", \"Fatal Error\");\r\n\t\t\t\t} else if (!isInteger(textField_Port.getText())) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Port is not numeric\", \"Critical error\");\r\n\t\t\t\t} else { /* Everything fine, continue */\r\n\t\t\t\t\tHashMap<String/* Field names */, JTextField/* textFields */> fieldmap = new HashMap<>();\r\n\t\t\t\t\tfieldmap.put(\"PrimaryBitmap\", textField_priBit_res);\r\n\t\t\t\t\tfieldmap.put(\"BitmapExtended\", textField_bt_Ex_res);\r\n\t\t\t\t\tfieldmap.put(\"Pan\", textField_PANRes);\r\n\t\t\t\t\tfieldmap.put(\"Amount\", textField_AmtRes);\r\n\t\t\t\t\tfieldmap.put(\"TranDate\", textField_TranDate_res);\r\n\t\t\t\t\tfieldmap.put(\"SystemTrace\", textField_SysTrace_res);\r\n\t\t\t\t\tfieldmap.put(\"TimeLocal\", textField_TimeLocal_res);\r\n\t\t\t\t\tfieldmap.put(\"LocalTran\", textField_LocalTranRes);\r\n\t\t\t\t\tfieldmap.put(\"DateSettle\", textField_Datesettleres);\r\n\t\t\t\t\tfieldmap.put(\"AuthCode\", textField_auth_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalAm\", textField_AddAm_res);\r\n\t\t\t\t\tfieldmap.put(\"ResponseCode\", textField_responseCode);\r\n\t\t\t\t\tfieldmap.put(\"TerminalId\", textField_Teminal_res);\r\n\t\t\t\t\tfieldmap.put(\"AcquirerID\", textField_Acquirer_res);\r\n\t\t\t\t\tfieldmap.put(\"MerchantType\", textField_merchan_res);\r\n\t\t\t\t\tfieldmap.put(\"RetrievalRef\", textField_retRes);\r\n\t\t\t\t\tfieldmap.put(\"Currency\", textField_Curr_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataNational\", textField_adDataN);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataPriate\", textField_AdDataP);\r\n\t\t\t\t\tfieldmap.put(\"Account1\", textField_Acc1);\r\n\t\t\t\t\tfieldmap.put(\"Account2\", textField_Acc2);\r\n\t\t\t\t\tnew Thread(() -> {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tsocket = new Socket(textField_Server.getText(), Integer.parseInt(textField_Port.getText()));\r\n\t\t\t\t\t\t\tISOSender is = new ISOSender(socket, editorPane.getText(), editorPane_1, lblNewLabel_28,\r\n\t\t\t\t\t\t\t\t\tfieldmap, lblNewLabel_42, lblAdditionalDatap);\r\n\t\t\t\t\t\t\tis.Field48(editorPane_2, textField_ProcessCode, textField_messageCode);\r\n\t\t\t\t\t\t\tis.run();\r\n\r\n\t\t\t\t\t\t\t// ISOResponse ISR = new ISOResponse(socket,Makeiso8583());\r\n\t\t\t\t\t\t\t// ISR.run();\r\n\t\t\t\t\t\t} catch (NumberFormatException | IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\tT2PSwing.infoBox(\"Connection Problem occured \" + e1.toString(), \"Critical error\");\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}).start();\r\n\r\n\t\t\t\t\t// lblNewLabel_28.setText(\"Successful\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(303, 19, 73, 22);\r\n\t\tbutton_1.setEnabled(false);\r\n\t\tpanel_2.add(button_1);\r\n\r\n\t\tJLabel lblNewLabel_29 = new JLabel(\"Primary BitMap :\");\r\n\t\tlblNewLabel_29.setBounds(10, 342, 104, 20);\r\n\t\tpanel_2.add(lblNewLabel_29);\r\n\r\n\t\ttextField_priBit_res = new JTextField();\r\n\t\ttextField_priBit_res.setBounds(115, 342, 148, 20);\r\n\t\tpanel_2.add(textField_priBit_res);\r\n\t\ttextField_priBit_res.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_30 = new JLabel(\"Bit Map Ex :\");\r\n\t\tlblNewLabel_30.setBounds(10, 373, 73, 14);\r\n\t\tpanel_2.add(lblNewLabel_30);\r\n\r\n\t\ttextField_bt_Ex_res = new JTextField();\r\n\t\ttextField_bt_Ex_res.setBounds(115, 370, 148, 20);\r\n\t\tpanel_2.add(textField_bt_Ex_res);\r\n\t\ttextField_bt_Ex_res.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_31 = new JLabel(\"PAN :\");\r\n\t\tlblNewLabel_31.setBounds(10, 398, 52, 14);\r\n\t\tpanel_2.add(lblNewLabel_31);\r\n\r\n\t\ttextField_PANRes = new JTextField();\r\n\t\ttextField_PANRes.setColumns(10);\r\n\t\ttextField_PANRes.setBounds(115, 395, 148, 20);\r\n\t\tpanel_2.add(textField_PANRes);\r\n\r\n\t\tJLabel lblNewLabel_32 = new JLabel(\"Amount :\");\r\n\t\tlblNewLabel_32.setBounds(10, 423, 73, 14);\r\n\t\tpanel_2.add(lblNewLabel_32);\r\n\r\n\t\ttextField_AmtRes = new JTextField();\r\n\t\ttextField_AmtRes.setColumns(10);\r\n\t\ttextField_AmtRes.setBounds(115, 420, 148, 20);\r\n\t\tpanel_2.add(textField_AmtRes);\r\n\r\n\t\tJLabel lblNewLabel_33 = new JLabel(\"Tran Date: \");\r\n\t\tlblNewLabel_33.setBounds(10, 448, 83, 14);\r\n\t\tpanel_2.add(lblNewLabel_33);\r\n\r\n\t\ttextField_TranDate_res = new JTextField();\r\n\t\ttextField_TranDate_res.setColumns(10);\r\n\t\ttextField_TranDate_res.setBounds(115, 447, 148, 20);\r\n\t\tpanel_2.add(textField_TranDate_res);\r\n\r\n\t\tJLabel lblNewLabel_34 = new JLabel(\"System Trace :\");\r\n\t\tlblNewLabel_34.setBounds(10, 478, 95, 14);\r\n\t\tpanel_2.add(lblNewLabel_34);\r\n\r\n\t\ttextField_SysTrace_res = new JTextField();\r\n\t\ttextField_SysTrace_res.setColumns(10);\r\n\t\ttextField_SysTrace_res.setBounds(115, 475, 148, 20);\r\n\t\tpanel_2.add(textField_SysTrace_res);\r\n\r\n\t\tJLabel lblNewLabel_35 = new JLabel(\"Time local :\");\r\n\t\tlblNewLabel_35.setBounds(10, 503, 83, 14);\r\n\t\tpanel_2.add(lblNewLabel_35);\r\n\r\n\t\ttextField_TimeLocal_res = new JTextField();\r\n\t\ttextField_TimeLocal_res.setColumns(10);\r\n\t\ttextField_TimeLocal_res.setBounds(115, 500, 148, 20);\r\n\t\tpanel_2.add(textField_TimeLocal_res);\r\n\r\n\t\tJLabel lblNewLabel_36 = new JLabel(\"Date, Local Tran :\");\r\n\t\tlblNewLabel_36.setBounds(10, 528, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_36);\r\n\r\n\t\ttextField_LocalTranRes = new JTextField();\r\n\t\ttextField_LocalTranRes.setColumns(10);\r\n\t\ttextField_LocalTranRes.setBounds(115, 525, 148, 20);\r\n\t\tpanel_2.add(textField_LocalTranRes);\r\n\r\n\t\tJLabel lblNewLabel_37 = new JLabel(\"Date Settle : \");\r\n\t\tlblNewLabel_37.setBounds(10, 553, 77, 14);\r\n\t\tpanel_2.add(lblNewLabel_37);\r\n\r\n\t\ttextField_Datesettleres = new JTextField();\r\n\t\ttextField_Datesettleres.setColumns(10);\r\n\t\ttextField_Datesettleres.setBounds(115, 550, 148, 20);\r\n\t\tpanel_2.add(textField_Datesettleres);\r\n\r\n\t\tJLabel lblNewLabel_38 = new JLabel(\"Merchant Type :\");\r\n\t\tlblNewLabel_38.setBounds(286, 423, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_38);\r\n\r\n\t\ttextField_merchan_res = new JTextField();\r\n\t\ttextField_merchan_res.setColumns(10);\r\n\t\ttextField_merchan_res.setBounds(411, 420, 148, 20);\r\n\t\tpanel_2.add(textField_merchan_res);\r\n\r\n\t\tJLabel lblNewLabel_39 = new JLabel(\"Acquirer ID :\");\r\n\t\tlblNewLabel_39.setBounds(286, 398, 83, 14);\r\n\t\tpanel_2.add(lblNewLabel_39);\r\n\r\n\t\ttextField_Acquirer_res = new JTextField();\r\n\t\ttextField_Acquirer_res.setColumns(10);\r\n\t\ttextField_Acquirer_res.setBounds(411, 395, 148, 20);\r\n\t\tpanel_2.add(textField_Acquirer_res);\r\n\r\n\t\tJLabel lblNewLabel_40 = new JLabel(\"Auth Identity res :\");\r\n\t\tlblNewLabel_40.setBounds(10, 578, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_40);\r\n\r\n\t\ttextField_auth_res = new JTextField();\r\n\t\ttextField_auth_res.setColumns(10);\r\n\t\ttextField_auth_res.setBounds(115, 575, 148, 20);\r\n\t\tpanel_2.add(textField_auth_res);\r\n\r\n\t\tJLabel lblNewLabel_41 = new JLabel(\"Terminal ID: \");\r\n\t\tlblNewLabel_41.setBounds(286, 373, 90, 14);\r\n\t\tpanel_2.add(lblNewLabel_41);\r\n\r\n\t\ttextField_Teminal_res = new JTextField();\r\n\t\ttextField_Teminal_res.setColumns(10);\r\n\t\ttextField_Teminal_res.setBounds(411, 370, 148, 20);\r\n\t\tpanel_2.add(textField_Teminal_res);\r\n\r\n\t\ttextField_adDataN = new JTextField();\r\n\t\ttextField_adDataN.setColumns(10);\r\n\t\ttextField_adDataN.setBounds(431, 475, 220, 20);\r\n\t\tpanel_2.add(textField_adDataN);\r\n\r\n\t\ttextField_AdDataP = new JTextField();\r\n\t\ttextField_AdDataP.setColumns(10);\r\n\t\ttextField_AdDataP.setBounds(412, 500, 239, 20);\r\n\t\tpanel_2.add(textField_AdDataP);\r\n\r\n\t\tJLabel lblNewLabel_43 = new JLabel(\"Curr Code : \");\r\n\t\tlblNewLabel_43.setBounds(286, 450, 90, 14);\r\n\t\tpanel_2.add(lblNewLabel_43);\r\n\r\n\t\ttextField_Curr_res = new JTextField();\r\n\t\ttextField_Curr_res.setColumns(10);\r\n\t\ttextField_Curr_res.setBounds(412, 447, 66, 20);\r\n\t\tpanel_2.add(textField_Curr_res);\r\n\r\n\t\tJLabel lblAccountIdentification = new JLabel(\"Account identification 2 :\");\r\n\t\tlblAccountIdentification.setBounds(273, 553, 148, 14);\r\n\t\tpanel_2.add(lblAccountIdentification);\r\n\r\n\t\ttextField_Acc2 = new JTextField();\r\n\t\ttextField_Acc2.setColumns(10);\r\n\t\ttextField_Acc2.setBounds(431, 550, 203, 20);\r\n\t\tpanel_2.add(textField_Acc2);\r\n\r\n\t\tJLabel lblNewLabel_44 = new JLabel(\"Field 48 [Mini] :\");\r\n\t\tlblNewLabel_44.setBounds(20, 655, 95, 20);\r\n\t\tpanel_2.add(lblNewLabel_44);\r\n\r\n\t\ttextField_AddAm_res = new JTextField();\r\n\t\ttextField_AddAm_res.setColumns(10);\r\n\t\ttextField_AddAm_res.setBounds(136, 603, 606, 23);\r\n\t\tpanel_2.add(textField_AddAm_res);\r\n\r\n\t\tJLabel lblNewLabel_45 = new JLabel(\"Additional Amounts : \");\r\n\t\tlblNewLabel_45.setBounds(10, 606, 123, 20);\r\n\t\tpanel_2.add(lblNewLabel_45);\r\n\r\n\t\tJLabel lblNewLabel_51 = new JLabel(\"Retrieval Ref :\");\r\n\t\tlblNewLabel_51.setBounds(286, 578, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_51);\r\n\r\n\t\ttextField_retRes = new JTextField();\r\n\t\ttextField_retRes.setBounds(412, 575, 151, 20);\r\n\t\tpanel_2.add(textField_retRes);\r\n\t\ttextField_retRes.setColumns(10);\r\n\r\n\t\tJButton btnNewButton_2 = new JButton(\"Bulk\");\r\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (!isInteger(textFieldBulknumber.getText())) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Bulk is not numeric\", \"Critical error\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (rbFT.isSelected()) {\r\n\t\t\t\t\t\tinputs = 0;\r\n\t\t\t\t\t\tSystem.out.println(\"FT\" + rbFT.isSelected());\r\n\t\t\t\t\t} else if (rbBI.isSelected()) {\r\n\t\t\t\t\t\tinputs = 1;\r\n\t\t\t\t\t\tSystem.out.println(\"BE\" + rbBI.isSelected());\r\n\t\t\t\t\t} else if (rbMS.isSelected()) {\r\n\t\t\t\t\t\tinputs = 2;\r\n\t\t\t\t\t\tSystem.out.println(\"MS\" + rbMS.isSelected());\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString servername = textField_Server.getText();\r\n\t\t\t\t\tint port = Integer.parseInt(textField_Port.getText());\r\n\t\t\t\t\tint requirednooftransaction = Integer.parseInt(textFieldBulknumber.getText());\r\n\t\t\t\t\tHashMap<String/* Field names */, JTextField/* textFields */> fieldmap = new HashMap<>();\r\n\t\t\t\t\tfieldmap.put(\"PrimaryBitmap\", textField_priBit_res);\r\n\t\t\t\t\tfieldmap.put(\"BitmapExtended\", textField_bt_Ex_res);\r\n\t\t\t\t\tfieldmap.put(\"Pan\", textField_PANRes);\r\n\t\t\t\t\tfieldmap.put(\"Amount\", textField_AmtRes);\r\n\t\t\t\t\tfieldmap.put(\"TranDate\", textField_TranDate_res);\r\n\t\t\t\t\tfieldmap.put(\"SystemTrace\", textField_SysTrace_res);\r\n\t\t\t\t\tfieldmap.put(\"TimeLocal\", textField_TimeLocal_res);\r\n\t\t\t\t\tfieldmap.put(\"LocalTran\", textField_LocalTranRes);\r\n\t\t\t\t\tfieldmap.put(\"DateSettle\", textField_Datesettleres);\r\n\t\t\t\t\tfieldmap.put(\"AuthCode\", textField_auth_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalAm\", textField_AddAm_res);\r\n\t\t\t\t\tfieldmap.put(\"ResponseCode\", textField_responseCode);\r\n\t\t\t\t\tfieldmap.put(\"TerminalId\", textField_Teminal_res);\r\n\t\t\t\t\tfieldmap.put(\"AcquirerID\", textField_Acquirer_res);\r\n\t\t\t\t\tfieldmap.put(\"MerchantType\", textField_merchan_res);\r\n\t\t\t\t\tfieldmap.put(\"RetrievalRef\", textField_retRes);\r\n\t\t\t\t\tfieldmap.put(\"Currency\", textField_Curr_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataNational\", textField_adDataN);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataPriate\", textField_AdDataP);\r\n\t\t\t\t\tfieldmap.put(\"Account1\", textField_Acc1);\r\n\t\t\t\t\tfieldmap.put(\"Account2\", textField_Acc2);\r\n\t\t\t\t\tnew Thread(() -> {\r\n\t\t\t\t\t\tBulkRequestor br = new BulkRequestor(servername, Makeiso8583Bulk(), port,\r\n\t\t\t\t\t\t\t\trequirednooftransaction, inputs, editorPane_1, lblNewLabel_28, fieldmap, lblNewLabel_42,\r\n\t\t\t\t\t\t\t\tlblAdditionalDatap, editorPane_2, textField_ProcessCode, textField_messageCode);\r\n\t\t\t\t\t\tbr.start();\r\n\t\t\t\t\t}).start();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_2.setBounds(578, 20, 66, 23);\r\n\t\tpanel_2.add(btnNewButton_2);\r\n\r\n\t\ttextFieldBulknumber = new JTextField();\r\n\t\ttextFieldBulknumber.setBounds(486, 21, 73, 20);\r\n\t\tpanel_2.add(textFieldBulknumber);\r\n\t\ttextFieldBulknumber.setColumns(10);\r\n\r\n\t\trbBI = new JRadioButton(\"BI\");\r\n\t\trbBI.setBounds(455, 47, 58, 23);\r\n\t\tpanel_2.add(rbBI);\r\n\r\n\t\trbFT = new JRadioButton(\"FT\");\r\n\t\trbFT.setBounds(395, 47, 52, 23);\r\n\t\tpanel_2.add(rbFT);\r\n\t\trbMS = new JRadioButton(\"MS\");\r\n\t\trbMS.setBounds(526, 47, 58, 23);\r\n\t\tpanel_2.add(rbMS);\r\n\r\n\t\tButtonGroup buttonGroup = new ButtonGroup();\r\n\t\tbuttonGroup.add(rbFT);\r\n\t\tbuttonGroup.add(rbBI);\r\n\t\tbuttonGroup.add(rbMS);\r\n\r\n\t\tJButton btnNewButton_3 = new JButton(\"BOL\");\r\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_3.setBounds(578, 47, 56, 23);\r\n\t\tpanel_2.add(btnNewButton_3);\r\n\r\n\t\t// buttonGroup.add(new JRadioButton('Label2', true));\r\n\r\n\t\tJButton btnNewButton_1 = new JButton(\"Unlock\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (textField_2.getPassword().length == 0) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Enter Password\", \"Empty Error\");\r\n\t\t\t\t} else if (textField_2.getPassword().length > 1) {\r\n\t\t\t\t\tEncryptAndDecryptAndReturn end = new EncryptAndDecryptAndReturn(\r\n\t\t\t\t\t\t\tString.valueOf(textField_2.getPassword()));\r\n\t\t\t\t\tif (end.passwordisCorrect()) {\r\n\t\t\t\t\t\tpasswordmatch = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tT2PSwing.infoBox(\"Password incorrect, Tries left :\" + (triesleft - 1) + \"\",\r\n\t\t\t\t\t\t\t\t\"Authentication Error\");\r\n\t\t\t\t\t\ttriesleft -= 1;\r\n\t\t\t\t\t\tif (triesleft == 0) {\r\n\t\t\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Error Occured\", \"Fatal Error\");\r\n\t\t\t\t}\r\n\t\t\t\tif (passwordmatch) {\r\n\t\t\t\t\tlblNewLabel_53.setForeground(Color.GREEN);\r\n\t\t\t\t\tlblNewLabel_53.setText(\"Unlocked\");\r\n\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\tbtnNewButton.setEnabled(true);\r\n\t\t\t\t\tbutton_1.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tbtnNewButton_1.setBounds(437, 11, 77, 23);\r\n\t\tpanel.add(btnNewButton_1);\r\n\r\n\t}", "public Messagespace(PetalEditor petal_editor,\n Model petal_model) {\n super(new GridLayout(1,1));\n\n this.petal_editor = petal_editor;\n this.petal_model = petal_model;\n this.editor = editor;\n\n JTabbedPane tabbedPane = new JTabbedPane();\n tabbedPane.setTabPlacement(JTabbedPane.RIGHT);\n\n\n s_errorsTextArea = new JTextArea();\n s_errorsTextArea.setRows(Constants.TEXTROWS);\n JPanel errorsPanel = new JPanel(new GridLayout(1,1));\n errorsPanel.add(new JScrollPane(s_errorsTextArea));\n tabbedPane.addTab(ERRORS, errorsPanel);\n\n s_statisticsTextArea = new JTextArea();\n s_statisticsTextArea.setRows(Constants.TEXTROWS);\n JPanel statisticsPanel = new JPanel(new GridLayout(1,1));\n statisticsPanel.add(new JScrollPane(s_statisticsTextArea));\n tabbedPane.addTab(STATISTICS, statisticsPanel);\n\n s_messagesTextArea = new JTextArea();\n s_messagesTextArea.setRows(Constants.TEXTROWS);\n JPanel messagesPanel = new JPanel(new GridLayout(1,1));\n messagesPanel.add(new JScrollPane(s_messagesTextArea));\n tabbedPane.addTab(MESSAGES, messagesPanel);\n\n add(tabbedPane);\n\n setBorder(new LineBorder(Color.black,1));\n\n s_errorsTextArea.setEditable(false);\n s_statisticsTextArea.setEditable(false);\n s_messagesTextArea.setEditable(false);\n\n tabbedPane.setSelectedIndex(MESSAGES_ID);\n \n \n\n }", "private void createTabFolder() {\r\n\t\tGridData gridData1 = new GridData();\r\n\t\tgridData1.grabExcessHorizontalSpace = true;\r\n\t\tgridData1.heightHint = 500;\r\n\t\tgridData1.grabExcessVerticalSpace = true;\r\n\t\tgridData1.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;\r\n\t\tgridData1.widthHint = 600;\r\n\t\ttabFolder = new TabFolder(sShell, SWT.NONE);\r\n\t\ttabFolder.setLayoutData(gridData1);\r\n\t\tcreateCompositeRoomMange();\r\n\t\tcreateCompositeGoodsMange();\r\n\t\tcreateCompositeStaffMange();\r\n\t\tcreateCompositeUserMange();\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"房间管理\");\r\n\t\ttabItem.setControl(compositeRoomMange);\r\n\t\tTabItem tabItem1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem1.setText(\"商品管理\");\r\n\t\ttabItem1.setControl(compositeGoodsMange);\r\n\t\tTabItem tabItem2 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem2.setText(\"员工管理\");\r\n\t\ttabItem2.setControl(compositeStaffMange);\r\n\t\tTabItem tabItem3 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem3.setText(\"系统用户管理\");\r\n\t\ttabItem3.setControl(compositeUserMange);\r\n\t}", "public void initAccordion() {\n if (this instanceof GenomeDataPanel) {\n Component initialTab = ((GenomeDataPanel) this).createGenomeTab(0);\n datasetAccordion.addTab(initialTab, \"Dataset \" + 1);\n } else {\n Component initialTab = ((ConditionDataPanel) this).createConditionTab(0);\n datasetAccordion.addTab(initialTab, \"Condition \" + 1);\n }\n\n //Tell presenter to refill the grid of available graph files;\n presenter.resetGraphFileGrid();\n //Tell presenter to remove old bindings and set up new ones\n presenter.clearDynamicBindings();\n presenter.initDatasetBindings(0);\n presenter.initReplicateBindings(0, 0);\n\n }", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void showTabs() {\r\n\t\tif (getPageCount() > 1) {\r\n\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y - 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}", "@Override\n\tpublic void setPane() {\n\t\tNewRecordPane RecListPane = new NewRecordPane();\n\t\trootPane = new HomePane(new MainLeftPane(),RecListPane);\n\t}", "private void initHomePage() {\r\n welcomePage.setSpacing(30);\r\n HTML welcomeLabel = new HTML(\"<h1 style='color:black;font-family:verdana; font-weight:bold;text-decoration:none;font-style:normal;'>Welcome to DiVA <font size='3'>omics </h1>\");\r\n welcomeLabel.setWidth(\"400px\");\r\n VerticalPanel leftSideLayout = new VerticalPanel();\r\n welcomePage.add(leftSideLayout);\r\n welcomePage.setCellVerticalAlignment(leftSideLayout, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(leftSideLayout, VerticalPanel.ALIGN_RIGHT);\r\n leftSideLayout.add(welcomeLabel);\r\n leftSideLayout.setSpacing(10);\r\n\r\n HTML ieErrorLabel = new HTML(\"<p align=\\\"left\\\" style=\\\"margin-left:0px;color:red;\\\"><font size=\\\"3\\\">It looks like you are using an old version of Internet Explorer. Unfortunatly Internet Explorer 6,7,8,9 and 10 are not supported in the curent version of DiVA. Please try other browsers.</font></p>\");\r\n ieErrorLabel.setWidth(\"400px\");\r\n\r\n HTML infoLabel = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">Start using DiVA by selecting a dataset</font></p>\");\r\n infoLabel.setWidth(\"400px\");\r\n\r\n HorizontalPanel selectionLayout = new HorizontalPanel();\r\n\r\n if (oldIE) {\r\n leftSideLayout.add(ieErrorLabel);\r\n } else {\r\n leftSideLayout.add(infoLabel);\r\n leftSideLayout.add(selectionLayout);\r\n selectionLayout.setWidth(\"400px\");\r\n selectionLayout.add(tempSelectDatasetList);\r\n }\r\n\r\n tempSelectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 400px;border-radius: 5px;\");\r\n\r\n leftSideLayout.setCellVerticalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_MIDDLE);\r\n leftSideLayout.setCellHorizontalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_LEFT);\r\n \r\n HTML info2Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:20px;margin-left:0px;color:#585858;line-height: 200%;\\\"><font size=\\\"2\\\">Getting started tutorial available <a target=\\\"_blank\\\" href='\" +\"tutorial/diva_tutorial.pdf\" + \"'>here</a>. </font><br/><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n leftSideLayout.add(info2Label);\r\n\r\n// HTML info3Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:5px;margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n// leftSideLayout.add(info3Label);\r\n\r\n Image screenImg = new Image(\"images/divascreen1.png\");\r\n screenImg.getElement().setAttribute(\"style\", \"width:640px;\");\r\n\r\n welcomePage.add(screenImg);\r\n welcomePage.setCellVerticalAlignment(screenImg, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(screenImg, VerticalPanel.ALIGN_CENTER);\r\n tempSelectDatasetList.setFocus(true);\r\n\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblIcon = new javax.swing.JLabel();\n tabMain = new javax.swing.JTabbedPane();\n pnlWelcome = new javax.swing.JPanel();\n scrWelcome = new javax.swing.JScrollPane();\n txtWelcome = new javax.swing.JTextArea();\n pnlDatabase = new javax.swing.JPanel();\n pnlAddressing = new javax.swing.JPanel();\n lblDatabaseAddressingType = new javax.swing.JLabel();\n lblDatabaseAddressingLocation = new javax.swing.JLabel();\n lblDatabaseAddressingPort = new javax.swing.JLabel();\n txtDatabaseAddressingLocation = new javax.swing.JTextField();\n txtDatabaseAddressingPort = new javax.swing.JTextField();\n cboDatabaseAddressingType = new javax.swing.JComboBox();\n pnlNaming = new javax.swing.JPanel();\n lblDatabaseNamingDatabaseName = new javax.swing.JLabel();\n lblDatabaseNamingTablePrefix = new javax.swing.JLabel();\n txtDatabaseNamingDatabaseName = new javax.swing.JTextField();\n txtDatabaseNamingTablePrefix = new javax.swing.JTextField();\n pnlAuthentication = new javax.swing.JPanel();\n lblDatabaseAuthenticationUsername = new javax.swing.JLabel();\n lblDatabaseAuthenticationPassword = new javax.swing.JLabel();\n txtDatabaseAuthenticationUsername = new javax.swing.JTextField();\n txtDatabaseAuthenticationPassword = new javax.swing.JPasswordField();\n pnlSetting = new javax.swing.JPanel();\n lblDatabaseSettingName = new javax.swing.JLabel();\n txtDatabaseSettingName = new javax.swing.JTextField();\n pnlFinish = new javax.swing.JPanel();\n scrFinish = new javax.swing.JScrollPane();\n txtFinish = new javax.swing.JTextArea();\n pnlControl = new javax.swing.JPanel();\n btnNext = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n btnBack = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n lblIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ApplicationPresentation/Icons/black/png/cog_icon&48.png\"))); // NOI18N\n\n tabMain.setTabPlacement(javax.swing.JTabbedPane.LEFT);\n tabMain.setEnabled(false);\n tabMain.setFocusable(false);\n\n pnlWelcome.setForeground(new java.awt.Color(242, 242, 242));\n pnlWelcome.addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n pnlWelcomeComponentShown(evt);\n }\n });\n\n txtWelcome.setEditable(false);\n txtWelcome.setBackground(new java.awt.Color(242, 242, 242));\n txtWelcome.setColumns(20);\n txtWelcome.setLineWrap(true);\n txtWelcome.setRows(5);\n txtWelcome.setText(\"Welcome to Glasses!\\n\\nBefore you start you need to choose a database. The settings will be saved in a special configuration file and may be manipulated later if necessary.\\n\\nPlease click Next to proceed.\");\n txtWelcome.setFocusable(false);\n scrWelcome.setViewportView(txtWelcome);\n\n javax.swing.GroupLayout pnlWelcomeLayout = new javax.swing.GroupLayout(pnlWelcome);\n pnlWelcome.setLayout(pnlWelcomeLayout);\n pnlWelcomeLayout.setHorizontalGroup(\n pnlWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlWelcomeLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(scrWelcome, javax.swing.GroupLayout.DEFAULT_SIZE, 513, Short.MAX_VALUE)\n .addContainerGap())\n );\n pnlWelcomeLayout.setVerticalGroup(\n pnlWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlWelcomeLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(scrWelcome, javax.swing.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n tabMain.addTab(\"Welcome\", pnlWelcome);\n\n pnlDatabase.addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n pnlDatabaseComponentShown(evt);\n }\n });\n\n pnlAddressing.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Addressing\"));\n\n lblDatabaseAddressingType.setText(\"Type:\");\n\n lblDatabaseAddressingLocation.setText(\"Location:\");\n\n lblDatabaseAddressingPort.setText(\"Port:\");\n\n cboDatabaseAddressingType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"MySQL\" }));\n\n javax.swing.GroupLayout pnlAddressingLayout = new javax.swing.GroupLayout(pnlAddressing);\n pnlAddressing.setLayout(pnlAddressingLayout);\n pnlAddressingLayout.setHorizontalGroup(\n pnlAddressingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlAddressingLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlAddressingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDatabaseAddressingPort)\n .addComponent(lblDatabaseAddressingLocation)\n .addComponent(lblDatabaseAddressingType))\n .addGap(60, 60, 60)\n .addGroup(pnlAddressingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtDatabaseAddressingLocation, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtDatabaseAddressingPort, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cboDatabaseAddressingType, 0, 353, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n pnlAddressingLayout.setVerticalGroup(\n pnlAddressingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlAddressingLayout.createSequentialGroup()\n .addGroup(pnlAddressingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseAddressingType)\n .addComponent(cboDatabaseAddressingType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlAddressingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseAddressingLocation)\n .addComponent(txtDatabaseAddressingLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlAddressingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseAddressingPort)\n .addComponent(txtDatabaseAddressingPort, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pnlNaming.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Naming\"));\n\n lblDatabaseNamingDatabaseName.setText(\"Database name:\");\n\n lblDatabaseNamingTablePrefix.setText(\"Table prefix:\");\n\n javax.swing.GroupLayout pnlNamingLayout = new javax.swing.GroupLayout(pnlNaming);\n pnlNaming.setLayout(pnlNamingLayout);\n pnlNamingLayout.setHorizontalGroup(\n pnlNamingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlNamingLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlNamingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDatabaseNamingDatabaseName)\n .addComponent(lblDatabaseNamingTablePrefix))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlNamingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtDatabaseNamingTablePrefix)\n .addComponent(txtDatabaseNamingDatabaseName))\n .addContainerGap())\n );\n pnlNamingLayout.setVerticalGroup(\n pnlNamingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlNamingLayout.createSequentialGroup()\n .addGroup(pnlNamingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseNamingDatabaseName)\n .addComponent(txtDatabaseNamingDatabaseName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlNamingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseNamingTablePrefix)\n .addComponent(txtDatabaseNamingTablePrefix, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pnlAuthentication.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Authentication\"));\n\n lblDatabaseAuthenticationUsername.setText(\"Username:\");\n\n lblDatabaseAuthenticationPassword.setText(\"Password:\");\n\n txtDatabaseAuthenticationPassword.setEchoChar('\\u2022');\n\n javax.swing.GroupLayout pnlAuthenticationLayout = new javax.swing.GroupLayout(pnlAuthentication);\n pnlAuthentication.setLayout(pnlAuthenticationLayout);\n pnlAuthenticationLayout.setHorizontalGroup(\n pnlAuthenticationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlAuthenticationLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlAuthenticationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDatabaseAuthenticationUsername)\n .addComponent(lblDatabaseAuthenticationPassword))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(pnlAuthenticationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtDatabaseAuthenticationUsername)\n .addComponent(txtDatabaseAuthenticationPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 353, Short.MAX_VALUE))\n .addContainerGap())\n );\n pnlAuthenticationLayout.setVerticalGroup(\n pnlAuthenticationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlAuthenticationLayout.createSequentialGroup()\n .addGroup(pnlAuthenticationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseAuthenticationUsername)\n .addComponent(txtDatabaseAuthenticationUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlAuthenticationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseAuthenticationPassword)\n .addComponent(txtDatabaseAuthenticationPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pnlSetting.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Setting\"));\n\n lblDatabaseSettingName.setText(\"Name:\");\n\n javax.swing.GroupLayout pnlSettingLayout = new javax.swing.GroupLayout(pnlSetting);\n pnlSetting.setLayout(pnlSettingLayout);\n pnlSettingLayout.setHorizontalGroup(\n pnlSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlSettingLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblDatabaseSettingName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 79, Short.MAX_VALUE)\n .addComponent(txtDatabaseSettingName, javax.swing.GroupLayout.PREFERRED_SIZE, 353, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n pnlSettingLayout.setVerticalGroup(\n pnlSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlSettingLayout.createSequentialGroup()\n .addGroup(pnlSettingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDatabaseSettingName)\n .addComponent(txtDatabaseSettingName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout pnlDatabaseLayout = new javax.swing.GroupLayout(pnlDatabase);\n pnlDatabase.setLayout(pnlDatabaseLayout);\n pnlDatabaseLayout.setHorizontalGroup(\n pnlDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDatabaseLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pnlSetting, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pnlNaming, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pnlAddressing, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pnlAuthentication, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n pnlDatabaseLayout.setVerticalGroup(\n pnlDatabaseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDatabaseLayout.createSequentialGroup()\n .addComponent(pnlSetting, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pnlAddressing, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pnlNaming, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pnlAuthentication, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n tabMain.addTab(\"Database\", pnlDatabase);\n\n pnlFinish.addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n pnlFinishComponentShown(evt);\n }\n });\n\n txtFinish.setEditable(false);\n txtFinish.setBackground(new java.awt.Color(242, 242, 242));\n txtFinish.setColumns(20);\n txtFinish.setLineWrap(true);\n txtFinish.setRows(5);\n txtFinish.setText(\"Configuration done!\\n\\nYou can now proceed to the main program by clicking the Next button.\");\n txtFinish.setFocusable(false);\n scrFinish.setViewportView(txtFinish);\n\n javax.swing.GroupLayout pnlFinishLayout = new javax.swing.GroupLayout(pnlFinish);\n pnlFinish.setLayout(pnlFinishLayout);\n pnlFinishLayout.setHorizontalGroup(\n pnlFinishLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlFinishLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(scrFinish, javax.swing.GroupLayout.DEFAULT_SIZE, 513, Short.MAX_VALUE)\n .addContainerGap())\n );\n pnlFinishLayout.setVerticalGroup(\n pnlFinishLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlFinishLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(scrFinish, javax.swing.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n tabMain.addTab(\"Finish\", pnlFinish);\n\n pnlControl.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Control\"));\n pnlControl.setPreferredSize(new java.awt.Dimension(12, 65));\n\n btnNext.setText(\"Next\");\n btnNext.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNextActionPerformed(evt);\n }\n });\n\n btnCancel.setText(\"Cancel\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n\n btnBack.setText(\"Back\");\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout pnlControlLayout = new javax.swing.GroupLayout(pnlControl);\n pnlControl.setLayout(pnlControlLayout);\n pnlControlLayout.setHorizontalGroup(\n pnlControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlControlLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnCancel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnBack)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnNext)\n .addContainerGap())\n );\n pnlControlLayout.setVerticalGroup(\n pnlControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlControlLayout.createSequentialGroup()\n .addGroup(pnlControlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnNext)\n .addComponent(btnCancel)\n .addComponent(btnBack))\n .addGap(0, 9, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tabMain)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblIcon)\n .addContainerGap())\n .addComponent(pnlControl, javax.swing.GroupLayout.DEFAULT_SIZE, 621, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblIcon)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tabMain)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pnlControl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "private void initialize() {\n\t\n\tsetName(\"jgridstart-main-window\");\n\t\n\tstore = new CertificateStoreWithDefault();\n\tselection = new CertificateSelection(store);\n\tPasswordCache.getInstance().setParent(this);\n\tURLLauncherCertificate.setSelectionSource(selection);\n\t\n\t// setup gui\n\tthis.setMinimumSize(new Dimension(400, 150));\n\tthis.setPreferredSize(new Dimension(650, 350));\n\tthis.setContentPane(getJContentPane());\n\tthis.setTitle(\"jGridstart \"+System.getProperty(\"jgridstart.version\"));\n\n\t// create actions; they register themselves\n\tnew ActionRequest(this, store, selection);\n\tnew ActionViewRequest(this, selection);\n\tnew ActionViewVerificationForm(this, selection);\n\tnew ActionImport(this, store, selection);\n\tnew ActionInstall(this, selection);\n\t//new ActionRevoke(this, selection);\n\tnew ActionRenew(this, store, selection);\n\tnew ActionExport(this, selection);\n\tnew ActionMakeDefault(this, store, selection);\n\tnew ActionShowDetails(this, selection) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionViewLog(this);\n\tnew ActionViewCertificateList(this, certList, false);\n\tnew ActionChangeBrowser(this, selection);\n\tnew ActionRefresh(this, store) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well; TODO move into ActionRefresh itself\n\t\tupdateSelection();\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionAbout(this);\n\t// now that the actions are available, the menu can be created\n\tthis.setJMenuBar(getJMenuBar());\n\t\n\t// create buttons for template panel from actions\n\tString[] actions = {\n\t\t\"import\", \"request\",\n\t\t\"viewrequest\", /*\"revoke\",*/ \"install\",\n\t\t\"renew\"\n\t};\n\tcertInfoButtons = new HashMap<String, JButton>();\n\tfor (int i=0; i<actions.length; i++) {\n\t JButton btn = new JButton(getAction(actions[i]));\n\t certInfoButtons.put(actions[i], btn);\n\t certInfoPane.addButton(btn, false, false);\n\t}\n\t \n\t// load certificates from default location\n\tstore.load();\n\n\t// Setup the identity menu and add the change listeners\n\tsetupIdentityMenu();\n\n\t// select default certificate if present, otherwise use first one\n\tif (store.size() > 0)\t{\n\t try {\n\t\tselection.setSelection(store.getDefault());\n\t } catch (IOException e) {\n\t\t/* Cannot get default, leave it */\n\t\tselection.setSelection(0);\n\t }\n\t}\n\t// show certificate list only if multiple certificates present\n\tsetViewCertificateList(store.size() > 1);\n\t// make sure ui is up-to-date\n\tupdateSelection();\n }", "private JPanel getContents(final JTabbedPane jtp,\n final MyTabPreviewPainter mainTabPreviewPainter) {\n FormBuilder builder = FormBuilder.create().\n columns(\"right:pref, 4dlu, fill:min:grow(1), 2dlu, fill:min:grow(1)\").\n rows(\"p, 2dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, \"\n + \"p, 3dlu, p, 7dlu, p, 2dlu, p, 0dlu, p, 0dlu, p, 0dlu, p, 7dlu,\"\n + \"p, 2dlu, p, 3dlu, p, 0dlu, p, 3dlu, p, 3dlu, p, 7dlu, \"\n + \"p, 2dlu, p, 0dlu, p, 0dlu, p, 0dlu, p, 7dlu, p, 2dlu, p, 3dlu, p\").\n columnGroups(new int[][] { { 3, 5 } });\n\n int row = 1;\n builder.addSeparator(\"General\").xyw(1, row, 5);\n\n final JComboBox<String> addKindCombo = new JComboBox<>(\n new String[] { \"regular\", \"null\", \"modified\" });\n JButton addNewTabButton = new JButton(\"Add\");\n addNewTabButton.addActionListener(actionEvent -> {\n String selectedKind = (String) addKindCombo.getSelectedItem();\n if (\"null\".equals(selectedKind)) {\n SwingUtilities.invokeLater(() -> jtp.addTab(\"null tab\", null));\n return;\n }\n\n final int count = 1 + jtp.getTabCount();\n final JComponent tabComp = new NumberedPanel(count);\n if (\"modified\".equals(selectedKind)) {\n RadianceThemingCortex.ComponentScope.setTabContentsModified(tabComp, true);\n }\n SwingUtilities.invokeLater(() -> jtp.addTab(\"tab\" + count, tabComp));\n });\n row += 2;\n\n builder.addLabel(\"Add tab\").xy(1, row);\n builder.add(addKindCombo).xy(3, row);\n builder.add(addNewTabButton).xy(5, row);\n\n final JComboBox<String> placementCombo = new JComboBox<>(\n new String[] { \"top\", \"bottom\", \"left\", \"right\" });\n placementCombo.addActionListener(actionEvent -> {\n String selected = (String) placementCombo.getSelectedItem();\n if (\"top\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.TOP);\n if (\"bottom\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.BOTTOM);\n if (\"left\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.LEFT);\n if (\"right\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.RIGHT);\n });\n row += 2;\n builder.addLabel(\"Placement\").xy(1, row);\n builder.add(placementCombo).xyw(3, row, 3);\n\n try {\n final JComboBox<TabOverviewKind> overviewKindCombo = new FlexiComboBox<>(\n TabOverviewKind.GRID, TabOverviewKind.MENU_CAROUSEL,\n TabOverviewKind.ROUND_CAROUSEL) {\n @Override\n public String getCaption(TabOverviewKind item) {\n return item.getName();\n }\n };\n overviewKindCombo.addActionListener(actionEvent -> mainTabPreviewPainter\n .setTabOverviewKind((TabOverviewKind) overviewKindCombo.getSelectedItem()));\n row += 2;\n builder.addLabel(\"Overview kind\").xy(1, row);\n builder.add(overviewKindCombo).xyw(3, row, 3);\n } catch (NoClassDefFoundError ncdfe) {\n }\n\n final JCheckBox useScrollLayout = new JCheckBox(\"Uses scroll layout\");\n useScrollLayout.setSelected(false);\n useScrollLayout.addActionListener(actionEvent -> jtp\n .setTabLayoutPolicy(useScrollLayout.isSelected() ? JTabbedPane.SCROLL_TAB_LAYOUT\n : JTabbedPane.WRAP_TAB_LAYOUT));\n row += 2;\n builder.addLabel(\"Layout\").xy(1, row);\n builder.add(useScrollLayout).xyw(3, row, 3);\n\n final JComboBox<TabContentPaneBorderKind> contentBorderCombo = new JComboBox<>(new TabContentPaneBorderKind[] {\n TabContentPaneBorderKind.DOUBLE_PLACEMENT,\n TabContentPaneBorderKind.SINGLE_PLACEMENT });\n contentBorderCombo.setSelectedItem(TabContentPaneBorderKind.DOUBLE_PLACEMENT);\n contentBorderCombo.addActionListener(actionEvent -> {\n TabContentPaneBorderKind contentBorderKind = (TabContentPaneBorderKind) contentBorderCombo\n .getSelectedItem();\n RadianceThemingCortex.ComponentScope.setTabContentPaneBorderKind(jtp, contentBorderKind);\n jtp.updateUI();\n jtp.repaint();\n });\n row += 2;\n builder.addLabel(\"Content border\").xy(1, row);\n builder.add(contentBorderCombo).xyw(3, row, 3);\n\n JButton enableAll = new JButton(\"+ all\");\n enableAll.addActionListener(actionEvent -> {\n for (int i = 0; i < jtp.getTabCount(); i++) {\n jtp.setEnabledAt(i, true);\n }\n });\n\n JButton disableAll = new JButton(\"- all\");\n disableAll.addActionListener(actionEvent -> {\n for (int i = 0; i < jtp.getTabCount(); i++) {\n jtp.setEnabledAt(i, false);\n }\n });\n\n row += 2;\n builder.addLabel(\"Enable all\").xy(1, row);\n builder.add(enableAll).xy(3, row);\n builder.add(disableAll).xy(5, row);\n\n JButton closeAllEnabled = new JButton(\"Close\");\n closeAllEnabled.addActionListener(actionEvent -> {\n Set<Component> toRemove = new HashSet<>();\n for (int i = 0; i < jtp.getTabCount(); i++) {\n if (jtp.isEnabledAt(i))\n toRemove.add(jtp.getComponentAt(i));\n }\n for (Component comp : toRemove)\n jtp.remove(comp);\n });\n\n JButton restoreClosed = new JButton(\"Restore\");\n restoreClosed.addActionListener(actionEvent -> {\n for (Component tnp : closed) {\n jtp.addTab(\"restored\", tnp);\n }\n });\n\n row += 2;\n builder.addLabel(\"Close all\").xy(1, row);\n builder.add(closeAllEnabled).xy(3, row);\n builder.add(restoreClosed).xy(5, row);\n\n row += 2;\n builder.addSeparator(\"Single Tab\").xyw(1, row, 5);\n\n final JComboBox<Integer> tabSelectorCombo = new JComboBox<>(new TabComboBoxModel(this.jtp));\n //tabSelectorCombo.setRenderer(new TabCellRenderer());\n jtp.addContainerListener(new ContainerAdapter() {\n @Override\n public void componentAdded(ContainerEvent e) {\n ((TabComboBoxModel) tabSelectorCombo.getModel()).changed();\n }\n\n @Override\n public void componentRemoved(ContainerEvent e) {\n ((TabComboBoxModel) tabSelectorCombo.getModel()).changed();\n }\n });\n\n row += 2;\n builder.addLabel(\"Select\").xy(1, row);\n builder.add(tabSelectorCombo).xyw(3, row, 3);\n\n final JButton markAsModified = new JButton(\"-> modified\");\n markAsModified.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n RadianceThemingCortex.ComponentScope.setTabContentsModified((JComponent) comp, true);\n }\n });\n final JButton markAsUnmodified = new JButton(\"-> unmodified\");\n markAsUnmodified.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n RadianceThemingCortex.ComponentScope.setTabContentsModified((JComponent) comp, false);\n }\n });\n row += 2;\n builder.addLabel(\"Modified\").xy(1, row);\n builder.add(markAsModified).xy(3, row);\n builder.add(markAsUnmodified).xy(5, row);\n\n final JButton runModifiedAnimOnClose = new JButton(\"Animate on X\");\n runModifiedAnimOnClose.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setRunModifiedAnimationOnTabCloseButton(jc, true);\n }\n });\n final JButton runModifiedAnimOnTab = new JButton(\"Animate on tab\");\n runModifiedAnimOnTab.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setRunModifiedAnimationOnTabCloseButton(jc, false);\n }\n });\n row += 2;\n builder.add(runModifiedAnimOnClose).xy(3, row);\n builder.add(runModifiedAnimOnTab).xy(5, row);\n\n final JButton showCloseButton = new JButton(\"+ close button\");\n showCloseButton.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setTabCloseButtonVisible(jc, true);\n jtp.repaint();\n }\n });\n final JButton hideCloseButton = new JButton(\"- close button\");\n hideCloseButton.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setTabCloseButtonVisible(jc, false);\n jtp.repaint();\n }\n });\n\n JButton closeButton = new JButton(\"Close\");\n closeButton.addActionListener(actionEvent -> SwingUtilities.invokeLater(() -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n jtp.removeTabAt((Integer) tabSelectorCombo.getSelectedItem());\n closed.add(comp);\n jtp.repaint();\n }));\n\n JButton selectButton = new JButton(\"Select\");\n selectButton.addActionListener(actionEvent -> SwingUtilities.invokeLater(() -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n jtp.setSelectedIndex((Integer) tabSelectorCombo.getSelectedItem());\n }));\n row += 2;\n builder.addLabel(\"Tab op\").xy(1, row);\n builder.add(closeButton).xy(3, row);\n builder.add(selectButton).xy(5, row);\n\n row += 2;\n builder.addSeparator(\"Close Button Single\").xyw(1, row, 5);\n\n row += 2;\n builder.addLabel(\"Visible\").xy(1, row);\n builder.add(showCloseButton).xy(3, row);\n builder.add(hideCloseButton).xy(5, row);\n\n return builder.getPanel();\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTabbedPane1 = new javax.swing.JTabbedPane();\n mainPage = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextPane3 = new javax.swing.JTextPane();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextPane4 = new javax.swing.JTextPane();\n jLabel2 = new javax.swing.JLabel();\n myGarden = new javax.swing.JPanel();\n jLabel11 = new javax.swing.JLabel();\n jScrollPane13 = new javax.swing.JScrollPane();\n jTextPane13 = new javax.swing.JTextPane();\n history = new javax.swing.JPanel();\n jLabel22 = new javax.swing.JLabel();\n jScrollPane14 = new javax.swing.JScrollPane();\n jTextPane14 = new javax.swing.JTextPane();\n meteoInfo = new javax.swing.JPanel();\n jLabel23 = new javax.swing.JLabel();\n jScrollPane15 = new javax.swing.JScrollPane();\n jTextPane15 = new javax.swing.JTextPane();\n infoMainPage = new javax.swing.JPanel();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTextPane6 = new javax.swing.JTextPane();\n jLabel6 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jTextPane7 = new javax.swing.JTextPane();\n jPanel3 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n jPanel8 = new javax.swing.JPanel();\n jScrollPane8 = new javax.swing.JScrollPane();\n jTextPane8 = new javax.swing.JTextPane();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane9 = new javax.swing.JScrollPane();\n jTextPane9 = new javax.swing.JTextPane();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jPanel10 = new javax.swing.JPanel();\n jScrollPane10 = new javax.swing.JScrollPane();\n jTextPane10 = new javax.swing.JTextPane();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jPanel11 = new javax.swing.JPanel();\n jScrollPane11 = new javax.swing.JScrollPane();\n jTextPane11 = new javax.swing.JTextPane();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jPanel12 = new javax.swing.JPanel();\n jScrollPane12 = new javax.swing.JScrollPane();\n jTextPane12 = new javax.swing.JTextPane();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextPane5 = new javax.swing.JTextPane();\n\n setTitle(\"ATS - Tizimi\");\n setFocusable(false);\n setMaximumSize(new java.awt.Dimension(1600, 900));\n setResizable(false);\n\n jTabbedPane1.setToolTipText(\"Shaxsiy bog' nazorati\");\n jTabbedPane1.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); // NOI18N\n jTabbedPane1.setMaximumSize(new java.awt.Dimension(1024, 625));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/linea_2a3(0)_128.png\"))); // NOI18N\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/linea_45(0)_128.png\"))); // NOI18N\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/linea_1f3(0)_128.png\"))); // NOI18N\n\n jTextPane1.setEditable(false);\n jTextPane1.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jTextPane1.setText(\"\\tAvtomatik tarzda tomchilab sug'orilganda esa suv sarfi:\\nPaxtachilikda 30-65 %\\nBog', uzum va sabzavotchilikda 32-54 %\\nHosildorlik mos ravishda 25-40 foizgacha ortishi kuzatilmoqda.\\nMehnat va moddiy resurslar sarfi 2 barobargacha kamayadi \\nSabzavotlarda ekin ildizi yaqinidagi tuproq sho'rini 35 %gacha kamayadi\\n\");\n jScrollPane1.setViewportView(jTextPane1);\n\n jTextPane2.setEditable(false);\n jTextPane2.setFont(new java.awt.Font(\"Tahoma\", 0, 22)); // NOI18N\n jTextPane2.setText(\"\\tSuv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi.\\n\");\n jScrollPane2.setViewportView(jTextPane2);\n\n jTextPane3.setEditable(false);\n jTextPane3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextPane3.setText(\"\\tSuv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi.\\n\");\n jTextPane3.setToolTipText(\"\");\n jScrollPane3.setViewportView(jTextPane3);\n\n jTextPane4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane4.setText(\"DeveloP Solutions 2016\");\n jScrollPane4.setViewportView(jTextPane4);\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n javax.swing.GroupLayout mainPageLayout = new javax.swing.GroupLayout(mainPage);\n mainPage.setLayout(mainPageLayout);\n mainPageLayout.setHorizontalGroup(\n mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 646, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 646, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 646, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGap(501, 501, 501)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(385, Short.MAX_VALUE))\n );\n mainPageLayout.setVerticalGroup(\n mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGap(73, 73, 73)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(mainPageLayout.createSequentialGroup()\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(mainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPageLayout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPageLayout.createSequentialGroup()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25))))\n );\n\n jTabbedPane1.addTab(\"Asosiy oyna \", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_2302(0)_24.png\")), mainPage, \"Bosh Sahifa\"); // NOI18N\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane13.setEditable(false);\n jTextPane13.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane13.setText(\"DeveloP Solutions 2016\");\n jScrollPane13.setViewportView(jTextPane13);\n\n javax.swing.GroupLayout myGardenLayout = new javax.swing.GroupLayout(myGarden);\n myGarden.setLayout(myGardenLayout);\n myGardenLayout.setHorizontalGroup(\n myGardenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(myGardenLayout.createSequentialGroup()\n .addGap(502, 502, 502)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(505, Short.MAX_VALUE))\n );\n myGardenLayout.setVerticalGroup(\n myGardenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, myGardenLayout.createSequentialGroup()\n .addContainerGap(562, Short.MAX_VALUE)\n .addGroup(myGardenLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(myGardenLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Mening Bog'im\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_d83c(3)_24.png\")), myGarden, \"Shaxsiy bog' nazorati\"); // NOI18N\n\n history.setMaximumSize(new java.awt.Dimension(1024, 625));\n history.setPreferredSize(new java.awt.Dimension(1024, 586));\n\n jLabel22.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane14.setEditable(false);\n jTextPane14.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane14.setText(\"DeveloP Solutions 2016\");\n jScrollPane14.setViewportView(jTextPane14);\n\n javax.swing.GroupLayout historyLayout = new javax.swing.GroupLayout(history);\n history.setLayout(historyLayout);\n historyLayout.setHorizontalGroup(\n historyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(historyLayout.createSequentialGroup()\n .addGap(501, 501, 501)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(506, Short.MAX_VALUE))\n );\n historyLayout.setVerticalGroup(\n historyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, historyLayout.createSequentialGroup()\n .addContainerGap(562, Short.MAX_VALUE)\n .addGroup(historyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(historyLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Hisobot\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_d83d(4)_24.png\")), history, \"Resurslar sarfi hisobotlari\"); // NOI18N\n\n jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane15.setEditable(false);\n jTextPane15.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane15.setText(\"DeveloP Solutions 2016\");\n jScrollPane15.setViewportView(jTextPane15);\n\n javax.swing.GroupLayout meteoInfoLayout = new javax.swing.GroupLayout(meteoInfo);\n meteoInfo.setLayout(meteoInfoLayout);\n meteoInfoLayout.setHorizontalGroup(\n meteoInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(meteoInfoLayout.createSequentialGroup()\n .addGap(500, 500, 500)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(507, Short.MAX_VALUE))\n );\n meteoInfoLayout.setVerticalGroup(\n meteoInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, meteoInfoLayout.createSequentialGroup()\n .addContainerGap(562, Short.MAX_VALUE)\n .addGroup(meteoInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(meteoInfoLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Meterologik ma'lumotlar\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_26c8(1)_24.png\")), meteoInfo, \"Ob - Havo va atrof muuhit haqida ma'lumotlar\"); // NOI18N\n\n jTabbedPane2.setTabPlacement(javax.swing.JTabbedPane.LEFT);\n jTabbedPane2.setToolTipText(\"\");\n jTabbedPane2.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n\n jTextPane6.setEditable(false);\n jTextPane6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane6.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane6.setViewportView(jTextPane6);\n\n jLabel6.setBackground(new java.awt.Color(0, 255, 255));\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 0, 153));\n jLabel6.setText(\"ATS Tizimi\");\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsic064.png\"))); // NOI18N\n\n jLabel7.setText(\"Avtomatik tomchilab Sug'orish\");\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 .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(5, 5, 5)\n .addComponent(jLabel7))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 1, Short.MAX_VALUE)\n .addComponent(jLabel8)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Dastur Haqida\", jPanel1);\n\n jLabel9.setBackground(new java.awt.Color(0, 255, 255));\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(0, 0, 153));\n jLabel9.setText(\"ATS Tizimi O'rnatish tartibi\");\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/MS System settings Configuration Manger-01.png\"))); // NOI18N\n\n jTextPane7.setEditable(false);\n jTextPane7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane7.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane7.setViewportView(jTextPane7);\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 .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Tizimni ornatish tartibi\", jPanel2);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"1- Qadam\", jPanel3);\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"2- Qadam \", jPanel4);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"3- Qadam \", jPanel5);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"4- Qadam\", jPanel6);\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1047, Short.MAX_VALUE)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 531, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"5- Qadam\", jPanel7);\n\n jTextPane8.setEditable(false);\n jTextPane8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane8.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane8.setViewportView(jTextPane8);\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Media-Play.png\"))); // NOI18N\n\n jLabel13.setBackground(new java.awt.Color(0, 255, 255));\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(0, 0, 153));\n jLabel13.setText(\"Ishga tushirish\");\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 36, Short.MAX_VALUE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel13)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Sozlash va ishga tushirish\", jPanel8);\n\n jTextPane9.setEditable(false);\n jTextPane9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane9.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane9.setViewportView(jTextPane9);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Rules.png\"))); // NOI18N\n\n jLabel15.setBackground(new java.awt.Color(0, 255, 255));\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(0, 0, 153));\n jLabel15.setText(\"ATS Tizimi Ishlatish Qoidalari\");\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(jLabel15)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Dasturni Ishlatish qoidalari\", jPanel9);\n\n jTextPane10.setEditable(false);\n jTextPane10.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane10.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane10.setViewportView(jTextPane10);\n\n jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Circle Info - 02.png\"))); // NOI18N\n\n jLabel17.setBackground(new java.awt.Color(0, 255, 255));\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(0, 0, 153));\n jLabel17.setText(\"Qo'shimcha ma'lumotlar\");\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel16)\n .addGap(18, 18, 18)\n .addComponent(jLabel17)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Qo'shimcha ma'lumotlar\", jPanel10);\n\n jTextPane11.setEditable(false);\n jTextPane11.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane11.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane11.setViewportView(jTextPane11);\n\n jLabel18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Help - 01.png\"))); // NOI18N\n\n jLabel19.setBackground(new java.awt.Color(0, 255, 255));\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(0, 0, 153));\n jLabel19.setText(\"Tez tez So'raladigan Savollar\");\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel18)\n .addGap(18, 18, 18)\n .addComponent(jLabel19)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"FAQ\", jPanel11);\n\n jTextPane12.setEditable(false);\n jTextPane12.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane12.setText(\"\\tATS (avtomatik tomchilab sug'orish tizimi ) DEVELOP SOLUTIONS tomonidan ayna ushbu kompaniya mahsulotlariga tehnik va dasturiy yordam tariqasida MAhkamov Muzaffar tomonidan ishlab chiqilgan. Suv resurslarini oqilona boshqarish va ulardan samarali foydalanish mamlakatimiz qishloq xo'jaligini rivojlantirish istiqbollarini belgilab beruvchi eng muhim omillardan sanaladi, shu maqsadda dastur agrar sohada tomchilab sugorishni bla bla bla\\n\\n\");\n jScrollPane12.setViewportView(jTextPane12);\n\n jLabel20.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/E Service-WF.png\"))); // NOI18N\n\n jLabel21.setBackground(new java.awt.Color(0, 255, 255));\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(0, 0, 153));\n jLabel21.setText(\"DP Solutions Servis Hizmati\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 1011, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGap(252, 252, 252)\n .addComponent(jLabel20)\n .addGap(18, 18, 18)\n .addComponent(jLabel21)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 449, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jTabbedPane2.addTab(\"Servis Hizmati\", jPanel12);\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/dpsolutionsico.png\"))); // NOI18N\n\n jTextPane5.setEditable(false);\n jTextPane5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextPane5.setText(\"DeveloP Solutions 2016\");\n jScrollPane5.setViewportView(jTextPane5);\n\n javax.swing.GroupLayout infoMainPageLayout = new javax.swing.GroupLayout(infoMainPage);\n infoMainPage.setLayout(infoMainPageLayout);\n infoMainPageLayout.setHorizontalGroup(\n infoMainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane2)\n .addGroup(infoMainPageLayout.createSequentialGroup()\n .addGap(499, 499, 499)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n infoMainPageLayout.setVerticalGroup(\n infoMainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(infoMainPageLayout.createSequentialGroup()\n .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 536, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addGroup(infoMainPageLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(infoMainPageLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Dastur Haqida\", new javax.swing.ImageIcon(getClass().getResource(\"/ats/icons/Entypo_2139(2)_24.png\")), infoMainPage, \"Dastur va ishlab chiqaruvchi haqida\"); // NOI18N\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, 1223, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1223, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 659, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\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() {\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}", "private void initComponents() {\n panel1 = new JPanel();\n jtpPflegeakte = new JTabbedPane();\n\n //======== this ========\n setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\n //======== panel1 ========\n {\n panel1.setLayout(new FormLayout(\n \"default:grow\",\n \"default:grow\"));\n\n //======== jtpPflegeakte ========\n {\n jtpPflegeakte.setTabPlacement(SwingConstants.BOTTOM);\n jtpPflegeakte.addChangeListener(e -> jtpPflegeakteStateChanged(e));\n }\n panel1.add(jtpPflegeakte, CC.xy(1, 1, CC.FILL, CC.FILL));\n }\n add(panel1);\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jLabel2 = new javax.swing.JLabel();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel4 = new javax.swing.JPanel();\n jScrollPane39 = new javax.swing.JScrollPane();\n jTextPane38 = new javax.swing.JTextPane();\n jScrollPane40 = new javax.swing.JScrollPane();\n jTextPane39 = new javax.swing.JTextPane();\n jPanel5 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextPane3 = new javax.swing.JTextPane();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextPane4 = new javax.swing.JTextPane();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextPane5 = new javax.swing.JTextPane();\n jPanel7 = new javax.swing.JPanel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jTextPane7 = new javax.swing.JTextPane();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTextPane6 = new javax.swing.JTextPane();\n jPanel8 = new javax.swing.JPanel();\n jScrollPane9 = new javax.swing.JScrollPane();\n jTextPane9 = new javax.swing.JTextPane();\n jScrollPane8 = new javax.swing.JScrollPane();\n jTextPane8 = new javax.swing.JTextPane();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane11 = new javax.swing.JScrollPane();\n jTextPane11 = new javax.swing.JTextPane();\n jScrollPane10 = new javax.swing.JScrollPane();\n jTextPane10 = new javax.swing.JTextPane();\n jPanel2 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n jButton9 = new javax.swing.JButton();\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jCheckBox4 = new javax.swing.JCheckBox();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox<>();\n jPanel11 = new javax.swing.JPanel();\n jScrollPane13 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Характеристика якості програмного забезпечення\");\n setResizable(false);\n\n jTabbedPane1.setAutoscrolls(true);\n\n jPanel1.setBackground(new java.awt.Color(229, 229, 229));\n jPanel1.setAutoscrolls(true);\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Характеристика якості програмного забезпечення\");\n\n jTextPane1.setEditable(false);\n jTextPane1.setText(\"Стандарт ISO/IEC 9126 регламентує зовнішні і внутрішні характеристики якості. Перші відображають вимоги до функціонування програмного продукту. Для кількісного встановлення критеріїв якості, за якими буде здійснюватися перевірка і підтвердження відповідності ПЗ заданим вимогам, визначаються відповідні зовнішні вимірювані властивості (зовнішні атрибути) ПЗ, метрики (наприклад, час виконання окремих компонентів), діапазони зміни значень і моделі їх оцінки. Метрики використовуються на стадії тестування або функціонування і називаються зовнішніми метриками. Вони являють собою моделі оцінки атрибутів.\\n\\nВнутрішні характеристики якості і внутрішні атрибути ПЗ використовуються для складання плану досягнення необхідних зовнішніх характеристик якості продукту. Для квантифікації внутрішніх характеристик якості застосовують внутрішні метрики, як інструмент перевірки відповідності проміжних продуктів внутрішнім вимогам до якості, які формулюються на процесах, що передують тестуванню.\\n\\nЗовнішні і внутрішні характеристики якості відображають властивості самого ПЗ (працюючого або не працюючого), а також погляд замовника і розробника на таке ПЗ. Безпосереднього кінцевого користувача ПЗ цікавить експлуатаційна якість ПЗ – сукупний ефект від досягнення характеристик якості, що виміряється строком результату, а не властивістю самого ПЗ. Це поняття ширше, ніж будь-яка окрема характеристика (наприклад, зручність використання або надійність).\");\n jTextPane1.setToolTipText(\"\");\n jScrollPane2.setViewportView(jTextPane1);\n\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Ознаки якості програмного забезпечення\");\n\n jTextPane38.setEditable(false);\n jTextPane38.setText(\"Функціональність (functionality). Здатність ПЗ в певних умовах вирішувати задачі, потрібні користувачам. Визначає, що саме робить ПЗ, які задачі воно вирішує.\");\n jTextPane38.setToolTipText(\"\");\n jScrollPane39.setViewportView(jTextPane38);\n\n jTextPane39.setEditable(false);\n jTextPane39.setText(\"Функціональна придатність (suitability). Здатність вирішувати потрібний набір задач.\\nТочність (accuracy). Здатність видавати потрібні результати.\\nЗдатність до взаємодії (interoperability). Здатність взаємодіяти з потрібним набором інших систем.\\nВідповідність стандартам і правилам (compliance). Відповідність ПЗ наявним індустріальним стандартам, нормативним і законодавчим актам, іншим регулюючим нормам.\\nЗахищеність (security). Здатність запобігати неавторизованому, тобто без вказівки особи, що намагається його здійснити, і недозволеному доступу до даних і програм.\");\n jTextPane39.setToolTipText(\"\");\n jScrollPane40.setViewportView(jTextPane39);\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane39, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE)\n .addComponent(jScrollPane40, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane40, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane2.addTab(\"Функціональність\", jPanel4);\n\n jTextPane2.setEditable(false);\n jTextPane2.setText(\"Надійність (reliability). Здатність ПЗ підтримувати визначену працездатність у заданих умовах.\");\n jScrollPane1.setViewportView(jTextPane2);\n\n jTextPane3.setEditable(false);\n jTextPane3.setText(\"Зрілість, завершеність (maturity). Величина, зворотна частоті відмов ПЗ. Звичайно виміряється середнім часом роботи без збоїв і величиною, зворотною імовірності виникнення відмови за даний період часу.\\nСтійкість до відмов (fault tolerance). Здатність підтримувати заданий рівень працездатності при відмовах і порушеннях правил взаємодії з середовищем.\\nЗдатність до відновлення (recoverability). Здатність відновлювати визначений рівень працездатності та цілісність даних після відмови, необхідні для цього час і ресурси.\\nВідповідність стандартам надійності (reliability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane3.setViewportView(jTextPane3);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 804, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE))\n );\n\n jTabbedPane2.addTab(\"Надійність\", jPanel5);\n\n jTextPane4.setEditable(false);\n jTextPane4.setText(\"Зручність використання (usability) або практичність. Здатність ПЗ бути зручним у навчанні та використанні, а також привабливим для користувачів.\");\n jScrollPane4.setViewportView(jTextPane4);\n\n jTextPane5.setEditable(false);\n jTextPane5.setText(\"Зрозумілість (understandability). Показник, зворотний до зусиль, які затрачаються користувачами на сприйняття основних понять ПЗ та усвідомлення їх застосовності для розв'язання своїх задач.\\nЗручність навчання (learnability). Показник, зворотний зусиллям, затрачуваним користувачами на навчання роботі з ПЗ.\\nЗручність роботи (operability). Показник, зворотний зусиллям, що вживається користувачами для розв'язання своїх задач за допомогою ПЗ.\\nПривабливість (attractiveness). Здатність ПЗ бути привабливим для користувачів. Цей атрибут доданий в 2001 році.\\nВідповідність стандартам зручності використання (usability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane5.setViewportView(jTextPane5);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)\n .addGap(10, 10, 10))\n );\n\n jTabbedPane2.addTab(\"Зручність використання (usability) або практичність\", jPanel6);\n\n jPanel7.setBackground(new java.awt.Color(229, 229, 229));\n\n jTextPane7.setEditable(false);\n jTextPane7.setText(\"Продуктивність (efficiency) або ефективність. Здатність ПЗ при заданих умовах забезпечувати необхідну працездатність стосовно виділюваного для цього ресурсам. Можна визначити її і як відношення одержуваних за допомогою ПЗ результатів до затрачуваних на це ресурсів усіх типів.\");\n jScrollPane7.setViewportView(jTextPane7);\n\n jTextPane6.setEditable(false);\n jTextPane6.setText(\"Часова ефективність (time behaviour). Здатність ПЗ видавати очікувані результати, а також забезпечувати передачу необхідного об'єму даних за відведений час.\\nЕфективність використання ресурсів (resource utilisation). Здатність вирішувати потрібні задачі з використанням визначених об'ємів ресурсів визначених видів. Маються на увазі такі ресурси, як оперативна й довгострокова пам'ять, мережні з'єднання, пристрої вводу та виводу та ін.\\nВідповідність стандартам продуктивності (efficiency compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane6.setViewportView(jTextPane6);\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jTabbedPane2.addTab(\"Продуктивність (efficiency) або ефективність\", jPanel7);\n\n jTextPane9.setEditable(false);\n jTextPane9.setText(\"Зручність супроводу (maintainability). Зручність проведення всіх видів діяльності, пов'язаних із супроводом програм.\");\n jScrollPane9.setViewportView(jTextPane9);\n\n jTextPane8.setEditable(false);\n jTextPane8.setText(\"Аналізованість (analyzability) або зручність проведення аналізу. Зучність проведення аналізу помилок, дефектів і недоліків, а також зручність аналізу необхідності змін і їх можливих наслідків.\\nЗручність внесення змін (changeability). Показник, зворотний трудозатратам на виконання необхідних змін.\\nСтабільність (stability). Показник, зворотний ризику виникнення несподіваних ефектів при внесенні необхідних змін.\\nЗручність перевірки (testability). Показник, зворотний трудозатратам на проведення тестування і інших видів перевірки того, що внесені зміни привели до потрібних результатів.\\nВідповідність стандартам зручності супроводу (maintainability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane8.setViewportView(jTextPane8);\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)\n .addGap(10, 10, 10))\n );\n\n jTabbedPane2.addTab(\"Зручність супроводу\", jPanel8);\n\n jTextPane11.setEditable(false);\n jTextPane11.setText(\"Переносимість (portability). Здатність ПЗ зберігати працездатність при перенесенні з одного оточення в інше, включаючи організаційні, апаратні й програмні аспекти оточення.\");\n jScrollPane11.setViewportView(jTextPane11);\n\n jTextPane10.setEditable(false);\n jTextPane10.setText(\"Адаптованість (adaptability). Здатність ПЗ пристосовуватися різним оточенням без проведення для цього дій, крім заздалегідь передбачених.\\nЗручність установки (installability). Здатність ПЗ бути встановленим або розгорнутим у визначеному оточенні.\\nЗдатність до співіснування (coexistence). Здатність ПЗ співіснувати з іншими програмами у загальному оточенні, ділячи з ними ресурси.\\nЗручність заміни (replaceability) іншого ПЗ даним. Можливість застосування даного ПЗ замість інших програмних систем для вирішення тих же задач у певному оточенні.\\nВідповідність стандартам переносимості (portability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane10.setViewportView(jTextPane10);\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jTabbedPane2.addTab(\"Переносимість\", jPanel9);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Теоритичні відомості\", jPanel1);\n\n jButton9.setText(\"Далі\");\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jButton9MouseReleased(evt);\n }\n });\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n jCheckBox1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox1StateChanged(evt);\n }\n });\n jCheckBox1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox1MouseClicked(evt);\n }\n });\n\n jCheckBox2.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox2StateChanged(evt);\n }\n });\n jCheckBox2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox2MouseClicked(evt);\n }\n });\n\n jCheckBox3.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox3StateChanged(evt);\n }\n });\n jCheckBox3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox3MouseClicked(evt);\n }\n });\n\n jCheckBox4.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox4StateChanged(evt);\n }\n });\n jCheckBox4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox4MouseClicked(evt);\n }\n });\n\n jTextField1.setEditable(false);\n jTextField1.setBackground(new java.awt.Color(238, 238, 238));\n jTextField1.setFont(new java.awt.Font(\"Lucida Grande\", 0, 18)); // NOI18N\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jTextField2.setEditable(false);\n jTextField2.setBackground(new java.awt.Color(238, 238, 238));\n\n jTextField3.setEditable(false);\n jTextField3.setBackground(new java.awt.Color(238, 238, 238));\n\n jTextField4.setEditable(false);\n jTextField4.setBackground(new java.awt.Color(238, 238, 238));\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField4ActionPerformed(evt);\n }\n });\n\n jTextField5.setEditable(false);\n jTextField5.setBackground(new java.awt.Color(238, 238, 238));\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField4)))\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox2)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox3)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox4)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton9)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jButton2.setText(\"Завершити тестування\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Почати тестування\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Функціональність\", \"Надійність\", \"Зручність використання\", \"Продуктивність\", \"Зручність супроводу\", \"Переносимість\" }));\n\n jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Результати\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP));\n\n jTextArea2.setEditable(false);\n jTextArea2.setBackground(new java.awt.Color(238, 238, 238));\n jTextArea2.setColumns(20);\n jTextArea2.setRows(5);\n jTextArea2.setBorder(null);\n jScrollPane13.setViewportView(jTextArea2);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane13)\n .addContainerGap())\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBox1, 0, 457, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2))))\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Тести\", jPanel2);\n\n jLabel3.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Розробник: Станіслав Баранюк\");\n\n jLabel4.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"УЖГОРОД 2018\");\n\n jLabel5.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"v 0.1\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 825, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(158, 158, 158)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addContainerGap(163, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Про програму\", jPanel3);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(16, Short.MAX_VALUE)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 858, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(15, 15, 15))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 469, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void initComponents() {\r\n\r\n minifierTabPane = new javax.swing.JTabbedPane();\r\n javaScriptTabPanel = new javax.swing.JPanel();\r\n newJSFile1 = new javax.swing.JCheckBox();\r\n jsObfuscate1 = new javax.swing.JCheckBox();\r\n preExtensionJS_Label1 = new javax.swing.JLabel();\r\n separatorJS_Label1 = new javax.swing.JLabel();\r\n preExtensionJS1 = new javax.swing.JTextField();\r\n separatorJS1 = new javax.swing.JTextField();\r\n autoMinifyJS1 = new javax.swing.JCheckBox();\r\n headerPaneJS1 = new javax.swing.JLayeredPane();\r\n headerLabelJS1 = new javax.swing.JLabel();\r\n headerScrollPaneJS1 = new javax.swing.JScrollPane();\r\n headerEditorPaneJS1 = new javax.swing.JEditorPane();\r\n cssTabPanel = new javax.swing.JPanel();\r\n newCSSFile1 = new javax.swing.JCheckBox();\r\n preExtensionCSS_Label1 = new javax.swing.JLabel();\r\n separatorCSS_Label1 = new javax.swing.JLabel();\r\n preExtensionCSS1 = new javax.swing.JTextField();\r\n separatorCSS1 = new javax.swing.JTextField();\r\n autoMinifyCSS1 = new javax.swing.JCheckBox();\r\n headerPaneCSS1 = new javax.swing.JLayeredPane();\r\n headerLabelCSS1 = new javax.swing.JLabel();\r\n headerScrollPaneCSS1 = new javax.swing.JScrollPane();\r\n headerEditorPaneCSS1 = new javax.swing.JEditorPane();\r\n htmlTabPanel = new javax.swing.JPanel();\r\n newHTMLFile = new javax.swing.JCheckBox();\r\n preExtensionHTML_Label = new javax.swing.JLabel();\r\n separatorHTML_Label = new javax.swing.JLabel();\r\n preExtensionHTML = new javax.swing.JTextField();\r\n separatorHTML = new javax.swing.JTextField();\r\n buildInternalJSMinify = new javax.swing.JCheckBox();\r\n buildInternalCSSMinify = new javax.swing.JCheckBox();\r\n autoMinifyHTML = new javax.swing.JCheckBox();\r\n headerPaneHTML = new javax.swing.JLayeredPane();\r\n headerLabelHTML = new javax.swing.JLabel();\r\n headerScrollPaneHTML = new javax.swing.JScrollPane();\r\n headerEditorPaneHTML = new javax.swing.JEditorPane();\r\n xmlTabPanel = new javax.swing.JPanel();\r\n newXMLFile = new javax.swing.JCheckBox();\r\n preExtensionXML_Label = new javax.swing.JLabel();\r\n separatorXML_Label = new javax.swing.JLabel();\r\n preExtensionXML = new javax.swing.JTextField();\r\n separatorXML = new javax.swing.JTextField();\r\n autoMinifyXML = new javax.swing.JCheckBox();\r\n headerPaneXML = new javax.swing.JLayeredPane();\r\n headerLabelXML = new javax.swing.JLabel();\r\n headerScrollPaneXML = new javax.swing.JScrollPane();\r\n headerEditorPaneXML = new javax.swing.JEditorPane();\r\n jsonTabPanel = new javax.swing.JPanel();\r\n newJSONFile = new javax.swing.JCheckBox();\r\n preExtensionJSON_Label = new javax.swing.JLabel();\r\n separatorJSON_Label = new javax.swing.JLabel();\r\n preExtensionJSON = new javax.swing.JTextField();\r\n separatorJSON = new javax.swing.JTextField();\r\n autoMinifyJSON = new javax.swing.JCheckBox();\r\n headerPaneJSON = new javax.swing.JLayeredPane();\r\n headerLabelJSON = new javax.swing.JLabel();\r\n headerScrollPaneJSON = new javax.swing.JScrollPane();\r\n headerEditorPaneJSON = new javax.swing.JEditorPane();\r\n projectBuildTabPanel = new javax.swing.JPanel();\r\n jLayeredPane6 = new javax.swing.JLayeredPane();\r\n separatBuild = new javax.swing.JCheckBox();\r\n jLabel7 = new javax.swing.JLabel();\r\n buildJSMinify = new javax.swing.JCheckBox();\r\n buildCSSMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionJS = new javax.swing.JCheckBox();\r\n skipPreExtensionCSS = new javax.swing.JCheckBox();\r\n jLabel6 = new javax.swing.JLabel();\r\n buildHTMLMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionHTML = new javax.swing.JCheckBox();\r\n buildXMLMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionXML = new javax.swing.JCheckBox();\r\n buildJSONMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionJSON = new javax.swing.JCheckBox();\r\n jLayeredPane8 = new javax.swing.JLayeredPane();\r\n addLogToFile = new javax.swing.JCheckBox();\r\n enableOutputLogAlert = new javax.swing.JCheckBox();\r\n jLayeredPane10 = new javax.swing.JLayeredPane();\r\n enableShortKeyAction = new javax.swing.JCheckBox();\r\n enableShortKeyActionConfirmBox = new javax.swing.JCheckBox();\r\n\r\n setAlignmentX(0.0F);\r\n setAlignmentY(0.0F);\r\n setPreferredSize(new java.awt.Dimension(710, 430));\r\n\r\n minifierTabPane.setPreferredSize(new java.awt.Dimension(30, 30));\r\n\r\n newJSFile1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newJSFile1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSFile1.text\")); // NOI18N\r\n newJSFile1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSFile1.toolTipText\")); // NOI18N\r\n newJSFile1.setOpaque(false);\r\n\r\n jsObfuscate1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(jsObfuscate1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jsObfuscate1.text\")); // NOI18N\r\n jsObfuscate1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionJS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJS_Label1.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorJS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJS_Label1.text\")); // NOI18N\r\n\r\n preExtensionJS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJS1.text\")); // NOI18N\r\n\r\n separatorJS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJS1.text\")); // NOI18N\r\n separatorJS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJS1.toolTipText\")); // NOI18N\r\n\r\n autoMinifyJS1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyJS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyJS1.text\")); // NOI18N\r\n autoMinifyJS1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelJS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelJS1.text\")); // NOI18N\r\n\r\n headerEditorPaneJS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneJS1.toolTipText\")); // NOI18N\r\n headerScrollPaneJS1.setViewportView(headerEditorPaneJS1);\r\n\r\n headerPaneJS1.setLayer(headerLabelJS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneJS1.setLayer(headerScrollPaneJS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneJS1Layout = new javax.swing.GroupLayout(headerPaneJS1);\r\n headerPaneJS1.setLayout(headerPaneJS1Layout);\r\n headerPaneJS1Layout.setHorizontalGroup(\r\n headerPaneJS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelJS1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n headerPaneJS1Layout.setVerticalGroup(\r\n headerPaneJS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelJS1)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneJS1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout javaScriptTabPanelLayout = new javax.swing.GroupLayout(javaScriptTabPanel);\r\n javaScriptTabPanel.setLayout(javaScriptTabPanelLayout);\r\n javaScriptTabPanelLayout.setHorizontalGroup(\r\n javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(autoMinifyJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addComponent(newJSFile1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(preExtensionJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(preExtensionJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addComponent(jsObfuscate1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(44, 44, 44)\r\n .addComponent(separatorJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, 0)\r\n .addComponent(separatorJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(headerPaneJS1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(323, Short.MAX_VALUE))\r\n );\r\n javaScriptTabPanelLayout.setVerticalGroup(\r\n javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyJS1)\r\n .addGap(18, 18, 18)\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addComponent(newJSFile1)\r\n .addGap(0, 0, 0)\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jsObfuscate1)\r\n .addComponent(separatorJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(preExtensionJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGap(45, 45, 45)\r\n .addComponent(headerPaneJS1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(93, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.javaScriptTabPanel.TabConstraints.tabTitle\"), javaScriptTabPanel); // NOI18N\r\n\r\n newCSSFile1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newCSSFile1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newCSSFile1.text\")); // NOI18N\r\n newCSSFile1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newCSSFile1.toolTipText\")); // NOI18N\r\n newCSSFile1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionCSS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionCSS_Label1.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorCSS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorCSS_Label1.text\")); // NOI18N\r\n\r\n preExtensionCSS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionCSS1.text\")); // NOI18N\r\n\r\n separatorCSS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorCSS1.text\")); // NOI18N\r\n separatorCSS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorCSS1.toolTipText\")); // NOI18N\r\n\r\n autoMinifyCSS1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyCSS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyCSS1.text\")); // NOI18N\r\n autoMinifyCSS1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelCSS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelCSS1.text\")); // NOI18N\r\n\r\n headerEditorPaneCSS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneCSS1.toolTipText\")); // NOI18N\r\n headerScrollPaneCSS1.setViewportView(headerEditorPaneCSS1);\r\n\r\n headerPaneCSS1.setLayer(headerLabelCSS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneCSS1.setLayer(headerScrollPaneCSS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneCSS1Layout = new javax.swing.GroupLayout(headerPaneCSS1);\r\n headerPaneCSS1.setLayout(headerPaneCSS1Layout);\r\n headerPaneCSS1Layout.setHorizontalGroup(\r\n headerPaneCSS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneCSS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelCSS1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneCSS1))\r\n );\r\n headerPaneCSS1Layout.setVerticalGroup(\r\n headerPaneCSS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneCSS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelCSS1)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneCSS1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout cssTabPanelLayout = new javax.swing.GroupLayout(cssTabPanel);\r\n cssTabPanel.setLayout(cssTabPanelLayout);\r\n cssTabPanelLayout.setHorizontalGroup(\r\n cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addComponent(newCSSFile1)\r\n .addGap(18, 18, 18)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addComponent(preExtensionCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(preExtensionCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addComponent(separatorCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(separatorCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addComponent(headerPaneCSS1))\r\n .addComponent(autoMinifyCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n );\r\n cssTabPanelLayout.setVerticalGroup(\r\n cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyCSS1)\r\n .addGap(18, 18, 18)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(newCSSFile1)\r\n .addComponent(preExtensionCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(separatorCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(26, 26, 26)\r\n .addComponent(headerPaneCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.cssTabPanel.TabConstraints.tabTitle\"), cssTabPanel); // NOI18N\r\n\r\n newHTMLFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newHTMLFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newHTMLFile.text\")); // NOI18N\r\n newHTMLFile.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newHTMLFile.toolTipText\")); // NOI18N\r\n newHTMLFile.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionHTML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionHTML_Label.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorHTML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorHTML_Label.text\")); // NOI18N\r\n\r\n preExtensionHTML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionHTML.text\")); // NOI18N\r\n\r\n separatorHTML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorHTML.text\")); // NOI18N\r\n separatorHTML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorHTML.toolTipText\")); // NOI18N\r\n\r\n buildInternalJSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildInternalJSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildInternalJSMinify.text\")); // NOI18N\r\n buildInternalJSMinify.setOpaque(false);\r\n\r\n buildInternalCSSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildInternalCSSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildInternalCSSMinify.text\")); // NOI18N\r\n buildInternalCSSMinify.setOpaque(false);\r\n\r\n autoMinifyHTML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyHTML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyHTML.text\")); // NOI18N\r\n autoMinifyHTML.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelHTML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelHTML.text\")); // NOI18N\r\n\r\n headerEditorPaneHTML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneHTML.toolTipText\")); // NOI18N\r\n headerScrollPaneHTML.setViewportView(headerEditorPaneHTML);\r\n\r\n headerPaneHTML.setLayer(headerLabelHTML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneHTML.setLayer(headerScrollPaneHTML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneHTMLLayout = new javax.swing.GroupLayout(headerPaneHTML);\r\n headerPaneHTML.setLayout(headerPaneHTMLLayout);\r\n headerPaneHTMLLayout.setHorizontalGroup(\r\n headerPaneHTMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneHTMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelHTML)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 366, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n headerPaneHTMLLayout.setVerticalGroup(\r\n headerPaneHTMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneHTMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelHTML)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneHTML, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout htmlTabPanelLayout = new javax.swing.GroupLayout(htmlTabPanel);\r\n htmlTabPanel.setLayout(htmlTabPanelLayout);\r\n htmlTabPanelLayout.setHorizontalGroup(\r\n htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(autoMinifyHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(newHTMLFile, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(buildInternalJSMinify, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(preExtensionHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addGap(10, 10, 10)\r\n .addComponent(separatorHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(separatorHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))))\r\n .addComponent(buildInternalCSSMinify, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(headerPaneHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\r\n .addContainerGap(284, Short.MAX_VALUE))\r\n );\r\n htmlTabPanelLayout.setVerticalGroup(\r\n htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyHTML)\r\n .addGap(18, 18, 18)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(newHTMLFile)\r\n .addGap(0, 0, 0)\r\n .addComponent(buildInternalJSMinify)\r\n .addGap(0, 0, 0)\r\n .addComponent(buildInternalCSSMinify))\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(preExtensionHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(4, 4, 4)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(separatorHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(18, 18, 18)\r\n .addComponent(headerPaneHTML, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(96, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.htmlTabPanel.TabConstraints.tabTitle\"), htmlTabPanel); // NOI18N\r\n\r\n newXMLFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newXMLFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newXMLFile.text\")); // NOI18N\r\n newXMLFile.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newXMLFile.toolTipText\")); // NOI18N\r\n newXMLFile.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionXML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionXML_Label.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorXML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorXML_Label.text\")); // NOI18N\r\n\r\n preExtensionXML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionXML.text\")); // NOI18N\r\n\r\n separatorXML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorXML.text\")); // NOI18N\r\n separatorXML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorXML.toolTipText\")); // NOI18N\r\n\r\n autoMinifyXML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyXML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyXML.text\")); // NOI18N\r\n autoMinifyXML.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelXML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelXML.text\")); // NOI18N\r\n\r\n headerEditorPaneXML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneXML.toolTipText\")); // NOI18N\r\n headerScrollPaneXML.setViewportView(headerEditorPaneXML);\r\n\r\n headerPaneXML.setLayer(headerLabelXML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneXML.setLayer(headerScrollPaneXML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneXMLLayout = new javax.swing.GroupLayout(headerPaneXML);\r\n headerPaneXML.setLayout(headerPaneXMLLayout);\r\n headerPaneXMLLayout.setHorizontalGroup(\r\n headerPaneXMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneXMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelXML)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneXML))\r\n );\r\n headerPaneXMLLayout.setVerticalGroup(\r\n headerPaneXMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneXMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelXML)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneXML, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout xmlTabPanelLayout = new javax.swing.GroupLayout(xmlTabPanel);\r\n xmlTabPanel.setLayout(xmlTabPanelLayout);\r\n xmlTabPanelLayout.setHorizontalGroup(\r\n xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(autoMinifyXML, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(newXMLFile)\r\n .addGap(56, 56, 56)\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(preExtensionXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, 0)\r\n .addComponent(preExtensionXML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(separatorXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(10, 10, 10)\r\n .addComponent(separatorXML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addComponent(headerPaneXML))\r\n .addGap(292, 292, 292))\r\n );\r\n xmlTabPanelLayout.setVerticalGroup(\r\n xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyXML)\r\n .addGap(18, 18, 18)\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(newXMLFile)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(preExtensionXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionXML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(6, 6, 6)\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(separatorXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorXML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(49, 49, 49)\r\n .addComponent(headerPaneXML, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(91, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.xmlTabPanel.TabConstraints.tabTitle\"), xmlTabPanel); // NOI18N\r\n\r\n newJSONFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newJSONFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSONFile.text\")); // NOI18N\r\n newJSONFile.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSONFile.toolTipText\")); // NOI18N\r\n newJSONFile.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionJSON_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJSON_Label.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorJSON_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJSON_Label.text\")); // NOI18N\r\n\r\n preExtensionJSON.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJSON.text\")); // NOI18N\r\n\r\n separatorJSON.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJSON.text\")); // NOI18N\r\n separatorJSON.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJSON.toolTipText\")); // NOI18N\r\n\r\n autoMinifyJSON.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyJSON, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyJSON.text\")); // NOI18N\r\n autoMinifyJSON.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelJSON, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelJSON.text\")); // NOI18N\r\n\r\n headerEditorPaneJSON.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneJSON.toolTipText\")); // NOI18N\r\n headerScrollPaneJSON.setViewportView(headerEditorPaneJSON);\r\n\r\n headerPaneJSON.setLayer(headerLabelJSON, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneJSON.setLayer(headerScrollPaneJSON, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneJSONLayout = new javax.swing.GroupLayout(headerPaneJSON);\r\n headerPaneJSON.setLayout(headerPaneJSONLayout);\r\n headerPaneJSONLayout.setHorizontalGroup(\r\n headerPaneJSONLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJSONLayout.createSequentialGroup()\r\n .addComponent(headerLabelJSON)\r\n .addGap(18, 18, 18)\r\n .addComponent(headerScrollPaneJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 351, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n headerPaneJSONLayout.setVerticalGroup(\r\n headerPaneJSONLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJSONLayout.createSequentialGroup()\r\n .addComponent(headerLabelJSON)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneJSON, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout jsonTabPanelLayout = new javax.swing.GroupLayout(jsonTabPanel);\r\n jsonTabPanel.setLayout(jsonTabPanelLayout);\r\n jsonTabPanelLayout.setHorizontalGroup(\r\n jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(autoMinifyJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addComponent(newJSONFile, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addComponent(preExtensionJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(preExtensionJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addComponent(separatorJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(separatorJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addComponent(headerPaneJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\r\n .addGap(292, 292, 292))\r\n );\r\n jsonTabPanelLayout.setVerticalGroup(\r\n jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyJSON)\r\n .addGap(18, 18, 18)\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(newJSONFile)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(preExtensionJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(separatorJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(18, 18, 18)\r\n .addComponent(headerPaneJSON, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(122, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jsonTabPanel.TabConstraints.tabTitle\"), jsonTabPanel); // NOI18N\r\n\r\n separatBuild.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(separatBuild, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatBuild.text\")); // NOI18N\r\n separatBuild.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatBuild.toolTipText\")); // NOI18N\r\n separatBuild.setActionCommand(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatBuild.actionCommand\")); // NOI18N\r\n separatBuild.setOpaque(false);\r\n jLayeredPane6.add(separatBuild);\r\n separatBuild.setBounds(50, 40, 190, 24);\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\r\n jLabel7.setForeground(new java.awt.Color(51, 51, 51));\r\n org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLabel7.text\")); // NOI18N\r\n jLayeredPane6.add(jLabel7);\r\n jLabel7.setBounds(50, 80, 292, 13);\r\n\r\n buildJSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildJSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildJSMinify.text\")); // NOI18N\r\n buildJSMinify.setOpaque(false);\r\n jLayeredPane6.add(buildJSMinify);\r\n buildJSMinify.setBounds(50, 100, 110, 24);\r\n\r\n buildCSSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildCSSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildCSSMinify.text\")); // NOI18N\r\n buildCSSMinify.setOpaque(false);\r\n jLayeredPane6.add(buildCSSMinify);\r\n buildCSSMinify.setBounds(50, 130, 140, 24);\r\n\r\n skipPreExtensionJS.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionJS, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJS.text\")); // NOI18N\r\n skipPreExtensionJS.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJS.toolTipText\")); // NOI18N\r\n skipPreExtensionJS.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionJS);\r\n skipPreExtensionJS.setBounds(250, 100, 300, 24);\r\n\r\n skipPreExtensionCSS.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionCSS, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionCSS.text\")); // NOI18N\r\n skipPreExtensionCSS.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionCSS.toolTipText\")); // NOI18N\r\n skipPreExtensionCSS.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionCSS);\r\n skipPreExtensionCSS.setBounds(250, 130, 300, 24);\r\n\r\n jLabel6.setForeground(new java.awt.Color(102, 102, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLabel6.text\")); // NOI18N\r\n jLayeredPane6.add(jLabel6);\r\n jLabel6.setBounds(230, 10, 260, 16);\r\n\r\n buildHTMLMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildHTMLMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildHTMLMinify.text\")); // NOI18N\r\n buildHTMLMinify.setOpaque(false);\r\n jLayeredPane6.add(buildHTMLMinify);\r\n buildHTMLMinify.setBounds(50, 160, 170, 24);\r\n\r\n skipPreExtensionHTML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionHTML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionHTML.text\")); // NOI18N\r\n skipPreExtensionHTML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionHTML.toolTipText\")); // NOI18N\r\n skipPreExtensionHTML.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionHTML);\r\n skipPreExtensionHTML.setBounds(250, 160, 310, 24);\r\n\r\n buildXMLMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildXMLMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildXMLMinify.text\")); // NOI18N\r\n buildXMLMinify.setOpaque(false);\r\n jLayeredPane6.add(buildXMLMinify);\r\n buildXMLMinify.setBounds(50, 190, 89, 24);\r\n\r\n skipPreExtensionXML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionXML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionXML.text\")); // NOI18N\r\n skipPreExtensionXML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionXML.toolTipText\")); // NOI18N\r\n skipPreExtensionXML.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionXML);\r\n skipPreExtensionXML.setBounds(250, 190, 320, 24);\r\n\r\n buildJSONMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildJSONMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildJSONMinify.text\")); // NOI18N\r\n buildJSONMinify.setOpaque(false);\r\n jLayeredPane6.add(buildJSONMinify);\r\n buildJSONMinify.setBounds(50, 220, 170, 24);\r\n\r\n skipPreExtensionJSON.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionJSON, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJSON.text\")); // NOI18N\r\n skipPreExtensionJSON.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJSON.toolTipText\")); // NOI18N\r\n skipPreExtensionJSON.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionJSON);\r\n skipPreExtensionJSON.setBounds(250, 220, 310, 24);\r\n\r\n jLayeredPane8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLayeredPane8.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 12), new java.awt.Color(102, 102, 102))); // NOI18N\r\n\r\n addLogToFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(addLogToFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.addLogToFile.text\")); // NOI18N\r\n addLogToFile.setOpaque(false);\r\n jLayeredPane8.add(addLogToFile);\r\n addLogToFile.setBounds(10, 20, 280, 24);\r\n\r\n enableOutputLogAlert.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(enableOutputLogAlert, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableOutputLogAlert.text\")); // NOI18N\r\n enableOutputLogAlert.setOpaque(false);\r\n jLayeredPane8.add(enableOutputLogAlert);\r\n enableOutputLogAlert.setBounds(10, 40, 390, 24);\r\n\r\n jLayeredPane10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLayeredPane10.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 12), new java.awt.Color(102, 102, 102))); // NOI18N\r\n\r\n enableShortKeyAction.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(enableShortKeyAction, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableShortKeyAction.text\")); // NOI18N\r\n enableShortKeyAction.setOpaque(false);\r\n jLayeredPane10.add(enableShortKeyAction);\r\n enableShortKeyAction.setBounds(10, 20, 280, 20);\r\n\r\n enableShortKeyActionConfirmBox.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(enableShortKeyActionConfirmBox, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableShortKeyActionConfirmBox.text\")); // NOI18N\r\n enableShortKeyActionConfirmBox.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableShortKeyActionConfirmBox.toolTipText\")); // NOI18N\r\n enableShortKeyActionConfirmBox.setOpaque(false);\r\n jLayeredPane10.add(enableShortKeyActionConfirmBox);\r\n enableShortKeyActionConfirmBox.setBounds(10, 40, 337, 20);\r\n\r\n javax.swing.GroupLayout projectBuildTabPanelLayout = new javax.swing.GroupLayout(projectBuildTabPanel);\r\n projectBuildTabPanel.setLayout(projectBuildTabPanelLayout);\r\n projectBuildTabPanelLayout.setHorizontalGroup(\r\n projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 708, Short.MAX_VALUE)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(projectBuildTabPanelLayout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLayeredPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 580, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(projectBuildTabPanelLayout.createSequentialGroup()\r\n .addGap(50, 50, 50)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLayeredPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 410, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLayeredPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 410, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n );\r\n projectBuildTabPanelLayout.setVerticalGroup(\r\n projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 410, Short.MAX_VALUE)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(projectBuildTabPanelLayout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(jLayeredPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(10, 10, 10)\r\n .addComponent(jLayeredPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(10, 10, 10)\r\n .addComponent(jLayeredPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.projectBuildTabPanel.TabConstraints.tabTitle\"), projectBuildTabPanel); // NOI18N\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(minifierTabPane, javax.swing.GroupLayout.PREFERRED_SIZE, 710, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(minifierTabPane, javax.swing.GroupLayout.PREFERRED_SIZE, 430, Short.MAX_VALUE)\r\n );\r\n }", "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}" ]
[ "0.6804341", "0.66679835", "0.6660014", "0.66385925", "0.66281027", "0.6602333", "0.65618974", "0.65129924", "0.6505838", "0.6491973", "0.6454839", "0.64548105", "0.645108", "0.6422205", "0.63862294", "0.6374535", "0.63744026", "0.63522476", "0.6343288", "0.62877125", "0.62582695", "0.6251184", "0.6238476", "0.62334305", "0.62191683", "0.6216476", "0.61747694", "0.6173487", "0.61519617", "0.61480296", "0.61175907", "0.61122435", "0.60850024", "0.60786396", "0.6039634", "0.6027866", "0.60250634", "0.6020456", "0.6018089", "0.601412", "0.6013758", "0.6013725", "0.5980523", "0.59758073", "0.5975276", "0.5973115", "0.5969713", "0.59446305", "0.5933569", "0.59243196", "0.5916664", "0.5916136", "0.591112", "0.5904898", "0.58649004", "0.5853795", "0.58433264", "0.5840397", "0.58392584", "0.58381134", "0.5827189", "0.58223075", "0.5820999", "0.58145195", "0.58108467", "0.5809182", "0.580342", "0.5800444", "0.5783578", "0.57780784", "0.5777665", "0.5771677", "0.5767174", "0.57617706", "0.5758221", "0.5752626", "0.5744015", "0.5742653", "0.57345724", "0.5729806", "0.5727816", "0.5727768", "0.57242334", "0.57224774", "0.57179123", "0.57112145", "0.57090855", "0.57003677", "0.56993514", "0.56988037", "0.5697732", "0.5683723", "0.56772643", "0.5676442", "0.5673154", "0.5666714", "0.5658339", "0.56482697", "0.5647377", "0.5640869" ]
0.74274695
0
Initialise the tabs and tables with the content from the Keystore and Truststore.
private JTable initTable(String tableType, JPanel tab) { JTable table = null; if (tableType.equals(PASSWORDS)) { // Passwords table // The Passwords table's data model PasswordsTableModel passwordsTableModel = new PasswordsTableModel(credManager); // The table itself table = new JTable(passwordsTableModel); /* * Set the password and alias columns of the Passwords table to be * invisible by removing them from the column model (they will still * present in the table model) * * Remove the last column first */ TableColumn aliasColumn = table.getColumnModel().getColumn(5); table.getColumnModel().removeColumn(aliasColumn); TableColumn passwordColumn = table.getColumnModel().getColumn(4); table.getColumnModel().removeColumn(passwordColumn); TableColumn lastModifiedDateColumn = table.getColumnModel().getColumn(3); table.getColumnModel().removeColumn(lastModifiedDateColumn); // Buttons JButton newPasswordButton = new JButton("New"); newPasswordButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { newPassword(); } }); final JButton viewPasswordButton = new JButton("Details"); viewPasswordButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { viewPassword(); } }); viewPasswordButton.setEnabled(false); final JButton editPasswordButton = new JButton("Edit"); editPasswordButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { editPassword(); } }); editPasswordButton.setEnabled(false); final JButton deletePasswordButton = new JButton("Delete"); deletePasswordButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { deletePassword(); } }); deletePasswordButton.setEnabled(false); /* * Selection listener for passwords table to enable/disable action * buttons accordingly */ class PasswordsTableSelectionListner implements ListSelectionListener { @Override public void valueChanged(ListSelectionEvent e) { if (e.getSource() != passwordsTable.getSelectionModel()) return; if (passwordsTable.getSelectedRow() == -1) { // nothing is selected viewPasswordButton.setEnabled(false); editPasswordButton.setEnabled(false); deletePasswordButton.setEnabled(false); } else { if (!viewPasswordButton.isEnabled()) viewPasswordButton.setEnabled(true); if (!editPasswordButton.isEnabled()) editPasswordButton.setEnabled(true); if (!deletePasswordButton.isEnabled()) deletePasswordButton.setEnabled(true); } } } table.getSelectionModel().addListSelectionListener(new PasswordsTableSelectionListner()); // Panel to hold the buttons JPanel bp = new JPanel(); bp.add(viewPasswordButton); bp.add(editPasswordButton); bp.add(newPasswordButton); bp.add(deletePasswordButton); // Add button panel to the tab tab.add(bp, PAGE_END); } else if (tableType.equals(KEYPAIRS)) { // Key Pairs tab // The Key Pairs table's data model KeyPairsTableModel keyPairsTableModel = new KeyPairsTableModel(credManager); // The table itself table = new JTable(keyPairsTableModel); /* * Set the alias and service URIs columns of the KayPairs table to * be invisible by removing them from the column model (they will * still present in the table model) * * Remove the last column first */ TableColumn aliasColumn = table.getColumnModel().getColumn(6); table.getColumnModel().removeColumn(aliasColumn); TableColumn serviceURIsColumn = table.getColumnModel().getColumn(5); table.getColumnModel().removeColumn(serviceURIsColumn); TableColumn lastModifiedDateColumn = table.getColumnModel().getColumn(4); table.getColumnModel().removeColumn(lastModifiedDateColumn); // Buttons final JButton viewKeyPairButton = new JButton("Details"); viewKeyPairButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { viewCertificate(); } }); viewKeyPairButton.setEnabled(false); JButton importKeyPairButton = new JButton("Import"); importKeyPairButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { importKeyPair(); } }); final JButton exportKeyPairButton = new JButton("Export"); exportKeyPairButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { exportKeyPair(); } }); exportKeyPairButton.setEnabled(false); final JButton deleteKeyPairButton = new JButton("Delete"); deleteKeyPairButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { deleteKeyPair(); } }); deleteKeyPairButton.setEnabled(false); /* * Selection listener for key pairs table to enable/disable action * buttons accordingly */ class KeyPairsTableSelectionListner implements ListSelectionListener { @Override public void valueChanged(ListSelectionEvent e) { if (e.getSource() != keyPairsTable.getSelectionModel()) return; if (keyPairsTable.getSelectedRow() == -1) { // nothing is selected viewKeyPairButton.setEnabled(false); exportKeyPairButton.setEnabled(false); deleteKeyPairButton.setEnabled(false); } else { if (!viewKeyPairButton.isEnabled()) viewKeyPairButton.setEnabled(true); if (!exportKeyPairButton.isEnabled()) exportKeyPairButton.setEnabled(true); if (!deleteKeyPairButton.isEnabled()) deleteKeyPairButton.setEnabled(true); } } } table.getSelectionModel().addListSelectionListener( new KeyPairsTableSelectionListner()); // Panel to hold the buttons JPanel bp = new JPanel(); bp.add(viewKeyPairButton); bp.add(importKeyPairButton); bp.add(exportKeyPairButton); bp.add(deleteKeyPairButton); // Add button panel to the tab tab.add(bp, PAGE_END); } else if (tableType.equals(TRUSTED_CERTIFICATES)) { // Certificates tab // The Trusted Certificate table's data model TrustedCertsTableModel trustedCertificatesTableModel = new TrustedCertsTableModel(credManager); // The table itself table = new JTable(trustedCertificatesTableModel); /* * Set the alias columns of the Trusted Certs table to be invisible * by removing them from the column model (they will still be * present in the table model) * * Remove the last column first */ TableColumn aliasColumn = table.getColumnModel().getColumn(5); table.getColumnModel().removeColumn(aliasColumn); TableColumn lastModifiedDateColumn = table.getColumnModel().getColumn(4); table.getColumnModel().removeColumn(lastModifiedDateColumn); // Buttons final JButton viewTrustedCertificateButton = new JButton("Details"); viewTrustedCertificateButton .addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { viewCertificate(); } }); viewTrustedCertificateButton.setEnabled(false); JButton importTrustedCertificateButton = new JButton("Import"); importTrustedCertificateButton .addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { importTrustedCertificate(); } }); final JButton exportTrustedCertificateButton = new JButton("Export"); exportTrustedCertificateButton .addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { exportTrustedCertificate(); } }); exportTrustedCertificateButton.setEnabled(false); final JButton deleteTrustedCertificateButton = new JButton("Delete"); deleteTrustedCertificateButton .addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { deleteTrustedCertificate(); } }); deleteTrustedCertificateButton.setEnabled(false); // Selection listener for trusted certs table to enable/disable action buttons accordingly class TrustedCertsTableSelectionListener implements ListSelectionListener { @Override public void valueChanged(ListSelectionEvent e) { if (e.getSource() != trustedCertsTable.getSelectionModel()) return; if (trustedCertsTable.getSelectedRow() == -1) { // nothing is selected viewTrustedCertificateButton.setEnabled(false); exportTrustedCertificateButton.setEnabled(false); deleteTrustedCertificateButton.setEnabled(false); } else { if (!viewTrustedCertificateButton.isEnabled()) viewTrustedCertificateButton.setEnabled(true); if (!exportTrustedCertificateButton.isEnabled()) exportTrustedCertificateButton.setEnabled(true); if (!deleteTrustedCertificateButton.isEnabled()) deleteTrustedCertificateButton.setEnabled(true); } } } table.getSelectionModel().addListSelectionListener( new TrustedCertsTableSelectionListener()); // Panel to hold the buttons JPanel bp = new JPanel(); bp.add(viewTrustedCertificateButton); bp.add(importTrustedCertificateButton); bp.add(exportTrustedCertificateButton); bp.add(deleteTrustedCertificateButton); // Add button panel to the tab tab.add(bp, PAGE_END); } else { throw new RuntimeException("Unknown table type " + tableType); } table.setShowGrid(false); table.setRowMargin(0); table.getColumnModel().setColumnMargin(0); table.getTableHeader().setReorderingAllowed(false); table.setAutoResizeMode(AUTO_RESIZE_ALL_COLUMNS); // Top accommodates entry icons with 2 pixels spare space (images are // 16x16 pixels) table.setRowHeight(18); // Add custom renderrers for the table headers and cells for (int iCnt = 0; iCnt < table.getColumnCount(); iCnt++) { TableColumn column = table.getColumnModel().getColumn(iCnt); column.setHeaderRenderer(new TableHeaderRenderer()); column.setCellRenderer(new TableCellRenderer()); } // Make the first column small and not resizable (it holds icons to // represent different entry types) TableColumn typeCol = table.getColumnModel().getColumn(0); typeCol.setResizable(false); typeCol.setMinWidth(20); typeCol.setMaxWidth(20); typeCol.setPreferredWidth(20); // Set the size for the second column // (i.e. Service URI column of Passwords table, and // Certificate Name column of the Kay Pairs and Trusted Certificates tables) // We do not care about the size of other columns. TableColumn secondCol = table.getColumnModel().getColumn(1); secondCol.setMinWidth(20); secondCol.setMaxWidth(10000); secondCol.setPreferredWidth(300); // Put the table into a scroll pane JScrollPane jspTableScrollPane = new JScrollPane(table, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); jspTableScrollPane.getViewport().setBackground(table.getBackground()); // Put the scroll pane on the tab panel tab.add(jspTableScrollPane, CENTER); jspTableScrollPane.setBorder(new EmptyBorder(3, 3, 3, 3)); /* * Add mouse listeners to show an entry's details if it is * double-clicked */ table.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { tableDoubleClick(evt); } }); // Add the tab to the tabbed pane keyStoreTabbedPane.addTab(tableType, tab); return table; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n\t\tkeyStoreTabbedPane = new JTabbedPane();\n\t\t/*\n\t\t * Initialise the tab containing the table for username/password entries\n\t\t * from the Keystore\n\t\t */\n\t\tpasswordsTable = initTable(PASSWORDS, passwordsTab);\n\t\t/*\n\t\t * Initialise the tab containing the table for key pair entries from the\n\t\t * Keystore\n\t\t */\n\t\tkeyPairsTable = initTable(KEYPAIRS, keyPairsTab);\n\t\t/*\n\t\t * Initialise the tab containing the table for proxy entries from the\n\t\t * Keystore\n\t\t */\n\t\t//proxiesTable = initTable(PROXIES, proxiesTab);\n\t\t/*\n\t\t * Initialise the tab containing the table for trusted certificate\n\t\t * entries from the Truststore\n\t\t */\n\t\ttrustedCertsTable = initTable(TRUSTED_CERTIFICATES,\n\t\t\t\ttrustedCertificatesTab);\n\t\t/*\n\t\t * Set the size of the tabbed pane to the preferred size - the size of\n\t\t * the main application frame depends on it.\n\t\t */\n\t\tkeyStoreTabbedPane.setPreferredSize(new Dimension(DEFAULT_FRAME_WIDTH,\n\t\t\t\tDEFAULT_FRAME_HEIGHT));\n\n\t\tJPanel globalButtons = new JPanel(new FlowLayout(FlowLayout.RIGHT));\n\t\tJButton resetJavaAuthCache = new JButton(\"Clear HTTP authentication\");\n\t\tresetJavaAuthCache.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclearAuthenticationCache();\n\t\t\t}\n\t\t});\n\t\tglobalButtons.add(resetJavaAuthCache);\n\n\t\t// Button for changing Credential Manager's master password\n\t\tJButton changeMasterPasswordButton = new JButton(\n\t\t\t\t\"Change master password\");\n\t\tchangeMasterPasswordButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tchangeMasterPassword();\n\t\t\t}\n\t\t});\n\t\tglobalButtons.add(changeMasterPasswordButton);\n\n\t\t// Add change master password to the main application frame\n\t\tgetContentPane().add(globalButtons, NORTH);\n\t\t// Add tabbed pane to the main application frame\n\t\tgetContentPane().add(keyStoreTabbedPane, CENTER);\n\n\t\t// Handle application close\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent evt) {\n\t\t\t\tcloseFrame();\n\t\t\t}\n\t\t});\n\t\tsetDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\n\t\tpack();\n\n\t\t// Centre the frame in the centre of the screen\n\t\tsetLocationRelativeTo(null);\n\n\t\t// Set the frame's icon\n\t\tsetIconImage(credManagerIconImage);\n\n\t\t// Set the frame's title\n\t\tsetTitle(\"Credential Manager\");\n\n\t\t// setModal(true);\n\t\t// setVisible(true);\n\t}", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "public void start(){\n dbConnector = new DBConnector();\n tables = new HashSet<String>();\n tables.add(ALGORITHMS_TABLE);\n tables.add(DATA_STRUCTURES_TABLE);\n tables.add(SOFTWARE_DESIGN_TABLE);\n tables.add(USER_TABLE);\n }", "public void initialize() {\n\n Employee emp = new Employee(\"jaden Williams\", \"abEFc123!\");\n\n //Widget newProductTest = new Widget(\"iPod45\", \"Apple\", ItemType.AUDIO); //Test widget\n\n System.out.println(\"Launched program\");\n loadDatabaseProducts();\n loadDatabaseRecords();\n tableViewSetup(); //Sets up table structure\n populateProductLineTabs(); //Populates item type dropdown\n populateItemQuantity(); //Populates quantity dropdown\n //testMultimedia(); //Testing\n //testProductionRecord(); //Testing text log on last page\n }", "private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }", "private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "private void init() {\n try {\n renderer = new TableNameRenderer(tableHome);\n if (listId != null) {\n model = new DefaultComboBoxModel(listId);\n }\n else {\n Object[] idList = renderer.getTableIdList(step, extraTableRef);\n model = new DefaultComboBoxModel(idList);\n }\n setRenderer(renderer);\n setModel(model);\n }\n catch (PersistenceException ex) {\n ex.printStackTrace();\n }\n }", "private void myInit() {\n\n// System.setProperty(\"pool_host\", \"localhost\");\n// System.setProperty(\"pool_db\", \"db_cis_cosca\");\n// System.setProperty(\"pool_password\", \"password\");\n\n// MyUser.setUser_id(\"2\");\n tf_search.grabFocus();\n jPanel7.setVisible(false);\n init_key();\n hover();\n search();\n init();\n init_tbl_users();\n\n focus();\n jLabel3.setVisible(false);\n cb_lvl.setVisible(false);\n jPanel2.setVisible(false);\n\n init_tbl_user_default_previleges();\n data_cols_default();\n init_tbl_user_default_priveleges(tbl_user_default_priveleges);\n\n init_tbl_user_previleges();\n init_tbl_user_default_previlege_others(tbl_user_default_previlege_others);\n Field.Combo cb = (Field.Combo) tf_from_location1;\n cb.setText(\"Transactions\");\n cb.setId(\"1\");\n\n data_cols();\n }", "public final void init() {\n connectDB();\n\n initMainPanel();\n\n initOthers();\n }", "public void init() {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\n\t\ttry {\n\n\t\t\tconnection = DatabaseInteractor.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t} catch (SQLException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tDatabaseInteractor.createTable(StringConstants.USERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.QUESTIONS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.ANSWERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.TOPICS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_QUESTION_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_ANSWER_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_TOPIC_RANKS_TABLE, statement);\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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}", "public void init_store() {\r\n /* init inventory dictionary*/ \r\n System.out.println(\"Initializing Store\");\r\n dailyRollInventory.put(\"Egg roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Jelly roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Pastry roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Sausage roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Spring roll\", MAX_ROLL_COUNT);\r\n\r\n /* init totalRollSales for the month */\r\n totalRollSales.put(\"Egg roll\", 0.0);\r\n totalRollSales.put(\"Jelly roll\", 0.0);\r\n totalRollSales.put(\"Pastry roll\", 0.0);\r\n totalRollSales.put(\"Sausage roll\", 0.0);\r\n totalRollSales.put(\"Spring roll\", 0.0);\r\n\r\n /* init totalCustomerSales for the month */\r\n totalCustomerSales.put(\"Casual\", 0.0);\r\n totalCustomerSales.put(\"Business\", 0.0);\r\n totalCustomerSales.put(\"Catering\", 0.0);\r\n\r\n /* init daily customer sales */\r\n dailyCustomerSales.put(\"Casual\", 0.0);\r\n dailyCustomerSales.put(\"Business\", 0.0);\r\n dailyCustomerSales.put(\"Catering\", 0.0);\r\n \r\n }", "private void initialize() {\n this.setSize(394, 201);\n\n this.addTab(\"看病人基本資料\", null, getSeePatientFoundamentalDataPanel(), null);\n this.addTab(\"看病歷\", null, getSeeCaseHistoryPanel(), null);\n this.addTab(\"查藥品庫存\", null, getSeeMedicinesPanel(), null);\n this.addTab(\"看檢查報告\", null, getSeeInspectionReportPanel(), null);\n this.addTab(\"看掛號病人\", null, getSeeRegisteredPatientFoundamentalDataPanel(), null);\n this.addTab(\"開藥單\", null, getWritePrescriptionPanel(), null);\n this.addTab(\"寫病歷\", null, getWriteCaseHistoryPanel(), null);\n this.addTab(\"決定病人住院\", null, getDecideHospitalizePanel(), null);\n this.addTab(\"急診\", null, getEmergencyTreatmentPanel(), null);\n }", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "public void init() {\n \t\tWindow main = new Window(\"Table demo\");\n \t\tsetMainWindow(main);\n \n \t\t// set the application to use Corporate -theme\n \t\tsetTheme(\"corporate\");\n \n \t\t// Add link back to index.html\n \t\tmain.addComponent(menuLink);\n \n \t\t// create demo database\n \t\tsampleDatabase = new SampleDatabase();\n \n \t\t// Main window contains heading, two buttons, table and label\n \t\tmain.addComponent(new Label(\"<h2>Table demo</h2>\" + ACTION_DESCRIPTION,\n \t\t\t\tLabel.CONTENT_XHTML));\n \t\tOrderedLayout layout = new OrderedLayout(\n \t\t\t\tOrderedLayout.ORIENTATION_HORIZONTAL);\n \t\tlayout.addComponent(tableVisibility);\n \t\tlayout.addComponent(tableEnabler);\n \t\tlayout.addComponent(tableCaption);\n \t\tmain.addComponent(layout);\n \t\tmain.addComponent(table);\n \t\tmain.addComponent(tableLastAction);\n \t\tmain.addComponent(embeddedToolkitLink);\n \t\tmain.addComponent(tableDemoLink);\n \n \t\t// initialize demo components\n \t\tinitTable();\n \t}", "void initialise(){\n tabLayout = findViewById(R.id.tabLayout);\n viewPager = findViewById(R.id.view_pager);\n PageAdapter pagerAdapter = new PageAdapter(getSupportFragmentManager(), 3);\n viewPager.setAdapter(pagerAdapter);\n sharedPreferences = getSharedPreferences(SHARED_PREF, MODE_PRIVATE);\n }", "private void initialize() {\n\t\n\tsetName(\"jgridstart-main-window\");\n\t\n\tstore = new CertificateStoreWithDefault();\n\tselection = new CertificateSelection(store);\n\tPasswordCache.getInstance().setParent(this);\n\tURLLauncherCertificate.setSelectionSource(selection);\n\t\n\t// setup gui\n\tthis.setMinimumSize(new Dimension(400, 150));\n\tthis.setPreferredSize(new Dimension(650, 350));\n\tthis.setContentPane(getJContentPane());\n\tthis.setTitle(\"jGridstart \"+System.getProperty(\"jgridstart.version\"));\n\n\t// create actions; they register themselves\n\tnew ActionRequest(this, store, selection);\n\tnew ActionViewRequest(this, selection);\n\tnew ActionViewVerificationForm(this, selection);\n\tnew ActionImport(this, store, selection);\n\tnew ActionInstall(this, selection);\n\t//new ActionRevoke(this, selection);\n\tnew ActionRenew(this, store, selection);\n\tnew ActionExport(this, selection);\n\tnew ActionMakeDefault(this, store, selection);\n\tnew ActionShowDetails(this, selection) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionViewLog(this);\n\tnew ActionViewCertificateList(this, certList, false);\n\tnew ActionChangeBrowser(this, selection);\n\tnew ActionRefresh(this, store) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well; TODO move into ActionRefresh itself\n\t\tupdateSelection();\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionAbout(this);\n\t// now that the actions are available, the menu can be created\n\tthis.setJMenuBar(getJMenuBar());\n\t\n\t// create buttons for template panel from actions\n\tString[] actions = {\n\t\t\"import\", \"request\",\n\t\t\"viewrequest\", /*\"revoke\",*/ \"install\",\n\t\t\"renew\"\n\t};\n\tcertInfoButtons = new HashMap<String, JButton>();\n\tfor (int i=0; i<actions.length; i++) {\n\t JButton btn = new JButton(getAction(actions[i]));\n\t certInfoButtons.put(actions[i], btn);\n\t certInfoPane.addButton(btn, false, false);\n\t}\n\t \n\t// load certificates from default location\n\tstore.load();\n\n\t// Setup the identity menu and add the change listeners\n\tsetupIdentityMenu();\n\n\t// select default certificate if present, otherwise use first one\n\tif (store.size() > 0)\t{\n\t try {\n\t\tselection.setSelection(store.getDefault());\n\t } catch (IOException e) {\n\t\t/* Cannot get default, leave it */\n\t\tselection.setSelection(0);\n\t }\n\t}\n\t// show certificate list only if multiple certificates present\n\tsetViewCertificateList(store.size() > 1);\n\t// make sure ui is up-to-date\n\tupdateSelection();\n }", "private void initTabs()\n {\n updateDayTab();\n\n // Set initial time on time tab\n updateTimeTab();\n }", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "private void beginSetup() {\n try {\n if (dbType.equals(\"mysql\")) {\n Class.forName(\"gwe.sql.gweMysqlDriver\");\n }\n else if (dbType.equals(\"postgresql\")) {\n Class.forName(\"org.postgresql.Driver\");\n }\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"setup constructor ClassNotFound: \"+cnfe);\n System.out.println(\"Could not load the mysql driver: please check your classpath\");\n System.exit(-1);\n }\n\n try {\n if (!tableExists(DEFAULT_DB_CONFIG_TABLE)) {\n createConfigTable(DEFAULT_DB_CONFIG_TABLE);\n }\n } catch (SQLException sqle) {\n System.out.println(\"setup beginSetup SQLException: \"+sqle);\n System.out.println(\"Trouble interacting with vizConfig database table\");\n System.exit(-2);\n }\n prepareFrame();\n }", "public void init(){\n tabHost = (TabHost)findViewById(android.R.id.tabhost);\n\n //Creating tab menu.\n TabHost.TabSpec TabMenu1 = tabHost.newTabSpec(\"First tab\");\n TabHost.TabSpec TabMenu2 = tabHost.newTabSpec(\"Second tab\");\n TabHost.TabSpec TabMenu3 = tabHost.newTabSpec(\"Third tab\");\n\n //Setting up tab 1 name.\n TabMenu1.setIndicator(getResources().getString(R.string.map));\n //Set tab 1 activity to tab 1 menu.\n Intent intent = new Intent(this, MapsActivity.class);\n intent.putExtra(\"studentObj\", student);\n TabMenu1.setContent(intent);\n\n\n //Setting up tab 2 name.\n TabMenu2.setIndicator(getResources().getString(R.string.people));\n intent = new Intent(this, PeopleActivity.class);\n TabMenu2.setContent(intent);\n\n //Setting up tab 2 name.\n TabMenu3.setIndicator(getResources().getString(R.string.setting));\n intent = new Intent(this, SettingActivity.class);\n TabMenu3.setContent(intent);\n\n //\n tabHost.addTab(TabMenu1);\n tabHost.addTab(TabMenu2);\n tabHost.addTab(TabMenu3);\n }", "void init() {\n tabHost = findViewById(android.R.id.tabhost);\n tabHost.setup(this, getSupportFragmentManager(), android.R.id.tabcontent);\n tabHost.addTab(tabHost.newTabSpec(\"Login\").setIndicator(\"Login\", null), LoginFragment.class, null);\n tabHost.addTab(tabHost.newTabSpec(\"Register\").setIndicator(\"Register\", null), RegisterFragment.class, null);\n }", "private void loadPersistantWatchLists()\r\n {\r\n\r\n debug(\"loadPersistantWatchLists() called - \");\r\n\r\n expungeAllHistoricFiles();\r\n\r\n final int watchListCount =\r\n ParseData.parseNum(appProps.getProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\")), 0);\r\n\r\n for (int index = 0; index < watchListCount; index++)\r\n {\r\n // Create a NEW header Vector\r\n Vector headers = new Vector();\r\n headers.removeAllElements();\r\n for (int i = 0; i < StockData.columns.length; i++)\r\n {\r\n headers.addElement(StockData.columns[i]);\r\n }\r\n\r\n // Create a new DATA Vector\r\n Vector data = new Vector();\r\n data.removeAllElements();\r\n // Are we in DEMO mode ior in Live Mode\r\n // Populate the Vectors\r\n if (DEMO_MODE)\r\n {\r\n getDemoData(data);\r\n }\r\n else\r\n {\r\n //getDemoData(data);\r\n getLiveData(data, index);\r\n }\r\n\r\n // Create a new Table Model with our headers and data\r\n StockDataTableModel tableModel = new StockDataTableModel(headers, data);\r\n\r\n // Create a new Table with our Tablemodel\r\n JTable table = new HGTable(tableModel);\r\n\r\n // This method will add a timer ( via the index ) the table and tableModel\r\n // the appropriate vector containers.\r\n addDataToVectorContainers(table, tableModel, index);\r\n // This Method will add the Popup menu to the this table\r\n addPopupMenuToTable(table);\r\n // Create a new ScrollPane and add our table to it\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.getViewport().add(table);\r\n JPanel panel = new JPanel(new BorderLayout());\r\n\r\n // Creae a new Vertical Panel and add our Menu and JScrollPane Table\r\n JPanel lblPanel = createVerticalPanel(true);\r\n\r\n lblPanel.add(createDropDownMenu());\r\n panel.add(lblPanel, BorderLayout.NORTH);\r\n panel.add(scrollPane, BorderLayout.CENTER);\r\n\r\n // Create a default name for that tab and tab name lookup\r\n String tabName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n // Get the WatchList title via Properties\r\n // Get the Property\r\n tabName = appProps.getProperty(tabName, tabName);\r\n tabPane.addTab(tabName, null, panel, new String(\"Click here to view \" + tabName));\r\n\r\n // Set the selected index to the first in the list\r\n tabPane.setSelectedIndex(0);\r\n // Repaint the tabpane with the current data\r\n tabPane.repaint();\r\n\r\n // Load the Historical Data on the Util Event Thread as \r\n // to get our primary data up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes class instance method loadHistoricData(index);\r\n // NOTE: Startup Initial delay of 5 seconds, give the application,\r\n // Time to load.\r\n TimerTask historicDataTask = new LoadHistoricListDataTask(index);\r\n Timer timer = new Timer(true);\r\n timer.schedule(historicDataTask, ONE_SECOND ); // ONE_SECOND * 6);\r\n\r\n this.setStatusBar(\"Loading watch list [\" + index + \"] complete.\");\r\n }\r\n\r\n this.MODULE_READY = true;\r\n\r\n this.monitorTask = new WatchListMonitorTask();\r\n Timer timer = new Timer(true); // Non-Deamon\r\n timer.scheduleAtFixedRate(monitorTask, MONITOR_DELAY, MONITOR_DELAY);\r\n\r\n debug(\"loadPersistantWatchLists() complete - \");\r\n\r\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "private void initialize() {\n if(!isInitialized){\n isInitialized = true;\n setLayout(new BorderLayout());\n \n table = downloadTableFactory.get().create(downloadMediator.getDownloadList());\n table.setTableHeader(null);\n JScrollPane pane = new JScrollPane(table);\n pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));\n add(pane, BorderLayout.CENTER);\n }\n }", "public void init()\r\n\t{\r\n\t\tStaticAppletData.setCodeBase(getCodeBase().toString()); // set the code base\r\n\t\tStaticAppletData.setCodeBaseURL(getCodeBase()); // set the code base URL\r\n\t\t\r\n\t\tloadLoginUI(); // load the login UI first\r\n\t\t//loadRoomViewerUI();\r\n\t}", "private void init() {\n dao = new ProductDAO();\n model = new DefaultTableModel();\n \n try {\n showAll();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n \n }", "public void createTables() throws Exception{\n\t\tcreate_table(\"tab_global\", \"param\", 1);\n\t\t\n\t\tPut put = new Put(Bytes.toBytes(\"row_userid\"));\n\t\tlong id = 0;\n\t\tput.add(Bytes.toBytes(\"param\"), \n\t\t\t\tBytes.toBytes(\"userid\"), \n\t\t\t\tBytes.toBytes(id));\n\t\tHTable ht = new HTable(conf, \"tab_global\");\n\t\tht.put(put);\n\t\t\n\t\tcreate_table(\"tab_user2id\", \"info\", 1);\n\t\tcreate_table(\"tab_id2user\", \"info\", 1);\n\t\t\n\t\t//table_follow\t{userid}\tname:{userid}\n\t\tcreate_table(\"tab_follow\", \"name\", 1);\n\t\t\n\t\t//table_followed\trowkey:{userid}_{userid} CF:userid\n\t\tcreate_table(\"tab_followed\", \"userid\", 1);\n\t\t\n\t\t//tab_post\trowkey:postid\tCF:post:username post:content post:ts\n\t\tcreate_table(\"tab_post\", \"post\", 1);\n\t\tput = new Put(Bytes.toBytes(\"row_postid\"));\n\t\tid = 0;\n\t\tput.add(Bytes.toBytes(\"param\"), \n\t\t\t\tBytes.toBytes(\"postid\"), \n\t\t\t\tBytes.toBytes(id));\n\t\tht.put(put);\n\t\t\n\t\t//tab_inbox\t\trowkey:userid+postid\tCF:postid\n\t\tcreate_table(\"tab_inbox\", \"postid\", 1);\n\t\tht.close();\n\t}", "@SuppressWarnings(\"unchecked\")\n \n private void formSetup() {\n /**\n * Reset form values and also setup Trust Manager that allows\n * to connect to SSL sites without trusting the cert (I.E using an IP) <- Required\n */\n\n String[] columnNames = {\"Address\",\"Web Site Title\",\"ID\"};\n TableColumn column = tWebTitles.getColumnModel().getColumn(0); \n column.setHeaderValue(columnNames[0]);\n column.setPreferredWidth(150);\n column = tWebTitles.getColumnModel().getColumn(1); \n column.setHeaderValue(columnNames[1]);\n column.setPreferredWidth(300);\n column = tWebTitles.getColumnModel().getColumn(2);\n column.setPreferredWidth(100); \n rbHTTPs.setSelected(true);\n sitesgrabbed.removeAll(urls); \n \n \n // Create a trust manager that does not validate certificate chains\n // Allows us to trust all the sites to grab the titles etc..\n TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n public void checkClientTrusted(\n java.security.cert.X509Certificate[] certs, String authType) {\n }\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType) {\n }\n }\n };\n\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n HostnameVerifier allHostsValid = (String hostname, SSLSession session) -> true;\n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);\n } catch (Exception e) {\n } \n \n }", "private void initializeWashControllers() {\n trNewPetWash = WashesControllersFactory.createTrNewPetWash();\n trObtainAllPetWashes = WashesControllersFactory.createTrObtainAllPetWashes();\n trDeleteWash = WashesControllersFactory.createTrDeleteWash();\n trUpdateWash = WashesControllersFactory.createTrUpdateWash();\n }", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "private void factoryReset() throws CantFactoryReset {\n\n Activity runtimeActivity;\n Fragment runtimeFragment;\n WalletNavigationStructure runtimeWalletNavigationStructure;\n TitleBar runtimeTitleBar;\n SideMenu runtimeSideMenu;\n MainMenu runtimeMainMenu;\n MenuItem runtimeMenuItem;\n TabStrip runtimeTabStrip;\n Header runtimeHeader;\n StatusBar runtimeStatusBar;\n\n Tab runtimeTab;\n\n String publicKey;\n\n\n /**\n * Asset issuer\n */\n\n runtimeWalletNavigationStructure = new WalletNavigationStructure();\n runtimeWalletNavigationStructure.setWalletCategory(WalletCategory.REFERENCE_WALLET.getCode());\n runtimeWalletNavigationStructure.setWalletType(WalletType.REFERENCE.getCode());\n publicKey = \"asset_issuer\";\n runtimeWalletNavigationStructure.setPublicKey(publicKey);\n //listWallets.put(publicKey, runtimeWalletNavigationStructure);\n\n\n runtimeActivity = new Activity();\n runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_WALLET_BASIC_WALLET_BITDUBAI_VERSION_1_MAIN);\n runtimeActivity.setColor(\"#8bba9e\");\n runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n runtimeWalletNavigationStructure.setStartActivity(runtimeActivity.getType());\n\n runtimeTitleBar = new TitleBar();\n runtimeTitleBar.setLabel(\"asset issuer wallet\");\n runtimeTitleBar.setLabelSize(16);\n\n runtimeActivity.setTitleBar(runtimeTitleBar);\n runtimeActivity.setColor(\"#72af9c\");\n\n runtimeStatusBar = new com.bitdubai.fermat_api.layer.all_definition.navigation_structure.StatusBar();\n runtimeStatusBar.setColor(\"#72af9c\");\n\n runtimeActivity.setStatusBar(runtimeStatusBar);\n\n\n runtimeFragment = new Fragment();\n runtimeFragment.setType(Fragments.DAP_WALLET_ASSET_ISSUER_MAIN_ACTIVITY.getKey());\n runtimeActivity.addFragment(Fragments.DAP_WALLET_ASSET_ISSUER_MAIN_ACTIVITY.getKey(), runtimeFragment);\n runtimeActivity.setStartFragment(\"DWAIMA\");\n\n\n setNavigationStructureXml(runtimeWalletNavigationStructure);\n //WalletNavigationStructure walletNavigationStructure= getNavigationStructure(publicKey);\n\n /**\n * Asset User\n */\n runtimeWalletNavigationStructure = new WalletNavigationStructure();\n runtimeWalletNavigationStructure.setWalletCategory(WalletCategory.REFERENCE_WALLET.getCode());\n runtimeWalletNavigationStructure.setWalletType(WalletType.REFERENCE.getCode());\n publicKey = \"asset_user\";\n runtimeWalletNavigationStructure.setPublicKey(publicKey);\n //listWallets.put(publicKey, runtimeWalletNavigationStructure);\n\n\n runtimeActivity = new Activity();\n runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_WALLET_BASIC_WALLET_BITDUBAI_VERSION_1_MAIN);\n runtimeActivity.setColor(\"#8bba9e\");\n runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n runtimeWalletNavigationStructure.setStartActivity(runtimeActivity.getType());\n\n runtimeTitleBar = new TitleBar();\n runtimeTitleBar.setLabel(\"asset user wallet\");\n runtimeTitleBar.setLabelSize(16);\n\n runtimeActivity.setTitleBar(runtimeTitleBar);\n runtimeActivity.setColor(\"#72af9c\");\n\n runtimeStatusBar = new com.bitdubai.fermat_api.layer.all_definition.navigation_structure.StatusBar();\n runtimeStatusBar.setColor(\"#72af9c\");\n\n runtimeActivity.setStatusBar(runtimeStatusBar);\n\n\n runtimeFragment = new Fragment();\n runtimeFragment.setType(Fragments.DAP_WALLET_ASSET_USER_MAIN_ACTIVITY.getKey());\n runtimeActivity.addFragment(Fragments.DAP_WALLET_ASSET_USER_MAIN_ACTIVITY.getKey(), runtimeFragment);\n runtimeActivity.setStartFragment(\"DWUIMA\");\n\n\n setNavigationStructureXml(runtimeWalletNavigationStructure);\n\n /**\n * Asset Redeem Point\n */\n runtimeWalletNavigationStructure = new WalletNavigationStructure();\n runtimeWalletNavigationStructure.setWalletCategory(WalletCategory.REFERENCE_WALLET.getCode());\n runtimeWalletNavigationStructure.setWalletType(WalletType.REFERENCE.getCode());\n publicKey = \"redeem_point\";\n runtimeWalletNavigationStructure.setPublicKey(publicKey);\n //listWallets.put(publicKey, runtimeWalletNavigationStructure);\n\n\n runtimeActivity = new Activity();\n runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_WALLET_BASIC_WALLET_BITDUBAI_VERSION_1_MAIN);\n runtimeActivity.setColor(\"#8bba9e\");\n runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n runtimeWalletNavigationStructure.setStartActivity(runtimeActivity.getType());\n\n runtimeTitleBar = new TitleBar();\n runtimeTitleBar.setLabel(\"asset redeem point wallet\");\n runtimeTitleBar.setLabelSize(16);\n\n runtimeActivity.setTitleBar(runtimeTitleBar);\n runtimeActivity.setColor(\"#72af9c\");\n\n runtimeStatusBar = new com.bitdubai.fermat_api.layer.all_definition.navigation_structure.StatusBar();\n runtimeStatusBar.setColor(\"#72af9c\");\n\n runtimeActivity.setStatusBar(runtimeStatusBar);\n\n\n runtimeFragment = new Fragment();\n runtimeFragment.setType(Fragments.DAP_WALLET_REDEEM_POINT_MAIN_ACTIVITY.getKey());\n runtimeActivity.addFragment(Fragments.DAP_WALLET_REDEEM_POINT_MAIN_ACTIVITY.getKey(), runtimeFragment);\n runtimeActivity.setStartFragment(\"DWRPMA\");\n\n\n setNavigationStructureXml(runtimeWalletNavigationStructure);\n\n /**\n * CRYPTO BROKER WALLET\n */\n runtimeWalletNavigationStructure = createCryptoBrokerWalletNavigationStructure();\n setNavigationStructureXml(runtimeWalletNavigationStructure);\n\n /**\n * CRYPTO CUSTOMER WALLET\n */\n runtimeWalletNavigationStructure = createCryptoCustomerWalletNavigationStructure();\n setNavigationStructureXml(runtimeWalletNavigationStructure);\n\n /**\n * fin asset issuer\n */\n //try{\n\n// Activity runtimeActivity;\n// Fragment runtimeFragment;\n// WalletNavigationStructure runtimeWalletNavigationStructure;\n// TitleBar runtimeTitleBar;\n// SideMenu runtimeSideMenu;\n// MainMenu runtimeMainMenu;\n// MenuItem runtimeMenuItem;\n// TabStrip runtimeTabStrip;\n// StatusBar runtimeStatusBar;\n//\n// Tab runtimeTab;\n//\n// String publicKey;\n//\n//\n// /**\n// * WalletNavigationStructure Kids definition.\n// * */\n//\n//\n// runtimeWalletNavigationStructure = new WalletNavigationStructure();\n// // runtimeSubApp.addWallet(runtimeWalletNavigationStructure);\n// publicKey=\"kids\";\n// listWallets.put(publicKey, runtimeWalletNavigationStructure);\n// runtimeWalletNavigationStructure.setPublicKey(publicKey);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_VERSION_1_MAIN);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Kids Wallet\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#84DCF5\");\n//\n// runtimeSideMenu = new SideMenu();\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Menu item 1\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_VERSION_1_MAIN); // Solo es un ej.\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeActivity.setSideMenu(runtimeSideMenu);\n//\n// runtimeTabStrip = new TabStrip();\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Profile\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_PROFILE);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Desktop\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_DESKTOP);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Contacts\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_CONTACTS);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Community\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_COMMUNITY);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n//\n// runtimeTabStrip.setDividerColor(0xFFFFFFFF);\n//\n//\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_PROFILE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_PROFILE,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_DESKTOP);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_DESKTOP,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_CONTACTS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_CONTACTS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_COMMUNITY);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_AGE_KIDS_ALL_BITDUBAI_COMMUNITY,runtimeFragment);\n//\n//\n// /**\n// * End of WalletNavigationStructure Kids fragments.\n// * */\n//\n// /**\n// * Fermat Bitcoin Reference Walletc definition.\n// *\n// * Structure:\n// *\n// * TYPE: CWP_WALLET_RUNTIME_WALLET_BASIC_WALLET_BITDUBAI_VERSION_1_MAIN\n// *\n// * TITLE: Fermat Bitcoin WalletNavigationStructure\n// *\n// * TAB STRIP:\n// * *BALANCE - CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_BALANCE\n// * *SEND - CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_SEND\n// * *RECEIVE - CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_RECEIVE\n// * *TRANSACTIONS - CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_TRANSACTIONS\n// * *CONTACTS - CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_CONTACTS\n// * *DATABASE TOOLS - CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_DATABASE_TOOLS\n// * *LOG TOOLS - CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_LOG_TOOLS\n// */\n//\n//\n// runtimeWalletNavigationStructure = new WalletNavigationStructure();\n// publicKey=\"reference_wallet\";\n// runtimeWalletNavigationStructure.setPublicKey(publicKey);\n// listWallets.put(publicKey, runtimeWalletNavigationStructure);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_WALLET_BASIC_WALLET_BITDUBAI_VERSION_1_MAIN);\n// runtimeActivity.setColor(\"#8bba9e\");\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n// runtimeWalletNavigationStructure.setStartActivity(runtimeActivity.getType());\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Fermat Bitcoin Reference Wallet\");\n//\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#72af9c\");\n// //runtimeActivity.setColor(\"#d07b62\");\n//\n//\n// runtimeStatusBar = new com.bitdubai.fermat_api.layer.all_definition.navigation_structure.StatusBar();\n// runtimeStatusBar.setColor(\"#72af9c\");\n//\n// runtimeActivity.setStatusBar(runtimeStatusBar);\n//\n//\n// runtimeTabStrip = new TabStrip();\n//\n// runtimeTabStrip.setTabsColor(\"#8bba9e\");\n//\n// runtimeTabStrip.setTabsTextColor(\"#FFFFFF\");\n//\n// runtimeTabStrip.setTabsIndicateColor(\"#72af9c\");\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Balance\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_BALANCE);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Send\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_SEND);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Receive\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_RECEIVE);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Transactions\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_TRANSACTIONS);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Contacts\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_CONTACTS);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n//\n//\n//\n//\n// runtimeTabStrip.setDividerColor(0x72af9c);\n// //runtimeTabStrip.setBackgroundColor(\"#72af9c\");\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_BALANCE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_BALANCE,runtimeFragment);\n//\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_SEND);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_SEND,runtimeFragment);\n//\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_RECEIVE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_RECEIVE,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_TRANSACTIONS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_TRANSACTIONS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_CONTACTS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_CONTACTS,runtimeFragment);\n//\n//\n// // Testing purpose Mati\n// //setNavigationStructureXml(runtimeWalletNavigationStructure);\n//\n// //getNavigationStructure(\"fasf\");\n//\n// //WalletRuntimeEngineDatabaseFactory walletRuntimeEngineDatabaseFactory = new WalletRuntimeEngineDatabaseFactory();\n//\n// //WalletRuntimeNavigationStructureDao walletRuntimeNavigationStructureDao = new WalletRuntimeNavigationStructureDao();\n//\n//\n// /**\n// * End of WalletNavigationStructure basic fragments.\n// */\n//\n//\n//\n//\n//\n// // WalletNavigationStructure adults\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_STORE_MAIN);\n// // runtimeSubApp.addActivity(runtimeActivity);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_STORE_MAIN);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_STORE_MAIN,runtimeFragment);\n//\n// runtimeWalletNavigationStructure = new WalletNavigationStructure();\n// // runtimeSubApp.addWallet(runtimeWalletNavigationStructure);\n// publicKey=\"adults_wallet\";\n// runtimeWalletNavigationStructure.setPublicKey(publicKey);\n// listWallets.put(publicKey, runtimeWalletNavigationStructure);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_MAIN);\n// //runtimeSubApp.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Adults wallet\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeSideMenu = new SideMenu();\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Contacts\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CONTACTS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Accounts\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_ACCOUNTS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Banks\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_BANKS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Coupons\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_COUPONS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Discounts\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_DISCOUNTS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Vouchers\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_VOUCHERS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Gift Cards\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_GIFT_CARDS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Clones\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CLONES);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Childs\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CHILDS);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeMenuItem = new MenuItem();\n// runtimeMenuItem.setLabel(\"Exit\");\n// runtimeMenuItem.setLinkToActivity(Activities.CWP_WALLET_MANAGER_MAIN);\n// runtimeSideMenu.addMenuItem(runtimeMenuItem);\n//\n// runtimeActivity.setSideMenu(runtimeSideMenu);\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Home\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_HOME);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Balance\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_BALANCE);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Send\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SEND);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Receive\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_RECEIVE);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Shops\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOPS);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Refill\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_REFFIL);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Discounts\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_DISCOUNTS);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTabStrip.setDividerColor(0xFFFFFFFF);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_HOME);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_HOME,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_BALANCE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_BALANCE,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SEND);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SEND,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_RECEIVE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_RECEIVE,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOPS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOPS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_REFFIL);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_REFFIL,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_DISCOUNTS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_DISCOUNTS,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CONTACTS_CHAT);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_CHAT);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_CHAT,runtimeFragment);\n//\n//\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CONTACTS);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Contacts\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS,runtimeFragment);\n//\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_AVAILABLE_BALANCE);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Available balance\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_ADULTS_ALL_AVAILABLE_BALANCE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_ADULTS_ALL_AVAILABLE_BALANCE,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_SEND_HISTORY);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Sent History\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_ADULTS_ALL_SEND_HISTORY);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_ADULTS_ALL_SEND_HISTORY,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CONTACTS_SEND);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Send To Contact\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_SEND);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_SEND,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_CHAT_TRX);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CHAT_TRX);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CHAT_TRX,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_REQUESTS_RECEIVED_HISTORY);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_ADULTS_ALL_REQUESTS_RECEIVED_HISTORY);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_ADULTS_ALL_REQUESTS_RECEIVED_HISTORY,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CONTACTS_RECEIVE);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Receive From Contact\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"\");\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_RECEIVE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_RECEIVE,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_DAILY_DISCOUNT);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_ADULTS_ALL_DAILY_DISCOUNT);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_ADULTS_ALL_DAILY_DISCOUNT,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_DAILY_DISCOUNT);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_ADULTS_ALL_DAILY_DISCOUNT);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_ADULTS_ALL_DAILY_DISCOUNT,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_MONTHLY_DISCOUNT);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_ADULTS_ALL_MONTHLY_DISCOUNT);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_ADULTS_ALL_MONTHLY_DISCOUNT,runtimeFragment);\n//\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CONTACTS_NEW_SEND);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Send to new contact\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_NEW_SEND);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_NEW_SEND,runtimeFragment);\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_CONTACTS_NEW_RECEIVE);\n// runtimeWalletNavigationStructure.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Receive from new contact\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n// runtimeActivity.setColor(\"#F0E173\");\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_NEW_RECEIVE);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_CONTACTS_NEW_RECEIVE,runtimeFragment);\n//\n// /**\n// * End of WalletNavigationStructure Adults tabs.\n// */\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_SHOPS);\n// runtimeActivity.setColor(\"#76dc4a\");\n// // runtimeSubApp.addActivity(runtimeActivity);\n//\n//\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"My Shop\");\n//\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n//\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Shop\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_SHOP);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Products\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_PRODUCTS);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Reviews\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_REVIEWS);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Chat\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_CHAT);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"History\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_HISTORY);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Map\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_MAP);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n//\n// runtimeTabStrip.setDividerColor(0xFFFFFFFF);\n// runtimeTabStrip.setIndicatorColor(0xFFFFFFFF);\n// runtimeTabStrip.setIndicatorHeight(9);\n// runtimeTabStrip.setBackgroundColor(0xFF76dc4a);\n// runtimeTabStrip.setTextColor(0xFFFFFFFF);\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_SHOP);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_SHOP,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_PRODUCTS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_PRODUCTS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_REVIEWS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_REVIEWS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_CHAT);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_CHAT,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_HISTORY);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_HISTORY,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_MAP);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_SHOP_MAP,runtimeFragment);\n// /**\n// * End of SHOPS tabs.\n// */\n//\n//\n//\n// //Account Details\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_ACCOUNT_DETAIL);\n// runtimeActivity.setColor(\"#F0E173\");\n// //runtimeSubApp.addActivity(runtimeActivity);\n//\n//\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Account details\");\n//\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n//\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Debits\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_DEBITS);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Credits\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNT_CREDITS);\n// runtimeTabStrip.addTab(runtimeTab);\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"All\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_ALL);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_DEBITS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_DEBITS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNT_CREDITS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNT_CREDITS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_ALL);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_ALL,runtimeFragment);\n//\n//\n//\n// /*------------------------------*/\n//\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_REFFILS);\n// // runtimeSubApp.addActivity(runtimeActivity);\n////-----------------------------------------------------------------------------------\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_REQUESTS_RECEIVED);\n// //runtimeSubApp.addActivity(runtimeActivity);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_ADULTS_ALL_REQUESTS_RECEIVED);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_ADULTS_ALL_REQUESTS_RECEIVED,runtimeFragment);\n////------------------------------------------------------------------------------------\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_ADULTS_ALL_REQUEST_SEND);\n// //runtimeSubApp.addActivity(runtimeActivity);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_ADULTS_ALL_REQUEST_SEND);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_ADULTS_ALL_REQUEST_SEND,runtimeFragment);\n////-----------------------------------------------------------------------------------\n// runtimeActivity= new Activity();\n// runtimeActivity.setType(Activities.CWP_WALLET_RUNTIME_ADULTS_ALL_ACCOUNTS);\n// //runtimeSubApp.addActivity(runtimeActivity);\n//\n// runtimeTitleBar = new TitleBar();\n// runtimeTitleBar.setLabel(\"Account details\");\n// runtimeActivity.setTitleBar(runtimeTitleBar);\n//\n// runtimeTabStrip = new TabStrip();\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Debits\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_DEBITS);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"Credits\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNT_CREDITS);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n// runtimeTab = new Tab();\n// runtimeTab.setLabel(\"All\");\n// runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_ALL);\n// runtimeTabStrip.addTab(runtimeTab);\n//\n//\n// runtimeActivity.setTabStrip(runtimeTabStrip);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_DEBITS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_DEBITS,runtimeFragment);\n// //listFragments.put(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_DEBITS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNT_CREDITS);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNT_CREDITS,runtimeFragment);\n//\n// runtimeFragment = new Fragment();\n// runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_ALL);\n// runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_ADULTS_ALL_BITDUBAI_ACCOUNTS_ALL,runtimeFragment);\n// // listApps.put(Apps.CRYPTO_WALLET_PLATFORM,runtimeApp);\n// //lastApp = Apps.CRYPTO_WALLET_PLATFORM;\n// /**\n// * End of WalletNavigationStructure Accounts tabs.\n// */\n\n /*}catch(Exception e){\n String message = CantFactoryReset.DEFAULT_MESSAGE;\n FermatException cause = FermatException.wrapException(e);\n String context = \"Error on method Factory Reset, setting the structure of the apps\";\n String possibleReason = \"some null definition\";\n throw new CantFactoryReset(message, cause, context, possibleReason);\n\n }*/\n\n }", "public void initiate() {\n\t\tallDepartments.put(HRDepartment.class.getSimpleName(), HRDepartment.getInstance());\n\t\tallDepartments.put(ProductionDepartment.class.getSimpleName(), ProductionDepartment.getInstance());\n\t\tallDepartments.put(WarehousingDepartment.class.getSimpleName(), WarehousingDepartment.getInstance());\n\t\tallDepartments.put(FinanceDepartment.class.getSimpleName(), FinanceDepartment.getInstance());\n\t\tallDepartments.put(MarketingDepartment.class.getSimpleName(), MarketingDepartment.getInstance());\n\t\tallDepartments.put(LogisticsDepartment.class.getSimpleName(), LogisticsDepartment.getInstance());\n\t\tallDepartments.put(ProcurementDepartment.class.getSimpleName(), ProcurementDepartment.getInstance());\n\t\tallDepartments.put(ResearchAndDevelopmentDepartment.class.getSimpleName(), ResearchAndDevelopmentDepartment.getInstance());\n\t\tallDepartments.put(SalesDepartment.class.getSimpleName(), SalesDepartment.getInstance());\n\n\t\tcustomerSatisfaction = CustomerSatisfaction.getInstance();\n\t\tcustomerDemand = CustomerDemand.getInstance();\n\t\texternalEvents = ExternalEvents.getInstance();\n\t\tcompanyEcoIndex = CompanyEcoIndex.getInstance();\n\t\tinternalFleet = InternalFleet.getInstance();\n\t\tbankingSystem = BankingSystem.getInstance();\n\t\tproductSupport = ProductSupport.getInstance();\n\t\temployeeGenerator = EmployeeGenerator.getInstance();\n\t\temployeeGenerator.setDepartment((HRDepartment) allDepartments.get(HRDepartment.class.getSimpleName()));\n\t}", "public void CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void initialize() {\n AppContext.getInstance().set(\"tablero\",this);\n tabl = new CasillaController[8][6]; \n SeleccNivel((int)AppContext.getInstance().get(\"lvl\"));\n LlenarCasillas();\n \n }", "@Before\n public void initTest() {\n AccountCapsule ownerAccountFirstCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_FIRST),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_FIRST)),\n AccountType.Normal,\n 10000_000_000L);\n AccountCapsule ownerAccountSecondCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_SECOND),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_SECOND)),\n AccountType.Normal,\n 20000_000_000L);\n\n dbManager.getAccountStore()\n .put(ownerAccountFirstCapsule.getAddress().toByteArray(), ownerAccountFirstCapsule);\n dbManager.getAccountStore()\n .put(ownerAccountSecondCapsule.getAddress().toByteArray(), ownerAccountSecondCapsule);\n\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderTimestamp(1000000);\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderNumber(10);\n dbManager.getDynamicPropertiesStore().saveNextMaintenanceTime(2000000);\n }", "public void initialize() {\r\n setLayout(new BorderLayout());\r\n add(BorderLayout.CENTER, tabbedPane);\r\n for (Iterator it = widgets.iterator(); it.hasNext();) {\r\n SlotWidget widget = (SlotWidget) it.next();\r\n widget.initialize();\r\n }\r\n }", "private void init() {\n// LoginHelper.USER = new NguoiDungDAO().selectById(\"ND002\");\n putClientProperty(\"JInternalFrame.isPalette\", Boolean.TRUE);\n getRootPane().setWindowDecorationStyle(JRootPane.NONE);\n ((BasicInternalFrameUI) this.getUI()).setNorthPane(null);\n this.setBorder(null);\n\n if (LoginHelper.quyenQuanTri()) {\n mand = \"\";\n } else {\n mand = LoginHelper.USER.getMaND();\n }\n\n tbl_dangdat0.setModel(tblModel0);\n tbl_henngay1.setModel(tblModel1);\n tbl_23.setModel(tblModel23);\n tbl_4.setModel(tblModel4);\n\n loadTable0();\n loadTable1();\n// Thread th = new Thread(this);\n// th.start();\n loadTable23();\n loadTable4();\n }", "public void initialize() {\n for (TableInSchema tableInSchema : initialTables()) {\n addTable(tableInSchema);\n }\n }", "private void setupTabs() {\n }", "private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "private void initTab()\n {\n \n }", "private void initialize() {\r\n\r\n // set up EmployeeGUI JPanel\r\n setLayout(new BorderLayout());\r\n setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n // setBackground(MainGUI.backgroundColor);\r\n\r\n initializeLogInPanel();\r\n\r\n // ** initialize JTabbedPane **\r\n tabbedPane = new JTabbedPane();\r\n tabbedPane.setBackground(MainGUI.backgroundColor);\r\n tabbedPane.setForeground(MainGUI.fontColor);\r\n\r\n initializeAppointmentsTab();\r\n initializePatientInfoTab();\r\n initializeBillingTab();\r\n initializeSearchTab();\r\n initializeCalendarTab();\r\n\r\n // NEW JDialogs\r\n initializePaymentDialog();\r\n initializeSelectPatientDialog();\r\n\r\n // add panels to tabbed pane\r\n tabbedPane.add(\"Search\", searchTab);\r\n tabbedPane.add(\"Patient Information\", patientTab);\r\n tabbedPane.add(\"Appointments\", appTab);\r\n tabbedPane.add(\"Billing\", billingTab);\r\n tabbedPane.add(\"Calendar\", calTab);\r\n\r\n // set up login panel - what is shown first to Employee\r\n add(loginPanel, BorderLayout.CENTER);\r\n\r\n validate();\r\n\r\n // ALL ACTION LISTENERS\r\n\r\n // Login Listeners\r\n loginButton.addActionListener(e -> login());\r\n\r\n // Appointments Tab listeners\r\n app_requestAppointmentButton.addActionListener(e -> app_requestAppointment());\r\n app_lookUpAppointmentButton.addActionListener(e -> app_lookUpAppointment());\r\n app_cancelAppointmentButton.addActionListener(e -> app_cancelAppointment());\r\n\r\n // Patient Info Tab Listeners\r\n pInfo_submitNewInfoButton.addActionListener(e -> pInfo_createNew());\r\n pInfo_updateInfoButton.addActionListener(e -> pInfo_updateExisting());\r\n\r\n // Billing Tab Listeners\r\n billing_calculateButton.addActionListener(e -> billing_calculate());\r\n\r\n // SearchTab Listeners\r\n search_searchButton.addActionListener(e -> searchPatient());\r\n selectPatient_selectPatientFoundButton.addActionListener(e -> search_selectPatientToDisplay());\r\n\r\n // Calendar Tab Listeners\r\n cal_chooseDateButton.addActionListener(e -> search_date());\r\n\r\n // Payment Dialog Listeners\r\n payment_payButton.addActionListener(e -> payment_pay());\r\n\r\n }", "protected void init() {\n\t\tinitApplicationData.init();\n\t\t//\n\t\tsecurityService.setSystemAuthentication();\n\t\t//\n\t\ttry {\n\t\t\tIdmIdentityDto identityAdmin = this.identityService.getByUsername(InitApplicationData.ADMIN_USERNAME);\n\t\t\t//\n\t\t\tIdmTreeTypeDto treeType = treeTypeService.getByCode(InitApplicationData.DEFAULT_TREE_TYPE);\n\t\t\tPage<IdmTreeNodeDto> rootsList = treeNodeService.findRoots(treeType.getId(), PageRequest.of(0, 1));\n\t\t\tIdmTreeNodeDto rootOrganization = null;\n\t\t\tif (!rootsList.getContent().isEmpty()) {\n\t\t\t\trootOrganization = rootsList.getContent().get(0);\n\t\t\t} else {\n\t\t\t\tIdmTreeNodeDto organizationRoot = new IdmTreeNodeDto();\n\t\t\t\torganizationRoot.setCode(\"root\");\n\t\t\t\torganizationRoot.setName(\"Organization\");\n\t\t\t\torganizationRoot.setTreeType(treeTypeService.getByCode(InitApplicationData.DEFAULT_TREE_TYPE).getId());\n\t\t\t\torganizationRoot = this.treeNodeService.save(organizationRoot);\n\t\t\t}\n\t\t\t//\n\t\t\tif (!configurationService.getBooleanValue(PARAMETER_DEMO_DATA_CREATED, false)) {\n\t\t\t\tLOG.info(\"Creating demo data ...\");\t\t\n\t\t\t\t//\n\t\t\t\t// create default password policy for validate\n\t\t\t\tIdmPasswordPolicyDto passValidate = null;\n\t\t\t\ttry {\n\t\t\t\t\tpassValidate = this.passwordPolicyService.getDefaultPasswordPolicy(IdmPasswordPolicyType.VALIDATE);\n\t\t\t\t} catch (ResultCodeException e) {\n\t\t\t\t\t// nothing, password policy for validate not exist\n\t\t\t\t}\n\t\t\t\t// default password policy not exist, try to found by name\n\t\t\t\tif (passValidate == null) {\n\t\t\t\t\tpassValidate = this.passwordPolicyService.findOneByName(\"DEFAULT_VALIDATE_POLICY\");\n\t\t\t\t}\n\t\t\t\t// if password policy still not exist create default password policy\n\t\t\t\tif (passValidate == null) {\n\t\t\t\t\tpassValidate = new IdmPasswordPolicyDto();\n\t\t\t\t\tpassValidate.setName(\"DEFAULT_VALIDATE_POLICY\");\n\t\t\t\t\tpassValidate.setDefaultPolicy(true);\n\t\t\t\t\tpassValidate.setType(IdmPasswordPolicyType.VALIDATE);\n\t\t\t\t\tpasswordPolicyService.save(passValidate);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// create default password policy for generate\n\t\t\t\tIdmPasswordPolicyDto passGenerate = null;\n\t\t\t\ttry {\n\t\t\t\t\tpassGenerate = this.passwordPolicyService.getDefaultPasswordPolicy(IdmPasswordPolicyType.GENERATE);\n\t\t\t\t} catch (ResultCodeException e) {\n\t\t\t\t\t// nothing, password policy for generate password not exist\n\t\t\t\t}\n\t\t\t\t// try to found password policy by name\n\t\t\t\tif (passGenerate == null) {\n\t\t\t\t\tpassGenerate = this.passwordPolicyService.findOneByName(\"DEFAULT_GENERATE_POLICY\");\n\t\t\t\t}\n\t\t\t\t// if still not exist create default generate password policy\n\t\t\t\tif (passGenerate == null) {\n\t\t\t\t\tpassGenerate = new IdmPasswordPolicyDto();\n\t\t\t\t\tpassGenerate.setName(\"DEFAULT_GENERATE_POLICY\");\n\t\t\t\t\tpassGenerate.setDefaultPolicy(true);\n\t\t\t\t\tpassGenerate.setType(IdmPasswordPolicyType.GENERATE);\n\t\t\t\t\tpassGenerate.setMinLowerChar(2);\n\t\t\t\t\tpassGenerate.setMinNumber(2);\n\t\t\t\t\tpassGenerate.setMinSpecialChar(2);\n\t\t\t\t\tpassGenerate.setMinUpperChar(2);\n\t\t\t\t\tpassGenerate.setMinPasswordLength(8);\n\t\t\t\t\tpassGenerate.setMaxPasswordLength(12);\n\t\t\t\t\tpasswordPolicyService.save(passGenerate);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// role may exists from another module initialization\n\t\t\t\tIdmRoleDto role1 = this.roleService.getByCode(DEFAULT_ROLE_NAME);\n\t\t\t\tif (role1 == null) {\n\t\t\t\t\trole1 = new IdmRoleDto();\n\t\t\t\t\trole1.setCode(DEFAULT_ROLE_NAME);\n\t\t\t\t\trole1 = this.roleService.save(role1);\n\t\t\t\t}\n\t\t\t\t// self policy\n\t\t\t\tIdmAuthorizationPolicyDto selfPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfPolicy.setPermissions(\n\t\t\t\t\t\tIdmBasePermission.AUTOCOMPLETE, \n\t\t\t\t\t\tIdmBasePermission.READ, \n\t\t\t\t\t\tIdentityBasePermission.PASSWORDCHANGE, \n\t\t\t\t\t\tIdentityBasePermission.CHANGEPERMISSION);\n\t\t\t\tselfPolicy.setRole(role1.getId());\n\t\t\t\tselfPolicy.setGroupPermission(CoreGroupPermission.IDENTITY.getName());\n\t\t\t\tselfPolicy.setAuthorizableType(IdmIdentity.class.getCanonicalName());\n\t\t\t\tselfPolicy.setEvaluator(SelfIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfPolicy);\n\t\t\t\t// read identity roles by identity\n\t\t\t\tIdmAuthorizationPolicyDto identityRolePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tidentityRolePolicy.setRole(role1.getId());\n\t\t\t\tidentityRolePolicy.setGroupPermission(CoreGroupPermission.IDENTITYROLE.getName());\n\t\t\t\tidentityRolePolicy.setAuthorizableType(IdmIdentityRole.class.getCanonicalName());\n\t\t\t\tidentityRolePolicy.setEvaluator(IdentityRoleByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(identityRolePolicy);\t\t\t\t\n\t\t\t\t// read identity contracts by identity\n\t\t\t\tIdmAuthorizationPolicyDto identityContractPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tidentityContractPolicy.setRole(role1.getId());\n\t\t\t\tidentityContractPolicy.setGroupPermission(CoreGroupPermission.IDENTITYCONTRACT.getName());\n\t\t\t\tidentityContractPolicy.setAuthorizableType(IdmIdentityContract.class.getCanonicalName());\n\t\t\t\tidentityContractPolicy.setEvaluator(IdentityContractByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(identityContractPolicy);\n\t\t\t\t// read contract positions by contract\n\t\t\t\tIdmAuthorizationPolicyDto contractPositionPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcontractPositionPolicy.setRole(role1.getId());\n\t\t\t\tcontractPositionPolicy.setGroupPermission(CoreGroupPermission.CONTRACTPOSITION.getName());\n\t\t\t\tcontractPositionPolicy.setAuthorizableType(IdmContractPosition.class.getCanonicalName());\n\t\t\t\tcontractPositionPolicy.setEvaluator(ContractPositionByIdentityContractEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(contractPositionPolicy);\n\t\t\t\t// read contract guarantees by identity contract\n\t\t\t\tIdmAuthorizationPolicyDto contractGuaranteePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcontractGuaranteePolicy.setRole(role1.getId());\n\t\t\t\tcontractGuaranteePolicy.setGroupPermission(CoreGroupPermission.CONTRACTGUARANTEE.getName());\n\t\t\t\tcontractGuaranteePolicy.setAuthorizableType(IdmContractGuarantee.class.getCanonicalName());\n\t\t\t\tcontractGuaranteePolicy.setEvaluator(ContractGuaranteeByIdentityContractEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(contractGuaranteePolicy);\n\t\t\t\t// only autocomplete roles that can be requested\n\t\t\t\tIdmAuthorizationPolicyDto applyForPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tapplyForPolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tapplyForPolicy.setRole(role1.getId());\n\t\t\t\tapplyForPolicy.setGroupPermission(CoreGroupPermission.ROLE.getName());\n\t\t\t\tapplyForPolicy.setAuthorizableType(IdmRole.class.getCanonicalName());\n\t\t\t\tapplyForPolicy.setEvaluator(RoleCanBeRequestedEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(applyForPolicy);\n\t\t\t\t// role requests by identity\n\t\t\t\tIdmAuthorizationPolicyDto roleRequestByIdentityPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\troleRequestByIdentityPolicy.setRole(role1.getId());\n\t\t\t\troleRequestByIdentityPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\troleRequestByIdentityPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\troleRequestByIdentityPolicy.setEvaluator(RoleRequestByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(roleRequestByIdentityPolicy);\n\t\t\t\t// self role requests\n\t\t\t\tIdmAuthorizationPolicyDto selfRoleRequestPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfRoleRequestPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.UPDATE, IdmBasePermission.CREATE, IdmBasePermission.DELETE);\n\t\t\t\tselfRoleRequestPolicy.setRole(role1.getId());\n\t\t\t\tselfRoleRequestPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\tselfRoleRequestPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\tselfRoleRequestPolicy.setEvaluator(SelfRoleRequestEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfRoleRequestPolicy);\n\t\t\t\t// role rerquests in approval\n\t\t\t\tIdmAuthorizationPolicyDto roleRequestByWfPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\troleRequestByWfPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.UPDATE);\n\t\t\t\troleRequestByWfPolicy.setRole(role1.getId());\n\t\t\t\troleRequestByWfPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\troleRequestByWfPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\troleRequestByWfPolicy.setEvaluator(RoleRequestByWfInvolvedIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(roleRequestByWfPolicy);\n\t\t\t\t// tree node - autocomplete\n\t\t\t\tIdmAuthorizationPolicyDto treeNodePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\ttreeNodePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\ttreeNodePolicy.setRole(role1.getId());\n\t\t\t\ttreeNodePolicy.setGroupPermission(CoreGroupPermission.TREENODE.getName());\n\t\t\t\ttreeNodePolicy.setAuthorizableType(IdmTreeNode.class.getCanonicalName());\n\t\t\t\ttreeNodePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(treeNodePolicy);\n\t\t\t\t// tree type - autocomplete all\n\t\t\t\tIdmAuthorizationPolicyDto treeTypePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\ttreeTypePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\ttreeTypePolicy.setRole(role1.getId());\n\t\t\t\ttreeTypePolicy.setGroupPermission(CoreGroupPermission.TREETYPE.getName());\n\t\t\t\ttreeTypePolicy.setAuthorizableType(IdmTreeType.class.getCanonicalName());\n\t\t\t\ttreeTypePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(treeTypePolicy);\n\t\t\t\t// workflow task read and execute\n\t\t\t\tIdmAuthorizationPolicyDto workflowTaskPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tworkflowTaskPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.EXECUTE);\n\t\t\t\tworkflowTaskPolicy.setRole(role1.getId());\n\t\t\t\tworkflowTaskPolicy.setGroupPermission(CoreGroupPermission.WORKFLOWTASK.getName());\n\t\t\t\tworkflowTaskPolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(workflowTaskPolicy);\n\t\t\t\t// role catalogue - autocomplete\n\t\t\t\tIdmAuthorizationPolicyDto cataloguePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcataloguePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tcataloguePolicy.setRole(role1.getId());\n\t\t\t\tcataloguePolicy.setGroupPermission(CoreGroupPermission.ROLECATALOGUE.getName());\n\t\t\t\tcataloguePolicy.setAuthorizableType(IdmRoleCatalogue.class.getCanonicalName());\n\t\t\t\tcataloguePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(cataloguePolicy);\n\t\t\t\t// autocomplete profile pictures\n\t\t\t\tIdmAuthorizationPolicyDto selfProfilePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfProfilePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tselfProfilePolicy.setRole(role1.getId());\n\t\t\t\tselfProfilePolicy.setGroupPermission(CoreGroupPermission.PROFILE.getName());\n\t\t\t\tselfProfilePolicy.setAuthorizableType(IdmProfile.class.getCanonicalName());\n\t\t\t\tselfProfilePolicy.setEvaluator(SelfProfileEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfProfilePolicy);\n\t\t\t\t//\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", role1.getId()));\n\t\t\t\t//\n\t\t\t\tIdmRoleDto role2 = new IdmRoleDto();\n\t\t\t\trole2.setCode(\"customRole\");\n\t\t\t\trole2.setCanBeRequested(true);\n\t\t\t\t// TODO: subroles are disabled for now\n\t\t\t\t//List<IdmRoleComposition> subRoles = new ArrayList<>();\n\t\t\t\t//subRoles.add(new IdmRoleComposition(role2, superAdminRole));\n\t\t\t\t//role2.setSubRoles(subRoles);\n\t\t\t\trole2 = this.roleService.save(role2);\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", role2.getId()));\n\t\t\t\t//\n\t\t\t\tIdmRoleDto roleManager = new IdmRoleDto();\n\t\t\t\troleManager.setCode(\"manager\");\n\t\t\t\troleManager.setCanBeRequested(true);\n\t\t\t\troleManager = this.roleService.save(roleManager);\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", roleManager.getId()));\n\t\t\t\t//\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity = new IdmIdentityDto();\n\t\t\t\tidentity.setUsername(\"john\");\n\t\t\t\tidentity.setPassword(new GuardedString(\"john\"));\n\t\t\t\tidentity.setFirstName(\"John\");\n\t\t\t\tidentity.setLastName(\"Doe\");\n\t\t\t\tidentity.setEmail(\"john.doe@bcvsolutions.eu\");\n\t\t\t\tidentity = this.identityService.save(identity);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity.getId()));\n\t\t\t\t//\n\t\t\t\t// create prime contract\n\t\t\t\tIdmIdentityContractDto identityContract = identityContractService.getPrimeContract(identity.getId());\n\t\t\t\tif (identityContract == null) {\n\t\t\t\t\tidentityContract = identityContractService.prepareMainContract(identity.getId());\n\t\t\t\t\tidentityContract = identityContractService.save(identityContract);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\tIdmIdentityRoleDto identityRole1 = new IdmIdentityRoleDto();\n\t\t\t\tidentityRole1.setIdentityContract(identityContract.getId());\n\t\t\t\tidentityRole1.setRole(role1.getId());\n\t\t\t\tidentityRole1 = identityRoleService.save(identityRole1);\n\t\t\t\t//\n\t\t\t\tIdmIdentityRoleDto identityRole2 = new IdmIdentityRoleDto();\n\t\t\t\tidentityRole2.setIdentityContract(identityContract.getId());\n\t\t\t\tidentityRole2.setRole(role2.getId());\n\t\t\t\tidentityRole2 = identityRoleService.save(identityRole2);\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity2 = new IdmIdentityDto();\n\t\t\t\tidentity2.setUsername(\"jane\");\n\t\t\t\tidentity2.setFirstName(\"Jane\");\n\t\t\t\tidentity2.setPassword(new GuardedString(\"jane\"));\n\t\t\t\tidentity2.setLastName(\"Doe\");\n\t\t\t\tidentity2.setEmail(\"jane.doe@bcvsolutions.eu\");\n\t\t\t\tidentity2 = this.identityService.save(identity2);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity2.getId()));\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity3 = new IdmIdentityDto();\n\t\t\t\tidentity3.setUsername(\"novak\");\n\t\t\t\tidentity3.setFirstName(\"Jan\");\n\t\t\t\tidentity3.setPassword(new GuardedString(\"novak\"));\n\t\t\t\tidentity3.setLastName(\"Novák\");\n\t\t\t\tidentity3.setEmail(\"jan.novak@bcvsolutions.eu\");\n\t\t\t\tidentity3 = this.identityService.save(identity3);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity3.getId()));\n\t\t\t\t//\n\t\t\t\tIdmTreeNodeDto organization1 = new IdmTreeNodeDto();\n\t\t\t\torganization1.setCode(\"one\");\n\t\t\t\torganization1.setName(\"Organization One\");\n\t\t\t\torganization1.setParent(rootOrganization.getId());\n\t\t\t\torganization1.setTreeType(treeType.getId());\n\t\t\t\torganization1 = this.treeNodeService.save(organization1);\n\t\t\t\t//\n\t\t\t\tIdmTreeNodeDto organization2 = new IdmTreeNodeDto();\n\t\t\t\torganization2.setCode(\"two\");\n\t\t\t\torganization2.setName(\"Organization Two\");\n\t\t\t\torganization2.setParent(rootOrganization.getId());\n\t\t\t\torganization2.setTreeType(treeType.getId());\n\t\t\t\torganization2 = this.treeNodeService.save(organization2);\n\t\t\t\t//\n\t\t\t\tIdmIdentityContractDto identityWorkPosition = new IdmIdentityContractDto();\n\t\t\t\tidentityWorkPosition.setIdentity(identityAdmin.getId());\n\t\t\t\tidentityWorkPosition.setWorkPosition(organization2.getId());\n\t\t\t\tidentityWorkPosition = identityContractService.save(identityWorkPosition);\n\t\t\t\tIdmContractGuaranteeDto contractGuarantee = new IdmContractGuaranteeDto();\n\t\t\t\tcontractGuarantee.setIdentityContract(identityWorkPosition.getId());\n\t\t\t\tcontractGuarantee.setGuarantee(identity2.getId());\n\t\t\t\tcontractGuaranteeService.save(contractGuarantee);\n\t\t\t\t//\n\t\t\t\tLOG.info(\"Demo data was created.\");\n\t\t\t\t//\t\t\t\t\n\t\t\t\tconfigurationService.setBooleanValue(PARAMETER_DEMO_DATA_CREATED, true);\n\t\t\t\t//\n\t\t\t\t// demo eav identity form\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto letter = new IdmFormAttributeDto();\n\t\t\t\tletter.setCode(FORM_ATTRIBUTE_LETTER);\n\t\t\t\tletter.setName(\"Favorite letter\");\n\t\t\t\tletter.setPlaceholder(\"Character\");\n\t\t\t\tletter.setDescription(\"Some favorite character\");\n\t\t\t\tletter.setPersistentType(PersistentType.CHAR);\n\t\t\t\tletter.setRequired(true);\n\t\t\t\tletter = formService.saveAttribute(IdmIdentity.class, letter);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto phone = new IdmFormAttributeDto();\n\t\t\t\tphone.setCode(FORM_ATTRIBUTE_PHONE);\n\t\t\t\tphone.setName(\"Phone\");\n\t\t\t\tphone.setDescription(\"Additional identitiy's phone\");\n\t\t\t\tphone.setPersistentType(PersistentType.TEXT);\n\t\t\t\tphone = formService.saveAttribute(IdmIdentity.class, phone);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto description = new IdmFormAttributeDto();\n\t\t\t\tdescription.setCode(\"description\");\n\t\t\t\tdescription.setName(\"Description\");\n\t\t\t\tdescription.setDescription(\"Some longer optional text (2000 characters)\");\n\t\t\t\tdescription.setPersistentType(PersistentType.TEXT);\n\t\t\t\tdescription.setFaceType(BaseFaceType.TEXTAREA);\n\t\t\t\tdescription = formService.saveAttribute(IdmIdentity.class, description);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto rich = new IdmFormAttributeDto();\n\t\t\t\trich.setCode(\"rich\");\n\t\t\t\trich.setName(\"RichText\");\n\t\t\t\trich.setDescription(\"Some rich text (2000 characters)\");\n\t\t\t\trich.setPersistentType(PersistentType.TEXT);\n\t\t\t\tdescription.setFaceType(BaseFaceType.RICHTEXTAREA);\n\t\t\t\trich = formService.saveAttribute(IdmIdentity.class, rich);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto sure = new IdmFormAttributeDto();\n\t\t\t\tsure.setCode(\"sure\");\n\t\t\t\tsure.setName(\"Registration\");\n\t\t\t\tsure.setPersistentType(PersistentType.BOOLEAN);\n\t\t\t\tsure = formService.saveAttribute(IdmIdentity.class, sure);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto intNumber = new IdmFormAttributeDto();\n\t\t\t\tintNumber.setCode(\"intNumber\");\n\t\t\t\tintNumber.setName(\"Int number\");\n\t\t\t\tintNumber.setPersistentType(PersistentType.INT);\n\t\t\t\tintNumber = formService.saveAttribute(IdmIdentity.class, intNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto longNumber = new IdmFormAttributeDto();\n\t\t\t\tlongNumber.setCode(\"longNumber\");\n\t\t\t\tlongNumber.setName(\"Long number\");\n\t\t\t\tlongNumber.setPersistentType(PersistentType.LONG);\n\t\t\t\tlongNumber = formService.saveAttribute(IdmIdentity.class, longNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto doubleNumber = new IdmFormAttributeDto();\n\t\t\t\tdoubleNumber.setCode(\"doubleNumber\");\n\t\t\t\tdoubleNumber.setName(\"Double number\");\n\t\t\t\tdoubleNumber.setPersistentType(PersistentType.DOUBLE);\n\t\t\t\tdoubleNumber = formService.saveAttribute(IdmIdentity.class, doubleNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto currency = new IdmFormAttributeDto();\n\t\t\t\tcurrency.setCode(\"currency\");\n\t\t\t\tcurrency.setName(\"Price\");\n\t\t\t\tcurrency.setPersistentType(PersistentType.DOUBLE);\n\t\t\t\tcurrency.setFaceType(BaseFaceType.CURRENCY);\t\t\t\n\t\t\t\tcurrency = formService.saveAttribute(IdmIdentity.class, currency);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto date = new IdmFormAttributeDto();\n\t\t\t\tdate.setCode(FORM_ATTRIBUTE_DATE);\n\t\t\t\tdate.setName(\"Date\");\n\t\t\t\tdate.setPersistentType(PersistentType.DATE);\n\t\t\t\tdate.setRequired(true);\n\t\t\t\tdate.setDescription(\"Important date\");\n\t\t\t\tdate = formService.saveAttribute(IdmIdentity.class, date);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto datetime = new IdmFormAttributeDto();\n\t\t\t\tdatetime.setCode(FORM_ATTRIBUTE_DATETIME);\n\t\t\t\tdatetime.setName(\"Date and time\");\n\t\t\t\tdatetime.setPersistentType(PersistentType.DATETIME);\n\t\t\t\tdatetime = formService.saveAttribute(IdmIdentity.class, datetime);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto uuid = new IdmFormAttributeDto();\n\t\t\t\tuuid.setCode(FORM_ATTRIBUTE_UUID);\n\t\t\t\tuuid.setName(\"UUID\");\n\t\t\t\tuuid.setDescription(\"Some uuid value\");\n\t\t\t\tuuid.setPersistentType(PersistentType.UUID);\n\t\t\t\tuuid = formService.saveAttribute(IdmIdentity.class, uuid);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto webPages = new IdmFormAttributeDto();\n\t\t\t\twebPages.setCode(FORM_ATTRIBUTE_WWW);\n\t\t\t\twebPages.setName(\"WWW\");\n\t\t\t\twebPages.setDescription(\"Favorite web pages (every line in new value)\");\n\t\t\t\twebPages.setPersistentType(PersistentType.TEXT);\n\t\t\t\twebPages.setMultiple(true);\n\t\t\t\twebPages = formService.saveAttribute(IdmIdentity.class, webPages);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto password = new IdmFormAttributeDto();\n\t\t\t\tpassword.setCode(FORM_ATTRIBUTE_PASSWORD);\n\t\t\t\tpassword.setName(\"Custom password\");\n\t\t\t\tpassword.setPersistentType(PersistentType.TEXT);\n\t\t\t\tpassword.setConfidential(true);\n\t\t\t\tpassword.setDescription(\"Test password\");\n\t\t\t\tpassword = formService.saveAttribute(IdmIdentity.class, password);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto byteArray = new IdmFormAttributeDto();\n\t\t\t\tbyteArray.setCode(\"byteArray\");\n\t\t\t\tbyteArray.setName(\"Byte array\");\n\t\t\t\tbyteArray.setPersistentType(PersistentType.BYTEARRAY);\n\t\t\t\tbyteArray.setConfidential(false);\n\t\t\t\tbyteArray.setDescription(\"Test byte array\");\n\t\t\t\tbyteArray.setPlaceholder(\"or image :-)\");\n\t\t\t\tbyteArray = formService.saveAttribute(IdmIdentity.class, byteArray);\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<IdmFormValueDto> values = new ArrayList<>();\t\t\t\t\n\t\t\t\tIdmFormValueDto phoneValue = new IdmFormValueDto();\n\t\t\t\tphoneValue.setFormAttribute(phone.getId());\n\t\t\t\tphoneValue.setStringValue(\"12345679\");\n\t\t\t\tvalues.add(phoneValue);\n\t\t\t\t\n\t\t\t\tformService.saveValues(identity.getId(), IdmIdentity.class, null, values);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav role form\n\t\t\t\tIdmFormAttributeDto roleExt = new IdmFormAttributeDto();\n\t\t\t\troleExt.setCode(\"extAttr\");\n\t\t\t\troleExt.setName(\"Ext.attr\");\n\t\t\t\troleExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\troleExt.setConfidential(false);\n\t\t\t\troleExt.setDescription(\"Role's custom extended attribute\");\n\t\t\t\t\n\t\t\t\troleExt = formService.saveAttribute(IdmRole.class, roleExt);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav tree node form\n\t\t\t\tIdmFormAttributeDto treeNodeExt = new IdmFormAttributeDto();\n\t\t\t\ttreeNodeExt.setCode(\"extAttr\");\n\t\t\t\ttreeNodeExt.setName(\"Ext.attr\");\n\t\t\t\ttreeNodeExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\ttreeNodeExt.setConfidential(false);\n\t\t\t\ttreeNodeExt.setDescription(\"Tree node's custom extended attribute\");\n\t\t\t\t\n\t\t\t\ttreeNodeExt = formService.saveAttribute(IdmTreeNode.class, treeNodeExt);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav identity contract's form\n\t\t\t\tIdmFormAttributeDto identityContractExt = new IdmFormAttributeDto();\n\t\t\t\tidentityContractExt.setCode(\"extAttr\");\n\t\t\t\tidentityContractExt.setName(\"Ext.attr\");\n\t\t\t\tidentityContractExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\tidentityContractExt.setConfidential(false);\n\t\t\t\tidentityContractExt.setDescription(\"Identity contract's custom extended attribute\");\n\t\t\t\t\n\t\t\t\tidentityContractExt = formService.saveAttribute(IdmIdentityContract.class, identityContractExt);\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tLOG.warn(\"Demo data was not created\", ex);\n\t\t} finally {\n\t\t\tSecurityContextHolder.clearContext();\n\t\t}\n\t}", "private void initializeStoreFromPersistedData() throws IOException\r\n {\r\n loadKeys();\r\n\r\n if (keyHash.isEmpty())\r\n {\r\n dataFile.reset();\r\n }\r\n else\r\n {\r\n final boolean isOk = checkKeyDataConsistency(false);\r\n if (!isOk)\r\n {\r\n keyHash.clear();\r\n keyFile.reset();\r\n dataFile.reset();\r\n log.warn(\"{0}: Corruption detected. Resetting data and keys files.\", logCacheName);\r\n }\r\n else\r\n {\r\n synchronized (this)\r\n {\r\n startupSize = keyHash.size();\r\n }\r\n }\r\n }\r\n }", "@FXML\r\n\tprivate void initialize() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tif (transactionList != null) {\r\n\t\t\tfillTable();\r\n\t\t}\r\n\t}", "public createsessions() {\n initComponents();\n loadlec();\n loadlec2();\n\n // subcode() ;\n loadsubname();\n loadsubname1();\n\n loadtag();\n loadtag2();\n\n loadgrpid();\n loadgrpid2();\n\n loadsubgrpid1();\n loadsubgrpid2();\n\n }", "public void beginInitialization() {\n SQLiteDatabase db = this.helper.getWritableDatabase();\n db.beginTransaction();\n populateMeasurementVersionsCache(db);\n }", "public void initTab(ArrayList<CircuitUsageModel> modelList) {\n\t\ttabHost = getTabHost();\n\t\tResources res = getResources();\n\n\t\t// energy\n\t\tenergySpec = tabHost.newTabSpec(\"energy\");\n\t\tenergySpec.setIndicator(getString(R.string.energy),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_energy));\n\t\t// power\n\t\tpowerSpec = tabHost.newTabSpec(\"power\");\n\t\tpowerSpec.setIndicator(getString(R.string.power),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_power));\n\t\t// credit\n\t\tcreditSpec = tabHost.newTabSpec(\"credit\");\n\t\tcreditSpec.setIndicator(getString(R.string.credit),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_credit));\n\n\t\t// set tab content\n\t\tsetTabContent(modelList);\n\t\t\n\t\t// auto refresh\n\t\tautoRefresh();\n\t}", "private void initialize() {\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(createInfoTable(), BorderLayout.CENTER);\r\n\r\n\t\t// load the data\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tEnumeration names = props.propertyNames();\r\n\t\t\twhile (names.hasMoreElements()) {\r\n\t\t\t\tString name = (String) names.nextElement();\r\n\t\t\t\tString value = props.getProperty(name);\r\n\t\t\t\tObject[] row = new Object[2];\r\n\t\t\t\trow[0] = name;\r\n\t\t\t\trow[1] = value;\r\n\t\t\t\tm_model.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}", "@Override\n public void init() {\n super.init();\n\n setTheme(\"xtreemfs\");\n\n initLayout();\n initTable();\n initFileDetails();\n initButtons();\n initFilteringControls();\n initUploadState();\n }", "private void init()\n {\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n GWikiElement page = wikiContext.getWikiWeb().getElement(pageId);\n WorkflowPopupActionBean.this.page = page;\n\n // check if dependent objects exists\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(page.getElementInfo());\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, 2);\n }\n return null;\n }\n\n /**\n * Recursive fetch of child elements\n */\n private void getSubpagesRec(GWikiElementInfo parent, int curDepth)\n {\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(parent);\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, ++curDepth);\n }\n }\n });\n }", "public void initialize() {\n sceneSwitch = SceneSwitch.getInstance();\n sceneSwitch.addScene(addPartToJobStackPane, NavigationModel.ADD_PART_TO_JOB_ID);\n usernameLbl.setText(DBLogic.getDBInstance().getUsername());\n usertypeLbl.setText(DBLogic.getDBInstance().getUser_type());\n jobReference = jobReference.getInstance();\n partHashMap = new HashMap<>();\n refreshList();\n }", "private void createSslStartTlsKeystoreSection( FormToolkit toolkit, Composite parent )\n {\n // Creation of the section, compacted\n Section section = toolkit.createSection( parent, Section.TITLE_BAR | Section.TWISTIE | Section.COMPACT );\n section.setText( Messages.getString( \"LdapLdapsServersPage.SslStartTlsKeystore\" ) ); //$NON-NLS-1$\n section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );\n Composite composite = toolkit.createComposite( section );\n toolkit.paintBordersFor( composite );\n GridLayout glayout = new GridLayout( 3, false );\n composite.setLayout( glayout );\n section.setClient( composite );\n\n // Keystore File Text\n toolkit.createLabel( composite, Messages.getString( \"LdapLdapsServersPage.Keystore\" ) ); //$NON-NLS-1$\n keystoreFileText = toolkit.createText( composite, \"\" ); //$NON-NLS-1$\n setGridDataWithDefaultWidth( keystoreFileText, new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n keystoreFileBrowseButton = toolkit.createButton( composite,\n Messages.getString( \"LdapLdapsServersPage.Browse\" ), SWT.PUSH ); //$NON-NLS-1$\n\n // Password Text\n toolkit.createLabel( composite, Messages.getString( \"LdapLdapsServersPage.Password\" ) ); //$NON-NLS-1$\n keystorePasswordText = toolkit.createText( composite, \"\" ); //$NON-NLS-1$\n keystorePasswordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );\n keystorePasswordText.setEchoChar( '\\u2022' );\n\n // Show Password Checkbox\n toolkit.createLabel( composite, \"\" ); //$NON-NLS-1$\n showPasswordCheckbox = toolkit.createButton( composite,\n Messages.getString( \"LdapLdapsServersPage.ShowPassword\" ), SWT.CHECK ); //$NON-NLS-1$\n showPasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n showPasswordCheckbox.setSelection( false );\n }", "private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}", "private void initHomePage() {\r\n welcomePage.setSpacing(30);\r\n HTML welcomeLabel = new HTML(\"<h1 style='color:black;font-family:verdana; font-weight:bold;text-decoration:none;font-style:normal;'>Welcome to DiVA <font size='3'>omics </h1>\");\r\n welcomeLabel.setWidth(\"400px\");\r\n VerticalPanel leftSideLayout = new VerticalPanel();\r\n welcomePage.add(leftSideLayout);\r\n welcomePage.setCellVerticalAlignment(leftSideLayout, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(leftSideLayout, VerticalPanel.ALIGN_RIGHT);\r\n leftSideLayout.add(welcomeLabel);\r\n leftSideLayout.setSpacing(10);\r\n\r\n HTML ieErrorLabel = new HTML(\"<p align=\\\"left\\\" style=\\\"margin-left:0px;color:red;\\\"><font size=\\\"3\\\">It looks like you are using an old version of Internet Explorer. Unfortunatly Internet Explorer 6,7,8,9 and 10 are not supported in the curent version of DiVA. Please try other browsers.</font></p>\");\r\n ieErrorLabel.setWidth(\"400px\");\r\n\r\n HTML infoLabel = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">Start using DiVA by selecting a dataset</font></p>\");\r\n infoLabel.setWidth(\"400px\");\r\n\r\n HorizontalPanel selectionLayout = new HorizontalPanel();\r\n\r\n if (oldIE) {\r\n leftSideLayout.add(ieErrorLabel);\r\n } else {\r\n leftSideLayout.add(infoLabel);\r\n leftSideLayout.add(selectionLayout);\r\n selectionLayout.setWidth(\"400px\");\r\n selectionLayout.add(tempSelectDatasetList);\r\n }\r\n\r\n tempSelectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 400px;border-radius: 5px;\");\r\n\r\n leftSideLayout.setCellVerticalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_MIDDLE);\r\n leftSideLayout.setCellHorizontalAlignment(tempSelectDatasetList, VerticalPanel.ALIGN_LEFT);\r\n \r\n HTML info2Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:20px;margin-left:0px;color:#585858;line-height: 200%;\\\"><font size=\\\"2\\\">Getting started tutorial available <a target=\\\"_blank\\\" href='\" +\"tutorial/diva_tutorial.pdf\" + \"'>here</a>. </font><br/><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n leftSideLayout.add(info2Label);\r\n\r\n// HTML info3Label = new HTML(\"<p align=\\\"justify\\\" style=\\\"margin-top:5px;margin-left:0px;color:#585858;\\\"><font size=\\\"2\\\">More information available <a target=\\\"_blank\\\" href='\" + \"http://diva-omics-demo.googlecode.com/\" + \"'>here</a>. </font></p>\");\r\n// leftSideLayout.add(info3Label);\r\n\r\n Image screenImg = new Image(\"images/divascreen1.png\");\r\n screenImg.getElement().setAttribute(\"style\", \"width:640px;\");\r\n\r\n welcomePage.add(screenImg);\r\n welcomePage.setCellVerticalAlignment(screenImg, VerticalPanel.ALIGN_MIDDLE);\r\n welcomePage.setCellHorizontalAlignment(screenImg, VerticalPanel.ALIGN_CENTER);\r\n tempSelectDatasetList.setFocus(true);\r\n\r\n }", "private void init() {\n recyclerView = findViewById(R.id.mRecyclerView);\n noBudgetData = findViewById(R.id.NoData);\n noDataGif = findViewById(R.id.NoDataGif);\n Amount = findViewById(R.id.Amount);\n WalletName = findViewById(R.id.WalletName);\n TotalCost = findViewById(R.id.TotalCost);\n CostHeading = findViewById(R.id.CostHeading);\n CurrentBalance = findViewById(R.id.CurrentBalance);\n toolbar = findViewById(R.id.tool_bar);\n mainLayout = findViewById(R.id.home_layout);\n editButton = findViewById(R.id.editIcon);\n ux = new UX(this, mainLayout);\n tools = new Tools(this);\n databaseHelper = DatabaseHelper.getHelper(this);\n }", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "private void init() {\n clearCaches();\n }", "public void initialize(){\n\t\t\t\n\t\t\t//Main Frame\n\t\t\tmainJFrame = new JFrame();\n\t\t\tmainJTabbedPane = new JTabbedPane();\n\t\t\tscrollPane = new JScrollPane();\n\t\t\tloginJPanel = new JPanel();\n\t\t\tcustJTabbedPane = new JTabbedPane();\n\t\t\tsupplyJTabbedPane = new JTabbedPane();\n\t\t\tprodJTabbedPane = new JTabbedPane();\n\t\t\tinvJTabbedPane = new JTabbedPane();\n\t\t\torderJTabbedPane = new JTabbedPane();\n\t\t\taccessJTabbedPane = new JTabbedPane();\n\t\t\tproflossJTabbedPane = new JTabbedPane();\n\t\t\t\n\t\t\t//Main Panels\n\t\t\taddCustJPanel = new JPanel();\n\t\t\tviewCustJPanel = new JPanel();\n\t\t\teditCustJPanel = new JPanel();\n\t\t\t\n\t\t\taddSupplyJPanel = new JPanel();\n\t\t\tviewSupplyJPanel = new JPanel();\n\t\t\teditSupplyJPanel = new JPanel();\n\t\t\taddProductJPanel = new JPanel();\n\t\t\teditProductJPanel = new JPanel();\n\t\t\tcreateInvJPanel = new JPanel();\n\t\t\tviewInvJPanel = new JPanel();\n\t\t\teditInvJPanel = new JPanel();\n\t\t\tcreateOrderPanel = new JPanel();\n\t\t\tviewOrderJPanel = new JPanel();\n\t\t\teditOrderJPanel = new JPanel();\n\t\t\temployeeJPanel = new JPanel();\n\t\t\tviewEmployeeJPanel = new JPanel();\n\t\t\teditEmployeeJPanel = new JPanel();\n\t\t\tproflossJPanel = new JPanel();\n\t\t\tgraphJPanel = new JPanel();\n\t\t\t\n\t\t\t//login components\n\t\t\tloginComponentsJPanel = new JPanel();\n\t\t\tloginTF = new JTextField();\n\t\t\tpasswordTF = new JPasswordField();\n\t\t\tloginBut = new JButton();\n\t\t\t\n\t\t\t//logout components\n\t\t\tlogoutComponentsJPanel = new JPanel();\n\t\t\tlogoutBut = new JButton();\n\t\t\t\n\t\t\taddMoreBtn = new JButton(\"Add Product To Invoice\");\n\t\t\tfinishBtn = new JButton(\"Confirm Invoice\");\n\t\t\tresetBtn = new JButton(\"Reset Fields\");\n\t\t\tpayAllInvoicesJButton = new JButton(\"Pay All Invoices\");\n\t\t\teditInvoiceJButton = new JButton(\"Pay Invoice by Id\");\n\t\t\teditCustomerInvoiceJButton = new JButton(\"Pay Invoices by Customer\");\n\t\t\tpayInvoiceJButton = new JButton(\"Pay Invoice\");\n\t\t\tpayInvoiceJButton = new JButton(\"Pay Invoice\");\n\t\t\tcreateOrderAddProductButton = new JButton(\"Add Product to Order\");\n\t\t\tcreateOrderConfirmOrderButton = new JButton(\"Confirm Order\");\n\t\t\tviewOrderViewAllOrdersButton = new JButton(\"View All\");\n\t\t\tviewOrderViewReceivedButton = new JButton(\"View Received Orders\");\n\t\t\tviewOrderViewUnreceivedButton = new JButton(\"View Unreceived Order\");\n\t\t\tviewOrderClearPanelButton = new JButton(\"Clear Panel\");\n\t\t\t//Order\n\t\t\tcreateOrderOrderIdTextField = new JTextField();\n\t\t\tcreateOrderSupplierIdTextField = new JTextField();\n\t\t\tcreateOrderProductIdTextField = new JTextField();\n\t\t\tcreateOrderQuantityTextField = new JTextField();\n\t\t\tcreateOrderScrollPaneTextArea = new JTextArea();\n\t\t\tviewOrderOrderIdLabel = new JLabel(\"Order ID: \");\n\t\t\tviewOrderOrderIdButton = new JButton(\"Search ID\");\n\t\t\tviewOrderSupplierIdButton = new JButton(\"Search for Supplier\");\n\t\t\tviewOrderTitleButton = new JButton(\"Search for Title\");\n\t\t\tviewOrderAuthorButton = new JButton(\"Search for Author\");\n\t\t\treceiveAllOrdersJButton = new JButton(\"Receive All Orders\");\n\t\t\teditOrderJButton = new JButton(\"Find Order by Id\");\n\t\t\teditOrderSupplierJButton = new JButton(\"Find Order by Supplier\");\n\t\t\treceiveOrderJButton = new JButton(\"Receive Order\");\n\t\t\tsaveOrderJButton = new JButton(\"Update Order\");\n\t\t\tdeleteOrderJButton = new JButton(\"Delete Order\");\n\t\t\teditDetailsJButton = new JButton(\"Select product to edit\");\n\t\t\tupdateProductJButton = new JButton(\"Update details\");\n\t\t\tdeleteStockLineJButton = new JButton(\"Delete stock line\");\n\t\t\tlineChartJButton = new JButton();\n\t\t\tpLViewButton = new JButton(\"View\");\n\t\t\tproductJButton = new JButton(\"Create New Product\");\n\t\t\tcustJButton = new JButton(\"Create New Customer\");\n\t\t\tviewCustJButton = new JButton(\"View By ID\");\n\t\t\tviewCustNameJButton = new JButton(\"View By Name\");\n\t\t\tviewAllCustJButton = new JButton(\"View All Customers\");\n\t\t\tfindCustById = new JButton(\"Find Customer\");\n\t\t\tupdateCustJButton = new JButton(\"Update Customer Details\");\n\t\t\tdeleteCustJButton = new JButton(\"Delete Customer\");\n\t\t\t//Customer Components\n\t\t\tcustIdJLabel = new JLabel(\"Enter Customer ID\");\n\t\t\tcustIdJTextField = new JTextField();\n\t\t\tcustNameJLabel = new JLabel(\"Enter Customer Name\");\n\t\t\tcustNameJTextField = new JTextField();\n\t\t\tcustAddressJLabel = new JLabel(\"Enter Customer Address\");\n\t\t\tcustAddressJTextField = new JTextField();\n\t\t\tcustEmailJLabel = new JLabel(\"Enter Customer Email\");\n\t\t\tcustEmailJTextField = new JTextField();\n\t\t\tcustPhoneJLabel = new JLabel(\"Enter Customer Phone\");\n\t\t\tcustPhoneJTextField = new JTextField();\t\n\t\t\tcustJTextArea = new JTextArea(10, 65);\n\t\t\teditCustIdCombo = new JComboBox<String>();\n\t\t\teditCustNameJLabel = new JLabel(\" Customer Name\");\n\t\t\teditCustAddressJLabel = new JLabel(\" Customer Address\");\n\t\t\teditCustEmailJLabel = new JLabel(\" Customer Email\");\n\t\t\teditCustPhoneJLabel = new JLabel(\" Customer Telephone\");\n\t\t\teditCustName = new JTextField();\n\t\t\teditCustAddress = new JTextField();\n\t\t\teditCustEmail = new JTextField();\n\t\t\teditCustPhone = new JTextField();\n\t\t\tviewCustById = new JLabel(\" Find Customer By ID: \");\n\t\t\tcustIdCombo = new JComboBox<String>();\n\t\t\tviewCustByName = new JLabel(\" Find Customer By Name\");\n\t\t\tcustNameCombo = new JComboBox<String>();\n\t\t\t\n\t\t\t//Supplier Components\n\t\t\tsupplierIdJLabel = new JLabel(\"Supplier ID\");\n\t\t\tsupplierIdJTextField = new JTextField();\n\t\t\tsupplierNameJLabel = new JLabel(\"Supplier Name\");\n\t\t\tsupplierNameJTextField = new JTextField();\n\t\t\tsupplierAddressJLabel = new JLabel(\"Supplier Address\");\n\t\t\tsupplierAddressJTextField = new JTextField();\n\t\t\tsupplierEmailJLabel= new JLabel(\"Supplier Email\");\n\t\t\tsupplierEmailJTextField = new JTextField();\n\t\t\tsupplierPhoneJLabel = new JLabel(\" Supplier Phone Number\");\n\t\t\tsupplierPhoneJTextField = new JTextField();\n\t\t\tsupplierJButton = new JButton(\"Create New Supplier\");\n\t\t\tviewSupplyJLabel = new JLabel(\" Search by Supplier ID\");\n\t\t\tsuppIdCombo = new JComboBox<String>();\n\t\t\tviewSupplyJButton = new JButton(\" View Supplier By ID\");\n\t\t\tviewSupplyNameJLabel = new JLabel(\" Search by Supplier Name: \");\n\t\t\tsuppNameCombo = new JComboBox<String>();\n\t\t\tsupplierJTextArea = new JTextArea(10, 65);\n\t\t\tviewSupplyNameJButton = new JButton(\"View Supplier By Name\");\n\t\t\tallSupplyJButton = new JButton(\"View All Suppliers\");\n\t\t\teditSuppIdCombo = new JComboBox<String>();\n\t\t\teditSupplierJButton = new JButton(\"Find Supplier\");\n\t\t\teditSuppNameJLabel = new JLabel(\" Supplier Name\");\n\t\t\teditSuppAddressJLabel = new JLabel(\" Supplier Address\");\n\t\t\teditSuppEmailJLabel = new JLabel(\" Supplier Email\");\n\t\t\teditSuppPhoneJLabel = new JLabel(\" Supplier Telephone\");\n\t\t\teditDeliveryJLabel = new JLabel(\" Edit Delivery Period\");\n\t\t\teditSupplierName = new JTextField();\n\t\t\teditSupplierAddress = new JTextField();\n\t\t\teditSupplierEmail = new JTextField();\n\t\t\teditSupplierPhone = new JTextField();\n\t\t\teditSupplierDelivery = new JTextField();\n\t\t\tsaveSupplierJButton = new JButton(\"Update Supplier\");\n\t\t\tdeleteSupplierJButton = new JButton(\"Delete Supplier\");\n\t\t\t//Employee Components\n\t\t\temployeeId = new JLabel(\"Employee ID \");\n\t\t\temployeeIdField = new JTextField();\n\t\t\temployeeName = new JLabel(\"Employee Name \");\n\t\t\temployeeNameField = new JTextField();\n\t\t\temployeeAcess = new JLabel(\"Access Level \");\n\t\t\temployeeAcessField = new JComboBox<Integer>();\n\t\t\temployeeSalary = new JLabel(\"Employee Salary\");\n\t\t\temployeeSalaryField = new JTextField();\n\t\t\temployeePassword = new JLabel(\"Employee Password\");\n\t\t\temployeePassField = new JTextField();\n\t\t\temployeeJButton = new JButton(\"Create New Employee\");\n\t\t\tviewEmpId = new JLabel(\"View By ID\");\n\t\t\tempIdCombo = new JComboBox<String>();\n\t\t\tviewEmpIdButton = new JButton(\"Search Employees\");\n\t\t\tviewEmpName = new JLabel(\"View By Name\");\n\t\t\tempNameCombo = new JComboBox<String>();\n\t\t\tviewEmpNameButton = new JButton(\"Search Employees\");\n\t\t\tviewEmpAll = new JLabel(\"View All Employees\");\n\t\t\tviewEmpAllButton = new JButton(\"View All\");\n\t\t\tempJTextArea = new JTextArea(10, 65);\n\t\t\tviewEmpIdCombo = new JComboBox<String>();\n\t\t\teditById = new JButton(\"Find Employee Details\");\n\t\t\teditEmpName = new JLabel(\" Employee Name\");\n\t\t\teditEmpNameField = new JTextField();\n\t\t\teditEmpAccess = new JLabel(\" Employee Access Level\");\n\t\t\teditEmpAccessField = new JTextField();\n\t\t\teditEmpSalary = new JLabel(\" Employee Salary\");\n\t\t\teditEmpSalaryField = new JTextField();\n\t\t\teditEmpPassword = new JLabel(\" Employee Password\");\n\t\t\teditEmpPasswordField = new JTextField();\n\t\t\tupdateEmployee = new JButton(\"Update Employee\");\n\t\t\tdeleteEmployee = new JButton(\"Delete Employee\");\n\t\t\t\n\t\t\t//Product Components\n\t\t\tprodTitle = new JLabel(\"Book Title\");\n\t\t\ttitleJTextField = new JTextField();\n\t\t\tprodAuthor = new JLabel(\"Author\");\n\t\t\tauthorJTextField = new JTextField();\n\t\t\tprodCode = new JLabel(\"Product ID \");\n\t\t\tcodeJTextField = new JTextField();\n\t\t\tprodRetail = new JLabel(\"Retail Price\");\n\t\t\tretailJTextField = new JTextField();\n\t\t\tprodCost = new JLabel(\"Cost Price\");\n\t\t\tcostJTextField = new JTextField();\n\t\t\tprodTotalStock = new JLabel(\"Current Stock\");\n\t\t\ttStockJTextField = new JTextField();\n\t\t\tprodMaxStock = new JLabel(\"Maximum Stock\");\n\t\t\tmaxJTextField = new JTextField();\n\t\t\tprodMinStock = new JLabel(\"Minimum Stock\");\n\t\t\tminJTextField = new JTextField();\n\t\t\tprodSupplierId = new JLabel(\"Supplier Id\");\n\t\t\tprodSupplierIdJTextField = new JTextField();\n\t\t\tproductJButton = new JButton(\"Create New Product\");\n\t\t\t\n\t\t\tunder5Radio = new JRadioButton(\"under 4.99\");\n\t\t\tfiveTo10Radio = new JRadioButton(\"5 - 9.99\");\n\t\t\ttenTo20Radio = new JRadioButton(\"10 - 20\");\n\t\t\tover20Radio = new JRadioButton(\"20 plus\");\n\t\t\tunder50Radio = new JRadioButton(\"under 50\");\n\t\t\tfiftyTo100Radio = new JRadioButton(\"50 - 100\");\n\t\t\thundredTo200Radio = new JRadioButton(\"100 - 200\");\n\t\t\tover200Radio = new JRadioButton(\"200 plus\");\n\n\t\t\t//edit product components\n\t\t\teditProdTitle = new JLabel(\"Book Title\");\n\t\t\teditTitleJTextField = new JTextField();\n\t\t\teditProdAuthor = new JLabel(\"Author\");\n\t\t\teditAuthorJTextField = new JTextField();\n\t\t\teditProdCode = new JLabel(\"Product ID\");\n\t\t\teditCodeJTextField = new JTextField();\n\t\t\teditProdRetail = new JLabel(\"Retail Price\");\n\t\t\teditRetailJTextField = new JTextField();\n\t\t\teditProdCost = new JLabel(\"Cost Price\");\n\t\t\teditCostJTextField = new JTextField();\n\t\t\teditProdTotalStock = new JLabel(\"Current Stock\");\n\t\t\teditStockJTextField = new JTextField();\n\t\t\teditProdMaxStock = new JLabel(\"Maximum Stock\");\n\t\t\teditMaxJTextField = new JTextField();\n\t\t\teditProdMinStock = new JLabel(\"Minimum Stock\");\n\t\t\teditMinJTextField = new JTextField();\n\t\t\teditProdSupplierId = new JLabel(\"Supplier Id\");\n\t\t\teditProdSupplierIdJTextField = new JTextField();\n\t\t\t\n\t\t\t// View Product Components\n\t\t\tproduct = new Product();\n\t\t\tviewProductDetailsPanel= new JPanel();\n\t\t\tviewProductDetails= new JPanel();\n\t\t\tpriceRange = new ButtonGroup();\n\t\t\tquantity = new ButtonGroup();\n\t\t\t\n\t\t\texistingProductTitle = new Vector<>();\n\t\t\tlistofProductTitle = new DefaultComboBoxModel<>(existingProductTitle);\n\t\t\t\n\t\t\texistingProductAuthor = new Vector<>();\n\t\t\tlistOfProductAuthor = new DefaultComboBoxModel<>(existingProductAuthor);\n\t\t\t\n\t\t\texistingEditProdId = new Vector<>();\n\t\t\tlistToEditProdIds = new DefaultComboBoxModel<>(existingEditProdId);\n\n\t\t\t//Edit Invoice Components \n\t\t\tfindInvoiceComponentsJPanel = new JPanel();\n\t\t\teditInvoiceComponentsJPanel = new JPanel();\n\t\t\teditCustomerInvoiceComponentsJPanel = new JPanel();\n\t\t\teditInvoiceProductsComponentsJPanel = new JPanel();\n\t\t\teditInvoiceByCustComponents = new JPanel();\n\t\t\teditExistingInvoiceNums = new Vector<>();\n\t\t\teditListOfInvoices = new DefaultComboBoxModel<>(editExistingInvoiceNums); //create the combo box\n\t\t\teditCustIdComboInv = new JComboBox<String>();\n\t\t\tcustomerInvoiceJTextArea = new JTextArea(10,20);\n\t\t\tproductInvoiceJTextArea = new JTextArea(10,40);\n\t\t\tallInvoicesTotalJTextField = new JTextField(\"Total Owed\");\n\t\t\teditOrderId = new JTextField(\"Edit Order Id:\");\n\t\t\teditOrderSupplier = new JTextField(\"Edit Order Customer\");\n\t\t\teditOrderReceivedStatus = new JTextField(\"\");\t\n\t\t\teditOrderAmount = new JTextField(\"Edit Order Amount\");\n\t\t\teditInvoiceEmployee = new JTextField(\"Edit Invoice Employee\");\n\t\t\teditInvoiceCustomer = new JTextField(\"Edit Invoice Customer\");\n\t\t\teditPayStatus = new JTextField(\"\");\t\n\t\t\teditInvoiceAmount = new JTextField(\"Edit Invoice Amount\");\n\t\t\t\n\t\t\t//Marc: View Customer Invoice Panel and Components\n\t\t\tviewCustomerPanel = new JPanel();\t\n\t\t\texistingInvoiceNums = new Vector<>();\n\t\t\tlistOfInvoices = new DefaultComboBoxModel<>(existingInvoiceNums); //create the combo box\n\t\t\texistingCustomerId = new Vector<>();\n\t\t\tlistOfCustomers = new DefaultComboBoxModel<>(existingCustomerId); //create the combo box\n\t\t\tempIdVector = new Vector<>();\n\t\t\tlistOfEmpIds = new DefaultComboBoxModel<>(empIdVector); //create the combo box\n\t\t\tcusIdVector = new Vector<>();\n\t\t\tlistOfCusIds = new DefaultComboBoxModel<>(cusIdVector); //create the combo box\n\t\t\tprodIdVector = new Vector<>();\n\t\t\tlistOfProdIds = new DefaultComboBoxModel<>(prodIdVector); //create the combo box\n\t\t\t//Marc: Create a new Invoice Panel\n\t\t\tcreateNewInvoicePanel = new JPanel();\n\t\t\taddMoreArrayList = new ArrayList<InvoiceProduct>();\n\t\t\ttextAreaMarc = new JTextArea();\n\t\t\tleftPanel = new JPanel();\n\t\t\trightPanel = new JPanel();\n\t\t\tinvIdLbl = new JLabel(\"Invoice Id: \");\n\t\t\temployLbl = new JLabel(\"Employee ID: \");\n\t\t\tcustId = new JLabel(\"Customer ID: \");\n\t\t\tprodId = new JLabel(\"Product ID: \");\n\t\t\tquantitylbl = new JLabel(\"Quantity: \");\n\t\t\taddMoreProducts = new ArrayList<OrderProduct>();\n\t\t\tcreateNewOrderLeftPanel = new JPanel();\n\t\t\tcreateNewOrderRightPanel = new JPanel();\n\t\t\tcreateOrderOrderIdLabel = new JLabel(\"Order ID: \");\n\t\t\tcreateOrderSupplierIdLabel = new JLabel(\"Supplier ID: \");\n\t\t\tcreateOrderProductCodeLabel = new JLabel(\"Product ID: \");\n\t\t\tcreateOrderQuantityLabel = new JLabel(\"Quantity: \");\n\t\t\t//viewOrder Panel components\n\t\t\tviewSupplierPanel = new JPanel();\n\t\t\texistingOrderIds = new Vector<>();\n\t\t\tlistOfOrders = new DefaultComboBoxModel<>(existingOrderIds); //create the combo box\n\t\t\texistingSupplierIds = new Vector<>();\n\t\t\tlistOfSuppliers = new DefaultComboBoxModel<>(existingSupplierIds); //create the combo box\n\t\t\texistingTitles = new Vector<>();\n\t\t\tlistOfTitles = new DefaultComboBoxModel<>(existingTitles); //create the combo box\n\t\t\tviewOrderOrderIdLabel = new JLabel(\"Order ID: \");\n\t\t\tviewOrderSupplierIdLabel = new JLabel(\"Supplier ID: \");\n\t\t\tviewOrderTitleLabel = new JLabel(\"Title: \");\n\t\t\tviewOrderAuthorLabel = new JLabel(\"Author: \");\n\t\t\t\n\t\t\t//Edit Order Components\n\t\t\tfindOrderComponentsJPanel = new JPanel();\n\t\t\teditOrderComponentsJPanel = new JPanel();\n\t\t\teditSupplierOrderComponentsJPanel = new JPanel();\n\t\t\tsaveOrderComponentsJPanel = new JPanel();\n\t\t\teditOrderProductsComponentsJPanel = new JPanel();\n\t\t\teditOrderBySupplierComponentsJPanel = new JPanel();\n\t\t\tsupplierOrderJTextArea = new JTextArea(10,20);\n\t\t\tproductOrderJTextArea = new JTextArea(10,40);\n\t\t\tallOrdersTotalJTextField = new JTextField(\"Total Owed\");\n\t\n\t\t\teditOrderId = new JTextField(\"Edit Order Id:\");\n\t\t\teditOrderSupplier= new JTextField(\"Edit Order Customer\");\n\t\t\teditOrderReceivedStatus = new JTextField(\"\");\n\t\t\t\n\t\t\t//P&L JTable Tab\n\t\t\tpLComponentsJPanel = new JPanel();\n\t\t\tpLJTable = new JTable(tableModel);\n\t\t\tpLJScrollPane = new JScrollPane(pLJTable);\n\t\t\tpLTotal = new JTextField();\n\t\t\tmonths = new Vector<>();\n\t\t\tlistOfMonths = new DefaultComboBoxModel<>(months); //create the combo box\n\t\t\t\n\t\t\n\t\t}", "private void myInit() {\n init_key();\n\n String business_name = System.getProperty(\"business_name\", \"Tyrol Restaurant\");\n jTextField1.setText(business_name);\n String operated_by = System.getProperty(\"operated_by\", \"Fely Romano Sanin\");\n jTextField2.setText(operated_by);\n String address = System.getProperty(\"address\", \"Mayfair place 12th Lacson St, Bacolod City\");\n jTextField3.setText(address);\n\n String tin_no = System.getProperty(\"tin_no\", \"161-107-778-000\");\n jTextField4.setText(tin_no);\n String serial_no = System.getProperty(\"serial_no\", \"\");\n jTextField5.setText(serial_no);\n String permit_no = System.getProperty(\"permit_no\", \"\");\n jTextField6.setText(permit_no);\n }", "public void initiateStore() {\r\n\t\tURLConnection urlConnection = null;\r\n\t\tBufferedReader in = null;\r\n\t\tURL dataUrl = null;\r\n\t\ttry {\r\n\t\t\tdataUrl = new URL(URL_STRING);\r\n\t\t\turlConnection = dataUrl.openConnection();\r\n\t\t\tin = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] splittedLine = inputLine.split(\";\");\r\n\t\t\t\t// an array of 4 elements, the fourth element\r\n\t\t\t\t// the first three elements are the properties of the book.\r\n\t\t\t\t// last element is the quantity.\r\n\t\t\t\tBook book = new Book();\r\n\t\t\t\tbook.setTitle(splittedLine[0]);\r\n\t\t\t\tbook.setAuthor(splittedLine[1]);\r\n\t\t\t\tBigDecimal decimalPrice = new BigDecimal(splittedLine[2].replaceAll(\",\", \"\"));\r\n\t\t\t\tbook.setPrice(decimalPrice);\r\n\t\t\t\tfor(int i=0; i<Integer.parseInt(splittedLine[3]); i++)\r\n\t\t\t\t\tthis.addBook(book);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(!in.equals(null)) in.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"bebexitaHemoxita@gmail.com\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "public void init() {\n LOG.info(\"Initializing side input stores.\");\n\n initializeStoreDirectories();\n }", "public void testCreateTable3() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n props.setProperty(SqlDbManager.PARAM_DATASOURCE_CLASSNAME,\n\t\t \"org.apache.derby.jdbc.ClientDataSource\");\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n createTable();\n }", "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "public ReportMakerTab() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private void initOthers() {\n resetTable(tblLowSock);\n resetTable(tblReceiptRealization);\n resetTable(tblVoucherRealization);\n loadVoucherRealization();\n loadReceiptRealization();\n loadLowStock();\n tblVoucherRealization.setShowHorizontalLines(false);\n tblReceiptRealization.setShowHorizontalLines(false);\n tblLowSock.setShowHorizontalLines(false);\n }", "public void init() {\n\t\tList<Order> entries = new ArrayList<>();\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tgetServletContext().setAttribute(\"entries\", entries);\n\t}", "public void testCreateTable1() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n createTable();\n }", "private void initData() {\n\t\tSetTopBarTitle(getString(R.string.os_jsh_wdj_add_ldss));\r\n\t\tregFliter();\r\n\t}", "private void myInit() {\n init_key();\n\n// System.setProperty(\"pool_db\", \"db_cis_cosca\");\n// System.setProperty(\"pool_password\", \"password\");\n// MyUser.setUser_id(\"1\");\n\n acad_years = Academic_years.ret_data(\" where status=1 order by id desc limit 1\");\n acad_years2 = Academic_years.ret_data(\" order by id asc \");\n Field.Input dep = (Field.Input) tf_field12;\n if (!acad_years.isEmpty()) {\n for (Academic_years.to_academic_years to1 : acad_years) {\n acad = to1;\n Field.Combo year3 = (Field.Combo) tf_field19;\n year3.setText(to1.years);\n year3.setId(\"\" + to1.id);\n }\n String where = \" where academic_year_id='\" + acad.id + \"' and status=1 and department_id='\" + dep.getId() + \"'\";\n acad_schedules = Academic_year_period_schedules.ret_data(where);\n if (!acad_schedules.isEmpty()) {\n Field.Input tf = (Field.Input) tf_field19;\n tf.setText(acad_schedule.period);\n tf.setId(\"\" + acad_schedule.id);\n }\n }\n\n init_tbl_miscellaneous_fees(tbl_subject_loads);\n tf_field18.setVisible(false);\n jLabel26.setVisible(false);\n String wheree = \" where user_id='\" + MyUser.getUser_id() + \"' and privilege like '\" + \"Faculty - (Finalize)\" + \"' limit 1\";\n List<User_previleges.to_user_privileges> privileges = User_previleges.ret_data(wheree);\n if (!privileges.isEmpty()) {\n tf_field18.setVisible(true);\n jLabel26.setVisible(true);\n }\n\n List<Users.to_users> users = Users.ret_data(\" where id='\" + MyUser.getUser_id() + \"'\");\n if (!users.isEmpty()) {\n Users.to_users user = (Users.to_users) users.get(0);\n List<Faculty_members.to_faculty_members> members = Faculty_members.ret_data(\" where id='\" + user.faculty_id + \"' \");\n if (!members.isEmpty()) {\n Faculty_members.to_faculty_members to = (Faculty_members.to_faculty_members) members.get(0);\n faculty = to;\n tf_field11.setText(to.lname);\n tf_field9.setText(to.fname);\n tf_field10.setText(to.mi);\n\n tf_field12.setText(to.department);\n tf_field13.setText(to.college);\n tf_field14.setText(to.group_name);\n tf_field15.setText(to.designation);\n\n if (to.is_fulltime == 1) {\n tf_field16.setText(\"Fulltime\");\n }\n if (to.is_fulltime == 2) {\n tf_field16.setText(\"Partime\");\n }\n if (to.is_fulltime == 3) {\n tf_field16.setText(\"Job Order\");\n }\n\n if (to.status == 1) {\n tf_field17.setText(\"Active\");\n } else {\n tf_field17.setText(\"Inactive\");\n }\n ret_subject_loads();\n }\n }\n\n periods.add(\"\");\n periods.add(\"First Semester\");\n periods.add(\"Second Semester\");\n periods.add(\"Summer Class\");\n }", "public void setupKeys()\n {\n KeyAreaInfo keyArea = null;\n keyArea = new KeyAreaInfo(this, Constants.UNIQUE, \"PrimaryKey\");\n keyArea.addKeyField(\"ID\", Constants.ASCENDING);\n keyArea = new KeyAreaInfo(this, Constants.SECONDARY_KEY, \"CurrencyCode\");\n keyArea.addKeyField(\"CurrencyCode\", Constants.ASCENDING);\n keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, \"Description\");\n keyArea.addKeyField(\"Description\", Constants.ASCENDING);\n }", "protected abstract void initialiseTable();", "public MyPage() {\n super(\"Home\");\n initComponents();\n conn=javaconnect.ConnecrDb();\n Calender();\n Account();\n Table1();\n Table2();\n }", "void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}", "public DoctorMainTabbedPane() {\n super();\n initialize();\n }", "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}", "private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "private void initialize() {\r\n\r\n\t\tserverNode = new TreeParent(\"Servers\", \"Servers\", \"AA\", this);\r\n\t\tserverNode.setImageKey(\"System.gif\");\r\n\r\n\t\tnewServerNode = new TreeParent(\"NewServerWizard\", \"New Server\", \"AA\", this);\r\n\t\tnewServerNode.setImageKey(\"ApplicationFilter.gif\");\r\n\t\tnewServerNode.setExpandable(false);\r\n\t\tserverNode.addChild(newServerNode);\r\n\t\tnewServerNode.addChild(new TreeObject(\"Dummy\"));\r\n\t\r\n\t\tloadServers(serverNode);\r\n\r\n\t\tpreferenceNode = new TreeParent(\"Systems\", \"Preferences\", \"BB\", this);\r\n\t\tpreferenceNode.setImageKey(\"preference_page.gif\");\r\n\t\tpreferenceNode.addChild(new TreeObject(\"Dummy\"));\r\n\r\n\t\tinvisibleRoot = new TreeParent(\"\", \"InvisibleRoot\", \"AA\", this);\r\n\t\tinvisibleRoot.addChild(serverNode);\r\n\t\tinvisibleRoot.addChild(preferenceNode);\r\n\r\n\t}", "public LoginBackendPage() {\n\t\t PageFactory.initElements(driver, this);\n\t}", "private void initializeExerciseControllers() {\n trAddExercise = ExerciseControllersFactory.createTrAddExercise();\n trDeleteExercise = ExerciseControllersFactory.createTrDeleteExercise();\n trUpdateExercise = ExerciseControllersFactory.createTrUpdateExercise();\n trAddWalk = ExerciseControllersFactory.createTrAddWalk();\n trGetAllWalks = ExerciseControllersFactory.createTrGetAllWalks();\n trGetAllExercises = ExerciseControllersFactory.createTrGetAllExercises();\n }", "protected void setUp() throws Exception {\n super.setUp();\n TestHelper.loadConfigurations();\n DocumentTreeTabbedPane parent =\n new DocumentTreeTabbedPaneImpl(TestHelper.createUMLModelManager(), TestHelper.NAMESPACE_NEW);\n panel = parent.getCurrentPanel();\n }", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "private void initialData() {\n\n// if (MorphiaObject.datastore.createQuery(SecurityRole.class).countAll() == 0) {\n// for (final String roleName : Arrays\n// .asList(controllers.Application.USER_ROLE)) {\n// final SecurityRole role = new SecurityRole();\n// role.roleName = roleName;\n// MorphiaObject.datastore.save(role);\n// }\n// }\n }", "private void inserts() {\n DBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n Map<Number160, Data> tabRows = DBPeer.getTabRows();\n\t\tMap<Number160, Data> tabIndexes = DBPeer.getTabIndexes();\n\t\t\n String tabName = null;\n Number160 tabKey = null;\n FreeBlocksHandler freeBlocks = null;\n Map<String, IndexHandler> indexHandlers = new HashMap<>();\n TableRows tr = null;\n TableIndexes ti = null;\n \n logger.trace(\"INSERT-WHOLE\", \"BEGIN\", Statement.experiment);\n \n for (Insert ins: inserts) {\n \n if (tabName == null) {\n \ttabName = ins.getTabName();\n \ttabKey = Number160.createHash(tabName);\n \tfreeBlocks = new FreeBlocksHandler(tabName);\n \ttry {\n \t\t\t\ttr = (TableRows) tabRows.get(tabKey).getObject();\n \t\t\t\tti = (TableIndexes) tabIndexes.get(tabKey).getObject();\n \t\t\t} catch (ClassNotFoundException | IOException e) {\n \t\t\t\tlogger.error(\"Data error\", e);\n \t\t\t}\n \tfor (String index: ti.getIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \tfor (String index: ti.getUnivocalIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n } else if (!tabName.equals(ins.getTabName())) {\n \t\t\ttry {\n \t\t\t\ttabRows.put(tabKey, new Data(tr));\n \t\t\ttabIndexes.put(tabKey, new Data(ti));\n \t\t\ttabName = ins.getTabName();\n \ttabKey = Number160.createHash(tabName);\n \t\t\t\ttr = (TableRows) tabRows.get(tabKey).getObject();\n \t\t\t\tti = (TableIndexes) tabIndexes.get(tabKey).getObject();\n \t\t\t\tfreeBlocks.update();\n \tfreeBlocks = new FreeBlocksHandler(tabName);\n \tindexHandlers.clear();\n \tfor (String index: ti.getIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \tfor (String index: ti.getUnivocalIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \t\t\t} catch (ClassNotFoundException | IOException e) {\n \t\t\t\tlogger.error(\"Data error\", e);\n \t\t\t}\n } \n \n ins.init(freeBlocks, indexHandlers, tr, ti);\n \n }\n \n boolean done = false;\n while (!done) {\n \tint countTrue = 0;\n \tfor (Insert ins: inserts) {\n \t\tif (ins.getDone()) {\n \t\t\tcountTrue++;\n \t\t}\n \t}\n \tif (countTrue == inserts.size()) {\n \t\tdone = true;\n \t}\n }\n \n freeBlocks.update();\n\n try {\n\t\t\ttabRows.put(tabKey, new Data(tr));\n\t\t\ttabIndexes.put(tabKey, new Data(ti));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Data error\", e);\n\t\t}\n \n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n \n logger.trace(\"INSERT-WHOLE\", \"END\", Statement.experiment);\n }", "public void initialize() {\n\t\tLocale.setDefault(new Locale(\"vi\", \"VN\"));\n\t\tframe = new JFrame();\n\t\tframe.setIconImage(Toolkit.getDefaultToolkit().getImage(\"C:\\\\Users\\\\Phuoc Dang\\\\git\\\\pala-finance\\\\src\\\\main\\\\resources\\\\piggy-bank-icon.png\"));\n\t\tframe.setBounds(100, 100, 723, 502);\n\t\t\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tframe.getContentPane().add(tabbedPane, BorderLayout.CENTER);\n\t\t\n\t\tJPanel pnlAdmin = new JPanel();\n\t\ttabbedPane.addTab(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.tabAdministration\"), null, pnlAdmin, null);\n\t\tpnlAdmin.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\ttblItem = new JTable();\n\t\ttblItem.setOpaque(false);\n\t\tJScrollPane scrollPane = new JScrollPane(tblItem);\n\t\tscrollPane.setBackground(new Color(255, 0, 0));\n\n\t\t// Add the scroll pane to this panel.\n\t\tpnlAdmin.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\tJPanel pnlButtons = new JPanel();\n\t\tpnlButtons.setBackground(new Color(255, 240, 245));\n\t\tFlowLayout fl_pnlButtons = (FlowLayout) pnlButtons.getLayout();\n\t\tfl_pnlButtons.setAlignment(FlowLayout.LEFT);\n\t\tpnlAdmin.add(pnlButtons, BorderLayout.NORTH);\n\t\tJButton btnAdd = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnAdd);\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tItemDialog dialog = new ItemDialog(frame);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\titemRepo.addItem(dialog.getName(), dialog.getDescription());\n\t\t\t\t\tItem item = itemRepo.findItemNamed(dialog.getName());\n\t\t\t\t\tif(item != null) {\n\t\t\t\t\t\tloadItemTable();\n\t\t\t\t\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnEdit = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnEdit.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnEdit);\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblItem);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tItem item = itemRepo.findByID(selectedID);\n\t\t\t\t\tItemDialog dialog = new ItemDialog(frame, item);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t\titem.setName(dialog.getName());\n\t\t\t\t\t\titem.setDescription(dialog.getDescription());\n\t\t\t\t\t\titemRepo.saveItem(item);\n\t\t\t\t\t\tloadItemTable();\n\t\t\t\t\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Please selected an item to edit\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnDelete);\n\t\tbtnDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblItem);\n\t\t\t\titemRepo.deleteItem(selectedID);\n\t\t\t\tloadItemTable();\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlInput = new JPanel();\n\t\ttabbedPane.addTab(\"Input\", null, pnlInput, null);\n\t\tpnlInput.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJScrollPane scrollBarInput = new JScrollPane((Component) null);\n\t\tpnlInput.add(scrollBarInput, BorderLayout.CENTER);\n\t\t\n\t\ttblInput = new JTable();\n\t\tscrollBarInput.setViewportView(tblInput);\n\t\t\n\t\tJPanel pnlInputButtons = new JPanel();\n\t\tpnlInputButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout = (FlowLayout) pnlInputButtons.getLayout();\n\t\tflowLayout.setAlignment(FlowLayout.LEFT);\n\t\tpnlInput.add(pnlInputButtons, BorderLayout.NORTH);\n\t\t\n\t\tJButton btnInputAdd = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnInputAdd);\n\t\t\n\t\tJButton btnEditInputItem = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnEdit.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnEditInputItem);\n\t\tbtnEditInputItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblInput);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tInputItem item = inputItemRepo.findByID(selectedID);\n\t\t\t\t\tInputItemDialog dialog = new InputItemDialog(frame, item);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\titem = dialog.getInputItem();\n\t\t\t\t\t\tInputItem inputItem = inputItemRepo.saveInputItem(item);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(inputItem != null) {\n\t\t\t\t\t\t\tloadInputItemTable();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnInputDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnInputDelete);\n\t\tbtnInputDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblInput);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tinputItemRepo.deleteInputItem(selectedID);\n\t\t\t\t\tloadInputItemTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnInputAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tInputItemDialog dialog = new InputItemDialog(frame, MainApp.this);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t//currently, do nothing...\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlIncome = new JPanel();\n\t\ttabbedPane.addTab(\"Income\", null, pnlIncome, null);\n\t\tpnlIncome.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tincomeTable = new JTable();\n\t\tJScrollPane scrollPaneIncome = new JScrollPane(incomeTable);\n\t\tpnlIncome.add(scrollPaneIncome);\n\t\t\n\t\tJPanel pnlIncomeButtons = new JPanel();\n\t\tpnlIncomeButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_1 = (FlowLayout) pnlIncomeButtons.getLayout();\n\t\tflowLayout_1.setAlignment(FlowLayout.LEFT);\n\t\tpnlIncome.add(pnlIncomeButtons, BorderLayout.NORTH);\n\t\t\n\t\tdateFieldIncome = CalendarFactory.createDateField();\n\t\tdateFieldIncome.setPreferredSize(new Dimension(100, 18));\n\t\tpnlIncomeButtons.add(dateFieldIncome);\n\t\t\n\t\tcbxIncome = new JComboBox();\n\t\tpnlIncomeButtons.add(cbxIncome);\n\t\tcbxIncome.setModel(new DefaultComboBoxModel(IncomeType.values()));\n\t\t\n\t\ttxtIncomeCost = new JFormattedTextField(NumberFormat.getNumberInstance());\n\t\ttxtIncomeCost.setMinimumSize(new Dimension(100, 20));\n\t\ttxtIncomeCost.setPreferredSize(new Dimension(100, 20));\n\t\tpnlIncomeButtons.add(txtIncomeCost);\n\t\t\n\t\tJButton btnAddIncome = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlIncomeButtons.add(btnAddIncome);\n\t\t\n\t\tJButton btnIncomeDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlIncomeButtons.add(btnIncomeDelete);\n\t\tbtnIncomeDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(incomeTable);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tincomeItemRepo.deleteIncomeItem(selectedID);\n\t\t\t\t\tloadIncomeTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAddIncome.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tlong cost = ((Number)txtIncomeCost.getValue()).longValue();\n\t\t\t\tIncomeItem item = incomeItemRepo.addIncomeItem((IncomeType)cbxIncome.getSelectedItem(), cost, (Date)dateFieldIncome.getValue());\n\t\t\t\tif(item != null) {\n\t\t\t\t\tloadIncomeTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlReport = new JPanel();\n\t\tpnlReport.setBackground(new Color(255, 0, 255));\n\t\ttabbedPane.addTab(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.tabReportByDay\"), null, pnlReport, null);\n\t\tpnlReport.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJScrollPane scrollBarReport = new JScrollPane();\n\t\tscrollBarReport.setBackground(new Color(135, 206, 250));\n\t\tpnlReport.add(scrollBarReport, BorderLayout.CENTER);\n\t\t\n\t\ttblReport = new JTable();\n\t\ttblReport.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = tblReport.rowAtPoint(e.getPoint());\n\t\t\t\tint col = tblReport.columnAtPoint(e.getPoint());\n\t\t\t\tif(row >= 0 && col == 4) {\n\t\t\t\t\tString attachedFile = tblReport.getValueAt(row, col).toString();\n\t\t\t\t\tFile file = new File(\"attachment/\" + attachedFile);\n\t\t\t\t\tDesktop dt = Desktop.getDesktop();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdt.open(file);\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\tSystem.out.println(attachedFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tscrollBarReport.setViewportView(tblReport);\n\t\t\n\t\tJPanel pnlReportButtons = new JPanel();\n\t\tpnlReportButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_2 = (FlowLayout) pnlReportButtons.getLayout();\n\t\tflowLayout_2.setAlignment(FlowLayout.LEFT);\n\t\tpnlReport.add(pnlReportButtons, BorderLayout.NORTH);\n\t\t\n\t\tdateFieldReport = CalendarFactory.createDateField();\n\t\tdateFieldReport.setPreferredSize(new Dimension(100, 18));\n\t\tpnlReportButtons.add(dateFieldReport);\n\t\t\n\t\tchxByDate = new JCheckBox(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.chxByDate.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tchxByDate.setBackground(new Color(224, 255, 255));\n\t\tpnlReportButtons.add(chxByDate);\n\t\t\n\t\tJButton btnShow = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportButtons.add(btnShow);\n\t\t\n\t\tJPanel pnlReportSummary = new JPanel();\n\t\tpnlReport.add(pnlReportSummary, BorderLayout.SOUTH);\n\t\tpnlReportSummary.setLayout(new GridLayout(3, 2, 2, 5));\n\t\t\n\t\tJLabel lblTotal = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotal.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblTotal);\n\t\t\n\t\ttxtTotalCost = new JTextField();\n\t\tpnlReportSummary.add(txtTotalCost);\n\t\ttxtTotalCost.setEditable(false);\n\t\ttxtTotalCost.setColumns(10);\n\t\t\n\t\tJLabel lblTotalIncome = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotalIncome.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotalIncome.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblTotalIncome);\n\t\t\n\t\ttxtTotalIncome = new JTextField();\n\t\tpnlReportSummary.add(txtTotalIncome);\n\t\ttxtTotalIncome.setEditable(false);\n\t\ttxtTotalIncome.setColumns(10);\n\t\t\n\t\tJLabel lblRemaining = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblRemaining.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblRemaining.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblRemaining);\n\t\t\n\t\ttxtRemaining = new JTextField();\n\t\tpnlReportSummary.add(txtRemaining);\n\t\ttxtRemaining.setEditable(false);\n\t\ttxtRemaining.setColumns(10);\n\t\tbtnShow.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDate selectedDate = (Date)dateFieldReport.getValue();\n\t\t\t\ttry {\n\t\t\t\t\tDateTime dt = new DateTime(selectedDate);\n\t\t\t\t\tLocalDate fromDate = dt.toLocalDate();\n\t\t\t\t\tLocalDate toDate = dt.toLocalDate();\n\t\t\t\t\t\n\t\t\t\t\tif(!chxByDate.isSelected()) {\n\t\t\t\t\t\tDate firstDateOfMonth = DateUtil.getFirstDay(selectedDate);\n\t\t\t\t\t\tDate lastDateOfMonth = DateUtil.getLastDay(selectedDate);\n\t\t\t\t\t\tdt = new DateTime(firstDateOfMonth);\n\t\t\t\t\t\tfromDate = dt.toLocalDate();\n\t\t\t\t\t\tdt = new DateTime(lastDateOfMonth);\n\t\t\t\t\t\ttoDate = dt.toLocalDate();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tloadReportTable(fromDate, toDate);\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, e.getMessage());\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlReportByMonth = new JPanel();\n\t\ttabbedPane.addTab(\"Report By Month\", null, pnlReportByMonth, null);\n\t\tpnlReportByMonth.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\ttblReportByMonth = new JTable();\n\t\tJScrollPane scrPnlReportByMonth = new JScrollPane(tblReportByMonth);\n\t\tpnlReportByMonth.add(scrPnlReportByMonth);\n\t\t\n\t\tJPanel pnlReportByMonthButtons = new JPanel();\n\t\tpnlReportByMonthButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_3 = (FlowLayout) pnlReportByMonthButtons.getLayout();\n\t\tflowLayout_3.setAlignment(FlowLayout.LEFT);\n\t\tpnlReportByMonth.add(pnlReportByMonthButtons, BorderLayout.NORTH);\n\t\t\n\t\tJLabel lblMonth = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblMonth.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(lblMonth);\n\t\t\n\t\tfinal JComboBox cbxMonth = new JComboBox();\n\t\tpnlReportByMonthButtons.add(cbxMonth);\n\t\tcbxMonth.setMaximumRowCount(12);\n\t\tcbxMonth.setModel(new DefaultComboBoxModel(Month.values()));\n\t\t\n\t\tJLabel lblYear = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblYear.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(lblYear);\n\t\t\n\t\tfinal JComboBox cbxYear = new JComboBox();\n\t\tpnlReportByMonthButtons.add(cbxYear);\n\t\tcbxYear.setModel(new DefaultComboBoxModel(new String[] {\"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\"}));\n\t\t\n\t\tJButton btnReportByMonth = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(btnReportByMonth);\n\t\t\n\t\tJPanel rptReportByItem = new JPanel();\n\t\ttabbedPane.addTab(\"Report By Item\", null, rptReportByItem, null);\n\t\trptReportByItem.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tFlowLayout flowLayout_4 = (FlowLayout) panel.getLayout();\n\t\tflowLayout_4.setAlignment(FlowLayout.LEFT);\n\t\tpanel.setBackground(new Color(224, 255, 255));\n\t\trptReportByItem.add(panel, BorderLayout.NORTH);\n\t\t\n\t\tJLabel label = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblMonth.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(label);\n\t\t\n\t\tcbxMonthByItem = new JComboBox();\n\t\tcbxMonthByItem.setModel(new DefaultComboBoxModel(Month.values()));\n\t\tcbxMonthByItem.setMaximumRowCount(12);\n\t\tpanel.add(cbxMonthByItem);\n\t\t\n\t\tJLabel label_1 = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblYear.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(label_1);\n\t\t\n\t\tcbxYearByItem = new JComboBox();\n\t\tcbxYearByItem.setModel(new DefaultComboBoxModel(new String[] {\"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\"}));\n\t\tpanel.add(cbxYearByItem);\n\t\t\n\t\tJLabel lblItem = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblItem.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(lblItem);\n\t\t\n\t\tcbxItemByItem = new JComboBox();\n\t\tcbxItemByItem.setModel(new DefaultComboBoxModel(new String[] {\"All\"}));\n\t\tpanel.add(cbxItemByItem);\n\t\t\n\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\n\t\tJButton btnShowByItem = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tbtnShowByItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint year = Integer.parseInt(cbxYearByItem.getSelectedItem().toString());\n\t\t\t\tint month = ((Month)cbxMonthByItem.getSelectedItem()).getValue();\n\t\t\t\tDateTime selectedDate = new DateTime(year, month, 1, 0, 0, 0);\n\t\t\t\tDateTime fromDate = selectedDate.dayOfMonth().withMinimumValue();\n\t\t\t\tDateTime toDate = selectedDate.dayOfMonth().withMaximumValue();\n\t\t\t\ttoDate= toDate.plusDays(1);\n\t\t\t\tString sFromDate = String.valueOf(fromDate.getMillis());\n\t\t\t\tString sToDate = String.valueOf(toDate.getMillis());\n\t\t\t\tList<ReportByItemResult> results = inputRep.reportByItem(sFromDate, sToDate);\n\t\t\t\tloadReportByItemTable(results);\n\t\t\t\tdouble totalCost = 0;\n\t\t\t\tfor(ReportByItemResult item : results) {\n\t\t\t\t\ttotalCost += item.getCost();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNumberFormat nf = NumberFormat.getNumberInstance();\n\t\t\t\ttxtTotalItemCost.setText(nf.format(totalCost));\n\t\t\t}\n\t\t});\n\t\tpanel.add(btnShowByItem);\n\t\t\n\t\tJScrollPane scrollPaneReportByItem = new JScrollPane();\n\t\trptReportByItem.add(scrollPaneReportByItem, BorderLayout.CENTER);\n\t\t\n\t\ttblReportByItem = new JTable();\n\t\tscrollPaneReportByItem.setViewportView(tblReportByItem);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\trptReportByItem.add(panel_1, BorderLayout.SOUTH);\n\t\tpanel_1.setLayout(new GridLayout(1, 2, 5, 5));\n\t\t\n\t\tJLabel lblTotalItem = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotal.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotalItem.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpanel_1.add(lblTotalItem);\n\t\t\n\t\ttxtTotalItemCost = new JTextField();\n\t\ttxtTotalItemCost.setEditable(false);\n\t\tpanel_1.add(txtTotalItemCost);\n\t\ttxtTotalItemCost.setColumns(10);\n\t\tbtnReportByMonth.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint year = Integer.parseInt(cbxYear.getSelectedItem().toString());\n\t\t\t\tint month = ((Month)cbxMonth.getSelectedItem()).getValue();\n\t\t\t\tDateTime selectedDate = new DateTime(year, month, 1, 0, 0, 0);\n\t\t\t\tDateTime fromDate = selectedDate.dayOfMonth().withMinimumValue();\n\t\t\t\tDateTime toDate = selectedDate.dayOfMonth().withMaximumValue();\n\t\t\t\ttoDate= toDate.plusDays(1);\n\t\t\t\tString sFromDate = String.valueOf(fromDate.getMillis());\n\t\t\t\tString sToDate = String.valueOf(toDate.getMillis());\n\t\t\t\tList<ReportByMonthResult> results = inputRep.reportByMonth(sFromDate, sToDate);\n\t\t\t\tloadReportByMonthTable(results);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//fetch all data\n\t\tloadAllData();\n\t}", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "private void initMainWorkspace() throws IOException {\n // THE TOP WORKSPACE PANE WILL ONLY DIRECTLY HOLD 2 THINGS, A LABEL\n // AND A SPLIT PANE, WHICH WILL HOLD 2 ADDITIONAL GROUPS OF CONTROLS\n mainWorkspacePane = new TabPane();\n mainWorkspacePane.setSide(Side.BOTTOM);\n mainWorkspacePane.setTabClosingPolicy(UNAVAILABLE);\n \n initTeamsTab();\n initPlayersTab();\n initStandingTab();\n initDraftTab();\n initMLBTeamTab();\n }", "@FXML\n private void initialize() {\n // Initialize the person table with the two columns.\n \t//ID.setText(user.getId());\n // password.setText(user.getPassword());\n \tshowLoginDetail(null);\n \n \n }", "public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/*\n\t\t\t * Evita stackoverflow\n\t\t\t */\n\t\t\tcloseActiveStoreData ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tfinal Properties properties = this._dataStoreEnvironment.getDataStoreProperties ();\n\t\tfinal PersistenceManagerFactory pmf =\n\t\t\t\t\t JDOHelper.getPersistenceManagerFactory(properties);\n\t\t\n//\t\tSystem.out.println (\"Setting persistent manager from \"+properties);\n\t\t\n\t\tthis.pm = pmf.getPersistenceManager();\n\t\t\n\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\tthis.pm.currentTransaction().commit();\n\t\t}\n\t\tthis.pm.currentTransaction().setOptimistic (false);\n//\t\tthis.pm.currentTransaction().begin();\n\t}", "private void myInit() {\n init_key();\n init_tbl_messages();\n\n init_tbl_members();\n data_cols_members();\n tbl_members.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n select_member();\n }\n });\n }", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "private void init() {\n\t\tcreateSubjectField();\n\t\tcreateTextField();\n\t\tcreateButton();\n\t\tsetupSubjectPanel();\n\t\tsetupToDoPanel();\n\n\t\tsetBorder(BorderFactory.createTitledBorder(\"To Do List\"));\n\t\tsetLayout(new BorderLayout());\n\t\tadd(pnlSubject, BorderLayout.NORTH);\n\t\tadd(scroll, BorderLayout.CENTER);\n\t\tadd(pnlButton, BorderLayout.SOUTH);\n\t}", "private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }", "protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}" ]
[ "0.6952463", "0.59734553", "0.5892583", "0.5812144", "0.5769642", "0.5742543", "0.5729539", "0.57251", "0.57178193", "0.57079214", "0.5704411", "0.5693812", "0.5678613", "0.5677361", "0.56148976", "0.5613414", "0.55825174", "0.5571957", "0.5560379", "0.55599", "0.555717", "0.5551592", "0.55513835", "0.5532757", "0.55272233", "0.5524956", "0.55202514", "0.5516563", "0.5502436", "0.5495155", "0.5494061", "0.54853296", "0.5484176", "0.5480445", "0.54769355", "0.54746586", "0.5474497", "0.5465415", "0.5455498", "0.54474443", "0.5444039", "0.5429656", "0.541705", "0.540755", "0.53961074", "0.53943574", "0.53799975", "0.53783053", "0.53751177", "0.53738534", "0.53696805", "0.53647494", "0.5363982", "0.5361974", "0.53608936", "0.53595763", "0.5354704", "0.53472126", "0.5341712", "0.5332404", "0.5331203", "0.53246135", "0.53221136", "0.5318192", "0.53071964", "0.5306104", "0.5302503", "0.529769", "0.52958155", "0.52933335", "0.52912796", "0.5289346", "0.5284246", "0.5282556", "0.5278747", "0.5276284", "0.5274072", "0.5272378", "0.52712077", "0.5261908", "0.5251072", "0.52491295", "0.52486753", "0.524864", "0.52427053", "0.52344733", "0.52310675", "0.5230686", "0.5226777", "0.52213544", "0.52193826", "0.52159077", "0.52157134", "0.52070516", "0.52062416", "0.51971906", "0.51957893", "0.5194127", "0.5193628", "0.5190022", "0.51859546" ]
0.0
-1
Displays the details of the username/password pair entry this includes showing the plaintext password and service URI for this entry.
private void viewPassword() { // Which username/password pair entry has been selected, if any? int iRow = passwordsTable.getSelectedRow(); if (iRow == -1) // no row currently selected return; // Get current values for service URI, username and password String serviceURI = (String) passwordsTable.getValueAt(iRow, 1); // current entry's service URI String username = (String) passwordsTable.getValueAt(iRow, 2); // current entry's username /* * Because the password column is not visible we call the getValueAt * method on the table model rather than at the JTable */ String password = (String) passwordsTable.getModel() .getValueAt(iRow, 4); // current entry's password value // Let the user view service URI, username and password of the entry ViewUsernamePasswordEntryDialog viewServicePassDialog = new ViewUsernamePasswordEntryDialog( this, serviceURI, username, password); viewServicePassDialog.setLocationRelativeTo(this); viewServicePassDialog.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void DisplayEntry()\r\n {\r\n System.out.println(\"Username: \" + this.myUserName);\r\n System.out.println(\"Entry: \\n\" +\r\n this.myEntry);\r\n System.out.println(\"Date: \" + this.myDate);\r\n }", "public void displayData(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE); //This means the info is private and hence secured\n\n String name = sharedPref.getString(\"username\", \"\"); //The second parameter contains the value that we are going to get, so we leave it blank.\n String pw = sharedPref.getString(\"password\", \"\");\n yashwinText.setText(name + \"\" + pw);\n }", "public void displayDetails() {\r\n\t\tSystem.out.println(\"*******************Profile Details*********************\");\r\n\t\tSystem.out.println(\"\\tUsername :\\t\" + uName);\r\n\t\tSystem.out.println(\"\\tFull Name :\\t\" + fullName);\r\n\t\tSystem.out.println(\"\\tPhone :\\t\" + phone);\r\n\t\tSystem.out.println(\"\\tE-Mail :\\t\" + email);\r\n\t}", "public void displayData(View view) {\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n\n String name = sharedPref.getString(\"username\", \"\");\n String password = sharedPref.getString(\"password\", \"\");\n\n buckysText.setText(name + \" \" + password);\n }", "@Override\n\tpublic String toString () {\n\t\tString pUser = \"User: \" + getID();\n\t\tString pPass = \"Pass: \" + getPass();\n\t\treturn pUser + \" \" + pPass;\n\t}", "@Override\n public String toString() {\n return \"--------------------------------------------\\n\"+\n \"username: \" + username + \"\\n\" + \n \"fullName: \" + lastName + \" \" + firstName + \"\\n\" + \n \"password: \" + password + \"\\n\" +\n \"phone: \" + phone + \"\\n\" + \n \"email: \" + email + \"\\n\";\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn this.id + \">>>>>>\" + this.name+\">>>>>>>\"+this.password;\r\n\t}", "public void newPasswordForService(URI serviceURI) {\n\t\t/*\n\t\t * As this method can be called from outside of Credential Manager UI,\n\t\t * e.g. from wsdl-activity-ui or rshell-activity-ui to pop up a dialog\n\t\t * to ask the user for username and password, we also want to make sure\n\t\t * the main Credential Manager UI Dialog is visible as it may be clearer\n\t\t * to the user what is going on\n\t\t */\n\t\tif (!isVisible() || getState() == ICONIFIED)\n\t\t\tsetVisible(true);\n\n\t\t// Make sure password tab is selected as this method may\n\t\t// be called from outside of Credential Manager UI.\n\t\tkeyStoreTabbedPane.setSelectedComponent(passwordsTab);\n\n\t\tString username = null; // username\n\t\tString password = null; // password\n\n\t\t// Loop until the user cancels or enters everything correctly\n\t\twhile (true) {\n\n//\t\t\tif(!this.isVisible()){ // if Cred Man UI is already showing but e.g. obscured by another window or minimised\n//\t\t\t\t// Do not bring it up!\n//\t\t\t} // actually we now want to show it as it makes it clearer to the user what is going on\n\n\t\t\t// Let the user insert a new password entry for the given service\n\t\t\t// URI (by specifying username and password)\n\t\t\tNewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"New username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\t\t\tnewPasswordDialog.setLocationRelativeTo(this);\n\t\t\tnewPasswordDialog.setVisible(true);\n\n\t\t\tserviceURI = newPasswordDialog.getServiceURI(); // get service URI\n\t\t\tusername = newPasswordDialog.getUsername(); // get username\n\t\t\tpassword = newPasswordDialog.getPassword(); // get password\n\n\t\t\tif (password == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t/*\n\t\t\t * Check if a password entry with the given service URI already\n\t\t\t * exists in the Keystore. We ask this here as the user may wish to\n\t\t\t * overwrite the existing password entry. Checking for key pair\n\t\t\t * entries' URIs is done in the NewEditPasswordEntry dialog.\n\t\t\t */\n\n\t\t\t// Get list of service URIs for all the password entries in the\n\t\t\t// Keystore\n\t\t\tList<URI> serviceURIs = null;\n\t\t\ttry {\n\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t} catch (CMException cme) {\n\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t+ \"to check if the entered service URI already exists\",\n\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serviceURIs.contains(serviceURI)) { // if such a URI already\n\t\t\t\t// exists\n\t\t\t\t// Ask if the user wants to overwrite it\n\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\"Credential Manager already contains a password entry with the same service URI.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION);\n\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(username, password),\n\t\t\t\t\t\t\t\tserviceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tString exMessage = \"Credential Manager failed to insert a new username and password pair\";\n\t\t\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t// Otherwise show the same window with the entered service\n\t\t\t\t// URI, username and password values\n\t\t\t} else\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tcredManager.addUsernameAndPasswordForService(new UsernamePassword(username,\n\t\t\t\t\t\t\tpassword), serviceURI);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t}\n\t\t}\n\t}", "@Override\n public void display(JPasswordField passFirstnameTextField,\n JTextField userFirstnameTextField,\n JTextField userLastnameTextField,\n JTextField DoBTextField,\n JTextField contactNumberTextField,\n JTextField emailTextField,\n JTextField salaryTextField,\n JTextField positionStatusTextField,\n JTextField nameTextField,\n JTextField buildingNameTextField,\n JTextField streetTextField,\n JTextField buildingNoTextField,\n JTextField areaTextField,\n JTextField cityTextField,\n JTextField countryTextField,\n JTextField postcodeTextField){\n\n\n\n passFirstnameTextField.setText(getPassword());\n userFirstnameTextField.setText(getFirstname());\n userLastnameTextField.setText(getLastname());\n DoBTextField.setText(DMY.format(getDoB()));\n contactNumberTextField.setText(getContactNumber());\n emailTextField.setText(getEmail());\n salaryTextField.setText(String.valueOf(getSalary()));\n positionStatusTextField.setText(getPositionStatus());\n homeAddress.display(nameTextField,buildingNameTextField,streetTextField,\n buildingNoTextField,areaTextField,cityTextField,\n countryTextField,postcodeTextField);\n }", "public void showPassword() {\n\t\thideIM.setVisible(true);\n\t\tseeIM.setVisible(false);\n\t\tcurPasswordField.setVisible(false);\n\t\tnewPasswordField.setVisible(false);\n\t\tseeCurPasswordField.setVisible(true);\n\t\tseeNewPasswordField.setVisible(true);\n\t\tseeCurPasswordField.setText(curPasswordField.getText());\n\t\tseeNewPasswordField.setText(newPasswordField.getText());\n\t\t\n\t}", "@Override\n public String getServletInfo() {\n return \"Adds a Username and Password to the Database. \"\n + \"Written by Michael Zijlstra 10/06/2016.\";\n }", "public Optional<Pair<String,String>> showLogin( final Pair<String,String> initialUserInfo, final Callback<Pair<String,String>, Void> authenticator ) {\n \t\n \tfinal CustomTextField txUserName = (CustomTextField) TextFields.createClearableTextField();\n \ttxUserName.setLeft(new ImageView( DialogResources.getImage(\"login.user.icon\")) ); //$NON-NLS-1$\n \t\n \tfinal CustomPasswordField txPassword = (CustomPasswordField) TextFields.createClearablePasswordField();\n \ttxPassword.setLeft(new ImageView( DialogResources.getImage(\"login.password.icon\"))); //$NON-NLS-1$\n\t\t\n\t\tfinal Label lbMessage= new Label(\"\"); //$NON-NLS-1$\n\t\tlbMessage.getStyleClass().addAll(\"message-banner\"); //$NON-NLS-1$\n\t\tlbMessage.setVisible(false);\n\t\tlbMessage.setManaged(false);\n\t\t\n\t\tfinal VBox content = new VBox(10);\n\t\tcontent.getChildren().add(new Label(\"User name\"));\n\t\tcontent.getChildren().add(txUserName);\n\t\tcontent.getChildren().add(txPassword);\n\t\t\n\t\tfinal Action actionLogin = new DialogAction(\"Connect\", null, false, false, true) { //$NON-NLS-1$\n\t\t\t{\n\t\t\t\tButtonBar.setType(this, ButtonType.OK_DONE);\n\t\t\t\tsetEventHandler(this::handleAction);\n\t\t\t}\n\t\t\t\n\t\t\tprotected void handleAction(ActionEvent ae) {\n\t\t\t\tDialog dlg = (Dialog) ae.getSource();\n\t\t\t\ttry {\n\t\t\t\t\tif ( authenticator != null ) {\n\t\t\t\t\t\tauthenticator.call(new Pair<>(txUserName.getText(), txPassword.getText()));\n\t\t\t\t\t}\n\t\t\t\t\tlbMessage.setVisible(false);\n\t\t\t\t\tlbMessage.setManaged(false);\n\t\t\t\t\tdlg.hide();\n\t\t\t\t\tdlg.setResult(this);\n\t\t\t\t} catch( Throwable ex ) {\n\t\t\t\t\tlbMessage.setVisible(true);\n\t\t\t\t\tlbMessage.setManaged(true);\n\t\t\t\t\tlbMessage.setText(ex.getMessage());\n\t\t\t\t\tdlg.sizeToScene();\n\t\t\t\t\tdlg.shake();\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override public String toString() {\n\t\t\t\treturn \"LOGIN\"; //$NON-NLS-1$\n\t\t\t};\n\t\t};\n\t\t\n\t\tfinal Dialog dlg = buildDialog(Type.LOGIN);\n dlg.setContent(content);\n \n dlg.setResizable(false);\n\t\tdlg.setIconifiable(false);\n\t\tif ( dlg.getGraphic() == null ) { \n\t\t\tdlg.setGraphic( new ImageView( DialogResources.getImage(\"login.icon\"))); //$NON-NLS-1$\n\t\t}\n\t\tdlg.getActions().setAll(actionLogin, ACTION_CANCEL);\n\t\tfinal String userNameCation = getString(\"login.dlg.user.caption\"); //$NON-NLS-1$\n\t\tfinal String passwordCaption = getString(\"login.dlg.pswd.caption\"); //$NON-NLS-1$\n\t\ttxUserName.setPromptText(userNameCation);\n\t\ttxUserName.setText( initialUserInfo.getKey());\n\t\ttxPassword.setPromptText(passwordCaption);\n\t\ttxPassword.setText(new String(initialUserInfo.getValue()));\n\n\t\tfinal ValidationSupport validationSupport = new ValidationSupport();\n\t\tPlatform.runLater(new Runnable()\n\t\t{\n\t\t@Override\n\t\tpublic void run()\n\t\t{\n\t\t\tString requiredFormat = \"'%s' is required\"; //$NON-NLS-1$\n\t\t\tvalidationSupport.registerValidator(txUserName, Validator.createEmptyValidator( String.format( requiredFormat, userNameCation )));\n\t\t\tactionLogin.disabledProperty().bind(validationSupport.invalidProperty());\n\t\t\ttxUserName.requestFocus();\t\t\t\n\t\t}});\n\n\t\tdlg.sizeToScene();\n \treturn Optional.ofNullable( \n \t\t\tdlg.show() == actionLogin? \n \t\t\t\t\tnew Pair<>(txUserName.getText(), txPassword.getText()): \n \t\t\t\t\tnull);\n }", "private void showUser() {\n\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\tString sql=\"select * from Users\";\r\n\t\tResultSet rs=ado.executeSelect(sql);\r\n\t\tString str=\"\";\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tString user=rs.getString(\"UserName\");\r\n\t\t\t\tString pass=rs.getString(\"Password\");\r\n\t\t\t\tString type=rs.getString(\"UserType\");\r\n\t\t\t\tif(type.equals(\"管理员\"))\r\n\t\t\t\t\tpass=\"******\";\r\n\t\t\t\tif(user.length()<12){\r\n\t\t\t\t\tfor(int i=user.length();i<=12;i++)\r\n\t\t\t\t\t\tuser+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tif(pass.length()<12){\r\n\t\t\t\t\tfor(int i=pass.length();i<=12;i++)\r\n\t\t\t\t\t\tpass+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tif(type.length()<12){\r\n\t\t\t\t\tfor(int i=type.length();i<=12;i++)\r\n\t\t\t\t\t\ttype+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tstr+=\"用户名:\"+user;\r\n\t\t\t\tstr+=\" 密码:\"+pass;\r\n\t\t\t\tstr+=\" 用户类型:\"+type+\"\\n\";\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttextAreaUser.setText(str);\r\n\t}", "@Override\n public String toString() {\n return \"Username: \" + this.username + \"\\n\";\n }", "private void view() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\tResultSet rs = s.executeQuery(\"select * from account;\");\n\t\t\t// while (rs.next()) {\n\t\t\tString someobject = rs.getString(\"name\") + \" \" + rs.getString(\"password\");\n\t\t\tSystem.out.println(someobject);\n\t\t\toutput.setText(someobject);\n\t\t\t// output.setText(rs);\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n\t\t\t// rs.getStatement();\n\t\t\t// }\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\tPostgresJDBC();\n\t}", "public void showPasswordPrompt();", "public void printInfo() {\n\t\tSystem.out.println(\"User: \" + userName);\n\t\tSystem.out.println(\"Login: \" + loginName);\n\t\tSystem.out.println(\"Host: \" + hostName);\n\t}", "@Override\r\n public String toString(){\r\n String out = \"Login - \";\r\n out += login;\r\n out += \" Password - \";\r\n out += Encryptor.decrypt(password,login);\r\n return out;\r\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }", "private void displayPasswordFields() {\n FieldRelatedLabel passwordLabel = new FieldRelatedLabel(\"Password\", 350, 370);\n\n invalidPasswordLabel = new InvalidFormEntryLabel(\"Password must contain at least:\\n8 characters, a letter and\\na number\", 510, 380, false);\n\n passwordTF = new PasswordField();\n passwordTF.relocate(350, 400);\n passwordTF.textProperty().addListener(e->{\n FormValidatorPokeMongo.handlePassword(passwordTF, invalidPasswordLabel);\n FormValidatorPokeMongo.handleConfirmField(passwordTF, confirmPasswordTF, invalidConfirmPasswordLabel);\n });\n\n sceneNodes.getChildren().addAll(passwordLabel, invalidPasswordLabel, passwordTF);\n }", "private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }", "private String displayUsername() {\n // Get username entered from the previous page and display in the current page\n Intent myIntent = getIntent();\n String nameEntered = myIntent.getStringExtra(\"EditTextValue\");\n String userName = \"Welcome, \" + nameEntered;\n return userName;\n }", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "private void newPassword() {\n\t\tURI serviceURI = null; // service URI\n\t\tString username = null; // username\n\t\tString password = null; // password\n\n\t\t// Loop until the user cancels or enters everything correctly\n\t\twhile (true) {\n\t\t\t/*\n\t\t\t * Let the user insert a new password entry (by specifying service\n\t\t\t * URI, username and password)\n\t\t\t */\n\t\t\tNewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"New username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\t\t\tnewPasswordDialog.setLocationRelativeTo(this);\n\t\t\tnewPasswordDialog.setVisible(true);\n\n\t\t\tserviceURI = newPasswordDialog.getServiceURI(); // get service URI\n\t\t\tusername = newPasswordDialog.getUsername(); // get username\n\t\t\tpassword = newPasswordDialog.getPassword(); // get password\n\n\t\t\tif (password == null) { // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Check if a password entry with the given service URI already\n\t\t\t * exists in the Keystore. We ask this here as the user may wish to\n\t\t\t * overwrite the existing password entry. Checking for key pair\n\t\t\t * entries' URIs is done in the NewEditPasswordEntry dialog.\n\t\t\t */\n\n\t\t\t/*\n\t\t\t * Get list of service URIs for all the password entries in the\n\t\t\t * Keystore\n\t\t\t */\n\t\t\tList<URI> serviceURIs = null;\n\t\t\ttry {\n\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t} catch (CMException cme) {\n\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t+ \"to check if the entered service URI already exists\",\n\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serviceURIs.contains(serviceURI)) { // if such a URI already\n\t\t\t\t// exists\n\t\t\t\t// Ask if the user wants to overwrite it\n\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Credential Manager already contains a password entry with the same service URI.\\n\"\n\t\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\t\tALERT_TITLE,\n\t\t\t\t\t\t\t\tYES_NO_OPTION);\n\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(username, password),\n\t\t\t\t\t\t\t\tserviceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * Otherwise show the same window with the entered service URI,\n\t\t\t\t * username and password values\n\t\t\t\t */\n\t\t\t} else\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tcredManager.addUsernameAndPasswordForService(new UsernamePassword(username,\n\t\t\t\t\t\t\tpassword), serviceURI);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t}\n\t\t}\n\t}", "private void editPassword() {\n\t\t// Which password entry has been selected?\n\t\tint iRow = passwordsTable.getSelectedRow();\n\t\tif (iRow == -1) { // no row currently selected\n\t\t\treturn;\n\t\t}\n\n\t\t// Get current values for service URI, username and password\n\t\tURI serviceURI = URI.create((String) passwordsTable.getValueAt(iRow, 1)); // current entry's service URI\n\n\t\tString username = (String) passwordsTable.getValueAt(iRow, 2); // current entry's username\n\n\t\t/*\n\t\t * Because the password column is not visible we call the getValueAt\n\t\t * method on the table model rather than at the JTable\n\t\t */\n\t\tString password = (String) passwordsTable.getModel()\n\t\t\t\t.getValueAt(iRow, 4); // current entry's password value\n\n\t\twhile (true) { // loop until user cancels or enters everything correctly\n\t\t\t// Let the user edit service URI, username or password of a password entry\n\t\t\tNewEditPasswordEntryDialog editPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"Edit username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\n\t\t\teditPasswordDialog.setLocationRelativeTo(this);\n\t\t\teditPasswordDialog.setVisible(true);\n\n\t\t\t// New values\n\t\t\tURI newServiceURI = editPasswordDialog.getServiceURI(); // get new service URI\n\t\t\tString newUsername = editPasswordDialog.getUsername(); // get new username\n\t\t\tString newPassword = editPasswordDialog.getPassword(); // get new password\n\n\t\t\tif (newPassword == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t// Is anything actually modified?\n\t\t\tboolean isModified = !serviceURI.equals(newServiceURI)\n\t\t\t\t\t|| !username.equals(newUsername)\n\t\t\t\t\t|| !password.equals(newPassword);\n\n\t\t\tif (isModified) {\n\t\t\t\t/*\n\t\t\t\t * Check if a different password entry with the new URI (i.e.\n\t\t\t\t * alias) already exists in the Keystore We ask this here as the\n\t\t\t\t * user may wish to overwrite that other password entry.\n\t\t\t\t */\n\n\t\t\t\t// Get list of URIs for all passwords in the Keystore\n\t\t\t\tList<URI> serviceURIs = null;\n\t\t\t\ttry {\n\t\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t\t+ \"to check if the modified entry already exists\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// If the modified service URI already exists and is not the\n\t\t\t\t// currently selected one\n\t\t\t\tif (!newServiceURI.equals(serviceURI)\n\t\t\t\t\t\t&& serviceURIs.contains(newServiceURI)) {\n\t\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"The Keystore already contains username and password pair for the entered service URI.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Overwrite that other entry entry and save the new\n\t\t\t\t\t\t\t * one in its place. Also remove the current one\n\t\t\t\t\t\t\t * that we are editing - as it is replacing the\n\t\t\t\t\t\t\t * other entry.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername,\n\t\t\t\t\t\t\t\t\t\t\tnewPassword), newServiceURI);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise show the same window with the entered\n\t\t\t\t\t// service URI, username and password values\n\t\t\t\t} else\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!newServiceURI.equals(serviceURI))\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername, newPassword), newServiceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t} else // nothing actually modified\n\t\t\t\tbreak;\n\t\t}\n\t}", "private void showPassword(){\n\t\tpasswordLabel.setVisible(true);\n\t\tconfirmPasswordLabel.setVisible(true);\n\t\tuserPasswordField.setVisible(true);\n\t\tuserConfirmPasswordField.setVisible(true);\n\t}", "public void getLDAPServerDetails(View view) {\n\t\tLog.i(TAG, \"handleLogin\");\n\t\tif (data.ismRequestNewAccount()) {\n\t\t\tdata.setmUsername(data.getmUsernameEdit().getText().toString());\n\t\t}\n\t\tdata.setmPassword(data.getmPasswordEdit().getText().toString());\n\t\tdata.setmHost(data.getmHostEdit().getText().toString());\n\t\ttry {\n\t\t\tdata.setmPort(Integer.parseInt(data.getmPortEdit().getText().toString()));\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tLog.i(TAG, \"No port given. Set port to 389\");\n\t\t\tdata.setmPort(389);\n\t\t}\n\t\tLDAPServerInstance ldapServer = new LDAPServerInstance(data.getmHost(), data.getmPort(), data.getmEncryption(), data.getmUsername(), data.getmPassword());\n\n\t\tshowDialog(PROGRESS_DIALOG);\n\t\t// Start authenticating...\n\t\tdata.setmAuthThread(LDAPUtilities.attemptAuth(ldapServer, data.getmHandler(), LDAPAuthenticatorActivity.this));\n\t}", "public String retourPageAuthentification() {\r\n\t\tdefaultVue.setPassword(null);\r\n\t\t// Retour à la page d'authentification\r\n\t\treturn \"LoginPassword\";\r\n\t}", "private void showUserPreferences() {\r\n MyAccount ma = state.getAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n \r\n mOriginName.setEnabled(!state.builder.isPersistent() && TextUtils.isEmpty(ma.getUsername()));\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary;\r\n if (ma.getUsername().length() > 0) {\r\n summary = new StringBuilder(ma.getUsername());\r\n } else {\r\n summary = new StringBuilder(this.getText(ma.alternativeTermForResourceId(R.string.summary_preference_username)));\r\n }\r\n mEditTextUsername.setDialogTitle(this.getText(ma.alternativeTermForResourceId(R.string.dialog_title_preference_username)));\r\n mEditTextUsername.setTitle(this.getText(ma.alternativeTermForResourceId(R.string.title_preference_username)));\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(!state.builder.isPersistent() && !ma.isUsernameValidToStartAddingNewAccount());\r\n \r\n boolean isNeeded = ma.canChangeOAuth();\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(isNeeded);\r\n if (isNeeded) {\r\n mOAuth.setTitle(R.string.title_preference_oauth);\r\n mOAuth.setSummary(ma.isOAuth() ? R.string.summary_preference_oauth_on : R.string.summary_preference_oauth_off);\r\n } else {\r\n mOAuth.setTitle(\"\");\r\n mOAuth.setSummary(\"\");\r\n }\r\n \r\n isNeeded = ma.getConnection().isPasswordNeeded();\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n if (isNeeded) {\r\n mEditTextPassword.setTitle(R.string.title_preference_password);\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n } else {\r\n summary = null;\r\n mEditTextPassword.setTitle(\"\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(isNeeded);\r\n \r\n int titleResId;\r\n boolean addAccountOrVerifyCredentialsEnabled = ma.isOAuth() || ma.getCredentialsPresent();\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (state.builder.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n if (!ma.isUsernameValidToStartAddingNewAccount()) {\r\n addAccountOrVerifyCredentialsEnabled = false;\r\n }\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n addAccountOrVerifyCredentials.setTitle(titleResId);\r\n addAccountOrVerifyCredentials.setSummary(summary);\r\n addAccountOrVerifyCredentials.setEnabled(addAccountOrVerifyCredentialsEnabled);\r\n }", "public String toString() {\n\t\tStringBuffer sb;\n\t\tsb = new StringBuffer(\"\\nlogin : \" + login);\n\t\tsb.append(\"\\npass : \" + passwd);\n\t\tif (admin) sb.append(\"admin\");\n\t\tif (pcreator) sb.append(\"pcreator\");\n\t\treturn sb.toString();\n\t}", "public void printUserInfo(){\n System.out.print(\"Username: \"+ getName() + \"\\n\" + \"Birthday: \"+getBirthday()+ \"\\n\"+ \"Hometown: \"+getHome()+ \"\\n\"+ \"About: \" +getAbout()+ \" \\n\"+ \"Subscribers: \" + getSubscriptions());\n\t}", "private void displayUserInfo(String name) {\n\t\tString username = null;\n\t\tPattern p = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n\t\tMatcher m = p.matcher(name);\n\t\tif (m.find())\n\t\t{\n\t\t username = m.group(1);\n\t\t lastClickedUser = username;\n\t\t}\n\t\tUser u = jdbc.get_user(username);\n\t\ttextFirstName.setText(u.get_firstname());\n\t\ttextLastName.setText(u.get_lastname());\n\t\ttextUsername.setText(u.get_username());\n\t\tif (u.get_usertype() == 1) {\n\t\t\trdbtnAdminDetails.setSelected(true);\n\t\t} else if (u.get_usertype() == 2) {\n\t\t\trdbtnManagerDetails.setSelected(true);\n\t\t} else {\n\t\t\trdbtnWorkerDetails.setSelected(true);\n\t\t}\n\t\tif (u.get_email() != null) {textEmail.setText(u.get_email());} else {textEmail.setText(\"No Email Address in Database.\");}\n\t\tif (u.get_phone() != null) {textPhone.setText(u.get_phone());} else {textPhone.setText(\"No Phone Number in Database.\");}\t\t\t\t\n\t\tcreateQualLists(u.get_userID());\n\t}", "public String showDetails() {\n\t\treturn \"Person Name is : \" + name + \"\\n\" + \"Person Address is : \" + address;\n\t}", "public UpdateAccountInfoUI() {\n initComponents();\n userNameLabel.setText(Authentication.online_user.getUserName());\n usernamePlaceholder.setText(Authentication.online_user.getUserName());\n emailPlaceholder.setText(Authentication.online_user.getEmail());\n passwordPLaceholder.setText(Authentication.online_user.getPassword());\n \n }", "@Override\n public String toString() {\n return \"userName \" + this.userName + \", pasword \" + this.passWord + \"sex \" + userSex.name();\n }", "public void bindProfileInfo(User user) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"<center><h3>CONNECTED USERS</h3></center>\");\n stringBuilder.append(\"<br>\");\n printKeys(stringBuilder, user);\n setMainText(stringBuilder.toString());\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "java.lang.String getCred();", "@Override\n public void onClick(View v) {\n String userName = \"\";\n String userPass = \"\";\n userName = name.getEditText().getText().toString();\n userPass = pass.getEditText().getText().toString();\n }", "@FXML\n private void showHelp(ActionEvent actionEvent)\n {\n DialogBox.showInformation(\"Welcome To Keycrypt\",\n \"Enter the password which corresponds to your access level. \" +\n \"Ask your system administrator which password you have access to.\\n\\n\" +\n \"The password entered will grant you access only to specific directories \" +\n \"within the application.\");\n }", "public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "@Override\r\n\tpublic String toString() {\r\n\t\t//new toString method for using possible fail checks (validation) later\r\n\t\t//it will not print PASSWORD\r\n\t\treturn String.format(\"UserID: \"+ userID +\"\\nUsername: \"+ username +\"\\nWeight: \"+ weight);\r\n\t}", "@Override\n public void showAuthScreen() {\n }", "public void getPass(ActionEvent actionEvent) {\n if(answer.getText().equals(help)){\n text.setVisible(true);\n password.setVisible(true);\n }\n }", "@Override\r\n\tpublic String execute() throws Exception {\n\t\tSystem.out.println(username + \"---\" + password + \"---\" + address);\r\n\t\t\r\n\t\tActionContext context = ServletActionContext.getContext();\r\n\t\tMap<String, Parameter> map = context.getParameters();\r\n\t\t\r\n\t\tSystem.out.println(\"username=\" + map.get(\"username\"));\r\n\t\t\r\n\t\treturn NONE;\r\n\t}", "public void viewdata() {\n\n login.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Cursor res = mydb.getData(user.getText().toString(), p.getText().toString());\n\n if (res.getCount() == 0) {\n\n showmessage(\"ERROR\", \"INVALID USER NAME OR PASSWORD\");\n user.setText(\"\");\n p.setText(\"\");\n return;\n\n }\n\n Intent i = new Intent(MainActivity.this,Details.class);\n i.putExtra(\"name\",user.getText().toString());\n i.putExtra(\"pwd\",p.getText().toString());\n user.setText(\"\");\n p.setText(\"\");\n startActivity(i);\n }\n });\n\n }", "private static void print(SimpleUser su) {\n\t\tSystem.out.println(\"userId: \" + su.getUserId());\n\t\tSystem.out.println(\"username: \" + su.getUsername());\n\t\tSystem.out.println(\"password: \" + su.getPassword());\n\t\tSystem.out.println(\"nickname: \" + su.getNickname());\n\t\tSystem.out.println();\n\t}", "private void showPreference(){\r\n if(userPreferencesForm == null) {\r\n userPreferencesForm = new UserPreferencesForm(mdiForm,true);\r\n }\r\n userPreferencesForm.loadUserPreferences(mdiForm.getUserId());\r\n userPreferencesForm.setUserName(mdiForm.getUserName());\r\n userPreferencesForm.display();\r\n }", "private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.print(k + \": \" + accountList.get(k) + \" || \");\n\n }\n }", "@Override\n public String getDescription() {\n return \"Account information\";\n }", "public ViewAccountInformationPrivilege(String username, Bank bank) {\n super(\"View account information\", username, bank);\n }", "public String getAccountEntry() {\n return this.username + Utility.createLine(' ', MAX_USERNAME_LENGTH -\n this.username.length()) + \" \" + this.type + \" \"\n + String.format(\"%09.2f\", this.balance);\n }", "private void setUserCredentials() {\n ((EditText) findViewById(R.id.username)).setText(\"harish\");\n ((EditText) findViewById(R.id.password)).setText(\"11111111\");\n PayPalHereSDK.setServerName(\"stage2pph10\");\n }", "public SetupScreen() \r\n { \r\n _userLabel = new LabelField(Ipoki._resources.getString(LBL_USER), DrawStyle.ELLIPSIS);\r\n add(_userLabel);\r\n _userEdit = new EditField(\"\", Ipoki._user, 20, Field.EDITABLE);\r\n add(_userEdit);\r\n _passLabel = new LabelField(Ipoki._resources.getString(LBL_PASSWORD), DrawStyle.ELLIPSIS);\r\n add(_passLabel);\r\n _passEdit = new PasswordEditField(\"\", Ipoki._pass, 20, Field.EDITABLE);\r\n add(_passEdit);\r\n _freqLabel = new LabelField(Ipoki._resources.getString(LBL_FREQ), DrawStyle.ELLIPSIS);\r\n add(_freqLabel);\r\n _freqEdit = new EditField(\"\", String.valueOf(Ipoki._freq), 20, Field.EDITABLE | EditField.FILTER_INTEGER);\r\n add(_freqEdit);\r\n }", "static void getRealUserPasswordUrl(String args[]) throws Exception {\n url = getOptionValue(args, \"-l\", DEFAULT_URL);\n\n // DB user can be modified in file, or taken from command-line\n user = getOptionValue(args, \"-u\", DEFAULT_USER);\n\n // DB user's password can be modified in file, or explicitly entered\n readPassword(\"Password for \" + user + \": \");\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void printUser() {\n\t\tSystem.out.println(\"First name: \" + this.firstname);\n\t\tSystem.out.println(\"Last name: \" + this.lastname);\n\t\tSystem.out.println(\"Age: \" + this.age);\n\t\tSystem.out.println(\"Email: \" + this.email);\n\t\tSystem.out.println(\"Gender: \" + this.gender);\n\t\tSystem.out.println(\"City: \" + this.city);\n\t\tSystem.out.println(\"State: \" + this.state + \"\\n\");\n\t}", "public void bind(Credential view) {\n\n if(view.getWebsiteName().isEmpty() || view.getSavedUsername().isEmpty() || view.getSavedPassword().isEmpty() || view.getURL().isEmpty())\n {\n Log.d(TAG, \"Unable to extract view from server\");\n }\n else\n {\n tvWebsiteName.setText(view.getWebsiteName());\n tvUsername.setText(view.getSavedUsername());\n tvPassword.setText(view.getSavedPassword());\n tvURL.setText(view.getURL());\n }\n\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "private void setupUsernameAndFullNameTextView() {\n usernameTextView.setText(prismUser.getUsername());\n userFullNameText.setText(prismUser.getFullName());\n }", "private void debugAuthentcation() {\n\n\t\t/*\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: serviceName: \" +\n\t\t * serviceName + \", baseUrl: \" + baseUrl + \" username: \" + username +\n\t\t * \" password: \" + password);\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: service name: \" +\n\t\t * serviceName + \", hardcodedBaseUrl: \" + hardcodedBaseUrl +\n\t\t * \" hardcodedUsername: \" + hardcodedUsername + \" hardcodedPassword: \" +\n\t\t * hardcodedPassword);\n\t\t */\n\t}", "public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }", "public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}", "private void displayConfirmPassword() {\n FieldRelatedLabel confirmPasswordLabel = new FieldRelatedLabel(\"Confirm Password\", 750, 370);\n\n invalidConfirmPasswordLabel = new InvalidFormEntryLabel(\"Does not match with the other password\", 910, 400, false);\n\n confirmPasswordTF = new PasswordField();\n confirmPasswordTF.relocate(750, 400);\n confirmPasswordTF.textProperty().addListener(e->FormValidatorPokeMongo.handleConfirmField(passwordTF, confirmPasswordTF, invalidConfirmPasswordLabel));\n\n sceneNodes.getChildren().addAll(confirmPasswordLabel, invalidConfirmPasswordLabel, confirmPasswordTF);\n }", "public String changePwordTitle() {\n return \"Changing password\";\n }", "@RolesAllowed(\"admin\")\n @GET\n @Produces({\"application/atom+xml\",\n \"application/atom+xml;type=entry\",\n \"application/atom+json\",\n \"application/atom+json;type=entry\",\n \"application/json\",\n \"application/xml\",\n \"text/xml\"})\n public Response get() {\n Entry entry = null;\n synchronized (Database.users) {\n User user = Database.users.get(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n }\n entry = abdera.newEntry();\n entry.setId(user.getId());\n entry.setTitle(user.getUsername());\n entry.setUpdated(user.getUpdated());\n String uri = uriInfo.getRequestUriBuilder().build().toString();\n entry.addLink(uri, \"self\");\n entry.addLink(uri, \"edit\");\n contentHelper.setContentEntity(entry, MediaType.APPLICATION_XML_TYPE, user);\n }\n return Response.ok(entry).build();\n }", "private PasswordScreen() {\n initComponents();\n\n //cbUserType.setModel(new DefaultComboBoxModel(new String[] {User.USER_TYPE_MANAGER, User.USER_TYPE_CASHIER, User.USER_TYPE_SERVER}));\n\n btnConfigureDatabase.setAction(goAction);\n btnConfigureDatabase.setActionCommand(\"DBCONFIG\");\n }", "private void displayUserDelegation() {\r\n userDelegationForm = new UserDelegationForm(mdiForm,true);\r\n userDelegationForm.display();\r\n }", "public KeyPairSigninDetailsWindow(JFrame parent, JFrame next, String alias, String path) {\n this.next = next;\n this.alias = alias;\n this.path = path;\n \n initComponents();\n \n certDetails.setText(KeyPairDetails.toString(alias));\n this.setVisible(true);\n this.setResizable(false);\n parent.dispose();\n }", "public String toLogin() {\r\n\t\treturn \"/login.xhtml\";\r\n\t}", "@Override\n\tpublic void LoginProc(Parent root) {\n\t\tTextField idTxt = (TextField) root.lookup(\"#txtid\");\n\t\tTextField pwTxt = (TextField) root.lookup(\"#txtpw\");\n\t\tSystem.out.println(\"ID : \"+idTxt.getText()+\",PW : \"+pwTxt.getText()+\"가 입력되었습니다.\");\n\t}", "@Override\n public String toString() {\n return getUsername();\n }", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }", "public String toString(){\n return String.format(\"Vigenere Cipher (password='%s')\", password);\n }", "@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}", "public OwSimpleUserInfo(String user_p, String password_p)\r\n {\r\n m_username = user_p;\r\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "public void displayCustomerDetails(){\n\t\tStringBuffer fullname = new StringBuffer();//Creates new string buffer\n\t\tStringBuffer fulladdress = new StringBuffer();//Creates new string buffer\n\t\tfullname.append(\"Full Name: \" + fname + \" \" + lname);\n\t\tfulladdress.append(\"Full Address: \" + address1 + \", \" + address2 + \", \" + postcode);\n\t\tSystem.out.println(fullname);\n\t\tSystem.out.println(fulladdress);\n\t\tSystem.out.println(\"Account No: \" + linkedacc);\n\t\tSystem.out.println(\"Customer Ref: \" + custref);\n\t}", "public void onClick(View v) {\n\t\t\t\tString usernameField = username.getText().toString();\n\t\t\t\tString passwordField = password.getText().toString();\n\n\t\t\t\t// login with this information\n\t\t\t\tlogin(usernameField, passwordField);\n\t\t\t\t\n\t\t\t}", "public void showInfo() {\n\t\t\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\"Your Checking Account features: \"\n\t\t\t\t+ \"\\nDebit Card Number: \" + debitCardNumber\n\t\t\t\t+ \"\\nDebit Card PIN: \" + debitCardPin\n\t\t\t\t+ \"\\n****************\"\n\t\t\t\t);\n\t\t\n\t}", "public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}", "UserDisplayDto getUserInfo(String login);", "private void getInfoUserButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_getInfoUserButtonActionPerformed\n\n clearInformation();\n String key = keyInfoUserTextField.getText();\n String username = usernameInfoUserTextField.getText();\n if (key.equals(EMPTY)) {\n this.displayInformation(PLEASE_EDIT_KEY);\n } else if (username.equals(EMPTY)) {\n this.displayInformation(PLEASE_EDIT_USERNAME);\n } else {\n\n // get the NSID of the user to have the groups\n Rsp response = flickrService.findByUsername(key, username);\n User user = (User) response.getAny();\n String user_id = user.getNsid();\n\n // get the person informations\n response = flickrService.getInfoUser(key, user_id);\n Person person = (Person) response.getAny();\n // display all\n resultUsernameInfoUserTextField.setText(person.getUsername());\n resultRealnameInfoUserTextField.setText(person.getRealname());\n resultMboxInfoUserTextField.setText(person.getMboxSha1Sum());\n resultLocationInfoUserTextField.setText(person.getLocation());\n resultPhotoUrlInfoUserTextField.setText(person.getPhotosurl());\n resultProfileUrlInfoUserTextFIeld.setText(person.getProfileurl());\n resultIConfarmInfoUserTextField1.setText(person.getIconfarm());\n resultFirstDatePhotoInfoUserTextField.setText(person.getPhotos().getFirstdate());\n resultCountPhotosInfoUserTextField.setText(String.valueOf(person.getPhotos().getCount()));\n displayInformation(REQUEST_OK);\n }\n }", "@Override\n public String toString() {\n return username;\n }", "@Override\n public void show()\n {\n boolean loginOK; // true if good user info was entered\n // multithreaded code does not execute properly in IDEs; true if IDE run detected\n boolean runningFromIDE = false;\n\n do // continue login process while user chooses to stay in login menu\n {\n loginOK = false;\n while(!loginOK) // do this while no good login info acquired, or user choose to bail.\n {\n System.out.println(splashStrings.LOGIN); // SPLASH WELCOME\n\n String userName = GET.getString(\"Indtast venligst bruger navn:\\n\\t|> \");\n\n char[] password;\n\n if(!runningFromIDE) // getPassword does not work in IDE\n {\n password = PasswordField.getPassword(System.in, \"Indtast venligst password:\\n\\t|> \");\n\n if(password == null)\n {\n // getPassword returns a null array reference, if no chars were captured, thus this.\n runningFromIDE = true;\n\n System.out.println(\"MELDING:\\nDet ser ud til at du kører programmet fra en IDE:\\t\" +\n \"Password masking slås fra.\" +\n \"\\nKør shorttest.jar, for at opnå den fulde bruger-oplevelse.\\n\");\n\n continue;\n }\n\n loginOK = checkCredentials(userName, new String(password));\n\n } else // option is chosen if IDE-execution detected\n {\n String passw = GET.getString(\"Indtast venligst password:\\n\\t|> \");\n loginOK = checkCredentials(userName, passw);\n }\n\n if(!loginOK) // if user input were no good, and ONLY if info were no good\n {\n System.out.println(\"De indtastede informationer fandtes ikke i systemet.\");\n if(GET.getConfirmation(\"Vil du prøve igen?\\n\\tja / nej\\n\\t|> \", \"nej\", \"ja\"))\n {\n System.out.println(\"Du valgte ikke at prøve igen, login afsluttes.\");\n break;\n }\n }\n }\n\n if(loginOK)\n {\n System.out.println(\"Login var en success. Fortsætter til første menu.\\n\");\n menuLoggedInto.show();\n }\n\n // when user returns from main menu, they get to choose if they want to log in again\n } while(GET.getConfirmation(\"Skal en anden logge ind?\\n\\t ja / nej\\n\\t|> \", \"ja\", \"nej\"));\n }", "@Override\n public void displayError() {\n Toast.makeText(this, \"Incorrect username or password.\", Toast.LENGTH_LONG).show();\n password.setText(\"\");\n }", "public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }", "public void connectGet() { mModel.connect(mUserModel.getEmail(), mUserModel.getJWT());\n // binding.usernameTextView.setText(args.getContact().getUserName());\n//// binding.firstnameTextView.setText(args.getContact().getFirstName());\n//// binding.lastnameTextView.setText(args.getContact().getLastName());\n//\n }", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tSystem.out.println(userName);\n\t\t\t}", "@Override\n public void enterTns_entry(tnsnamesParser.Tns_entryContext ctx)\n {\n String thisAlias;\n\n // Add each alias to the found aliases list, if it hasn't already been added.\n for (int i = 0; i < ctx.alias_list().alias().size(); i++)\n {\n // Get the next Alias from any lists.\n thisAlias = ctx.alias_list().alias(i).getText();\n \n // Write out the \"stuff\".\n System.out.println(\"[LOGIN\" + (this.loginNumber) + \"]\");\n System.out.println(this.user);\n System.out.println(\"Server=\" + thisAlias);\n System.out.println(\"AutoConnect=0\");\n System.out.println(this.oracleHome);\n System.out.println(\"SavePassword=0\");\n System.out.println(\"Favorite=0\"); // Yes, it is spelt incorrectly! ;-) \n System.out.println(\"SessionReadOnly=0\");\n System.out.println(\"Alias=\");\n System.out.println(\"Host=\");\n System.out.println(\"InstanceName=\");\n System.out.println(\"ServiceName=\");\n System.out.println(\"SID=\");\n System.out.println(\"Port=\");\n System.out.println(\"LDAP=\");\n System.out.println(\"Method=0\");\n System.out.println(\"Protocol=TNS\");\n System.out.println(\"ProtocolName=TCP\");\n System.out.println(\"Color=8421376\"); // TEAL - Yuck! Reminds user to fix it!\n System.out.println(this.connectAs);\n System.out.println(\"LastConnect=19600407031549\");\n System.out.println(\"RelativePosition=\" + (this.loginNumber -1));\n System.out.println(\"GUID=\");\n System.out.println();\n\n this.loginNumber++;\n }\n }", "public String printEnterPassword() {\n return \"Please enter your current password: \";\n }", "public void showInfo() {\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\n\t\t\t\t\" Your Savings Account Features: \" +\n\t\t\t\t\"\\n debitCardNumber: \" + debitCardNumber + \n\t\t\t\t\"\\n debitCardPIN: \" + debitCardPIN);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Hello, my name is: \" + getName() + \" and I have pass: \" + getPassword() + \" and balance: \" + getBalance() + \"$\" + \"\\n\";\n\t}", "private static void printHelp(){\r\n System.out.println(\"\\n\\n\\t\\t\\t ----HELP---\\n\\n\" +\r\n \"\\nYou can set the length of password like this \\n\" +\r\n \"\\t java -jar nipunpassgen.jar -l (where l is length of password) \\n\\n\" +\r\n \"\\nYou can also specifiy the which type of word your want to use like this-->\\n\" +\r\n \"\\t Type java -jar nipunpassgen.jar -l -tttt \\n \" +\r\n \"Here 1st t will set uselowercase true \\t 2nd t set useUppercase true\\n\" +\r\n \"\\t 3rd t set useDigit True \\t and 4th t set useSpecial Char true\\n\" +\r\n \"You can use 't' or 'T' for setting the true and 'f' or 'F' for setting the false\\n\" +\r\n \"You can pass -c flag at the end of command for directly copy the password in your\\n\" +\r\n \"clipboard without showing in console like this \\t java -jar nipunpassgen.jar -c \\t this will copy a\\n\" +\r\n \"random 8 digit password in your clipboard .\");\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn username;\n\t}", "@Override\n\tprotected String url() {\n\t\treturn \"user\";\n\t}", "@Override\n public void onClick(View v) {\n username = mUsernameView.getText().toString();\n password = mPasswordView.getText().toString();\n login();\n }", "@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException 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\n\t}" ]
[ "0.6497989", "0.64159966", "0.629831", "0.6200989", "0.59804493", "0.5979634", "0.58938336", "0.57925814", "0.5703761", "0.5699264", "0.5695187", "0.56910187", "0.567051", "0.5643252", "0.56369805", "0.5614199", "0.5582231", "0.5571772", "0.5557475", "0.555634", "0.5543454", "0.5527812", "0.5519831", "0.5518396", "0.55183446", "0.54973775", "0.549422", "0.549373", "0.5465825", "0.54597664", "0.5446775", "0.5428473", "0.54011875", "0.5395948", "0.53933156", "0.53848666", "0.5360914", "0.53529835", "0.5348959", "0.53298336", "0.5329057", "0.53172904", "0.5312154", "0.5287758", "0.5272581", "0.52634615", "0.5250391", "0.52458185", "0.52394015", "0.5235311", "0.52316517", "0.5231016", "0.5230658", "0.52261674", "0.5224766", "0.5203859", "0.5203685", "0.51921785", "0.51803285", "0.5178887", "0.51753336", "0.51731294", "0.5172518", "0.5166194", "0.5163747", "0.5153523", "0.5151077", "0.5147166", "0.51440233", "0.51424766", "0.5131741", "0.51208246", "0.5115295", "0.51034", "0.5099978", "0.50978667", "0.5094694", "0.50896627", "0.50868386", "0.5073825", "0.5073007", "0.50727415", "0.5068616", "0.5066589", "0.50640696", "0.50639766", "0.5063574", "0.5059132", "0.5048088", "0.5045184", "0.5041191", "0.50353855", "0.503092", "0.5029776", "0.50197613", "0.5015745", "0.5015406", "0.500689", "0.5006826", "0.5006648" ]
0.7201219
0
Lets a user insert a new username/password/service URI tuple to the Keystore.
private void newPassword() { URI serviceURI = null; // service URI String username = null; // username String password = null; // password // Loop until the user cancels or enters everything correctly while (true) { /* * Let the user insert a new password entry (by specifying service * URI, username and password) */ NewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog( this, "New username and password for a service", true, serviceURI, username, password, credManager); newPasswordDialog.setLocationRelativeTo(this); newPasswordDialog.setVisible(true); serviceURI = newPasswordDialog.getServiceURI(); // get service URI username = newPasswordDialog.getUsername(); // get username password = newPasswordDialog.getPassword(); // get password if (password == null) { // user cancelled - any of the above three // fields is null // do nothing return; } /* * Check if a password entry with the given service URI already * exists in the Keystore. We ask this here as the user may wish to * overwrite the existing password entry. Checking for key pair * entries' URIs is done in the NewEditPasswordEntry dialog. */ /* * Get list of service URIs for all the password entries in the * Keystore */ List<URI> serviceURIs = null; try { serviceURIs = credManager .getServiceURIsForAllUsernameAndPasswordPairs(); } catch (CMException cme) { showMessageDialog(this, "Failed to get service URIs for all username and password pairs " + "to check if the entered service URI already exists", ERROR_TITLE, ERROR_MESSAGE); return; } if (serviceURIs.contains(serviceURI)) { // if such a URI already // exists // Ask if the user wants to overwrite it int answer = showConfirmDialog( this, "Credential Manager already contains a password entry with the same service URI.\n" + "Do you want to overwrite it?", ALERT_TITLE, YES_NO_OPTION); // Add the new password entry in the Keystore try { if (answer == YES_OPTION) { credManager.addUsernameAndPasswordForService( new UsernamePassword(username, password), serviceURI); break; } } catch (CMException cme) { showMessageDialog( this, "Credential Manager failed to insert a new username and password pair", ERROR_TITLE, ERROR_MESSAGE); } /* * Otherwise show the same window with the entered service URI, * username and password values */ } else // Add the new password entry in the Keystore try { credManager.addUsernameAndPasswordForService(new UsernamePassword(username, password), serviceURI); break; } catch (CMException cme) { showMessageDialog( this, "Credential Manager failed to insert a new username and password pair", ERROR_TITLE, ERROR_MESSAGE); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAccount(String user, String password);", "UserSettings store(HawkularUser user, String key, String value);", "public void addUserCredentials(String login, String password) throws SQLException;", "UserSettings store(String key, String value);", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "void addUserpan(String userid,String username,String userpwd);", "public void addKeySecretPair(String key, String secret) throws ClassicDatabaseException;", "private void addNewClient(String username,String password){\n try(FileWriter fileWriter = new FileWriter(\"ClientsInformation.txt\",true)){\n fileWriter.write(username + \", \" + password + \"\\n\"); // Writes new client information in the database\n usersDataBase.put(username,password); // Updates the map with new client information\n }catch (IOException ioException)\n {\n System.out.println(\"From ClientsInformationManager - \" + ioException.getMessage());\n }\n }", "void addUser(String uid, String firstname, String lastname, String pseudo);", "void saveNewPassword(String userName, String hashedPassword) throws DatabaseException;", "int insert(AccessKeyRecordEntity record);", "public void addData(String User, String password) throws SQLException\n {\n }", "void addUser(Username username) throws UserAlreadyExistsException;", "@Override\n\tpublic Uri insert(Uri uri, ContentValues values) {\n\t\tSQLiteDatabase db = dbHelper.getWritableDatabase();\n\n\t\t// set/initiate some objects\n\t\tUri result = null;\n\n\t\tswitch (uriMatcher.match(uri)) {\n\t\t\tcase EVENT_CREDENTIALS: {\n\t\t\t\tresult = ContentUris.withAppendedId(SnapableContract.EventCredentials.CONTENT_URI, db.insert(DBHelper.EVENT_CREDENTIALS.TABLE_NAME, null, values));\n\n\t\t\t\t// TODO remove this dirty hack\n\t\t\t\t// update/create a guest via API if there is an email\n\t\t\t\tif (!values.getAsString(SnapableContract.EventCredentials.EMAIL).isEmpty()) {\n\t\t\t\t\tUpdateInsertGuest task = new UpdateInsertGuest(values);\n\t\t\t\t\ttask.execute();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\t// we successfully inserted the row, close the db, notify of change and return\n\t\tgetContext().getContentResolver().notifyChange(uri, null);\n\t\treturn result;\n\t}", "int insert(SysAuthentication record);", "void insertUser(String pseudo, String password, String email) throws SQLException;", "public void addUser(String u, String p) {\n \t//users.put(\"admin\",\"12345\");\n users.put(u, p);\n }", "private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit();\n\t edit.putString(ACCESS_KEY_NAME, key);\n\t edit.putString(ACCESS_SECRET_NAME, secret);\n\t edit.commit();\n\t }", "public void newPasswordForService(URI serviceURI) {\n\t\t/*\n\t\t * As this method can be called from outside of Credential Manager UI,\n\t\t * e.g. from wsdl-activity-ui or rshell-activity-ui to pop up a dialog\n\t\t * to ask the user for username and password, we also want to make sure\n\t\t * the main Credential Manager UI Dialog is visible as it may be clearer\n\t\t * to the user what is going on\n\t\t */\n\t\tif (!isVisible() || getState() == ICONIFIED)\n\t\t\tsetVisible(true);\n\n\t\t// Make sure password tab is selected as this method may\n\t\t// be called from outside of Credential Manager UI.\n\t\tkeyStoreTabbedPane.setSelectedComponent(passwordsTab);\n\n\t\tString username = null; // username\n\t\tString password = null; // password\n\n\t\t// Loop until the user cancels or enters everything correctly\n\t\twhile (true) {\n\n//\t\t\tif(!this.isVisible()){ // if Cred Man UI is already showing but e.g. obscured by another window or minimised\n//\t\t\t\t// Do not bring it up!\n//\t\t\t} // actually we now want to show it as it makes it clearer to the user what is going on\n\n\t\t\t// Let the user insert a new password entry for the given service\n\t\t\t// URI (by specifying username and password)\n\t\t\tNewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"New username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\t\t\tnewPasswordDialog.setLocationRelativeTo(this);\n\t\t\tnewPasswordDialog.setVisible(true);\n\n\t\t\tserviceURI = newPasswordDialog.getServiceURI(); // get service URI\n\t\t\tusername = newPasswordDialog.getUsername(); // get username\n\t\t\tpassword = newPasswordDialog.getPassword(); // get password\n\n\t\t\tif (password == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t/*\n\t\t\t * Check if a password entry with the given service URI already\n\t\t\t * exists in the Keystore. We ask this here as the user may wish to\n\t\t\t * overwrite the existing password entry. Checking for key pair\n\t\t\t * entries' URIs is done in the NewEditPasswordEntry dialog.\n\t\t\t */\n\n\t\t\t// Get list of service URIs for all the password entries in the\n\t\t\t// Keystore\n\t\t\tList<URI> serviceURIs = null;\n\t\t\ttry {\n\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t} catch (CMException cme) {\n\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t+ \"to check if the entered service URI already exists\",\n\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serviceURIs.contains(serviceURI)) { // if such a URI already\n\t\t\t\t// exists\n\t\t\t\t// Ask if the user wants to overwrite it\n\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\"Credential Manager already contains a password entry with the same service URI.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION);\n\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(username, password),\n\t\t\t\t\t\t\t\tserviceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tString exMessage = \"Credential Manager failed to insert a new username and password pair\";\n\t\t\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t// Otherwise show the same window with the entered service\n\t\t\t\t// URI, username and password values\n\t\t\t} else\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tcredManager.addUsernameAndPasswordForService(new UsernamePassword(username,\n\t\t\t\t\t\t\tpassword), serviceURI);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t}\n\t\t}\n\t}", "public static void createAuthKey() {\n\n String url = \"jdbc:sqlite:c:/Carapaca/server/db/database.db\";\n\n String sql = \"CREATE TABLE IF NOT EXISTS authenticatedkeys (\\n\" + \" id integer PRIMARY KEY AUTOINCREMENT,\\n\"\n + \" id_user integer NOT NULL,\\n\"\n + \" ipaddr text NOT NULL,\\n\"\n + \" publickey text NOT NULL,\\n\"\n + \" FOREIGN KEY(id_user) REFERENCES users(id)\" + \");\";\n\n try (Connection conn = DriverManager.getConnection(url); Statement stmt = conn.createStatement()) {\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "int insert(PasswdDo record);", "protected void storeSharedPrefs(String un2, String pwd2) {\n \teditor.putString(\"username\", un2);\n \teditor.putString(\"password\", pwd2); \t\n\t\teditor.commit(); //Commiting changes\n\t}", "private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCESS_KEY_NAME, key);\n\t\tedit.putString(ACCESS_SECRET_NAME, secret);\n\t\tedit.commit();\n\t}", "int newUser(String username, String password, Time creationTime);", "public static void addUser(String username, String password) {\n try {\n // create a mysql database connection\n Class.forName(\"com.mysql.jdbc.Driver\");\n HashSalt hashSalt = new HashSalt();\n connection = DriverManager.getConnection(\"RDS_HOST\",\"RDS_USERNAME\",\"RDS_PASSWORD\");\n String query = \"INSERT INTO YOUR_TABLE_NAME_GOES_HERE (username, password) VALUES(?,?)\";\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1, username);\n preparedStatement.setString(2,hashSalt.hashPassword(password));\n preparedStatement.executeUpdate();\n connection.close();\n\n } catch (Exception e) {\n System.err.println(\"Got an exception!\");\n System.err.println(e.getMessage());\n }\n }", "public void insertUser() {}", "private void register(String username,String password){\n\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "public void insertEntry(String userName, String password) {\n ContentValues newValues = new ContentValues();\n // Assign values for each column.\n newValues.put(\"USERNAME\", userName);\n newValues.put(\"PASSWORD\", password);\n\n // Insert the row into your table\n db.insert(\"LOGIN\", null, newValues);\n Toast.makeText(context, \"User Info Saved\", Toast.LENGTH_LONG).show();\n }", "int insert(UserPasswordDO record);", "void addUserInfo(String user, String password) {\r\n if (!userInfo.containsKey(user)) {\r\n userInfo.put(user, password);\r\n } else {\r\n System.out.println(\"User already exist!\");\r\n }\r\n writeToFile(\"Password.bin\", userInfo);\r\n }", "public final void saveUserInfo(final String userName, final String password)\n throws NoSuchAlgorithmException, UnsupportedEncodingException {\n addContact(userName, password);\n }", "public Integer addOrUpdate(LoginResponse user);", "DBOOtpSecret storeSecret(Long userId, String secret);", "Integer addUser(ServiceUserEntity user);", "void addUser() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Create a user ID: \");\r\n\t\tString userIDinput = scan.next();\r\n\t\tSystem.out.print(\"Create a password: \");\r\n\t\tmakePassword(userIDinput, scan.next());\r\n\t}", "public void setNewUser(String username, String password)\r\n {\r\n configureClient(username, password);\r\n }", "public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }", "@Override\n public Uri insert(Uri uri, ContentValues initialValues) {\n if (uriMatcher.match(uri) != WEBHOOKS) {\n throw new IllegalArgumentException(\"Unknown URI \" + uri);\n }\n\n ContentValues values;\n if (initialValues != null) {\n values = new ContentValues(initialValues);\n } else {\n values = new ContentValues();\n }\n\n Long now = Long.valueOf(System.currentTimeMillis());\n\n // Make sure that the fields are all set\n if (values.containsKey(CREATED_AT) == false) {\n values.put(CREATED_AT, now);\n }\n if (values.containsKey(UPDATED_AT) == false) {\n values.put(UPDATED_AT, now);\n }\n if (values.containsKey(NAME) == false) {\n Resources r = Resources.getSystem();\n values.put(NAME, r.getString(android.R.string.untitled));\n }\n if (values.containsKey(URI) == false) {\n values.put(URI, \"\");\n }\n if (values.containsKey(SECRET) == false) {\n values.put(SECRET, \"\");\n }\n if (values.containsKey(NONCE_RANDOM) == false) {\n values.put(NONCE_RANDOM, 0);\n }\n if (values.containsKey(NONCE_TIMESTAMP) == false) {\n values.put(NONCE_TIMESTAMP, 0);\n }\n\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n long rowId = db.insert(TABLE_NAME, URI, values);\n if (rowId > 0) {\n Uri retUri = ContentUris.withAppendedId(CONTENT_URI, rowId);\n getContext().getContentResolver().notifyChange(retUri, null);\n return retUri;\n }\n\n throw new SQLException(\"Failed to insert row into \" + uri);\n }", "public void createSystemUser(String nam, String surnam, String id, String username, String password) {\n\t\ttry {\n\t\t\trestaurant.addUser(nam, surnam, id, username, password);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "public static void createNewUserPreference(Context context) {\r\n\t\tString newUserId = generateNewUserId();\r\n\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\tString userConfigFileName = getUserConfigFileName(context, newUserId);\r\n\t\tString userDbFileName = getUserDatabaseFileName(context, newUserId);\r\n\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tEditor editor = prefs.edit();\r\n\t\t\tif (editor != null) {\r\n\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t}\r\n\r\n\t\t\teditor.commit();\r\n\t\t}\r\n\t}", "void save(KingdomUser user);", "public void propagateCredentials( User user, String password );", "public void storeKeys(String key, String secret) {\n // Save the access key for later\n SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n Editor edit = prefs.edit();\n edit.putString(ACCESS_KEY_NAME, key);\n edit.putString(ACCESS_SECRET_NAME, secret);\n edit.commit();\n }", "public void addNewUser(String email) {\n String userName = email.split(\"@\")[0];\n mUsersRef.child(userName).setValue(userName);\n userRef = db.getReference(\"users/\" + getUsername());\n userRef.child(\"email\").setValue(email);\n userSigns = new HashMap<String, UserSign>();\n }", "public void addUserToken(String login, String token) throws SQLException;", "@Override\n\tpublic User add(String name, String pwd, String phone) {\n\t\tSystem.out.println(\"OracleDao is add\");\n\t\treturn null;\n\t}", "public void register(String firstname, String lastname, String username, String email, String password) {\n BasicDBObject query = new BasicDBObject();\n query.put(\"firstname\", firstname);\n query.put(\"lastname\", lastname);\n query.put(\"username\", username);\n query.put(\"email\", email);\n query.put(\"password\", password);\n query.put(\"rights\", 0);\n users.save(query);\n System.out.println(\"### DATABASE: user \" + username + \" registered ... password hash: \" + password);\n }", "public void storeUser(User user) {\n User doublecheck = getUser(user.getEmail());\n if(doublecheck != null){\n if(user.getAboutMe() == null && doublecheck.getAboutMe() != null){\n user.setAboutMe(doublecheck.getAboutMe());\n }\n if(user.getFirstName() == null && doublecheck.getFirstName() != null){\n user.setFirstName(doublecheck.getFirstName());\n }\n if(user.getLastName() == null && doublecheck.getLastName() != null){\n user.setLastName(doublecheck.getLastName());\n }\n /*if(user.getAdvisees() == null && doublecheck.getAdvisees() != null){\n user.setAdvisees(doublecheck.getAdvisees());\n }\n if(user.getAdvisors() == null && doublecheck.getAdvisors() != null){\n user.setAdvisors(doublecheck.getAdvisors());\n }\n */\n }\n Entity userEntity = new Entity(\"User\", user.getEmail());\n userEntity.setProperty(\"email\", user.getEmail());\n userEntity.setProperty(\"aboutMe\", user.getAboutMe());\n userEntity.setProperty(\"firstName\", user.getFirstName());\n userEntity.setProperty(\"lastName\", user.getLastName());\n //userEntity.setProperty(\"advisees\", user.getAdviseesToString());\n //userEntity.setProperty(\"advisors\", user.getAdvisorsToString());\n datastore.put(userEntity);\n\n }", "String addAccount(UserInfo userInfo);", "int insert(SysUser record);", "int insert(SysUser record);", "public void newUser(User user);", "@Override public void registerNewUser(String username, String password)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.registerNewUser(username, password);\r\n }", "public Boolean addUser(User user) throws ApplicationException;", "public void addUserSign(String category, String url, String title){\n UserSign newSign = new UserSign(category, url, title);\n mUsersRef.child(getUsername()).child(\"myDeck\").child(url).setValue(newSign);\n userSigns.put(url, newSign);\n System.out.println(\"ADDED SIGN \" +url+ \" TO MY DECK size of deck is \" + userSigns.size());\n }", "void addUser(User user);", "void addUser(User user);", "public void insertAuthKeys(int id, String ip, String pk) {\n String sql = \"INSERT INTO authenticatedkeys(id_user, ipaddr, publickey) VALUES (?, ?, ?)\";\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setInt(1, id);\n pstmt.setString(2, ip);\n pstmt.setString(3, pk);\n pstmt.executeUpdate();\n System.out.println(\"CRIADO COM SUCESSO!\");\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "AionAddress createAccount(String password);", "void registerUser(User newUser);", "@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}", "public void registerUser(User user) throws UserManagementException;", "public void insert(String user, String pass) {\n root = insert(user, pass, root);\n }", "boolean addUser(int employeeId, String name, String password, String role);", "public void insertUser(String user, String pk, byte[] pw) throws NoSuchAlgorithmException {\n String sql = \"INSERT INTO users(user, publickey, password, salt) VALUES (?, ?, ?, ?)\";\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n String salt = \"\";\n String pwHex = \"\";\n salt = getSalt();\n pwHex = getHash(getHex(pw), salt);\n\n pstmt.setString(1, user);\n pstmt.setString(2, pk);\n pstmt.setString(3, pwHex);\n pstmt.setString(4, salt);\n pstmt.executeUpdate();\n System.out.println(\"CRIADO COM SUCESSO!\");\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "public interface OhmageOMHSDKCredentialStore {\n byte[] get(Context context, String key);\n void set(Context context, String key, byte[] value);\n void remove(Context context, String key);\n}", "public interface UserService extends IProvider {\n\n User getUser();\n\n int insert(User user);\n}", "public void creatUser(String name, String phone, String email, String password);", "abstract public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);", "protected void addTenantKey() {\n if (!MULTITENANT_FEATURE_ENABLED.contains(dbType)) {\n return;\n }\n\n // Only if the Tenant Key file is provided as a parameter is it not null.\n // in this case we want special behavior.\n if (tenantKeyFileUtil.keyFileExists(tenantKeyFileName)) {\n tenantKey = this.tenantKeyFileUtil.readTenantFile(tenantKeyFileName);\n } else {\n tenantKey = getRandomKey();\n }\n\n // The salt is used when we hash the tenantKey. We're just using SHA-256 for\n // the hash here, not multiple rounds of a password hashing algorithm. It's\n // sufficient in our case because we are using a 32-byte random value as the\n // key, giving 256 bits of entropy.\n final String tenantSalt = getRandomKey();\n\n Db2Adapter adapter = new Db2Adapter(connectionPool);\n checkIfTenantNameAndTenantKeyExists(adapter, tenantName, tenantKey);\n try (ITransaction tx = TransactionFactory.openTransaction(connectionPool)) {\n try {\n GetTenantDAO tid = new GetTenantDAO(adminSchemaName, addKeyForTenant);\n Tenant tenant = adapter.runStatement(tid);\n\n if (tenant != null) {\n // Attach the new tenant key to the tenant:\n AddTenantKeyDAO adder =\n new AddTenantKeyDAO(adminSchemaName, tenant.getTenantId(), tenantKey, tenantSalt,\n FhirSchemaConstants.TENANT_SEQUENCE);\n adapter.runStatement(adder);\n } else {\n throw new IllegalArgumentException(\"Tenant does not exist: \" + addKeyForTenant);\n }\n } catch (DataAccessException x) {\n // Something went wrong, so mark the transaction as failed\n tx.setRollbackOnly();\n throw x;\n }\n }\n\n if (tenantKeyFileName == null) {\n // Generated\n logger.info(\"New tenant key: \" + addKeyForTenant + \" [key=\" + tenantKey + \"]\");\n } else {\n // Loaded from File\n logger.info(\n \"New tenant key from file: \" + addKeyForTenant + \" [tenantKeyFileName=\" + tenantKeyFileName + \"]\");\n if (!tenantKeyFileUtil.keyFileExists(tenantKeyFileName)) {\n tenantKeyFileUtil.writeTenantFile(tenantKeyFileName, tenantKey);\n }\n }\n\n }", "public interface UserService {\n\n public User save(String username, String password);\n}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "void add(String key);", "int insert(SessionAccountConnectAttrs record);", "void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;", "public void addAuthInfo(AuthInfo info);", "public void addUser(User user);", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "public interface UserService {\n\n public User get(String username);\n\n public User save(User user);\n\n public void saveHost(String host, String name);\n\n public String getName(String host);\n}", "@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "@When(\"^I insert user name \\\"(.*?)\\\" and password \\\"(.*?)\\\"$\")\r\n\tpublic void i_insert_user_name_and_password(String arg1, String arg2) throws Throwable {\n\t throw new PendingException();\r\n\t}", "public void save(SystemUser user);", "public void storeUser(User user) {\n Entity userEntity = new Entity(\"User\", user.getEmail());\n userEntity.setProperty(\"email\", user.getEmail());\n userEntity.setProperty(\"aboutMe\", user.getAboutMe());\n datastore.put(userEntity);\n }", "void add(User user) throws AccessControlException;", "Boolean registerNewUser(User user);", "@Override\n public synchronized void saveKey(char[] key, String catalogName)\n throws SecurityKeyException\n {\n if (key == null || key.length < 1) {\n LOG.info(\"key is null or empty, will not create keystore for catalog[%s].\", catalogName);\n return;\n }\n createStoreDirIfNotExists();\n createAndSaveKeystore(key, catalogName);\n }", "public void saveAuthentication(String username) {\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(AUTH, true);\n editor.putString(USERNAME, username);\n editor.apply();\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "private Boolean updateServiceValues( String user, String pw ) {\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\t\t\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Url is valid start service\n\t\t// NOTE: Service will be started even if no network on\n\t\tif( mService != null ) {\n\t\t\tmService.setServer(makeServerUrl());\n\t\t\tmService.setUsername(user);\n\t\t\tmService.setPassword(pw);\n\t\t} else {\n\t\t\tdoBindService();\n\t\t}\n\t\treturn true;\n\t}", "void retrievePassWord(User user);", "public void addUserDictionary(String dictionary) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_DICTIONARY, dictionary);\n\n // Inserting Row\n db.insert(TABLE_USER_DICTIONARIES, null, values);\n db.close(); // Closing database connection\n }", "int insert(OauthApprovals record);", "@Override\n\tpublic void addNewUser(User user) {\n\t\tusersHashtable.put(user.getAccount(),user);\n\t}", "@Override\n public void insertAccount() throws Exception {\n\n }", "private void storeInputInDatabase(){\n // get the {@userInfoValues} as inputs of userInfo that needs to be inserted in the table {@ user_info}\n // get the {@productInfoValues} as inputs of user Product details that needs to be inserted in the table {@ product_info}\n // This is called when user clicks on add new client.\n if (firstName == null && location == null) {\n ContentValues userInfoValues = storeUserInfo();\n /**\n * {@user_info_insertion_uri} {@product_info_insertion_uri} returns a Uri with the last inserted row number after the insertion of the content values,\n * {@user_info_insertion_uri} last character which is {@ID} is then used by {@productInfoValues} for it's foreign key.\n * ContentUris.parseId(uri) find the id from the uri and return it.\n * */\n Uri user_info_insertion_uri = getContentResolver().insert(clientContract.ClientEntry.CONTENT_URI, userInfoValues);\n ContentValues productInfoValues = storeProductInfo(ContentUris.parseId(user_info_insertion_uri));\n Uri product_info_insertion_uri = getContentResolver().insert(clientContract.ClientInfo.CONTENT_URI,productInfoValues);\n Toast.makeText(AddNewClient.this,\"Added\",Toast.LENGTH_SHORT).show();\n\n }// when clients client buys a new item so this will add it to the product_info\n // currentClientUri is the Uri received from MainActivity.\n else if( (firstName != null && location != null) && payMode == null && product_pk_id == -2) {\n ContentValues productInfoValues = storeProductInfo(ContentUris.parseId(currentClientUri));\n Uri uris = getContentResolver().insert(clientContract.ClientInfo.CONTENT_URI_PRODUCT_INFO_INSERT_ITEM,productInfoValues);\n Toast.makeText(AddNewClient.this,\"Added\",Toast.LENGTH_SHORT).show();\n }else if (firstName != null && location != null && payMode != null && product_pk_id != -2){\n ContentValues productInfoValues = storeProductInfo(product_pk_id);\n int rows = getContentResolver().update(clientContract.ClientInfo.CONTENT_URI,productInfoValues,clientContract.ClientInfo.COLUMN_PK_ID+\"=\"+product_pk_id,null);\n if (rows == 0){\n Toast.makeText(this,\"Error\",Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(this,\"Updated\",Toast.LENGTH_SHORT).show();\n }\n }\n }" ]
[ "0.6052309", "0.6031522", "0.59788686", "0.584494", "0.5822929", "0.5614184", "0.5598894", "0.55875695", "0.55410385", "0.54983354", "0.5396855", "0.53329366", "0.5329622", "0.5318942", "0.53063375", "0.5301558", "0.5301327", "0.529863", "0.52888834", "0.52793026", "0.5279091", "0.52709913", "0.52679276", "0.5259472", "0.5258865", "0.5254492", "0.52300555", "0.5221306", "0.52193415", "0.52062297", "0.5203246", "0.51993525", "0.51894397", "0.51718754", "0.5157622", "0.5154629", "0.5154002", "0.51424605", "0.5140238", "0.51362544", "0.5133433", "0.5129908", "0.5128519", "0.5122696", "0.5108187", "0.51016706", "0.5097441", "0.5082754", "0.5080047", "0.5078828", "0.5072701", "0.5064515", "0.5064515", "0.50557065", "0.5052865", "0.50516415", "0.5047642", "0.504169", "0.504169", "0.50411725", "0.5030031", "0.5010319", "0.5004548", "0.5002547", "0.49978772", "0.49956927", "0.4989503", "0.49893215", "0.4981688", "0.4981517", "0.49774927", "0.49739078", "0.49730298", "0.49617", "0.49514565", "0.49506748", "0.4946506", "0.4945926", "0.49455622", "0.4943743", "0.4941115", "0.49333623", "0.49331176", "0.4928557", "0.49254587", "0.4923926", "0.49223545", "0.4915573", "0.49148554", "0.4911094", "0.4907484", "0.4905206", "0.4902572", "0.49014387", "0.49012", "0.48984683", "0.48972794", "0.4892691", "0.48858878", "0.48841587" ]
0.57885665
5
Lets a user insert a new username/password pair for a given service URI to the Keystore.
public void newPasswordForService(URI serviceURI) { /* * As this method can be called from outside of Credential Manager UI, * e.g. from wsdl-activity-ui or rshell-activity-ui to pop up a dialog * to ask the user for username and password, we also want to make sure * the main Credential Manager UI Dialog is visible as it may be clearer * to the user what is going on */ if (!isVisible() || getState() == ICONIFIED) setVisible(true); // Make sure password tab is selected as this method may // be called from outside of Credential Manager UI. keyStoreTabbedPane.setSelectedComponent(passwordsTab); String username = null; // username String password = null; // password // Loop until the user cancels or enters everything correctly while (true) { // if(!this.isVisible()){ // if Cred Man UI is already showing but e.g. obscured by another window or minimised // // Do not bring it up! // } // actually we now want to show it as it makes it clearer to the user what is going on // Let the user insert a new password entry for the given service // URI (by specifying username and password) NewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog( this, "New username and password for a service", true, serviceURI, username, password, credManager); newPasswordDialog.setLocationRelativeTo(this); newPasswordDialog.setVisible(true); serviceURI = newPasswordDialog.getServiceURI(); // get service URI username = newPasswordDialog.getUsername(); // get username password = newPasswordDialog.getPassword(); // get password if (password == null) // user cancelled - any of the above three // fields is null // do nothing return; /* * Check if a password entry with the given service URI already * exists in the Keystore. We ask this here as the user may wish to * overwrite the existing password entry. Checking for key pair * entries' URIs is done in the NewEditPasswordEntry dialog. */ // Get list of service URIs for all the password entries in the // Keystore List<URI> serviceURIs = null; try { serviceURIs = credManager .getServiceURIsForAllUsernameAndPasswordPairs(); } catch (CMException cme) { showMessageDialog(this, "Failed to get service URIs for all username and password pairs " + "to check if the entered service URI already exists", ERROR_TITLE, ERROR_MESSAGE); return; } if (serviceURIs.contains(serviceURI)) { // if such a URI already // exists // Ask if the user wants to overwrite it int answer = showConfirmDialog( this, "Credential Manager already contains a password entry with the same service URI.\n" + "Do you want to overwrite it?", ALERT_TITLE, YES_NO_OPTION); // Add the new password entry in the Keystore try { if (answer == YES_OPTION) { credManager.addUsernameAndPasswordForService( new UsernamePassword(username, password), serviceURI); break; } } catch (CMException cme) { String exMessage = "Credential Manager failed to insert a new username and password pair"; showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); } // Otherwise show the same window with the entered service // URI, username and password values } else // Add the new password entry in the Keystore try { credManager.addUsernameAndPasswordForService(new UsernamePassword(username, password), serviceURI); break; } catch (CMException cme) { showMessageDialog(this, "Credential Manager failed to insert a new username and password pair", ERROR_TITLE, ERROR_MESSAGE); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAccount(String user, String password);", "public void addUserCredentials(String login, String password) throws SQLException;", "private void newPassword() {\n\t\tURI serviceURI = null; // service URI\n\t\tString username = null; // username\n\t\tString password = null; // password\n\n\t\t// Loop until the user cancels or enters everything correctly\n\t\twhile (true) {\n\t\t\t/*\n\t\t\t * Let the user insert a new password entry (by specifying service\n\t\t\t * URI, username and password)\n\t\t\t */\n\t\t\tNewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"New username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\t\t\tnewPasswordDialog.setLocationRelativeTo(this);\n\t\t\tnewPasswordDialog.setVisible(true);\n\n\t\t\tserviceURI = newPasswordDialog.getServiceURI(); // get service URI\n\t\t\tusername = newPasswordDialog.getUsername(); // get username\n\t\t\tpassword = newPasswordDialog.getPassword(); // get password\n\n\t\t\tif (password == null) { // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Check if a password entry with the given service URI already\n\t\t\t * exists in the Keystore. We ask this here as the user may wish to\n\t\t\t * overwrite the existing password entry. Checking for key pair\n\t\t\t * entries' URIs is done in the NewEditPasswordEntry dialog.\n\t\t\t */\n\n\t\t\t/*\n\t\t\t * Get list of service URIs for all the password entries in the\n\t\t\t * Keystore\n\t\t\t */\n\t\t\tList<URI> serviceURIs = null;\n\t\t\ttry {\n\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t} catch (CMException cme) {\n\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t+ \"to check if the entered service URI already exists\",\n\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serviceURIs.contains(serviceURI)) { // if such a URI already\n\t\t\t\t// exists\n\t\t\t\t// Ask if the user wants to overwrite it\n\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Credential Manager already contains a password entry with the same service URI.\\n\"\n\t\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\t\tALERT_TITLE,\n\t\t\t\t\t\t\t\tYES_NO_OPTION);\n\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(username, password),\n\t\t\t\t\t\t\t\tserviceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * Otherwise show the same window with the entered service URI,\n\t\t\t\t * username and password values\n\t\t\t\t */\n\t\t\t} else\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tcredManager.addUsernameAndPasswordForService(new UsernamePassword(username,\n\t\t\t\t\t\t\tpassword), serviceURI);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t}\n\t\t}\n\t}", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "UserSettings store(HawkularUser user, String key, String value);", "void saveNewPassword(String userName, String hashedPassword) throws DatabaseException;", "void addUserpan(String userid,String username,String userpwd);", "public void propagateCredentials( User user, String password );", "AionAddress createAccount(String password);", "UserSettings store(String key, String value);", "public void setNewUser(String username, String password)\r\n {\r\n configureClient(username, password);\r\n }", "private void register(String username,String password){\n\n }", "public void createSystemUser(String nam, String surnam, String id, String username, String password) {\n\t\ttry {\n\t\t\trestaurant.addUser(nam, surnam, id, username, password);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void addUser(String username, String password) {\n try {\n // create a mysql database connection\n Class.forName(\"com.mysql.jdbc.Driver\");\n HashSalt hashSalt = new HashSalt();\n connection = DriverManager.getConnection(\"RDS_HOST\",\"RDS_USERNAME\",\"RDS_PASSWORD\");\n String query = \"INSERT INTO YOUR_TABLE_NAME_GOES_HERE (username, password) VALUES(?,?)\";\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1, username);\n preparedStatement.setString(2,hashSalt.hashPassword(password));\n preparedStatement.executeUpdate();\n connection.close();\n\n } catch (Exception e) {\n System.err.println(\"Got an exception!\");\n System.err.println(e.getMessage());\n }\n }", "public void addKeySecretPair(String key, String secret) throws ClassicDatabaseException;", "void addUser(String uid, String firstname, String lastname, String pseudo);", "private void addNewClient(String username,String password){\n try(FileWriter fileWriter = new FileWriter(\"ClientsInformation.txt\",true)){\n fileWriter.write(username + \", \" + password + \"\\n\"); // Writes new client information in the database\n usersDataBase.put(username,password); // Updates the map with new client information\n }catch (IOException ioException)\n {\n System.out.println(\"From ClientsInformationManager - \" + ioException.getMessage());\n }\n }", "public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }", "private Boolean updateServiceValues( String user, String pw ) {\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\t\t\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Url is valid start service\n\t\t// NOTE: Service will be started even if no network on\n\t\tif( mService != null ) {\n\t\t\tmService.setServer(makeServerUrl());\n\t\t\tmService.setUsername(user);\n\t\t\tmService.setPassword(pw);\n\t\t} else {\n\t\t\tdoBindService();\n\t\t}\n\t\treturn true;\n\t}", "void addUser() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Create a user ID: \");\r\n\t\tString userIDinput = scan.next();\r\n\t\tSystem.out.print(\"Create a password: \");\r\n\t\tmakePassword(userIDinput, scan.next());\r\n\t}", "int newUser(String username, String password, Time creationTime);", "void addUserInfo(String user, String password) {\r\n if (!userInfo.containsKey(user)) {\r\n userInfo.put(user, password);\r\n } else {\r\n System.out.println(\"User already exist!\");\r\n }\r\n writeToFile(\"Password.bin\", userInfo);\r\n }", "GoogleAuthenticatorKey createCredentials(String userName);", "public void registerUser(User user) throws UserManagementException;", "void insertUser(String pseudo, String password, String email) throws SQLException;", "void addUser(Username username) throws UserAlreadyExistsException;", "public void addData(String User, String password) throws SQLException\n {\n }", "public final void saveUserInfo(final String userName, final String password)\n throws NoSuchAlgorithmException, UnsupportedEncodingException {\n addContact(userName, password);\n }", "protected void storeSharedPrefs(String un2, String pwd2) {\n \teditor.putString(\"username\", un2);\n \teditor.putString(\"password\", pwd2); \t\n\t\teditor.commit(); //Commiting changes\n\t}", "int insert(PasswdDo record);", "void setUserPasswordHash(String passwordHash);", "@Override public void registerNewUser(String username, String password)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.registerNewUser(username, password);\r\n }", "boolean createUser(String username, String password);", "public void addUser(String u, String p) {\n \t//users.put(\"admin\",\"12345\");\n users.put(u, p);\n }", "private void createAccount(String username, String passphrase, String email) {\n\tif (!AccountManager.getUniqueInstance().candidateUsernameExists(username)) {\n\t try {\n\t\tAccountManager.getUniqueInstance().createCandidateAccount(username, \n\t\t\t\t\t\t\t\t\t passphrase, \n\t\t\t\t\t\t\t\t\t email);\n\t } catch (Exception e) {\n\t\tthrow new RuntimeException(\"creation failed\");\n\t }\n\t} else {\n\t throw new RuntimeException(\"username already exists\");\n\t}\n }", "DBOOtpSecret storeSecret(Long userId, String secret);", "public void addUserToken(String login, String token) throws SQLException;", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "public void register(String firstname, String lastname, String username, String email, String password) {\n BasicDBObject query = new BasicDBObject();\n query.put(\"firstname\", firstname);\n query.put(\"lastname\", lastname);\n query.put(\"username\", username);\n query.put(\"email\", email);\n query.put(\"password\", password);\n query.put(\"rights\", 0);\n users.save(query);\n System.out.println(\"### DATABASE: user \" + username + \" registered ... password hash: \" + password);\n }", "Integer addUser(ServiceUserEntity user);", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "public interface UserService {\n\n public User save(String username, String password);\n}", "public ProtocolProviderService signin(String userName, String password)\n throws OperationFailedException\n {\n ProtocolProviderFactory factory\n = DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return this.installAccount(factory, registration.getHost(),\n registration.getPort(),\n registration.getStrategy().getCode());\n }", "public void creatUser(String name, String phone, String email, String password);", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "void retrievePassWord(User user);", "private void authenticate(String user, String pass) {\n }", "public interface UserService {\n HashMap<String,Object> get(String id);\n\n HashMap<String,Object> getUserByName(String name);\n\n HashMap<String,Object> verifyAccessToken(String accessToken);\n\n int genUserToken(String name, String token);\n\n int changePwd(String id, String newPasswordCiphertext);\n}", "abstract public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);", "public EOSUser createUser(EOSUser user, Map<String, String> userData) throws EOSDuplicatedEntryException,\n\t\t\tEOSForbiddenException, EOSUnauthorizedException, EOSValidationException;", "private void insertCredentials(String email, String password){\n botStyle.type(this.userName, email);\n botStyle.type(this.password, password);\n }", "@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);", "private void editPassword() {\n\t\t// Which password entry has been selected?\n\t\tint iRow = passwordsTable.getSelectedRow();\n\t\tif (iRow == -1) { // no row currently selected\n\t\t\treturn;\n\t\t}\n\n\t\t// Get current values for service URI, username and password\n\t\tURI serviceURI = URI.create((String) passwordsTable.getValueAt(iRow, 1)); // current entry's service URI\n\n\t\tString username = (String) passwordsTable.getValueAt(iRow, 2); // current entry's username\n\n\t\t/*\n\t\t * Because the password column is not visible we call the getValueAt\n\t\t * method on the table model rather than at the JTable\n\t\t */\n\t\tString password = (String) passwordsTable.getModel()\n\t\t\t\t.getValueAt(iRow, 4); // current entry's password value\n\n\t\twhile (true) { // loop until user cancels or enters everything correctly\n\t\t\t// Let the user edit service URI, username or password of a password entry\n\t\t\tNewEditPasswordEntryDialog editPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"Edit username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\n\t\t\teditPasswordDialog.setLocationRelativeTo(this);\n\t\t\teditPasswordDialog.setVisible(true);\n\n\t\t\t// New values\n\t\t\tURI newServiceURI = editPasswordDialog.getServiceURI(); // get new service URI\n\t\t\tString newUsername = editPasswordDialog.getUsername(); // get new username\n\t\t\tString newPassword = editPasswordDialog.getPassword(); // get new password\n\n\t\t\tif (newPassword == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t// Is anything actually modified?\n\t\t\tboolean isModified = !serviceURI.equals(newServiceURI)\n\t\t\t\t\t|| !username.equals(newUsername)\n\t\t\t\t\t|| !password.equals(newPassword);\n\n\t\t\tif (isModified) {\n\t\t\t\t/*\n\t\t\t\t * Check if a different password entry with the new URI (i.e.\n\t\t\t\t * alias) already exists in the Keystore We ask this here as the\n\t\t\t\t * user may wish to overwrite that other password entry.\n\t\t\t\t */\n\n\t\t\t\t// Get list of URIs for all passwords in the Keystore\n\t\t\t\tList<URI> serviceURIs = null;\n\t\t\t\ttry {\n\t\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t\t+ \"to check if the modified entry already exists\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// If the modified service URI already exists and is not the\n\t\t\t\t// currently selected one\n\t\t\t\tif (!newServiceURI.equals(serviceURI)\n\t\t\t\t\t\t&& serviceURIs.contains(newServiceURI)) {\n\t\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"The Keystore already contains username and password pair for the entered service URI.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Overwrite that other entry entry and save the new\n\t\t\t\t\t\t\t * one in its place. Also remove the current one\n\t\t\t\t\t\t\t * that we are editing - as it is replacing the\n\t\t\t\t\t\t\t * other entry.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername,\n\t\t\t\t\t\t\t\t\t\t\tnewPassword), newServiceURI);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise show the same window with the entered\n\t\t\t\t\t// service URI, username and password values\n\t\t\t\t} else\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!newServiceURI.equals(serviceURI))\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername, newPassword), newServiceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t} else // nothing actually modified\n\t\t\t\tbreak;\n\t\t}\n\t}", "public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);", "public static boolean storeUser(User dto){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tEntity user = new Entity(\"User\");\n\t\tuser.setProperty(\"firstName\", dto.getFirstName());\n\t\tuser.setProperty(\"lastName\", dto.getLastName());\n\t\t//NOTE! this is the HASHED password, not the raw unhashed pw\n\t\tuser.setProperty(\"password\", dto.getPassword());\n\t\ttry{\n\t\t\tdatastore.put(user);\n\t\t\treturn true;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void registerUser(String username, String password)\n {\n if(!spaceExists.spaceExists(SpaceUtils.getSpace()))\n {\n spaceExists.getSpaceExistsWarning(loginForm,\n \"\");\n }\n // check text fields are not blank\n if(StringUtils.isNotBlank(username) &&\n StringUtils.isNotBlank(password))\n {\n // Check length of password\n if(password.length() >= 6 &&\n password.length() <= 25)\n {\n // check username length\n if(username.length() >= 3 &&\n username.length() <= 20)\n {\n // continue\n String confirmDialogResponse = confirmPassword();\n\n// System.out.println(\"Dialog: \" + confirmDialogResponse);\n// System.out.println(\"Password: \"+password);\n if(password.equals(confirmDialogResponse))\n {\n // passwords match\n // save user to space\n try\n {\n // create new entry\n // encrypt password\n UserEntry user = new UserEntry();\n user.setUsername(username);\n user.setID(UUID.randomUUID());\n user.setSalt(CipherUtils.getSalt(30));\n user.setPassword(\n CipherUtils.generateSecurePassword(\n password, user.getSalt()));\n\n if(user.getSecureUsername().length() > 3)\n {\n // there are at least 3 non-special characters\n // create user\n if(userUtils.createUser(user) != null)\n {\n\n JOptionPane.showMessageDialog(loginForm,\n \"Welcome \" + user.getUsername() + \"!\");\n\n // remove loginForm\n loginForm.setVisible(false);\n loginForm.dispose();\n // Lease is renewed at every login\n userUtils.renewUserLease(user);\n\n // Debug:\n// UserEntry debug = (UserEntry) space.readIfExists(user, null, 3000);\n// System.out.println(\"User: \" + debug.getUsername() +\" Successfully added!\");\n// System.out.println(\"Main Form Created!\");\n\n // Create MainForm\n new MainForm(user);\n }\n else\n {\n // user already exists\n JOptionPane.showMessageDialog(loginForm,\n user.getUsername() + \" is taken.\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must have at least 3 non-special characters. \");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Passwords did not match!\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must be 3 - 20 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Password must be 6 - 25 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"A username and password are required.\");\n }\n }", "public void insertEntry(String userName, String password) {\n ContentValues newValues = new ContentValues();\n // Assign values for each column.\n newValues.put(\"USERNAME\", userName);\n newValues.put(\"PASSWORD\", password);\n\n // Insert the row into your table\n db.insert(\"LOGIN\", null, newValues);\n Toast.makeText(context, \"User Info Saved\", Toast.LENGTH_LONG).show();\n }", "public void saveAuthentication(String username) {\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(AUTH, true);\n editor.putString(USERNAME, username);\n editor.apply();\n }", "public interface UserService {\n boolean checkCredentials(String login, String password);\n User add(String login, String password);\n}", "public Integer addOrUpdate(LoginResponse user);", "public void insertUser(String user, String pk, byte[] pw) throws NoSuchAlgorithmException {\n String sql = \"INSERT INTO users(user, publickey, password, salt) VALUES (?, ?, ?, ?)\";\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n String salt = \"\";\n String pwHex = \"\";\n salt = getSalt();\n pwHex = getHash(getHex(pw), salt);\n\n pstmt.setString(1, user);\n pstmt.setString(2, pk);\n pstmt.setString(3, pwHex);\n pstmt.setString(4, salt);\n pstmt.executeUpdate();\n System.out.println(\"CRIADO COM SUCESSO!\");\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public static void createAuthKey() {\n\n String url = \"jdbc:sqlite:c:/Carapaca/server/db/database.db\";\n\n String sql = \"CREATE TABLE IF NOT EXISTS authenticatedkeys (\\n\" + \" id integer PRIMARY KEY AUTOINCREMENT,\\n\"\n + \" id_user integer NOT NULL,\\n\"\n + \" ipaddr text NOT NULL,\\n\"\n + \" publickey text NOT NULL,\\n\"\n + \" FOREIGN KEY(id_user) REFERENCES users(id)\" + \");\";\n\n try (Connection conn = DriverManager.getConnection(url); Statement stmt = conn.createStatement()) {\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void setCredentials(String username, String role, String password)\n\t{\n\t\tConnection dbConnection = null;\n\t\tPreparedStatement preparedStatement=null;\n\n\t\ttry {\t\t\t\t\n\t\t\tInteger userId = null;\n\t\t\tString pwHash = BCrypt.hashpw(password, BCrypt.gensalt()); \n\n\t\t\tString configUrlQuery = \"UPSERT * from plnmonitor.user where name=\" + username;\n\n\t\t\tdbConnection = getDBConnection();\n\n\t\t\tString insertTableSQL = \n\t\t\t\t\t\"WITH upsert AS \" +\n\t\t\t\t\t\t\t\"(UPDATE plnmonitor.user \" +\n\t\t\t\t\t\t\t\"SET \\\"passwordHash\\\" = ?, \" +\n\t\t\t\t\t\t\t\"role = ? \" +\n\t\t\t\t\t\t\t\"WHERE name=? RETURNING *), \" +\n\n\t\t\t\t\t\"inserted AS (\"+\n\t\t\t\t\t\"INSERT INTO plnmonitor.user \" +\n\t\t\t\t\t\"(name,\\\"passwordHash\\\",role) \"+\n\t\t\t\t\t\"SELECT ?,?,? WHERE NOT EXISTS \"+\n\t\t\t\t\t\"(SELECT * FROM upsert) \"+\n\t\t\t\t\t\"RETURNING *) \"+\n\t\t\t\t\t\"SELECT * \" +\n\t\t\t\t\t\"FROM upsert \" +\n\t\t\t\t\t\"union all \" +\n\t\t\t\t\t\"SELECT * \" +\n\t\t\t\t\t\"FROM inserted\";\n\n\t\t\tdbConnection = getDBConnection();\n\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL, Statement.KEEP_CURRENT_RESULT);\n\t\t\tpreparedStatement.setString(1, pwHash);\n\t\t\tpreparedStatement.setString(2, role);\n\t\t\tpreparedStatement.setString(3, username);\n\n\t\t\tpreparedStatement.setString(4, username);\n\t\t\tpreparedStatement.setString(5, pwHash);\n\t\t\tpreparedStatement.setString(6, role);\n\n\t\t\t//System.out.println(preparedStatement.toString());\n\t\t\tResultSet rs=preparedStatement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tuserId = rs.getInt(\"id\");\n\t\t\t\tLOGGER.info(\"Added or updated user: \" + username + \" to the database with ID: \" + userId + \" \" + pwHash );\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} \n\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\n\t\t\t\tif (dbConnection != null) {\n\t\t\t\t\tdbConnection.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\n\t\t\t\tLOGGER.error(e.getMessage());\n\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\n\tpublic int insertUser(String username, String password) {\n\t\treturn userMapper.insertUser(username, password);\n\t}", "@When(\"^I insert user name \\\"(.*?)\\\" and password \\\"(.*?)\\\"$\")\r\n\tpublic void i_insert_user_name_and_password(String arg1, String arg2) throws Throwable {\n\t throw new PendingException();\r\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "User addUser(IDAOSession session, String fullName, String userName,\n\t\t\tString password);", "int insert(UserPasswordDO record);", "boolean addUser(int employeeId, String name, String password, String role);", "User setTokenForUser(String username, String token) throws DatabaseException;", "public void createUser(String userName, String password,\n boolean createDB) throws Exception;", "private void createUser(final String email, final String password) {\n\n }", "UserToken login(String username, String password) throws WorkspaceException;", "@Override\n\tpublic User add(String name, String pwd, String phone) {\n\t\tSystem.out.println(\"OracleDao is add\");\n\t\treturn null;\n\t}", "public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;", "String signUp(String userName, String password) throws RemoteException, InterruptedException;", "@Override\n\tpublic boolean register(UserInfo ui, String password) {\n\t\treturn _uim.insert(ui, password);\n\t}", "int insert(AccessKeyRecordEntity record);", "public interface UserService {\n\n public User get(String username);\n\n public User save(User user);\n\n public void saveHost(String host, String name);\n\n public String getName(String host);\n}", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "int insert(SysAuthentication record);", "public void setupUser( String uid, String password ) throws NamingException, GeneralSecurityException {\r\n\t\ttolvenUser = login(uid, password);\r\n\t}", "private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit();\n\t edit.putString(ACCESS_KEY_NAME, key);\n\t edit.putString(ACCESS_SECRET_NAME, secret);\n\t edit.commit();\n\t }", "String addAccount(UserInfo userInfo);", "public interface UserService extends IProvider {\n\n User getUser();\n\n int insert(User user);\n}", "void registerUser(User newUser);", "private void Initiat_Service(Object serviceAdm,Utilisateur user_en_cours) {\n\t\tlog.debug(\"user_en_cours.trustedApplication:\"+user_en_cours.trustedApplication);\n\t\t\t\tString filename =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication));\n\t\t\t\tlog.debug(\"filename:\"+filename);\n\t\t\t\t//System.out.println(\"my file \"+filename);\n\t\t\t\tFileInputStream is=null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(filename);\n\t\t\t\t} catch (FileNotFoundException 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\tKeyStore myKeyStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString password =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication)+\".password\");\n\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore.load(is, password.toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (CertificateException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString filenameTrust =prop.getProperty(\"clienttrustore\");\n\t\t\t\tFileInputStream myKeys = null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeys = new FileInputStream(filenameTrust);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// Load your TrustedStore\n\t\t\t\tKeyStore myTrustedStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore.load(myKeys, prop.getProperty(\"clienttrustore.password\").toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (CertificateException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tWSConnection.setupTLS(serviceAdm, myKeyStore, password, myTrustedStore);\n\t\t\t\t} catch (GeneralSecurityException 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}", "public void UserServiceTest_Edit()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCEdited\");\r\n user.setPassword(\"123edited\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"statio manager\"));\r\n user.setRoles(roles);\r\n \r\n UserService service = new UserService(); \r\n try {\r\n service.updateUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }catch (NotFoundException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n }", "public void createUserAccount(UserAccount account);", "private void setUserCredentials() {\n ((EditText) findViewById(R.id.username)).setText(\"harish\");\n ((EditText) findViewById(R.id.password)).setText(\"11111111\");\n PayPalHereSDK.setServerName(\"stage2pph10\");\n }", "@Test\n\tpublic void registerUserTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\t\n\t\t// Creation of the server\n\t\tPasswordManager pm = new PasswordManager(8080);\n\n\t\t// Normal register\n\t\tString response = pm.registerUser(DatatypeConverter.printBase64Binary(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Analyse the correctness of the answer\n\t\tAssert.assertNotSame(response, \"Error: Could not validate signature.\");\n\t}", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCESS_KEY_NAME, key);\n\t\tedit.putString(ACCESS_SECRET_NAME, secret);\n\t\tedit.commit();\n\t}", "@Override\n\tpublic Uri insert(Uri uri, ContentValues values) {\n\t\tSQLiteDatabase db = dbHelper.getWritableDatabase();\n\n\t\t// set/initiate some objects\n\t\tUri result = null;\n\n\t\tswitch (uriMatcher.match(uri)) {\n\t\t\tcase EVENT_CREDENTIALS: {\n\t\t\t\tresult = ContentUris.withAppendedId(SnapableContract.EventCredentials.CONTENT_URI, db.insert(DBHelper.EVENT_CREDENTIALS.TABLE_NAME, null, values));\n\n\t\t\t\t// TODO remove this dirty hack\n\t\t\t\t// update/create a guest via API if there is an email\n\t\t\t\tif (!values.getAsString(SnapableContract.EventCredentials.EMAIL).isEmpty()) {\n\t\t\t\t\tUpdateInsertGuest task = new UpdateInsertGuest(values);\n\t\t\t\t\ttask.execute();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\t// we successfully inserted the row, close the db, notify of change and return\n\t\tgetContext().getContentResolver().notifyChange(uri, null);\n\t\treturn result;\n\t}", "public AuthenticatedUser() {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Please input your username: \"); //Ask user to identify with services\n this.name = input.nextLine();\n \n if (!new File(AuctionSecurity.CLIENT_STORAGE + name + \"/Private.key\").exists()) { //If no private key exists for this invidual on file, we must make one.\n input = new Scanner(System.in);\n System.out.println(\"User not registered.\\nInsert secret code for registration: \");\n if (input.nextLine().equals(PASSCODE)) { //Ensure the user is someone whom we have given permission to register.\n this.privateKey = AuctionSecurity.registerUser(name);\n } else {\n System.out.println(\"That's the incorrect passcode. Therefore you cannot register.\");\n System.exit(0);\n }\n } else {\n this.privateKey = AuctionSecurity.getPrivateKey(name);\n }\n this.name = name;\n }", "public interface OhmageOMHSDKCredentialStore {\n byte[] get(Context context, String key);\n void set(Context context, String key, byte[] value);\n void remove(Context context, String key);\n}", "@Override\n public String register(String name, String password) throws BakeryServiceException {\n if (name == null || password == null || name.length() < 3 || password.length() < 3)\n throw new BakeryServiceException(400);\n\n // check that the user does not already exist\n User existingUser = this.userDAO.getUserByName(name);\n if (existingUser != null)\n throw new BakeryServiceException(409);\n\n String passwordHash = BCrypt.hashpw(password, BCrypt.gensalt());\n String token = UUID.randomUUID().toString();\n this.userDAO.createUser(name, passwordHash, token);\n return token;\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();" ]
[ "0.64471245", "0.6403632", "0.6379685", "0.60357517", "0.57346857", "0.57333934", "0.56775236", "0.5585011", "0.5581243", "0.55314076", "0.55292565", "0.5507879", "0.55011064", "0.549457", "0.5463708", "0.54240793", "0.5415369", "0.53862464", "0.53672564", "0.53552336", "0.53357375", "0.5332916", "0.53208625", "0.5304437", "0.5292135", "0.5282725", "0.5281299", "0.527725", "0.5273923", "0.5272447", "0.5265441", "0.5253265", "0.52381337", "0.5237902", "0.523055", "0.5227599", "0.521052", "0.5208191", "0.51938736", "0.5192638", "0.51887524", "0.51645976", "0.5161573", "0.5157098", "0.5148031", "0.5144875", "0.51447177", "0.5143457", "0.5138726", "0.5136228", "0.5132687", "0.512458", "0.5124039", "0.5115775", "0.5114115", "0.5111481", "0.5098316", "0.50961787", "0.5093187", "0.5087484", "0.50870824", "0.5079898", "0.50750375", "0.5067552", "0.5057649", "0.5056402", "0.5054162", "0.50512165", "0.50448185", "0.503814", "0.502402", "0.50235754", "0.5009142", "0.49995053", "0.4998577", "0.49817017", "0.49765465", "0.4975134", "0.49712402", "0.49706578", "0.49706578", "0.49706578", "0.4967559", "0.49625504", "0.49578932", "0.49561536", "0.49559948", "0.4954936", "0.4953635", "0.4944166", "0.49417493", "0.49307", "0.49231815", "0.49139696", "0.491358", "0.4913385", "0.49073544", "0.49020326", "0.4899108", "0.48913762" ]
0.63022596
3