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 |
|---|---|---|---|---|---|---|
Gets the value of the seasonId property. | public int getSeasonId() {
return seasonId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSeasonId(int value) {\n this.seasonId = value;\n }",
"public String getSeasonCode() {\n return seasonCode;\n }",
"public String getSeason() {\n return season;\n }",
"public int getSeasonStatusId() {\n return seasonStatusId;\n }",
"public Season getSeason() {\n return season;\n }",
"public String getSeasonName() {\n return seasonName;\n }",
"public int getSeasonHSPConfigurationId() {\n return seasonHSPConfigurationId;\n }",
"public String getSeasonCode()\r\n\t{\r\n\t\treturn getSeasonCode( getSession().getSessionContext() );\r\n\t}",
"public int getObservingSeason() {\n return observingSeason;\n }",
"public String getStyleSeason() {\n return (String)getAttributeInternal(STYLESEASON);\n }",
"public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }",
"public davis.anime.data.Season getRefSeason() {\n if (refSeasonBuilder_ == null) {\n return refSeason_ == null ? davis.anime.data.Season.getDefaultInstance() : refSeason_;\n } else {\n return refSeasonBuilder_.getMessage();\n }\n }",
"public davis.anime.data.Season getRefSeason() {\n return refSeason_ == null ? davis.anime.data.Season.getDefaultInstance() : refSeason_;\n }",
"public String getSeasonCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SEASONCODE);\r\n\t}",
"public String getSeasonGroupCode()\r\n\t{\r\n\t\treturn getSeasonGroupCode( getSession().getSessionContext() );\r\n\t}",
"public void setSeasonHSPConfigurationId(int value) {\n this.seasonHSPConfigurationId = value;\n }",
"public void setSeason(String season) {\n this.season = season == null ? null : season.trim();\n }",
"public int getSeasonShareCount() {\n return seasonShareCount_;\n }",
"public Number getSolineId() {\n return (Number)getAttributeInternal(SOLINEID);\n }",
"public List<Season> getSeasons() {\n if (this.seasons.isEmpty()) {\n this.seasons = EntityManager.getInstance().getRefereeSeasons(this);\n }\n return this.seasons;\n //TODO:Pull From DB\n }",
"public int getSeasonShareCount() {\n return seasonShareCount_;\n }",
"public davis.anime.data.SeasonOrBuilder getRefSeasonOrBuilder() {\n if (refSeasonBuilder_ != null) {\n return refSeasonBuilder_.getMessageOrBuilder();\n } else {\n return refSeason_ == null ?\n davis.anime.data.Season.getDefaultInstance() : refSeason_;\n }\n }",
"public davis.anime.data.SeasonOrBuilder getRefSeasonOrBuilder() {\n return getRefSeason();\n }",
"public Integer getGameId() {\n return gameId;\n }",
"public int getSeasonCaptureScore() {\n return seasonCaptureScore_;\n }",
"public void setSeasonCode(String seasonCode) {\n this.seasonCode = seasonCode == null ? null : seasonCode.trim();\n }",
"public Integer getSeriesId() {\n return seriesId;\n }",
"public String getSeasonGroupCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SEASONGROUPCODE);\r\n\t}",
"public void setSeasonName(String seasonName) {\n this.seasonName = seasonName == null ? null : seasonName.trim();\n }",
"public String getSeasonNew() {\n return (String) getAttributeInternal(SEASONNEW);\n }",
"public int getSeasonCaptureScore() {\n return seasonCaptureScore_;\n }",
"public long getSdSeminarID(){\n\t\treturn this.m_lSdSeminarID;\n\t}",
"public String getGameId() {\n return gameId;\n }",
"public String getGameId() {\n return gameId;\n }",
"@JsonProperty(\"constellation_id\")\n public int getConstellationId() {\n return constellationId;\n }",
"public Long getLeagueId() {\n return (this.leagueId);\n }",
"public Integer getStockId() {\r\n\t\treturn stockId;\r\n\t}",
"public Set<Season> getSeasons()\r\n\t{\r\n\t\treturn getSeasons( getSession().getSessionContext() );\r\n\t}",
"protected static int getSeason(String dateTime) {\n return Integer.parseInt(dateTime.substring(0, 1));\n }",
"public java.lang.String getScenicId() {\n return scenicId;\n }",
"@RequestMapping(\"/season/{id}\")\n public ApiWrapperSingle<ApiVideoDTO> getSeasonById(@ModelAttribute(\"options\") OptionsIndexVideo options) {\n ApiWrapperSingle<ApiVideoDTO> wrapper = new ApiWrapperSingle<>();\n // Set the type to movie\n options.setType(\"SEASON\");\n wrapper.setOptions(options);\n\n if (options.getId() > 0L) {\n LOG.info(\"Getting season with ID '{}'\", options.getId());\n jsonApi.getSingleVideo(wrapper);\n }\n wrapper.setStatusCheck();\n return wrapper;\n }",
"public Integer getGameID() {\n\t\treturn game_id;\n\t}",
"java.lang.String getStageId();",
"public String getStudyId()\n {\n return studyId;\n }",
"Season findByName(String name);",
"int getSeasonCaptureScore();",
"public int getStockId() {\r\n\t\treturn stockId;\r\n\t}",
"public int getStationID() {\n\t\treturn stationID;\n\t}",
"@Override\n\tpublic long getEsfTournamentId() {\n\t\treturn _esfTournament.getEsfTournamentId();\n\t}",
"public synchronized int getStockId() {\n\t\treturn stockId;\n\t}",
"public int getStation_ID() {\n\t\treturn station_ID;\n\t}",
"public Integer getClubTeamId() {\n\t\treturn clubTeamId;\n\t}",
"@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}",
"public int getLeagueId() {\n return leagueId;\n }",
"@Override\n\tpublic String getMovieStudio(int movieID) {\n\t\treturn movieStudio;\n\t}",
"@Override\r\n\tpublic String getId() {\n\t\treturn mProductionId;\r\n\t}",
"public int getSeasonEventMessageCount() {\n return seasonEventMessageCount_;\n }",
"public String getStationId() {\n return location.getStationId();\n }",
"public Integer getIdSector() {\r\n\t\treturn idSector;\r\n\t}",
"public SeasonsBuilder season(int... seasons) {\n return this;\n }",
"public int getSeasonEventMessageCount() {\n return seasonEventMessageCount_;\n }",
"public String getVsheetId() {\n return vsheetId;\n }",
"int getSeasonShareCount();",
"String getGameId();",
"public String getId() {\n\t\treturn this.playerid;\n\t}",
"public EpisodesBuilder season(int... seasons) {\n return this;\n }",
"public String getStudyID() {\n return studyID;\n }",
"public Object getStationId() {\n\t\treturn null;\n\t}",
"public Integer getProductionId() {\n return productionId;\n }",
"public int getVariantId() {\n return variantId_;\n }",
"public int getStudentId() {\n\t\treturn StudentId;\n\t}",
"public Integer getSolutionId() {\n return solutionId;\n }",
"public Integer getCarparksurveyinfoid() {\n return carparksurveyinfoid;\n }",
"public Integer getSegment_id() {\n return segment_id;\n }",
"public int getId() {\n return playerId;\n }",
"public void setStyleSeason(String value) {\n setAttributeInternal(STYLESEASON, value);\n }",
"public Integer getVenuesId() {\n return venuesId;\n }",
"private Boolean getSeasonInitializedPref() {\n return mSharedPrefs.getBoolean(getString(R.string.settings_season_initialized_key), getResources().getBoolean(R.bool.pref_season_initialized_default));\n }",
"public Integer getSchId() {\n\t\treturn schId;\n\t}",
"public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}",
"public String getSeNo() {\n return seNo;\n }",
"public String getId() {\r\n\t\treturn sId;\r\n\t}",
"public Long getFinancialYearGodownStockDetailsId() {\n return financialYearGodownStockDetailsId;\n }",
"public int getGameID() {\n return gameID;\n }",
"public int getVariantId() {\n return variantId_;\n }",
"public Integer getStudentId() {\n return studentId;\n }",
"public Integer getStudentId() {\n return studentId;\n }",
"public Integer getSeriesCd() {\n\t\treturn seriesCd;\n\t}",
"public int getStudentId() {\n\t\treturn studentId;\n\t}",
"public int getDivisionId() {\n return divisionId;\n }",
"private String getSeriePageUrlWithSeason(String seriePageUrl, int season) {\n\t\tif (seriePageUrl == null || seriePageUrl.equals(\"\")) {\n\t\t\treturn null;\n\t\t}\n\t\tint pos = seriePageUrl.lastIndexOf(\".\");\n\t\tif (pos == -1) {\n\t\t\treturn seriePageUrl;\n\t\t}\n\t\telse {\t\t\t\n\t\t\treturn seriePageUrl.substring(0, pos) + \"-\" + season + seriePageUrl.substring(pos);\n\t\t}\n\t}",
"public String getTeamId() {\n\t\treturn teamId;\n\t}",
"public String getTeamId() {\n\t\treturn teamId;\n\t}",
"public TeamStudentPK getId() {\r\n\t\treturn this.id;\r\n\t\t\r\n\t}",
"public int getRoundID() {\n return rounds.get(currentRound).getRoundID();\n }",
"public Integer getSiteId() {\r\n\t\treturn siteId;\r\n\t}",
"public String getYearNumber() {\n return yearNumber.get();\n }",
"public int getPlayerId() {\r\n\t\treturn playerId;\r\n\t}",
"@Nullable\n public Long getVariantId() {\n return this.variantId;\n }",
"public Integer getContractId() {\n return contractId;\n }"
] | [
"0.7602219",
"0.7556835",
"0.74303544",
"0.7322263",
"0.72675884",
"0.7192735",
"0.6996009",
"0.6884652",
"0.66694623",
"0.6622637",
"0.6404044",
"0.64014804",
"0.6395064",
"0.62898916",
"0.6236767",
"0.62284464",
"0.61320215",
"0.5928878",
"0.59136206",
"0.59117836",
"0.5892353",
"0.58191216",
"0.57125014",
"0.56595695",
"0.56592166",
"0.5635775",
"0.5634969",
"0.5601851",
"0.55886346",
"0.5564039",
"0.55529225",
"0.55344945",
"0.5506304",
"0.5506304",
"0.54960614",
"0.5495806",
"0.5477784",
"0.54692173",
"0.54672974",
"0.5464928",
"0.5459175",
"0.5429008",
"0.54044706",
"0.5388246",
"0.5385081",
"0.5376649",
"0.53603756",
"0.5328774",
"0.5308177",
"0.5290093",
"0.5271536",
"0.5271043",
"0.5267644",
"0.52623916",
"0.5245986",
"0.52405846",
"0.5216324",
"0.5213784",
"0.5211609",
"0.52105254",
"0.5204604",
"0.52025485",
"0.5198672",
"0.51905704",
"0.51822203",
"0.51804733",
"0.5158053",
"0.5157253",
"0.51526916",
"0.5140884",
"0.51383424",
"0.51372504",
"0.51362115",
"0.51286995",
"0.5124717",
"0.51231825",
"0.512225",
"0.5121373",
"0.5106944",
"0.5099846",
"0.5098855",
"0.50879973",
"0.5085606",
"0.5085315",
"0.5084307",
"0.50834405",
"0.50834405",
"0.50807816",
"0.5074213",
"0.50601923",
"0.50510687",
"0.5042627",
"0.5042627",
"0.5039569",
"0.50391984",
"0.5031296",
"0.5030127",
"0.50228894",
"0.5017775",
"0.5016454"
] | 0.83540785 | 0 |
Sets the value of the seasonId property. | public void setSeasonId(int value) {
this.seasonId = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSeasonId() {\n return seasonId;\n }",
"public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }",
"public void setSeason(String season) {\n this.season = season == null ? null : season.trim();\n }",
"public void setSeasonHSPConfigurationId(int value) {\n this.seasonHSPConfigurationId = value;\n }",
"public void setSeasonName(String seasonName) {\n this.seasonName = seasonName == null ? null : seasonName.trim();\n }",
"public void setSeasonCode(String seasonCode) {\n this.seasonCode = seasonCode == null ? null : seasonCode.trim();\n }",
"public void setStyleSeason(String value) {\n setAttributeInternal(STYLESEASON, value);\n }",
"public SeasonsBuilder seasons(int tvdbId, int season) {\n return new SeasonsBuilder(this).title(tvdbId).season(season);\n }",
"public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }",
"public SeasonsBuilder season(int... seasons) {\n return this;\n }",
"public int getSeasonStatusId() {\n return seasonStatusId;\n }",
"public String getSeasonCode() {\n return seasonCode;\n }",
"public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}",
"public EpisodesBuilder season(int... seasons) {\n return this;\n }",
"public void setSeasons(final Set<Season> value)\r\n\t{\r\n\t\tsetSeasons( getSession().getSessionContext(), value );\r\n\t}",
"public void assignToSeason(Season chosenSeason) {\n if (chosenSeason != null) {\n\n //TOOD: This will not work\n getSeasons().add(chosenSeason);\n }\n }",
"public String getSeason() {\n return season;\n }",
"public Builder setRefSeason(davis.anime.data.Season value) {\n if (refSeasonBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n refSeason_ = value;\n onChanged();\n } else {\n refSeasonBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public synchronized void setStockId(int stockId) {\n\t\tthis.stockId = stockId;\n\t}",
"public String getSeasonName() {\n return seasonName;\n }",
"public void setsId(Integer sId) {\n this.sId = sId;\n }",
"public Season getSeason() {\n return season;\n }",
"public void setSeasons(final SessionContext ctx, final Set<Season> value)\r\n\t{\r\n\t\tsetLinkedItems( \r\n\t\t\tctx,\r\n\t\t\ttrue,\r\n\t\t\tSslCoreConstants.Relations.DBS2SEASONRELATION,\r\n\t\t\tnull,\r\n\t\t\tvalue,\r\n\t\t\tfalse,\r\n\t\t\tfalse,\r\n\t\t\tUtilities.getMarkModifiedOverride(DBS2SEASONRELATION_MARKMODIFIED)\r\n\t\t);\r\n\t}",
"public void setSeasonGroupCode(final String value)\r\n\t{\r\n\t\tsetSeasonGroupCode( getSession().getSessionContext(), value );\r\n\t}",
"public void setScenicId(java.lang.String scenicId) {\n this.scenicId = scenicId;\n }",
"public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}",
"public SeasonsBuilder seasons(String title, int season) {\n return new SeasonsBuilder(this).title(title).season(season);\n }",
"public void setLeagueId(int value) {\n this.leagueId = value;\n }",
"@Override\r\n\tpublic void setId(String id) {\n\t\tmProductionId = id;\r\n\t}",
"public Builder setSeasonShareCount(int value) {\n \n seasonShareCount_ = value;\n onChanged();\n return this;\n }",
"public void setSeasonCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONCODE,value);\r\n\t}",
"public void setId(final TeamStudentPK id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setTeamId(int value) {\n this.teamId = value;\n }",
"public void setStargateId(int val) {\n stargateId = val;\n }",
"public void setSolineId(Number value) {\n setAttributeInternal(SOLINEID, value);\n }",
"public League updateSeasonForLeague(String leagueName, String season) {\n logger.info(season + \" was updated for \" + leagueName);\n return League.getLeagueByName(leagueName).setSeason(Integer.parseInt(season));\n }",
"public void setIdSector(Integer idSector) {\r\n\t\tthis.idSector = idSector;\r\n\t}",
"public void setSeasonGroups(final Set<SeasonGroup> value)\r\n\t{\r\n\t\tsetSeasonGroups( getSession().getSessionContext(), value );\r\n\t}",
"public int getSeasonHSPConfigurationId() {\n return seasonHSPConfigurationId;\n }",
"public void setId(String id) {\r\n\t\tsId = id;\r\n\t}",
"public davis.anime.data.Season getRefSeason() {\n return refSeason_ == null ? davis.anime.data.Season.getDefaultInstance() : refSeason_;\n }",
"public static void setIdNumber(int idNumber) {\n catalogue.idNumber = idNumber;\n }",
"public void setStockId(Integer stockId) {\r\n\t\tthis.stockId = stockId;\r\n\t}",
"public void setCalendarId(final String val) {\n if (Util.checkNull(val) != null) {\n calendarId.setA(val);\n }\n }",
"public void setGameId(String gameId) {\n this.gameIdDisplay.setText(gameId);\n }",
"public void setIdClaveSat(Integer idClaveSat) {\n this.idClaveSat = idClaveSat;\n }",
"void setPlayerId(int playerId);",
"public void setConstellationId(int val) {\n constellationId = val;\n }",
"public void setSeriesId(Integer seriesId) {\n this.seriesId = seriesId;\n }",
"public void setId_sede(int id_sede) {\n this.id_sede = id_sede;\n }",
"Season(String months)\n {\n span = months;\n }",
"public void setId(int value) {\r\n this.id = value;\r\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public davis.anime.data.Season getRefSeason() {\n if (refSeasonBuilder_ == null) {\n return refSeason_ == null ? davis.anime.data.Season.getDefaultInstance() : refSeason_;\n } else {\n return refSeasonBuilder_.getMessage();\n }\n }",
"@Override\n public void setId(int pintId) {\n this.intDynaGraphId = pintId;\n }",
"public void setId(int studentId) \r\n {\r\n String strId = String.valueOf(studentId);\r\n if (studentId < 0 ) \r\n {\r\n throw new IllegalArgumentException(\"Student ID cannot be less than zero.\");\r\n } \r\n else if(strId == null || strId.trim().isBlank())\r\n {\r\n throw new IllegalArgumentException(\"Student id cannot be blank.\");\r\n }\r\n else \r\n {\r\n this.studentId = studentId;\r\n }\r\n\r\n }",
"public void setSolarSystemID(int value) {\n this.solarSystemID = value;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setSeasonGroupCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONGROUPCODE,value);\r\n\t}",
"public void setId(final int id) {\n mId = id;\n }",
"public void setIdSet(int idSet) {\r\n this.idSet = idSet;\r\n }",
"@RequestMapping(\"/season/{id}\")\n public ApiWrapperSingle<ApiVideoDTO> getSeasonById(@ModelAttribute(\"options\") OptionsIndexVideo options) {\n ApiWrapperSingle<ApiVideoDTO> wrapper = new ApiWrapperSingle<>();\n // Set the type to movie\n options.setType(\"SEASON\");\n wrapper.setOptions(options);\n\n if (options.getId() > 0L) {\n LOG.info(\"Getting season with ID '{}'\", options.getId());\n jsonApi.getSingleVideo(wrapper);\n }\n wrapper.setStatusCheck();\n return wrapper;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public Builder setSeasonCaptureScore(int value) {\n \n seasonCaptureScore_ = value;\n onChanged();\n return this;\n }",
"public StyleId setStyleId ( StyleId id );",
"private void setId(int value) {\n \n id_ = value;\n }",
"@Override\n\tpublic void setId(int id) {\n\t\t_keHoachKiemDemNuoc.setId(id);\n\t}",
"@Override\n public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\r\n\t\t_id = id;\r\n\t}",
"public void setId(int id) {\n \t\tthis.id = id;\n \t}",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(int id)\r\n {\r\n this.mId = id;\r\n }",
"public void setSeasonNew(String value) {\n setAttributeInternal(SEASONNEW, value);\n }",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(int id)\n {\n this.id = id;\n }",
"public void setId(int id)\n {\n this.id = id;\n }",
"void setId(int id) {\n this.id = id;\n }",
"public void setId(final int id);",
"public void setId(int id){\n\t\tthis.id = id;\n\t}"
] | [
"0.70955026",
"0.70906675",
"0.6762324",
"0.665538",
"0.6231824",
"0.6198882",
"0.6134305",
"0.61205244",
"0.60638976",
"0.60627717",
"0.6011624",
"0.59759176",
"0.5967747",
"0.59510887",
"0.59083915",
"0.5862465",
"0.57969564",
"0.5761719",
"0.5757887",
"0.5686195",
"0.5668904",
"0.5612748",
"0.560621",
"0.5547396",
"0.5478394",
"0.5441505",
"0.5428417",
"0.54110664",
"0.54060274",
"0.5393654",
"0.53692967",
"0.53682244",
"0.5288115",
"0.52206814",
"0.5197971",
"0.51726824",
"0.51544994",
"0.5153601",
"0.51157635",
"0.50985676",
"0.5095491",
"0.5093802",
"0.5083358",
"0.50764066",
"0.50732917",
"0.5065416",
"0.5055427",
"0.5031961",
"0.50145525",
"0.5014541",
"0.49920017",
"0.49833995",
"0.4970187",
"0.4970187",
"0.4970187",
"0.4970187",
"0.4970187",
"0.4970187",
"0.4970187",
"0.4970187",
"0.4970187",
"0.4957451",
"0.4945717",
"0.49403733",
"0.49391794",
"0.49342343",
"0.49342343",
"0.49341065",
"0.49312463",
"0.4924415",
"0.49234512",
"0.49166393",
"0.491447",
"0.4901847",
"0.49004477",
"0.489873",
"0.48983088",
"0.48936185",
"0.4884137",
"0.48840454",
"0.48840454",
"0.4882627",
"0.48822093",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.4882063",
"0.48804235",
"0.4875805",
"0.4875805",
"0.48712096",
"0.4870718",
"0.48670027"
] | 0.84239995 | 0 |
Gets the value of the seasonHSPConfigurationId property. | public int getSeasonHSPConfigurationId() {
return seasonHSPConfigurationId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSeasonHSPConfigurationId(int value) {\n this.seasonHSPConfigurationId = value;\n }",
"public String getConfigurationID() {\n return configurationID;\n }",
"public int getSeasonId() {\n return seasonId;\n }",
"public String getConfigIdHash() {\n return configIdHash;\n }",
"public long getConfId() {\n\t\treturn confId;\n\t}",
"public String getSeasonCode() {\n return seasonCode;\n }",
"public Integer getSpId() {\n\t\treturn this.spId;\n\t}",
"public int getId() {\n return m_module.getConfiguration().getId();\n }",
"public int getSeasonStatusId() {\n return seasonStatusId;\n }",
"public int getId() {\n\t\treturn config >> 8;\n\t}",
"public String getSeasonCode()\r\n\t{\r\n\t\treturn getSeasonCode( getSession().getSessionContext() );\r\n\t}",
"public java.lang.String getScenicId() {\n return scenicId;\n }",
"public String getConfigurationKey() {\n return configurationKey;\n }",
"public Integer getSchId() {\n\t\treturn schId;\n\t}",
"String getConfigurationHandlerId();",
"public InstanceConfigId getId() {\n return id;\n }",
"public Integer getCarparksurveyinfoid() {\n return carparksurveyinfoid;\n }",
"public Integer getProductionstatementid() {\n return productionstatementid;\n }",
"public Integer getSiteId() {\r\n return siteId;\r\n }",
"public Integer getSiteId() {\r\n\t\treturn siteId;\r\n\t}",
"public String getIsp_id() {\n return isp_id;\n }",
"public String siteId() {\n return this.siteId;\n }",
"public Integer getSysId() {\n return sysId;\n }",
"public String getSeasonGroupCode()\r\n\t{\r\n\t\treturn getSeasonGroupCode( getSession().getSessionContext() );\r\n\t}",
"public Integer getGameId() {\n return gameId;\n }",
"public String getSeason() {\n return season;\n }",
"public String getGameId() {\n return gameId;\n }",
"public String getGameId() {\n return gameId;\n }",
"public void setSeasonId(int value) {\n this.seasonId = value;\n }",
"public Long getSettingsId() {\n\t\treturn settingsId;\n\t}",
"public Integer getSolutionId() {\n return solutionId;\n }",
"public String getHospitalId() {\n return hospitalId;\n }",
"@Transient\n\tpublic String getSpId() \t{ \n\t\treturn spId; \n\t}",
"public Number getSolineId() {\n return (Number)getAttributeInternal(SOLINEID);\n }",
"public String getStationId() {\n return location.getStationId();\n }",
"public Integer getGameID() {\n\t\treturn game_id;\n\t}",
"public String getSeasonCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SEASONCODE);\r\n\t}",
"public int getSchedule_id() {\r\n return schedule_id;\r\n }",
"public String getSysCompanyId() {\n return sysCompanyId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public Integer getPlatformId() {\r\n return platformId;\r\n }",
"public Integer getConferenceId() {\n return conferenceId;\n }",
"public Integer getSegment_id() {\n return segment_id;\n }",
"public int get(int id) {\r\n return configurations[id];\r\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"public String getSeasonName() {\n return seasonName;\n }",
"public String getStyleSeason() {\n return (String)getAttributeInternal(STYLESEASON);\n }",
"public final int get_configured_primary () {\n\t\treturn configured_primary;\n\t}",
"@Override\r\n\tpublic String getId() {\n\t\treturn mProductionId;\r\n\t}",
"@ApiModelProperty(required = true, value = \"Unique identifier of the configuration master.\")\n public Long getId() {\n return id;\n }",
"String getGameId();",
"public int getSolarSystemID() {\n return solarSystemID;\n }",
"public Integer getProductionId() {\n return productionId;\n }",
"public java.lang.String getJurisdictionSwitchId() {\r\n return jurisdictionSwitchId;\r\n }",
"public String getScid() {\n return scid;\n }",
"String getSlingId();",
"public String getSegmentId() {\n return segmentId;\n }",
"public java.lang.String getProspectoID() {\n return prospectoID;\n }",
"public java.lang.String getProspectoID() {\n return prospectoID;\n }",
"@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }",
"public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }",
"public java.lang.String getIdprospecto() {\n return idprospecto;\n }",
"public String getSiteid() {\n return siteid;\n }",
"public HsaId getHsaId() {\n\t\treturn this.hsaId;\n\t}",
"@JsonProperty(\"staging_solar_system_id\")\n public int getStagingSolarSystemId() {\n return stagingSolarSystemId;\n }",
"public int getObservingSeason() {\n return observingSeason;\n }",
"public String getSSrcID() {\n return sSrcID;\n }",
"private String getPlaymeidFromConfig(){\n\t\tString playmeid = \"\";\n\t\ttry {\n\t\t\tString filePath = \"/system/etc/manufactory.conf\";\n\t\t\tFile file = new File(filePath);\n\t\t\tif (!file.isFile()) {\n\t\t\t\treturn playmeid;\n\t\t\t}\n\t\t\tFileInputStream fin = new FileInputStream(filePath);\n\t\t\tint length = fin.available();\n\t\t\tif(length == 32){\n\t\t\t\tbyte[] buffer = new byte[length];\n\t\t\t\tfin.read(buffer);\n//\t\t\t\tplaymeid = EncodingUtils.getString(buffer, \"UTF-8\");\n\t\t\t\tfin.close();\n\t\t\t\treturn new String(buffer);\n\t\t\t}\n\t\t\tfin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn playmeid;\n\t}",
"public com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType() {\n com.cantor.drop.aggregator.model.CFTrade.SecurityIdType result = com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.valueOf(secIdType_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.CUSIP : result;\n }",
"public Object getStationId() {\n\t\treturn null;\n\t}",
"public int getStation_ID() {\n\t\treturn station_ID;\n\t}",
"public com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType() {\n com.cantor.drop.aggregator.model.CFTrade.SecurityIdType result = com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.valueOf(secIdType_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.CUSIP : result;\n }",
"public Integer getShuxingid() {\n return shuxingid;\n }",
"public Integer getSeriesId() {\n return seriesId;\n }",
"public Season getSeason() {\n return season;\n }",
"java.lang.String getStageId();",
"public String getHpId() {\r\n return hpId;\r\n }",
"@JsonProperty(\"constellation_id\")\n public int getConstellationId() {\n return constellationId;\n }",
"public Integer getStockId() {\r\n\t\treturn stockId;\r\n\t}",
"@Id\n\t@Column(name = \"SPID\")\n\tpublic Long getId() {\n\t\treturn id;\n\t}",
"public String getSid()\n\t{\n\t\treturn conferenceInfo.getAttribute(\"sid\");\n\t}",
"public Integer getSchFileId() {\n\t\treturn schFileId;\n\t}",
"public Integer getPeriodId() {\n\t\treturn periodId;\n\t}",
"public int getStationID() {\n\t\treturn stationID;\n\t}",
"public JkModuleId moduleId() {\n return moduleId;\n }",
"public long getSdSeminarID(){\n\t\treturn this.m_lSdSeminarID;\n\t}",
"public String getSHotelID() {\n return sHotelID;\n }",
"@Api(1.0)\n @Nullable\n public String getPreferenceId() {\n return mPreferencesId;\n }",
"public int getChRoadSegmentId() {\r\n return chRoadSegmentId;\r\n }",
"public static native String getSatId(int satNo);",
"public Guid getSplittingRuleId() {\r\n return splittingRuleId;\r\n }",
"public java.lang.String getSmmCriteriaId() {\r\n return smmCriteriaId;\r\n }",
"String getModuleId();",
"public Integer getGameCurrencyid() {\n return gameCurrencyid;\n }",
"public String getSeasonGroupCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SEASONGROUPCODE);\r\n\t}",
"long getEncounterId();",
"public int getModuleId() {\n return moduleId_;\n }",
"public Integer getServerId() {\n return serverId;\n }",
"public Integer getServerId() {\n return serverId;\n }"
] | [
"0.77407676",
"0.640545",
"0.6197032",
"0.5984825",
"0.5941956",
"0.5841873",
"0.58395964",
"0.58020186",
"0.57615435",
"0.5717907",
"0.5612673",
"0.5497373",
"0.5480749",
"0.54751885",
"0.5471159",
"0.54435563",
"0.5401029",
"0.5387165",
"0.5371701",
"0.53648126",
"0.5355383",
"0.5348903",
"0.5334189",
"0.53336066",
"0.5329459",
"0.53101295",
"0.5301556",
"0.5301556",
"0.5298465",
"0.52957225",
"0.52800536",
"0.52779835",
"0.52664316",
"0.52395624",
"0.52151626",
"0.5204616",
"0.5200496",
"0.51889694",
"0.5183827",
"0.51756924",
"0.51756924",
"0.5160735",
"0.515335",
"0.51512724",
"0.51487166",
"0.5131447",
"0.5130581",
"0.51296455",
"0.5129203",
"0.5102627",
"0.5099985",
"0.50981086",
"0.50946397",
"0.50878596",
"0.5085391",
"0.50853455",
"0.507743",
"0.5071254",
"0.50708276",
"0.50708276",
"0.5066933",
"0.50615615",
"0.50567424",
"0.5054447",
"0.5053017",
"0.505237",
"0.50480306",
"0.50379336",
"0.5035283",
"0.5017066",
"0.5014994",
"0.5007137",
"0.5006426",
"0.50053954",
"0.5002995",
"0.49974272",
"0.49945858",
"0.49888653",
"0.49796996",
"0.49795353",
"0.49795157",
"0.49741837",
"0.49649772",
"0.49623019",
"0.49606577",
"0.4955365",
"0.49547058",
"0.49497008",
"0.49478772",
"0.49468592",
"0.49448255",
"0.49344987",
"0.49329308",
"0.49322608",
"0.4925609",
"0.49254525",
"0.49235326",
"0.49228668",
"0.49139592",
"0.49139592"
] | 0.8736375 | 0 |
Sets the value of the seasonHSPConfigurationId property. | public void setSeasonHSPConfigurationId(int value) {
this.seasonHSPConfigurationId = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSeasonHSPConfigurationId() {\n return seasonHSPConfigurationId;\n }",
"public void setSeasonId(int value) {\n this.seasonId = value;\n }",
"public void setConfigurationId(String configurationId) {\n\t\tthis.configurationId = configurationId;\n\t\tsetRowMapper(getInitalWorkerMapper());\n\t\tmetaData = this.exportToTextFileMetadataProvider.getMetaData(this.configurationId); \n\t\tsetSql(metaData.getSelectStatement()); \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t \n\t\t\n\t}",
"public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }",
"public int getSeasonId() {\n return seasonId;\n }",
"public void setsId(Integer sId) {\n this.sId = sId;\n }",
"public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }",
"public synchronized void setStockId(int stockId) {\n\t\tthis.stockId = stockId;\n\t}",
"public void setInitKey_hopid_hopsid( java.lang.Integer newValue ) {\n this.initKey_hopid_hopsid = (newValue);\n }",
"public void sethId(Long hId) {\n this.hId = hId;\n }",
"@Override\n public void setId(int pintId) {\n this.intDynaGraphId = pintId;\n }",
"@Override\r\n\tpublic void setId(String id) {\n\t\tmProductionId = id;\r\n\t}",
"public void setGameId(String gameId) {\n this.gameIdDisplay.setText(gameId);\n }",
"public void setSchId(Integer schId) {\n\t\tthis.schId = schId;\n\t}",
"public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }",
"public void setSeasonCode(String seasonCode) {\n this.seasonCode = seasonCode == null ? null : seasonCode.trim();\n }",
"protected void setStreamSegmentId(long streamSegmentId) {\n this.streamSegmentId = streamSegmentId;\n }",
"public void setSolarSystemID(int value) {\n this.solarSystemID = value;\n }",
"public void setHpId(String hpId) {\r\n this.hpId = hpId == null ? null : hpId.trim();\r\n }",
"public void setScenicId(java.lang.String scenicId) {\n this.scenicId = scenicId;\n }",
"public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setStargateId(int val) {\n stargateId = val;\n }",
"public int getSeasonStatusId() {\n return seasonStatusId;\n }",
"public void setSeason(String season) {\n this.season = season == null ? null : season.trim();\n }",
"public void setIsp_id(String isp_id) {\n this.isp_id = isp_id;\n }",
"private void _setPlotDefId(final String plotDefId) {\n logger.debug(\"_setPlotDefId {}\", plotDefId);\n\n this.plotDefId = plotDefId;\n\n // do not change plotId\n }",
"public String getSeasonCode() {\n return seasonCode;\n }",
"public synchronized static void setConfiguration( WPVSConfiguration wpvsConfiguration ) {\n CONFIG = wpvsConfiguration;\n }",
"public void setIdClaveSat(Integer idClaveSat) {\n this.idClaveSat = idClaveSat;\n }",
"public void setSolineId(Number value) {\n setAttributeInternal(SOLINEID, value);\n }",
"public void setStagingSolarSystemId(int val) {\n stagingSolarSystemId = val;\n }",
"public void setConstellationId(int val) {\n constellationId = val;\n }",
"public void setFinancialYearGodownStockDetailsId(Long financialYearSettingsId) {\n this.financialYearGodownStockDetailsId = financialYearSettingsId;\n }",
"public static void setIdNumber(int idNumber) {\n catalogue.idNumber = idNumber;\n }",
"public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }",
"public void setGameServerSessionId(String GameServerSessionId) {\n this.GameServerSessionId = GameServerSessionId;\n }",
"void setLspId(String lspId);",
"public void setSizeId(Integer sizeId) {\n this.sizeId = sizeId;\n }",
"public void setSeasonGroupCode(final String value)\r\n\t{\r\n\t\tsetSeasonGroupCode( getSession().getSessionContext(), value );\r\n\t}",
"public void setPipePipelinedetailsElementId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/pipe_pipelineDetails_element_id\",v);\n\t\t_PipePipelinedetailsElementId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setIdDominioUrl(Integer idDominioUrl) {\n\t\tthis.idDominioUrl = idDominioUrl;\n\t}",
"public void setId(String id) {\r\n\t\tsId = id;\r\n\t}",
"public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }",
"public Builder setSymbolId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n symbolId_ = value;\n onChanged();\n return this;\n }",
"public void setStockId(Integer stockId) {\r\n\t\tthis.stockId = stockId;\r\n\t}",
"public void setGameId(Integer gameId) {\n this.gameId = gameId;\n }",
"public void setSetting(String inSettingId, String inSettingValue) {\r\n\t\tconfiguration.put(inSettingId, inSettingValue);\r\n\t}",
"public void setIdprospecto(java.lang.String idprospecto) {\n this.idprospecto = idprospecto;\n }",
"public void setIdPath(String idPath) {\n\t\tthis.idPath = idPath;\n\t\tthis.handleConfig(\"idPath\", idPath);\n\t}",
"public void setPeriodicalId(Number value) {\n setAttributeInternal(PERIODICALID, value);\n }",
"public void setSeriesId(Integer seriesId) {\n this.seriesId = seriesId;\n }",
"public void setPskuId(Number value) {\n\t\tsetNumber(PSKU_ID, value);\n\t}",
"public void setPropertySellerId(Integer propertySellerId) {\n\t\tthis.propertySellerId = propertySellerId;\n\t}",
"public void setSeasonCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONCODE,value);\r\n\t}",
"public void setStatementId(BigDecimal statementId) {\n getStatementIdProperty().setValue(statementId);\n }",
"public String getConfigurationID() {\n return configurationID;\n }",
"void setPlayerId(int playerId);",
"public void setModuleID (int moduleID)\n\n {\n\n // moduleId is set equal to moduleID.\n this.moduleID = moduleID;\n\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_scienceApp.setCompanyId(companyId);\n\t}",
"public void setSystemId(String systemId) {\n agentConfig.setSystemId(systemId);\n }",
"public void setSiteId(Integer siteId) {\r\n this.siteId = siteId;\r\n }",
"public Integer getSchId() {\n\t\treturn schId;\n\t}",
"final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}",
"public void setSpNumber(Integer spNumber) {\r\n this.spNumber = spNumber;\r\n }",
"public void setPlatformId(Integer platformId) {\r\n this.platformId = platformId;\r\n }",
"public void setStyleSeason(String value) {\n setAttributeInternal(STYLESEASON, value);\n }",
"public void setSeasonName(String seasonName) {\n this.seasonName = seasonName == null ? null : seasonName.trim();\n }",
"public void setId(String s) {\n\t\tid = s;\n\t}",
"public void setProvProcessId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/prov_process_id\",v);\n\t\t_ProvProcessId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"@Override\n\tpublic void setScienceAppId(long scienceAppId) {\n\t\t_scienceApp.setScienceAppId(scienceAppId);\n\t}",
"public void setSizeId(String sizeId) {\n this.sizeId = sizeId == null ? null : sizeId.trim();\n }",
"public void setPlatformId(int platformId) {\n this.platformId = platformId;\n }",
"public Builder setSecId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00200000;\n secId_ = value;\n onChanged();\n return this;\n }",
"public long getConfId() {\n\t\treturn confId;\n\t}",
"public String getIsp_id() {\n return isp_id;\n }",
"public void setGameId(String gameId) {\n this.gameId = gameId;\n }",
"public void setGameId(String gameId) {\n this.gameId = gameId;\n }",
"public void setSchFileId(Integer schFileId) {\n\t\tthis.schFileId = schFileId;\n\t}",
"public void setPlotDefId(final String plotDefId) {\n logger.debug(\"setPlotDefId {}\", plotDefId);\n\n final String prevPlotDefId = this.plotDefId;\n\n _setPlotDefId(plotDefId);\n\n // reset plotId:\n if (this.plotId != null) {\n _setPlotId(null);\n }\n\n // reset case:\n if (plotDefId == null) {\n // reset plotId:\n if (this.plotId != null) {\n _setPlotId(null);\n }\n\n // TODO: how to fire reset event ie DELETE(id)\n resetForm();\n\n } else if (!ObjectUtils.areEquals(prevPlotDefId, plotDefId)) {\n logger.debug(\"firePlotDefinitionChanged {}\", plotDefId);\n\n // bind(plotDefId) ?\n // fire PlotDefinitionChanged event to initialize correctly the widget:\n ocm.firePlotDefinitionChanged(null, plotDefId, this); // null forces different source\n }\n }",
"public void setProductionstatementid(Integer productionstatementid) {\n this.productionstatementid = productionstatementid;\n }",
"public void setPropertyId(int propertyId) {\n\t\tthis.propertyId = propertyId;\n\t}",
"public void setPropertyId(int propertyId) {\n\t\tthis.propertyId = propertyId;\n\t}",
"public Integer getSpId() {\n\t\treturn this.spId;\n\t}",
"public void setHorsePower(int horsePower) {\n\t\tthis.horsePower = horsePower;\n\t}",
"public void setSiteId(Integer siteId) {\r\n\t\tthis.siteId = siteId;\r\n\t}",
"public Builder setSeasonShareCount(int value) {\n \n seasonShareCount_ = value;\n onChanged();\n return this;\n }",
"public void setIdDispositivo(Integer idDispositivo) {\n\t\tthis.idDispositivo = idDispositivo;\n\t}",
"public void setPropertyId(String propertyId) {\n this.propertyId = propertyId == null ? null : propertyId.trim();\n }",
"public Builder setStatementId(int value) {\n \n statementId_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatementId(int value) {\n \n statementId_ = value;\n onChanged();\n return this;\n }",
"public Builder setStatementId(int value) {\n \n statementId_ = value;\n onChanged();\n return this;\n }",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"public void setHospitalId(String hospitalId) {\n this.hospitalId = hospitalId == null ? null : hospitalId.trim();\n }",
"public void setIdNumber(String idNumber) {\n this.idNumber = idNumber;\n }",
"public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }",
"public void setPlmnIdValue(YangString plmnIdValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"plmn-id\",\n plmnIdValue,\n childrenNames());\n }",
"public void setScenicBranchId(java.lang.String scenicBranchId) {\n this.scenicBranchId = scenicBranchId;\n }",
"public void setStreamId(int streamId) {\n this.streamId = streamId;\n }"
] | [
"0.73027694",
"0.63785124",
"0.6010013",
"0.5561444",
"0.54615855",
"0.5272814",
"0.5203874",
"0.5151537",
"0.51255983",
"0.5098868",
"0.5080333",
"0.49941844",
"0.4938857",
"0.49341464",
"0.49333352",
"0.49027297",
"0.48963138",
"0.4880756",
"0.48793218",
"0.48716885",
"0.4859685",
"0.48594463",
"0.48594463",
"0.48434433",
"0.48376778",
"0.48367694",
"0.48354876",
"0.48262003",
"0.4822477",
"0.47650075",
"0.47625846",
"0.47521076",
"0.47411975",
"0.4722234",
"0.47022882",
"0.46953693",
"0.46852195",
"0.46842492",
"0.46799928",
"0.4675271",
"0.46749353",
"0.46656704",
"0.4664844",
"0.46088773",
"0.45843974",
"0.45804903",
"0.45745575",
"0.4565589",
"0.4563353",
"0.45587522",
"0.45585108",
"0.45563564",
"0.45528272",
"0.4539754",
"0.45181373",
"0.45174572",
"0.4515921",
"0.45146134",
"0.45091483",
"0.45062432",
"0.45014727",
"0.4497431",
"0.44934338",
"0.44928893",
"0.44821715",
"0.44816685",
"0.44761923",
"0.44741234",
"0.4469564",
"0.44651264",
"0.4463544",
"0.44594315",
"0.44571206",
"0.44509637",
"0.4450282",
"0.4446141",
"0.44423488",
"0.4441165",
"0.4441165",
"0.44391045",
"0.4437523",
"0.44371557",
"0.44314843",
"0.44314843",
"0.44280285",
"0.4418732",
"0.4417304",
"0.4416372",
"0.43903816",
"0.43882588",
"0.43722504",
"0.43722504",
"0.43722504",
"0.43677494",
"0.4365221",
"0.43617406",
"0.43593794",
"0.43583688",
"0.43544573",
"0.43495798"
] | 0.85985196 | 0 |
Gets the value of the loginId property. | public int getLoginId() {
return loginId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLoginId() {\r\n return loginId;\r\n }",
"public String getLoginId() {\r\n return loginId;\r\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public String getLoginId() {\n return loginId;\n }",
"public String getLoginId() {\n\t\treturn loginId;\n\t}",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public Integer getLoginId() {\n return loginId;\n }",
"java.lang.String getLoginId();",
"public Integer getLoginid() {\n return loginid;\n }",
"String getLoginId();",
"long getLoginId();",
"long getLoginId();",
"long getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"public String getLoginID(){\r\n return loginID;\r\n }",
"Label getLoginId();",
"public void setLoginId(int value) {\n this.loginId = value;\n }",
"com.google.protobuf.ByteString\n getLoginIdBytes();",
"@Override\n\tpublic String getLoginId() {\n\t\treturn null;\n\t}",
"public static Integer getLoginUserId() {\n\t\treturn null;\r\n\t}",
"public String getLoginKey() {\n\t\treturn this.loginKey;\n\t}",
"public String getUserId() {\n\t\treturn _userLoginId;\n\t}",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"public String getPatientLoginId() {\n return patientLoginId;\n }",
"public void setLoginId(Integer loginId) {\n this.loginId = loginId;\n }",
"public String getLoginAccount() {\n return loginAccount;\n }",
"public void setLoginId(String loginId) {\r\n this.loginId = loginId;\r\n }",
"public void setLoginId(String loginId) {\r\n this.loginId = loginId;\r\n }",
"public String getLogin() {\n return login;\n }",
"public String getLoginToken() {\n return loginToken;\n }",
"public void setLoginId(String loginId) {\n this.loginId = loginId;\n }",
"public int getLoginType() {\n return loginType_;\n }",
"public int getLoginType() {\n return loginType_;\n }",
"public java.lang.String getLogin() {\n return login;\n }",
"public java.lang.String getLogin() {\n return login;\n }",
"public java.lang.String getLogin() {\n\t\treturn login;\n\t}",
"public String getLogin () {\n return login;\n }",
"public void setLoginid(Integer loginid) {\n this.loginid = loginid;\n }",
"public String getLoginName() {\n return loginName;\n }",
"public String getLoginName() {\n return loginName;\n }",
"public String getLoginName() {\n return loginName;\n }",
"public String getLoginName() {\n return loginName;\n }",
"public String getIdentityLogin()\r\n {\r\n return securityService.findLoggedInUsername();\r\n }",
"public String getLoginName() {\r\n return loginName;\r\n }",
"public String getLoginName() {\r\n return loginName;\r\n }",
"public String getLogin() {\n\t\treturn login.getText();\n\t}",
"public void setLoginId(String loginId) {\n\t\tthis.loginId = loginId;\n\t}",
"public LoginToken getLoginToken() {\n return loginToken;\n }",
"public String getLoginName() { \n return this.loginName;\n }",
"public String getLoginName() {\n\t\treturn loginName;\n\t}",
"public java.lang.String getLoginName() {\r\n return loginName;\r\n }",
"public String getLoginName() {\n\t\t\treturn loginName;\n\t\t}",
"public String getLoginUsername() {\n return this.loginUsername;\n }",
"public String getLogin()\n {\n \treturn stringLogin;\n }",
"public String getSrcLoginId()\r\n\t{\r\n\t\treturn (String) queryParams.get(AUTH_SRC_LOGIN_ID);\r\n\t}",
"public String getLoginname() {\n return loginname;\n }",
"public String getLoginname() {\n return loginname;\n }",
"public String getLogin(){\r\n return login;\r\n }",
"public Login.Res getLoginRes() {\n if (rspCase_ == 6) {\n return (Login.Res) rsp_;\n }\n return Login.Res.getDefaultInstance();\n }",
"public String getUserLoginName() {\n return userLoginName;\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\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 loginAccount_ = s;\n return s;\n }\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\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 loginAccount_ = s;\n return s;\n }\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\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 loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\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 loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n return getByUsername(authentication.getName()).getId();\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public int getLoginFlag() {\n return loginFlag_;\n }",
"public boolean isSetLoginId() {\n return this.loginId != null;\n }",
"public Integer getLoginStatus() {\n return loginStatus;\n }",
"public int getLoginFlag() {\n return loginFlag_;\n }",
"public String getLoginStart() {\n return loginStart;\n }",
"public String getLogin() {\n return this.session.sessionPersona().getUserName();\n }",
"long getLoginAt();",
"@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }",
"public LoginCredentials getLoginCredentials() {\n\t\treturn this.loginCredentials;\n\t}",
"@Override\n\tpublic void setLoginId(String arg0) {\n\t\t\n\t}",
"public String getLoginRole() {\n return loginRole;\n }",
"@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }",
"WebElement getLoginIDField();",
"public String getAuthUserId() {\n return (String) session.getAttribute(\"userId\");\n }",
"public void setF_loginId(String f_loginId) {\n this.f_loginId = f_loginId;\n }",
"public String getId() {\n\t\treturn this.token.get(\"id\").toString();\n\t}"
] | [
"0.8708142",
"0.8708142",
"0.86995953",
"0.86995953",
"0.86995953",
"0.86995953",
"0.86995953",
"0.8695542",
"0.8681377",
"0.8671364",
"0.8671364",
"0.8671364",
"0.8671364",
"0.8671364",
"0.8639577",
"0.84784436",
"0.8220605",
"0.8189193",
"0.8121718",
"0.8121718",
"0.8121718",
"0.7967873",
"0.7967873",
"0.7967873",
"0.7967873",
"0.7967873",
"0.76680714",
"0.7414152",
"0.7385952",
"0.7366361",
"0.7281159",
"0.72457665",
"0.72276187",
"0.71982205",
"0.7011256",
"0.7011256",
"0.7011256",
"0.6991867",
"0.6965256",
"0.6889905",
"0.6859539",
"0.6859539",
"0.68423307",
"0.68246686",
"0.6791722",
"0.6777908",
"0.67730045",
"0.6719248",
"0.6719248",
"0.67164236",
"0.67050844",
"0.66680306",
"0.6657716",
"0.6657716",
"0.6657716",
"0.6657716",
"0.66425794",
"0.6630558",
"0.6630558",
"0.66119087",
"0.65883213",
"0.65474343",
"0.65469426",
"0.6529014",
"0.65256053",
"0.65056473",
"0.64976144",
"0.64855194",
"0.64343274",
"0.64175266",
"0.64175266",
"0.6342539",
"0.6334261",
"0.6323171",
"0.6315271",
"0.6315271",
"0.6274926",
"0.6274926",
"0.6265251",
"0.6254187",
"0.6254187",
"0.6254187",
"0.6254187",
"0.6254187",
"0.62043273",
"0.6162653",
"0.615856",
"0.614785",
"0.6136938",
"0.6105557",
"0.6103354",
"0.6085588",
"0.6048987",
"0.6045211",
"0.6038197",
"0.601598",
"0.6014683",
"0.59978294",
"0.59839284",
"0.59759676"
] | 0.8494009 | 15 |
Sets the value of the loginId property. | public void setLoginId(int value) {
this.loginId = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"public void setLoginId(String loginId) {\r\n this.loginId = loginId;\r\n }",
"public void setLoginId(String loginId) {\r\n this.loginId = loginId;\r\n }",
"public void setLoginId(Integer loginId) {\n this.loginId = loginId;\n }",
"public void setLoginId(String loginId) {\n this.loginId = loginId;\n }",
"public void setLoginId(String loginId) {\n\t\tthis.loginId = loginId;\n\t}",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public void setLoginid(Integer loginid) {\n this.loginid = loginid;\n }",
"@Override\n\tpublic void setLoginId(String arg0) {\n\t\t\n\t}",
"public String getLoginId() {\n\t\treturn loginId;\n\t}",
"public String getLoginId() {\r\n return loginId;\r\n }",
"public String getLoginId() {\r\n return loginId;\r\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public String getLoginId() {\n return loginId;\n }",
"public void setUserId(String id) {\n\t\t_userLoginId = id;\n\t}",
"public Integer getLoginId() {\n return loginId;\n }",
"public int getLoginId() {\n return loginId;\n }",
"public void setF_loginId(String f_loginId) {\n this.f_loginId = f_loginId;\n }",
"public Integer getLoginid() {\n return loginid;\n }",
"public void setLoginData(LoginDataBean loginData) {\n\n this.loginData = loginData;\n }",
"public Builder clearLoginId() {\n \n loginId_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearLoginId() {\n \n loginId_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearLoginId() {\n \n loginId_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearLoginId() {\n \n loginId_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearLoginId() {\n \n loginId_ = 0;\n onChanged();\n return this;\n }",
"java.lang.String getLoginId();",
"public void setLogin (String login) {\n this.login = login;\n }",
"public void setLoginToken(String loginToken) {\n this.loginToken = loginToken;\n }",
"@Override\n\tpublic String getLoginId() {\n\t\treturn null;\n\t}",
"public void setLoginModel(LoginModel loginModel) {\n\t\tthis.loginModel = loginModel;\n\t}",
"public void setLogin(String login) {\n this.login = login;\n }",
"public void setLogin(String login) {\n this.login = login;\n }",
"public void setLoginName(String loginName) {\n Object oldValue = getLoginName();\n this.loginName = loginName;\n \n firePropertyChange(PROPNAME_LOGINNAME, oldValue, this.loginName);\n }",
"public void setLogin(java.lang.String login) {\n this.login = login;\n }",
"public void setLogin(java.lang.String login) {\n this.login = login;\n }",
"public void setLoginUrl(String loginUrl) {\n this.loginUrl = loginUrl;\n }",
"long getLoginId();",
"long getLoginId();",
"long getLoginId();",
"public void setLoginManager(LoginManager loginManager) {\n this.loginManager = loginManager;\n }",
"public void setLoginMessageId(String loginMessageId) {\n\t\t_loginMessageId = loginMessageId;\n\t}",
"public void setLoginResult(LoginResult loginResult)\n {\n this.loginResult = loginResult;\n }",
"public Builder setLoginAt(long value) {\n\n loginAt_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public void setLoginName(String loginName) {\r\n this.loginName = loginName;\r\n }",
"public void setLoginName(String loginName) {\r\n this.loginName = loginName;\r\n }",
"public void setLogin(String login) {\n Logger.getGlobal().log(Level.INFO, \"Account: \" +login +\" creating\");\r\n this.login = login;\r\n }",
"public void setLoginKey(String key) {\n\t\tthis.loginKey = key;\n\t}",
"public void setLoginName(String loginName) {\n this.loginName = loginName;\n }",
"public void setLoginName(String loginName) {\n this.loginName = loginName;\n }",
"public void setLoginName(String loginName) {\n\t\tthis.loginName = loginName == null ? null : loginName.trim();\n\t}",
"public void setLogin(java.lang.String login) {\n\t\tthis.login = login;\n\t}",
"String getLoginId();",
"public void setLogin(String strLogin)\n {\n \tstringLogin = strLogin;\n }",
"public void setLoginName(String loginName) {\n this.loginName = loginName == null ? null : loginName.trim();\n }",
"public void setLoginName(String loginName) {\n this.loginName = loginName == null ? null : loginName.trim();\n }",
"public void setLogin(String login) {\n this.login = StringUtils.lowerCase(login, Locale.ENGLISH);\n }",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"public void setLoginName(java.lang.String loginName) {\r\n this.loginName = loginName;\r\n }",
"public boolean isSetLoginId() {\n return this.loginId != null;\n }",
"public void setLogin(LoginModel param) {\n localLoginTracker = true;\n\n this.localLogin = param;\n }",
"public String getLoginID(){\r\n return loginID;\r\n }",
"public final void setId(long id) {\n mId = id;\n }",
"public void setLoginName(String loginName) {\n\t\t\tthis.loginName = loginName;\n\t\t}",
"public void setLoginStart(String loginStart) {\n this.loginStart = loginStart;\n }",
"public void setId(long id){\n\t\tthis.id = id;\n\t}",
"public void setLoginStatus(Integer loginStatus) {\n this.loginStatus = loginStatus;\n }",
"public void setLoginDate(Date loginDate) {\n this.loginDate = loginDate;\n }",
"protected void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setLoginPassword(String loginPassword) {\r\n this.loginPassword = loginPassword;\r\n }",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"void setAllSeenByLogin(String login);"
] | [
"0.8397399",
"0.8397399",
"0.8397399",
"0.8220069",
"0.8220069",
"0.8190315",
"0.81480455",
"0.7989484",
"0.78781545",
"0.78781545",
"0.78781545",
"0.78781545",
"0.78781545",
"0.76829606",
"0.7605653",
"0.7179571",
"0.70929706",
"0.70929706",
"0.7072457",
"0.7072457",
"0.7072457",
"0.7072457",
"0.7072457",
"0.7029987",
"0.7029987",
"0.7029987",
"0.7029987",
"0.7029987",
"0.7023561",
"0.68661416",
"0.686048",
"0.68007076",
"0.6685358",
"0.6377101",
"0.62936497",
"0.62383103",
"0.62383103",
"0.62383103",
"0.62383103",
"0.62383103",
"0.61938995",
"0.61664426",
"0.6163009",
"0.6119344",
"0.61171013",
"0.61162347",
"0.61162347",
"0.6099168",
"0.60773873",
"0.60773873",
"0.6072853",
"0.6043245",
"0.6043245",
"0.6043245",
"0.6016099",
"0.6001061",
"0.5950859",
"0.59475964",
"0.59058094",
"0.59058094",
"0.5899779",
"0.58994716",
"0.5859195",
"0.5859195",
"0.58562577",
"0.5848795",
"0.58461326",
"0.5845563",
"0.5835388",
"0.5835388",
"0.5810571",
"0.58068424",
"0.58068424",
"0.58068424",
"0.58068424",
"0.58068424",
"0.58056164",
"0.58048487",
"0.57922775",
"0.578326",
"0.57761943",
"0.57741773",
"0.57606876",
"0.57235456",
"0.571826",
"0.57015103",
"0.56985635",
"0.5696704",
"0.5696704",
"0.5696704",
"0.56960297",
"0.56960297",
"0.56960297",
"0.56933236",
"0.5687384",
"0.5687384",
"0.5687384",
"0.5687384",
"0.5687384",
"0.56740147"
] | 0.85343474 | 0 |
Pulls the SolrQueryRequest constructed in SolrDispatchFilter from the SolrRequestInfo thread local, then gets the SolrCore and IndexSchema and sets up the response. writer. If an error occurs during initialization, setExisting(false) is called and an error status code and message is set; in this case, Restlet will not continue servicing the request (by calling the method annotated to associate it with GET, etc., but rather will send an error response. | @Override
public void doInit() throws ResourceException {
super.doInit();
setNegotiated(false); // Turn off content negotiation for now
if (isExisting()) {
try {
SolrRequestInfo solrRequestInfo = SolrRequestInfo.getRequestInfo();
if (null == solrRequestInfo) {
final String message = "No handler or core found in " + getRequest().getOriginalRef().getPath();
doError(Status.CLIENT_ERROR_BAD_REQUEST, message);
setExisting(false);
} else {
solrRequest = solrRequestInfo.getReq();
if (null == solrRequest) {
final String message = "No handler or core found in " + getRequest().getOriginalRef().getPath();
doError(Status.CLIENT_ERROR_BAD_REQUEST, message);
setExisting(false);
} else {
solrResponse = solrRequestInfo.getRsp();
solrCore = solrRequest.getCore();
schema = solrRequest.getSchema();
String responseWriterName = solrRequest.getParams().get(CommonParams.WT);
if (null == responseWriterName) {
responseWriterName = JSON; // Default to json writer
}
String indent = solrRequest.getParams().get("indent");
if (null == indent || ! ("off".equals(indent) || "false".equals(indent))) {
// indent by default
ModifiableSolrParams newParams = new ModifiableSolrParams(solrRequest.getParams());
newParams.remove(indent);
newParams.add("indent", "on");
solrRequest.setParams(newParams);
}
responseWriter = solrCore.getQueryResponseWriter(responseWriterName);
contentType = responseWriter.getContentType(solrRequest, solrResponse);
final String path = getRequest().getRootRef().getPath();
if ( ! RestManager.SCHEMA_BASE_PATH.equals(path)) {
// don't set webapp property on the request when context and core/collection are excluded
final int cutoffPoint = path.indexOf("/", 1);
final String firstPathElement = -1 == cutoffPoint ? path : path.substring(0, cutoffPoint);
solrRequest.getContext().put("webapp", firstPathElement); // Context path
}
SolrCore.preDecorateResponse(solrRequest, solrResponse);
// client application can set a timeout for update requests
Object updateTimeoutSecsParam = getSolrRequest().getParams().get(UPDATE_TIMEOUT_SECS);
if (updateTimeoutSecsParam != null)
updateTimeoutSecs = (updateTimeoutSecsParam instanceof Number)
? ((Number) updateTimeoutSecsParam).intValue()
: Integer.parseInt(updateTimeoutSecsParam.toString());
}
}
} catch (Throwable t) {
if (t instanceof OutOfMemoryError) {
throw (OutOfMemoryError) t;
}
setExisting(false);
throw new ResourceException(t);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"QueryResponse query(SolrParams solrParams) throws SolrServerException;",
"private QueryResponse loggedSolrQuery(String caller, SolrQuery solrQuery) throws SolrServerException, IOException {\n long solrNS = -System.nanoTime();\n QueryResponse rsp = solrServer.query(solrQuery, METHOD.POST);\n solrNS += System.nanoTime();\n String query = solrQuery.getQuery();\n query = query == null ? null : query.length() > 200 ? query.substring(0, 200) + \"...\" : query;\n/*\n log.debug(String.format(\"%s Solr response in %d ms (qtime=%d ms) with %d hits for query %s\", caller, solrNS / M, rsp.getQTime(),\n rsp.getResults().getNumFound(), query));\n */\n return rsp;\n }",
"public abstract NamedList<Object> request(final SolrRequest request) throws SolrServerException, IOException;",
"private void initRequest()\n\t{\n\t\tthis.request = new RestClientReportRequest();\n\t\tRequestHelper.copyConfigsToRequest(this.getConfigs(), this.request);\n\t\tRequestHelper.copyParamsToRequest(this.getParams(), this.request);\n\t\t\n\t\tthis.performQuery();\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public void finalise() {\n if(indexFieldConfiguration != null){\n FieldMapper mapper = FieldMappingUtils.createDefaultFieldMapper(indexFieldConfiguration);\n try {\n CacheUtils.storeBaseMappingsConfiguration(solrYard, mapper);\n } catch (YardException e) {\n log.error(\"Unable to store FieldMapperConfiguration to the Store!\",e);\n }\n }\n log.info(\" ... optimize SolrCore\");\n try {\n solrYard.optimize();\n } catch (YardException e) {\n log.error(\"Unable to optimize SolrIndex after indexing! IndexArchive will not be optimized ...\",e);\n }\n //build the FST models\n if(fstConfigs != null){\n //(1) FST config initialisation\n log.info(\" ... init FST configuration(s)\");\n IndexSchema schema = core.getLatestSchema();\n File fstDir = new File(new File(core.getDataDir()),\"fst\");\n if(!fstDir.isDirectory()){\n try {\n FileUtils.forceMkdir(fstDir);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to create Directory \"\n + fstDir.getAbsolutePath() + \"for storing the FST models \"\n + \"of SolrCore \"+core.getName());\n }\n }\n RefCounted<SolrIndexSearcher> searcherRef = core.getSearcher();\n try {\n for(FstConfig fstConfig : fstConfigs){\n fstConfig.setFstDirectory(fstDir); //set the FST directory\n log.info(\"> FST config {}\", fstConfig);\n fstConfig.buildConfig(schema, searcherRef.get().getAtomicReader());\n for(CorpusCreationInfo corpus : fstConfig.getCorpusCreationInfos()){\n log.info(\" - {}\",corpus);\n }\n }\n } finally {\n searcherRef.decref();\n }\n\n List<Future<?>> fstCreationTasks = new ArrayList<Future<?>>();\n ExecutorService es = Executors.newFixedThreadPool(fstThreads);\n log.info(\" ... build FST models \");\n for(FstConfig config : fstConfigs){\n for(final CorpusCreationInfo corpus : config.getCorpusCreationInfos()){\n fstCreationTasks.add(es.submit(new CorpusCreationTask(core, corpus)));\n }\n }\n //now wait for the completion of the tasks\n Iterator<Future<?>> taskIt = fstCreationTasks.iterator();\n while(taskIt.hasNext()){\n Future<?> task = taskIt.next();\n try {\n task.get(); //wait until ready\n taskIt.remove();\n } catch (ExecutionException e) {\n log.error(\"Exception while building FST models for SolrCore \"\n + core.getName(),e);\n } catch (InterruptedException e) {\n log.error(\"Interupped while building FST models for SolrCore \"\n + core.getName(),e);\n Thread.currentThread().interrupt();\n \n }\n }\n if(!fstCreationTasks.isEmpty()){\n log.warn(\"Unable to build {} FST models for SolrCore {}\",\n fstCreationTasks.size(), core.getName());\n } else {\n log.info(\"All FST modles for SolrCore {} build successfully!\",\n core.getName());\n }\n } //no FST modles to build\n \n //all Solr specific stuff is now ready\n log.info(\" ... close SolrCore\");\n solrYard.close();\n \n //if a indexing config is present we need to create the distribution files\n if(indexingConfig != null){\n \t//first check if the distribution folder needs to be created and is valid\n \tFile distFolder = indexingConfig.getDistributionFolder();\n \tif(!distFolder.exists()){\n \t\tif(!distFolder.mkdirs()){\n \t\t\tthrow new IllegalStateException(\"Unable to create distribution folder \" +\n \t\t\t\t\tdistFolder.getAbsolutePath());\n \t\t}\n \t} else if(!distFolder.isDirectory()){\n \t\tthrow new IllegalStateException(\"Distribution folder\" + distFolder.getAbsolutePath()\n \t\t\t\t+ \"is not a Directory!\");\n \t}\n //zip the index and copy it over to distribution\n log.info(\" ... build Solr index archive\");\n if(solrArchive != null){\n try {\n writeSolrIndexArchive(indexingConfig);\n }catch (IOException e) {\n log.error(\"Error while creating Solr Archive \"+solrArchive.getAbsolutePath()+\n \"! The archive will not be created!\",e);\n log.error(\"As a Workaround you can manually create the Solr Archive \" +\n \"by creating a ZIP archive with the contents of the Folder \" +\n solrIndexLocation+\"!\");\n }\n }\n if(solrArchiveRef != null){\n try {\n writeSolrIndexReference(indexingConfig);\n } catch (IOException e) {\n log.error(\"Error while creating Solr Archive Reference \"+\n solrArchiveRef.getAbsolutePath()+\n \"! The file will not be created!\",e);\n }\n }\n //finally create the Osgi Configuration\n try {\n OsgiConfigurationUtil.writeSiteConfiguration(indexingConfig);\n } catch (IOException e) {\n log.error(\"Unable to write OSGI configuration file for the referenced site\",e);\n }\n try {\n OsgiConfigurationUtil.writeCacheConfiguration(indexingConfig);\n } catch (IOException e) {\n log.error(\"Unable to write OSGI configuration file for the Cache\",e);\n }\n //create the SolrYard configuration\n try {\n writeSolrYardConfiguration(indexingConfig);\n } catch (IOException e) {\n log.error(\"Unable to write OSGI configuration file for the SolrYard\",e);\n }\n //create the bundle\n OsgiConfigurationUtil.createBundle(indexingConfig);\n }\n }",
"public static boolean isSolrLocalWebappStarted() {\n return ScipioSolrInfoServlet.isServletInitStatusReached();\n }",
"public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}",
"public SolrQuery() {\n super(null);\n store = null;\n }",
"@Override\n\tpublic void runRead(SolrDocument option, String time_field, long start, long end, Statistic stat, String... fq) {\n\t\tSystem.out.println(\"SolrReaderSingle\");\n\t\t\n\t\tSolrClient solr = new HttpSolrClient.Builder((String) option.get(\"solr_reader_url_s\")).build();\n\t\t\n\t\tString[] var_list = option.get(\"indexList_s\").toString().split(\"\\\\^\");\n\t\tSystem.out.println(option.get(\"indexList_s\").toString());\n\t\tSystem.out.println(var_list.length);\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tString query_field = option.get(\"query_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tString value_field = option.get(\"value_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tSystem.out.println(query_field + \" \" + value_field);\n\t\t\n\t\tlong interval = (long) option.get(\"interval_l\");\n\t\tlong gap = (long) option.get(\"gap_l\");\n\t\tint group_num = (int) (gap/interval);\n\t\t\n\t\tHashMap<String, ArrayList<ArrayList<Double>>> resource = new HashMap<String, ArrayList<ArrayList<Double>>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tresource.put(var_list[i], new ArrayList<ArrayList<Double>>());\n\t\t\tfor (int j = 0; j < group_num; j++) {\n\t\t\t\tresource.get(var_list[i]).add(new ArrayList<Double>()); //+++++++++++++++++++++++++++++++++++++++++\n\t\t\t}\n\t\t}\n\t\t\n\t\tSolrQuery solrQuery = new SolrQuery();\n\t\tsolrQuery.setQuery(\"*:*\");\n\t\tString[] fq_list = new String[fq.length+1];\n\t\tfor (int j = 0; j < fq.length; j++) {\n\t\t\tfq_list[j] = fq[j];\n\t\t}\n\t\tfq_list[fq.length] = \"timestamp_l:[\" + start + \" TO \" + end + \"]\";\n\t\tsolrQuery.setFilterQueries(fq_list);\n\t\tsolrQuery.setRows(100000);\n\t\tsolrQuery.setSort(\"timestamp_l\", ORDER.asc);\n\t\tsolrQuery.setFields(query_field, value_field, \"timestamp_l\");\n\t\t\n\t\tqueryList = new ArrayList<String>();\n\t\tqueryMap = new HashMap<String, Integer>();\n\t\tqueryArray = new ArrayList<ArrayList<Double>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tqueryList.add(var_list[i]);\n\t\t\tqueryMap.put(var_list[i], i);\n\t\t\tqueryArray.add(new ArrayList<Double>());\n\t\t}\n\t\t\n\t\tQueryResponse response = new QueryResponse();\n\t\tSolrDocumentList docs = new SolrDocumentList();\n\t\t\n\t\t\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tresponse = solr.query(solrQuery);\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.print(\"ÍøÂçreadÒì³£\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t} catch (InterruptedException 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\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tsolr.close();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tdocs = response.getResults();\n\t\t\n\t\tSystem.out.println(\"Êý¾ÝÁ¿£º\"+docs.size());\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < docs.size(); i++) {\n\t\t\tString var = docs.get(i).get(query_field).toString();\n\t\t\tif (!queryMap.keySet().contains(var)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlong timestamp_tmp = (long) docs.get(i).get(\"timestamp_l\");\n\t\t\tint x = (int) ((timestamp_tmp-start)/interval);\n\t\t\tdouble tmp_double = 0;\n\t\t\tif (docs.get(i).get(value_field) instanceof Double) {\n\t\t\t\ttmp_double = (Double) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Float) {\n\t\t\t\ttmp_double = (Float) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Integer) {\n\t\t\t\ttmp_double = (Integer) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Long) {\n\t\t\t\ttmp_double = (Long) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof String){\n\t\t\t\ttry {\n\t\t\t\t\ttmp_double = Double.parseDouble((String) docs.get(i).get(value_field));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x >= group_num) continue;\n\t\t\tresource.get(var).get(x).add(tmp_double);\n\t\t}\n\t\t\n\t\tfor (String it : queryMap.keySet()) {\n\t\t\tfor (int i = 0; i < group_num; i++) {\n\t\t\t\tqueryArray.get(queryMap.get(it)).add(stat.run(resource.get(it).get(i)));\n\t\t\t}\n\t\t}\n\t\t\n\t\tattrList = new String[var_list.length];\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tattrList[i] = \"_\" + (new Integer(i)).toString();\n\t\t}\n\t\t\n//\t\tWriteCSV writer = new WriteCSV();\n//\t\ttry {\n//\t\t\twriter.writeArrayCSV(queryArray, attrList, \".\", \"data.csv\");\n//\t\t} catch (IOException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\t}",
"public void init() throws Exception\n\t{\n\t\ttry{\n\t\t\tif(requests_file!= null){\n\t\t parse();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t\t// Set requests from command line.\n\t\tfor(int i=0;i<urls.length;i++){\n\t\t\tRequestContext ctx=new RequestContext(this);\n\t\t\tctx.setUrl(new URL(urls[i]));\n\t\t\t\n\t\t\tif(method != null && method.equals(\"POST\")){\n\t\t\t\tctx.setMethod(method);\n\t\t\t\tif(bodyFile != null){\n\t\t\t\t\tctx.setBodyFile(bodyFile);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tctx.setMethod(\"GET\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(String name:headers.keySet()){\n\t\t\t\tctx.setHeader(name, headers.get(name));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String key:queries.keySet()){\n\t\t\t\tctx.setQueryParam(key, queries.get(key));\n\t\t\t}\n\t\t\t\n\t\t\tctx.setRounds(rounds);\n\t\t\t\n\t\t\tif(ctxs.contains(ctx)){\n\t\t\t\tctxs.remove(ctx);\n\t\t\t}\n\t\t\t\n\t\t\tctxs.add(ctx);\n\t\t}\n\t\t\n\t\t// Add default headers for generic header types. Doesn't override already set headers. Useful for situations when no headers are explicitly set.\n\t\tfor(RequestContext ctx:ctxs){\n\t\t\tfor(String header:defaultHeaders.keySet()){\n\t\t\t\tctx.setHeaderIfNotPresent(header, defaultHeaders.get(header));\n\t\t\t}\n\t\t}\n\t\t\n\t\tsynchronized(this){\n\t\t\tprocessorCount=ctxs.size();\n\t\t}\n\t}",
"public UpdateResponse commit() throws SolrServerException, IOException {\n return commit(true, true);\n }",
"public boolean wasSolrErrorEncountered() {\n\n if (this.solrErrorEncountered) {\n return true;\n }\n if (!this.hasValidFilterQueries()) {\n setSolrErrorEncountered(true);\n return true;\n }\n return solrErrorEncountered;\n }",
"public UpdateResponse optimize() throws SolrServerException, IOException {\n return optimize(true, true, 1);\n }",
"private RequestResponse handleSearchRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n SearchParameters searchParameters = new RequestToSearchParameters().convert(request);\n return this.searchService.query(core, searchParameters);\n }",
"@Override\n public boolean open(SchemaNegotiator negotiator) {\n String tempDirPath = negotiator\n .drillConfig()\n .getString(ExecConstants.DRILL_TMP_DIR);\n\n HttpUrl url = buildUrl();\n logger.debug(\"Final URL: {}\", url);\n\n CustomErrorContext errorContext = new ChildErrorContext(negotiator.parentErrorContext()) {\n @Override\n public void addContext(UserException.Builder builder) {\n super.addContext(builder);\n builder.addContext(\"URL\", url.toString());\n }\n };\n negotiator.setErrorContext(errorContext);\n\n logger.debug(\"Executing request with url: {}\", url);\n\n // Http client setup\n SimpleHttp http = SimpleHttp.builder()\n .scanDefn(subScan)\n .url(url)\n .tempDir(new File(tempDirPath))\n .paginator(paginator)\n .proxyConfig(proxySettings(negotiator.drillConfig(), url))\n .errorContext(errorContext)\n .build();\n\n // JSON loader setup\n resultSetLoader = negotiator.build();\n if (implicitColumnsAreProjected()) {\n implicitColumns = new ImplicitColumns(resultSetLoader.writer());\n buildImplicitColumns();\n }\n\n // inStream is expected to be closed by the JsonLoader.\n InputStream inStream = http.getInputStream();\n populateImplicitFieldMap(http);\n\n try {\n JsonLoaderBuilder jsonBuilder = new JsonLoaderBuilder()\n .implicitFields(implicitColumns)\n .resultSetLoader(resultSetLoader)\n .standardOptions(negotiator.queryOptions())\n .maxRows(maxRecords)\n .dataPath(subScan.tableSpec().connectionConfig().dataPath())\n .errorContext(errorContext)\n .listenerColumnMap(paginationFields)\n .fromStream(inStream);\n\n if (subScan.tableSpec().connectionConfig().jsonOptions() != null) {\n JsonLoaderOptions jsonOptions = subScan\n .tableSpec()\n .connectionConfig()\n .jsonOptions()\n .getJsonOptions(negotiator.queryOptions());\n jsonBuilder.options(jsonOptions);\n } else {\n jsonBuilder.standardOptions(negotiator.queryOptions());\n }\n\n if (getSchema(negotiator) != null) {\n jsonBuilder.providedSchema(getSchema(negotiator));\n }\n\n jsonLoader = jsonBuilder.build();\n } catch (Throwable t) {\n\n // Paranoia: ensure stream is closed if anything goes wrong.\n // After this, the JSON loader will close the stream.\n AutoCloseables.closeSilently(inStream);\n AutoCloseables.closeSilently(http);\n throw t;\n }\n\n // Close the http client\n http.close();\n return true;\n }",
"public static void initialize(String solrServerUrl) {\n SolrClient innerSolrClient = new HttpSolrClient.Builder(solrServerUrl).build();\n\n if (PropertiesLoader.SOLR_SERVER_CACHING) {\n int maxCachingEntries = PropertiesLoader.SOLR_SERVER_CACHING_MAX_ENTRIES;\n int maxCachingSeconds = PropertiesLoader.SOLR_SERVER_CACHING_AGE_SECONDS;\n solrServer = new CachingSolrClient(innerSolrClient, maxCachingEntries, maxCachingSeconds, -1); //-1 means no maximum number of connections \n log.info(\"SolrClient initialized with caching properties: maxCachedEntrie=\"+maxCachingEntries +\" cacheAgeSeconds=\"+maxCachingSeconds);\n } else {\n solrServer = new HttpSolrClient.Builder(solrServerUrl).build();\n log.info(\"SolClient initialized without caching\");\n }\n\n // some of the solr query will never using cache. word cloud(cache memory) + playback resolving etc. (cache poisoning)\n noCacheSolrServer = new HttpSolrClient.Builder(solrServerUrl).build();\n\n // solrServer.setRequestWriter(new BinaryRequestWriter()); // To avoid http\n // error code 413/414, due to monster URI. (and it is faster)\n\n instance = new NetarchiveSolrClient();\n\n if (PropertiesLoader.SOLR_SERVER_CHECK_INTERVAL > 0) {\n indexWatcher = new IndexWatcher(\n innerSolrClient, PropertiesLoader.SOLR_SERVER_CHECK_INTERVAL, instance::indexStatusChanged);\n }\n\n log.info(\"SolrClient initialized with solr server url:\" + solrServerUrl);\n }",
"private void init() throws JRException {\n if (result != null) {\n return;\n }\n if (endpointUrl == null) {\n throw new JRException(\"Endpoint URLs can't be null\");\n }\n if (sparqlStatement == null || sparqlStatement.length() == 0) {\n throw new JRException(\"SPARQL statements can't be null for \" + endpointUrl);\n }\n try {\n endpointObj = new SPARQLRepository(endpointUrl);\n endpointObj.initialize();\n } catch (Exception e) {\n throw new JRException(\"Exception initializing endpoint \" + endpointUrl, e);\n }\n try {\n conn = endpointObj.getConnection();\n log.info(\"Executing SPARQL: \" + sparqlStatement);\n TupleQuery q = conn.prepareTupleQuery(QueryLanguage.SPARQL, sparqlStatement);\n result = q.evaluate();\n log.debug(\"Bindings got, size: \" + result.getBindingNames().size());\n } catch (Exception e) {\n throw new JRException(\"Exception connecting to endpoint \" + endpointUrl, e);\n } finally {\n try {\n conn.close();\n } catch (RepositoryException e) {\n e.printStackTrace();\n }\n }\n }",
"private RequestResponse handleIndexRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n ContentDocument contentDocument = new RequestToContentDocument().convert(request);\n return this.searchService.index(core, contentDocument);\n }",
"private static SolrQuery getSolrQuery(OrganizationSearch4Solr request, int start, int end) {\n\t\tSolrQuery query = new SolrQuery();\r\n\t\tquery.setHighlight(true).setStart(start);\r\n query.setTermsLimit(500);\r\n query.setRows(20000);\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"wt\", \"json\");\r\n map.put(\"indent\", \"true\");\r\n StringBuilder queryPrams = new StringBuilder();\r\n queryPrams.append(\"{!q.op=OR}+isOutOfBusiness:false AND \");\r\n if (!StringUtils.isEmpty(request.getOrgId())) {\r\n \tqueryPrams.append(\"organizationId:\" + request.getOrgId() + \" AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getSiteinstanceId())) {\r\n \tqueryPrams.append(\"siteInstanceId:\" + request.getSiteinstanceId() + \" AND \");\r\n }\r\n List<String> orgIdList = request.getOrgIdList();\r\n if (orgIdList != null && orgIdList.size() > 0) {\r\n \tString idsString = \"+organizationId:(\";\r\n \tfor (String orgId : orgIdList) {\r\n \tidsString += orgId + \" \";\r\n\t\t\t}\r\n \tidsString = idsString.substring(0, idsString.length()-1) + \")\";\r\n \tqueryPrams.append(idsString + \" AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getTaxID())) {\r\n \tqueryPrams.append(\"taxIds:(\\\"\" + request.getTaxID() + \"\\\") AND \");\r\n }\r\n String orgName = request.getOrgName();\r\n if (!StringUtils.isEmpty(orgName)) {\r\n \torgName = \"(\"+ orgName +\")\";\r\n \t\t// LATIN\r\n \t\tqueryPrams.append(\"(+(organizationExtendedName:\" + orgName + \" \");\r\n \t\t// NOLATIN\r\n \t\tqueryPrams.append(\"organizationNonLatinExtendedName:\" + orgName + \" \");\r\n \t\t// ReportingName\r\n \t\tqueryPrams.append(\"organizationReportingName:\" + orgName + \" \");\r\n \t\t// LegalName\r\n \t\tqueryPrams.append(\"organizationLegalName:\" + orgName + \" \");\r\n \t\t// tradeName\r\n \t\tqueryPrams.append(\"tradeStyleNames:\" + orgName + \")) AND \");\r\n }\r\n String cityName = request.getCityName();\r\n if (!StringUtils.isEmpty(cityName)) {\r\n \t\t// LATIN\r\n \t\tqueryPrams.append(\"(+(latinCity:(\\\"\" + cityName + \"\\\") \");\r\n \t\t// NOLATIN\r\n \t\tqueryPrams.append(\"nonlatinCity:(\\\"\" + cityName + \"\\\"))) AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getPostalCode())) {\r\n queryPrams.append(\"postalCode:(\" + request.getPostalCode() + \"*) AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getCountryCode())) {\r\n queryPrams.append(\"countryCode:(\" + request.getCountryCode() + \") AND \");\r\n }\r\n String state = request.getStateProvinceName();\r\n if (!StringUtils.isEmpty(state)) {\r\n \tif(state.matches(\"\\\\p{ASCII}+\")){\r\n \t\t// LATIN\r\n queryPrams.append(\"state:(\\\"\" + state + \"\\\") AND \");\r\n \t}else{\r\n \t\t// NOLATIN\r\n queryPrams.append(\"state:(\\\"\" + state + \"\\\") AND \");\r\n \t}\r\n }\r\n\r\n queryPrams.append(\" *:* \");\r\n \r\n SolrParams params = new MapSolrParams(map);\r\n \r\n query.add(params);\r\n query.setQuery(queryPrams.toString());\r\n\t\treturn query;\r\n\t}",
"private SolrIndexer()\n {\n fieldMap = new HashMap<String, String[]>();\n transMapMap = new HashMap<String, Map<String, String>>();\n customMethodMap = new HashMap<String, Method>();\n customMixinMap = new HashMap<String, SolrIndexerMixin>();\n indexDate = new Date();\n }",
"public static void main(String[] args) throws IOException, SolrServerException {\n\n\n CloudSolrClient cloudSolrClient = new CloudSolrClient(args[0]);\n cloudSolrClient.setDefaultCollection(args[1]);\n cloudSolrClient.connect();\n\n SolrInputDocument solrInputDocument = new SolrInputDocument();\n String id = Long.toString(System.currentTimeMillis());\n solrInputDocument.addField(\"id\", id);\n\n// Test Special character Removal\n String testString = \"ZB*2227*2Z4\";\n solrInputDocument.addField(\"whitespace\", testString);\n solrInputDocument.addField(\"standard\", testString);\n\n// Test Special character Removal\n// Test hello this phrasing\n SolrInputDocument solrInputDocument2 = new SolrInputDocument();\n String id2 = Long.toString(System.currentTimeMillis());\n solrInputDocument2.addField(\"id\", id2);\n\n String testString2 = \"Hello, this! @ [at] <sat> {here}\";\n solrInputDocument2.addField(\"whitespace\", testString2);\n solrInputDocument2.addField(\"standard\", testString2);\n\n// Test hello this phrasing\n// Test hello this word a phrase slop phrasing\n SolrInputDocument solrInputDocument3 = new SolrInputDocument();\n String id3 = Long.toString(System.currentTimeMillis());\n solrInputDocument3.addField(\"id\", id3);\n\n String testString3 = \"hello, this is a test!\";\n solrInputDocument3.addField(\"whitespace\", testString3);\n solrInputDocument3.addField(\"standard\", testString3);\n\n\n// Test hello this word a phrase slop phrasing\n SolrInputDocument solrInputDocument4 = new SolrInputDocument();\n String id4 = Long.toString(System.currentTimeMillis());\n solrInputDocument4.addField(\"id\", id4);\n\n String testString4 = \"hello, this word a test!\";\n solrInputDocument4.addField(\"whitespace\", testString4);\n solrInputDocument4.addField(\"standard\", testString4);\n\n cloudSolrClient.add(solrInputDocument);\n cloudSolrClient.add(solrInputDocument2);\n cloudSolrClient.add(solrInputDocument3);\n cloudSolrClient.add(solrInputDocument4);\n cloudSolrClient.commit();\n }",
"public static HttpSolrClient getQueryHttpSolrClient(String core) {\n return SolrClientFactory.queryClientFactory.getClientForCore(core, null, null);\n }",
"public SolrPingResponse ping() throws SolrServerException, IOException {\n return new SolrPing().process(this);\n }",
"public static Response processAndRespondToException(\n Exception exception,\n SolrQueryRequest solrQueryRequest,\n ContainerRequestContext containerRequestContext) {\n final Exception normalizedException =\n RequestHandlerBase.normalizeReceivedException(solrQueryRequest, exception);\n final RequestHandlerBase.HandlerMetrics metrics =\n (RequestHandlerBase.HandlerMetrics) containerRequestContext.getProperty(HANDLER_METRICS);\n if (metrics != null) {\n RequestHandlerBase.processErrorMetricsOnException(normalizedException, metrics);\n }\n\n // Then, convert the exception into a SolrJerseyResponse (creating one as necessary\n // if response not found, etc.)\n return buildExceptionResponse(normalizedException, solrQueryRequest, containerRequestContext);\n }",
"public static boolean isSolrWebappReady() throws Exception {\n return isSolrWebappReady(getQueryHttpSolrClient(null));\n }",
"public static HttpSolrClient getQueryHttpSolrClient(String core, String solrUsername, String solrPassword) {\n return SolrClientFactory.queryClientFactory.getClientForCore(core, solrUsername, solrPassword);\n }",
"@Role\npublic interface SolrInstance extends Initializable\n{\n /**\n * Add a {@link SolrInputDocument} to the Solr index.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param solrDocument the document.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void add(SolrInputDocument solrDocument) throws SolrServerException, IOException;\n\n /**\n * Add a list of {@link SolrInputDocument} to the Solr index. This is a batch operation.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param solrDocuments the documents.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void add(List<SolrInputDocument> solrDocuments) throws SolrServerException, IOException;\n\n /**\n * Delete a single entry from the Solr index.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param id the ID of the entry.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void delete(String id) throws SolrServerException, IOException;\n\n /**\n * Delete a list of entries from the Solr index. This is a batch operation.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param ids the list of entry IDs\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void delete(List<String> ids) throws SolrServerException, IOException;\n\n /**\n * Delete entries from the index based on the result of the given query.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param query the Solr query.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void deleteByQuery(String query) throws SolrServerException, IOException;\n\n /**\n * Commit the recent (uncommitted) changes to the Solr server.\n * \n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void commit() throws SolrServerException, IOException;\n\n /**\n * Cancel the local uncommitted changes that were not yet pushed to the Solr server.\n * \n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void rollback() throws SolrServerException, IOException;\n\n /**\n * Query the server's index using the Solr Query API.\n * \n * @param solrParams Solr Query API.\n * @return the query result.\n * @throws SolrServerException if problems occur.\n */\n QueryResponse query(SolrParams solrParams) throws SolrServerException;\n\n /**\n * Query solr, and stream the results. Unlike the standard query, this will send events for each Document rather\n * then add them to the {@link QueryResponse}.\n * <p>\n * Although this function returns a {@link QueryResponse} it should be used with care since it excludes anything\n * that was passed to callback. Also note that future version may pass even more info to the callback and may not\n * return the results in the {@link QueryResponse}.\n * \n * @param params query parameters\n * @param callback the object to notify\n * @return the query result\n * @throws SolrServerException if problems occur\n * @throws IOException if problems occur\n */\n QueryResponse queryAndStreamResponse(SolrParams params, StreamingResponseCallback callback)\n throws SolrServerException, IOException;\n}",
"public static boolean isSolrLocalWebappPresent() {\n return (ComponentConfig.getWebAppInfo(solrWebappServer, solrWebappPath) != null);\n }",
"public QueryResponse query(SolrParams params) throws SolrServerException, IOException {\n return new QueryRequest(params).process(this);\n }",
"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 static HttpSolrClient getUpdateHttpSolrClient(String core, String solrUsername, String solrPassword) {\n return SolrClientFactory.updateClientFactory.getClientForCore(core, solrUsername, solrPassword);\n }",
"@Override\n public void afterPropertiesSet() throws Exception {\n mockSolrServer = new MockSolrServer(\"statistics\");\n solr = mockSolrServer.getSolrServer();\n\n // Mock GeoIP's DatabaseReader\n DatabaseReader reader = mock(DatabaseReader.class);\n // Ensure that any tests requesting a city() get a mock/fake CityResponse\n Mockito.lenient().when(reader.city(any(InetAddress.class))).thenReturn(mockCityResponse());\n // Save this mock DatabaseReader to be used by SolrLoggerService\n locationService = reader;\n }",
"private void init() {\n String METHOD = Thread.currentThread().getStackTrace()[1].getMethodName();\n String msg = null;\n String type = ConstantsIF.RESOURCE;\n ConfigurationIF config = null;\n JSONObject json = null;\n Map<String, String> map = null;\n\n _logger.entering(CLASS, METHOD);\n\n /*\n * Get JSON data from the Config object via the Config Manager\n */\n config = _configMgr.getConfiguration(type);\n\n if (config != null) {\n json = config.getJSON();\n if (json == null) {\n msg = CLASS + \": \" + METHOD + \": JSON data for '\" + type + \"' is null\";\n this.setError(true);\n }\n } else {\n msg = CLASS + \": \" + METHOD + \": Configuration for '\" + type + \"' is null\";\n this.setError(true);\n }\n\n /*\n * setup the Mongo Data Access Object\n */\n if (_MongoDAO == null) {\n map = JSON.convertToParams(JSON.getObject(json, ConfigIF.RS_NOSQL));\n\n try {\n _MongoDAO = MongoFactory.getInstance(map);\n } catch (Exception ex) {\n msg = CLASS + \": \" + METHOD + \": Mongo DAO:\" + ex.getMessage();\n this.setError(true);\n }\n }\n\n if (!this.isError()) {\n this.setState(STATE.READY);\n } else {\n this.setState(STATE.ERROR);\n this.setStatus(msg);\n _logger.log(Level.SEVERE, msg);\n }\n\n _logger.exiting(CLASS, METHOD);\n\n return;\n }",
"public abstract void mergeToGlobalStats(SolrQueryRequest req,\n List<ShardResponse> responses);",
"@Bean\n\tpublic SolrClient solrClient() throws Exception {\n\t\t\n\t\tfinal String solrUrl = \"http://192.168.182.132:8983/solr\";\n\t\treturn new HttpSolrClient.Builder(solrUrl).withConnectionTimeout(10000).withSocketTimeout(60000).build();\n\t}",
"@Override\n\tpublic void initRequest() {\n\n\t}",
"@Override\n public void optimize() throws IOException, SolrServerException {\n getSolrClient().optimize(); //TODO: use the conncurrentupdatesolrserver instead?\n }",
"public interface SolrService {\n\n /**\n * Save index start.\n *\n * @param userId the user id\n */\n @Transactional\n void saveIndexStart(Long userId);\n\n /**\n * Queue index.\n *\n * @param personTotaraId the person totara id\n */\n @Transactional\n void queueIndex(Long personTotaraId);\n\n /**\n * Reindex search database future.\n *\n * @return the future\n */\n @Timed\n @Async\n Future<Integer> reindexSearchDatabase();\n\n /**\n * Find last index data index data.\n *\n * @return the index data\n */\n @Transactional(readOnly = true)\n IndexData findLastIndexData();\n\n /**\n * Fin last queued data index data.\n *\n * @return the index data\n */\n IndexData finLastQueuedData();\n\n /**\n * Update index.\n *\n * @param indexData the index data\n */\n @Transactional\n void updateIndex(IndexData indexData);\n}",
"@Override\r\n\tpublic void configure() {\r\n\t\tsuper.configure();\r\n\t\t\r\n\t\tfinal CIAOConfig config = CamelApplication.getConfig(getContext());\r\n\r\n\t\t// Document input route\r\n\t\t// * transforms the ParsedDocument json into a multi-part trunk request message\r\n\t\t// * Adds the trunk request message onto a JMS queue for later processing (by any running process)\r\n\t\tfrom(\"jms:queue:documents?destination.consumer.prefetchSize=0\")\r\n\t\t.errorHandler(new TransactionErrorHandlerBuilder()\r\n\t\t\t.asyncDelayedRedelivery()\r\n\t\t\t.maximumRedeliveries(2)\r\n\t\t\t.backOffMultiplier(2)\r\n\t\t\t.redeliveryDelay(2000)\r\n\t\t\t.log(LOGGER)\r\n\t\t\t.logExhausted(true)\r\n\t\t)\r\n\t\t.transacted(\"PROPAGATION_NOT_SUPPORTED\")\r\n\t\t.unmarshal().json(JsonLibrary.Jackson, ParsedDocument.class)\r\n\t\t.bean(new TrunkRequestPropertiesFactory(config), \"newTrunkRequestProperties\")\r\n\t\t.setHeader(\"SOAPAction\").simple(\"urn:nhs:names:services:itk/${body.interactionId}\")\r\n\t\t.setHeader(Exchange.CONTENT_TYPE).simple(\"multipart/related; boundary=\\\"${body.mimeBoundary}\\\"; type=\\\"text/xml\\\"; start=\\\"<${body.ebxmlContentId}>\\\"\")\r\n\t\t.setHeader(Exchange.CORRELATION_ID).simple(\"${body.ebxmlCorrelationId}\")\r\n\t\t.to(\"freemarker:uk/nhs/ciao/transport/spine/trunk/TrunkRequest.ftl\")\r\n\t\t.to(\"jms:queue:trunk-requests\");\r\n\t\t\r\n\t\t\r\n\t\t // Outgoing trunk message queue\r\n\t\t // * sends a multi-part trunk request message over the spine\r\n\t\t // * blocks until an async ebXml ack is received off a configured JMS topic or a timeout occurs\r\n\t\t // * marks message as success, retry or failure based on the ACK content\r\n\t\tfrom(\"jms:queue:trunk-requests?destination.consumer.prefetchSize=0\")\r\n\t\t.id(\"trunk-requests\")\r\n\t\t.errorHandler(new TransactionErrorHandlerBuilder()\r\n\t\t\t.asyncDelayedRedelivery()\r\n\t\t\t.maximumRedeliveries(2)\r\n\t\t\t.backOffMultiplier(2)\r\n\t\t\t.redeliveryDelay(2000)\r\n\t\t\t.log(LOGGER)\r\n\t\t\t.logExhausted(true)\r\n\t\t)\r\n\t\t.transacted(\"PROPAGATION_NOT_SUPPORTED\")\r\n\t\t\r\n\t\t.setHeader(Exchange.FILE_NAME, simple(\"${header.CamelCorrelationId}/message\"))\r\n\t\t.setHeader(Exchange.HTTP_METHOD, constant(org.apache.camel.component.http4.HttpMethods.POST))\r\n\t\t\r\n\t\t.to(\"file://./target/docs\")\t\t\t\t\r\n//\t\t.doTry()\r\n\t\t\t.to(\"spine:trunk\")\r\n\t\t\t.process(new EbxmlAcknowledgementProcessor())\r\n//\t\t.endDoTry()\r\n//\t\t.doCatch(HttpOperationFailedException.class)\r\n//\t\t\t.process(new HttpErrorHandler())\r\n\t\t;\r\n\t\t\r\n\t\t// Incoming ebXml ACK receiver route\r\n\t\t// * Receives ebXml acks (over HTTP)\r\n\t\t// * Extracts the related original message id (for correlation)\r\n\t\t// * Adds the ebXml ack to a JMS topic for later processing (by the process holding the associated transaction open)\r\n\t\tfinal Namespaces ns = new Namespaces(\"soap\", \"http://schemas.xmlsoap.org/soap/envelope/\");\r\n\t\tns.add(\"eb\", \"http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd\");\r\n\t\t\r\n\t\tfrom(\"{{spine.fromUri}}\")\r\n\t\t\t.choice()\r\n\t\t\t\t.when(header(\"SOAPAction\").isEqualTo(\"urn:oasis:names:tc:ebxml-msg:service/Acknowledgment\"))\r\n\t\t\t\t\t.setHeader(\"JMSCorrelationID\",\r\n\t\t\t\t\t\tns.xpath(\"/soap:Envelope/soap:Header/eb:Acknowledgment/eb:RefToMessageId\", String.class))\r\n\t\t\t\t\t.setHeader(Exchange.CORRELATION_ID).simple(\"${header.JMSCorrelationID}\")\r\n\t\t\t\t\t.setExchangePattern(ExchangePattern.InOnly)\r\n\t\t\t\t\t.to(\"{{spine.replyUri}}\")\r\n\t\t\t\t\t.endChoice()\r\n\t\t\t\t.otherwise()\r\n\t\t\t\t\t.log(LoggingLevel.WARN, LOGGER, \"Unsupported SOAPAction receieved: ${header.SOAPAction}\");\t\t\r\n\t}",
"public UpdateResponse add(SolrInputDocument doc) throws SolrServerException, IOException {\n return add(doc, -1);\n }",
"void createSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);",
"public static HttpSolrClient getUpdateHttpSolrClient(String core) {\n return SolrClientFactory.updateClientFactory.getClientForCore(core, null, null);\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, JSONException \n {\n \n System.out.println(\"We've reached the StartEditActiveTermDatesServlet server!\");\n \n response.setContentType(\"text/html;charset=UTF-8\");\n \n try \n { \n System.out.println(\"john has cried upon entering Sebastain\");\n \n // get active term dates\n \n String sql = \"SELECT winter.winter_term_start, winter.winter_term_end, \"\n + \"spring.spring_term_start, spring.spring_term_end, \"\n + \"summer.summer_term_start, summer.summer_term_end, \"\n + \"academic_year.academic_year \"\n + \"FROM winter, spring, summer, academic_year \"\n + \"WHERE winter.academic_year = academic_year.academic_year \"\n + \"AND spring.academic_year = academic_year.academic_year \"\n + \"AND summer.academic_year = academic_year.academic_year \"\n + \"AND academic_year.active = TRUE;\";\n \n Statement statement = DatabaseConnectionSingleton.getStatementInstance();\n \n ResultSet resultSet = statement.executeQuery(sql);\n \n resultSet.next();\n \n String winterStartUnformatted = resultSet.getString(\"winter_term_start\");\n String winterEndUnformatted = resultSet.getString(\"winter_term_end\");\n String springStartUnformatted = resultSet.getString(\"spring_term_start\");\n String springEndUnformatted = resultSet.getString(\"spring_term_end\");\n String summerStartUnformatted = resultSet.getString(\"summer_term_start\");\n String summerEndUnformatted = resultSet.getString(\"summer_term_end\");\n \n int activeYear = resultSet.getInt(\"academic_year\");\n String activeYearString = Integer.toString(activeYear);\n \n System.out.println(\"we have interacted with db\");\n \n if // ANY RESULTS ARE NULL\n (\n winterStartUnformatted == null \n || \n winterEndUnformatted == null \n ||\n springStartUnformatted == null \n ||\n springEndUnformatted == null \n ||\n summerStartUnformatted == null \n ||\n summerEndUnformatted == null \n \n )\n {\n // then send to error page\n \n System.out.println(\"attribute is null\");\n\n request.setAttribute(\"error_message\", \"Not all term dates are valid.\"\n + \" Please check there is an active year present in the database, or\"\n + \" contact your system administrator.\");\n\n // Send it on to a different View\n request.getRequestDispatcher(\"dbms/errorPage.jsp\").forward(request, response);\n \n }\n else\n {\n \n System.out.println(\"no attributes are null, loading variables\");\n \n //send to edit term dates page\n \n request.setAttribute(\"activeYearString\", activeYearString);\n \n System.out.println(\"activeYearString = \" + activeYearString);\n activeYear = Integer.parseInt(activeYearString);\n System.out.println(\"activeYear = Integer.parseInt(activeYearString); = \" + \"activeYear = \" + activeYear);\n \n String winterStart = convertDate(winterStartUnformatted);\n String winterEnd = convertDate(winterEndUnformatted);\n String springStart = convertDate(springStartUnformatted);\n String springEnd = convertDate(springEndUnformatted);\n String summerStart = convertDate(summerStartUnformatted);\n String summerEnd = convertDate(summerEndUnformatted);\n \n request.setAttribute(\"winterStart\", winterStart);\n request.setAttribute(\"winterEnd\", winterEnd);\n request.setAttribute(\"springStart\", springStart);\n request.setAttribute(\"springEnd\", springEnd);\n request.setAttribute(\"summerStart\", summerStart);\n request.setAttribute(\"summerEnd\", summerEnd);\n \n request.getRequestDispatcher(\"dbms/activeYear/editTermDates.jsp\").forward(request, response);\n \n }\n }\n catch(ServletException | SQLException e) {\n \n // Try and deal with any unhandled error here\n System.out.println(\"Error: \" + e);\n \n errorMessage = e.toString();\n \n request.setAttribute(\"error_message\", errorMessage);\n \n // Send it on to a different View\n request.getRequestDispatcher(\"dbms/errorPage.jsp\").forward(request, response);\n \n } \n \n }",
"@Before\r\n\tpublic void setUp() {\r\n\t\t//client = new HttpSolrServer(\"http://127.0.0.1:8983/solr/biblo\");\r\n\t\tclient = new HttpSolrServer(\"http://192.168.1.34:8983/solr/collection3_shard1_replica1\");\r\n\t}",
"public void initRequest() {\n repo.getData();\n }",
"public XMLStreamReader invoke(MessageContext context) {\n\t \n\t try {\n\t\t //get the soap request.\n\t XMLStreamReader reader = context.getInMessage().getXMLStreamReader();\n\t //form a DOM for the request.\n\t\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder builder = dbf.newDocumentBuilder();\n\t Document inputDoc = STAXUtils.read(builder,reader,true);\n\t String inputURI = inputDoc.getDocumentElement().getNamespaceURI();\n\t IAdmin admin;\n\t if(interfaceMappings.containsKey(inputURI)) {\n\t \t //okay get the ISearch query interface.\n\t \t admin = AdminFactory.createAdminService((String)interfaceMappings.get(inputURI));\n\t \t }else {\n\t \t\t//very old clients just might not match which must be 0.1\n\t \t\t//query interface.\n\t \t\tadmin = AdminFactory.createAdminService(\"0.1\");\n\t \t }\t \n\t \n\t return admin.Update(inputDoc);\n\t }catch(Exception e) {\n\t\t e.printStackTrace();\n\t }\n\t return null;\n }",
"@Override\n public void write(OutputStream outputStream) throws IOException {\n if (getRequest().getMethod() != Method.HEAD) {\n QueryResponseWriterUtil.writeQueryResponse(outputStream, responseWriter, solrRequest, solrResponse, contentType);\n }\n }",
"@Override\n\tpublic void init() {\n Objects.requireNonNull(mtbw, \"Freetext indexer failed to initialize temporal index, setMultiTableBatchWriter() was not set.\");\n Objects.requireNonNull(conf, \"Freetext indexer failed to initialize temporal index, setConf() was not set.\");\n try {\n\t\t\tdocTableBw = mtbw.getBatchWriter(getFreeTextDocTablename(conf));\n\t\t\ttermTableBw = mtbw.getBatchWriter(getFreeTextTermTablename(conf));\n\t\t} catch (AccumuloException | AccumuloSecurityException | TableNotFoundException e) {\n\t\t\tlogger.error(\"Unable to initialize index. Throwing Runtime Exception. \", e);\n throw new RuntimeException(e);\t\t\n }\n\t}",
"public QueryResponse(Query q) {\n this.q = q;\n this.docIDs = new HashSet<>();\n }",
"@RequestMapping(value = \"/queryrdf\", method = {RequestMethod.GET, RequestMethod.POST})\n public void queryRdf(@RequestParam(\"query\") final String query,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_QUERY_AUTH, required = false) String auth,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_CV, required = false) final String vis,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_INFER, required = false) final String infer,\n @RequestParam(value = \"nullout\", required = false) final String nullout,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_RESULT_FORMAT, required = false) final String emit,\n @RequestParam(value = \"padding\", required = false) final String padding,\n @RequestParam(value = \"callback\", required = false) final String callback,\n final HttpServletRequest request,\n final HttpServletResponse response) {\n SailRepositoryConnection conn = null;\n final Thread queryThread = Thread.currentThread();\n auth = StringUtils.arrayToCommaDelimitedString(provider.getUserAuths(request));\n final Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n\n @Override\n public void run() {\n log.debug(\"interrupting\");\n queryThread.interrupt();\n\n }\n }, QUERY_TIME_OUT_SECONDS * 1000);\n\n try {\n final ServletOutputStream os = response.getOutputStream();\n conn = repository.getConnection();\n\n final Boolean isBlankQuery = StringUtils.isEmpty(query);\n final ParsedOperation operation = QueryParserUtil.parseOperation(QueryLanguage.SPARQL, query, null);\n\n final Boolean requestedCallback = !StringUtils.isEmpty(callback);\n final Boolean requestedFormat = !StringUtils.isEmpty(emit);\n\n if (!isBlankQuery) {\n if (operation instanceof ParsedGraphQuery) {\n // Perform Graph Query\n final RDFHandler handler = new RDFXMLWriter(os);\n response.setContentType(\"text/xml\");\n performGraphQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedTupleQuery) {\n // Perform Tuple Query\n TupleQueryResultHandler handler;\n\n if (requestedFormat && emit.equalsIgnoreCase(\"json\")) {\n handler = new SPARQLResultsJSONWriter(os);\n response.setContentType(\"application/json\");\n } else {\n handler = new SPARQLResultsXMLWriter(os);\n response.setContentType(\"text/xml\");\n }\n\n performQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedUpdate) {\n // Perform Update Query\n performUpdate(query, conn, os, infer, vis);\n } else {\n throw new MalformedQueryException(\"Cannot process query. Query type not supported.\");\n }\n }\n\n if (requestedCallback) {\n os.print(\")\");\n }\n } catch (final Exception e) {\n log.error(\"Error running query\", e);\n throw new RuntimeException(e);\n } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (final RepositoryException e) {\n log.error(\"Error closing connection\", e);\n }\n }\n }\n\n timer.cancel();\n }",
"protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)\n\t\t\tthrows ServletException, IOException {\n\n\t\t// Initialize dependencies\n\t\tthis.initDependencies();\n\n\t\t// Initialize request scoped data\n\t\tthis.requestInitializer.initRequest(request, response);\n\n\t\tRequestWrapper requestWrapper = this.requestInitializer.createRequestWrapper(request, response);\n\t\tResponseWrapper responseWrapper = this.requestInitializer.createResponseWrapper(request, response);\n\n\t\tHttpServletRequest multipartProcessedRequest = requestWrapper;\n\n\t\tboolean isMultipartProcessed = false;\n\n\t\ttry {\n\n\t\t\tboolean legal = false;\n\t\t\tboolean isMultipartException = false;\n\n\t\t\tif (this.isMultipartContent(request.getContentType())) {\n\n\t\t\t\trequestWrapper.setMultipart(true);\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (this.multipartConfig == null) {\n\t\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\t\"No 'multipartConfig' configured. It is required for multipart requests.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tmultipartProcessedRequest = this.multipartConfig.handleMultipartRequest(requestWrapper,\n\t\t\t\t\t\t\tsuper.getServletContext());\n\t\t\t\t\tisMultipartProcessed = true;\n\n\t\t\t\t}\n\t\t\t\tcatch (HdivMultipartException e) {\n\t\t\t\t\trequest.setAttribute(IMultipartConfig.FILEUPLOAD_EXCEPTION, e);\n\t\t\t\t\tisMultipartException = true;\n\t\t\t\t\tlegal = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tValidatorHelperResult result = null;\n\t\t\tif (!isMultipartException) {\n\t\t\t\tresult = this.validationHelper.validate(multipartProcessedRequest);\n\t\t\t\tlegal = result.isValid();\n\n\t\t\t\t// Store validation result in request\n\t\t\t\trequest.setAttribute(Constants.VALIDATOR_HELPER_RESULT_NAME, result);\n\t\t\t}\n\n\t\t\t// All errors, integrity and editable validation\n\t\t\tList<ValidatorError> errors = result == null ? null : result.getErrors();\n\n\t\t\tboolean hasEditableError = false;\n\t\t\tif (errors != null && !errors.isEmpty()) {\n\t\t\t\t// Complete error data\n\t\t\t\tthis.completeErrorData(multipartProcessedRequest, errors);\n\n\t\t\t\t// Log the errors\n\t\t\t\tthis.logValidationErrors(multipartProcessedRequest, errors);\n\n\t\t\t\thasEditableError = this.processEditableValidationErrors(multipartProcessedRequest, errors);\n\t\t\t}\n\n\t\t\tif (legal || this.hdivConfig.isDebugMode()\n\t\t\t\t\t|| (hasEditableError && !this.hdivConfig.isShowErrorPageOnEditableValidation())) {\n\n\t\t\t\tprocessRequest(multipartProcessedRequest, responseWrapper, filterChain);\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\t// Call to ValidatorErrorHandler\n\t\t\t\tthis.errorHandler.handleValidatorError(multipartProcessedRequest, responseWrapper, errors);\n\t\t\t}\n\n\t\t}\n\t\tcatch (HDIVException e) {\n\t\t\tif (log.isErrorEnabled()) {\n\t\t\t\tlog.error(\"Exception in request validation:\");\n\t\t\t\tlog.error(\"Message: \" + e.getMessage());\n\n\t\t\t\tStringBuffer buffer = new StringBuffer();\n\t\t\t\tStackTraceElement[] trace = e.getStackTrace();\n\t\t\t\tfor (int i = 0; i < trace.length; i++) {\n\t\t\t\t\tbuffer.append(\"\\tat \" + trace[i] + System.getProperty(\"line.separator\"));\n\t\t\t\t}\n\t\t\t\tlog.error(\"StackTrace: \" + buffer.toString());\n\t\t\t\tlog.error(\"Cause: \" + e.getCause());\n\t\t\t\tlog.error(\"Exception: \" + e.toString());\n\t\t\t}\n\t\t\t// Show error page\n\t\t\tif (!this.hdivConfig.isDebugMode()) {\n\t\t\t\tList<ValidatorError> errors = Collections.singletonList(new ValidatorError(\n\t\t\t\t\t\tHDIVErrorCodes.INTERNAL_ERROR));\n\t\t\t\tthis.errorHandler.handleValidatorError(multipartProcessedRequest, responseWrapper, errors);\n\t\t\t}\n\t\t}\n\t\tfinally {\n\n\t\t\tif (isMultipartProcessed) {\n\t\t\t\t// Cleanup multipart\n\t\t\t\tthis.multipartConfig.cleanupMultipart(multipartProcessedRequest);\n\t\t\t}\n\n\t\t\t// Destroy request scoped data\n\t\t\tthis.requestInitializer.endRequest(multipartProcessedRequest, responseWrapper);\n\t\t}\n\t}",
"protected void handlePostExecution(Logger log) {\n \n handleException(log);\n \n // TODO: should status=0 (success?) be left as-is in the response header?\n SolrCore.postDecorateResponse(null, solrRequest, solrResponse);\n addDeprecatedWarning();\n\n if (log.isInfoEnabled() && solrResponse.getToLog().size() > 0) {\n log.info(solrResponse.getToLogAsString(solrCore.getLogId()));\n }\n }",
"public SolrRecordWriter(final TaskAttemptContext ctx, String address) {\n\t\t\ttry {\n\t\t\t\tthis.ctx = ctx;\n\t\t\t\tserver = new ConcurrentUpdateSolrClient(address, 10000, 10);\n//\t\t\t\tserver=new HttpSolrClient(address);\n\t\t\t\texec.scheduleWithFixedDelay(new Runnable(){\n\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\tctx.progress();\n\t\t\t\t\t}\n\t\t\t\t}, 1000, 1000, TimeUnit.MILLISECONDS);\n\t\t\t} catch (Exception e) {\n\t\t\t\tRuntimeException exc = new RuntimeException(e.toString(), e);\n\t\t\t\texc.setStackTrace(e.getStackTrace());\n\t\t\t\tthrow exc;\n\t\t\t}\n\t\t}",
"@Test\n public void testFilter() throws Exception {\n for (int i=0; i<10; i++) {\n assertJQ(req(\"q\",\"*:* \"+ i, \"fq\",\"filter(just_to_clear_the_cache) filter(id:10000\" + i + \") filter(id:10001\" + i + \")\")\n ,\"/response/numFound==0\"\n );\n }\n assertU(adoc(\"id\",\"777\"));\n delI(\"777\");\n assertU(commit()); // arg... commit no longer \"commits\" unless there has been a change.\n\n\n final SolrInfoMBean filterCacheStats\n = h.getCore().getInfoRegistry().get(\"filterCache\");\n assertNotNull(filterCacheStats);\n final SolrInfoMBean queryCacheStats\n = h.getCore().getInfoRegistry().get(\"queryResultCache\");\n\n assertNotNull(queryCacheStats);\n\n\n long inserts = (Long) filterCacheStats.getStatistics().get(\"inserts\");\n long hits = (Long) filterCacheStats.getStatistics().get(\"hits\");\n\n assertJQ(req(\"q\",\"doesnotexist filter(id:1) filter(qqq_s:X) filter(abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n inserts+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n assertJQ(req(\"q\",\"doesnotexist2 filter(id:1) filter(qqq_s:X) filter(abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // make sure normal \"fq\" parameters also hit the cache the same way\n assertJQ(req(\"q\",\"doesnotexist3\", \"fq\",\"id:1\", \"fq\", \"qqq_s:X\", \"fq\", \"abcdefg\")\n ,\"/response/numFound==0\"\n );\n\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // try a query deeply nested in a FQ\n assertJQ(req(\"q\",\"*:* doesnotexist4\", \"fq\",\"(id:* +(filter(id:1) filter(qqq_s:X) filter(abcdefg)) )\")\n ,\"/response/numFound==2\"\n );\n\n inserts+=1; // +1 for top level fq\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // retry the complex FQ and make sure hashCode/equals works as expected w/ filter queries\n assertJQ(req(\"q\",\"*:* doesnotexist5\", \"fq\",\"(id:* +(filter(id:1) filter(qqq_s:X) filter(abcdefg)) )\")\n ,\"/response/numFound==2\"\n );\n\n hits+=1; // top-level fq should have been found.\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n\n // try nested filter with multiple top-level args (i.e. a boolean query)\n assertJQ(req(\"q\",\"*:* +filter(id:1 filter(qqq_s:X) abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n hits+=1; // the inner filter\n inserts+=1; // the outer filter\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // test the score for a filter, and that default score is 0\n assertJQ(req(\"q\",\"+filter(*:*) +filter(id:1)\", \"fl\",\"id,score\", \"sort\",\"id asc\")\n ,\"/response/docs/[0]/score==0.0\"\n );\n\n assertJQ(req(\"q\",\"+filter(*:*)^=10 +filter(id:1)\", \"fl\",\"id,score\", \"sort\",\"id asc\")\n ,\"/response/docs/[0]/score==10.0\" \n );\n\n }",
"@Test\r\n\tpublic void indexOneLater() throws Exception {\n\t\tSolrInputDocument sd = new SolrInputDocument();\r\n\t\tsd.addField(\"id\", \"addone\");\r\n\t\tsd.addField(\"channelid\", \"9999\");\r\n\t\tsd.addField(\"topictree\", \"tptree\");\r\n\t\tsd.addField(\"topicid\", \"tpid\");\r\n\t\tsd.addField(\"dkeys\", \"测试\");\r\n\t\tsd.addField(\"title\", \"junit 标题\");\r\n\t\tsd.addField(\"ptime\", new Date());\r\n\t\tsd.addField(\"url\", \"/junit/test/com\");\r\n//\t\t\tSystem.out.println(doc);\r\n//\t\tbuffer.add(sd);\r\n\t\tdocIndexer.addDocumentAndCommitLater(sd, 1);\r\n\t}",
"void updateSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);",
"private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}",
"public SolrDocument getById(String id) throws SolrServerException, IOException {\n return getById(id, null);\n }",
"@Override\n public void addBody(Body body) throws SAXException, WingException, SQLException, IOException, AuthorizeException, ProcessingException {\n DSpaceObject dso = HandleUtil.obtainHandle(objectModel);\n Request request = ObjectModelHelper.getRequest(objectModel);\n String selectedTimeFilter = request.getParameter(\"time_filter\");\n\n StringBuilder actionPath = new StringBuilder().append(request.getContextPath());\n if(dso != null){\n actionPath.append(\"/handle/\").append(dso.getHandle());\n }\n actionPath.append(\"/search-statistics\");\n\n Division mainDivision = body.addInteractiveDivision(\"search-statistics\", actionPath.toString(), Division.METHOD_POST, null);\n if(dso != null){\n mainDivision.setHead(T_search_head_dso.parameterize(dso.getName()));\n }else{\n mainDivision.setHead(T_search_head);\n }\n try {\n //Add the time filter box\n Division searchTermsDivision = mainDivision.addDivision(\"search-terms\");\n searchTermsDivision.setHead(T_search_terms_head);\n addTimeFilter(searchTermsDivision);\n\n //Retrieve the optional time filter\n StatisticsSolrDateFilter dateFilter = getDateFilter(selectedTimeFilter);\n\n\n StatisticsTable statisticsTable = new StatisticsTable(new StatisticsDataSearches(dso));\n\n DatasetSearchGenerator queryGenerator = new DatasetSearchGenerator();\n queryGenerator.setType(\"query\");\n queryGenerator.setMax(10);\n queryGenerator.setMode(DatasetSearchGenerator.Mode.SEARCH_OVERVIEW);\n queryGenerator.setPercentage(true);\n queryGenerator.setRetrievePageViews(true);\n statisticsTable.addDatasetGenerator(queryGenerator);\n if(dateFilter != null){\n statisticsTable.addFilter(dateFilter);\n }\n\n addDisplayTable(searchTermsDivision, statisticsTable, true, null);\n\n\n Division totalDivision = mainDivision.addDivision(\"search-total\");\n totalDivision.setHead(T_search_total_head);\n statisticsTable = new StatisticsTable(new StatisticsDataSearches(dso));\n\n queryGenerator = new DatasetSearchGenerator();\n queryGenerator.setMode(DatasetSearchGenerator.Mode.SEARCH_OVERVIEW_TOTAL);\n queryGenerator.setPercentage(true);\n queryGenerator.setRetrievePageViews(true);\n statisticsTable.addDatasetGenerator(queryGenerator);\n if(dateFilter != null){\n statisticsTable.addFilter(dateFilter);\n }\n\n addDisplayTable(totalDivision, statisticsTable, false, null);\n } catch (Exception e) {\n mainDivision.addPara().addContent(T_retrieval_error);\n }\n }",
"public UpdateResponse rollback() throws SolrServerException, IOException {\n return new UpdateRequest().rollback().process( this );\n }",
"public UpdateResponse addBean(Object obj) throws IOException, SolrServerException {\n return addBean(obj, -1);\n }",
"public QueryResponse queryAndStreamResponse(SolrParams params, StreamingResponseCallback callback) throws SolrServerException, IOException\n {\n ResponseParser parser = new StreamingBinaryResponseParser(callback);\n QueryRequest req = new QueryRequest(params);\n req.setStreamingResponseCallback(callback);\n req.setResponseParser(parser);\n return req.process(this);\n }",
"@Test\n public void testFusionOutputFormatTest() throws Exception {\n stubFor(post(urlEqualTo(fusionPipelineUrlWithoutHostAndPort)).willReturn(aResponse().withStatus(200)));\n\n // mock out the Session API\n stubFor(post(urlEqualTo(\"/api/session?realmName=\" + fusionRealm)).willReturn(aResponse().withStatus(200)));\n\n Configuration conf = new Configuration();\n conf.set(FUSION_INDEX_ENDPOINT, fusionUrl);\n conf.set(FUSION_USER, fusionUser);\n conf.set(FUSION_PASS, fusionPass);\n conf.set(FUSION_REALM, fusionRealm);\n\n conf.set(FUSION_DATASOURCE, \"fusion_data_source\");\n conf.set(FUSION_DATASOURCE_PIPELINE, \"fusion_pipeline\");\n conf.set(FUSION_DATASOURCE_TYPE, \"fusion_type\");\n conf.set(FUSION_BATCHID, \"fusion_batch\");\n conf.set(LucidWorksWriter.SOLR_COLLECTION, \"coll\");\n\n FusionOutputFormat outputFormat = new FusionOutputFormat();\n RecordWriter<Text, LWDocumentWritable> writer =\n outputFormat.getRecordWriter(null, new JobConf(conf), \"test\", Reporter.NULL);\n writer.write(new Text(\"text\"), LucidWorksWriterTest\n .createLWDocumentWritable(\"id-1\", \"field-1\", \"field-value-1\", \"field-2\", \"field-value-2\", \"field-3\",\n \"field-value-3\"));\n writer.close(Reporter.NULL);\n\n String docsSentToFusion = null;\n for (LoggedRequest req : loggedRequests) {\n String body = req.getBodyAsString().trim();\n if (body.startsWith(\"[\") && body.endsWith(\"]\")) {\n docsSentToFusion = body;\n break;\n }\n }\n\n assertNotNull(\"Expected 1 doc to have been written by FusionOutputFormat\", docsSentToFusion);\n\n ObjectMapper objectMapper = new ObjectMapper();\n List docs = objectMapper.readValue(docsSentToFusion, List.class);\n assertTrue(docs.size() == 1);\n Map<String, Object> doc = (Map<String, Object>) docs.get(0);\n assertNotNull(doc);\n assertEquals(doc.get(\"id\"), \"id-1\");\n List<Map<String, Object>> fields = (List<Map<String, Object>>) doc.get(\"fields\");\n assertTrue(!fields.isEmpty());\n\n String[] expectedFields = new String[]{\"field-1\", \"field-2\", \"field-3\", \"_hadoop_tdt\", DATA_SOURCE_FIELD,\n DATA_SOURCE_COLLECTION_FIELD, DATA_SOURCE_PIPELINE_FIELD, BATCH_ID_FIELD, DATA_SOURCE_TYPE_FIELD};\n for (String f : expectedFields) {\n boolean foundIt = false;\n for (Map<String, Object> map : fields) {\n if (f.equals(map.get(\"name\"))) {\n foundIt = true;\n break;\n }\n }\n if (!foundIt) {\n fail(\"Expected field \" + f + \" not found in doc sent to Fusion!\");\n }\n }\n }",
"public static HttpSolrClient getAdminHttpSolrClient(String core, String solrUsername, String solrPassword) {\n return SolrClientFactory.adminClientFactory.getClientForCore(core, solrUsername, solrPassword);\n }",
"public void doRequest( HttpServletRequest rqs, HttpServletResponse rsp ) throws ServletException, IOException {\n\n StopWatch sw = new StopWatch();\n sw.reset();\n\n sw.start( rqs.getRequestURI() );\n\n Core core = (Core) getServletContext().getAttribute( \"core\" );\n\n logger.debug( \"Query : {}\", rqs.getQueryString() );\n logger.debug( \"URI : {}\", rqs.getRequestURI() );\n logger.debug( \"METHOD : {}\", rqs.getMethod() );\n logger.debug( \"CORE : {}\", core );\n\n /* Instantiating request and response */\n Request request = new Request( rqs, core.getDefaultTemplate() );\n request.setLocaleFromCookie( \"language\" );\n\n Response response = new Response( rsp );\n response.setCharacterEncoding( \"UTF-8\" );\n\n request.setStopWatch( sw );\n\n logger.debug( \"[Parameters] {}\", rqs.getParameterMap() );\n\n /* Instantiating context */\n VelocityContext vc = new VelocityContext();\n vc.put( \"title\", \"\" );\n\n request.setContext( vc );\n request.getContext().put( \"request\", request );\n request.setRequestParts( rqs.getRequestURI().split( \"/\" ) );\n logger.debug( \"------ {} -----\", Arrays.asList( request.getRequestParts() ) );\n\n vc.put( \"currentUrl\", rqs.getRequestURI() );\n\n request.setUser( core.getAnonymousUser() );\n request.setTheme( core.getDefaultTheme() );\n\n request.getStopWatch().stop( rqs.getRequestURI() );\n\n WebResponse r = null;\n if(request.getRequestParts().length > 0 && request.getRequestParts()[0].equalsIgnoreCase(\"static\")) {\n \ttry {\n\t\t\t\tr = ((Autonomous)core.getRoot().getChild(\"static\")).autonomize(request);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tthrow new ServletException(e);\n\t\t\t}\n } else {\n request.getStopWatch().start( \"Authentication\" );\n\n logger.debug( \"THE USER: {}\", request.getUser() );\n\n logger.debug( \"AUTHENTICATING\" );\n try {\n\t core.getAuthentication().authenticate( request, response );\n\t\t\t\n\t\t\t logger.debug( \"THE USER: {}\", request.getUser() );\n\t\t\t request.getStopWatch().stop( \"Getting user\", true );\n\t\t\t\n\t\t\t request.getStopWatch().stop( \"Authentication\" );\n\t\t\t request.getStopWatch().start( \"Render page\" );\n\t\t\n\t\t // Render the page\n\t\t Runner runner = core.render( request );\n\t\t runner.injectContext(request);\n\t\t r = runner.run();\n\t\t request.getUser().setSeen();\n\t\t } catch( CoreException e ) {\n\t\t e.printStackTrace();\n\t\t /*\n\t\t if( response.isRenderingMain() ) {\n\t\t response.renderError( request, e );\n\t\t } else {\n\t\t response.sendError( e.getCode(), e.getMessage() );\n\t\t }\n\t\t */\n\t\t r = new ErrorResponse(e).badRequest();\n\t\t } catch( Throwable e ) {\n\t\t logger.error( \"CAUGHT ERROR\" );\n\t\t e.printStackTrace();\n\t\t generateException( request, rsp.getWriter(), e, e.getMessage() );\n\t\t }\n }\n \n r.respond(request, response);\n\n sw.stop();\n logger.info( \"Request response: {}\", response.getResponse() );\n\n // Render the bottom\n /*\n if( response.isRenderingMain() ) {\n try {\n vc.put( \"seconds\", sw.getSeconds() );\n response.getWriter().print( core.getTemplateManager().getRenderer( request ).render( \"org/seventyeight/web/bottomPage.vm\" ) );\n } catch( TemplateException e ) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n */\n\n //logger.info( sw.print( 1000 ) );\n System.out.println( sw.print( 10000 ) );\n }",
"private boolean importSolrConfigData() {\n\t\treturn importData(\"/solr/solr.impex\");\n\t}",
"void commit() throws SolrServerException, IOException;",
"private Request() {\n initFields();\n }",
"@Override\r\n JSONObject doPerform(HttpServletRequest req, HttpServletResponse response) throws Exception {\r\n JSONObject jo = new JSONObject();\r\n try {\r\n JSONObject json;\r\n if (req.getMethod().equals(\"POST\")) {\r\n String js = IOUtils.toString(req.getInputStream(), \"UTF-8\");\r\n json = new JSONObject(js);\r\n } else {\r\n json = new JSONObject(req.getParameter(\"json\"));\r\n }\r\n OfferRecord or = OfferRecord.fromJSON(json);\r\n JSONObject ret = new JSONObject(SolrIndexerCommiter.indexJSON(new JSONObject(JSON.toJSONString(or)), \"offersCore\"));\r\n\r\n// Indexer indexer = new Indexer();\r\n// indexer.indexWanted(or.doc_code,\r\n// UsersController.toKnihovna(req).getCode(),\r\n// or.chci);\r\n return ret;\r\n\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n jo.put(\"error\", ex.toString());\r\n }\r\n return jo;\r\n\r\n }",
"public void initialize(RestRequestTestData rowData) throws IOException {\n\t\t\n\t\t\n\t\tbaseUrl\t\t = (rowData.getBaseURL()!= null)?rowData.getBaseURL():\"\";\n\t\trequestURL = baseUrl + rowData.getApi();\n\t\theaderKey = (rowData.getHeader_Key()!= null)?rowData.getHeader_Key():\"\";\n\t\theaderValue = (rowData.getHeader_Value()!= null)?rowData.getHeader_Value():\"\";\n\t\trequestName = (rowData.getRequest_Name()!= null)?rowData.getRequest_Name():\"\";\n\t\trequestParam = (rowData.getRequest_Parameters()!= null)?rowData.getRequest_Parameters():\"\";\n\t\texpectedResponseCode = (rowData.getExpected_Response_Code()!= null)?rowData.getExpected_Response_Code():\"\";\n\t\trequestMethod = (rowData.getRequest_Method()!= null)?rowData.getRequest_Method():\"\";\n\t\tcontentType = (rowData.getContentType()!= null)?rowData.getContentType():\"\";\n\t\trequestBody = generateValidRequestBody(requestName, requestParam);\n\t\terrorName = (rowData.getError_Name()!= null)?rowData.getError_Name():\"\";\n\t\tresponseKeySet = (rowData.getResponse_Keys()!= null)?rowData.getResponse_Keys():\"\";\n\t\turlParameters = (rowData.getUrl_Parameters()!= null)?rowData.getUrl_Parameters():\"\";\n\t\trequestValues = (rowData.getRequest_Values()!= null)?rowData.getRequest_Values():\"\";\n\t\tfileUploadSrcPath = (rowData.getFile_Src_Path()!= null)?rowData.getFile_Src_Path():\"\";\n\t\ttcid \t\t\t\t = rowData.getTcid().trim();\n\t\t\n\t\tif(rowData.getAuth_Service().trim().equalsIgnoreCase(\"YES\")){\n\t\t\tisLoginRequired = true;\n\t\t}\n\t\telse{\n\t\t\tisLoginRequired = false;\n\t\t}\n\t}",
"public static SolrDocumentList getDocsFromFieldedQuery(SolrServer solrServer, String solrFldName, String solrFldVal, String requestHandlerName)\n\t{\n\t SolrQuery query = new SolrQuery();\n\t query.setQuery(solrFldName + \":\" + solrFldVal);\n\t query.setQueryType(requestHandlerName);\n\t query.setFacet(false);\n\t try\n\t {\n\t QueryResponse response = solrServer.query(query);\n\t return response.getResults();\n\t }\n\t catch (SolrServerException e)\n\t {\n\t e.printStackTrace();\n\t }\n\n\t return null;\n\t}",
"public OldFeedRequest(HttpServletRequest request) throws Exception {\n \n // parse the request object and figure out what we've got\n mLogger.debug(\"parsing url \"+request.getRequestURL());\n \n String servlet = request.getServletPath();\n String pathInfo = request.getPathInfo();\n \n // what servlet is our destination?\n if(servlet != null) {\n // strip off the leading slash\n servlet = servlet.substring(1);\n \n if(feedServlets.contains(servlet)) {\n this.context = \"weblog\";\n this.flavor = servlet;\n } else {\n // not a request to a feed servlet\n throw new Exception(\"not a weblog feed request, \"+request.getRequestURL());\n }\n } else {\n throw new Exception(\"not a weblog feed request, \"+request.getRequestURL());\n }\n \n // parse the path info\n if(pathInfo != null && pathInfo.trim().length() > 1) {\n // strip off the leading slash\n pathInfo = pathInfo.substring(1);\n String[] pathElements = pathInfo.split(\"/\");\n \n if(pathElements[0].length() > 0) {\n this.weblogHandle = pathElements[0];\n }\n \n } else {\n \n // no path info means this was a non-weblog request\n // we handle a few exceptions for this which include\n // /rss - main rss feed\n // /atom - main atom feed\n // /flavor - main flavor feed\n \n this.context = \"main\";\n }\n \n /* \n * parse request parameters\n *\n * the only params we currently care about are:\n * flavor - defines the feed type\n * catname - specifies a weblog category\n * path - specifies a weblog category\n * excerpts - specifies the feed should only include excerpts\n *\n */\n if(request.getParameter(\"flavor\") != null) {\n this.flavor = request.getParameter(\"flavor\");\n }\n \n if(request.getParameter(\"path\") != null) {\n this.weblogCategory = request.getParameter(\"path\");\n }\n \n if(request.getParameter(\"catname\") != null) {\n this.weblogCategory = request.getParameter(\"catname\");\n }\n \n if(request.getParameter(\"excerpts\") != null) {\n this.excerpts = Boolean.valueOf(request.getParameter(\"excerpts\")).booleanValue();\n }\n \n // one small final adjustment.\n // if our flavor is \"flavor\" then that means someone is just getting\n // the default flavor, which is rss, so let's set that\n if(this.flavor.equals(\"flavor\")) {\n this.flavor = \"rss\";\n }\n \n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.setHeader(\"Access-Control-Allow-Origin\", \"*\");\n response.setHeader(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, DELETE\");\n response.setHeader(\"Access-Control-Max-Age\", \"3600\");\n response.setHeader(\"Access-Control-Allow-Headers\", \"x-requested-with, X-Auth-Token, Content-Type\");\n response.setContentType(\"application/json\");\n String queryRequest = request.getParameter(\"get\");\n String result = null;\n if(queryRequest.equals(\"query1\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"LOCATION\");\n }\n else if(queryRequest.equals(\"query2\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"CRAZE\");\n }\n else if(queryRequest.equals(\"query3\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"LANGUAGE\");\n }\n else if(queryRequest.equals(\"query4\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"SOURCE\");\n }\n else if(queryRequest.equals(\"query5\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"CELEBRITIES\");\n }\n else if(queryRequest.equals(\"query6\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"DAY\");\n }\n else if(queryRequest.equals(\"query7\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"STATS\");\n }\n else if(queryRequest.equals(\"query8\")){\n SparkJava obj = new SparkJava();\n result = obj.QueryExecution(\"TIMEZONE\");\n }\n else{\n result = \"Query is not valid\";\n }\n// try {\n// SparkJava obj = new SparkJava();\n// result = obj.QueryExecution();\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n\n if(result!= null ){\n response.getWriter().write(result);\n }\n else\n {\n response.getWriter().write(\"No data found\");\n }\n }",
"public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException {\n return optimize(waitFlush, waitSearcher, 1);\n }",
"List<SolrSystemDTO> showAllSolrSystems(UserDTO userDTO);",
"@Override\n protected final void parseRequest(final HttpServletRequest request, HttpServletResponse response) {\n\n parsePath(request);\n\n LOGGER.warning(\"[REST]: \" + request.getMethod() + \"|\" + apiName + \"/\" + resourceName + \"|\" + request.getHeader(\"Current-Page\"));\n\n // Fixes BS-400. This is ugly.\n I18n.getInstance();\n\n api = APIs.get(apiName, resourceName);\n api.setCaller(this);\n\n super.parseRequest(request, response);\n\n }",
"private int selectSolr()\n {\n //Select the endpoint with the least amount of load\n //The start index is randomized to reduce bias to nodes earlier\n //in the list.\n int minIndex = -1;\n int minOutstanding = Integer.MAX_VALUE;\n int startIndex = ThreadLocalRandom.current().nextInt(outstandingRequests.length());\n int loopEnd = outstandingRequests.length() + startIndex;\n for (int ii = startIndex; ii < loopEnd; ii++)\n {\n int index = ii % outstandingRequests.length();\n int outstanding = outstandingRequests.get(index);\n if (outstanding < minOutstanding)\n {\n minIndex = index;\n minOutstanding = outstanding;\n }\n }\n\n return minIndex;\n }",
"void setQueryRequest(com.exacttarget.wsdl.partnerapi.QueryRequest queryRequest);",
"public Document executeServiceRequest(MessageContext msgCtx, String requestURI, boolean debugMode) throws IOException, ToolboxException {\n\n Element soapRequestElement = null;\n try {\n soapRequestElement = XMLUtils.toDOM(msgCtx.getEnvelope());\n\n } catch (Exception ex) {\n this.logger.error(\"Error while converting SOAP envelope from OM to DOM\", ex);\n throw new ToolboxException(\"Error while retrieving SOAP envelope, impossible to execute the service request.\");\n }\n\n String operationName = Toolbox.getOperationName(msgCtx);\n\n return executeServiceRequest(operationName, soapRequestElement.getOwnerDocument(), requestURI, debugMode);\n }",
"public void init() throws Exception {\n if (\"local\".equalsIgnoreCase(cluster.provisioningMethod)) {\n zookeeper = new LocalZookeeper();\n int initValue = zookeeper.start();\n if (initValue != 0) {\n log.error(\"Failed to start Zookeeper!\");\n throw new RuntimeException(\"Failed to start Zookeeper!\");\n }\n\n ExecutorService executor = Executors.newFixedThreadPool(1, new ThreadFactoryBuilder().setNameFormat(\"nodestarter-threadpool\").build()); \n \t\t //Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()/2+1, new ThreadFactoryBuilder().setNameFormat(\"nodestarter-threadpool\").build()); \n\n int basePort = Util.getFreePort(cluster.numSolrNodes);\n\n for (int i = 1; i <= cluster.numSolrNodes; i++) {\n \t int nodeIndex = i;\n \t Callable c = () -> {\n \t\t SolrNode node = new LocalSolrNode(solrPackagePath, nodeIndex, String.valueOf(basePort + nodeIndex - 1), cluster.startupParams, cluster.startupParamsOverrides, zookeeper);\n \t\t \n \t\t try {\n\t \t\t node.init();\n\t \t\t node.start();\n\t \t\t nodes.add(node);\n\t \t\t \n\t \t\t log.info(\"Nodes started: \"+nodes.size());\n\t \t\t \n\t \t\t //try (HttpSolrClient client = new HttpSolrClient.Builder(node.getBaseUrl()).build();) {\n\t \t\t\t //log.info(\"Health check: \"+ new HealthCheckRequest().process(client) + \", Nodes started: \"+nodes.size());\n\t \t\t //} catch (Exception ex) {\n\t \t\t\t// log.error(\"Problem starting node: \"+node.getBaseUrl());\n\t \t\t\t //throw new RuntimeException(\"Problem starting node: \"+node.getBaseUrl());\n\t \t\t //}\n\t \t\t return node;\n \t\t } catch (Exception ex) {\n \t\t\t ex.printStackTrace();\n \t\t\t log.error(\"Problem starting node: \"+node.getBaseUrl());\n \t\t\t return null;\n \t\t }\n \t };\n \t executor.submit(c);\n }\n \n executor.shutdown();\n executor.awaitTermination(1, TimeUnit.HOURS);\n\n log.info(\"Looking for healthy nodes...\");\n List<SolrNode> healthyNodes = new ArrayList<>();\n for (SolrNode node: nodes) {\n \t\ttry (HttpSolrClient client = new HttpSolrClient.Builder(node.getBaseUrl().substring(0, node.getBaseUrl().length()-1)).build();) {\n \t\t\tHealthCheckRequest req = new HealthCheckRequest();\n \t\t\tHealthCheckResponse rsp;\n \t\t\ttry {\n \t\t\t\trsp = req.process(client);\n \t\t\t} catch (Exception ex) {\n \t\t\t\tThread.sleep(100);\n \t\t\t\trsp = req.process(client);\n \t\t\t}\n \t\t\tif (rsp.getNodeStatus().equalsIgnoreCase(\"ok\") == false) {\n \t\t\t\tlog.error(\"Couldn't start node: \"+node.getBaseUrl());\n \t\t\t\tthrow new RuntimeException(\"Couldn't start node: \"+node.getBaseUrl());\n \t\t\t} else {\n \t\t\t\thealthyNodes.add(node);\n \t\t\t}\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\tlog.error(\"Problem starting node: \"+node.getBaseUrl());\n \t\t}\n }\n \n this.nodes = healthyNodes;\n log.info(\"Healthy nodes: \"+healthyNodes.size());\n \n try (CloudSolrClient client = new CloudSolrClient.Builder().withZkHost(getZookeeperUrl()).build();) {\n\t log.info(\"Cluster state: \" + client.getClusterStateProvider().getClusterState());\n\t log.info(\"Overseer: \" + client.request(new OverseerStatus()));\n }\n\n \n } else if (\"terraform-gcp\".equalsIgnoreCase(cluster.provisioningMethod)) {\n \tSystem.out.println(\"Solr nodes: \"+getSolrNodesFromTFState());\n \tSystem.out.println(\"ZK node: \"+getZkNodeFromTFState());\n \tzookeeper = new GenericZookeeper(getZkNodeFromTFState());\n \tfor (String host: getSolrNodesFromTFState()) {\n \t\tnodes.add(new GenericSolrNode(host, cluster.terraformGCPConfig.get(\"user\").toString()));\n \t}\n } else if (\"vagrant\".equalsIgnoreCase(cluster.provisioningMethod)) {\n \tSystem.out.println(\"Solr nodes: \"+getSolrNodesFromVagrant());\n \tSystem.out.println(\"ZK node: \"+getZkNodeFromVagrant());\n \tzookeeper = new GenericZookeeper(getZkNodeFromVagrant());\n \tfor (String host: getSolrNodesFromVagrant()) {\n \t\tnodes.add(new GenericSolrNode(host, null)); // TODO fix username for vagrant\n \t}\n } else if (\"external\".equalsIgnoreCase(cluster.provisioningMethod)) {\n log.info(\"ZK node: \" + cluster.externalSolrConfig.zkHost);\n String[] tokens = cluster.externalSolrConfig.zkHost.split(\":\");\n zookeeper = new GenericZookeeper(tokens[0], tokens.length > 1 ? Integer.parseInt(tokens[1]) : null, cluster.externalSolrConfig.zkAdminPort, cluster.externalSolrConfig.zkChroot);\n\n try (CloudSolrClient client = new CloudSolrClient.Builder().withZkHost(cluster.externalSolrConfig.zkHost).withZkChroot(cluster.externalSolrConfig.zkChroot).build()) {\n for (String liveNode : client.getClusterStateProvider().getLiveNodes()) {\n nodes.add(new ExternalSolrNode(\n liveNode.split(\"_solr\")[0].split(\":\")[0],\n Integer.valueOf(liveNode.split(\"_solr\")[0].split(\":\")[1]),\n cluster.externalSolrConfig.sshUserName,\n cluster.externalSolrConfig.restartScript));\n }\n List<SolrNode> dataNodes = getExternalDataNodes(client).stream().map(dataNode -> new ExternalSolrNode(\n dataNode.split(\"_solr\")[0].split(\":\")[0],\n Integer.valueOf(dataNode.split(\"_solr\")[0].split(\":\")[1]),\n cluster.externalSolrConfig.sshUserName,\n cluster.externalSolrConfig.restartScript)).collect(Collectors.toList());\n if (!dataNodes.isEmpty()) {\n nodesByRole.put(NodeRole.DATA, dataNodes);\n }\n List<SolrNode> queryNodes = getExternalQueryNodes(client).stream().map(queryNode -> new ExternalSolrNode(\n queryNode.split(\"_solr\")[0].split(\":\")[0],\n Integer.valueOf(queryNode.split(\"_solr\")[0].split(\":\")[1]),\n cluster.externalSolrConfig.sshUserName,\n cluster.externalSolrConfig.restartScript)).collect(Collectors.toList());\n if (!queryNodes.isEmpty()) {\n nodesByRole.put(NodeRole.COORDINATOR, queryNodes);\n }\n List<SolrNode> overseerNodes = getExternalPreferredOverseerNodes(client).stream().map(overseerNode -> new ExternalSolrNode(\n overseerNode.split(\"_solr\")[0].split(\":\")[0],\n Integer.valueOf(overseerNode.split(\"_solr\")[0].split(\":\")[1]),\n cluster.externalSolrConfig.sshUserName,\n cluster.externalSolrConfig.restartScript)).collect(Collectors.toList());\n if (!queryNodes.isEmpty()) {\n nodesByRole.put(NodeRole.OVERSEER, overseerNodes);\n }\n }\n log.info(\"Cluster initialized with nodes: \" + nodes + \", zkHost: \" + zookeeper + \", nodes by role: \" + nodesByRole);\n }\n\n\n }",
"protected void resolveRequest(final IndexMetadata indexMetadata, final Request request) {\n if (request.waitForActiveShards() == ActiveShardCount.DEFAULT) {\n // if the wait for active shard count has not been set in the request,\n // resolve it from the index settings\n request.waitForActiveShards(indexMetadata.getWaitForActiveShards());\n }\n }",
"public boolean handleSubmit(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws IOException, ServletException{\n String gearId = getGearId();\n if (StringUtils.isEmpty(gearId)){\n String msg = \"Null gear id.\";\n error(msg);\n String errorUrl = getErrorUrl();\n pResponse.sendLocalRedirect(errorUrl, pRequest);\n return false;\n }\n\n // Since a form handler doesn't have access to a gear environment, we\n // construct our own here.\n pRequest.setAttribute(PAF_GEAR_ATTR, gearId);\n GearEnvironment gearEnv;\n try{\n gearEnv = EnvironmentFactory.getGearEnvironment(pRequest, pResponse);\n\n }catch (EnvironmentException e) {\n if (isLoggingError()){\n logError(e);\n }\n String msg = \"Internal Error: Gear environment is null\";\n error(msg);\n String errorUrl = getErrorUrl();\n pResponse.sendLocalRedirect(errorUrl, pRequest);\n return false;\n }\n //save old adaptor info for when we flush cacvhes\n\n mOldAdaptor = gearEnv.getGearInstanceParameter(PARAM_FEED_ADAPTER_CLASS);\n gearEnv.setGearInstanceParameter(PARAM_URL_HEADLINES, this.getHeadlinesUrl());\n gearEnv.setGearInstanceParameter(PARAM_URL_CATEGORIES, this.getCategoriesUrl());\n gearEnv.setGearInstanceParameter(PARAM_URL_ARTICLE, this.getArticleUrl());\n gearEnv.setGearInstanceParameter(PARAM_URL_AUTHENTICATION, this.getAuthenticationUrl());\n gearEnv.setGearInstanceParameter(PARAM_FEED_ADAPTER_CLASS, this.getFeedAdaptor());\n gearEnv.setGearInstanceParameter(PARAM_STYLESHEET_FULL_HEADLINES, this.getFullHeadlinesStylesheetUrl());\n gearEnv.setGearInstanceParameter(PARAM_STYLESHEET_FULL_CATEGORIES, this.getFullCategoriesStylesheetUrl());\n gearEnv.setGearInstanceParameter(PARAM_STYLESHEET_FULL_ARTICLE, this.getFullArticleStylesheetUrl());\n\n gearEnv.setGearInstanceParameter(PARAM_STYLESHEET_SHARED_HEADLINES, this.getSharedHeadlinesStylesheetUrl());\n gearEnv.setGearInstanceParameter(PARAM_STYLESHEET_SHARED_CATEGORIES, this.getSharedCategoriesStylesheetUrl());\n gearEnv.setGearInstanceParameter(PARAM_INSTANCE_USERID, this.getInstanceUserID());\n gearEnv.setGearInstanceParameter(PARAM_INSTANCE_PASSWORD, this.getInstancePassword());\n //this.flushCaches(); //Flushes caches and clear connection pools\n return this.checkFormRedirect(this.getSuccessUrl(),this.getErrorUrl(),pRequest,pResponse);\n\n// return true;\n }",
"private void dispatch(CallContext context, HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n CmisService service = null;\n try {\n // get the service\n service = getServiceFactory().getService(context);\n\n // analyze the path\n String[] pathFragments = HttpUtils.splitPath(request);\n\n if (pathFragments.length < 2) {\n // root -> service document\n dispatcher.dispatch(\"\", METHOD_GET, context, service, null, request, response);\n return;\n }\n\n String method = request.getMethod();\n String repositoryId = pathFragments[0];\n String resource = pathFragments[1];\n\n // dispatch\n boolean callServiceFound = dispatcher.dispatch(resource, method, context, service, repositoryId, request,\n response);\n\n // if the dispatcher couldn't find a matching service\n // -> return an error message\n if (!callServiceFound) {\n response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, \"Unknown operation\");\n }\n } finally {\n if (service != null) {\n service.close();\n }\n }\n }",
"@Override\n public void init(final FilterConfig filterConfig) {\n Misc.log(\"Request\", \"initialized\");\n }",
"public static SolrDocumentList getFullDocsFromFieldedQuery(SolrServer solrServer, String solrFldName, String solrFldVal, String requestHandlerName)\n\t{\n\t SolrQuery query = new SolrQuery();\n\t query.setQuery(solrFldName + \":\" + solrFldVal);\n\t query.setQueryType(requestHandlerName);\n\t query.setFacet(false);\n\t query.setParam(\"fl\", \"*\");\n\t try\n\t {\n\t QueryResponse response = solrServer.query(query);\n\t return response.getResults();\n\t }\n\t catch (SolrServerException e)\n\t {\n\t e.printStackTrace();\n\t }\n\n\t return null;\n\t}",
"protected SearchSearchResponse doNewSearch(QueryContext queryContext) throws Exception {\n\t\t\n\t\tBooleanQuery query = _queryBuilder.buildSearchQuery(queryContext);\n\t\t\n\t\tBooleanQuery rescoreQuery = \n\t\t\t\t_queryBuilder.buildRescoreQuery(queryContext);\n\t\t\n\t\tList<Aggregation> aggregations = getAggregations(queryContext);\n\n\t\treturn execute(queryContext, query, rescoreQuery, aggregations);\n\t}",
"@RemoteServiceRelativePath(\"solr-system\")\npublic interface SolrSystemService extends RemoteService {\n\n\t/**\n\t * Create a new system\n\t * \n\t * @param systemDTO\n\t * The system to create\n\t * @param userDTO\n\t * The user that creates the system\n\t */\n\tvoid createSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Update a selected system\n\t * \n\t * @param systemDTO\n\t * The system to update\n\t * @param userDTO\n\t * The user that updates the system\n\t */\n\tvoid updateSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Delete a system\n\t * \n\t * @param systemDTO\n\t * The system to delete\n\t * @param userDTO\n\t * The user that deletes the system\n\t */\n\tvoid deleteSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Show a list of all the systems the system can communicate with\n\t * \n\t * @param userDTO\n\t * the user that requested the systems\n\t * @return A list of all the available systems\n\t */\n\tList<SolrSystemDTO> showAllSolrSystems(UserDTO userDTO);\n\n\tboolean optimize(SolrSystemDTO sustemDTO, UserDTO userDTO);\n}",
"@Override\n public String getServletInfo() {\n return \"Simple service that wraps the SOLR API to enable searching of ROI information\";\n }",
"protected synchronized void init(LiveIndexWriterConfig indexWriterConfig) {\n this.indexWriterConfig = indexWriterConfig;\n infoStream = indexWriterConfig.getInfoStream();\n }",
"private QueryResponse getQueryResponse(RequestInfo qryRequestInfo) throws DefectException{\r\n\t\t\r\n\t\tif(CommonUtil.isNull(qryRequestInfo)){\r\n\t\t\tlog.error(\"failed to make query request, Query Request Info-\" + qryRequestInfo);\r\n \tthrow new DefectException(\"failed to make query request, required query request info is missing\");\r\n\t\t}\r\n\t\t\r\n\t\t// Request type can be User,defect etc.\r\n\t\tQueryRequest qryRequest = new QueryRequest(qryRequestInfo.getRequestType());\r\n\t\t\r\n\t\tlog.info(\"Request Type : \" + qryRequestInfo.getRequestType());\r\n\t\t\r\n\t\tqryRequest.setFetch(new Fetch(qryRequestInfo.getFetch()));\r\n\t\ttry{\r\n\t\t\tif(qryRequestInfo.getQueryFilter() != null){\r\n\t\t\t\tQueryFilter qfilter = null;\r\n\t\t\t\tArrayList<String> filterList = qryRequestInfo.getQueryFilter();\r\n\t\t\t\tif(!filterList.isEmpty() && filterList.size() >= 3){\r\n\t\t\t\t\tif((filterList.get(2)==null)||(filterList.get(2).length() ==0)){\r\n\t\t\t\t\t\tfilterList.set(2,\"null\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tqfilter = new QueryFilter(filterList.get(0), filterList.get(1), filterList.get(2));\r\n\t\t\t\t\tfor(int i=3;i+3<filterList.size();i=i+4){\r\n\t\t\t\t\t\tif(filterList.get(i) == \"AND\"){\r\n\t\t\t\t\t\t\tqfilter = QueryFilter.and(qfilter, new QueryFilter(filterList.get(i + 1), filterList.get(i + 2), filterList.get(i + 3)));\r\n\t\t\t\t\t\t}else if(filterList.get(i) == \"OR\"){\r\n\t\t\t\t\t\t\tqfilter = QueryFilter.or(qfilter, new QueryFilter(filterList.get(i + 1), filterList.get(i + 2), filterList.get(i + 3)));\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthrow new DefectException(\"Invalid query filter string.\");\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\tqryRequest.setQueryFilter(qfilter);\r\n\t\t\t}\r\n\t\t}catch(IndexOutOfBoundsException e){\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t}catch(NullPointerException e){\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t}\r\n\t\tif(qryRequestInfo.getQueryOrder() != null){\r\n\t\t\tqryRequest.setOrder(convertMapToString(qryRequestInfo.getQueryOrder()));\r\n\t\t}\r\n\t\r\n\t\tif(qryRequestInfo.getPageSize() != -1)\r\n\t\t\tqryRequest.setPageSize(qryRequestInfo.getPageSize());\r\n\t\t\t\r\n\t\tif(qryRequestInfo.getLimit() != -1)\t\t\t\r\n\t\t\tqryRequest.setPageSize(qryRequestInfo.getLimit());\r\n\t\t\r\n\t\tQueryResponse qryResponse = null;\r\n\t\ttry {\r\n\t\t\tqryResponse = restApi.query(qryRequest);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlog.error(\"failed to query , message : \" + e.toString() + \" Query Response -\" + qryResponse);\r\n \tthrow new DefectException(\"failed to query , message : \" + e.toString());\r\n\t\t}\r\n\t\t\r\n\t\treturn qryResponse;\r\n\t}",
"public SolrYardIndexingDestination(final String yardName,\n final String parsedSolrLocation,\n final String solrConfig,\n Collection<FieldMapping> indexFieldConfig,\n Map<String,Float> fieldBoostMap,\n NamespacePrefixService namespacePrefixService){\n if(yardName == null || yardName.isEmpty()){\n throw new IllegalArgumentException(\"Tha name of the Yard MUST NOT be NULL nor empty!\");\n }\n if(parsedSolrLocation == null || parsedSolrLocation.isEmpty()){\n throw new IllegalArgumentException(\"Tha parsed Solr location MUST NOT be NULL nor empty!\");\n }\n if(namespacePrefixService == null){\n throw new IllegalArgumentException(\"The parsed NamespacePrefixService MUST NOT be NULL!\");\n }\n this.indexFieldConfiguration = indexFieldConfig;\n this.solrYardConfig = createSolrYardConfig(yardName, parsedSolrLocation);\n //init the manages solr directory relative to the working directory\n File managedDirectory = new File(System.getProperty(\"user.dir\"), DEFAULT_SOLR_INDEX_DIRECTORY);\n //init the solr directory and validate the parsed values\n File[] solrDirectories = initSolrDirectories(parsedSolrLocation, solrConfig, \n managedDirectory);\n this.solrIndexLocation = solrDirectories[0];\n this.solrIndexConfig = solrDirectories[1];\n this.solrArchive = solrDirectories[2];\n this.solrArchiveRef = solrDirectories[3];\n //set Boost related stuff\n solrYardConfig.setDocumentBoostFieldName(DOCUMENT_BOOST_FIELD);\n if(fieldBoostMap != null){\n solrYardConfig.setFieldBoosts(fieldBoostMap);\n }\n }",
"public void process(Manager manager, SearchRequest q)\n\t{\n\t\tResultSet rs = q.getResultSet();\n\t\tnew_query(manager, q, rs);\n\t\tint docids[] = rs.getDocids();\n\t\tint resultsetsize = docids.length;\n\t\tif (show_url_early && show_url)\n\t\t{\n\t\t\tString[] urls = new String[resultsetsize];\n\t\t\tString[] metadata = null;\n\t\t\tlogger.debug(\"early url decoration\");\n\t\t\tsynchronized(metaCache) {\n\t\t\t\ttry {\n\t\t\t\t\tfor(int i=0;i<resultsetsize;i++) {\n\t\t\t\t\t\tInteger DocNoObject = new Integer(docids[i]);\n\t\t\t\t\t\tif (metaCache.containsKey(DocNoObject))\n\t\t\t\t\t\t\t\tmetadata = (String[]) metaCache.get(DocNoObject);\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmetadata = metaIndex.getItems(keys, docids[i]);\n\t\t\t\t\t\t\tmetaCache.put(DocNoObject,metadata);\n\t\t\t\t\t\t}\n\t\t\t\t\t\turls[i] = metadata[0];\n\t\t\t\t\t}\n\t\t\t\t\trs.addMetaItems(\"url\", urls);\n\t\t\t\t\n\t\t\t\t}catch(IOException ioe) {}\n\t\t\t} \n\t\t\t\n\n\t\t}\n\n\t\tif (show_docid_early && show_docid)\n\t\t{\n\t\t\tString[] documentids = new String[resultsetsize];\n\t\t\tfor(int i=0;i<resultsetsize;i++)\n\t\t\t{\n\t\t\t\tdocumentids[i] = docIndex.getDocumentNumber(docids[i]);\n\t\t\t}\n\n\t\t\tSystem.err.println(\"Decorating with docnos for \"+documentids.length + \"result\");\n\t\t\tif (documentids.length > 0)\n\t\t\t\tSystem.err.println(\"\\tFirst docno is \"+documentids[0]);\n\t\t\trs.addMetaItems(\"docid\", documentids);\n\t\t}\n\t}",
"@Override\n public void run() {\n super.run(); // obtain connection\n if (connection == null)\n return; // problem obtaining connection\n\n try {\n request_spec.context.setAttribute\n (ExecutionContext.HTTP_CONNECTION, connection);\n\n doOpenConnection();\n\n HttpRequest request = (HttpRequest) request_spec.context.\n getAttribute(ExecutionContext.HTTP_REQUEST);\n request_spec.executor.preProcess\n (request, request_spec.processor, request_spec.context);\n\n response = request_spec.executor.execute\n (request, connection, request_spec.context);\n\n request_spec.executor.postProcess\n (response, request_spec.processor, request_spec.context);\n\n doConsumeResponse();\n\n } catch (Exception ex) {\n if (exception != null)\n exception = ex;\n\n } finally {\n conn_manager.releaseConnection(connection, -1, null);\n }\n }",
"public void init() {\n\t\tinitResponse();\n\t\tmResponseIndex = 0;\n\t\tmMsgHandler.postDelayed(mInitRunnable, 100);\n\t}",
"void rollback() throws SolrServerException, IOException;",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, ParseException {\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n String method = request.getMethod().toLowerCase();\n System.out.println(\"method = \" + method);\n boolean doOutput = false;\n if (\"post\".equals(method) || \"put\".equals(method) || \"delete\".equals(method) || \"trace\".equals(method)) {\n try (ServletInputStream r = request.getInputStream()) {\n byte buff[] = new byte[300000];\n int cant;\n while ((cant = r.read(buff)) != -1) {\n baos.write(buff, 0, cant);\n }\n baos.flush();\n baos.close();\n }\n doOutput = true;\n }\n String host = request.getParameter(\"host\");\n Utils.getInstance().getManagers(host);\n String port = request.getParameter(\"port\");\n String urlS = URLDecoder.decode(request.getParameter(\"url\"), \"US-ASCII\");\n System.out.println(\"url = \" + urlS);\n System.out.println(\"query = \" + request.getQueryString());\n URL url = new URL(urlS);\n //la base del sitio pedido\n String base = url.getProtocol() + \"://\" + url.getHost() + (url.getPort() != -1 ? \":\" + url.getPort() : \"\");\n\n //la url que representa a el host donde esta montada esta app\n String thishost = \"http://\" + request.getLocalName() + \":\" + request.getLocalPort() + \"/\";\n System.out.println(\"thishost = \" + thishost);\n// System.out.println(\"request server name = \" + request.getServerName());\n// boolean debug = false;\n// if (host != null) {\n//// debug = true;\n// thishost = \"http://ostest.tt:8080/\";\n// } else {\n// thishost = \"http://test-truetest.rhcloud.com/\";\n// }\n\n HttpURLConnection openConnection;\n if (host == null) {\n openConnection = (HttpURLConnection) url.openConnection();\n } else {\n Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(host, Integer.parseInt(port))); // or whatever your proxy is\n openConnection = (HttpURLConnection) url.openConnection(proxy);\n }\n openConnection.setConnectTimeout(0);\n openConnection.setReadTimeout(0);\n openConnection.setRequestMethod(request.getMethod());\n //por si acaso no cambia automatico cuando cambio el metodo\n\n Enumeration<String> headerNames = request.getHeaderNames();\n while (headerNames.hasMoreElements()) {\n String headerName = headerNames.nextElement();\n Enumeration<String> headers = request.getHeaders(headerName);\n while (headers.hasMoreElements()) {\n String headerValue = headers.nextElement();\n if (headerName != null && !\"accept-encoding\".equals(headerName.toLowerCase())) {\n openConnection.addRequestProperty(headerName, headerValue);\n }\n }\n }\n openConnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36\");\n// openConnection.connect();\n if (doOutput) {\n openConnection.setDoOutput(true);\n try (OutputStream out = openConnection.getOutputStream()) {\n out.write(baos.toByteArray());\n out.flush();\n }\n }\n boolean nis = false;\n InputStream inputStream = null;\n try {\n inputStream = openConnection.getInputStream();\n } catch (IOException e) {\n nis = true;\n }\n String contentType = openConnection.getContentType();\n System.out.println(\"contentType basico = \" + contentType);\n// String guessContentTypeFromName = HttpURLConnection.guessContentTypeFromName(urlS);\n ContentType ct = null;\n if (contentType != null) {\n ct = new ContentType(contentType);\n }\n //usod de jsoup para modificar la pag para que todas las url se dirijan a este servidor\n Document parse = null;//\n if (ct != null && ct.match(\"text/html\") && !nis) {\n String charset = ct.getParameter(\"charset\");\n System.out.println(\"charset = \" + charset);\n parse = Jsoup.parse(inputStream, charset, urlS);\n parse.outputSettings().escapeMode(EscapeMode.xhtml);\n String arrayURLAtt[] = new String[]{\"src\", \"data\", \"cite\"};\n for (String attr : arrayURLAtt) {\n Elements linksatt = parse.select(\"[\" + attr + \"]\");\n for (Element link : linksatt) {\n link.attr(attr, link.attr(\"abs:\" + attr));\n }\n }\n //para mandar los post y get de los formularios a travez de este proxy html\n //FIXME poner iframe\n String attr[] = new String[]{\"action\", \"href\", \"src\"};\n for (String att : attr) {\n String select;\n switch (att) {\n case \"href\":\n select = \"a[\" + att + \"],link[\" + att + \"]\";\n break;\n case \"src\":\n select = \"iframe[\" + att + \"],script[\" + att + \"]\";\n break;\n default:\n select = \"[\" + att + \"]\";\n break;\n }\n Elements links = parse.select(select);\n for (Element link : links) {\n String abs = link.attr(\"abs:\" + att);\n if (host == null) {\n String finalUrl = thishost + \"?url=\" + URLEncoder.encode(abs, \"US-ASCII\") + \"&d=true\";\n link.attr(att, finalUrl);\n } else {\n link.attr(att, thishost + \"?url=\" + URLEncoder.encode(abs, \"US-ASCII\") + \"&host=\" + host + \"&port=\" + port);\n }\n }\n }\n }\n\n Map<String, List<String>> headerFields = openConnection.getHeaderFields();\n for (Map.Entry<String, List<String>> entry : headerFields.entrySet()) {\n String header = entry.getKey();\n// System.out.println(\"header = \" + header);\n List<String> list = entry.getValue();\n for (String headerValue : list) {\n if (header != null) {\n// System.out.println(\"header = \" + header);\n if (\"location\".equals(header.toLowerCase()) || \"referer\".equals(header.toLowerCase())) {\n if (host == null) {\n headerValue = \"http://ostest.tt:8081/?url=\" + headerValue + \"&d=true\";\n } else {\n headerValue = \"http://test-truetest.rhcloud.com/?url=\" + headerValue + \"&host=\" + host + \"&port=\" + port;\n }\n }\n if (\"host\".equals(header.toLowerCase())) {\n headerValue = url.getHost() + \":\" + (url.getPort() != -1 ? url.getPort() : url.getDefaultPort());\n }\n if (!\"content-length\".equals(header.toLowerCase())) {\n headerValue = url.getHost() + \":\" + (url.getPort() != -1 ? url.getPort() : url.getDefaultPort());\n }\n// System.out.println(\"headerValue = \" + headerValue);\n if (!\"content-length\".equals(header.toLowerCase()) && !\"content-encoding\".equals(header.toLowerCase())) {\n response.addHeader(header, headerValue);\n }\n }\n }\n }\n\n// response.setStatus(openConnection.getResponseCode());\n// System.out.println(\"content = \" + openConnection.getContentType());\n response.setContentType(openConnection.getContentType());\n if (parse != null) {\n try (PrintWriter writer = response.getWriter()) {\n StringBuilder builder = new StringBuilder(parse.outerHtml());\n String cabecera = \"<head>\";\n int indexOf = builder.indexOf(cabecera);\n if (indexOf != -1) {\n String scripText = \"<script id=\\\"prox\\\" >(function(open) {\\n\"\n + \" XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\\n\"\n + \" open.call(this, method, '\" + thishost + \"?url=\" + base + \"'+encodeURIComponent(url)+'\" + (host == null ? \"&d=true\" : \"&host=\" + host + \"&port=\" + port) + \"', true, user, pass);\\n\"\n + \" };\\n\"\n + \" })(XMLHttpRequest.prototype.open);\"\n + \"\"\n + \"window.location.origin='\" + base + \"'</script>\";\n builder.insert(indexOf + cabecera.length(), scripText);\n }\n writer.print(builder);\n writer.flush();\n }\n } else {\n try (OutputStream out = response.getOutputStream(); BufferedInputStream in = new BufferedInputStream((openConnection.getInputStream()))) {\n byte buff[] = new byte[300000];\n int cant;\n while ((cant = in.read(buff)) != -1) {\n out.write(buff, 0, cant);\n }\n out.flush();\n }\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n LOG.debug(\"Received new update request\");\n \n String modelerName = request.getParameter(\"name\");\n String originalModelerName = request.getParameter(\"originalName\");\n String modelId = request.getParameter(\"modelId\");\n String modelType = request.getParameter(\"modeltype\");\n // Currently not being used since we don't update the modelVersion \n // String modelVersion = request.getParameter(\"version\");\n String originalModelVersion = request.getParameter(\"originalModelVersion\");\n String runIdent = request.getParameter(\"runIdent\");\n String originalRunIdent = request.getParameter(\"originalRunIdent\");\n String runDate = request.getParameter(\"creationDate\");\n String originalRunDate = request.getParameter(\"originalCreationDate\");\n String scenario = request.getParameter(\"scenario\");\n String originalScenario = request.getParameter(\"originalScenario\");\n String comments = request.getParameter(\"comments\");\n String originalComments = request.getParameter(\"originalComments\");\n String email = request.getParameter(\"email\");\n String wfsUrl = request.getParameter(\"wfsUrl\");\n String layer = request.getParameter(\"layer\");\n String commonAttr = request.getParameter(\"commonAttr\");\n Boolean updateAsBest = \"on\".equalsIgnoreCase(request.getParameter(\"markAsBest\")) ? Boolean.TRUE : Boolean.FALSE;\n Boolean rerun = Boolean.parseBoolean(request.getParameter(\"rerun\")); // If this is true, we only re-run the R processing \n \n String responseText;\n RunMetadata newRunMetadata;\n \n ModelType modelTypeEnum = null;\n if (\"prms\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.PRMS;\n }\n if (\"afinch\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.AFINCH;\n }\n if (\"waters\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.WATERS;\n }\n if (\"sye\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.SYE;\n }\n \n RunMetadata originalRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n originalModelerName,\n originalModelVersion,\n originalRunIdent,\n originalRunDate,\n originalScenario,\n originalComments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n if (rerun) {\n String sosEndpoint = props.getProperty(\"watersmart.sos.model.repo\") + originalRunMetadata.getTypeString() + \"/\" + originalRunMetadata.getFileName();\n WPSImpl impl = new WPSImpl();\n String implResponse = impl.executeProcess(sosEndpoint, originalRunMetadata);\n Boolean processStarted = implResponse.toLowerCase().equals(\"ok\");\n responseText = \"{success: \"+processStarted.toString()+\", message: '\" + implResponse + \"'}\";\n } else {\n newRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n modelerName,\n originalModelVersion,\n runIdent,\n runDate,\n scenario,\n comments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n CSWTransactionHelper helper = new CSWTransactionHelper(newRunMetadata, null, new HashMap<String, String>());\n try {\n String results = helper.updateRunMetadata(originalRunMetadata);\n // TODO- parse xml, make sure stuff happened alright, if so don't say success\n responseText = \"{success: true, msg: 'The record has been updated'}\";\n } catch (IOException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n } catch (URISyntaxException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n }\n \n }\n \n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"utf-8\");\n \n try {\n Writer writer = response.getWriter();\n writer.write(responseText);\n writer.close();\n } catch (IOException ex) {\n LOG.warn(\"An error occurred while trying to send response to client. \", ex);\n }\n \n }",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsResponse getQSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsRequest getQSLocationsRequest\n )\n ;",
"private static void performInitialSync() throws IOException,ConfigurationException {\n\n LOGGER.info(\"Starting to perform initial sync\");\n //tapDump is basically that -- a dump of all data currently in CB.\n TapStream tapStream = tapClient.tapDump(tapName);\n SolrBatchImportEventHandler couchbaseToSolrEventHandler = new SolrBatchImportEventHandler();\n startupBatchDisruptor(couchbaseToSolrEventHandler);\n RingBuffer<CouchbaseEvent> ringBuffer = disruptor.getRingBuffer();\n\n CouchbaseEventProducer producer = new CouchbaseEventProducer(ringBuffer);\n //While there is data keep reading and producing\n while (!tapStream.isCompleted()) {\n while (tapClient.hasMoreMessages()) {\n ResponseMessage responseMessage;\n responseMessage = tapClient.getNextMessage();\n if (null != responseMessage) {\n String key = responseMessage.getKey();\n String value = new String(responseMessage.getValue());\n producer.onData(new String[] {key, value}, responseMessage.getOpcode());\n\n }\n }\n }\n LOGGER.info(\"Finished initial sync\");\n shutdownBatchDisruptor();\n //Since this event handler is batch based, we need to let it know we are done and it could flush the remaining data.\n couchbaseToSolrEventHandler.flush();\n\n }",
"private ResponseEntity<?> handleRequest(final HttpServletRequest httpServletRequest) throws Throwable {\n log.at(Level.INFO).log(\"Processing incoming request [%s] %s\", httpServletRequest.getMethod(),\n httpServletRequest.getRequestURI());\n final CompletableFuture<RequestResponse> response = specificationsService.processRequest(httpServletRequest);\n RequestResponse requestResponse;\n try {\n requestResponse = response.get();\n log.at(Level.INFO).log(\"Request [%s] %s processed successfully\", httpServletRequest.getMethod(),\n httpServletRequest.getRequestURI());\n return new ResponseEntity<>(requestResponse.getData(), requestResponse.getHttpStatus());\n } catch (InterruptedException | ExecutionException e) {\n if (e.getCause() != null) {\n throw e.getCause();\n }\n throw new RequestNotProcessedException();\n }\n }"
] | [
"0.5675439",
"0.51764035",
"0.49480247",
"0.48216403",
"0.48002383",
"0.47419828",
"0.46864417",
"0.46818122",
"0.46608928",
"0.46463835",
"0.46103406",
"0.46059006",
"0.4564192",
"0.45627335",
"0.45522773",
"0.45432162",
"0.4530715",
"0.44885033",
"0.44822398",
"0.44632342",
"0.43266696",
"0.43245476",
"0.43173996",
"0.43163127",
"0.43156862",
"0.4310486",
"0.4307312",
"0.42758524",
"0.42643827",
"0.42565507",
"0.42338556",
"0.42305902",
"0.4226851",
"0.4170499",
"0.4164045",
"0.41477647",
"0.41436785",
"0.4143402",
"0.41232818",
"0.4122002",
"0.4119483",
"0.41178247",
"0.4115875",
"0.4115015",
"0.4111685",
"0.41044778",
"0.41039684",
"0.40938044",
"0.4069226",
"0.40607005",
"0.40544274",
"0.40517288",
"0.4048868",
"0.40444446",
"0.40440032",
"0.40229043",
"0.40116405",
"0.4007691",
"0.40039933",
"0.39855275",
"0.39817697",
"0.3981223",
"0.39738703",
"0.396442",
"0.395937",
"0.39545414",
"0.39387876",
"0.39361364",
"0.39162964",
"0.3913291",
"0.39094257",
"0.39001244",
"0.38980937",
"0.38967094",
"0.38931787",
"0.38911015",
"0.38837498",
"0.38832656",
"0.3881353",
"0.38701898",
"0.38654077",
"0.3864848",
"0.38609195",
"0.38561067",
"0.38543427",
"0.38529068",
"0.38476264",
"0.38459066",
"0.38402444",
"0.3840036",
"0.38348326",
"0.38342926",
"0.3818588",
"0.38180712",
"0.38165742",
"0.38113824",
"0.3807354",
"0.379704",
"0.37926787",
"0.37900656"
] | 0.7777945 | 0 |
Called by Restlet to get the response body | @Override
public void write(OutputStream outputStream) throws IOException {
if (getRequest().getMethod() != Method.HEAD) {
QueryResponseWriterUtil.writeQueryResponse(outputStream, responseWriter, solrRequest, solrResponse, contentType);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getResponseBody() {\n return instance.getResponseBody();\n }",
"public String getBody() {\n\t\tif(body == null) {\n\t\t\ttry {\n\t\t\t\tbody = streamToString(response.getEntity().getContent());\n\t\t\t\treturn body;\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn body;\n\t\t}\n\t}",
"public java.lang.String getResponseBody() {\n return responseBody_;\n }",
"public String getResponseBody() {\n return this.responseBody;\n }",
"private String getBody(CloseableHttpResponse response) throws IOException {\n HttpEntity entity = response.getEntity();\n return EntityUtils.toString(entity, \"UTF-8\");\n }",
"java.lang.String getBody();",
"public String getBody()\n {\n return super.getBody();\n }",
"public java.lang.String getBody() {\n return instance.getBody();\n }",
"public String getBody()\n {\n return body;\n }",
"private String readResponseBody() {\n try {\n StringBuilder s_buffer = new StringBuilder();\n InputStream is = new BufferedInputStream(httpConn.getInputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n String inputLine;\n while ((inputLine = br.readLine()) != null) {\n s_buffer.append(inputLine);\n }\n return s_buffer.toString();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n return null;\n }\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"public String getBody () {\n\t\treturn body;\n\t}",
"public byte[] getResponseBody() {\n if (this.responseBody == null) {\n try {\n InputStream instream = getResponseBodyAsStream();\n if (instream != null) {\n LOG.debug(\"Buffering response body\");\n ByteArrayOutputStream outstream = new ByteArrayOutputStream();\n byte[] buffer = new byte[4096];\n int len;\n while ((len = instream.read(buffer)) > 0) {\n outstream.write(buffer, 0, len);\n }\n outstream.close();\n setResponseStream(null);\n this.responseBody = outstream.toByteArray();\n }\n } catch (IOException e) {\n LOG.error(\"I/O failure reading response body\", e);\n this.responseBody = null;\n }\n }\n return this.responseBody;\n }",
"public Object getBody() {\n return body;\n }",
"public String getBody() {\r\n return body;\r\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public com.google.protobuf.ByteString\n getResponseBodyBytes() {\n return instance.getResponseBodyBytes();\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"public String getBody_() {\n return body_;\n }",
"public String getBody(){\n return body;\n }",
"public Body getBody() {\n return body;\n }",
"public HttpEntity body() {\n return body;\n }",
"public com.google.protobuf.ByteString\n getResponseBodyBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(responseBody_);\n }",
"public String getResponseContent() {\n\t\treturn responseContent;\n\t}",
"public byte[] getBody() {\n return body;\n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"public byte[] getBody() {\n\t\treturn body;\n\t}",
"public String getBodyAsString() throws IOException {\n\t\treturn ServletUtil.toString(this.wrappedOut.getBytes(), getContentType(), getCharacterEncoding());\n\t}",
"public String body() {\n return request.content().toString(StandardCharsets.UTF_8);\n }",
"public abstract Body getBody();",
"public com.webobjects.appserver.WOResponse readResponse(){\n return null; //TODO codavaj!!\n }",
"public String getResponse() {\n return response;\n }",
"public String getResponse() {\n return response;\n }",
"public String getResponse() {\n return response;\n }",
"public String getResponse() {\n return response;\n }",
"public String getResponse() {\n return response;\n }",
"java.lang.String getResponse();",
"public String getContentBody() {\n return contentBody;\n }",
"public Object getResponse ()\r\n {\r\n\r\n return response_;\r\n }",
"@Override\r\n public Reader contentReader() {\r\n try {\r\n return okResponse.body().charStream();\r\n } catch (IOException e) {\r\n throw fail(e);\r\n }\r\n }",
"public String getBodyString() {\n return this.bodyString;\n }",
"DBody getBody();",
"public String getBodyString()\r\n\t{\r\n\t\tString charsetName = this.request.getCharacterEncoding();\r\n\t\tif (charsetName == null || charsetName == \"\")\r\n\t\t\tcharsetName = \"UTF-8\";\r\n\t\t\r\n\t\treturn this.getBodyString(charsetName);\r\n\t}",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"public synchronized RestResponse getResponse() {\n\t\treturn getContext().getLocalSession().getOpSession().getResponse();\n\t}",
"private String getResponseBody() throws IOException {\n return IOUtils.toString(\n Issue86IT.class.getResourceAsStream(QUERY_RESOURCE),\n \"UTF-8\");\n }",
"private String getBody(InputStream stream) throws IOException {\r\n\t\t// retrieve response body\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tString line;\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tbuffer.append(line);\r\n\t\t\t}\r\n\r\n\t\t\treturn buffer.toString();\r\n\t\t} finally {\r\n\t\t\tif (br != null) {\r\n\t\t\t\tbr.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String getResponse()\r\n {\r\n return this.response;\r\n }",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"Body getBody();",
"public InputStream body() {\n return body;\n }",
"@Override\n public Object getBody() {\n return null;\n }",
"public AgentBody getBody() {\n\t\treturn body;\n\t}",
"@Override\n public String getBody() {\n Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"Optional<String> getResponseBody();",
"@Override\r\n public InputStream contentStream() {\r\n try {\r\n return okResponse.body().byteStream();\r\n } catch (IOException e) {\r\n throw fail(e);\r\n }\r\n }",
"public T getResponse() {\n return response;\n }",
"@Test(priority=2)\r\n\tpublic void logResponseBody()\r\n\t{\r\n\t\tgiven()\r\n\t\t.get(\"https://reqres.in/api/users/2\")\r\n\t\t.then()\r\n\t\t.log().body();\t\t\r\n\t}",
"@Override\n\tpublic java.lang.String getBody() {\n\t\treturn _news_Blogs.getBody();\n\t}",
"public HttpResponseWrapper getResponse() {\n return response;\n }",
"public Response getResponse() {\n return response;\n }",
"public String getBody() {\n Object ref = body_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getResponse();",
"public String getContent() throws IOException {\n ContentType type = getContentType();\n \n if(type == null) {\n return body.getContent(\"UTF-8\");\n } \n return getContent(type);\n }",
"public static Response getResourceResponse() {\n return response;\n }",
"public ClientResponse getResponse() {\n return r;\n }",
"@Override\n public byte[] getBody() throws AuthFailureError {\n if (httpClientRequest != null) {\n // send our custom body data here.\n return httpClientRequest.getData().getBytes();\n }\n return super.getBody();\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"public String getResponse() {\n return this.applicationState.getResponse();\n }",
"private void clearResponseBody() {\n \n responseBody_ = getDefaultInstance().getResponseBody();\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n }\n return s;\n }\n }",
"public String produceResponse() {\n processData();\n return response;\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return instance.getBodyBytes();\n }",
"public static String getBody(final Bundle bundle) {\n return bundle.getString(Constants.BUNDLE_STRING_BODY, null);\n }",
"public ResponseObject getResponseObject() {\n return responseObject;\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"com.google.protobuf.ByteString\n getBodyBytes();",
"com.google.protobuf.ByteString\n getBodyBytes();",
"public String getResponseString() {\r\n\t\t// TODO - log message if this is ever called\r\n\t\treturn \"\";\r\n\t}",
"@GET\n @Path(\"/\")\n public Response read() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n EntityBody entityBody = entityDefinition.getService().getCustom(entityId);\n if (entityBody == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n return Response.status(Status.OK).entity(entityBody).build();\n }",
"protected void readResponseBody(HttpState state, HttpConnection connection)\n\tthrows IOException, HttpException {\n\t\tthis.httpRecorderMethod.markContentBegin(connection);\n\t\tsuper.readResponseBody(state, connection);\n\t}",
"private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }",
"private static String paseResponse(HttpResponse response) {\n\t\tHttpEntity entity = response.getEntity();\n\t\t\n//\t\tlog.info(\"response status: \" + response.getStatusLine());\n\t\tString charset = EntityUtils.getContentCharSet(entity);\n//\t\tlog.info(charset);\n\t\t\n\t\tString body = null;\n\t\ttry {\n if (entity != null) { \n InputStream instreams = entity.getContent(); \n body = convertStreamToString(instreams); \n// System.out.println(\"result:\" + body);\n } \n//\t\t\tlog.info(body);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn body;\n\t}",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n body_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getBody(){\n return bodiesText;\n }",
"public List<Atom> getBody ()\r\n\t{\r\n\t\treturn _body;\r\n\t}",
"protected T getResponse() {\n return responseData;\n }",
"HttpContent getHttpContent();",
"@Override\n public ExtensionResult getMessageBody(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n StringBuilder respBuilder = new StringBuilder();\n\n try {\n OkHttpUtil okHttpUtil = new OkHttpUtil();\n okHttpUtil.init(true);\n Request request = new Request.Builder().url(\"https://jsonplaceholder.typicode.com/comments\").get().build();\n Response response = okHttpUtil.getClient().newCall(request).execute();\n\n JSONArray jsonArray = new JSONArray(response.body().string());\n\n JSONObject jsonObject = jsonArray.getJSONObject(0);\n String message = jsonObject.getString(\"body\");\n respBuilder.append(message);\n } catch (Exception e) {\n\n }\n\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n\n output.put(OUTPUT, respBuilder.toString());\n extensionResult.setValue(output);\n return extensionResult;\n }",
"private BufferedReader getResponse(IRequest request) throws Exception {\n\t\tString url = this.getBasePath() + request.getEndpoint();\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\n\t\t// Set header values\n\t\t//System.out.println(request.getRequestMethod());\n\t\t//System.out.println(request.getEndpoint());\n\t\tconnection.setRequestMethod(request.getRequestMethod());\n\t\tconnection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n\t\t// Write Cookies\n\t\tif (cookieManager.getCookieStore().getCookies().size() > 0) {\n\t\t\t// Cookies are stored as a comma delimited list\n\t\t\tString delim = \"\";// This ensures that there is no comma before the\n\t\t\t\t\t\t\t\t// first value\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tfor (HttpCookie i : cookieManager.getCookieStore().getCookies()) {\n\t\t\t\tbuilder.append(delim).append(i);\n\t\t\t\tdelim = \"; \";// faster than using an if statement every iteration\n\t\t\t}\n\t\t\tconnection.setRequestProperty(\"Cookie\", builder.toString());\n\t\t}\n\n\t\t\n\t\tconnection.setDoOutput(true);\n\t\t\n\t\t// Write the body\n\n\t\tString bodyString = request.getBody();\n\t\tbyte[] outputInBytes = bodyString.getBytes(\"UTF-8\");\n\t\tOutputStream os = connection.getOutputStream();\n\t\tos.write(outputInBytes);\n\t\tos.close();\n\t\tint responseCode = connection.getResponseCode();\n\t\tif(responseCode != 200){\n\t\t\tthrow new RequestException(responseCode);\n\t\t}\n\n\t\tBufferedReader response = new BufferedReader(new InputStreamReader(\n\t\t\t\tconnection.getInputStream()));\n\n\t\t// Save Cookies\n\t\tMap<String, List<String>> headerFields = connection.getHeaderFields();\n\t\tList<String> cookiesHeader = headerFields.get(COOKIES_HEADER);\n\t\tif (cookiesHeader != null) {\n\t\t\tfor (String cookie : cookiesHeader) {\n\t\t\t\tcookieManager.getCookieStore().add(obj.toURI(),\n\t\t\t\t\t\tHttpCookie.parse(cookie).get(0));\n\t\t\t}\n\t\t}\n\n\t\treturn response;\n\t}",
"public HttpServletResponse getResponse() {\r\n\t\treturn response_;\r\n\t}",
"@Override\n public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Body getBody() {\n if (jBody == null) {\n throw new RuntimeException(\"No jimplification happened yet, no body available.\");\n }\n return jBody;\n }",
"public int getResponse() {return response;}",
"public static Representation getResourceResponseEntity() {\n return getResourceResponse() == null ? null : getResourceResponse().getEntity();\n }",
"public String getResponseDescription() {\n return responseDescription;\n }"
] | [
"0.75313944",
"0.74771154",
"0.7360685",
"0.7355711",
"0.7118615",
"0.69683355",
"0.6918436",
"0.6861959",
"0.6814369",
"0.68106574",
"0.68035126",
"0.68035126",
"0.68035126",
"0.68035126",
"0.67932796",
"0.67843366",
"0.6729836",
"0.6727786",
"0.6725657",
"0.6725657",
"0.6725657",
"0.6717334",
"0.67106533",
"0.66572165",
"0.66375977",
"0.65826225",
"0.65552425",
"0.65095276",
"0.64724463",
"0.6456328",
"0.6453176",
"0.6420014",
"0.6415918",
"0.64059716",
"0.6398541",
"0.6392781",
"0.6326337",
"0.6326337",
"0.6326337",
"0.6326337",
"0.6326337",
"0.62637424",
"0.6260004",
"0.6255447",
"0.6246682",
"0.6237518",
"0.62299335",
"0.622649",
"0.6208838",
"0.6206522",
"0.6205124",
"0.61998856",
"0.61874163",
"0.61652017",
"0.6096972",
"0.60875875",
"0.6067076",
"0.60483",
"0.60190934",
"0.6013092",
"0.5989244",
"0.59824175",
"0.59608096",
"0.59523135",
"0.5950099",
"0.5947186",
"0.5928434",
"0.5926788",
"0.5908426",
"0.58980125",
"0.5885802",
"0.5885554",
"0.58845425",
"0.5873401",
"0.5831127",
"0.57868373",
"0.5764812",
"0.57605153",
"0.5752569",
"0.57511985",
"0.57434934",
"0.5742248",
"0.5742248",
"0.57301545",
"0.5717155",
"0.57162005",
"0.57147324",
"0.57032",
"0.56994313",
"0.56959724",
"0.5688357",
"0.56760275",
"0.5670738",
"0.5668423",
"0.56519693",
"0.5648278",
"0.5647485",
"0.5646979",
"0.56441224",
"0.56242836",
"0.561224"
] | 0.0 | -1 |
Deal with an exception on the SolrResponse, fill in response header info, and log the accumulated messages on the SolrResponse. | protected void handlePostExecution(Logger log) {
handleException(log);
// TODO: should status=0 (success?) be left as-is in the response header?
SolrCore.postDecorateResponse(null, solrRequest, solrResponse);
addDeprecatedWarning();
if (log.isInfoEnabled() && solrResponse.getToLog().size() > 0) {
log.info(solrResponse.getToLogAsString(solrCore.getLogId()));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void handleException(Logger log) {\n Exception exception = getSolrResponse().getException();\n if (null != exception) {\n NamedList info = new SimpleOrderedMap();\n int code = ResponseUtils.getErrorInfo(exception, info, log);\n setStatus(Status.valueOf(code));\n getSolrResponse().add(\"error\", info);\n String message = (String)info.get(\"msg\");\n if (null != message && ! message.trim().isEmpty()) {\n getSolrResponse().getToLog().add(\"msg\", \"{\" + message.trim() + \"}\");\n }\n }\n }",
"protected void printError(Exception ex, HttpServletResponse response) {\n int statusCode = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;\n String exceptionName = \"runtime\";\n\n if (ex instanceof CmisRuntimeException) {\n LOG.error(ex.getMessage(), ex);\n } else if (ex instanceof CmisStorageException) {\n LOG.error(ex.getMessage(), ex);\n statusCode = getErrorCode((CmisStorageException) ex);\n exceptionName = ((CmisStorageException) ex).getExceptionName();\n } else if (ex instanceof CmisBaseException) {\n statusCode = getErrorCode((CmisBaseException) ex);\n exceptionName = ((CmisBaseException) ex).getExceptionName();\n } else if (ex instanceof IOException) {\n LOG.warn(ex.getMessage(), ex);\n } else {\n LOG.error(ex.getMessage(), ex);\n }\n\n if (response.isCommitted()) {\n LOG.warn(\"Failed to send error message to client. Response is already committed.\", ex);\n return;\n }\n\n String message = ex.getMessage();\n if (!(ex instanceof CmisBaseException)) {\n message = \"An error occurred!\";\n }\n\n try {\n response.resetBuffer();\n response.setStatus(statusCode);\n response.setContentType(\"text/html\");\n response.setCharacterEncoding(IOUtils.UTF8);\n\n PrintWriter pw = response.getWriter();\n\n pw.print(\"<html><head><title>Apache Chemistry OpenCMIS - \"\n + exceptionName\n + \" error</title>\"\n + \"<style><!--H1 {font-size:24px;line-height:normal;font-weight:bold;background-color:#f0f0f0;color:#003366;border-bottom:1px solid #3c78b5;padding:2px;} \"\n + \"BODY {font-family:Verdana,arial,sans-serif;color:black;font-size:14px;} \"\n + \"HR {color:#3c78b5;height:1px;}--></style></head><body>\");\n pw.print(\"<h1>HTTP Status \" + statusCode + \" - <!--exception-->\" + exceptionName + \"<!--/exception--></h1>\");\n pw.print(\"<p><!--message-->\" + StringEscapeUtils.escapeHtml(message) + \"<!--/message--></p>\");\n\n String st = ExceptionHelper.getStacktraceAsString(ex);\n if (st != null) {\n pw.print(\"<hr noshade='noshade'/><!--stacktrace--><pre>\\n\" + st\n + \"\\n</pre><!--/stacktrace--><hr noshade='noshade'/>\");\n }\n\n pw.print(\"</body></html>\");\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n try {\n response.sendError(statusCode, message);\n } catch (Exception en) {\n // there is nothing else we can do\n }\n }\n }",
"abstract void setResponseErrorMsg(HttpServletResponse response, String msg) throws IOException;",
"@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void doInit() throws ResourceException {\n super.doInit();\n setNegotiated(false); // Turn off content negotiation for now\n if (isExisting()) {\n try {\n SolrRequestInfo solrRequestInfo = SolrRequestInfo.getRequestInfo();\n if (null == solrRequestInfo) {\n final String message = \"No handler or core found in \" + getRequest().getOriginalRef().getPath();\n doError(Status.CLIENT_ERROR_BAD_REQUEST, message);\n setExisting(false);\n } else {\n solrRequest = solrRequestInfo.getReq();\n if (null == solrRequest) {\n final String message = \"No handler or core found in \" + getRequest().getOriginalRef().getPath();\n doError(Status.CLIENT_ERROR_BAD_REQUEST, message);\n setExisting(false);\n } else {\n solrResponse = solrRequestInfo.getRsp();\n solrCore = solrRequest.getCore();\n schema = solrRequest.getSchema();\n String responseWriterName = solrRequest.getParams().get(CommonParams.WT);\n if (null == responseWriterName) {\n responseWriterName = JSON; // Default to json writer\n }\n String indent = solrRequest.getParams().get(\"indent\");\n if (null == indent || ! (\"off\".equals(indent) || \"false\".equals(indent))) {\n // indent by default\n ModifiableSolrParams newParams = new ModifiableSolrParams(solrRequest.getParams());\n newParams.remove(indent);\n newParams.add(\"indent\", \"on\");\n solrRequest.setParams(newParams);\n }\n responseWriter = solrCore.getQueryResponseWriter(responseWriterName);\n contentType = responseWriter.getContentType(solrRequest, solrResponse);\n final String path = getRequest().getRootRef().getPath();\n if ( ! RestManager.SCHEMA_BASE_PATH.equals(path)) {\n // don't set webapp property on the request when context and core/collection are excluded \n final int cutoffPoint = path.indexOf(\"/\", 1);\n final String firstPathElement = -1 == cutoffPoint ? path : path.substring(0, cutoffPoint);\n solrRequest.getContext().put(\"webapp\", firstPathElement); // Context path\n }\n SolrCore.preDecorateResponse(solrRequest, solrResponse);\n\n // client application can set a timeout for update requests\n Object updateTimeoutSecsParam = getSolrRequest().getParams().get(UPDATE_TIMEOUT_SECS);\n if (updateTimeoutSecsParam != null)\n updateTimeoutSecs = (updateTimeoutSecsParam instanceof Number)\n ? ((Number) updateTimeoutSecsParam).intValue()\n : Integer.parseInt(updateTimeoutSecsParam.toString());\n\n }\n }\n } catch (Throwable t) {\n if (t instanceof OutOfMemoryError) {\n throw (OutOfMemoryError) t;\n }\n setExisting(false);\n throw new ResourceException(t);\n }\n }\n }",
"@Override\n public void log(Request request, Response response)\n {\n int committedStatus = response.getCommittedMetaData().getStatus();\n\n // only interested in error cases - bad request & server errors\n if ((committedStatus >= 500) || (committedStatus == 400))\n {\n super.log(request, response);\n }\n else\n {\n System.err.println(\"### Ignored request (response.committed.status=\" + committedStatus + \"): \" + request);\n }\n }",
"protected void checkError(Response res) {\n if (res.getStatus() < 300) {\n return;\n }\n\n if (res.getStatus() == 404) {\n throw new NotFoundException(\"No results found.\");\n }\n\n // TODO custom exceptions here\n // final String responseBody = res.readEntity(String.class);\n }",
"private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }",
"public void handleError(ClientHttpResponse response) throws IOException {\n }",
"public void handleWriteResponseException(HttpRequest request, HttpResponse response, Exception e)\n {\n handleException(request, response, e);\n }",
"private Object logError(WebClientResponseException e, String string) {\n\t\treturn null;\n\t}",
"private void sendInternalErrorResponse(HttpResponse response,\n\t\t\tString answerMessage, String logMessage) {\n\t\tresponse.clearContent();\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.setStatus( HttpResponse.STATUS_INTERNAL_SERVER_ERROR );\n\t\tresponse.println ( answerMessage );\n\t\tconnector.logMessage ( logMessage );\n\t}",
"public static Response processAndRespondToException(\n Exception exception,\n SolrQueryRequest solrQueryRequest,\n ContainerRequestContext containerRequestContext) {\n final Exception normalizedException =\n RequestHandlerBase.normalizeReceivedException(solrQueryRequest, exception);\n final RequestHandlerBase.HandlerMetrics metrics =\n (RequestHandlerBase.HandlerMetrics) containerRequestContext.getProperty(HANDLER_METRICS);\n if (metrics != null) {\n RequestHandlerBase.processErrorMetricsOnException(normalizedException, metrics);\n }\n\n // Then, convert the exception into a SolrJerseyResponse (creating one as necessary\n // if response not found, etc.)\n return buildExceptionResponse(normalizedException, solrQueryRequest, containerRequestContext);\n }",
"protected ErrorResponse()\n {\n super();\n }",
"ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception);",
"ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception,\n String errorMessage);",
"@Override\n\tpublic void commence(HttpServletRequest request, HttpServletResponse response,\n\t\t\tAuthenticationException authException) throws IOException, ServletException {\n\t\tApiResponse res = new ApiResponse(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorised\");\n\t\tres.setErrors(authException.getMessage());\n\t\tres.setStatus(false);\n OutputStream out = response.getOutputStream();\n ObjectMapper mapper = new ObjectMapper();\n mapper.writeValue(out, res);\n out.flush();\n\t}",
"void setResponseFormatError(){\n responseFormatError = true;\n }",
"ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception,\n List<String> errorMessages);",
"@Override\n\t\tprotected void prepareResponse(HttpServletResponse response)\n\t\t\t\tthrows IOException {\n\n\t\t}",
"@Override\n public void commence(HttpServletRequest request,\n HttpServletResponse response,\n AuthenticationException authException) throws IOException {\n\n String requestURI = request.getRequestURI();\n if(requestURI.startsWith(\"/api\")){\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n response.setContentType(\"application/json;charset=utf-8\");\n PrintWriter out = response.getWriter();\n BaseResponse baseResponse = new BaseResponse();\n baseResponse.setMessage(authException.getMessage());\n baseResponse.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n out.write(new ObjectMapper().writeValueAsString(baseResponse));\n out.flush();\n out.close();\n\n// response.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());\n }else {\n response.sendRedirect(\"/login?redirect=\"+requestURI);\n }\n }",
"private void handleError(HttpServletResponse resp, Throwable ex) {\r\n try {\r\n if (resp.isCommitted()) {\r\n PrintWriter out = resp.getWriter();\r\n ex.printStackTrace(out);\r\n return;\r\n }\r\n resp.setStatus(500);\r\n resp.setContentType(\"text/html\");\r\n PrintWriter out = resp.getWriter();\r\n out.println(\"<html>\");\r\n out.println(\" <head><title>Execution Error: 500</title></head>\");\r\n out.println(\" <body>\");\r\n out.println(\" <h2>Execution Error: \"+ex.getClass().getSimpleName()+\"</h2>\");\r\n out.println(\" <p>Stack trace:</p>\");\r\n out.print(\" <blockquote><pre>\");\r\n if (ex instanceof RhinoException) {\r\n RhinoException rex = (RhinoException)ex;\r\n rex.printStackTrace(out);\r\n } else {\r\n ex.printStackTrace(out);\r\n }\r\n out.println(\"</pre></blockquote>\");\r\n out.println(\" <p><address>Powered by Alt Framework</address></p>\");\r\n out.println(\" </body>\");\r\n out.println(\"</html>\");\r\n } catch (IOException ex2) {\r\n ex2.printStackTrace(System.err);\r\n }\r\n }",
"public SIPServerException(String response) {\n super(response);\n ServerLog.logException(this);\n }",
"protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) {\n res.setSampleLabel(res.getSampleLabel());\n res.setDataType(SampleResult.TEXT);\n ByteArrayOutputStream text = new ByteArrayOutputStream(200);\n e.printStackTrace(new PrintStream(text));\n res.setResponseData(text.toByteArray());\n res.setResponseCode(NON_HTTP_RESPONSE_CODE+\": \"+e.getClass().getName());\n res.setResponseMessage(NON_HTTP_RESPONSE_MESSAGE+\": \"+e.getMessage());\n res.setSuccessful(false);\n res.setMonitor(this.isMonitor());\n return res;\n }",
"protected void handleReaderException(HttpRequest request, HttpResponse response, ReaderException e)\n {\n if (e.getResponse() != null || e.getErrorCode() > -1)\n {\n handleFailure(request, response, e);\n return;\n }\n else if (e.getCause() != null)\n {\n if (executeExceptionMapper(response, e.getCause()))\n {\n return;\n }\n if (e.getCause() instanceof WebApplicationException)\n {\n handleWebApplicationException(response, (WebApplicationException) e.getCause());\n return;\n }\n if (e.getCause() instanceof Failure)\n {\n handleFailure(request, response, (Failure) e.getCause());\n return;\n }\n }\n e.setErrorCode(HttpResponseCodes.SC_BAD_REQUEST);\n handleFailure(request, response, e);\n }",
"@Override\n public final void accept(PutRecordResponse response, Throwable exception) {\n if (exception != null) {\n failedRequestCount++;\n appender.addError(\"Failed to publish a log entry to kinesis using appender: \" + appenderName, exception);\n } else {\n successfulRequestCount++;\n }\n }",
"protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) {\n res.setSampleLabel(res.getSampleLabel());\n res.setDataType(SampleResult.TEXT);\n ByteArrayOutputStream text = new ByteArrayOutputStream(200);\n e.printStackTrace(new PrintStream(text));\n res.setResponseData(text.toByteArray());\n res.setResponseCode(NON_HTTP_RESPONSE_CODE+\": \" + e.getClass().getName());\n res.setResponseMessage(NON_HTTP_RESPONSE_MESSAGE+\": \" + e.getMessage());\n res.setSuccessful(false);\n res.setMonitor(this.isMonitor());\n return res;\n }",
"@Override\n public T parseResponse(Request<T> request, NetworkResponse response) throws Exception {\n if(!SomePreferences.confirmLogin()){\n SomePreferences.clearAuthentication();\n throw new SessionError(\"Not Logged In\");\n }\n Document document = parseDocument(response);\n if(document.body().hasClass(\"database_error\")){\n throw new SomeError(\"SA Database Unavailable, try again later.\");\n }\n if(document.getElementsByClass(\"notregistered\").size() > 0){\n //Not logged in.\n SomePreferences.clearAuthentication();\n throw new SessionError(\"Not Logged In\");\n }\n Element stdErr = document.getElementsByClass(\"standarderror\").first();\n if(stdErr != null){\n //Generic SA error messages\n throw new SomeError(stdErr.getElementsByClass(\"standard\").first().getElementsByClass(\"inner\").first().ownText());\n }\n return parseHtmlResponse(request, response, document);\n }",
"private QueryResponse loggedSolrQuery(String caller, SolrQuery solrQuery) throws SolrServerException, IOException {\n long solrNS = -System.nanoTime();\n QueryResponse rsp = solrServer.query(solrQuery, METHOD.POST);\n solrNS += System.nanoTime();\n String query = solrQuery.getQuery();\n query = query == null ? null : query.length() > 200 ? query.substring(0, 200) + \"...\" : query;\n/*\n log.debug(String.format(\"%s Solr response in %d ms (qtime=%d ms) with %d hits for query %s\", caller, solrNS / M, rsp.getQTime(),\n rsp.getResults().getNumFound(), query));\n */\n return rsp;\n }",
"public ExceptionControllerAdvice() {\n httpHeaders = getHeaders(WebConstants.TEXT_PLAIN_UTF8);\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)\n {\n super.onFailure(statusCode, headers, responseString, throwable);\n System.out.println(\"applyBook-->onFailure\" + statusCode);\n }",
"@Override\r\n\tprotected void processRespond() throws SGSException {\n\r\n\t}",
"@Override\n\tprotected PortletRenderResult callInternal() throws Exception {\n\t final String characterEncoding = response.getCharacterEncoding();\n\t final RenderPortletOutputHandler renderPortletOutputHandler = new RenderPortletOutputHandler(characterEncoding);\n\t \n final PortletRenderResult result = portletRenderer.doRenderHeader(portletWindowId, request, response, renderPortletOutputHandler);\n \n this.output = renderPortletOutputHandler.getOutput();\n \n return result;\n\t}",
"@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = \"IOException occured\")\n\t@ExceptionHandler(value=MyCustomException.class)\n\tpublic void myException(HttpServletResponse response) throws IOException {\n\t\t response.sendError(HttpStatus.NOT_FOUND.value());\n\t}",
"public RestApiException(final Response response) {\n\t\tsuper(response);\n\t\t// logger.error(\"stackTraceToString(this) = {}\", stackTraceToString(this));\n\t}",
"@Override\n protected void filterWriteHttpResponse(NextFilter nextFilter,\n IoSessionEx session,\n WriteRequest writeRequest,\n HttpResponseMessage httpResponse)\n throws Exception {\n HttpContentMessage content = httpResponse.getContent();\n String contentLength = httpResponse.getHeader(HEADER_CONTENT_LENGTH);\n HttpStatus httpStatus = httpResponse.getStatus();\n boolean noContent = content == null || (content.length() == 0 && content.isComplete());\n if (contentLength == null && contentAutomaticallyInjectable(httpStatus) && noContent) {\n if (!httpResponse.isContentExcluded()) {\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ByteBuffer nioBuf = allocator.allocate(256);\n IoBufferEx buf = allocator.wrap(nioBuf);\n String message = String.format(\"<html><head></head><body><h1>%d %s</h1></body></html>\",\n httpStatus.code(), httpResponse.getBodyReason());\n buf.putString(message, US_ASCII.newEncoder());\n buf.flip();\n httpResponse.setHeader(\"Content-Type\", \"text/html\");\n httpResponse.setContent(new HttpContentMessage(buf, true));\n }\n }\n\n super.filterWriteHttpResponse(nextFilter, session, writeRequest, httpResponse);\n }",
"private Response() {\n initFields();\n }",
"@Override\n\tpublic void handleResponse() {\n\t\t\n\t}",
"public void init() {\n\t\t\n\t\tSegmentList segList = this.getSegments();\n\t\tfor (int i=0; i < segList.size(); i ++) {\n\t\t\tif (hasERR == false && segList.item(i).getCode().compareTo(ERR) == 0) {\n\t\t\t\thasERR = true;\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger.debug(\"PixSourceResponse: init - found error segment in pix source response \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@RequestMapping(value = PATH)\n void error(WebRequest webRequest, HttpServletResponse response) throws Exception {\n HttpStatus status = HttpStatus.valueOf(response.getStatus());\n\n //Get Spring error attributes\n Optional<Map<String, Object>> mapErrorAttribute = this.getErrorAttributes(webRequest);\n\n //Default message\n String message = Msg.format(\"Spring error (no details) status [{}]\", status.toString());\n\n //Message with attributes if present in map\n if(mapErrorAttribute.isPresent()) {\n message = Msg.format(\"Spring error [{}] status [{}] path [{}] message [{}] trace [{}]\",\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_ERROR),\n status.toString(),\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_PATH),\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_MESSAGE),\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_TRACE));\n }\n //Throw custom exception\n throw new HttpServiceException(status, message);\n }",
"@Override\n public void onFailure(int statusCode, Headers headers, String response, Throwable throwable) {\n Log.i(\"doRequest\", \"doRequest failed\");\n\n }",
"private void doSearchError(Map<String, Object> map, Configuration config, HttpServletRequest request, HttpServletResponse response) {\n writeTemplate(TEMPLATE_DEFAULT, map, config, request, response);\n }",
"@Test\n\t\tpublic void testRestErrorResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getErrorResultString();\n\t\ttry {\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertTrue(flag);\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public static void handleResponse(HttpCarbonMessage requestMsg, HttpCarbonMessage responseMsg) {\n try {\n requestMsg.respond(responseMsg);\n } catch (ServerConnectorException e) {\n throw new HttpSourceAdaptorRuntimeException(\"Error occurred during response\", e);\n }\n }",
"private void sendErrorResponse(String aText, int aStatus, HttpServletRequest aRequest, HttpServletResponse aResponse){\n try {\n aResponse.setStatus(aStatus);\n //fLogger.fine(\"Sending response in uncompressed form, as UTF-8. Length: \" + aText.length());\n String utf8Text = new String(aText.getBytes(), ENCODING);\n aResponse.setCharacterEncoding(\"UTF-8\");\n aResponse.setContentLength(utf8Text.getBytes().length); \n aResponse.setContentType(\"application/text\");\n PrintWriter out = aResponse.getWriter();\n out.append(utf8Text);\n } \n catch (IOException ex) {\n //in practice this won't happen\n logProblem(\"Problem sending an error response.\", ex);\n }\n }",
"@Override\n\tpublic Object handleDataException(DataException exc) {\n\t\tGenericResponsePayload grp = new GenericResponsePayload();\n\t\tString msg = DEFAULT_INTERNAL_SERVER_ERROR_MESSAGE;\n\t\tHttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;\n\t\tgrp.setMessage(msg);\n\t\treturn new ResponseEntity<>(grp, status);\n\t}",
"public SkPublishAPIException(int statusCode, String response) {\n super();\n this.response = response;\n this.statusCode = statusCode;\n }",
"public static void sendException( HttpServletResponse response, Exception e ) {\n \n // LOG.logInfo( \"Sending OGCWebServiceException to client.\" );\n OGCWebServiceException oe = new OGCWebServiceException( e.getMessage() );\n ExceptionReport report = new ExceptionReport( new OGCWebServiceException[] { oe } );\n e.printStackTrace();\n \n try {\n response.setContentType( \"application/vnd.ogc.se_xml\" );\n XMLFragment doc = XMLFactory.export( report );\n OutputStream os = response.getOutputStream();\n doc.write( os );\n os.close();\n } catch (Exception ex) {\n // LOG.logError( \"ERROR: \" + ex.getMessage(), ex );\n }\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"public NonStandardResponseWrapper(ServletResponse response) {\n if (response == null) {\n throw new IllegalArgumentException(\"Response cannot be null\");\n }\n this.response = response;\n }",
"public DistributedServletResponseWrapper(HttpServletResponse response) {\n super(response);\n }",
"protected void logError( HttpServletRequest req, HttpServletResponse resp, Exception ex, String str ) {\r\n\ttry {\r\n\t StringBuffer sb = new StringBuffer();\r\n\t sb.append(\"\\n---------- Gateway error:\\n\");\r\n\t sb.append(\"Error message: \" + str + \"\\n\");\r\n\t sb.append(\"Request method: \" + req.getMethod() + \"\\n\");\r\n\t sb.append(\"Query string: \" + req.getQueryString() + \"\\n\");\r\n\t sb.append(\"Content length: \" + req.getContentLength() + \"\\n\");\r\n\t sb.append(\"Cookies: ( session info )\\n\");\r\n\t Cookie[] cookies = req.getCookies();\r\n\t if (cookies == null || cookies.length == 0)\r\n\t\tsb.append(\"No cookies in the HTTP request\\n\");\r\n\t else {\r\n\t\tfor (int i = 0; i < cookies.length; i++) {\r\n\t\t sb.append(\"\\tName: \" + cookies[i].getName() + \"\\t\" + \"Value: \" + cookies[i].getValue() + \"\\n\");\r\n\t\t}\r\n\t }\r\n\t sb.append(\"\\n\");\r\n\t m_ctx.log( sb.toString(), ex );\r\n\t} catch (Exception e) {\r\n\t System.err.println(\"Error logging a message\");\r\n\t}\r\n }",
"@Override\r\n\t\t\t\t\tpublic void error(ResponseError error) {\n\t\t\t\t\t\tscrollview.onRefreshComplete();\r\n\t\t\t\t\t\tTools.toastShow(error.getMessage());\r\n\t\t\t\t\t}",
"private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }",
"@Override\r\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tonMyError(arg0);\r\n\t\t\t}",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"@Override\n\t\t\t\tpublic void finished(Response response) {\n\t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n\t\t\t\t}",
"private CallResponse() {\n initFields();\n }",
"private void handleServiceException(PortletRequest request,\n PortletResponse response, Application application, Throwable e)\n throws IOException, PortletException {\n if (getRequestType(request) == RequestType.UIDL) {\n Application.SystemMessages ci = getSystemMessages();\n criticalNotification(request, (ResourceResponse) response,\n ci.getInternalErrorCaption(), ci.getInternalErrorMessage(),\n null, ci.getInternalErrorURL());\n if (application != null) {\n application.getErrorHandler()\n .terminalError(new RequestError(e));\n } else {\n throw new PortletException(e);\n }\n } else {\n // Re-throw other exceptions\n throw new PortletException(e);\n }\n \n }",
"@Override\r\n\t\t\t\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\r\n\t\t\t\t\t\t}",
"private static HttpResponse handleExceptionalStatus(\n HttpResponse response,\n UUID requestId,\n ApiName apiName,\n CloseableHttpClient httpClient,\n HttpUriRequest request,\n RequestBuilder requestBuilder)\n throws IOException, IngestResponseException, BackOffException {\n if (!isStatusOK(response.getStatusLine())) {\n StatusLine statusLine = response.getStatusLine();\n LOGGER.warn(\n \"{} Status hit from {}, requestId:{}\",\n statusLine.getStatusCode(),\n apiName,\n requestId == null ? \"\" : requestId.toString());\n\n // if we have a 503 exception throw a backoff\n switch (statusLine.getStatusCode()) {\n // If we have a 503, BACKOFF\n case HttpStatus.SC_SERVICE_UNAVAILABLE:\n throw new BackOffException();\n case HttpStatus.SC_UNAUTHORIZED:\n LOGGER.warn(\"Authorization failed, refreshing Token succeeded, retry\");\n requestBuilder.refreshToken();\n requestBuilder.addToken(request);\n response = httpClient.execute(request);\n if (!isStatusOK(response.getStatusLine())) {\n throw new SecurityException(\"Authorization failed after retry\");\n }\n break;\n default:\n String blob = consumeAndReturnResponseEntityAsString(response.getEntity());\n throw new IngestResponseException(\n statusLine.getStatusCode(),\n IngestResponseException.IngestExceptionBody.parseBody(blob));\n }\n }\n return response;\n }",
"protected abstract void output(DavServletResponse response)\n throws IOException;",
"@Override\n\t\t\t\tpublic void onBizFailure(String responseDescription, JSONObject data, String responseCode) {\n\t\n\t\t\t\t\tscrollView.onRefreshComplete();\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"public SkPublishAPIException(Throwable cause, int statusCode, String response) {\n super(cause);\n this.response = response;\n this.statusCode = statusCode;\n }",
"public String handleResponse(final HttpResponse response) throws IOException{\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n if(entity == null) {\n return \"\";\n } else {\n return EntityUtils.toString(entity);\n }\n } else {\n return \"\"+status;\n }\n }",
"@Override\n public void processResult(HttpResponseMessage response) {\n }",
"@Override\r\n\tpublic void onErrorResponse(VolleyError arg0) {\n\t\tLog.d(TAG, \"arg0\" + arg0);\r\n\t}",
"private void sendResultInterpretationProblems(HttpRequest request,\n\t\t\tHttpResponse response) {\n\t\t// result interpretation problems\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_INTERNAL_SERVER_ERROR );\n\t\tresponse.setContentType( \"text/xml\" );\n\t\tresponse.println (\"the result of the method call is not transferable!\");\n\t\tconnector.logError(\"Exception while processing RMI: \" + request.getPath());\n\t}",
"private void sendProcessingError(Throwable t, ServletResponse response) {\n String stackTrace = getStackTrace(t); \n \n if (stackTrace != null && !stackTrace.equals(\"\")) {\n try {\n response.setContentType(\"text/html\");\n PrintStream ps = new PrintStream(response.getOutputStream());\n PrintWriter pw = new PrintWriter(ps); \n pw.print(\"<html>\\n<head>\\n<title>Error</title>\\n</head>\\n<body>\\n\"); //NOI18N\n\n // PENDING! Localize this for next official release\n pw.print(\"<h1>We had an error converting the URL to HTTPS</h1>\\n<pre>\\n\"); \n pw.print(stackTrace); \n pw.print(\"</pre></body>\\n</html>\"); //NOI18N\n pw.close();\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n } else {\n try {\n PrintStream ps = new PrintStream(response.getOutputStream());\n t.printStackTrace(ps);\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n }\n }",
"public Response handleRESTError(RegistryException exception)\n\t{\n\t\treturn processError(new RegistryError(exception));\n\t}",
"private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessage = e.getCause() != null? e.getCause().getLocalizedMessage() : null;\n String combinedExceptionMessage = \"primary message:\"+exceptionPrimaryMessage+(exceptionSecondaryMessage!=null?(\"; secondary message: \"+exceptionSecondaryMessage):(\"\"));\n \n //chances are this is the Oracle MCS erro message. If so then ths message has a JSON format. A simple JSON parsing \n //test will show if our assumption is true. If JSONObject parsing fails then apparently the message is not the MCS\n //error message\n //{\n // \"type\":\".....\",\n // * \"status\": <error_code>,\n // * \"title\": \"<short description of the error>\",\n // * \"detail\": \"<long description of the error>\",\n // * \"o:ecid\": \"...\",\n // * \"o:errorCode\": \"MOBILE-<MCS error number here>\",\n // * \"o:errorPath\": \"<URI of the request>\"\n // }\n if(exceptionSecondaryMessage!=null){\n try {\n JSONObject jsonErrorObject = new JSONObject(exceptionSecondaryMessage);\n //if we get here, then its a Oracle MCS error JSON Object. Get the \n //status code or set it to 0 (means none is found)\n int statusCode = jsonErrorObject.optInt(\"status\", 0);\n throw new ServiceProxyException(statusCode, exceptionSecondaryMessage);\n \n } catch (JSONException jse) {\n //if parsing fails, the this is proof enough that the error message is not \n //an Oracle MCS message and we need to continue our analysis\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception message is not a Oracle MCS error JSONObject\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n } \n }\n \n //continue message analysis and check for known error codes for the references MCS API\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Rest invocation failed with following message\"+exceptionPrimaryMessage, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n int httpErrorCode = -1; \n String restoredOracleMcsErrorMessage = null;\n \n /*\n * Try to identify an MCS failure from the exception message.\n */\n if(combinedExceptionMessage.contains(\"400\")){\n httpErrorCode = 400; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(400, \"Invalid JSON payload\", \"One of the following problems occurred: \" +\n \"the user does not exist, the JSON is invalid, or a property was not found.\", uri);\n }\n else if(combinedExceptionMessage.contains(\"401\")){\n httpErrorCode = 401; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(401, \"Authorization failure\", \"The user is not authorized to retrieve the information for another user.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(403, \"Functionality is not supported\", \"Functionality is not supported.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(404, \"User not found\", \"The user with the specified ID does not exist.\",uri);\n }\n \n else{\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request failed with Exception: \"+e.getClass().getSimpleName()+\"; message: \"+e.getLocalizedMessage(), this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(e.getLocalizedMessage(), ServiceProxyException.ERROR);\n }\n //if we get here then again its an Oracle MCS error, though one we found by inspecting the exception message\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request succeeded successful but failed with MCS application error. HTTP response: \"+httpErrorCode+\", Error message: \"+restoredOracleMcsErrorMessage, this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(httpErrorCode, restoredOracleMcsErrorMessage);\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {\n\n Log.i(\"onFailure\", res);\n }",
"public boolean wasSolrErrorEncountered() {\n\n if (this.solrErrorEncountered) {\n return true;\n }\n if (!this.hasValidFilterQueries()) {\n setSolrErrorEncountered(true);\n return true;\n }\n return solrErrorEncountered;\n }",
"public SkPublishAPIException(String message, Throwable cause, int statusCode, String response) {\n super(message, cause);\n this.response = response;\n this.statusCode = statusCode;\n }",
"Response filterResponse(Response currentResponse, HttpExchange exchange);",
"public SkPublishAPIException(String message, int statusCode, String response) {\n super(message);\n this.response = response;\n this.statusCode = statusCode;\n }",
"protected void prepareHTTPResponse( String reportId, String entryName, HttpServletRequest request,\n HttpServletResponse response )\n {\n if ( isGenerateContentDisposition( reportId, null, request ) )\n {\n String contentDisposition = getContentDisposition( entryName );\n if ( StringUtils.isNotEmpty( contentDisposition ) )\n {\n response.setHeader( HttpHeaderUtils.CONTENT_DISPOSITION_HEADER, contentDisposition.toString() );\n }\n }\n\n // Disable HTTP response cache\n if ( isDisableHTTPResponCache() )\n {\n disableHTTPResponCache( response );\n }\n }",
"public void setResponse(HttpResponseWrapper response) {\n this.response = response;\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"private static String doListBuilderExceptionResponse(HttpServletRequest request, HttpServletResponse response, Paginator paginator, ListBuilderException e) {\n request.setAttribute(\"listBuilderException\", e); // save the exception\n return \"listBuilderException\"; // FormletEventHandler should check for this\n }",
"@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}",
"private void sendUnauthorizedResponse(HttpResponse response, String answerMessage,\n\t\t\tString logMessage) {\n\t\tresponse.clearContent();\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tif ( answerMessage != null)\n\t\t\tresponse.println ( answerMessage );\n\t\tresponse.setStatus( HttpResponse.STATUS_UNAUTHORIZED );\n\t\tconnector.logMessage ( logMessage );\n\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n }",
"@Override\n\tpublic Response toResponse(Throwable arg0) {\n\t\tErrorMessage errorMsg = new ErrorMessage(arg0.getMessage(),500,\"http://www.google.com\");\n\t\treturn Response.status(Status.INTERNAL_SERVER_ERROR).entity(errorMsg).build();\n\t}",
"@Override\n public void filterResponse(HttpResponse response, HttpMessageContents contents, HttpMessageInfo messageInfo) {\n timestampWriter.write(new HttpResponseDetail(System.currentTimeMillis(), response, contents, messageInfo));\n }",
"private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\n \n Exception exception = (Exception) request.getAttribute(\"exception\");\n String message;\n if (exception != null && exception.getMessage() != null) {\n message = exception.getMessage();\n } else {\n message = \"Unknown error\";\n }\n data.put(\"errore\",message);\n FreeMarker.process(\"404error.html\",data, response, getServletContext()); \n }",
"@Override\r\n public Response toResponse(Exception exception) {\n Map<String, String> object = new HashMap<>();\r\n StackTraceElement[] stackTrace = exception.getStackTrace();\r\n if (stackTrace.length > 0) {\r\n StackTraceElement stackItem = stackTrace[0];\r\n if (BasicAuthFactory.class.getName().endsWith(stackItem.getClassName())) {\r\n return Response.status(Response.Status.UNAUTHORIZED).entity(object).build();\r\n }\r\n }\r\n object.put(\"message\", exception.getMessage());\r\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(object).build();\r\n }",
"protected void onUnsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException {\n }",
"public void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {\r\n HttpServletResponse response = ServletActionContext.getResponse();\r\n\r\n if (headers != null) {\r\n OgnlValueStack stack = ActionContext.getContext().getValueStack();\r\n\r\n for (Iterator iterator = headers.entrySet().iterator();\r\n iterator.hasNext();) {\r\n Map.Entry entry = (Map.Entry) iterator.next();\r\n String value = (String) entry.getValue();\r\n String finalValue = conditionalParse(value, invocation);\r\n response.addHeader((String) entry.getKey(), finalValue);\r\n }\r\n\r\n // log headers we've just populated\r\n if (LOG.isDebugEnabled()) {\r\n if (!headers.isEmpty()) {\r\n String log_statement = \"populated HttpServletRespons's Header with\";\r\n for(Iterator i = headers.entrySet().iterator(); i.hasNext(); ) {\r\n Map.Entry entry = (Map.Entry) i.next();\r\n log_statement = log_statement + \"\\n\\t\"+entry.getKey()+\"=\"+entry.getValue();\r\n }\r\n LOG.debug(log_statement);\r\n }\r\n else {\r\n LOG.debug(\"Nothing was populated to HttpServletResponse's header\");\r\n }\r\n }\r\n }\r\n\r\n afterHttpHeadersPopulatedExecute(finalLocation, invocation);\r\n }",
"private void cleanHeaders(HttpRequestResponse requestResponseToClean) {\n IRequestInfo rinfo =\n ExtensionState.getCallbacks().getHelpers().analyzeRequest(requestResponseToClean.getRequest());\n ArrayList<String> rInfoHeaders = (ArrayList<String>) rinfo.getHeaders();\n ExtensionState.getCallbacks().printOutput(\"Cleaning headers\");\n\n for(int i = 0;i<rInfoHeaders.size();i++)\n {\n ExtensionState.getCallbacks().printOutput(rInfoHeaders.get(i));\n if(rInfoHeaders.get(i).startsWith(\"Host\")) {\n rInfoHeaders.set(i,cleanHostHeader(rInfoHeaders.get(i)));\n ExtensionState.getCallbacks().printOutput(rInfoHeaders.get(i));\n } else {\n //check entropy\n String[] headerPieces = rInfoHeaders.get(i).split(\":\");\n if(headerPieces.length > 1 && shouldCleanHeader(headerPieces[0])) {\n String headerValue = headerPieces[1];\n ExtensionState.getCallbacks().printOutput(headerValue);\n rInfoHeaders.set(i, rInfoHeaders.get(i).split(\":\")[0] +\n \": Redacted\");\n ExtensionState.getCallbacks().printOutput(rInfoHeaders.get(i));\n }\n\n }\n }\n requestResponseToClean.setCleanedRequest(ExtensionState.getCallbacks().getHelpers().buildHttpMessage(rInfoHeaders,\n Arrays.copyOfRange(requestResponseToClean.getRequest(), rinfo.getBodyOffset(), requestResponseToClean.getRequest().length)));\n }",
"protected void responseFail(){\n\t\tqueue.clear();\n\t}",
"void sendError(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Throwable ex) throws IOException;",
"@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}",
"@Override\n protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException {\n Logger log = (Logger) getServletContext().getAttribute(\"log4\");\n Logger logdb = (Logger) getServletContext().getAttribute(\"log4db\");\n for (ChainElement elem : chain.getChain()) {\n try {\n elem.processRequest(request, response, log, logdb);\n } catch (ChainElementException ex) {\n RequestDispatcher view = request.getRequestDispatcher(\"ErrorPage.jsp\");\n request.setAttribute(\"message\", \"ChainElementException\");\n try {\n view.forward(request, response);\n } catch (IOException ex1) {\n log.error(\"IOException\");\n }\n }\n }\n }",
"protected void finishResponseOutput(Response response, Writer writer) throws ScalarActionException {\r\n\t\t// No wrapping if there is no tag\r\n\t\tString tag = response.getTag();\r\n\t\tif ( (null == tag) || (tag.length() == 0) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\twriter.write(\"\\\", \\\"end\\\": \\\"---end-marker---\\\"}\");\r\n\t\t} catch ( IOException e ) {\r\n MsgObject msgObject = MsgObjectUtil.getMsgObject(FrameworkResource.BASE_NAME, FrameworkResource.WRITE_OUTPUT_FAILURE);\r\n\t\t\tthrow ScalarActionException.create(msgObject, e);\r\n\t\t}\r\n\t}",
"public void process(Exchange exchange) throws Exception {\n Response response = exchange.getIn().getHeader(RestletConstants.RESTLET_RESPONSE, Response.class);\n\n response.setStatus(Status.SUCCESS_OK);\n response.setEntity(\"<response>ru.testproj.CamelRest</response>\", MediaType.TEXT_XML);\n exchange.getOut().setBody(response);\n }"
] | [
"0.6892952",
"0.5851187",
"0.5790153",
"0.57559675",
"0.57436395",
"0.5598686",
"0.5575023",
"0.5558862",
"0.5544074",
"0.55276585",
"0.55232257",
"0.5496227",
"0.54740167",
"0.5397098",
"0.5337762",
"0.5324807",
"0.5303509",
"0.5264735",
"0.5210028",
"0.5209629",
"0.516861",
"0.51670814",
"0.5157855",
"0.51498854",
"0.5146178",
"0.51386887",
"0.51319253",
"0.5109675",
"0.51042145",
"0.5052837",
"0.5046963",
"0.50418615",
"0.5029959",
"0.502957",
"0.5020403",
"0.50096357",
"0.50065964",
"0.5001414",
"0.5001161",
"0.49975216",
"0.4994518",
"0.49935427",
"0.49904633",
"0.49836817",
"0.4981746",
"0.49735287",
"0.4971692",
"0.4955417",
"0.4943632",
"0.4943632",
"0.49412727",
"0.49401098",
"0.49312022",
"0.49309415",
"0.49238786",
"0.49174985",
"0.49119973",
"0.49054164",
"0.49050552",
"0.49010423",
"0.4897319",
"0.48939025",
"0.48858547",
"0.48781157",
"0.48728612",
"0.48728612",
"0.4872497",
"0.48724353",
"0.48719692",
"0.4869784",
"0.485934",
"0.48460633",
"0.48424253",
"0.4838422",
"0.4834174",
"0.4833662",
"0.48218268",
"0.48216876",
"0.48188618",
"0.48124537",
"0.48118874",
"0.48045918",
"0.48045918",
"0.47948152",
"0.47943133",
"0.4794308",
"0.47917587",
"0.47894767",
"0.47864255",
"0.47862226",
"0.4785922",
"0.47816604",
"0.4774059",
"0.47731945",
"0.47721732",
"0.47704998",
"0.47703692",
"0.47700542",
"0.47693247",
"0.47657436"
] | 0.60510814 | 1 |
If there is an exception on the SolrResponse: error info is added to the SolrResponse; the response status code is set to the error code from the exception; and the exception message is added to the list of things to be logged. | protected void handleException(Logger log) {
Exception exception = getSolrResponse().getException();
if (null != exception) {
NamedList info = new SimpleOrderedMap();
int code = ResponseUtils.getErrorInfo(exception, info, log);
setStatus(Status.valueOf(code));
getSolrResponse().add("error", info);
String message = (String)info.get("msg");
if (null != message && ! message.trim().isEmpty()) {
getSolrResponse().getToLog().add("msg", "{" + message.trim() + "}");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Response processAndRespondToException(\n Exception exception,\n SolrQueryRequest solrQueryRequest,\n ContainerRequestContext containerRequestContext) {\n final Exception normalizedException =\n RequestHandlerBase.normalizeReceivedException(solrQueryRequest, exception);\n final RequestHandlerBase.HandlerMetrics metrics =\n (RequestHandlerBase.HandlerMetrics) containerRequestContext.getProperty(HANDLER_METRICS);\n if (metrics != null) {\n RequestHandlerBase.processErrorMetricsOnException(normalizedException, metrics);\n }\n\n // Then, convert the exception into a SolrJerseyResponse (creating one as necessary\n // if response not found, etc.)\n return buildExceptionResponse(normalizedException, solrQueryRequest, containerRequestContext);\n }",
"protected void printError(Exception ex, HttpServletResponse response) {\n int statusCode = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;\n String exceptionName = \"runtime\";\n\n if (ex instanceof CmisRuntimeException) {\n LOG.error(ex.getMessage(), ex);\n } else if (ex instanceof CmisStorageException) {\n LOG.error(ex.getMessage(), ex);\n statusCode = getErrorCode((CmisStorageException) ex);\n exceptionName = ((CmisStorageException) ex).getExceptionName();\n } else if (ex instanceof CmisBaseException) {\n statusCode = getErrorCode((CmisBaseException) ex);\n exceptionName = ((CmisBaseException) ex).getExceptionName();\n } else if (ex instanceof IOException) {\n LOG.warn(ex.getMessage(), ex);\n } else {\n LOG.error(ex.getMessage(), ex);\n }\n\n if (response.isCommitted()) {\n LOG.warn(\"Failed to send error message to client. Response is already committed.\", ex);\n return;\n }\n\n String message = ex.getMessage();\n if (!(ex instanceof CmisBaseException)) {\n message = \"An error occurred!\";\n }\n\n try {\n response.resetBuffer();\n response.setStatus(statusCode);\n response.setContentType(\"text/html\");\n response.setCharacterEncoding(IOUtils.UTF8);\n\n PrintWriter pw = response.getWriter();\n\n pw.print(\"<html><head><title>Apache Chemistry OpenCMIS - \"\n + exceptionName\n + \" error</title>\"\n + \"<style><!--H1 {font-size:24px;line-height:normal;font-weight:bold;background-color:#f0f0f0;color:#003366;border-bottom:1px solid #3c78b5;padding:2px;} \"\n + \"BODY {font-family:Verdana,arial,sans-serif;color:black;font-size:14px;} \"\n + \"HR {color:#3c78b5;height:1px;}--></style></head><body>\");\n pw.print(\"<h1>HTTP Status \" + statusCode + \" - <!--exception-->\" + exceptionName + \"<!--/exception--></h1>\");\n pw.print(\"<p><!--message-->\" + StringEscapeUtils.escapeHtml(message) + \"<!--/message--></p>\");\n\n String st = ExceptionHelper.getStacktraceAsString(ex);\n if (st != null) {\n pw.print(\"<hr noshade='noshade'/><!--stacktrace--><pre>\\n\" + st\n + \"\\n</pre><!--/stacktrace--><hr noshade='noshade'/>\");\n }\n\n pw.print(\"</body></html>\");\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n try {\n response.sendError(statusCode, message);\n } catch (Exception en) {\n // there is nothing else we can do\n }\n }\n }",
"abstract void setResponseErrorMsg(HttpServletResponse response, String msg) throws IOException;",
"protected void checkError(Response res) {\n if (res.getStatus() < 300) {\n return;\n }\n\n if (res.getStatus() == 404) {\n throw new NotFoundException(\"No results found.\");\n }\n\n // TODO custom exceptions here\n // final String responseBody = res.readEntity(String.class);\n }",
"private Object logError(WebClientResponseException e, String string) {\n\t\treturn null;\n\t}",
"protected void handlePostExecution(Logger log) {\n \n handleException(log);\n \n // TODO: should status=0 (success?) be left as-is in the response header?\n SolrCore.postDecorateResponse(null, solrRequest, solrResponse);\n addDeprecatedWarning();\n\n if (log.isInfoEnabled() && solrResponse.getToLog().size() > 0) {\n log.info(solrResponse.getToLogAsString(solrCore.getLogId()));\n }\n }",
"protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) {\n res.setSampleLabel(res.getSampleLabel());\n res.setDataType(SampleResult.TEXT);\n ByteArrayOutputStream text = new ByteArrayOutputStream(200);\n e.printStackTrace(new PrintStream(text));\n res.setResponseData(text.toByteArray());\n res.setResponseCode(NON_HTTP_RESPONSE_CODE+\": \"+e.getClass().getName());\n res.setResponseMessage(NON_HTTP_RESPONSE_MESSAGE+\": \"+e.getMessage());\n res.setSuccessful(false);\n res.setMonitor(this.isMonitor());\n return res;\n }",
"@RequestMapping(value = PATH)\n void error(WebRequest webRequest, HttpServletResponse response) throws Exception {\n HttpStatus status = HttpStatus.valueOf(response.getStatus());\n\n //Get Spring error attributes\n Optional<Map<String, Object>> mapErrorAttribute = this.getErrorAttributes(webRequest);\n\n //Default message\n String message = Msg.format(\"Spring error (no details) status [{}]\", status.toString());\n\n //Message with attributes if present in map\n if(mapErrorAttribute.isPresent()) {\n message = Msg.format(\"Spring error [{}] status [{}] path [{}] message [{}] trace [{}]\",\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_ERROR),\n status.toString(),\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_PATH),\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_MESSAGE),\n mapErrorAttribute.get().get(SPRING_ERROR_MAP_TRACE));\n }\n //Throw custom exception\n throw new HttpServiceException(status, message);\n }",
"protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) {\n res.setSampleLabel(res.getSampleLabel());\n res.setDataType(SampleResult.TEXT);\n ByteArrayOutputStream text = new ByteArrayOutputStream(200);\n e.printStackTrace(new PrintStream(text));\n res.setResponseData(text.toByteArray());\n res.setResponseCode(NON_HTTP_RESPONSE_CODE+\": \" + e.getClass().getName());\n res.setResponseMessage(NON_HTTP_RESPONSE_MESSAGE+\": \" + e.getMessage());\n res.setSuccessful(false);\n res.setMonitor(this.isMonitor());\n return res;\n }",
"public static void setErrorResponse(\n FlightContext context, String message, HttpStatus responseStatus) {\n ApiErrorReport errorModel = new ApiErrorReport().message(message);\n setResponse(context, errorModel, responseStatus);\n }",
"ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception,\n List<String> errorMessages);",
"public SIPServerException(String response) {\n super(response);\n ServerLog.logException(this);\n }",
"Response.StatusType getStatus(Exception exception);",
"private void sendInternalErrorResponse(HttpResponse response,\n\t\t\tString answerMessage, String logMessage) {\n\t\tresponse.clearContent();\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.setStatus( HttpResponse.STATUS_INTERNAL_SERVER_ERROR );\n\t\tresponse.println ( answerMessage );\n\t\tconnector.logMessage ( logMessage );\n\t}",
"@Override\n public Response toResponse(Exception e) {\n\n\n ResponseEntity<Exception> re = new ResponseEntity<>(e, HttpStatus.INTERNAL_SERVER_ERROR);\n logger.error(\"errorResponse\", e); // logging stack trace.\n\n return this.errorResponse(HttpStatus.INTERNAL_SERVER_ERROR.value(), re, e);\n }",
"public SkPublishAPIException(int statusCode, String response) {\n super();\n this.response = response;\n this.statusCode = statusCode;\n }",
"public SkPublishAPIException(String message, int statusCode, String response) {\n super(message);\n this.response = response;\n this.statusCode = statusCode;\n }",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"private void handleError(HttpServletResponse resp, Throwable ex) {\r\n try {\r\n if (resp.isCommitted()) {\r\n PrintWriter out = resp.getWriter();\r\n ex.printStackTrace(out);\r\n return;\r\n }\r\n resp.setStatus(500);\r\n resp.setContentType(\"text/html\");\r\n PrintWriter out = resp.getWriter();\r\n out.println(\"<html>\");\r\n out.println(\" <head><title>Execution Error: 500</title></head>\");\r\n out.println(\" <body>\");\r\n out.println(\" <h2>Execution Error: \"+ex.getClass().getSimpleName()+\"</h2>\");\r\n out.println(\" <p>Stack trace:</p>\");\r\n out.print(\" <blockquote><pre>\");\r\n if (ex instanceof RhinoException) {\r\n RhinoException rex = (RhinoException)ex;\r\n rex.printStackTrace(out);\r\n } else {\r\n ex.printStackTrace(out);\r\n }\r\n out.println(\"</pre></blockquote>\");\r\n out.println(\" <p><address>Powered by Alt Framework</address></p>\");\r\n out.println(\" </body>\");\r\n out.println(\"</html>\");\r\n } catch (IOException ex2) {\r\n ex2.printStackTrace(System.err);\r\n }\r\n }",
"ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception,\n String errorMessage);",
"@Test\n\t\tpublic void testRestErrorResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getErrorResultString();\n\t\ttry {\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertTrue(flag);\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n public void log(Request request, Response response)\n {\n int committedStatus = response.getCommittedMetaData().getStatus();\n\n // only interested in error cases - bad request & server errors\n if ((committedStatus >= 500) || (committedStatus == 400))\n {\n super.log(request, response);\n }\n else\n {\n System.err.println(\"### Ignored request (response.committed.status=\" + committedStatus + \"): \" + request);\n }\n }",
"public void handleWriteResponseException(HttpRequest request, HttpResponse response, Exception e)\n {\n handleException(request, response, e);\n }",
"void errorResponse( String error );",
"@Override\r\n public Response toResponse(Exception exception) {\n Map<String, String> object = new HashMap<>();\r\n StackTraceElement[] stackTrace = exception.getStackTrace();\r\n if (stackTrace.length > 0) {\r\n StackTraceElement stackItem = stackTrace[0];\r\n if (BasicAuthFactory.class.getName().endsWith(stackItem.getClassName())) {\r\n return Response.status(Response.Status.UNAUTHORIZED).entity(object).build();\r\n }\r\n }\r\n object.put(\"message\", exception.getMessage());\r\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(object).build();\r\n }",
"private static Response getErrorResponse(Exception exception) {\n Response response = new Response();\n ResponseParams resStatus = new ResponseParams();\n String message = setMessage(exception);\n resStatus.setErrmsg(message);\n resStatus.setStatus(StatusType.FAILED.name());\n if (exception instanceof ProjectCommonException) {\n ProjectCommonException me = (ProjectCommonException) exception;\n resStatus.setErr(me.getCode());\n response.setResponseCode(ResponseCode.getHeaderResponseCode(me.getResponseCode()));\n } else {\n resStatus.setErr(ResponseCode.SERVER_ERROR.name());\n response.setResponseCode(ResponseCode.SERVER_ERROR);\n }\n response.setParams(resStatus);\n return response;\n }",
"protected void logError( HttpServletRequest req, HttpServletResponse resp, Exception ex, String str ) {\r\n\ttry {\r\n\t StringBuffer sb = new StringBuffer();\r\n\t sb.append(\"\\n---------- Gateway error:\\n\");\r\n\t sb.append(\"Error message: \" + str + \"\\n\");\r\n\t sb.append(\"Request method: \" + req.getMethod() + \"\\n\");\r\n\t sb.append(\"Query string: \" + req.getQueryString() + \"\\n\");\r\n\t sb.append(\"Content length: \" + req.getContentLength() + \"\\n\");\r\n\t sb.append(\"Cookies: ( session info )\\n\");\r\n\t Cookie[] cookies = req.getCookies();\r\n\t if (cookies == null || cookies.length == 0)\r\n\t\tsb.append(\"No cookies in the HTTP request\\n\");\r\n\t else {\r\n\t\tfor (int i = 0; i < cookies.length; i++) {\r\n\t\t sb.append(\"\\tName: \" + cookies[i].getName() + \"\\t\" + \"Value: \" + cookies[i].getValue() + \"\\n\");\r\n\t\t}\r\n\t }\r\n\t sb.append(\"\\n\");\r\n\t m_ctx.log( sb.toString(), ex );\r\n\t} catch (Exception e) {\r\n\t System.err.println(\"Error logging a message\");\r\n\t}\r\n }",
"public void addResponseToServerLogs(HttpExchange httpExchange, int statusCode, String responseMessage, String contentType, long id) {\n JSONObject object = new JSONObject();\n object.put(\"path\", httpExchange.getHttpContext().getPath());\n object.put(\"client_ip\", httpExchange.getRemoteAddress().getAddress().toString());\n object.put(\"log_time\", LocalDateTime.now().toString());\n object.put(\"type\", \"response\");\n object.put(\"id\", id);\n object.put(\"status_code\", statusCode);\n object.put(\"response_message\", responseMessage);\n object.put(\"content_type\", contentType);\n object.put(\"log_id\", logId);\n ++logId;\n serverLogsArray.add(object);\n }",
"private static void LogError(final String method,\n final ResponseResult result)\n {\n if (result != null && !StringHelper.isNullOrEmpty(result.errorMessage))\n {\n// Crashlytics.log(\"SharecareClient() FAILURE: \"\n// + String.format(ERROR_MESSAGE, method, result.responseCode,\n// result.errorMessage));\n }\n }",
"void setResponseFormatError(){\n responseFormatError = true;\n }",
"public ResultProxy addStandardException(Exception e){\n\t\taddRecordToDataset(\"exceptions\", new RecordProxy()\n\t\t\t.addParam(\"opstatus\", 10500)\n\t\t\t.addParam(\"httpStatusCode\", 500)\n\t\t\t.addParam(\"message\", e.getMessage())\n\t\t\t.addParam(\"class\", e.getClass().getCanonicalName())\n\t\t\t.addParam(\"stack\", ExceptionUtils.getStackTrace(e))\n\t\t);\n\t\t//\t)\n\t\t//);\n\n\t\treturn this;\n\t}",
"@Override\n\tpublic Response toResponse(Throwable arg0) {\n\t\tErrorMessage errorMsg = new ErrorMessage(arg0.getMessage(),500,\"http://www.google.com\");\n\t\treturn Response.status(Status.INTERNAL_SERVER_ERROR).entity(errorMsg).build();\n\t}",
"public SkPublishAPIException(String message, Throwable cause, int statusCode, String response) {\n super(message, cause);\n this.response = response;\n this.statusCode = statusCode;\n }",
"@Override\n public void doInit() throws ResourceException {\n super.doInit();\n setNegotiated(false); // Turn off content negotiation for now\n if (isExisting()) {\n try {\n SolrRequestInfo solrRequestInfo = SolrRequestInfo.getRequestInfo();\n if (null == solrRequestInfo) {\n final String message = \"No handler or core found in \" + getRequest().getOriginalRef().getPath();\n doError(Status.CLIENT_ERROR_BAD_REQUEST, message);\n setExisting(false);\n } else {\n solrRequest = solrRequestInfo.getReq();\n if (null == solrRequest) {\n final String message = \"No handler or core found in \" + getRequest().getOriginalRef().getPath();\n doError(Status.CLIENT_ERROR_BAD_REQUEST, message);\n setExisting(false);\n } else {\n solrResponse = solrRequestInfo.getRsp();\n solrCore = solrRequest.getCore();\n schema = solrRequest.getSchema();\n String responseWriterName = solrRequest.getParams().get(CommonParams.WT);\n if (null == responseWriterName) {\n responseWriterName = JSON; // Default to json writer\n }\n String indent = solrRequest.getParams().get(\"indent\");\n if (null == indent || ! (\"off\".equals(indent) || \"false\".equals(indent))) {\n // indent by default\n ModifiableSolrParams newParams = new ModifiableSolrParams(solrRequest.getParams());\n newParams.remove(indent);\n newParams.add(\"indent\", \"on\");\n solrRequest.setParams(newParams);\n }\n responseWriter = solrCore.getQueryResponseWriter(responseWriterName);\n contentType = responseWriter.getContentType(solrRequest, solrResponse);\n final String path = getRequest().getRootRef().getPath();\n if ( ! RestManager.SCHEMA_BASE_PATH.equals(path)) {\n // don't set webapp property on the request when context and core/collection are excluded \n final int cutoffPoint = path.indexOf(\"/\", 1);\n final String firstPathElement = -1 == cutoffPoint ? path : path.substring(0, cutoffPoint);\n solrRequest.getContext().put(\"webapp\", firstPathElement); // Context path\n }\n SolrCore.preDecorateResponse(solrRequest, solrResponse);\n\n // client application can set a timeout for update requests\n Object updateTimeoutSecsParam = getSolrRequest().getParams().get(UPDATE_TIMEOUT_SECS);\n if (updateTimeoutSecsParam != null)\n updateTimeoutSecs = (updateTimeoutSecsParam instanceof Number)\n ? ((Number) updateTimeoutSecsParam).intValue()\n : Integer.parseInt(updateTimeoutSecsParam.toString());\n\n }\n }\n } catch (Throwable t) {\n if (t instanceof OutOfMemoryError) {\n throw (OutOfMemoryError) t;\n }\n setExisting(false);\n throw new ResourceException(t);\n }\n }\n }",
"ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception);",
"@Override\r\n public Response toResponse(ServiceException ex) {\r\n return Response.status(500).\r\n entity(ex.getMessage() + \" : Service exception\").\r\n type(\"text/plain\").\r\n build();\r\n }",
"@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = \"IOException occured\")\n\t@ExceptionHandler(value=MyCustomException.class)\n\tpublic void myException(HttpServletResponse response) throws IOException {\n\t\t response.sendError(HttpStatus.NOT_FOUND.value());\n\t}",
"@ExceptionHandler({CSHRServiceException.class})\n @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n @ResponseBody\n public CSHRServiceStatus handleException(CSHRServiceException ex) {\n log.error(ex.getCshrServiceStatus().getSummary(), ex);\n\n return ex.getCshrServiceStatus();\n }",
"public SimpleResponse ERROR_CUSTOM() {\n this.success = false;\n this.timestamp = System.currentTimeMillis();\n this.message = this.message == null ? \"На данный момент Ваш запрос не может быть выполнен. Пожалуйста попробуйте обновить страницу или попробовать позже\"\n : this.message;\n\n return this;\n }",
"protected ErrorResponse()\n {\n super();\n }",
"public Response processError(RegistryError error)\n\t{\n\t String errorId = generateErrorId();\t \n\t\tif (Priority.ERROR_INT == error.getLogLevel())\n\t\t{\n\t\t\tif(error.getException() != null)\n\t\t slogger.error(\"processError\", error.getException(),\n\t\t LogWrapper.pair(\"error_id\", errorId), \n\t\t LogWrapper.pair(\"error_description\", error.getDescription()), LogWrapper.pair(\"error_exception\", error.getException()));\n\t\t else \n\t\t \tslogger.error(\"processError\", LogWrapper.pair(\"error_description\", error.getDescription()), LogWrapper.pair(\"error_exception\", error.getException()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(error.getException() != null)\n slogger.warn(\"processError\", error.getException(),LogWrapper.pair(\"error_id\", errorId),\n LogWrapper.pair(\"error_description\", error.getDescription()));\n else \n slogger.warn(\"processError\", LogWrapper.pair(\"error_id\", errorId),\n LogWrapper.pair(\"error_description\", error.getDescription()));\n\t\t}\n\t\tRestResponse entity = new RestResponse(error);\n\t\tentity.setErrorId(errorId);\t \n\t return Response.status(error.getStatus()).entity(entity).type(\"application/json\").build();\n\t \t\n\t}",
"public ServerException(Response.Status status) {\n super(status);\n }",
"@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}",
"private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessage = e.getCause() != null? e.getCause().getLocalizedMessage() : null;\n String combinedExceptionMessage = \"primary message:\"+exceptionPrimaryMessage+(exceptionSecondaryMessage!=null?(\"; secondary message: \"+exceptionSecondaryMessage):(\"\"));\n \n //chances are this is the Oracle MCS erro message. If so then ths message has a JSON format. A simple JSON parsing \n //test will show if our assumption is true. If JSONObject parsing fails then apparently the message is not the MCS\n //error message\n //{\n // \"type\":\".....\",\n // * \"status\": <error_code>,\n // * \"title\": \"<short description of the error>\",\n // * \"detail\": \"<long description of the error>\",\n // * \"o:ecid\": \"...\",\n // * \"o:errorCode\": \"MOBILE-<MCS error number here>\",\n // * \"o:errorPath\": \"<URI of the request>\"\n // }\n if(exceptionSecondaryMessage!=null){\n try {\n JSONObject jsonErrorObject = new JSONObject(exceptionSecondaryMessage);\n //if we get here, then its a Oracle MCS error JSON Object. Get the \n //status code or set it to 0 (means none is found)\n int statusCode = jsonErrorObject.optInt(\"status\", 0);\n throw new ServiceProxyException(statusCode, exceptionSecondaryMessage);\n \n } catch (JSONException jse) {\n //if parsing fails, the this is proof enough that the error message is not \n //an Oracle MCS message and we need to continue our analysis\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception message is not a Oracle MCS error JSONObject\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n } \n }\n \n //continue message analysis and check for known error codes for the references MCS API\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Rest invocation failed with following message\"+exceptionPrimaryMessage, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n int httpErrorCode = -1; \n String restoredOracleMcsErrorMessage = null;\n \n /*\n * Try to identify an MCS failure from the exception message.\n */\n if(combinedExceptionMessage.contains(\"400\")){\n httpErrorCode = 400; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(400, \"Invalid JSON payload\", \"One of the following problems occurred: \" +\n \"the user does not exist, the JSON is invalid, or a property was not found.\", uri);\n }\n else if(combinedExceptionMessage.contains(\"401\")){\n httpErrorCode = 401; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(401, \"Authorization failure\", \"The user is not authorized to retrieve the information for another user.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(403, \"Functionality is not supported\", \"Functionality is not supported.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(404, \"User not found\", \"The user with the specified ID does not exist.\",uri);\n }\n \n else{\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request failed with Exception: \"+e.getClass().getSimpleName()+\"; message: \"+e.getLocalizedMessage(), this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(e.getLocalizedMessage(), ServiceProxyException.ERROR);\n }\n //if we get here then again its an Oracle MCS error, though one we found by inspecting the exception message\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request succeeded successful but failed with MCS application error. HTTP response: \"+httpErrorCode+\", Error message: \"+restoredOracleMcsErrorMessage, this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(httpErrorCode, restoredOracleMcsErrorMessage);\n }",
"private void sendErrorResponse(String aText, int aStatus, HttpServletRequest aRequest, HttpServletResponse aResponse){\n try {\n aResponse.setStatus(aStatus);\n //fLogger.fine(\"Sending response in uncompressed form, as UTF-8. Length: \" + aText.length());\n String utf8Text = new String(aText.getBytes(), ENCODING);\n aResponse.setCharacterEncoding(\"UTF-8\");\n aResponse.setContentLength(utf8Text.getBytes().length); \n aResponse.setContentType(\"application/text\");\n PrintWriter out = aResponse.getWriter();\n out.append(utf8Text);\n } \n catch (IOException ex) {\n //in practice this won't happen\n logProblem(\"Problem sending an error response.\", ex);\n }\n }",
"private static String doListBuilderExceptionResponse(HttpServletRequest request, HttpServletResponse response, Paginator paginator, ListBuilderException e) {\n request.setAttribute(\"listBuilderException\", e); // save the exception\n return \"listBuilderException\"; // FormletEventHandler should check for this\n }",
"public Response handleRESTError(RegistryException exception)\n\t{\n\t\treturn processError(new RegistryError(exception));\n\t}",
"public ExceptionResponse(String message, HttpStatus httpStatus) {\n this.message = message;\n this.httpStatus = httpStatus;\n }",
"private QueryResponse loggedSolrQuery(String caller, SolrQuery solrQuery) throws SolrServerException, IOException {\n long solrNS = -System.nanoTime();\n QueryResponse rsp = solrServer.query(solrQuery, METHOD.POST);\n solrNS += System.nanoTime();\n String query = solrQuery.getQuery();\n query = query == null ? null : query.length() > 200 ? query.substring(0, 200) + \"...\" : query;\n/*\n log.debug(String.format(\"%s Solr response in %d ms (qtime=%d ms) with %d hits for query %s\", caller, solrNS / M, rsp.getQTime(),\n rsp.getResults().getNumFound(), query));\n */\n return rsp;\n }",
"private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }",
"ResponseErrorAssembler addErrorMesage(Message errorMessage);",
"public SkPublishAPIException(Throwable cause, int statusCode, String response) {\n super(cause);\n this.response = response;\n this.statusCode = statusCode;\n }",
"public void handleError(ClientHttpResponse response) throws IOException {\n }",
"private JsonNode processErrorResponse(final JsonNode resp) {\n String errorMessage = resp.get(\"error\").asText();\n if (resp.has(\"stack\")) {\n errorMessage += \"\\n\" + resp.get(\"stack\").asText();\n }\n\n throw new JsiiException(errorMessage);\n }",
"public Response handleRESTError(Throwable exception)\n\t{\n\t\tRegistryException sfException;\n\t\tif (exception instanceof RegistryException)\n\t\t{\n\t\t\tsfException = (RegistryException) exception;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsfException = new RegistryUnknownException(exception);\n\t\t}\n\t\treturn handleRESTError(sfException);\n\t}",
"@ExceptionHandler(value = Exception.class)\n @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n public ResponseEntity<?> exception(Exception exception, WebRequest request) {\n\n RestExceptionResponse response = new RestExceptionResponse();\n response.setSuccess(Boolean.FALSE);\n\n if (exception instanceof HttpMessageNotReadableException) {\n\n // Request body is not present or readable.\n LOGGER.warn(\"Request body not readable\", exception);\n response.setMessage(\"Required request body content\"\n + \" is missing or is not readable\");\n\n } else if (exception instanceof HttpMediaTypeNotAcceptableException) {\n\n // Request is not having acceptable media type representation.\n LOGGER.warn(\"Request mediatype not accetable\", exception);\n response.setMessage(\"Required acceptable mediatype representation\");\n\n } else if (exception instanceof NotFoundException) {\n\n LOGGER.warn(\"Requested resource does not exist\", exception);\n // Requested resource does not exist. NotFound means 404 and no respsonse body\n return ResponseEntity.notFound().build();\n\n } else if (exception instanceof TypeMismatchException) {\n\n // Type Mismatch Error for the request properties/attributes\n TypeMismatchException ex = (TypeMismatchException) exception;\n response.setSuccess(Boolean.FALSE);\n response.setMessage(ex.getMessage());\n response.addError(ex.getErrorCode(), ex.getInvalidReason());\n return ResponseEntity.badRequest().body(response);\n\n } else if (exception instanceof ConstraintViolationException) {\n\n // Bean validation erros are found. These errors normally violate the \n // validation annotations of the JSR-303 specification used in models.\n response.setMessage(\"Some values are missing or invalid\");\n ConstraintViolationException ex = (ConstraintViolationException) exception;\n ex.getConstraintViolations().stream().forEach(violation -> {\n response.addError(violation.getPropertyPath().toString(),\n violation.getMessage());\n });\n\n } else if (exception instanceof ValidationException) {\n\n // A ValidationException is thrown when a logical error is found.\n // Alternatively when the request conflicts with the requirements \n // of the business logic, such an exception is important.\n response.setMessage(\"Invalid request\");\n ValidationException ex = (ValidationException) exception;\n response.setMessage(ex.getMessage());\n\n } else {\n // Any other exceptions thrown\n LOGGER.error(\"Unexpected error\", exception);\n response.setMessage(\"Request couldn't be processed\");\n }\n\n return ResponseEntity.badRequest().body(response);\n }",
"private static void writeErrorResponse(\n final ChannelHandlerContext ctx,\n final FullHttpRequest request,\n final HttpResponseStatus status) {\n\n writeResponse(ctx, request, status, TYPE_PLAIN, status.reasonPhrase().toString());\n }",
"public boolean wasSolrErrorEncountered() {\n\n if (this.solrErrorEncountered) {\n return true;\n }\n if (!this.hasValidFilterQueries()) {\n setSolrErrorEncountered(true);\n return true;\n }\n return solrErrorEncountered;\n }",
"@Override\n\t\t\t\t\t\tpublic void onErrorResponse(String errorResponse) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"private void doSearchError(Map<String, Object> map, Configuration config, HttpServletRequest request, HttpServletResponse response) {\n writeTemplate(TEMPLATE_DEFAULT, map, config, request, response);\n }",
"@ResponseStatus(value = HttpStatus.NOT_FOUND)\n public String generalError(HttpServletRequest request, HttpServletResponse response, Model model) {\n // retrieve some useful information from the request\n\n String message = \"404 Not found\";\n\n model.addAttribute(\"errorMessage\", message);\n return \"error/general\";\n }",
"public SimpleResponse ERROR_NOT_FOUND() {\n this.state = HttpStatus.NOT_FOUND.value();\n return ERROR_CUSTOM();\n }",
"private void wrapError(String code, String message) {\r\n recentErrorCode = code;\r\n\r\n\t\t/* \r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_8453</code>\r\n\t\t *\t\t<message>[request_id=201203082] Failed to create a process module by wrong value of a parameter(=topic_id)</message>\r\n\t\t *\t</error>\r\n\t\t *\r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_4410</code>\r\n\t\t *\t\t<message>Topic ID <1000> does not exist.</message>\r\n\t\t *\t</error> \r\n\t\t*/\r\n if (\"TEAL_8453\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0155\";\r\n recentErrorMessage = message + \": argument's not valid (server-side): \" + recentServerErrorMessage;\r\n } else if (\"TEAL_4410\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0161\";\r\n recentErrorMessage = message + \": topic ID's not exist\";\r\n } else {\r\n recentErrorMessage = message + \" DUE TO [\" + recentServerErrorCode + \": \" + recentServerErrorMessage + \"]\";\r\n }\r\n\r\n recentServerErrorMessage = \"\";\r\n\r\n if (consoleLog) {\r\n System.out.println(\"[E!:\" + recentErrorCode + \"] \" + recentErrorMessage);\r\n }\r\n }",
"private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\n \n Exception exception = (Exception) request.getAttribute(\"exception\");\n String message;\n if (exception != null && exception.getMessage() != null) {\n message = exception.getMessage();\n } else {\n message = \"Unknown error\";\n }\n data.put(\"errore\",message);\n FreeMarker.process(\"404error.html\",data, response, getServletContext()); \n }",
"@SuppressWarnings(\"ThrowableNotThrown\") \n public static Response getSCIMInternalErrorResponse() {\n JSONEncoder encoder = new JSONEncoder();\n CharonException exception = new CharonException(\"Internal Error\");\n String responseStr = encoder.encodeSCIMException(exception);\n return Response.status(exception.getStatus()).entity(responseStr).build();\n }",
"@Override\n public final void accept(PutRecordResponse response, Throwable exception) {\n if (exception != null) {\n failedRequestCount++;\n appender.addError(\"Failed to publish a log entry to kinesis using appender: \" + appenderName, exception);\n } else {\n successfulRequestCount++;\n }\n }",
"@RequestMapping(\"generalError\")\n\tpublic String error(HttpServletRequest request, HttpServletResponse response, Model model) {\n\t\tString classpath = \"javax.servlet.error\";\n\t\tInteger statusCode = (Integer) request.getAttribute(classpath + \".status_code\");\n\t\tThrowable throwable= (Throwable) request.getAttribute(classpath + \".exception\");\n\t\tString exceptionMessage= getExceptionMessage(throwable, statusCode);\n\t\tString requestUri = (String) request.getAttribute(classpath + \".request_uri\");\n\t\tif (requestUri == null) requestUri = \"Unknown\";\n\t\t\n\t\tString message = MessageFormat.format(\"{0} returned for {1} with message {2}\", statusCode, requestUri, exceptionMessage);\n\t\tmodel.addAttribute(\"errorMessage\", message);\n\t\treturn \"error/general\";\n\t}",
"private static HttpResponse handleExceptionalStatus(\n HttpResponse response,\n UUID requestId,\n ApiName apiName,\n CloseableHttpClient httpClient,\n HttpUriRequest request,\n RequestBuilder requestBuilder)\n throws IOException, IngestResponseException, BackOffException {\n if (!isStatusOK(response.getStatusLine())) {\n StatusLine statusLine = response.getStatusLine();\n LOGGER.warn(\n \"{} Status hit from {}, requestId:{}\",\n statusLine.getStatusCode(),\n apiName,\n requestId == null ? \"\" : requestId.toString());\n\n // if we have a 503 exception throw a backoff\n switch (statusLine.getStatusCode()) {\n // If we have a 503, BACKOFF\n case HttpStatus.SC_SERVICE_UNAVAILABLE:\n throw new BackOffException();\n case HttpStatus.SC_UNAUTHORIZED:\n LOGGER.warn(\"Authorization failed, refreshing Token succeeded, retry\");\n requestBuilder.refreshToken();\n requestBuilder.addToken(request);\n response = httpClient.execute(request);\n if (!isStatusOK(response.getStatusLine())) {\n throw new SecurityException(\"Authorization failed after retry\");\n }\n break;\n default:\n String blob = consumeAndReturnResponseEntityAsString(response.getEntity());\n throw new IngestResponseException(\n statusLine.getStatusCode(),\n IngestResponseException.IngestExceptionBody.parseBody(blob));\n }\n }\n return response;\n }",
"@Override\r\n\t\t\tpublic void onErrorResponse(String errorMessage) {\n\r\n\t\t\t}",
"private void handleServiceException(PortletRequest request,\n PortletResponse response, Application application, Throwable e)\n throws IOException, PortletException {\n if (getRequestType(request) == RequestType.UIDL) {\n Application.SystemMessages ci = getSystemMessages();\n criticalNotification(request, (ResourceResponse) response,\n ci.getInternalErrorCaption(), ci.getInternalErrorMessage(),\n null, ci.getInternalErrorURL());\n if (application != null) {\n application.getErrorHandler()\n .terminalError(new RequestError(e));\n } else {\n throw new PortletException(e);\n }\n } else {\n // Re-throw other exceptions\n throw new PortletException(e);\n }\n \n }",
"@ResponseBody\n @ExceptionHandler(Exception.class)\n @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n ErrorResponse<String> unexpectedExceptionHandler(Exception exception) {\n // todo : it would be wise to log the exception information here as well\n\n return new ErrorResponse<>(ErrorCodes.UNEXPECTED_EXCEPTION.getCode());\n }",
"@Override\n\tpublic void commence(HttpServletRequest request, HttpServletResponse response,\n\t\t\tAuthenticationException authException) throws IOException, ServletException {\n\t\tApiResponse res = new ApiResponse(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorised\");\n\t\tres.setErrors(authException.getMessage());\n\t\tres.setStatus(false);\n OutputStream out = response.getOutputStream();\n ObjectMapper mapper = new ObjectMapper();\n mapper.writeValue(out, res);\n out.flush();\n\t}",
"@Override\n\tpublic Object handleDataException(DataException exc) {\n\t\tGenericResponsePayload grp = new GenericResponsePayload();\n\t\tString msg = DEFAULT_INTERNAL_SERVER_ERROR_MESSAGE;\n\t\tHttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;\n\t\tgrp.setMessage(msg);\n\t\treturn new ResponseEntity<>(grp, status);\n\t}",
"@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}",
"@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}",
"public void serializeExceptionResponse(final Exception e, final XmlWriter writer) throws RestXqServiceException {\n \n try {\n writer.setProperties(getDefaultSerializationProperties());\n \n final QName qnResponse = new QName(\"response\", Namespace.ANNOTATION_NS);\n final QName qnException = new QName(\"exception\", Namespace.ANNOTATION_ERROR_NS);\n final QName message = new QName(\"message\", Namespace.ANNOTATION_ERROR_NS);\n final QName qnStack = new QName(\"stack\", Namespace.ANNOTATION_ERROR_NS);\n\n writer.startDocument();\n writer.startElement(qnResponse);\n writer.startElement(qnException);\n writer.startElement(message);\n writer.characters(e.getClass().getName() + \": \" + e.getLocalizedMessage());\n \n final StackTraceElement[] trace = e.getStackTrace();\n for(final StackTraceElement element : trace) {\n \n final Attribute attributes[] = {\n attribute(new QName(\"file\"), element.getFileName()),\n attribute(new QName(\"class\"), element.getClassName()),\n attribute(new QName(\"method\"), element.getMethodName()),\n attribute(new QName(\"line\"), Integer.toString(element.getLineNumber()))\n };\n \n writer.startElement(qnStack, attributes);\n writer.endElement();\n }\n \n writer.endElement();\n writer.endElement();\n writer.endElement();\n writer.endDocument();\n \n } catch(IOException ioe) { \n throw new RestXqServiceException(\"Error while serializing XML for exception '\" + e.getClass().getName() + \":\" + e.getMessage() + \"': \" + ioe.toString(), ioe);\n }\n }",
"private void failedClientResponse(String error) {\n JSONObject j = new JSONObject();\n j.put(\"statuscode\", 400);\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", new JSONArray().add(error));\n output.println(j);\n output.flush();\n }",
"public RestApiException(final Response response) {\n\t\tsuper(response);\n\t\t// logger.error(\"stackTraceToString(this) = {}\", stackTraceToString(this));\n\t}",
"public SimpleResponse ERROR() {\n this.state = HttpStatus.BAD_REQUEST.value();\n\n return ERROR_CUSTOM();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"private static Response handleIOError(IOException e) {\n log.log(Level.WARNING, \"Error retrieving values\", e);\n ServiceError errMsg = new ServiceError(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), \"Internal error retrieving value. If this error persists, please contact the site administrator\");\n return Response.status(Response.Status.BAD_REQUEST)\n .entity(errMsg)\n .build();\n }",
"protected ResultEntity error(Exception ex) {\n log.error(ex);\n resultEntity.setMessage(ex.getMessage());\n if (ex instanceof CustomException) {\n CustomException customException = (CustomException) ex;\n resultEntity.setCode(customException.getCode());\n resultEntity.setData(customException.getData());\n } else {\n resultEntity.setCode(500);\n resultEntity.setMessage(\"Internal Server Error \" + ex.getMessage());\n }\n return resultEntity;\n }",
"public void doError (int statuscode, Exception e) {\n\tStringWriter sw = new StringWriter ();\n\tPrintWriter ps = new PrintWriter (sw);\n\te.printStackTrace (ps);\n\tString message = sw.toString ();\n\tthis.statusCode = Integer.toString (statuscode);\n\textraInfo = (extraInfo != null ? \n\t\t extraInfo + e.toString () : \n\t\t e.toString ());\n\tHttpHeader header = null;\n\tif (statuscode == 504) \n\t header = getHttpGenerator ().get504 (e, requestLine);\n\telse \n\t header = getHttpGenerator ().getHeader (\"HTTP/1.0 400 Bad Request\");\n\t\n\tStringBuilder sb = new StringBuilder ();\n\tsb.append (HtmlPage.getPageHeader (this, statuscode + \" \" + \n\t\t\t\t\t header.getReasonPhrase ()) +\n\t\t \"Unable to handle request:<br><b>\" + \n\t\t e.getMessage () +\n\t\t (header.getContent () != null ? \n\t\t \"<br>\" + header.getContent () : \n\t\t \"\") + \n\t\t \"</b><br><xmp>\" + message + \"</xmp></body></html>\\n\");\n\theader.setContent (sb.toString ());\n\tsendAndClose (header);\n }",
"public SimpleResponse ERROR_INTERNAL_SERVER() {\n this.state = HttpStatus.INTERNAL_SERVER_ERROR.value();\n return ERROR_CUSTOM();\n }",
"private String validateErrorResponse(Response response) {\n\t\t\n\t\tlogger.debug(response.body().asString());\t\n\t\treturn response.body().asString();\n\t\t\n\t\t\n\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)\n {\n super.onFailure(statusCode, headers, responseString, throwable);\n System.out.println(\"applyBook-->onFailure\" + statusCode);\n }",
"@Override\n\tpublic Response toResponse(USZipCodeNotFoundException exception) {\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"{\");\n\t\tsb.append(\"\\\"status\\\":\\\"error\\\"\");\n\t\tsb.append(\",\");\n\t\tsb.append(\"\\\"message\\\":\\\"Zip Code Not Found\\\"\");\n\t\tsb.append(\"}\");\n\t\t\n\t\treturn Response.serverError().entity(sb.toString()).type(MediaType.APPLICATION_JSON).build();\n\t}",
"private void sendProcessingError(Throwable t, ServletResponse response) {\n String stackTrace = getStackTrace(t); \n \n if (stackTrace != null && !stackTrace.equals(\"\")) {\n try {\n response.setContentType(\"text/html\");\n PrintStream ps = new PrintStream(response.getOutputStream());\n PrintWriter pw = new PrintWriter(ps); \n pw.print(\"<html>\\n<head>\\n<title>Error</title>\\n</head>\\n<body>\\n\"); //NOI18N\n\n // PENDING! Localize this for next official release\n pw.print(\"<h1>We had an error converting the URL to HTTPS</h1>\\n<pre>\\n\"); \n pw.print(stackTrace); \n pw.print(\"</pre></body>\\n</html>\"); //NOI18N\n pw.close();\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n } else {\n try {\n PrintStream ps = new PrintStream(response.getOutputStream());\n t.printStackTrace(ps);\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n }\n }",
"protected String logStatus(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {\n StringBuilder msg = new StringBuilder();\n msg.append(\"< status: [\");\n if (responseContext.getStatusInfo() != null) {\n msg.append(responseContext.getStatusInfo().getStatusCode());\n msg.append(\"]; family: [\").append(responseContext.getStatusInfo().getFamily());\n msg.append(\"]; reasonPhrase: [\").append(responseContext.getStatusInfo().getReasonPhrase()).append(\"]\");\n }\n msg.append(\"]\\n\");\n return msg.toString();\n }",
"@Override\r\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tonMyError(arg0);\r\n\t\t\t}",
"public void setResponseError(boolean value)\n\t{\n\t\tthis.responseError = value;\n\t}",
"public ApplicationErrorException(String message){\n super(message);\n Logger.getLogger(ApplicationErrorException.class).error(message);\n }",
"@Override\r\n\t\t\t\t\tpublic void error(ResponseError error) {\n\t\t\t\t\t\tTools.toastShow(error.getMessage());\r\n\t\t\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"@Override\n public void commence(HttpServletRequest request,\n HttpServletResponse response,\n AuthenticationException authException) throws IOException {\n\n String requestURI = request.getRequestURI();\n if(requestURI.startsWith(\"/api\")){\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n response.setContentType(\"application/json;charset=utf-8\");\n PrintWriter out = response.getWriter();\n BaseResponse baseResponse = new BaseResponse();\n baseResponse.setMessage(authException.getMessage());\n baseResponse.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n out.write(new ObjectMapper().writeValueAsString(baseResponse));\n out.flush();\n out.close();\n\n// response.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());\n }else {\n response.sendRedirect(\"/login?redirect=\"+requestURI);\n }\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {\n\n Log.i(\"onFailure\", res);\n }",
"public void errorResponse(int code, String msg){\n msg = errorMessage(code, msg);\n StringReader inputStream = new StringReader( msg );\n\n Content ct = new crc.content.text.html( inputStream, this );\n Transaction response = new HTTPResponse( Pia.instance().thisMachine,\n\t\t\t\t\t toMachine(), ct, false);\n response.setStatus( code );\n response.setContentType( \"text/html\" );\n response.setContentLength( msg.length() );\n Pia.debug(this, \"The header : \\n\" + response.headersAsString() );\n response.startThread();\n }",
"public RESTReponse saveResponse(TouchPointFieldResearcherDTO touchpointFieldResearcherDTO)\n throws AppException, CustomReasonPhraseException;"
] | [
"0.6081164",
"0.60092944",
"0.591956",
"0.5831709",
"0.5807525",
"0.57487166",
"0.5672291",
"0.5660019",
"0.56544626",
"0.5553475",
"0.55191237",
"0.5499379",
"0.5493568",
"0.547374",
"0.5466346",
"0.54469895",
"0.54357433",
"0.5427929",
"0.5403259",
"0.5397802",
"0.5393749",
"0.53895646",
"0.53436714",
"0.53420484",
"0.534076",
"0.5295478",
"0.52940714",
"0.5285443",
"0.52707905",
"0.5261794",
"0.52617043",
"0.52495277",
"0.5234764",
"0.5232495",
"0.52278465",
"0.52190477",
"0.5200861",
"0.5199942",
"0.5174708",
"0.516115",
"0.5153338",
"0.5151367",
"0.51440686",
"0.51386",
"0.5135664",
"0.51350117",
"0.5130916",
"0.51187634",
"0.51101935",
"0.5107291",
"0.5097382",
"0.50898284",
"0.5078391",
"0.50723815",
"0.50715226",
"0.50539947",
"0.50406706",
"0.50365764",
"0.503657",
"0.5035029",
"0.50273395",
"0.50206333",
"0.5019575",
"0.5016272",
"0.5002293",
"0.4972515",
"0.49716154",
"0.49690494",
"0.49677143",
"0.49653178",
"0.49637377",
"0.49576172",
"0.49541682",
"0.49492946",
"0.49492946",
"0.4946474",
"0.49454415",
"0.49413222",
"0.49365383",
"0.4936438",
"0.4936438",
"0.49352705",
"0.49351373",
"0.4934183",
"0.49224502",
"0.49075848",
"0.49040478",
"0.49038255",
"0.48970455",
"0.4895482",
"0.48905882",
"0.4873658",
"0.48601115",
"0.48586786",
"0.4858214",
"0.4858214",
"0.4856123",
"0.48504758",
"0.48401415",
"0.48327896"
] | 0.7163908 | 0 |
Decode URLencoded strings as UTF8, and avoid converting "+" to space | protected static String urlDecode(String str) throws UnsupportedEncodingException {
return URLDecoder.decode(str.replace("+", "%2B"), "UTF-8");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String urlDecode(String toDecode) throws UnsupportedEncodingException{\r\n\t\treturn URLDecoder.decode(toDecode, \"UTF-8\");\r\n\t}",
"String decodeString();",
"public static String URLdecode (String enc) {\n\tenc = enc.replace ('+', ' ');\n\tint i = 0;\n\twhile (true) {\n\t i = enc.indexOf ('%', i);\n\t if (i < 0) \n\t\tbreak;\n\t try {\n\t\tchar c = (char) Integer.parseInt (enc.substring (i + 1,i + 3), 16);\n\t\tenc = enc.substring (0, i) + c + enc.substring (i + 3);\n\t } catch (NumberFormatException e) {\n\t\t// ignore\n\t }\n\t}\n\treturn enc;\n }",
"public static String decodeURL(String url) {\n\t\tint len = url.length();\n\t\tbyte[] bytes = new byte[len];\n\t\tint size = 0;\n\t\tboolean simple = true;\n\n\t\tfor (int i = 0; i < len; ++i) {\n\n\t\t\tbyte b = (byte) url.charAt(i);\n\n\t\t\tif (b == '+') {\n\t\t\t\tsimple = false;\n\t\t\t\tb = ' ';\n\t\t\t} else if (b == '%') {\n\t\t\t\tsimple = false;\n\n\t\t\t\ti += 2;\n\n\t\t\t\tif (i >= len)\n\t\t\t\t\tbreak;\n\n\t\t\t\tb = getByte(url.charAt(i - 1), url.charAt(i));\n\t\t\t}\n\n\t\t\tbytes[size++] = b;\n\t\t}\n\n\t\tString result = xmiCharset.decode(ByteBuffer.wrap(bytes, 0, size))\n\t\t\t.toString();\n\n\t\tif (simple && result.equals(url))\n\t\t\tresult = url; // reuse the input string\n\n\t\treturn result;\n\t}",
"static String uriUnescapeString(String escaped) {\n try {\n return URLDecoder.decode(escaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }",
"private String decodeURL(String text, boolean needDecode) {\n if (!needDecode) {\n return text;\n }\n\n try {\n return URLDecoder.decode(text, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // ignore\n }\n return text;\n }",
"private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }",
"public EncodeAndDecodeStrings() {}",
"public static String urlDecode(String str) {\n try {\n return URLDecoder.decode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }",
"@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }",
"protected static String decodePercent(String str) {\n\t\tString decoded = null;\n\t\ttry {\n\t\t\tdecoded = URLDecoder.decode(str, \"UTF8\");\n\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\tNanoHTTPDSingleFile.LOG.log(Level.WARNING, \"Encoding not supported, ignored\", ignored);\n\t\t}\n\t\treturn decoded;\n\t}",
"public static void main(String[] args) {\n String urlStr = URLEncoder.encode(\"疯狂动物城\");\n System.out.println(urlStr);\n String decoder = URLDecoder.decode(urlStr);\n System.out.println(decoder);\n }",
"@DISPID(1097) //= 0x449. The runtime will prefer the VTID if present\n @VTID(20)\n java.lang.String urlUnencoded();",
"public static String convertUrlToPunycodeIfNeeded(String url) {\n if (!Charset.forName(\"US-ASCII\").newEncoder().canEncode(url)) {\n if (url.toLowerCase().startsWith(\"http://\")) {\n url = \"http://\" + IDN.toASCII(url.substring(7));\n } else if (url.toLowerCase().startsWith(\"https://\")) {\n url = \"https://\" + IDN.toASCII(url.substring(8));\n } else {\n url = IDN.toASCII(url);\n }\n }\n return url;\n }",
"@Override\r\n\t\tpublic String decode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar cs[] = (str).toCharArray();\r\n\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(cs.length);\r\n\t\t\tfor (int i = 0, ci = cs.length; i < ci; i++) {\r\n\t\t\t\tif(cs[i] == '&') {\r\n\t\t\t\t\tif(i < ci - 4 && cs[i + 1] == '#' && cs[i + 4] == ';'){\r\n\t\t\t\t\t\tif(cs[i + 2] == '6' && cs[i + 3] == '0'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('<');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '6' && cs[i + 3] == '2'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('>');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '8'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('&');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '9'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('\\'');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '4'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('\"');\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t}",
"@Override\r\n\t\tpublic String decode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar cs[] = (str).toCharArray();\r\n\t\t\t\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(cs.length);\r\n\t\t\tfor (int i = 0, ci = cs.length; i < ci; i++) {\r\n\t\t\t\tif(cs[i] == '&') {\r\n\t\t\t\t\tif(i < ci - 3 && cs[i + 1] == 'l' && cs[i + 2] == 't' && cs[i + 3] == ';'){\r\n\t\t\t\t\t\ti += 3;\r\n\t\t\t\t\t\tresult.append('<');\r\n\t\t\t\t\t}else if(i < ci - 3 && cs[i + 1] == 'g' && cs[i + 2] == 't' && cs[i + 3] == ';'){\r\n\t\t\t\t\t\ti += 3;\r\n\t\t\t\t\t\tresult.append('>');\r\n\t\t\t\t\t}else if(i < ci - 4 && cs[i + 1] == 'a' && cs[i + 2] == 'm' && cs[i + 3] == 'p' && cs[i + 4] == ';'){\r\n\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\tresult.append('&');\r\n\t\t\t\t\t}else if(i < ci - 5 && cs[i + 1] == 'a' && cs[i + 2] == 'p' && cs[i + 3] == 'o' && cs[i + 4] == 's' && cs[i + 5] == ';'){\r\n\t\t\t\t\t\ti += 5;\r\n\t\t\t\t\t\tresult.append('\\'');\r\n\t\t\t\t\t}else if(i < ci - 5 && cs[i + 1] == 'q' && cs[i + 2] == 'u' && cs[i + 3] == 'o' && cs[i + 4] == 't' && cs[i + 5] == ';'){\r\n\t\t\t\t\t\ti += 5;\r\n\t\t\t\t\t\tresult.append('\"');\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn result.toString();\r\n\t\t}",
"public String decode(String shortUrl) {\n return code2url.containsKey(shortUrl) ? code2url.get(shortUrl) : \"\";\n }",
"public String decode(String shortUrl) {\n return mapper.get(shortUrl); \n }",
"private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }",
"private String decode(String filename) {\r\n\t\ttry {\r\n\t\t\treturn URLDecoder.decode(filename, \"UTF-8\");\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\tlog.error(\"How did this happen?\", e);\r\n\t\t\treturn filename;\r\n\t\t}\r\n\t}",
"public String decode(String str) throws DecoderException {\n/* 295 */ if (str == null) {\n/* 296 */ return null;\n/* */ }\n/* */ try {\n/* 299 */ return decode(str, getDefaultCharset());\n/* 300 */ } catch (UnsupportedEncodingException e) {\n/* 301 */ throw new DecoderException(e.getMessage(), e);\n/* */ } \n/* */ }",
"@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }",
"public String decode(String shortUrl) {\n return shortToLongUrl.getOrDefault(shortUrl.replace(\"http://tinyurl.com/\", \"\"), \"\");\n }",
"public static String decodeValue(String value) {\n try {\n return URLDecoder.decode(value, StandardCharsets.UTF_8.toString());\n } catch (UnsupportedEncodingException ex) {\n throw new RuntimeException(ex.getCause());\n }\n }",
"public static String decode(String URLEncoded)\n throws MalformedURLException\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.decode( URLEncoded);\n }",
"public String decode(String shortUrl) {\n String key = shortUrl.substring(shortUrl.length()-keyLength, shortUrl.length());\n if (shortToLong.containsKey(key)) {\n return shortToLong.get(key);\n } else {\n return \"\";\n }\n }",
"public String decode(String shortUrl) {\n return map.get(Integer.valueOf(shortUrl.replace(\"http://tinyurl.com/\", \"\")));\n }",
"public static String decode(String decode) {\n StringBuilder str = new StringBuilder(decode);\n Matcher m = Pattern.compile(\"&[A-Za-z]+;\").matcher(str);\n String replaceStr = null;\n\n int matchPointer = 0;\n while (m.find(matchPointer)) {\n // check if we have a corresponding key in our map\n replaceStr = fromHtmlEntity(m.group());\n str.replace(m.start(), m.end(), replaceStr);\n matchPointer = m.start() + replaceStr.length();\n }\n\n return str.toString();\n }",
"public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public static String unEscapeURL(String src) {\n\t StringBuffer bf = new StringBuffer();\n\t char[] s = src.toCharArray();\n\t for (int k = 0; k < s.length; ++k) {\n\t char c = s[k];\n\t if (c == '%') {\n\t if (k + 2 >= s.length) {\n\t bf.append(c);\n\t continue;\n\t }\n\t int a0 = PRTokeniser.getHex(s[k + 1]);\n\t int a1 = PRTokeniser.getHex(s[k + 2]);\n\t if (a0 < 0 || a1 < 0) {\n\t bf.append(c);\n\t continue;\n\t }\n\t bf.append((char)(a0 * 16 + a1));\n\t k += 2;\n\t }\n\t else\n\t bf.append(c);\n\t }\n\t return bf.toString();\n\t}",
"public String decode(String shortUrl) {\n if (!map.containsKey(shortUrl)) return \"\";\n return map.get(shortUrl);\n }",
"private static String translateUrl(Reader r) throws IOException {\n StringBuilder s = new StringBuilder();\n while (true) {\n int c = r.read();\n if (c < 0) return s.toString();\n else if (c == '%') appendMultibyte(r, s);\n else if (c == '+') s.append(' ');\n else s.append((char) c);\n }\n }",
"Object decode(String encoded);",
"static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }",
"public String decode(String str, String charsetName) throws DecoderException, UnsupportedEncodingException {\n/* 276 */ if (str == null) {\n/* 277 */ return null;\n/* */ }\n/* 279 */ return new String(decode(StringUtils.getBytesUsAscii(str)), charsetName);\n/* */ }",
"static private String ToUrlEncoded(String word) {\n\t\tString urlStr = null;\n\t\ttry {\n\t\t\turlStr = URLEncoder.encode(word,CharSet);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn urlStr;\n\t}",
"private static String decodeAndCleanUriString(HttpServletRequest request, String uri) {\n uri = decodeRequestString(request, uri);\n int semicolonIndex = uri.indexOf(';');\n return (semicolonIndex != -1 ? uri.substring(0, semicolonIndex) : uri);\n }",
"public static String decodeString(String s) {\r\n \t\treturn new String(decode(s));\r\n \t}",
"public String decode(String shortUrl) {\n return keyToUrl.get(shortUrl.replace(BASE_HOST, \"\"));\n }",
"@Test\n public void testDecodeCategoryId() throws Exception {\n String input = \"ibm:///catalog/category/UK_Fish_%2B_Chips\";\n String expected = \"ibm:///catalog/category/UK_Fish_+_Chips\";\n\n assertThat(decodeId(input)).isEqualTo(expected);\n }",
"private static String decode(String s) {\n\t\tint length = s.length();\n\t\tStringBuilder str = new StringBuilder(length);\n\t\tMatcher matcher = PATTERN.matcher(s);\n\t\tint offset = 0;\n\t\tbyte[] bb = null;\n\t\twhile (matcher.find(offset)) {\n\t\t\tint count = matcher.groupCount();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString match = matcher.group(0);\n\t\t\t\tint num = match.length() / 3;\n\t\t\t\tif (bb == null || bb.length < num) {\n\t\t\t\t\tbb = new byte[num];\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < num; j++) {\n\t\t\t\t\tint head = j * 3 + 1;\n\t\t\t\t\tint tail = head + 2;\n\t\t\t\t\tbb[j] = (byte)Integer.parseInt(match.substring(head, tail), 16);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tString text = new String(bb, \"UTF-8\");\n\t\t\t\t\tstr.append(s.substring(offset, matcher.start()));\n\t\t\t\t\tstr.append(text);\n\t\t\t\t}\n\t\t\t\tcatch (UnsupportedEncodingException e) {\n\t\t\t\t\t// NOTE: This should *never* be thrown because all\n\t\t\t\t\t// JVMs are required to support UTF-8. I mean,\n\t\t\t\t\t// the strings in the .class file are all in\n\t\t\t\t\t// a modified UTF-8, for pete's sake! :)\n\t\t\t\t}\n\t\t\t}\n\t\t\toffset = matcher.end();\n\t\t}\n\t\tif (offset < length) {\n\t\t\tstr.append(s.substring(offset));\n\t\t}\n\t\treturn str.toString();\n\t}",
"@SuppressWarnings({\"deprecation\"})\n public static String decodeRequestString(HttpServletRequest request, String source) {\n String enc = determineEncoding(request);\n try {\n return URLDecoder.decode(source, enc);\n } catch (UnsupportedEncodingException ex) {\n /*\n if (log.isWarnEnabled()) {\n log.warn(\"Could not decode request string [\" + source + \"] with encoding '\" + enc +\n \"': falling back to platform default encoding; exception message: \" + ex.getMessage());\n }\n */\n return URLDecoder.decode(source);\n }\n }",
"public String encodeURL(String s) {\n\t\treturn null;\n\t}",
"public String decode(String shortUrl) {\n\t int key = Integer.parseInt(shortUrl);\n\t return map.get(key);\n\t }",
"private static String decodeString(String encoded) throws NullPointerException {\n byte[] dataDec = Base64.decode(encoded, Base64.DEFAULT);\n String decodedString = \"\";\n try {\n decodedString = new String(dataDec, \"UTF-8\");\n } catch (UnsupportedEncodingException ignored) {\n }\n return decodedString;\n }",
"public static String replaceURLEscapeChars(String value) {\n\t\tvalue = replace(value, \"#\", \"%23\");\n\t\tvalue = replace(value, \"$\", \"%24\");\n\t\tvalue = replace(value, \"%\", \"%25\");\n\t\tvalue = replace(value, \"&\", \"%26\");\n\t\tvalue = replace(value, \"@\", \"%40\");\n\t\tvalue = replace(value, \"'\", \"%60\");\n\t\tvalue = replace(value, \"/\", \"%2F\");\n\t\tvalue = replace(value, \":\", \"%3A\");\n\t\tvalue = replace(value, \";\", \"%3B\");\n\t\tvalue = replace(value, \"<\", \"%3C\");\n\t\tvalue = replace(value, \"=\", \"%3D\");\n\t\tvalue = replace(value, \">\", \"%3E\");\n\t\tvalue = replace(value, \"?\", \"%3F\");\n\t\tvalue = replace(value, \"[\", \"%5B\");\n\t\tvalue = replace(value, \"\\\\\", \"%5C\");\n\t\tvalue = replace(value, \"]\", \"%5D\");\n\t\tvalue = replace(value, \"^\", \"%5E\");\n\t\tvalue = replace(value, \"{\", \"%7B\");\n\t\tvalue = replace(value, \"|\", \"%7C\");\n\t\tvalue = replace(value, \"}\", \"%7D\");\n\t\tvalue = replace(value, \"~\", \"%7E\");\n\t\treturn value;\n\t}",
"@Override\n protected String decodeFragment(String encodedFragment) {\n return encodedFragment;\n }",
"public abstract String encodeURL(CharSequence url);",
"@Test\n\tvoid testDecodeString() {\n\t\tassertEquals(\"aaabcbc\", new DecodeString().decodeString(\"3[a]2[bc]\"));\n\t\tassertEquals(\"accaccacc\", new DecodeString().decodeString(\"3[a2[c]]\"));\n\t\tassertEquals(\"abcabccdcdcdef\", new DecodeString().decodeString(\"2[abc]3[cd]ef\"));\n\t\tassertEquals(\"absabcabccdcdcdef\", new DecodeString().decodeString(\"abs2[abc]3[cd]ef\"));\n\t\tassertEquals(\"f\", new DecodeString().decodeString(\"f\"));\n\t\tassertEquals(\"\", new DecodeString().decodeString(\"\"));\n\t\tassertEquals(\"abababababababababababab\", new DecodeString().decodeString(\"12[ab]\"));\n\t}",
"@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}",
"public String encodeUrl(String s) {\n\t\treturn null;\n\t}",
"private String extractQuery(String str) throws UnsupportedEncodingException {\n\t\tif (!str.isEmpty()) {\n\t\t\tstr = str.trim().replaceAll(\"[^a-zA-Z0-9\\\\s]\", \"\");\n\t\t\tstr = str.replaceAll(\"[\\\\p{Punct}]+\", \"\");\n\t\t\tstr = str.trim().replaceAll(\"[\\\\s]+\", \" \");\n\t\t}\n\n\t\treturn str;\n\t}",
"public static String decodeTwitterJson(String s) {\r\n return s.replace(\"<\", \"<\").replace(\">\", \">\");\r\n }",
"private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}",
"private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\n\t}",
"public Object decode(Object obj) throws DecoderException {\n/* 341 */ if (obj == null)\n/* 342 */ return null; \n/* 343 */ if (obj instanceof byte[])\n/* 344 */ return decode((byte[])obj); \n/* 345 */ if (obj instanceof String) {\n/* 346 */ return decode((String)obj);\n/* */ }\n/* 348 */ throw new DecoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL decoded\");\n/* */ }",
"public static String decodeQueryValue(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 }",
"public byte[] decode(byte[] bytes) throws DecoderException {\n/* 215 */ return decodeUrl(bytes);\n/* */ }",
"byte[] decodeConfigUrlSafe2(byte[] encoded);",
"private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\n }",
"@Test\n public void testNormalizeToStringWithPlusCharacter() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/ivy-1.+.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/ivy-1.%2B.xml\", normalizedUrl);\n }",
"public String decode(String shortUrl) {\n return map.get(shortUrl);\n }",
"public String decode(String shortUrl) {\n return map.get(shortUrl);\n }",
"@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}",
"private static void decodeString(String in){\n\t\t//reverse anything done in encoded string\n\t\tString demess = decrypt(in);\n\t\tString decodeMessage = bigIntDecode(demess);\n\n\t\tSystem.out.println(\"Decoded message: \" + decodeMessage + \"***make function to actually decode!\");\n\t}",
"private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }",
"public static final byte[] decodeUrl(byte[] bytes) throws DecoderException {\n/* 167 */ if (bytes == null) {\n/* 168 */ return null;\n/* */ }\n/* 170 */ ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n/* 171 */ for (int i = 0; i < bytes.length; i++) {\n/* 172 */ int b = bytes[i];\n/* 173 */ if (b == 43) {\n/* 174 */ buffer.write(32);\n/* 175 */ } else if (b == 37) {\n/* */ try {\n/* 177 */ int u = Utils.digit16(bytes[++i]);\n/* 178 */ int l = Utils.digit16(bytes[++i]);\n/* 179 */ buffer.write((char)((u << 4) + l));\n/* 180 */ } catch (ArrayIndexOutOfBoundsException e) {\n/* 181 */ throw new DecoderException(\"Invalid URL encoding: \", e);\n/* */ } \n/* */ } else {\n/* 184 */ buffer.write(b);\n/* */ } \n/* */ } \n/* 187 */ return buffer.toByteArray();\n/* */ }",
"public String decode(String shortUrl) {\n int index = shortUrl.lastIndexOf(SEPERATE);\n int pos = Integer.parseInt(shortUrl.substring(index+ 1));\n String encode = shortUrl.substring(PREFIX.length(), index);\n List<String> list = shortToLong.getOrDefault(encode, new ArrayList<>());\n if (list.size() <= pos) {\n throw new RuntimeException();\n }\n return list.get(pos);\n }",
"private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}",
"String nextLegacyURL()\n {\n StringBuilder sb = new StringBuilder();\n\n while (!empty())\n {\n int ch = input.charAt(position);\n\n if (ch == '\\'' || ch == '\"' || ch == '(' || ch == ')' || isWhitespace(ch) || Character.isISOControl(ch))\n break;\n\n position++;\n if (ch == '\\\\')\n {\n if (empty()) // EOF: do nothing\n continue;\n // Escaped char sequence\n ch = input.charAt(position++);\n if (ch == '\\n' || ch == '\\r' || ch == '\\f') { // a CSS newline\n continue; // Newline: consume it\n }\n int hc = hexChar(ch);\n if (hc != -1) {\n int codepoint = hc;\n for (int i=1; i<=5; i++) {\n if (empty())\n break;\n hc = hexChar( input.charAt(position) );\n if (hc == -1) // Not a hex char\n break;\n position++;\n codepoint = codepoint * 16 + hc;\n }\n sb.append((char) codepoint);\n continue;\n }\n // Other chars just unescape to themselves\n // Fall through to append\n }\n sb.append((char) ch);\n }\n if (sb.length() == 0)\n return null;\n return sb.toString();\n }",
"private static CharSequence decodedString(String string) {\n\t\treturn null;\r\n\t}",
"private String decode(String filtered) {\n // buffer for the decoded number\n char decoded[] = new char[filtered.length()];\n // iterate through characters\n for (int i = 0; i < filtered.length(); i++) {\n // decode char-by-char\n decoded[i] = encoding.get(filtered.charAt(i));\n }\n return new String(decoded);\n }",
"public static String decode(String string){\n\t\treturn new String(decode(string.getBytes()));\n\t}",
"protected String getUTF8Str(String str) throws UnsupportedEncodingException {\n return new String(str.getBytes(\"iso-8859-1\"), \"utf-8\");\r\n }",
"public String decode (String string){\n try {\n byte[] tmp2 = Base64.decode(string,Base64.DEFAULT);\n str = new String(tmp2,\"UTF-8\");str = new String(tmp2,\"UTF-8\");\n } catch (Exception ex){ex.printStackTrace();}\n return str;\n }",
"@Test\n public void testEncoding() throws URISyntaxException, MalformedURLException, UnsupportedEncodingException {\n String encoded = URLEncoder.encode(\"*,\", \"UTF-8\");\n\n //legal to use * and ,\n URI uri = new URI(\"http://localhost/ehcache/sampleCache1/*,\");\n URI url2 = uri.resolve(\"http://localhost/ehcache/sampleCache1/*,\");\n\n }",
"public void decodeFromUrlString(String newValue) throws IOException {\n decodeWritable(this, newValue);\n }",
"public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }",
"public static String decode(String str) throws UnsupportedEncodingException {\n byte[] base64decodedBytes = Base64.getDecoder().decode(str);\n return new String(base64decodedBytes, \"utf-8\");\n }",
"private String base64Decode(String xmlAsBase64String, String xmlEncoding) throws UnsupportedEncodingException {\r\n\r\n byte[] xmlAsBase64 = Base64.decodeBase64(xmlAsBase64String.getBytes(\"ascii\"));\r\n\r\n return new String(xmlAsBase64, xmlEncoding);\r\n }",
"private static boolean isURIString(String p_uric) {\n if (p_uric == null) {\n return false;\n }\n int end = p_uric.length();\n char testChar = '\\0';\n for (int i = 0; i < end; i++) {\n testChar = p_uric.charAt(i);\n if (testChar == '%') {\n if (i+2 >= end ||\n !isHex(p_uric.charAt(i+1)) ||\n !isHex(p_uric.charAt(i+2))) {\n return false;\n }\n else {\n i += 2;\n continue;\n }\n }\n if (isURICharacter(testChar)) {\n continue;\n }\n else {\n return false;\n }\n }\n return true;\n }",
"public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }",
"public String getDecod(String text) {\n Base64.Decoder decoder = Base64.getDecoder();\n return new String(decoder.decode(text));\n }",
"public static String decode(String s) {\n if (s.indexOf('%') >= 0) {\n StringBuffer sb = new StringBuffer();\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n if (arr[i] == '%') {\n if (i+2 < len) {\n int d1 = Character.digit(arr[++i], 16);\n int d2 = Character.digit(arr[++i], 16);\n if (d1 == -1 || d2 == -1) {\n System.out.println(\"ConfigObject: Error parsing [\" + \n s + \"] idx = \" + (i-2));\n }\n d1 = (d1 << 4) | d2;\n sb.append((char)d1);\n } else {\n System.out.println(\"ConfigObject: Error parsing [\" + \n s + \"] idx = \" + i);\n break;\n }\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n }\n return s;\n }",
"public static String unescape(final Object self, final Object string) {\n final String str = JSType.toString(string);\n final int length = str.length();\n\n if (length == 0) {\n return str;\n }\n\n final StringBuilder sb = new StringBuilder();\n for (int k = 0; k < length; k++) {\n char ch = str.charAt(k);\n if (ch != '%') {\n sb.append(ch);\n } else {\n if (k < (length - 5)) {\n if (str.charAt(k + 1) == 'u') {\n try {\n ch = (char) Integer.parseInt(str.substring(k + 2, k + 6), 16);\n sb.append(ch);\n k += 5;\n continue;\n } catch (final NumberFormatException e) {\n //ignored\n }\n }\n }\n\n if (k < (length - 2)) {\n try {\n ch = (char) Integer.parseInt(str.substring(k + 1, k + 3), 16);\n sb.append(ch);\n k += 2;\n continue;\n } catch (final NumberFormatException e) {\n //ignored\n }\n }\n\n // everything fails\n sb.append(ch);\n }\n }\n\n return sb.toString();\n }",
"public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}",
"public URLCodec() {\n/* 104 */ this(\"UTF-8\");\n/* */ }",
"public String decode(String encoding) {\n\t\tString decoded = \"\";\n\t\tString currCode = \"\";\n\t\tMap<String, Character> revMap = new HashMap<String, Character>();\n\t\t\n\t\t// Build hashmap from value to key\n\t\tfor (Character code: this.mapping.keySet()) {\n\t\t\trevMap.put(this.mapping.get(code), code);\n\t\t}\n\t\t\n\t\tfor (Character c: encoding.toCharArray()) {\n\t\t\tcurrCode += c;\n\t\t\tCharacter toAdd = revMap.get(currCode);\n\t\t\tif (toAdd != null) {\n\t\t\t\tdecoded += toAdd;\n\t\t\t\tcurrCode = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn decoded;\n\t}",
"public String decode(String shortUrl) {\n\n return list.get(Integer.valueOf(shortUrl) - 1);\n\n }",
"public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint i = 0;\n\t\twhile (i < encoded.length()) {\n\t\t\tStringBuilder characterBuilder = new StringBuilder();\n\n\t\t\twhile (!decodingTable.containsKey(characterBuilder.toString()))\n\t\t\t\tcharacterBuilder.append(encoded.charAt(i++));\n\n\t\t\toutput.append(decodingTable.get(characterBuilder.toString()));\n\t\t}\n\n\t\treturn output.toString();\n\t}",
"@Override\n public String encodeURL(String arg0) {\n return null;\n }",
"public static String unescape(String content) {\n content = content\n .replaceAll(\"\\u00c3\\u00bc\", \"ü\")\n .replaceAll(\"\\u00c3\\u00a4\", \"ä\")\n .replaceAll(\"\\u00c3\\u00b6\", \"ö\")\n .replaceAll(\"\\u00c3\\u0096\", \"Ö\")\n .replaceAll(\"\\u00c3\\u0084\", \"Ä\")\n .replaceAll(\"\\u00c3\\u009c\", \"Ü\")\n .replaceAll(\"\\u00c3\\u009f\", \"ß\")\n ;\n return content.trim();\n }",
"String unescStr(String pSource) throws Exception;",
"public static String encodedURI(String uri, String decodedUri) {\r\n\t\tfinal String charToReplace = \":\";\r\n\t\tfinal String replacementChar = \"-\";\r\n\t\tif (decodedUri.startsWith(charToReplace)) {\r\n\t\t\tdecodedUri = decodedUri.substring(1); // remove leading char to replace, if any\r\n\t\t}\r\n\t\tString result = \"\";\r\n\t\tif (!uri.equals(decodedUri)) { // was the uri prefixable?\r\n\t\t\t// first, duplicate every pre-existing replacementChar to guarantee unity\r\n\t\t\tresult = decodedUri.replace(replacementChar, replacementChar + replacementChar);\r\n\t\t\t// replace the character to replace with a replacement character to make it a valid fragment\r\n\t\t\tresult = decodedUri.replace(charToReplace, replacementChar);\r\n\t\t} else {\r\n\t\t\tresult = IRILib.encodeUriComponent(decodedUri); // for non-prefixable uri's, just take the encoded form\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"protected String decodeByte(String given) {\n if (given == null || given.length() % 8 != 0 || given.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(given);\n StringBuilder target = new StringBuilder();\n while (source.length() > 0) {\n String pair = source.substring(0, 2);\n source.delete(0, 2);\n if (pair.charAt(0) == pair.charAt(1)) {\n target.append(pair.charAt(0));\n } else {\n target.append(\"?\");\n }\n }\n if (target.substring(0,4).contains(\"?\")) {\n target = new StringBuilder(decodeByteWithParity(target.toString()));\n }\n while (target.length() > 3) {\n target.deleteCharAt(target.length() - 1);\n }\n\n return target.toString();\n }",
"private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }",
"public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }",
"public static String stringDecode(Context context,String strFeatureName)\r\n \t throws Exception {\r\n \t \r\n \t if(strFeatureName.indexOf(\"&\")>-1){\r\n\r\n \t \t strFeatureName = strFeatureName.replaceAll(\"&\",\"&\");\r\n\r\n \t }else if(strFeatureName.indexOf(\"<\")>-1){\r\n\r\n \t \t strFeatureName = strFeatureName.replaceAll(\"<\",\"<\");\r\n\r\n \t }else if(strFeatureName.indexOf(\">\")>-1){\r\n\r\n \t \tstrFeatureName = strFeatureName.replaceAll(\">\",\">\");\r\n \t }\r\n\r\n \t return strFeatureName;\r\n \t }",
"public URLCodec(String charset) {\n/* 114 */ this.charset = charset;\n/* */ }",
"public static String utf8strToHexStr_Slash_U(String multlangStr) throws Exception {\n\t\tProperties profile = new Properties();\n\t\tint strLen = multlangStr.length();\n\t\tString resultStr = \"\";\n\t\tfor (int i= 0; i< strLen ; i++) {\n\t\t\tint intChar = multlangStr.codePointAt(i);\n\t\t\tString strChar = \"\\\\u\" + Integer.toHexString(intChar) ;\n\t\t\tresultStr = resultStr + strChar;\n\t\t}\n\t\treturn resultStr;\n\t}"
] | [
"0.7351963",
"0.7111755",
"0.6914259",
"0.6832773",
"0.67843467",
"0.6547768",
"0.64629835",
"0.6321282",
"0.6302477",
"0.62762123",
"0.62585026",
"0.6249942",
"0.6130143",
"0.60965925",
"0.60605365",
"0.6055036",
"0.6030653",
"0.59860575",
"0.5976979",
"0.593474",
"0.59249085",
"0.5921944",
"0.5895519",
"0.5878545",
"0.5875674",
"0.5874136",
"0.58597887",
"0.58579165",
"0.58476716",
"0.5845212",
"0.58447266",
"0.58001006",
"0.5791596",
"0.5777129",
"0.577608",
"0.57613033",
"0.5745123",
"0.5737942",
"0.57326156",
"0.5725405",
"0.5707246",
"0.5692177",
"0.5691279",
"0.5680768",
"0.5676896",
"0.5675179",
"0.56717753",
"0.565951",
"0.5651306",
"0.5633531",
"0.56224525",
"0.56009036",
"0.5600517",
"0.55884665",
"0.5585512",
"0.5578036",
"0.5567138",
"0.55669117",
"0.556544",
"0.555229",
"0.55446815",
"0.5532097",
"0.5532097",
"0.551337",
"0.5511068",
"0.54698575",
"0.5453616",
"0.5450968",
"0.5439145",
"0.54378104",
"0.5430912",
"0.54257226",
"0.5412344",
"0.53987604",
"0.5398489",
"0.5389498",
"0.5369631",
"0.5356935",
"0.53524435",
"0.53403497",
"0.5305582",
"0.5302043",
"0.52967536",
"0.52726364",
"0.52705777",
"0.5269914",
"0.5268935",
"0.526394",
"0.52480966",
"0.524296",
"0.5239923",
"0.5239898",
"0.5232883",
"0.52218115",
"0.51921016",
"0.51810145",
"0.51806617",
"0.51760477",
"0.51679623",
"0.5163033"
] | 0.78656965 | 0 |
Summary: This method is called when users access the default of URL of the project ( Return: This method returns the "index" JSP page that lists the people in the Adventure Works database. | @RequestMapping(value = "")
public ModelAndView index()
{
List<Person> people = personService.findAllPeople();
return new ModelAndView("index", "people", people);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void index() {\n\t\trender(\"index.jsp\");\r\n\t}",
"@GetMapping\n\tpublic String home() {\n\t\tSystem.out.println(\"Index page\");\n\t\treturn \"redirect:index.jsp\";\n\t}",
"@RequestMapping(value = \"/index\", method = RequestMethod.GET)\n public ModelAndView displayIndex() {\n return new ModelAndView(\"index\", \"command\", new Person());\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tString index() {\n\t\tif (StringUtil.isNullOrEmpty(configuration.getHue().getIp())\n\t\t\t\t|| StringUtil.isNullOrEmpty(configuration.getHue().getUser())) {\n\t\t\treturn \"redirect:/setup\";\n\t\t}\n\n\t\treturn \"redirect:/dailySchedules\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String homePage() {\n\t\tlogger.info(\"Index Page Loaded\");\n\t\treturn \"index\";\n\t}",
"@RequestMapping(method = RequestMethod.GET)\n public ModelAndView home() {\n page = new ModelAndView();\n page.setViewName(\"Statistique\");\n page.addObject(\"resources\", resourceService.listMainMenu());\n page.addObject(\"proms\", articleService.getFiveLastProms());\n page.addObject(\"mostPlayedClasses\", statsService.listXMostPlayedClasses(5));\n page.addObject(\"mostPlayedRaces\", statsService.listXMostPlayedRaces(5));\n page.addObject(\"mostPlayedSpecializations\", statsService.listXMostPlayedSpecialization(5));\n page.addObject(\"usersWithoutAvatar\", statsService.listUsersWithoutAvatar());\n page.addObject(\"mostActiveUsers\", statsService.listMostActiveUsers(5));\n if (user != null)\n page.addObject(\"userResources\", resourceService.listUserResources(user.getGroup().getId()));\n return page;\n }",
"@RequestMapping(\"/\")\r\n\tpublic String showIndex() {\r\n\t\treturn \"index\";\r\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String index() {\n return \"Index\";\n }",
"@RequestMapping(\"/\")\n public ModelAndView index() {\n ModelAndView mav = new ModelAndView(\"index\");\n mav.addObject(\"userInfo\", new UserInfo());\n\n User user = (User) session.getAttribute(\"loginUser\");\n if (user != null) {\n List<Content> contents = contentService.showAll(user.getUserId());\n mav.addObject(\"contentList\", new ContentList(contents));\n }\n\n return mav;\n }",
"public String indexAppusers() {\n\t\treturn \"redirect:/indexAppusers\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String main() {\n\t\treturn \"index.jsp\";\n\t}",
"public String home() {\n if (getUsuario() == null) {\n return \"login.xhtml\";\n }\n // Si el usuario es un ADMINISTRADOR, le lleva a la pagina a la lista de Alumnos\n if (getUsuario().getRol().equals(getUsuario().getRol().ADMINISTRADOR)) {\n return \"ListaAlumnos.xhtml\";\n }\n // Si el usuario es Alumno, le llevará a la página web de INDEX\n // REVISAR\n if (getUsuario().getRol().equals(getUsuario().getRol().ALUMNO)) {\n return \"login.xhtml\";\n }\n return null;\n }",
"public String home() {\n if(getUsuario()==null){\r\n return \"login.xhtml\";\r\n }\r\n \r\n // Si el usuario es un administrador, le lleva a la pagina del listado de apadrinados\r\n if(getUsuario().getRol().equals(getUsuario().getRol().ADMINISTRADOR)){\r\n return \"listaninosapadrinados.xhtml\";\r\n }\r\n \r\n // Si el usuario es socio, le lleva a la pagina de apadrinar\r\n if(getUsuario().getRol().equals(getUsuario().getRol().SOCIO)){\r\n return \"apadrinar.xhtml\";\r\n }\r\n return null;\r\n }",
"@RequestMapping(value = {\"/\", \"/home\", \"/index\"})\n public ModelAndView index(Principal principal) {\n String userName = \"Guest\";\n if (principal != null) {\n userName = principal.getName();\n }\n logger.info(userName + \" entering method index()\");\n\n ModelAndView mav = new ModelAndView(\"master\");\n mav.addObject(\"title\", \"Home\");\n mav.addObject(\"stations\", stationService.getAllStations());\n mav.addObject(\"userClickHome\", true);\n return mav;\n }",
"public static Result index() {\n return ok(index.render(\"Welcome to the UW-La Crosse Eco Warehouse.\"));\n }",
"@RequestMapping(\"/\")\n\tpublic String index() {\n\t\treturn \"index.html\";\n\t}",
"@RequestMapping(\"/\")\r\n\tpublic String index() {\r\n\t\treturn \"index.html\";\r\n\t}",
"@GetMapping(path = \"/index\")\n\tpublic String index() {\n\t\treturn \"Welcome to Ripple Application!\";\n\t}",
"public static void index()\n {\n String adminId = session.get(\"logged_in_adminid\"); // to display page to logged-in administrator only\n if (adminId == null)\n {\n Logger.info(\"Donor Location: Administrator not logged-in\");\n Welcome.index();\n }\n else\n {\n Logger.info(\"Displaying geolocations of all donors\");\n render();\n }\n }",
"@RequestMapping(Mappings.INDEX)\n public ModelAndView index(){\n ModelAndView mv = new ModelAndView(ViewNames.INDEX);\n return mv;\n }",
"@RequestMapping(value=\"/\", method=RequestMethod.GET)\n\tpublic String home() {\n\t\tlogger.info(\"Welcome home!\");\n\t\treturn \"home\";\n\t}",
"@GetMapping(Mappings.HOME)\n\tpublic String showHome() {\n\n\t\treturn ViewNames.HOME;\n\t}",
"@RequestMapping(\"/\")\n\t public String index(Model model){\n\t return \"homepage\";\n\t }",
"@GetMapping(\"/\")\n\tpublic String showHomePage() {\n\t\treturn \"home\";\n\t}",
"@RequestMapping(value = \"/index\")\n public String index() {\n return \"index\";\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String home(Model model, Authentication authentication){\n if(authentication != null) {\n User currUser = customUserDetailsService.findByUsername(authentication.getName());\n model.addAttribute(\"user\", currUser);\n }\n // The string \"Index\" that is returned here is the name of the view\n // (the Index.jsp file) that is in the path /main/webapp/WEB-INF/jsp/\n // If you change \"Index\" to something else, be sure you have a .jsp\n // file that has the same name\n return \"Index\";\n }",
"@GetMapping(\"/\")\n\tpublic String index() {\n\t\treturn \"index\";\n\t}",
"@RequestMapping(value = \"/home\")\n\tpublic String home() {\t\n\t\treturn \"index\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String getMainPage() {\n\t\treturn \"main-menu\";\n\t}",
"public void index() {\n Integer pageNum = getParaToInt(\"pageNum\");\n Boolean includeContent = getParaToBoolean(\"includeContent\", false);\n\n if (pageNum == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n Page<Blog> blogAbstracts;\n if (!includeContent) {\n blogAbstracts = mBlogService.queryWithoutContent(pageNum);\n } else {\n blogAbstracts = mBlogService.queryAll(pageNum);\n }\n\n if (blogAbstracts.getList().size() == 0) {\n mResult.fail(107);\n } else {\n mResult.success(blogAbstracts.getList());\n }\n renderJson(mResult);\n }",
"@RequestMapping(value = \"/home\")\n\tpublic ModelAndView ictHome() {\n\t\tModelAndView mav = new ModelAndView(\"ict/home\");\n\t\tmav.addObject(\"disComList\", disS.findAll());\n\t\treturn mav;\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\n\t public String home()\n\t {\n\t return \"welcome\";\n\t }",
"@RequestMapping(value = \"/admin/index\", method = GET)\r\n\tpublic String index() {\r\n\t\treturn \"admin/index\";\r\n\t}",
"public Action getIndexApiAction0() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@RequestMapping(value = { \"/\", \"/home\", \"/index\" })\r\n\tpublic ModelAndView index() {\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tmv.addObject(\"greeting\", \"welcome to spring web mvc new way to done \");\r\n\t\treturn mv;\r\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Login Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"SlideMain Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@RequestMapping(value = \"/index\", method = RequestMethod.GET)\n public String index(Principal principal) {\n return principal == null ? \"redirect:/makeAppointment\" : \"index\";\n }",
"protected void index()\r\n\t{\n\t}",
"public void home_index()\n {\n Home.index(homer);\n }",
"@RequestMapping(\"callproj\")\r\n\t\r\n\tpublic String Home()\r\n\t{\n\t\treturn \"Home\";//register.jsp==form action=register\r\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home() {\n\t\treturn \"home\";\n\t}",
"@RequestMapping(\"/\")\n public String home()\n {\n SecurityContext context = SecurityContextHolder.getContext();\n return \"redirect:swagger-ui.html\";\n }",
"@RequestMapping(\"/indexAppusers\")\n\tpublic ModelAndView listAppuserss() {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"appuserss\", appusersService.loadAppuserss());\n\n\t\tmav.setViewName(\"appusers/listAppuserss.jsp\");\n\n\t\treturn mav;\n\t}",
"public static Result index() {\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier!=null)\n return redirect(\"/home\");\n else\n return ok(index.render(\"\"));\n }",
"public String toWelcome() {\r\n\t\treturn \"/admin/welcome.jsf\";\r\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"ListTest Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@RequestMapping(value = \"/userhomepage\", method = RequestMethod.GET)\n public ModelAndView displayUserHomepage() {\n return new ModelAndView(\"userhomepage\");\n }",
"public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }",
"public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }",
"public Action getIndexApiAction() {\r\n Thing object = new Thing.Builder()\r\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\r\n // TODO: Make sure this auto-generated URL is correct.\r\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\r\n .build();\r\n return new Action.Builder(Action.TYPE_VIEW)\r\n .setObject(object)\r\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\r\n .build();\r\n }",
"public String toWelcome() {\r\n\t\treturn \"/secured/fragenpool.xhtml\";\r\n\t}",
"public Result index() {\n Logger.info(\"render top page\");\n return ok(index.render());\n }",
"public Result index() {\n\t\treturn ok(views.html.index.render());\n\t}",
"@Security.Authenticated(Secured.class)\n\tpublic static Result index() {\n\t\treturn ok(\n\t\t\t\tlaterentals.render(\n\t\t\t\t\t\tRental.getAllRentals(), \n\t\t\t\t\t\tUser.getByEmail(request().username())\n\t\t\t\t)\n\t\t);\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-HTTP-HOST-HERE]/main\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@GetMapping(\"/\")\n public String index(Model model) {\n model.addAttribute(\"URLInfo\", listURLService.findALL());\n return \"index\";\n }",
"@RequestMapping(\"/homelist\")\n public Page<PostEntity> mainPage() {\n return postService.getPage(0);\n }",
"public Result index() {\n return ok(views.html.index.render());\n }",
"public Result index() {\n return ok(views.html.index.render());\n }",
"public Result index() {\n return ok(views.html.index.render());\n }",
"@RequestMapping(\"/\")\r\n\t\r\n\tpublic String home()\r\n\t{\n\t\t \r\n\t\treturn \"index\";\r\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@RequestMapping(value = { \"/\" }, method = RequestMethod.GET)\r\n\tpublic String listUsers(ModelMap model) {\r\n\t\tmodel.addAttribute(\"helloMessage\", \"Spring with java... configuration base template\");\r\n\t\treturn \"index\";\r\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n\tpublic String index(Model model) {\r\n\r\n\t\treturn \"home\";\r\n\t}",
"@RequestMapping(\"/\")\n\tpublic String viewDetails() {\n\t\treturn \"index.html\";\n\t}",
"@RequestMapping(\"/\")\n public String startPage() {\n\n return \"redirect:/html/singlelamp/nnlightctl/Index.html\";\n }",
"@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public String goHome(ModelMap model) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n model.addAttribute(\"pagetitle\", \"Pand-Eco\");\n return \"view_landing_page\";\n }",
"@GetMapping(\"/listPeople\")\r\n public ModelAndView listPeople() {\r\n LOG.debug(\"listPeople\");\r\n ModelAndView mav = new ModelAndView(LIST_PEOPLE_VIEW);\r\n mav.addObject(\"people\", personService.getPeople());\r\n return mav;\r\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"TaskList Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@RequestMapping(\"/home\")\n\tpublic String showHome() {\n\t\treturn \"home\";\n\t}",
"@RequestMapping(value= {\"/flight-home\",\"/\"})\n\tpublic ModelAndView flightSearchPage() {\n\t\treturn new ModelAndView (\"home\");\n\t}",
"@RequestMapping(\"/\")\n\tpublic String showHome(Model model) {\n\t\tList<Employee> list=employeeService.fetchAllEmployee();\n\t\t//to pass data from ctrl to jsp we use Model Interface\n\t\tmodel.addAttribute(\"list\",list);\n\t\treturn \"index\"; \n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Cadastro Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public String applicationLogin(){\n\t\treturn \"/dblogin.jsp\";\n\t}",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"PlayWorkout Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"HomeView Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public static Result index() {\n // Check that the email matches a confirmed user before we redirect\n String email = ctx().session().get(\"email\");\n if (email != null) {\n User user = User.findByEmail(email);\n if (user != null && user.validated) {\n return GO_DASHBOARD;\n } else {\n Logger.debug(\"Clearing invalid session credentials\");\n session().clear();\n }\n }\n\n return GO_HOME;\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"dangerous_place Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@GetMapping(\"/\")\n public String viewHomePage(Model model){\n model.addAttribute(\"listEmployee\",employeeService.getAllEmployees());\n return \"index\";\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Map Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"GoodsDetail Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@RequestMapping(method = RequestMethod.GET, value = {\"/home\",\"/admin\"}, produces = \"application/json\")\n public String home(Model model) throws SQLException, ClassNotFoundException {\n int page = 1;\n int recordPerPage = 3;\n\n //Get Total Records From DB\n int totalRecords = storeService.getRecords();\n\n //Calculate numbers of pages\n int noOfPage = (int) Math.ceil(totalRecords * 1.0/recordPerPage);\n\n //Formula of pagination\n List<Store> getList = storeService.getPaginator((page - 1) * recordPerPage, recordPerPage);\n\n model.addAttribute(\"LISTSTORE\", getList);\n model.addAttribute(\"NOOFPAGE\", noOfPage);\n model.addAttribute(\"CURRENTPAGE\", page);\n //Set dường dẫn chạy file jsp\n return \"homepage\";\n }",
"@RequestMapping(value=\"/loginForm\", method = RequestMethod.GET)\n\tpublic String home(){\n\n\t\treturn \"loginForm\";\n\t}",
"@GetMapping(\"/index\")\n\tpublic String telaLogin() {\n\t\treturn \"/telas/index\";\n\t}",
"@RequestMapping(value = \"/index\")\n\tpublic String index(Model model) {\n\t\treturn \"login\";\n\t}",
"@RequestMapping(value = \"/about\")\n\tpublic ModelAndView index() {\n\t\treturn new ModelAndView(\"pepco.about\");\n\t}",
"@GetMapping(\"/\")\n public String index()\n {\n return \"index\";\n }"
] | [
"0.7128155",
"0.7095293",
"0.70571375",
"0.700566",
"0.6985715",
"0.68173236",
"0.6699635",
"0.6697807",
"0.66873264",
"0.668313",
"0.6641585",
"0.66282696",
"0.65517974",
"0.6512208",
"0.6470805",
"0.64201826",
"0.6415001",
"0.63993704",
"0.63754773",
"0.63629115",
"0.63499856",
"0.6349095",
"0.6348946",
"0.6344991",
"0.6337306",
"0.62995917",
"0.6291282",
"0.6289161",
"0.6279063",
"0.62643933",
"0.6254799",
"0.6248125",
"0.6226802",
"0.6225898",
"0.62256205",
"0.62245345",
"0.62172514",
"0.6213424",
"0.6211591",
"0.6209404",
"0.6207621",
"0.6206469",
"0.62003124",
"0.6200302",
"0.61976886",
"0.61813295",
"0.6179667",
"0.617865",
"0.6178095",
"0.6173068",
"0.6173068",
"0.6173068",
"0.6169888",
"0.6165926",
"0.6162974",
"0.61470985",
"0.6143041",
"0.6138075",
"0.6129587",
"0.6125664",
"0.6125664",
"0.6125664",
"0.61249554",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.612253",
"0.6117439",
"0.6113162",
"0.6105639",
"0.6104406",
"0.60905975",
"0.6088647",
"0.6088309",
"0.60855997",
"0.6075897",
"0.6075087",
"0.60736716",
"0.6073421",
"0.6065857",
"0.60625744",
"0.6058076",
"0.60542595",
"0.604614",
"0.60413426",
"0.6041215",
"0.6038284",
"0.60204655",
"0.6017707",
"0.60106057",
"0.6006769",
"0.6003385"
] | 0.7507521 | 0 |
Summary: This method is called when users access Return: This method returns the "add" JSP page that displays a form a user can complete and submit in order to create a new person. | @RequestMapping(value = "add", method = RequestMethod.GET)
public ModelAndView add()
{
return new ModelAndView("add", "person", new Person());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/addNewUser.html\", method = RequestMethod.GET)\n\tpublic ModelAndView addNewUser() {\n\n\t\treturn new ModelAndView(\"newUser\", \"form\", new FbUser());\n\n\t}",
"@GetMapping(\"/list/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tPerson thePerson = new Person();\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"person-form\";\n\t}",
"@GetMapping(\"/showAddFormUser\")\n\tpublic String showAddForm(Model model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"Add User\");\n\t\treturn \"user-form\";\n\t}",
"public String handleAdd() \n throws HttpPresentationException, webschedulePresentationException\n { \n\t try {\n\t Project project = new Project();\n saveProject(project);\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n\t } catch(Exception ex) {\n return showAddPage(\"You must fill out all fields to add this project\");\n }\n }",
"public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}",
"@RequestMapping(value = \"/person/add\", method = RequestMethod.GET)\r\n\tpublic String addPerson(Model model) {\r\n\t\treturn \"groefnia/person/add\";\r\n\r\n\t}",
"@RequestMapping(value = { \"/addUser\" }, method = RequestMethod.POST)\n\t@Secured(CommonConstants.ROLE_ADMIN)\n public ModelAndView savePerson(@ModelAttribute(CommonConstants.ATTRIBUTE_USERFORM) UserForm userForm) {\n\t\tModelAndView model = new ModelAndView(CommonConstants.PAGE_REGISTER);\n\t\tfinal String validationMsg = this.service.doUserFormValidation(userForm);\n\t\t\n\t\tif (StringUtils.isNotEmpty(validationMsg)) model.addObject(CommonConstants.ATTRIBUTE_ERROR, validationMsg);\n\t\telse {\n\t\t\tif (this.service.save(new UserEntity(userForm))) {\n \t\tmodel.addObject(CommonConstants.ATTRIBUTE_SUCCESS, this.service.getProperty(CommonConstants.APP_PAGE_VALIDATION_SUCCESS_MSG));\n \t\tuserForm.reset();\n\t\t\t}\t\n \telse \n \t\tmodel.addObject(CommonConstants.ATTRIBUTE_ERROR, this.service.getProperty(CommonConstants.APP_PAGE_SAVE_ERROR_MSG));\n\t\t}\n\t\tmodel.addObject(CommonConstants.ATTRIBUTE_USERFORM, userForm); \n return model;\n }",
"@GetMapping(\"/userAddForm\")\n\tpublic String userAddForm(Model theModel) {\n\t\tUser theUser = new User();\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"registration-form\";\n\t}",
"@GetMapping(value= \"/add\")\n public String add(Model model) {\n\n \tmodel.addAttribute(\"user\",new User());\n \tmodel.addAttribute(\"success\", true);\n\n \treturn \"addUser\";\n }",
"@RequestMapping(\"Home1\")\r\n\tpublic String createUser1(Model m) \r\n\t{\n\t\tm.addAttribute(\"employee\",new Employee());\r\n\t\treturn \"register\";//register.jsp==form action=register\r\n\t}",
"public static void add() {\n Application.currentUserCan( 1 );\n render();\n }",
"public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }",
"@RequestMapping(value = { \"/new\" }, method = RequestMethod.GET)\r\n public String newuser(ModelMap model) {\r\n User user = new User();\r\n model.addAttribute(\"user\", user);\r\n model.addAttribute(\"edit\", false);\r\n return \"registration\";\r\n\r\n }",
"@RequestMapping(value = \"/add\", method = RequestMethod.GET)\r\n\tpublic ModelAndView addEmployee(@ModelAttribute Employee employee) {\r\n\t\tSystem.out.println(\"------------- redirecting to emp registration page --------------\" + employee);\r\n\t\tMap<String, Object> model = new HashMap<String, Object>();\r\n\t\treturn new ModelAndView(\"add\", model);\r\n\t}",
"@RequestMapping(value = \"/AgregarPersona\", method = RequestMethod.GET)\n\tpublic ModelAndView AgregarPersona() {\n\t\t//prepara para generar nuevo registro de persona\n\t\tmav.addObject(new Persona());\n\t\tmav.setViewName(\"agregarPersona\");\n\t\treturn mav;\n\t}",
"@RequestMapping(\"/insert\") \r\n\tpublic String insert(Person person, Model model) {\n\t\tif (service.newRecord(person)) {\r\n\t\t\tmodel.addAttribute(\"error\", false);\r\n\t\t\treturn listPeople(model);\r\n\t\t//If I can not save the record then set the variable to true and go to newperson template.\r\n\t\t} else {\r\n\t\t\tmodel.addAttribute(\"error\", true);\r\n\t\t\treturn \"people/newperson.html\";\r\n\t\t}\r\n\t}",
"public String showAddPage(String errorMsg) \n throws HttpPresentationException, webschedulePresentationException\n { \n\n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String password = this.getComms().request.getParameter(PASSWORD);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n\tString contactname = this.getComms().request.getParameter(CONTACTNAME);\n\tString contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n\tString billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n\tString billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n\tString billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n\tString city = this.getComms().request.getParameter(CITY);\n\tString state = this.getComms().request.getParameter(STATE);\n\tString zip = this.getComms().request.getParameter(ZIP);\n\tString accountid = this.getComms().request.getParameter(ACCOUNTID);\n\tString isoutside = this.getComms().request.getParameter(OUTSIDE);\n\tString exp = this.getComms().request.getParameter(EXP);\n\tString expday = this.getComms().request.getParameter(EXPDAY);\n\tString expmonth = this.getComms().request.getParameter(EXPMONTH);\n\tString expyear = this.getComms().request.getParameter(EXPYEAR);\n\tString notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\n\n\t // Instantiate the page object\n\t EditHTML page = new EditHTML();\n\n\tHTMLOptionElement templateOption = page.getElementTemplateOption();\n Node PersonSelect = templateOption.getParentNode();\n templateOption.removeAttribute(\"id\");\n templateOption.removeChild(templateOption.getFirstChild());\n\n if(null != this.getComms().request.getParameter(PROJ_NAME)) {\n page.getElementProj_name().setValue(this.getComms().request.getParameter(PROJ_NAME));\n }\n\n try {\n \tPerson[] PersonList = PersonFactory.getPersonsList();\n \tfor (int numPersons = 0; numPersons < PersonList.length; numPersons++) {\n \t Person currentPerson = PersonList[numPersons] ;\n \t HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true);\n clonedOption.setValue(currentPerson.getHandle());\n Node optionTextNode = clonedOption.getOwnerDocument().\n createTextNode(currentPerson.getFirstname() + \" \" +\n currentPerson.getLastname());\n clonedOption.appendChild(optionTextNode);\n // Do only a shallow copy of the option as we don't want the text child\n // of the node option\n PersonSelect.appendChild(clonedOption);\n // Alternative way to insert nodes below\n // insertBefore(newNode, oldNode);\n // ProjSelect.insertBefore(clonedOption, templateOption);\n\t }\n\t } catch(Exception ex) {\n\t this.writeDebugMsg(\"Error populating Persons List: \" + ex);\n throw new webschedulePresentationException(\"Error getting Persons List: \", ex);\n\t }\n\t\n templateOption.getParentNode().removeChild(templateOption);\n\n if(null != this.getComms().request.getParameter(PASSWORD)) {\n page.getElementPassword().setValue(this.getComms().request.getParameter(PASSWORD));\n }\n\n if(null != this.getComms().request.getParameter(DISCRIB)) {\n page.getElementDiscrib().setValue(this.getComms().request.getParameter(DISCRIB));\n }\n if(null != this.getComms().request.getParameter(INDEXNUM)) {\n page.getElementIndexnum().setValue(this.getComms().request.getParameter(INDEXNUM));\n }\n\n if(null != this.getComms().request.getParameter(THOURS)) {\n page.getElementThours().setValue(this.getComms().request.getParameter(THOURS));\n }\n\n if(null != this.getComms().request.getParameter(DHOURS)) {\n page.getElementDhours().setValue(this.getComms().request.getParameter(DHOURS));\n }\n\n if(null != this.getComms().request.getParameter(CODEOFPAY)) {\n page.getElementCodeofpay().setValue(this.getComms().request.getParameter(CODEOFPAY));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTNAME)) {\n page.getElementContactname().setValue(this.getComms().request.getParameter(CONTACTNAME));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTPHONE)) {\n \npage.getElementContactphone().setValue(this.getComms().request.getParameter(CONTACTPHONE));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR1)) {\n \npage.getElementBilladdr1().setValue(this.getComms().request.getParameter(BILLADDR1));\n }\n\n\n\nif(null != this.getComms().request.getParameter(BILLADDR2)) {\n \npage.getElementBilladdr2().setValue(this.getComms().request.getParameter(BILLADDR2));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR3)) {\n \npage.getElementBilladdr3().setValue(this.getComms().request.getParameter(BILLADDR3));\n }\n\nif(null != this.getComms().request.getParameter(STATE)) {\n \npage.getElementState().setValue(this.getComms().request.getParameter(STATE));\n }\n\nif(null != this.getComms().request.getParameter(ZIP)) {\n \npage.getElementZip().setValue(this.getComms().request.getParameter(ZIP));\n }\n\n if(null != this.getComms().request.getParameter(OUTSIDE)) {\n page.getElementOutsideBox().setChecked(true);\n } else {\n page.getElementOutsideBox().setChecked(false);\n }\n\t\nif(null != this.getComms().request.getParameter(EXP)) {\n page.getElementExpBox().setChecked(true);\n } else {\n page.getElementExpBox().setChecked(false);\n }\t\n\t\nif(null != this.getComms().request.getParameter(ACCOUNTID)) {\n \npage.getElementAccountid().setValue(this.getComms().request.getParameter(ACCOUNTID));\n }\n\t\n\t\nif(null != this.getComms().request.getParameter(EXPDAY)) {\n \npage.getElementExpday().setValue(this.getComms().request.getParameter(EXPDAY));\n }\n\n\nif(null != this.getComms().request.getParameter(EXPMONTH)) {\n \npage.getElementExpmonth().setValue(this.getComms().request.getParameter(EXPMONTH));\n }\nif(null != this.getComms().request.getParameter(EXPYEAR)) {\n \npage.getElementExpyear().setValue(this.getComms().request.getParameter(EXPYEAR));\n }\n\n if(null != this.getComms().request.getParameter(NOTIFYCONTACT)) {\n page.getElementNotifycontact().setValue(this.getComms().request.getParameter(NOTIFYCONTACT));\n }\n\n if(null == errorMsg) { \n\t page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText());\n } else {\n page.setTextErrorText(errorMsg);\n }\n \n\t return page.toDocument();\n }",
"public String saveUserRecord() {\n\t\tSystem.out.println(\"Calling saveUserRecord() Method To Save User Record\");\n\t\tuserDAO.addUser(user);\n\t\t\n\t\treturn \"index.xhtml?faces-redirect=true\";\n\t}",
"@RequestMapping(\"/newuser\")\r\n\tpublic ModelAndView newUser() {\t\t\r\n\t\tRegister reg = new Register();\r\n\t\treg.setUser_type(\"ROLE_INDIVIDUAL\");\r\n\t\treg.setEmail_id(\"abc@xyz.com\");\r\n\t\treg.setFirst_name(\"First Name\");\r\n\t\treg.setCity(\"pune\");\r\n\t\treg.setMb_no(new BigInteger(\"9876543210\"));\r\n\t\treturn new ModelAndView(\"register\", \"rg\", reg);\r\n\t}",
"public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }",
"public String OnSubmit() {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tUser user1 = context.getApplication().evaluateExpressionGet(context, \"#{user}\", User.class);\r\n\t\t\r\n\t\t// test purposes, log results to console\r\n\t\tSystem.out.println(\"First Name is: \" + user1.getFirstName());\r\n\t\tSystem.out.println(\"Last Name: \" + user1.getLastName());\r\n\t\t\r\n\t\t// prints message to console to tell us which business service selected in beans.xml\r\n\t\tservice.test();\r\n\t\t\r\n\t\t// start timer when log is clicked\r\n\t\t\r\n\t\ttimer.setTimer(5000);\r\n\t\t\r\n\t\t// put user back in context\r\n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"user\", user1);\r\n\t\t\r\n\t\t// show next page\r\n\t\treturn \"Response.xhtml\";\r\n\t}",
"@RequestMapping(value = {\"/register\"}, method = RequestMethod.GET)\n public String newUser(ModelMap model) {\n User user = new User();\n Customer customer = new Customer();\n List<UserProfile> userProfileList = new ArrayList();\n user.setCustomer(customer);\n user.setUserProfileList(userProfileList);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"edit\", false);\n model.addAttribute(\"action\", \"newuser\");\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }",
"@RequestMapping(value = \"/signup\", method = RequestMethod.GET)\n\tpublic String signUpPage(Model model)\n\t{\n\t\t/* Initialize user registration form */\n\t\tmodel.addAttribute(\"userForm\", new UserDto());\n\t\treturn \"user/signup\";\n\t}",
"@RequestMapping(value = \"/add\", method = RequestMethod.GET)\n public String addUser(Model model)\n {\n model.addAttribute(\"userDto\", new UserDto());\n return \"login/add\";\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \n String url = \"registro.jsp\";\n Persona persona = new Persona();\n\n boolean logeado = request.getSession().getAttribute(\"usuario\") != null;\n if (logeado) {\n persona = (Persona) request.getSession().getAttribute(\"usuario\");\n }\n\n java.text.SimpleDateFormat sdt = new java.text.SimpleDateFormat(\"yyyy-MM-dd\");\n\n String nombres = getParameter(request, \"nombres\");\n String apellidos = getParameter(request, \"apellidos\");\n Date nacimiento = new Date(0);\n try {\n nacimiento = sdt.parse(getParameter(request, \"nacimiento\"));\n } catch (Exception ex) {\n\n }\n String correo = getParameter(request, \"correo\");\n String clave = getParameter(request, \"clave\");\n\n if (!nombres.isEmpty()) {\n persona.setNombres(nombres);\n }\n if (!apellidos.isEmpty()) {\n persona.setApellidos(apellidos);\n }\n if (nacimiento.getTime() != (new Date()).getTime()) {\n persona.setNacimiento(nacimiento);\n }\n if (!correo.isEmpty()) {\n persona.setCorreo(correo);\n }\n if (!clave.isEmpty()) {\n persona.setClave(clave);\n }\n\n if (!logeado) {\n String rol = getParameter(request, \"rol\");\n \n short rolId = 1;\n if (rol.equals(\"vendedor\")) {\n rolId = 2;\n }\n persona.setRol(rolFacade.find(rolId));\n }\n \n \n personaFacade.create(persona);\n if (persona.getId() != null) {\n if (logeado) {\n url = \"index.jsp\";\n } else {\n url = \"entrar.jsp?correo=\" + correo;\n }\n } else {\n url = url + \"?nombres=\" + nombres\n + \"&apellidos=\" + apellidos\n + \"&nacimiento=\" + sdt.format(nacimiento)\n + \"&correo=\" + correo\n + \"&error=Hubo un fallo al momento de guardar los datos\";\n }\n\n response.sendRedirect(url);\n }",
"@RequestMapping(\"/addUser\")\n public String addUser(){\n return \"added\";\n }",
"private void showNewForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/newCustomer.jsp\");\n dispatcher.forward(request, response);\n }",
"@RequestMapping(value=\"/signup\",method=RequestMethod.GET)\r\n\tpublic ModelAndView signupSuccess()\r\n\t{\r\n\t\tModelAndView mv=new ModelAndView(\"DefaultPage\");\r\n\t\tmv.addObject(\"title\",\"signup\");\r\n\t\tmv.addObject(\"userClicksSignup\", true);\r\n\t\tUser nuser=new User();\r\n\t\t//setting few fields\r\n\t\tnuser.setEnabled(true);\r\n\t\tnuser.setRole(\"USER\");\r\n\t\tmv.addObject(\"user\", nuser);\r\n\t\treturn mv;\r\n\t}",
"@RequestMapping(value = { \"/newuser\" }, method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String newUser(ModelMap model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\treturn \"registration\";\n\t}",
"private ShowCreateAnswerPage() {\n this.service = UserService.retrieve();\n this.validator = Validator.retrieve();\n }",
"@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }",
"@RequestMapping(value = \"/displayUserForm\", method = RequestMethod.GET)\n public String displayUserForm(Model model) {\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"admin/addUser\";\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Create a new Employee Record</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Enter New Employee information</h1>\");\n out.println(\"<form action=\\\"\" + request.getContextPath() + \"/CreateEmployee\\\" method=\\\"post\\\">\");\n out.println(\"First name: <input type=\\\"text\\\" name=\\\"firstname\\\" /><br />\");\n out.println(\"Last name: <input type=\\\"text\\\" name=\\\"lastname\\\" /><br />\");\n out.println(\"Birth date: <input type=\\\"text\\\" name=\\\"birthdate\\\" />ex: Jun 15, 1970<br />\");\n out.println(\"Salary: $<input type=\\\"number\\\" name=\\\"salary\\\" />ex: 101345.56<br />\");\n out.println(\"<input type=\\\"submit\\\" value=\\\"Submit\\\" />\");\n out.println(\"</form>\");\n out.println(\"<p><a href=\" + request.getContextPath() + \">Back</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }",
"@PostMapping(value=\"users/addNew\")\r\n\tpublic RedirectView addNew(User user, RedirectAttributes redir) {\r\n\t\tuserService.save(user);\t\r\n\t\tRedirectView redirectView= new RedirectView(\"/login\",true);\r\n\t redir.addFlashAttribute(\"message\",\r\n\t \t\t\"You successfully registered! You can now login\");\r\n\t return redirectView;\t\t\t\t\r\n\t}",
"@RequestMapping(value = \"/addNewUser.html\", method = RequestMethod.POST)\n\tpublic String newUser(@Valid FbUser user, BindingResult bindingResult) {\n\t\t\n\t\tuserData.save(user);\n\t\treturn (\"redirect:/listUsers.html\");\n\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tHttpSession session = req.getSession();\n\t\tcurrentUser = (User) session.getAttribute(\"CurrentUser\");\n\t\tif(currentUser != null)\n\t\t{\n\t\t\tcurrentProject = (Project) session.getAttribute(\"CurrentProject\");\n\t\t\tif(currentProject != null)\n\t\t\t{\n\t\t\t\t// Response\n\t\t\t\t\n\t\t\t\t// Obtain the Project Name we're looking @ currently\n\t\t\t\tString pageName = getPageName(req);\n\t\t\t\tString action = req.getParameter(\"action\");\n\t\t\t\t\n\t\t\t\t// There is an action set... Use it!\n\t\t\t\tif(action != null && !action.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\t// Which action?\n\t\t\t\t\tif(action.trim().equals(\"edit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Edit the page (WEBTOOL)\n\t\t\t\t\t}\n\t\t\t\t\telse if(action.trim().equals(\"delete\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Delete the current page\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(action.trim().equals(\"newpage\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Obtain the project detail\n\t\t\t\t\t\tString tempPageName = (String) req.getParameter(\"pageName\");\n\t\n\t\t\t\t\t\t// Stuff the details in a project model class\n\t\t\t\t\t\tPage tempPage = new Page(tempPageName);\n\t\t\t\t\t\t// Add the project to the database using the controller\n\t\t\t\t\t\tAddPage addPageController = new AddPage();\n\t\t\t\t\t\tPage returnedPage = addPageController.addPage(tempPage);\n\t\t\t\t\t\tif(returnedPage != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// AddProject was successful add an entry to the User|Project registry\n\t\t\t\t\t\t\tAddPageRegEntry pageRegController = new AddPageRegEntry();\n\t\t\t\t\t\t\tboolean success = pageRegController.addPageRegEntry(currentProject.getProjectID(),returnedPage.getPageID());\n\t\t\t\t\t\t\tif(success)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Redirect to back to the MyProjectList\n\t\t\t\t\t\t\t\treq.setAttribute(\"action\", \"view\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Error add User|Project entry to registry failed\n\t\t\t\t\t\t\t\treq.setAttribute(\"result\",\"Add Entry to Project|Page Registry Failed Unexpectedly...\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Error create new project failed\n\t\t\t\t\t\t\treq.setAttribute(\"result\", \"Create New Page Failed Unexpectedly...\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// Unknown action throw an exception\n\t\t\t\t\t\tthrow new ServletException(\"Unknown action: \" + action);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display the new UI after the post has been completed\n\t\t\t\t\tshowUI(req,resp,pageName);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is empty, simply display the UI\n\t\t\t\t\tshowUI(req,resp,pageName);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// No Project data in session, redirect to Login...\n\t\t\t\treq.setAttribute(\"result\", \"You didn't select a project, Please select a project\");\n\t\t\t\tresp.sendRedirect(req.getContextPath() + \"/MyProjects\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No User data in session, redirect to Login...\n\t\t\treq.setAttribute(\"result\", \"You are not logged in, Please log in\");\n\t\t\tresp.sendRedirect(req.getContextPath() + \"/Login\");\n\t\t}\n\t}",
"@GetMapping(\"/registration\")\n\t public String registration(Model model) {\n\t model.addAttribute(\"userForm\", new User());\n\t return \"registration\";\n\t }",
"@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}",
"public String handleShowAddPage() \n throws HttpPresentationException \n {\n\t return showAddPage(null);\n }",
"@GetMapping(\"/register\")\r\n\tpublic String showRegistrationForm(Model theModel) {\r\n\t\ttheModel.addAttribute(\"user\", new UserCrm());\r\n\t\treturn \"registration\";\r\n\t}",
"@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}",
"@RequestMapping(value = \"/register\",method = RequestMethod.GET)\r\n\tpublic String viewRegistration(Model model) { \r\n\t\tmodel.addAttribute(\"userForm\", uservalue);\r\n\t\t//UserForm Name of the model attribute under which the form object is exposed. Defaults to 'command'.\r\n\t\treturn \"Registration\";\r\n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"@PostMapping(\"/registration\")\n\t public String registration(@ModelAttribute(\"userForm\") User userForm, BindingResult bindingResult,Model model) {if (bindingResult.hasErrors()) {\n\t return \"registration\";\n\t }\n\t userService.save(userForm);\n\t localUsername=userForm.getUsername();\n\t boolean flag=userService.autoLogin(userForm.getUsername(), userForm.getPasswordConfirm());\n\t model.addAttribute(\"expense\", expenseService.getMonthAndYearAndAmount());\n\t model.addAttribute(\"username\",userForm.getUsername());\n\t return \"redirect:/dashboard\";\n\t }",
"@GetMapping(\"/register-particular\")\n\tpublic ModelAndView goToRegisterPartForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-particular\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}",
"@RequestMapping(value = \"/creator\", method = RequestMethod.GET)\r\n public String creator(HttpServletRequest request, ModelMap model) throws ServletException, IOException { \r\n UserAuthorities ua = userAuthoritiesProvider.getInstance();\r\n if (ua.userIsAdmin() || ua.userIsSuperUser()) {\r\n return(renderPage(request, model, \"creator\", null, null, null, false));\r\n } else {\r\n throw new SuperUserOnlyException(\"You are not authorised to create maps\");\r\n }\r\n }",
"@GetMapping(\"/registration\")\n public String registration(Model model) {\n \t\n model.addAttribute(\"userForm\", new User());\n\n return \"registration\";\n }",
"@GetMapping ( \"/patient/foodDiary/addFoodDiaryEntry\" )\r\n @PreAuthorize ( \"hasRole('ROLE_PATIENT')\" )\r\n public String addFoodDiaryEntryForm ( final Model model ) {\r\n return \"/patient/foodDiary/addFoodDiaryEntry\";\r\n }",
"@RequestMapping(\"/newAppusers\")\n\tpublic ModelAndView newAppusers() {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"appusers\", new Appusers());\n\t\tmav.addObject(\"newFlag\", true);\n\t\tmav.setViewName(\"appusers/editAppusers.jsp\");\n\n\t\treturn mav;\n\t}",
"@RequestMapping(\"/signup\")\n public String signupPage() {\n return \"createProfile\";\n }",
"@GetMapping(\"/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tSkill theSkill = new Skill();\n\t\t\n\t\ttheModel.addAttribute(\"skill\", theSkill);\n\t\t\n\t\treturn \"skill-form\";\n\t}",
"@RequestMapping(value=\"/addEmployeeSubmit\", method=RequestMethod.POST)\n /* Add submitted new employee details to database, and then redirect to listEmployees */\n public String addEmployeeSubmit(Employee employee) {\n employeeservice.saveEmployee(employee);\n\n return \"redirect:/employee/listEmployees\";\n }",
"private void addEmployee(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString firstName = request.getParameter(\"firstName\");\r\n\t\tString lastName = request.getParameter(\"lastName\");\r\n\t\tString gender = request.getParameter(\"gender\");\r\n\t\tint age = Integer.parseInt(request.getParameter(\"age\"));\r\n\t\tString email = request.getParameter(\"email\");\t\t\r\n\t\t\r\n\t\t// create a new employee object\r\n\t\tEmployee theEmployee = new Employee (firstName, lastName,gender,age, email);\r\n\t\t\r\n\t\t// add the employee to the database\r\n\t\temployeeDAO.addEmployee(theEmployee);\r\n\t\t\t\t\r\n\t\t// send back to main page (the student list)\r\n\t\tlistEmployees(request, response);\r\n\t}",
"protected void doPost(HttpServletRequest req, HttpServletResponse res) \n\t\tthrows ServletException, IOException {\n\t\t// we'll eventually use a SQL insert statement here\n\t\t// the info that we're posting/inserting to the database comes from PARAMETERS\n\t\t\n\t\tString firstname = req.getParameter(\"firstName\"); // make sure this matched the \"name\" value in your HTML!\n\t\tString lastname = req.getParameter(\"lastName\");\n\t\tString email = req.getParameter(\"email\");\n\t\tString password = req.getParameter(\"password\");\n\t\t\n\t\t// the we create an insert statement Statement statement = conn.createStatement()\n\t\ttry {\n\t\t\tStatement statement = conn.createStatement();\n\t\t\tint result = statement.executeUpdate(\"INSERT INTO bank_user VALUES ('\"+firstname+\"', '\"+lastname+\"', '\"+email+\"', '\"+password+\"')\"); // executeUpdate returns an INTEGER of how many rows were affected \n\t\t\t// an insert statement affects 1 row, but an update or delete statment can affect more...\t\n\n\t\t\t\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\t\n\t\t\tif (result > 0) {\n\t\t\t\tout.println(\"<h1>User Created!</h1>\");\n\t\t\t} else {\n\t\t\t\tout.println(\"<h1>Error creating user...</h1>\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String id = req.getParameter(\"id\");\n String name = req.getParameter(\"firstName\") + ' ' + req.getParameter(\"lastName\");\n User user = userDao.getByPropertyEqual(\"username\", req.getRemoteUser()).get(0);\n Preference newPreference = new Preference();\n newPreference.setShow(id);\n newPreference.setUser(user);\n newPreference.setCandidateName(name);\n user.addPreference(newPreference);\n dao.insert(newPreference);\n\n try {\n resp.sendRedirect(\"myAccount\");\n } catch (Exception e) {\n logger.error(\"Problem redirecting to account\" + e);\n }\n\n }",
"@GetMapping(\"/service_requests/new\")\n public String newServiceRequest(Model model){\n String role = userService.getRole(userService.getCurrentUserName());\n model.addAttribute(\"role\", role);\n\n model.addAttribute(\"serviceRequest\", new ServiceRequest());\n\n return \"/forms/new_servicerequest.html\";\n }",
"@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }",
"@RequestMapping(value = \"form\", method = RequestMethod.GET)\n public String form() {\n return \"user_form\";\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n Persona persona = new Persona();\n \n \n java.text.SimpleDateFormat sdt = new java.text.SimpleDateFormat(\"yyyy-MM-dd\");\n\n boolean administrador = false;\n if (request.getSession().getAttribute(\"usuario\") != null) {\n persona = (edu.uniminuto.entidades.Persona) request.getSession().getAttribute(\"usuario\");\n administrador = persona.getRol().getId() == 3;\n }\n\n if (request.getParameter(\"nombres\") != null) {\n persona.setNombres(request.getParameter(\"nombres\"));\n }\n\n if (request.getParameter(\"apellidos\") != null) {\n persona.setApellidos(request.getParameter(\"apellidos\"));\n }\n\n if (request.getParameter(\"nacimiento\") != null) {\n\n try {\n\n persona.setNacimiento(\n sdt.parse(request.getParameter(\"nacimiento\")));\n } catch (Exception ex) {\n\n }\n }\n\n if (request.getParameter(\"correo\") != null) {\n persona.setCorreo(request.getParameter(\"correo\"));\n }\n\n if (request.getParameter(\"rol\") != null) {\n int rol = 1;\n\n if (request.getParameter(\"rol\").equals(\"vendedor\")) {\n rol = 2;\n } else if (request.getParameter(\"rol\").equals(\"administrador\")) {\n rol = 3;\n }\n persona.setRol(rolFacade.find(rol));\n }\n\n RequestDispatcher rd = getServletContext().getRequestDispatcher(\"/registro.jsp\");\n request.setAttribute(\"persona\", persona);\n request.setAttribute(\"admin\", administrador);\n request.setAttribute(\"nacimiento\", (persona.getNacimiento() != null) ? sdt.format(persona.getNacimiento()) : null);\n rd.forward(request, response);\n }",
"@RequestMapping(value=\"/add-new-user\", method=RequestMethod.GET)\n\tpublic String addNewUser(HttpSession session) {\n\t\ttry {\n\t\t\tString userRole = UserDatabaseTemplate.getRoleWithId(session, connection());\n\t\t\t\n\t\t\tif(userRole.equals(ADMIN)) {\n\t\t\t\treturn \"redirect:manage-users\";\n\t\t\t}else if(userRole.equals(EDITOR)) {\n\t\t\t\treturn \"unauthorized-ed\";\n\t\t\t}else {\n\t\t\t\treturn \"unauthorized-rp\";\n\t\t\t}\n\t\t}catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn \"redirect:login\";\n\t\t}\n\t}",
"@PostMapping(\"/add\")\n public ModelAndView addSocio(Persona persona) {\n personaService.addPersona(persona);\n return new ModelAndView(\"redirect:/admin/socios\");\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String userId = request.getParameter(\"userId\");\n String name = request.getParameter(\"name\");\n String email = request.getParameter(\"email\");\n String phoneno = request.getParameter(\"phoneno\");\n String feedback = request.getParameter(\"feedback\");\n \n FeedbackBean feedbackBean = new FeedbackBean();\n //Using Java Beans - An easiest way to play with group of related data\n feedbackBean.setUserId(userId);\n feedbackBean.setName(name);\n feedbackBean.setEmail(email);\n feedbackBean.setFeedback(feedback);\n \n FeedbackDao feedbackDao = new FeedbackDao();\n \n //The core Logic of the Registration application is present here. We are going to insert user data in to the database.\n String userRegistered = feedbackDao.registerUser(feedbackBean);\n \n if(userRegistered.equals(\"SUCCESS\")) //On success, you can display a message to user on Home page\n {\n request.getRequestDispatcher(\"/Success.jsp\").forward(request, response);\n }\n else //On Failure, display a meaningful message to the User.\n {\n request.setAttribute(\"errMessage\", userRegistered);\n request.getRequestDispatcher(\"/Feedback.jsp\").forward(request, response);\n }\n }",
"@RequestMapping(value = \"add\", method = RequestMethod.GET)\n public String displayAddPostForm(Model model) {\n\n model.addAttribute(\"title\", \"New Post\");\n model.addAttribute(\"post\", new Post());\n return \"post/add\";\n }",
"public String registrarExtra(){\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tEncargado encargado = context.getApplication().evaluateExpressionGet(context, \"#{encargado}\", Encargado.class);\n\t\t\n\t\ttry {\n\t\t\tactividad.registrarActividad_Encargado(encargado.getCedula());\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\t\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn \"principalAdministrador.xhtml\";\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n String userType = request.getParameter(\"userType\");\n String firstName = request.getParameter(\"first\");\n String id = userType+ request.getParameter(\"ID\");\n String pass = request.getParameter(\"Pass\");\n String lastName = request.getParameter(\"Last\");\n String address = request.getParameter(\"address\");\n String DOB = request.getParameter(\"dob\");\n String gender = request.getParameter(\"Gender\");\n \n if (id.charAt(0) == 'D') {\n Doctor doc = new Doctor(id,pass,firstName,lastName,address,DOB,gender);\n doc.saveDoctor(doc);\n }\n if (id.charAt(0) == 'A') {\n Admin admin = new Admin(id,pass,firstName,lastName,address,DOB,gender);\n admin.saveAdmin(admin);\n }\n if (id.charAt(0) == 'P') {\n Patient pat = new Patient(id,pass,firstName,lastName,address,DOB,gender);\n pat.savePatient(pat);\n }\n if (id.charAt(0) == 'S') {\n Users.Secretary sec = new Users.Secretary(id,pass,firstName,lastName,address,DOB,gender);\n sec.saveSecretary(sec);\n\n }\n \n \n \n \n\n\n response.sendRedirect(\"CreateDoctor.jsp\");\n\n }",
"@RequestMapping(value = \"/AgregarPersona\", method = RequestMethod.POST)\n\tpublic ModelAndView guardarPersona(@ModelAttribute Persona persona) {\n\t\t//@ModelAttribute indica que se van a trabajar con los atributos del modelo\n\t\tpersonaService.crearPersona(persona);\n\t\treturn new ModelAndView(\"redirect:/\");\n\t}",
"@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}",
"@Override\r\n public void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n \t\tthrows ServletException, IOException {\n Map<String, String> messages = new HashMap<String, String>();\r\n req.setAttribute(\"messages\", messages);\r\n\r\n List<SingleFamilyHouse> singlefamilyhouses = new ArrayList<SingleFamilyHouse>();\r\n \r\n // Retrieve and validate name.\r\n // firstname is retrieved from the form POST submission. By default, it\r\n // is populated by the URL query string (in FindUsers.jsp).\r\n String city = req.getParameter(\"city\");\r\n if (city == null || city.trim().isEmpty()) {\r\n messages.put(\"success\", \"Please enter a valid city.\");\r\n } else {\r\n \t// Retrieve BlogUsers, and store as a message.\r\n \ttry {\r\n \t\tsinglefamilyhouses = singleFamilyHouseDao.getSingleFamliyHouseFromCity(city);\r\n } catch (SQLException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t\tthrow new IOException(e);\r\n }\r\n \tmessages.put(\"success\", \"Displaying results for \" + city);\r\n }\r\n req.setAttribute(\"singleFamilyHouses\", singlefamilyhouses);\r\n \r\n req.getRequestDispatcher(\"/FindSingleFamilyHouses.jsp\").forward(req, resp);\r\n }",
"@GetMapping(\"/registration\")\n public String getRegistration(Model model)\n {\n model.addAttribute(\"newAccount\", new Account());\n \n return \"registration\";\n }",
"@RequestMapping(\"/addRepPage\")\r\n\tpublic String callAddRep(){\r\n\t\treturn \"addRepPage\";\r\n\t}",
"public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}",
"@GetMapping(\"/showNewEmployeeForm\")\n public String showNewEmployeeForm(Model model){\n Employee employee=new Employee();\n model.addAttribute(\"employee\",employee);\n return \"Add_Employee\";\n }",
"@GetMapping(\"/showFormForAdd\") // @RequestMapping(path = \"/showFormForAdd\", method = RequestMethod.GET)\r\n\tpublic String showFormForAdd(Model theModel) {\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\", theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n log( \"POST\" );\n BloodDonationLogic bloodDonationLogic = LogicFactory.getFor(\"BloodDonation\");\n \n try {\n BloodDonation bloodDonation = bloodDonationLogic.createEntity(req.getParameterMap());\n if (req.getParameter(BloodDonationLogic.BANK_ID).isEmpty()) {\n bloodDonationLogic.add(bloodDonation);\n } else {\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n //because user can only select the bank that already exist from drop down menu\n //so we do not need to test whether bank is existing or not\n int userInputBankID = Integer.parseInt(req.getParameter(BloodDonationLogic.BANK_ID));\n BloodBank bloodBank = bloodBankLogic.getWithId(userInputBankID);\n bloodDonation.setBloodBank(bloodBank);\n bloodDonationLogic.add(bloodDonation);\n }\n } catch (Exception ex) {\n errorMessage = ex.getMessage();\n }\n\n if (req.getParameter(\"add\") != null) {\n //if add button is pressed return the same page\n createInputBloodDonationForm(req, resp);\n } else if (req.getParameter(\"view\") != null) {\n //if view button is pressed redirect to the appropriate table\n resp.sendRedirect(\"BloodDonationTableJSP\");\n }\n\n }",
"@RequestMapping(value = \"/user/registrationForm\", method = RequestMethod.GET)\n\tpublic ModelAndView registrationForm(HttpServletRequest request) {\n\t\tlog.debug(\"User registration\");\n\t\tString communityId = \"-1\";\n\t\tModelAndView model=new ModelAndView(\"form/registration\",\"command\",new User()); \n\t\tmodel.addObject(\"selectedCommunity\", communityId);\n\t\treturn model; \n\t}",
"@GetMapping(\"/register-pro\")\n\tpublic ModelAndView goToRegisterProForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-pro\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}",
"public String perform(HttpServletRequest request) {\n\t\tList<String> errors = new ArrayList<String>();\r\n request.setAttribute(\"errors\",errors);\r\n \r\n try { \r\n \t\r\n \t// obtain current user\r\n \tUserBean user = (UserBean) request.getSession(false).getAttribute(\"user\");\r\n \t\r\n \t// obtain object user\r\n \tUserForm form = formBeanFactory.create(request);\r\n \t\r\n\t\t\tString idolUserName = form.getUserName();\r\n\t\t\tif (idolUserName == null || idolUserName.length() == 0) {\r\n\t\t\t\terrors.add(\"idol User must be specified\");\r\n\t\t\t\treturn \"error.jsp\";\r\n\t\t\t}\r\n\t \r\n \tUserBean thisUser = userDAO.readByUserName(idolUserName);\r\n \tif (user == null) {\r\n \t\t\terrors.add(\"Invalid User: \"+idolUserName);\r\n \t\t\treturn \"error.jsp\";\r\n \t\t}\r\n\t \r\n\t int thisUid = thisUser.getUserId();\r\n \t\r\n \tUserIdolBean idol = new UserIdolBean();\r\n \t\r\n \t// set current user's id\r\n \tidol.setUserId(user.getUserId());\r\n \tidol.setUserName(user.getUserName());\r\n \tidol.setIdolId(thisUid);\r\n \tidol.setIdolName(thisUser.getUserName());\r\n\r\n \t// creat a new user idol\r\n \tuserIdolDAO.create(idol);\r\n \t\r\n \tUserBean idolUser = userDAO.read(thisUid);\r\n \r\n \t// Get this user's recipes\r\n \tRecipeBean[] recipeList = recipeDAO.getRecipes(thisUid);\r\n\t request.setAttribute(\"recipeList\",recipeList);\r\n\t request.setAttribute(\"thisUser\",user);\r\n\t \r\n\t // idol and follower\r\n\t UserIdolBean[] idolList = userIdolDAO.getIdols(thisUid);\r\n\t UserIdolBean[] followerList = userIdolDAO.getFollowers(thisUid);\r\n\t request.setAttribute(\"idolList\",idolList);\r\n\t request.setAttribute(\"followerList\",followerList);\r\n\t request.setAttribute(\"idolUser\",idolUser);\r\n\t \r\n\t return \"profile.jsp\";\r\n\t \r\n\t \t} catch (RollbackException e) {\r\n\t\t\terrors.add(e.getMessage());\r\n\t\t\treturn \"viewUser.jsp\";\r\n\t \t} catch (FormBeanException e) {\r\n\t\t\terrors.add(e.getMessage());\r\n\t\t\treturn \"viewUser.jsp\";\r\n\t \t}\r\n\t \r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet AddUser</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>We only process POST requests</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\n \n String name = request.getParameter(\"name\");\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n String address = request.getParameter(\"address\");\n String phone = request.getParameter(\"phone\");\n int status = 1;\n long url = System.currentTimeMillis();\n String passMD5 = helper.MD5Generator.generate(password);\n User user = new User(name, email, passMD5, address, phone,status,url); \n if (action.equals(\"Create\")) {\n if (!userDao.find(user)) {\n Controller.controller.addUser(user);\n response.sendRedirect(\"doUser\");\n } else {\n response.sendRedirect(\"create-user.jsp\");\n } \n } else if (action.equals(\"Edit\")) {\n if (userDao.find(email) != null) {\n Controller.controller.editUser(user);\n response.sendRedirect(\"doUser\");\n } else {\n response.sendRedirect(\"edit-user.jsp\");\n }\n }\n \n \n }",
"@GetMapping(value = \"/showForm\")\n\tpublic String showForm(Model model) {\n\t\tmodel.addAttribute(\"person\", new Person());\n\n\t\t// In order to test 500 internal server error\n\t\t// int g = 7/0;\n\n\t\treturn FORM_VIEW;\n\t}",
"@RequestMapping(value = \"/add\")\n public String addForm(Model model) {\n model.addAttribute(\"service\",fservice.findAllServices());\n model.addAttribute(\"customer\", mservice.findAllCustomer());\n model.addAttribute(\"customer\", new Customer());\n return \"customer-form\";\n }",
"public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }",
"@RequestMapping(value = \"/registration\", method = RequestMethod.GET)\n public String showPageRegistration(Model model)\n {\n model.addAttribute(\"registeredUser\", new User());\n return \"registration\";\n }",
"public String addEmployee() {\n\t\t\t//logger.info(\"addEmployee method called\");\n\t\t\t//userGroupBO.save(userGroup);;\n\t\t\treturn SUCCESS;\n\t\t}",
"@Override\r\n\t\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\t\tthrows ServletException, IOException {\n\t\t\tString name = req.getParameter(\"name\");\r\n\t\t\tString lastname = req.getParameter(\"email\");\r\n\t\t\tString email = req.getParameter(\"comentario\");\r\n\t\t\t\r\n\t\t\t//El Servlet crea una Persona nueva y lo hace persistente\r\n\t\t\tfinal PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t\tfinal Usuario p = new Usuario(name, lastname, email);\r\n\t\t\ttry{\r\n\t\t\t\tpm.makePersistent(p);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}finally{\r\n\t\t\t\t//Comprobar\r\n\t\t\t\tif( pm.currentTransaction().isActive() ){\r\n\t\t\t\t\t// Error occurred so rollback the transaction\r\n\t\t\t\t\tpm.currentTransaction().rollback();\r\n\t\t\t }\r\n\t\t\t\t//\r\n\t\t\t\t//Se consultan todas las Personas\r\n\t\t\t\tfinal Query q = pm.newQuery(Usuario.class);\r\n\t\t\t\tq.setOrdering(\"id descending\");\r\n\t\t\t\ttry{\r\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\t\tList<Usuario> personas = (List<Usuario>) q.execute();\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Comunicación Servlet-JSP\r\n\t\t\t\t\t * Primero se crea el atributo 'personas'\r\n\t\t\t\t\t * Luego llama al JSP ubicado en la carpeta WEB-INF\r\n\t\t\t\t\t * Finalmente envia los objetos 'req y resp. 'req' tiene el atributo nuevo\r\n\t\t\t\t\t * */\r\n\t\t\t\t\treq.setAttribute(\"personas\", personas);\r\n\t\t\t\t\treq.setAttribute(\"formPersona\", false);\r\n\t\t\t\t\tRequestDispatcher rd = req.getRequestDispatcher(\"/WEB-INF/comentario.jsp\");\r\n\t\t\t\t\trd.forward(req, resp);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * */\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(e);\r\n\t\t\t\t}finally{\r\n\t\t\t\t\t//Comprobar\r\n\t\t\t\t\tif( pm.currentTransaction().isActive() ){\r\n\t\t\t\t\t\t// Error occurred so rollback the transaction\r\n\t\t\t\t\t\tpm.currentTransaction().rollback();\r\n\t\t\t\t }\r\n\t\t\t\t\t//\r\n\t\t\t\t\tq.closeAll();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpm.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n String access = \"\";\n String action = request.getParameter(\"action\");\n \n final String erroPage = \"companyError.jsp\";\n final String successPage = \"companySuccess.jsp\";\n \n if(action.equalsIgnoreCase(\"addVacancy\")){\n System.out.println(\"ADD VACANCY\");\n Vacancy vacancy = new Vacancy();\n VacancyDAO dao = new VacancyDAO();\n vacancy.setIdCompany(Integer.valueOf(request.getParameter(\"idCompany\")));\n vacancy.setWorkstation(request.getParameter(\"workstation\"));\n vacancy.setId(Integer.valueOf(request.getParameter(\"idVacancy\")));\n vacancy.setWorkHours(request.getParameter(\"workhours\"));\n vacancy.setAddress(request.getParameter(\"address\"));\n vacancy.setDescription(request.getParameter(\"description\"));\n vacancy.setSalary(Integer.valueOf(request.getParameter(\"salary\")));\n if(dao.create(vacancy)){\n access = successPage;\n }else{\n access = erroPage;\n } \n } else if(action.equalsIgnoreCase(\"addProfile\")){\n System.out.println(\"ADD PROFILE\");\n Company company = new Company();\n Representative rep = new Representative();\n CompanyDAO dao = new CompanyDAO();\n int idUser = Integer.valueOf(request.getParameter(\"idUser\"));\n company.setName(request.getParameter(\"name\"));\n company.setAddress(request.getParameter(\"address\"));\n company.setCity(request.getParameter(\"city\"));\n company.setPhone(request.getParameter(\"phone\"));\n company.setEmail(request.getParameter(\"email\"));\n company.setRFC(request.getParameter(\"rfc\"));\n company.setCountry(request.getParameter(\"county\"));\n rep.setName(request.getParameter(\"nameRep\"));\n rep.setLastName(request.getParameter(\"lastNameRep\"));\n rep.setPhone(request.getParameter(\"phone\"));\n rep.setEmail(request.getParameter(\"email\"));\n if(dao.create(company,rep,idUser)){\n access = successPage;\n }else{\n access = erroPage;\n }\n } else{\n access = erroPage;\n }\n \n RequestDispatcher view = request.getRequestDispatcher(access);\n view.forward(request, response);\n \n }",
"@GetMapping(value=\"/\")\n\tpublic String showRegistrationForm(WebRequest request, Model model) {\n\t\tUserDTO userDTO = new UserDTO();\n\t\tmodel.addAttribute(\"user\", userDTO);\n\t\treturn \"security/register\";\n\t}",
"@RequestMapping(value = \"/reg.htm\",method = RequestMethod.POST)\r\n\tpublic String register(User user,BindingResult result,ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\t\r\n\t\t\tuserService.addUser(user);\r\n\t\t\treturn \"regSuccess\";\t\r\n\t\t}",
"@RequestMapping(value = \"/register\", method = RequestMethod.GET)\n public ModelAndView displayRegisterForm() {\n return new ModelAndView(\"registerForm\", \"customer\", new Customer());\n }",
"@RequestMapping(value = \"/admin/signup\", method = RequestMethod.GET)\n public String adminSignupPage(Model model)\n {\n\t model.addAttribute(\"adminForm\", new UserDto());\n\t return \"admin/admin-signup\";\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tMap<String, String[]> parameterMap =\n\t\t\t\treq.getParameterMap();\n\n\t\tUser u = new User();\n\t\ttry {\n\t\t\t//可以直接把map中的内容设置到对象上\n\t\t\tBeanUtils.populate(u,parameterMap);\n\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n int insertUser = userDao.insertUser(u);\n if (insertUser==1){\n resp.getWriter().write(\"SUCCESS\");\n resp.setStatus(302);\n resp.sendRedirect(\"http://localhost:8080/TextRegister.html\");\n }else{\n RequestDispatcher dispatcher = req.getRequestDispatcher(\"/insert\");\n dispatcher.include(req,resp);\n }\n\n\n\t}",
"@GetMapping(value = { \"/\", \"/addContact\" })\r\n\tpublic String loadForm(Model model) {\r\n\t\tmodel.addAttribute(\"contact\", new Contact());\r\n\t\treturn \"contactInfo\";\r\n\t}",
"public String addNew() {\r\n\t\ttry {\r\n\t\t\tgetNavigationPanel(2);\r\n\t\t\treturn \"questData\";\r\n\t\t} catch(Exception e) {\r\n\t\t\tlogger.error(\"Exception in addNew in action:\" + e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString fname = request.getParameter(\"fname\");\n\t\tString lname = request.getParameter(\"lname\");\n\t\tString gender = request.getParameter(\"gender\");\n\t\tString qualification = request.getParameter(\"qualification\");\n\t\tString address= request.getParameter(\"address\");\n\t\tString phoneno = request.getParameter(\"phoneno\");\n\t\tString mailid = request.getParameter(\"mailid\");\n\t\tString username = request.getParameter(\"username\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString hintquestion = request.getParameter(\"hintquestion\");\n\t\tString hintanswer = request.getParameter(\"hintanswer\");\n\t\tString designation = request.getParameter(\"designation\");\n\t\t\n\t\tRegister register = new Register( fname, lname, gender, qualification, address, phoneno, mailid, username, password, hintquestion, hintanswer, designation);\n\t\t//Using Java Beans - An easiest way to play with group of related data\n\t\tregister.setFname(fname);\n\t\tregister.setLname(lname);\n\t\tregister.setGender(gender);\n\t\tregister.setQualification(qualification);\n\t\tregister.setAddress(address);\n\t\tregister.setPhoneno(phoneno);\n\t\tregister.setMailid(mailid);\n\t\tregister.setUsername(username);\n\t\tregister.setPassword(password);\n\t\tregister.setHintquestion(hintquestion);\n\t\tregister.setHintanswer(hintanswer);\n\t\tregister.setDesignation(designation);\n\t\tRegisterDao registerDao = new RegisterDao();\n\t\tString userRegistered = registerDao.registerUser(register);\n\t\t\n\t\tif(userRegistered.equals(\"SUCCESS\")) //On success, you can display a message to user on Home page\n\t\t{\n\t\t\tresponse.sendRedirect(\"./Register.jsp?msg=Successfully saved\");\n\t\t}\n\t\telse //On Failure, display a meaningful message to the User.\n\t\t{\n\t\trequest.setAttribute(\"errMessage\", userRegistered);\n\t\trequest.getRequestDispatcher(\"/Register.jsp\").forward(request, response);\n\t\t}\n\t\t\n\t\t\n\t}",
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"public String post(HttpServletRequest request,\n PageModel model,\n UiUtils ui,\n UiSessionContext session) throws IOException {\n Map<String, Object> params=new HashMap<String, Object>();\n\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date birthDate = df.parse(request.getParameter(\"patient.birthdate\"), new ParsePosition(0));\n Boolean estimated = Boolean.parseBoolean(request.getParameter(\"patient.birthdateEstimated\"));\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyMMddHHmmssS\");\n Calendar calendar = Calendar.getInstance();\n Random random = new Random();\n\n String identifier = sdf.format(calendar.getInstance().getTime()) + random.nextInt(9999);\n String givenName = \"\";\n String familyName = \"\";\n String otherNames = \"\";\n\n String[] nameList = request.getParameter(\"patient.name\").split(\"\\\\s+\");\n\n for (int i=0; i<nameList.length; i++){\n if (i ==0){\n givenName = nameList[i];\n }\n else if (i==1){\n familyName = nameList[i];\n }\n else{\n otherNames += nameList[i] + \" \";\n }\n }\n\n PersonName pn = new PersonName();\n pn.setGivenName(givenName);\n pn.setFamilyName(familyName);\n pn.setMiddleName(otherNames);\n\n PatientIdentifier pi = new PatientIdentifier();\n pi.setIdentifier(identifier);\n pi.setIdentifierType(new PatientIdentifierType(2));\n pi.setLocation(session.getSessionLocation());\n pi.setDateCreated(new Date());\n pi.setCreator(session.getCurrentUser());\n\n PersonAddress pa = new PersonAddress();\n pa.setAddress1(request.getParameter(\"address.address1\"));\n pa.setAddress2(request.getParameter(\"address.telephone\"));\n pa.setCountry(request.getParameter(\"address.country\"));\n pa.setCityVillage(request.getParameter(\"address.cityVillage\"));\n pa.setStateProvince(request.getParameter(\"address.stateProvince\"));\n pa.setPreferred(true);\n pa.setCreator(session.getCurrentUser());\n pa.setDateCreated(new Date());\n\n Patient patient = new Patient();\n patient.addName(pn);\n patient.addAddress(pa);\n patient.addIdentifier(pi);\n patient.setGender(request.getParameter(\"patient.gender\"));\n patient.setBirthdate(birthDate);\n patient.setBirthdateEstimated(estimated);\n patient.setCreator(session.getCurrentUser());\n patient.setDateCreated(new Date());\n\n patient = Context.getPatientService().savePatient(patient);\n\n PersonLocation pl = new PersonLocation();\n pl.setPerson(patient);\n pl.setLocation(session.getSessionLocation());\n pl.setDescription(\"Registration\");\n Context.getService(MdrtbService.class).savePersonLocation(pl);\n\n params.put(\"patient\", patient);\n\n return \"redirect:\" + ui.pageLink(\"mdrtbdashboard\", \"enroll\", params);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n registerNewMember(request, response);\n }",
"@GetMapping(\"/add\")\n public String add(){\n\n return \"add\";\n }"
] | [
"0.70001674",
"0.6778934",
"0.6708976",
"0.6660508",
"0.6637359",
"0.6632198",
"0.6612484",
"0.657858",
"0.65396297",
"0.6480186",
"0.64024997",
"0.637144",
"0.6334338",
"0.632246",
"0.6301278",
"0.62938464",
"0.6273255",
"0.62712795",
"0.6252499",
"0.6184188",
"0.61769414",
"0.61720556",
"0.61709714",
"0.6159108",
"0.6156395",
"0.6155018",
"0.6124426",
"0.6123067",
"0.6109485",
"0.6103049",
"0.6098101",
"0.60854447",
"0.60772854",
"0.6075809",
"0.6066922",
"0.6053553",
"0.6049394",
"0.60409427",
"0.6040598",
"0.60318744",
"0.6022954",
"0.6018625",
"0.60097194",
"0.6006324",
"0.5991283",
"0.5989056",
"0.5988662",
"0.5986888",
"0.5978571",
"0.59600323",
"0.5954209",
"0.5941632",
"0.59391296",
"0.5937417",
"0.593591",
"0.5935885",
"0.5926229",
"0.5922417",
"0.5921124",
"0.58941823",
"0.58839875",
"0.58816034",
"0.58754504",
"0.5866422",
"0.5864799",
"0.5864292",
"0.5854024",
"0.5840963",
"0.5835274",
"0.5834238",
"0.58320063",
"0.58252245",
"0.5814732",
"0.5813432",
"0.58126837",
"0.5809034",
"0.57943",
"0.57936823",
"0.57875055",
"0.57839835",
"0.5780951",
"0.5780803",
"0.57801074",
"0.5779772",
"0.57794404",
"0.57780284",
"0.57752246",
"0.5774995",
"0.57650816",
"0.5757108",
"0.57562864",
"0.57504344",
"0.57477486",
"0.5744314",
"0.5743545",
"0.57420987",
"0.57257116",
"0.57185245",
"0.5714608",
"0.5713912"
] | 0.7324687 | 0 |
Summary: This method is called when users submit the edit form from the edit page. It uses the service layer to write the submitted information to the database. Return: This method returns a view that redisplays to the user the changes they made to the person's information in the database. Parameters: Person = An object containing the data the user entered on the edit form id = The id of the edited person contained in the URL | @RequestMapping(value = "edit/{id}", method = RequestMethod.POST)
public ModelAndView edit(@ModelAttribute Person editedPerson, @PathVariable int id)
{
personService.updatePerson(editedPerson);
return new ModelAndView("addEditConfirm", "person", editedPerson);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(\"/showFormForUpdate\")\n\tpublic String showFormForUpdate(@RequestParam(\"personId\") int theId, Model theModel) {\n\t\tPerson thePerson = patientKeeperService.getPerson(theId);\n\n\t\t// set person as a model attribute to pre-populate the form\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\t// send over to our form\n\t\treturn \"person-form\";\n\t}",
"@RequestMapping(value = \"/editPersona\", method = RequestMethod.GET)\n\tpublic String showFormForUpdate(@RequestParam(\"id_persona\") int id_persona, Model model) {\n\t\tPersona Person = personaService.getPersona(id_persona);\n\t\tmodel.addAttribute(\"Person\", Person);\n\t\treturn \"editPersona\";\n\t}",
"@GetMapping(\"/person/edit/{id}\")\n public String editPerson(@PathVariable(\"id\") int id, Model model) {\n Optional<Person> person = personRepo.get(id);\n if (person.isPresent()) {\n model.addAttribute(\"person\", person.get());\n }\n return \"personForm\";\n }",
"@RequestMapping(value = \"/actualizarPersona\", method = RequestMethod.GET)\n\tpublic ModelAndView EditarPersona() {\n\t\tList<Persona> personaLista = personaService.getAllPersonas();\n\t\tmav.addObject(\"personaLista\", personaLista);\n\t\tmav.setViewName(\"actualizarPersona\");\n\t\treturn mav;\n\t}",
"@RequestMapping(value = \"/editPersona\", method = RequestMethod.POST)\n\tpublic ModelAndView editarPersona(@ModelAttribute Persona persona) {\n\t\tpersonaService.actualizarPersona(persona);\n\t\treturn new ModelAndView(\"redirect:/\");\n\t}",
"@RequestMapping(value = \"/person/{id}\", method = RequestMethod.GET)\r\n\tpublic String personForm(@PathVariable int id, Model model) {\r\n\t\tPerson existingPerson = personManager.getPersonById(id);\r\n\t\tmodel.addAttribute(\"person\", existingPerson);\r\n\t\treturn \"groefnia/person/details\";\r\n\r\n\t}",
"@GetMapping(\"/edit\")\r\n public String editView() {\r\n return \"modify\";\r\n }",
"@Override\n\tpublic ModelAndView edit(String id) {\n\t\treturn null;\n\t}",
"public void edit(Person person) {\n\t\tpersonRepository.edit(person);\n\t}",
"@GetMapping(\"/editar/{id_persona}\")\n public String editar(Persona persona, Model model){\n persona = personaService.encontrarPersona(persona);\n model.addAttribute(\"persona\", persona);\n return \"modificar\";\n }",
"@Override\r\n public void commitEdit(Person newValue) {\n newValue = (newValue == null) ? this.model : newValue;\r\n super.commitEdit(newValue); // <-- important\r\n // update the model with values from the text fields\r\n newValue.firstName(firstName.textProperty().get());\r\n newValue.lastName(lastName.textProperty().get());\r\n newValue.phoneNumber(phoneNumber.textProperty().get());\r\n }",
"private void showEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer customerEdit = CustomerDao.getCustomer(id);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/editCustomer.jsp\");\n dispatcher.forward(request, response);\n }",
"@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}",
"public void edit(Person person) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = (Person) session.get(Person.class, person.getId());\n\t\t\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\n\t\t// Save updates\n\t\tsession.merge(existingPerson);\n\t}",
"public String handleEdit()\n throws webschedulePresentationException, HttpPresentationException\n {\t\t \n String projID = this.getComms().request.getParameter(PROJ_ID);\n Project project = null;\n\n System.out.println(\" trying to edit a project \"+ projID);\n \n // Try to get the proj by its ID\n try {\n\t project = ProjectFactory.findProjectByID(projID);\n\t System.out.println(\" trying to edit a project 2\"+ projID);\n\t String title = project.getProj_name();\n\t System.out.println(\"project title: \"+title);\n\t\n } catch(Exception ex) {\n this.getSessionData().setUserMessage(\"Please choose a valid PROJECT to edit\");\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n }\n \n // If we got a valid project then try to save it\n // If any fields were missing then redisplay the edit page, \n // otherwise redirect to the project catalog page\n try {\n saveProject(project);\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n } catch(Exception ex) {\n return showEditPage(\"You must fill out all fields to edit this project\");\n } \n }",
"@RequestMapping(\"/item/{id}/update\")\n\tpublic ModelAndView showEditForm(@PathVariable(\"id\")Long id) {\n\t\tModelAndView mv = new ModelAndView(\"item-form\");\n\t\tmv.addObject(\"title\", \"Edit item!\"); //1st var is name we wanna call it\n\t\tmv.addObject(\"item\", itemDao.findById(id).orElse(null)); //2nd is data we use over and over again\n\t\t\t\t\n\t\t\t\treturn mv;\n\t\t\n\t}",
"@PostMapping(\"/update\")\n public ModelAndView editSocio(Persona persona) {\n personaService.editSocio(persona);\n return new ModelAndView(\"redirect:/admin/socios\");\n }",
"public String handleEdit()\n throws webschedulePresentationException, HttpPresentationException\n {\t\t \n \n Project project = null;\n\n \n \n // Try to get the proj by its ID\n try {\n\t project = ProjectFactory.findProjectByID(this.getProjectID());\n\t \n\t String title = project.getProj_name();\n\t System.out.println(\"project title: \"+title);\n\t\n } catch(Exception ex) {\n this.getSessionData().setUserMessage(\"Please choose a valid PROJECT to edit\");\n throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE);\n }\n \n // If we got a valid project then try to save it\n // If any fields were missing then redisplay the edit page, \n // otherwise redirect to the project catalog page\n try {\n saveProject(project);\n throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE);\n } catch(Exception ex) {\n return showPage(\"You must fill out all fields to edit this project\");\n } \n }",
"protected void edit(HttpServletRequest request, HttpServletResponse response, EcAnonymousPaymentInfoForm _EcAnonymousPaymentInfoForm, EcAnonymousPaymentInfo _EcAnonymousPaymentInfo) throws Exception{\n\r\n _EcAnonymousPaymentInfo.setAnonymousUserId(WebParamUtil.getLongValue(_EcAnonymousPaymentInfoForm.getAnonymousUserId()));\r\n _EcAnonymousPaymentInfo.setFirstName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getFirstName()));\r\n _EcAnonymousPaymentInfo.setMiddleInitial(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getMiddleInitial()));\r\n _EcAnonymousPaymentInfo.setLastName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getLastName()));\r\n _EcAnonymousPaymentInfo.setAddress1(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress1()));\r\n _EcAnonymousPaymentInfo.setAddress2(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress2()));\r\n _EcAnonymousPaymentInfo.setCity(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCity()));\r\n _EcAnonymousPaymentInfo.setState(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getState()));\r\n _EcAnonymousPaymentInfo.setZip(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getZip()));\r\n _EcAnonymousPaymentInfo.setCountry(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCountry()));\r\n _EcAnonymousPaymentInfo.setPaymentType(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentType()));\r\n _EcAnonymousPaymentInfo.setPaymentNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentNum()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireMonth(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireMonth()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireYear(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireYear()));\r\n _EcAnonymousPaymentInfo.setPaymentExtraNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentExtraNum()));\r\n _EcAnonymousPaymentInfo.setTimeCreated(WebParamUtil.getDateValue(_EcAnonymousPaymentInfoForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _EcAnonymousPaymentInfo);\r\n m_ds.update(_EcAnonymousPaymentInfo);\r\n m_actionExtent.afterUpdate(request, response, _EcAnonymousPaymentInfo);\r\n }",
"public void updatePerson(){\r\n\r\n // Generally update is performed after search \r\n // need to find out which record is going to update \r\n\r\n if (recordNumber >= 0 && recordNumber < personsList.size())\r\n {\r\n PersonInfo person = (PersonInfo)personsList.get(recordNumber);\r\n\r\n int id = person.getId();\r\n\r\n\t /*get values from text fields*/ \r\n\t name = tfName.getText();\r\n\t address = tfAddress.getText();\r\n\t phone = Integer.parseInt(tfPhone.getText());\r\n email = tfEmail.getText();\r\n\r\n\t /*update data of the given person name*/\r\n\t person = new PersonInfo(id, name, address, phone, email);\r\n pDAO.updatePerson(person);\r\n\r\n\t JOptionPane.showMessageDialog(null, \"Person info record updated successfully.\"); \r\n }\r\n else\r\n { \r\n JOptionPane.showMessageDialog(null, \"No record to Update\"); \r\n }\r\n }",
"@RequestMapping(value = \"/update/{id}\")\r\n\tpublic ModelAndView update(@PathVariable\r\n\tString id) {\r\n\r\n\t\treturn new ModelAndView(\"user.new\", \"person\", personService.getPerson(id));\r\n\r\n\t}",
"@GetMapping(\"/update/{id}\")\n public String showSocioToUpdate(@PathVariable Integer id, Model model) {\n List<Cargo> cargos = cargoService.getCargos();\n Persona persona = personaService.getById(id);\n model.addAttribute(\"cargos\", cargos);\n model.addAttribute(\"persona\", persona);\n return \"/backoffice/socioFormEdit\";\n }",
"public String toEdit() {\n\t\t HttpServletRequest request = (HttpServletRequest) FacesContext\n\t\t\t\t\t.getCurrentInstance().getExternalContext().getRequest();\n\t\t\t String idf = request.getParameter(\"idf\");\n\t log.info(\"----------------------------IDF--------------\"+idf);\n\t\t\treturn \"paramEdit?faces-redirect=true&idf=\"+idf;\n\t\n\t}",
"@RequestMapping(\"/author/update/{id}\")\n public ModelAndView showUpdateAuthorPage(@PathVariable(name = \"id\") Long id) {\n ModelAndView mav = new ModelAndView(\"/author/update\");\n Author author = authorservice.getAuthor(id);\n final Logger log = LoggerFactory.getLogger(ProjectApplication.class);\n log.info(\"---------------update author----------------\");\n mav.addObject(\"author\", author);\n\n return mav;\n }",
"@RequestMapping(value = \"/{id}/edit.html\", method = RequestMethod.GET)\n public String provideForm(@PathVariable(\"id\") Long id, Model model) \n throws Exception {\n FixtureModel fixture = fixtureService.findFixtureById(id); \n model.addAttribute(\"fixture\", fixture);\n return FORM_VIEW_NAME;\n }",
"@RequestMapping(value = \"/modify\", method=RequestMethod.POST) //보낼때 post로 보낸다..............용량 크거나 아이다 패스워드같은\n\tpublic String modify(HttpServletRequest request, Model model) {\n\t\tdao.modify(request.getParameter(\"bId\"), \n\t\t\t\trequest.getParameter(\"bName\"), \n\t\t\t\trequest.getParameter(\"bTitle\"), \n\t\t\t\trequest.getParameter(\"bContent\"));\n\t\treturn \"redirect:list\";\n\t}",
"@RequestMapping(value = \"/editFact/{factId}\", method = { RequestMethod.GET, RequestMethod.POST })\n\tpublic void editFact(HttpServletRequest req, HttpServletResponse resp, @PathVariable Integer factId, Model model) throws IOException, ServletException {\n\t\tFact fact = factDao.findFactById(factId);\n\t\tfactDao.editFact(fact);\n\t}",
"@RequestMapping(value = \"/edit/{id}\", method = RequestMethod.GET)\n public String editStudent(ModelMap view, @PathVariable int id) {\n Student student = studentService.findById(id);\n view.addAttribute(\"student\", student);\n view.addAttribute(\"updateurl\", updateurl);\n return(\"editstudent\");\n }",
"private String prepareAndReturnEditPage(Model model) {\n this.populateDentistVisitFormModel(model);\n return \"editForm\";\n }",
"@RequestMapping(value = \"/edit/{employeeID}\", method = RequestMethod.GET)\n public ModelAndView initUpdateOwnerForm(@PathVariable(\"employeeID\") String employeeID, Model model) {\n \tEmployee e = empService.findById(employeeID);\n\t\tModelAndView mav= new ModelAndView(\"CreateOrUpdateEmployee\",\"employee\",e);\n\t\tString s=\"edit\";\n\t\tmav.addObject(\"actiont\", s);\n\t\t mav.addObject(\"roleList\", roleRepo.findAll());\n\t\t mav.addObject(\"SupervisorList\",empService.ListOfSuperVisor());\n return mav;\n }",
"protected void doEdit (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doEdit method not implemented\");\n }",
"@PostMapping(\"/edit\")\r\n public String editDetails(Model model,@RequestParam int id) {\r\n \t\r\n try {\r\n Trainee trainee = service.findById(id);\r\n \r\n model.addAttribute(\"trainee\", trainee);\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"modify\";\r\n }",
"@RequestMapping(\"/showEdit\")\n\tpublic String viewEditPage(@RequestParam(\"locId\")int locId,ModelMap map){\n\t\tLocation loc=service.getLocationById(locId);\n\t\tmap.addAttribute(\"locObj\",loc);\n\t\treturn \"LocationDataEdit\";\n\t}",
"public void editReview() throws ServletException, IOException {\r\n\t\tInteger reviewId = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tReview review = reviewDAO.get(reviewId);\r\n\t\t\r\n\t\tif (review != null) {\r\n\t\t\trequest.setAttribute(\"review\", review);\r\n\t\t\t\r\n\t\t\tString editPage = \"review_form.jsp\";\r\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(editPage);\r\n\t\t\tdispatcher.forward(request, response);\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tString message = \"Another user has already deleted review with ID \" + reviewId + \".\";\r\n\t\t\tlistAllReview(message);\r\n\t\t}\r\n\t}",
"@PostMapping(\"/posts/{id}/edit\")\n public String editThisPost(\n Model model,\n @PathVariable(name = \"id\") long id,\n @RequestParam(name = \"title\") String title,\n @RequestParam(name = \"body\") String body,\n @RequestParam(name = \"team\") String teamIDString,\n @RequestParam(name = \"sport\") String sportIDString) {\n\n Post post = postRepository.findOne(id);\n\n\n// change our id strings into longs\n\n long teamID = Long.parseLong(teamIDString);\n long sportID = Long.parseLong(sportIDString);\n\n\n// Make changes to post\n\n post.setTitle(title);\n post.setBody(body);\n post.setSport(sportRepository.findOne(sportID));\n post.setTeam(teamRepository.findOne(teamID));\n\n\n postRepository.save(post);\n\n// Return page after edit\n\n Post editedPost = postRepository.findOne(post.getId());\n model.addAttribute(\"editedPost\", editedPost);\n\n return \"posts/edit-success\";\n }",
"@RequestMapping(value = { \"/edit-{id}\" }, method = RequestMethod.GET)\n\tpublic String editEntity(@PathVariable ID id, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\tENTITY entity = abm.buscarPorId(id);\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", true);\n\n\t\tif(idEstadia != null){\n\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t}\n\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}",
"@RequestMapping(value = \"/editsave\", method = RequestMethod.POST)\n\tpublic String editsave(@ModelAttribute(\"company\") CompanyDto company) {\n\t\tcompanyService.update(company);\n\t\treturn \"redirect:/companies/getAll\";\n\t}",
"private String renderEditPage(Model model, VMDTO vmdto) {\n\t\tmodel.addAttribute(\"vmDto\", vmdto);\n\t\tmodel.addAttribute(\"availableProviders\", providerService.getAllProviders());\n\t\treturn \"vm/edit\";\n\t}",
"@RequestMapping(\"/book/edit/{id}\")\n public String edit(@PathVariable Long id, Model model){\n model.addAttribute(\"book\", bookService.getBookById(id));\n return \"bookform\";\n }",
"@FXML\n private void handleEditPerson() {\n Shops selectedShops = personTable.getSelectionModel().getSelectedItem();\n if (selectedShops != null) {\n boolean okClicked = mainApp.showPersonEditDialog(selectedShops);\n if (okClicked) {\n showPersonDetails(selectedShops);\n }\n\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }",
"@GetMapping(\"/carsAndCustomers/customer/edit/{id}\")\n public String editForm(@PathVariable(\"id\") Integer id, Model model) {\n Customer customer = customerRepository.getOne(id);\n model.addAttribute(\"customer\", customer);\n return \"fragments/editCustomerForm :: editCustomerForm\";\n\n }",
"@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}",
"@GetMapping(\"/showFormForUpdate\")\r\n\tpublic String showUpdateVehicleForm(@RequestParam(\"vehicleIdToUpdate\") int vehicleId, Model theModel) {\n\t\tVehiclePersonHelper theVehicleXperson = vehicleService.getVehicleAndOwnerFromDatabase(vehicleId);\r\n\t\ttheModel.addAttribute(\"vehicleXperson\", theVehicleXperson);\r\n\t\treturn \"add-vehicle\";\r\n\t}",
"public String update() throws IOException {\n\n authorManager.update(detailAuthor);\n\n reload();\n return \"author_detail.xhtml\";\n }",
"public void edit(Person person) {\n\t\tlogger.debug(\"Editing existing person\");\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = this.get(person.getId());\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\t // Save updates\n\t\tentityManager.merge(person);\n\t}",
"@RequestMapping(value = \"editarPublicacionPersonal\", method = RequestMethod.POST)\n\tpublic ModelAndView editar(HttpServletRequest request, HttpServletResponse response, Model model)throws Exception{\n\t\tModelAndView miMAV = new ModelAndView(\"menu\");\n\t\tList<Persona> usuarios =new ArrayList<Persona>();\n\t\tDAOPersona dao = new DAOPersona();\n\t\tusuarios=dao.getAllPersonas();\n\t\tmodel.addAttribute(\"listUsuarios\", usuarios );\n\t\tDAOPublicacion daoPublicacion = new DAOPublicacion();\n\t\t\n\t\t// TRAIGO LA INFORMACION QUE NECESITO\n\t\tString username;\n\t\tusername = request.getParameter(\"eliminarNombre\");\n\t\tString mensaje;\n\t\tmensaje = request.getParameter(\"eliminarMensaje\");\n\t\tString fecha;\n\t\tfecha = request.getParameter(\"eliminarFecha\");\n\t\tPublicacion pubAnt = daoPublicacion.leerPublicacion(username,fecha);\n\t\t\n\t\t// CREAMOS LA PUBLICACION QUE QUEREMOS BORRAR\n\t\tString newUsername = request.getParameter(\"eliminarNombre\");\n\t\tString newMessage = request.getParameter(\"nuevoMensaje\");\n\t\t//String newMessage = \"Prueba de editar el mensaje\";\n\t\tLinkedList<String> listaVacia = new LinkedList<String> ();\n\t\tPublicacion pubNew = new Publicacion(newUsername,newMessage,\"publico\",listaVacia);\n\t\tdaoPublicacion.actualizaPublicacion(pubAnt, pubNew);\n\t\tHttpSession session=request.getSession();\n\t\tPersona a=(Persona) session.getAttribute(\"persona\");\n\t\tList<Publicacion> publicaciones = daoPublicacion.leerPublicaciones(a.getUsername());\n\t\tmodel.addAttribute(\"listPublicacionesPersona\", publicaciones );\n\n\t\treturn miMAV;\n\t}",
"public void edit(RequestBean request) {\n\t\t\r\n\t}",
"public List <Person> editUser(List <Person> listOfPerson)\n\t{\n\t System.out.println(\"Enter the First Name you want to make changes in: \");\n\t String fname = Utility.inputString();\n\t for(int i = 0; i < listOfPerson.size(); i++)\n\t {\n\t \tif(listOfPerson.get(i).getFname().equals(fname))\n\t \t{\n\t \t\tPerson temp = listOfPerson.get(i);\n\t do {\n\t\t System.out.println(\"Enter the detail you want to edit: \");\n\t\t System.out.println(\"Enter 1 to edit Last Name: \");\n\t\t System.out.println(\"Enter 2 to edit Address: \");\n\t\t System.out.println(\"Enter 3 to edit City: \");\n\t\t System.out.println(\"Enter 4 to edit State: \");\n\t\t System.out.println(\"Enter 5 to edit Zip code: \");\n\t\t System.out.println(\"Enter 6 to edit Phone Number: \");\n\t\t int choice = Utility.inputInteger();\n\t\t switch(choice)\n\t\t {\n\t\t case 1:\n\t\t\t System.out.println(\"Enter the new Last Name\");\n\t\t\t temp.setLname(Utility.inputString()); \n\t\t\t System.out.println(\"Details saved successfully\");\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t \t System.out.println(\"Enter the New Address\");\n\t\t \t temp.setAddress(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 3:\n\t\t \t System.out.println(\"Enter the New City\");\n\t\t \t temp.setCity(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 4:\n\t\t \t System.out.println(\"Enter the New State\");\n\t\t \t temp.setState(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 5:\n\t\t \t System.out.println(\"Enter the new Zip code\");\n\t\t \t temp.setZip(Utility.inputInteger());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 6:\n\t\t \t System.out.println(\"Enter the New Phone Number\");\n\t\t \t temp.setPhn(Utility.inputLong());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t \t default:\n\t\t \t\t System.out.println(\"Invaild choice\");\n\t\t \t\t break;\n\t\t } \n\t\t listOfPerson.add(temp);\n\t\t return listOfPerson;\n\t }while(Utility.inputBoolean());\n\t }\n\t }\n\t return listOfPerson;\n\t}",
"void updateViewFromModel();",
"public abstract void edit();",
"protected void onSavePerson(Person person) {\n boolean isNew = false;\n if (person.getId() == null) {\n isNew = true;\n }\n\n try {\n personManager.save(person);\n } catch (Exception e) {\n e.printStackTrace();\n log.error(\"Error saving person: \" + e.getMessage());\n }\n\n String message = getLocalizer().getString(\"person.updated\", this);\n if (isNew) {\n message = getLocalizer().getString(\"person.added\", this);\n }\n getSession().info(message);\n if (isNew) {\n FeedbackPanel feedback = (FeedbackPanel) responsePage.get(\"feedback\");\n feedback.setVisible(true);\n feedback.setEscapeModelStrings(true);\n throw new RestartResponseAtInterceptPageException(responsePage);\n } else {\n FeedbackPanel feedback = (FeedbackPanel) this.get(\"feedback\");\n feedback.setVisible(true);\n feedback.setEscapeModelStrings(true);\n }\n }",
"void updateModelFromView();",
"private void edit() {\n\n\t}",
"public String editEmploye(Employee emp){\n System.out.println(\"******* Edit employe ************\");\n System.out.println(emp.toString());\n employeeService.editEmployee(emp);\n sessionController.logInEmp();\n\n return \"/pages/childCareCenterDashboard.xhtml?faces-redirect=true\";\n }",
"@RequestMapping(value=\"/ExternalUsers/EditProfile\", method = RequestMethod.GET)\n\t\tpublic String editProfile(ModelMap model) {\n\t\t\t// redirect to the editProfile.jsp\n\t\t\treturn \"/ExternalUsers/EditProfile\";\n\t\t\t\n\t\t}",
"@RequestMapping(value=\"/employeeupdt\", method=RequestMethod.POST)\npublic String UpdateSave(EmployeeRegmodel erm)\n{\n\tEmployeeRegmodel erm1 = ergserv.findOne(erm.getEmployee_id());\n\t\n\term1.setEmployee_address(erm.getEmployee_address());\n\term1.setEmail(erm.getEmail());\n\term1.setEmployee_dob(erm.getEmployee_dob());\n\term1.setEmployee_phoneno(erm.getEmployee_phoneno());\n\term1.setEmployee_password(erm.getEmployee_password());\n\term1.setEmployee_fullname(erm.getEmployee_fullname());\n\term1.setEmployee_fname(erm.getEmployee_fname());\n\t\n\tergserv.updateEmployeeRegmodel(erm1);\n\treturn \"update.jsp\";\n}",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/{id}\", params = \"form\", method = RequestMethod.GET) \n\tpublic String updateForm(@PathVariable(\"id\") Long id, Model uiModel) {\n\t\tuiModel.addAttribute(\"customer\", customerService.findById(id));\n\t\treturn \"customers/update\"; \n\t}",
"private void mostrarEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tUsuario existingUser = dao.selecionarUsuario(id);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"usuario-form.jsp\");\n\t\trequest.setAttribute(\"usuario\", existingUser);\n\t\tdispatcher.forward(request, response);\n\t}",
"@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}",
"@Override\n\tpublic Action.Forward exec(HttpServletRequest request, HttpServletResponse response) throws PersistentException {\n\t\tForward forward = new Forward(\"/author/book/edit.html\");\n\t\ttry {\n\t\t\tValidator<Book> validator = ValidatorFactory.createValidator(Book.class);\n\t\t\tBook book = validator.validate(request);\n\t\t\tBookService service = factory.getService(BookService.class);\n\t\t\tservice.save(book);\n\t\t\tforward.getAttributes().put(\"identity\", book.getIdentity());\n\t\t\tforward.getAttributes().put(\"message\", \"Данные книги успешно сохранены\");\n\t//\t\tlogger.info(String.format(\"User \\\"%s\\\" saved book with identity %d\", getAuthorizedUser().getLogin(), book.getIdentity()));\n\t\t} catch(IncorrectFormDataException e) {\n\t\t\tforward.getAttributes().put(\"message\", \"Были обнаружены некорректные данные\");\n\t//\t\tlogger.warn(String.format(\"Incorrect data was found when user \\\"%s\\\" tried to save book\", getAuthorizedUser().getLogin()), e);\n\t\t}\n\t\treturn forward;\n\t}",
"@GetMapping(\"/showFormForUpdate\")\n\tpublic String showFormForUpdate(@RequestParam(\"skillId\") int theId, Model theModel) {\n\t\tSkill theSkill = skillService.getSkill(theId);\n\t\t\n\t\t//set education as a model attribute to pre-populate the form\n\t\ttheModel.addAttribute(\"skill\", theSkill);\n\t\t\n\t\t//send over to our form\n\t\treturn \"skill-form\";\n\t}",
"protected abstract void showEditedEntity(Entity e);",
"@Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String editpage() {\n if (crudTableForm.crudMode != CommonConstants.EDIT_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.EDIT_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"edit.jsp\";\n }",
"public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}",
"@RequestMapping(\"/editRecipe\")\r\n\tpublic ModelAndView editRecipe(@RequestParam Integer idrKey) {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\r\n\t\tmav.addObject(\"recipe\", recipeDAO.findRecipeByPrimaryKey(idrKey));\r\n\t\tmav.setViewName(\"recipe/editRecipe.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}",
"@RequestMapping(value = { \"/edit-{id}\" }, method = RequestMethod.POST)\n\tpublic String updateEntity(@Valid ENTITY entity, BindingResult result,\n\t\t\tModelMap model, @PathVariable ID id,@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\n\t\t\tabm.actualizar(entity);\n\n\t\t\tmodel.addAttribute(\"success\", \"La modificación se realizó correctamente.\");\n\t\t} catch (Exception exception) {\n\t\t\tmodel.addAttribute(\"success\", \"La modificación no pudo realizarse.\");\n\t\t}\n\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\t//return viewBaseLocation + \"/list\";\n\t\treturn \"redirect:list\";\n\n\t}",
"private person getEditPerson(person selected_person) {\n\n selected_person.setName(textView_name.getText().toString());\n selected_person.setDate(textView_date.getText().toString());\n selected_person.setNeck(textView_neck.getText().toString());\n selected_person.setBust(textView_bust.getText().toString());\n selected_person.setChest(textView_chest.getText().toString());\n selected_person.setWaist(textView_waist.getText().toString());\n selected_person.setHip(textView_hip.getText().toString());\n selected_person.setInseam(textView_inseam.getText().toString());\n selected_person.setComment(textView_comment.getText().toString());\n\n return selected_person;\n }",
"@GetMapping(\"/{id}/edit\")\n public String edit(Model model,\n @PathVariable(\"id\") long id) {\n model.addAttribute(CUSTOMER, customerService.showCustomerById(id));\n return CUSTOMERS_EDIT;\n }",
"@GetMapping(\"/doctorinfo/{id}\")\n public String edit(@PathVariable(name = \"id\") Integer id,\n Model model){\n doctorDTO doctor = doctorService.getById(id);\n model.addAttribute(\"Did\",doctor.getDid());\n model.addAttribute(\"Dname\",doctor.getDname());\n model.addAttribute(\"Dsex\",doctor.getDsex());\n model.addAttribute(\"Dtel\",doctor.getDtel());\n model.addAttribute(\"Dlevel\",doctor.getDlevel());\n model.addAttribute(\"Hid\",doctor.getHospitalId());\n model.addAttribute(\"Dmajor\",doctor.getDmajor());\n model.addAttribute(\"Dinfo\",doctor.getDinfo());\n model.addAttribute(\"Dphoto\",doctor.getDphoto());\n model.addAttribute(\"password\",doctor.getPassword());\n return \"doctorinfo\";\n }",
"@RequestMapping(\"updat\")\r\n\tpublic String update(Model m) \r\n\t{\n\t\tm.addAttribute(\"update1\",new Employee());\r\n\t\treturn \"update\";//register.jsp==form action=register\r\n\t}",
"public String update()\n {\n this.conversation.end();\n\n try\n {\n if (this.id == null)\n {\n this.entityManager.persist(this.paramIntervento);\n return \"search?faces-redirect=true\";\n }\n else\n {\n this.entityManager.merge(this.paramIntervento);\n return \"view?faces-redirect=true&id=\" + this.paramIntervento.getNome();\n }\n }\n catch (Exception e)\n {\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(e.getMessage()));\n return null;\n }\n }",
"@RequestMapping(value = \"/edit/{objectid}\", method = RequestMethod.GET)\n public String edit(@PathVariable String objectid, Model model) {\n DataObject object = dataObjectRepository.findOne(Long.valueOf(objectid));\n model.addAttribute(\"object\", object);\n model.addAttribute(\"roles\", getAllRoles());\n return \"object/edit\";\n }",
"public void editOperation() {\n\t\t\r\n\t}",
"public interface EditViewHandler<T extends DomainObject> extends Serializable {\n\t\n\t/**\n\t * Saves the data in the back-end.\n\t * \n\t * @param entity Object containing the data to be saved in the back-end\n\t * @param editMode Indicates whether the operation is an update or not\n\t * \n\t * @throws PersistenceException if the operation could not be processed in the back-end\n\t */\n\tvoid save(T entity, boolean editMode) throws PersistenceException;\n\t\n\t/**\n\t * Cancels the operation of either an record update or creation\n\t * \n\t * @param entity The entity being edited when the operation is cancelled.\n\t * @param editMode Indicates whether the operation is an update or creation\n\t */\n\tvoid cancel(T entity, boolean editMode);\n\t\n\t/**\n\t * Defines the view to be managed and presented by the view handler.\n\t * \n\t * @param view The view to present data processed by the handler\n\t */\n\tvoid setView(PopupView<T> view);\n\t\n\t/**\n\t * Registers a handler to track changes performed in a given entity. \n\t * \n\t * @param changeListener The object to be defined as the change handler\n\t */\n\tvoid setChangeListener(EntityChangeListener<T> changeListener);\n}",
"@RequestMapping(\"/editPatientAccount\") \n\tpublic ModelAndView editPatientAccount(Model model, HttpServletRequest request, HttpServletResponse response, HttpSession session,\n\t\t\t@ModelAttribute(\"form\") PatientAccountForm form, RedirectAttributes redirectAttributes, BindingResult bindingResult){\n\t\t\n\t\tModelAndView mv = new ModelAndView();\n\t\ttry {\n\t\t\tint id = 0;\n\t\t\tif (form != null && form.getPatientId()>0)\n\t\t\t\tid = form.getPatientId(); \n\t\t\t\n\t\t\tLoginForm loggedInUser = (LoginForm) session.getAttribute(\"loginDetail\");\n\t\t\tList<States> statelist = stateService.getAllStates();\n\t\t\tList<PatientRxNotifyProviderType> rxNotifyProviderTypeList = rxNotifyProviderService.getAllPatientRxNotifyProviderType();\n\t\t\tList<PatientRxNotifyType> rxNotifyTypeList = rxNotifyTypeService.getAllPatientRxNotifyType();\n\t\t\tList<PatientSyncStatusType> patientSyncStatusTypeList = patientSyncStatusTypeService.getAllPatientSyncStatusType();\n\t\t\tString prescriptionId = \"\";\n\t\t\t\n\t\t\tif (id > 0) {\n\t\t\t\tPatientAccountForm patient = null;\n\t\t\t\tif (form != null && form.getEmail() != null && !\"\".equalsIgnoreCase(form.getEmail()))\n\t\t\t\t\tpatient = form;\n\t\t\t\telse\n\t\t\t\t\tpatient = patientAccountService.getPatientData(id, env.getProperty(\"file.photo_path\"));\n\t\t\t\tif (model.asMap().get(\"target\") != null) {\n\t\t\t\t\tString targetObject = model.asMap().get(\"target\").toString();\n\t\t\t\t\tprescriptionId = model.asMap().get(\"PrescriptionId\").toString();\n\t\t\t\t\tpatient.setTargetObject(targetObject);\n\t\t\t\t\tpatient.setPrescriptionId(prescriptionId);\n\t\t\t\t} else {\n\t\t\t\t\tpatient.setTargetObject(form.getTargetObject());\n\t\t\t\t\tpatient.setPrescriptionId(form.getPrescriptionId());\n\t\t\t\t\tprescriptionId = form.getPrescriptionId();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//January 31, 2018 Rohini\n\t\t\t\t//Put a variable and random number in the image url to refresh the image after uploading\n\t\t\t\t//example : photoUrl?x=123456\n\t\t\t\t\n\t\t\t\tint randomNumber = PharmacyUtil.randomNumberGenerator();\n\t\t\t\t\n\t\t\t\tString photoUrl = form.getPhotoFile();\n\t\t\t\tif(photoUrl==null || photoUrl.length()==0) {\n\t\t\t\t\tphotoUrl=\"images/img.jpg\";\n\t\t\t\t}\n\t\t\t\tphotoUrl = photoUrl+\"?x=\"+randomNumber;\n\t\t\t\tform.setPhotoFile(photoUrl);\n\t\t\t\t//System.out.println(\"photoUrl === \"+photoUrl);\n\t\t\t\t//January 31, 2018 Rohini\n\t\t\t\t\n\t\t\t\tif (PharmacyUtil.userPhysician.equalsIgnoreCase(loggedInUser.getType()) || PharmacyUtil.userPhysicianAssistant.equalsIgnoreCase(loggedInUser.getType())) {\n\t\t\t\t\tif (PharmacyUtil.userPhysician.equalsIgnoreCase(loggedInUser.getType())){\n\t\t\t\t\t\tpatient.setPhysicianId( loggedInUser.getUserid() );\n\t\t\t\t\t\tPhysicianGroup phyGroup = phyGroupRepo.findRecordByPhysicianId( loggedInUser.getUserid() );\n\t\t\t\t\t\tif(patient.getPatientId()==0) {\n\t\t\t\t\t\t\tpatient.setSelectedPhysicianId( loggedInUser.getUserid() +\"\" );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\t\t\t\tpatient.setSelectedGroupId(phyGroup.getGroupId()+\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\t\t\tpatient.setGroupId(phyGroup.getGroupId());\n\t\t\t\t\t\t\tGroupMaster groupMaster = groupService.getGroupMasterDetails(phyGroup.getGroupId());\n\t\t\t\t\t\t\tif(groupMaster != null)\n\t\t\t\t\t\t\t\tpatient.setGroupName(groupMaster.getGroupName());\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\tPhysicianAccount phyAcc = physicianRep.findOne(loggedInUser.getUserid());\n\t\t\t\t\t\tpatient.setPhysicianName(loggedInUser.getDisplayName());\n\t\t\t\t\t\t//patient.setClinicName(clinicRepo.findOne(phyAcc.getClinicId()).getClinicName());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmv.addObject(\"physicianFullName\", loggedInUser.getDisplayName());\n\t\t\t\t\t\tmv.addObject(\"userid\", loggedInUser.getUserid());\n\t\t\t\t\t}else {\n\t\t\t\t\t\tpatient.setPhysicianId( loggedInUser.getPhysicianAssistantPhysicianId() );\n\t\t\t\t\t\tPhysicianGroup phyGroup = phyGroupRepo.findRecordByPhysicianId( loggedInUser.getPhysicianAssistantPhysicianId() );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(patient.getPatientId()==0) {\n\t\t\t\t\t\t\tpatient.setSelectedPhysicianId( loggedInUser.getPhysicianAssistantPhysicianId() +\"\" );\n\t\t\t\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\t\t\t\tpatient.setSelectedGroupId(phyGroup.getGroupId()+\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\t\t\t\tpatient.setGroupId(phyGroup.getGroupId());\n\t\t\t\t\t\t\t\tpatient.setGroupName( groupService.getGroupMasterDetails(phyGroup.getGroupId()).getGroupName() );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tPhysicianAccount phyAcc = physicianRep.findOne(loggedInUser.getPhysicianAssistantPhysicianId());\n\t\t\t\t\t\tpatient.setPhysicianName(phyAcc.getPhysicianName());\n\t\t\t\t\t\t//patient.setClinicName(clinicRepo.findOne(phyAcc.getClinicId()).getClinicName());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmv.addObject(\"physicianFullName\", phyAcc.getPhysicianName());\n\t\t\t\t\t\tmv.addObject(\"userid\", loggedInUser.getPhysicianAssistantPhysicianId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (PharmacyUtil.userGroupDirector.equalsIgnoreCase(loggedInUser.getType())) {\n\t\t\t\t\t\tGroupDirector gp = groupDirRepo.findOne(loggedInUser.getUserid());\n\t\t\t\t\t\tList<PhysicianAccount> physicianList = physicianService.getApprovedPhysicianByGroupIdAndId(gp.getGroupId(), patient.getPhysicianId());\n\t\t\t\t\t\tmv.addObject(\"physicianList\", physicianList);\n\t\t\t\t\t\t\n\t\t\t\t\t\tpatient.setGroupId(loggedInUser.getGroupid());\n\t\t\t\t\t\tpatient.setGroupName(loggedInUser.getGroupName());\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tList<PhysicianAccount> physicianList = physicianService.getApprovedPhysicianAndId(patient.getPhysicianId());\n\t\t\t\t\t\tmv.addObject(\"physicianList\", physicianList);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\t/*List<GroupMaster> groupList = groupService.getByGroupMaster(patient.getGroupId());\n\t\t\t\tmv.addObject(\"groupList\", groupList);\t*/\n\t\t\t\t\n\t\t\t\t//Multiple Group select list box\n\t\t\t\tList<GroupMaster> groupList =null;\n\t\t\t\tList<GroupMaster> groupSelectedList =null;\n\n\t\t\t\tif (patient.getPatientId()>0) {\n\t\t\t\t\tgroupList = groupMasterRepo.getAllPatientGroupWiseListNotSelected(patient.getPatientId());\n\t\t\t\t\tgroupSelectedList = groupMasterRepo.getAllPatientGroupWiseListSelected(patient.getPatientId());\n\t\t\t\t}else {\n\t\t\t\t\tgroupList = groupService.getAllGroupMaster(PharmacyUtil.statusActive);\n\t\t\t\t}\n\n\t\t\t\t//Multiple Physician select list box for Multiple Group\n\t\t\t\tList<PhysicianAccount> physicianList =null;\n\t\t\t\tList<PhysicianAccount> physicianSelectedList =null;\n\n\t\t\t\tList<Integer> patGroupList = new ArrayList<Integer>();\n\t\t\t\tString patselectedGroupId=patient.getSelectedGroupId();\n\t\t\t\tif(patselectedGroupId!=null && patselectedGroupId.length()>0)\n\t\t\t\t{\n\n\t\t\t\t\tString[] patselectedGroupIdArr=patselectedGroupId.split(\",\");\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\tfor (String i : patselectedGroupIdArr) {\n\t\t\t\t\t\tpatGroupList.add(Integer.valueOf(i));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(patGroupList!=null && patGroupList.size()>0){\n\t\t\t\t\tif (patient.getSelectedGroupId()!=null && patient.getSelectedGroupId().length()>0 && patient.getPatientId()>0) {\n\t\t\t\t\t\tphysicianList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListNotSelected(patGroupList,patient.getPatientId());\n\t\t\t\t\t\tphysicianSelectedList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListSelected(patGroupList,patient.getPatientId());\n\t\t\t\t\t}else if (patient.getSelectedGroupId()!=null && patient.getSelectedGroupId().length()>0 ) {\n\t\t\t\t\t\tphysicianList = physicianRep.getAllGroupWisePhysicianList(patGroupList,0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*//Multiple select list box for Single Group\n\t\t\t\tList<PhysicianAccount> physicianList =null;\n\t\t\t\tList<PhysicianAccount> physicianSelectedList =null;\n\t\t\t\t\n\t\t\t\tif (patient.getGroupId()>0 && patient.getPatientId()>0) {\n\t\t\t\t\tphysicianList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListNotSelected(patient.getGroupId(),patient.getPatientId());\n\t\t\t\t\tphysicianSelectedList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListSelected(patient.getGroupId(),patient.getPatientId());\n\t\t\t\t}else if (patient.getGroupId()>0) {\n\t\t\t\t\tphysicianList = physicianRep.getAllGroupWisePhysicianList(patient.getGroupId(),0);\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\tmv.addObject(\"groupList\", groupList);\n\t\t\t\tmv.addObject(\"groupSelectedList\", groupSelectedList);\n\t\t\t\t\n\t\t\t\tmv.addObject(\"physicianList\", physicianList);\n\t\t\t\tmv.addObject(\"physicianSelectedList\", physicianSelectedList);\n\t\t\t\t\n\t\t\t\tmodel.addAttribute(\"patientAccount\", patient);\n\t\t\t\t\n\t\t\t\tList<DocumentFileList> uploadedDocList = patientAccountService.getUploadedDocuments(id);\n\t\t\t\tmv.addObject(\"uploadedDocList\", uploadedDocList);\n\t\t\t\t\n\t\t\t\tmv.addObject(\"userType\", loggedInUser.getType());\n\t\t\t\tmodel.addAttribute(\"message\", model.asMap().get(\"message\"));\n\t\t\t\tmodel.addAttribute(\"saveStatus\", model.asMap().get(\"saveStatus\"));\n\t\t\t\t\n\t\t\t\tmv.addObject(\"stateList\", statelist);\n\t\t\t\tmv.addObject(\"prescriptionId\", prescriptionId);\n\t\t\t\t\n\t\t\t\tmv.addObject(\"rxNotifyProviderTypeList\", rxNotifyProviderTypeList);\n\t\t\t\tmv.addObject(\"rxNotifyTypeList\", rxNotifyTypeList);\n\t\t\t\tmv.addObject(\"patientSyncStatusTypeList\", patientSyncStatusTypeList);\n\t\t\t\tList<CardTypeMaster> cardList = cardTypeMasterRepo.findAll();\n\t\t\t\tmv.addObject(\"cardList\", cardList);\n\t\t\t\t\n\t\t\t\tif(model.asMap().get(\"profileclick\")!=null) {\n\t\t\t\t\tmv.setViewName(\"patientProfile\");\n\t\t\t\t} else if(model.asMap().get(\"profileclick\")!=null) {\n\t\t\t\t\tmv.setViewName(\"patientLeftProfile\");\n\t\t\t\t} else {\n\t\t\t\t\tmv.setViewName(\"patientAccount\");\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmv.setViewName(\"redirect:patientAccount\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn mv;\n\t}",
"@RequestMapping(\"/editRepPage\")\r\n\tpublic String callEditRep(){\r\n\t\treturn \"editRepPage\";\r\n\t}",
"public void edit(PersonProxy personProxy, PersonRequest request) {\n driver.initialize(requestFactory, personEditor);\n// personEditor.editPersonProxy(personProxy);\n // Copy the data in the object into the UI\n driver.edit(personProxy, request);\n }",
"@RequestMapping(\"supplier/edit/{id}\")\r\n\tpublic String editSupplier(@PathVariable(\"id\")int id,Model model){\n\t\tif(supplierservice.get(id)!=null)\r\n\t\t{\r\n\t\t\tsupplierservice.saveOrUpdate(supplier);\r\n\t\t\tmodel.addAttribute(\"message\",\"Succesfully updated\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmodel.addAttribute(\"errorMessage\",\"Could not be updated\");\r\n\t\t}\r\n\t\t//log.debug(\"Ending\");\r\n\t\treturn \"supplier\";\r\n\t}",
"@Override\n public void onClick(View view) {\n updatePerson();\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\n if(request.getParameter(\"btn_edit\")!=null) \n {\t\n \t String company_name=request.getParameter(\"Name\"); \n\t String address_line_1=request.getParameter(\"address1\"); \n\t String address_line_2=request.getParameter(\"address2\"); \n\t String city =request.getParameter(\"city\");\n\t String email=request.getParameter(\"email\");\n\t String mobile=request.getParameter(\"mobile\");\n\t String item_name=request.getParameter(\"itemname\");\n\t \n\t double unit_Price=Double.parseDouble(request.getParameter(\"unitprice\"));\n \t \n int hidden_id=Integer.parseInt(request.getParameter(\"hidden_id\")); \n \n ORM_AddMetModel m=new ORM_AddMetModel(); \n \n m.setCompany_name(company_name);\n\t m.setAddress_line_1(address_line_1);\n\t m.setAddress_line_2(address_line_2);\t \n\t m.setCity(city);\n\t m.setEmail(email);\n\t m.setMobile(mobile);\n\t m.setItem_name(item_name);\n\t m.setUnit_Price(unit_Price);\n\t m.setId(hidden_id);\n\t \n \n ORM_EditMetDao editDao=new ORM_EditMetDao();\n \n String updateValidate=editDao.checkUpdate(m); \n \n if(updateValidate.equals(\"UPDATE SUCCESS\")) \n {\n request.setAttribute(\"UpdateSuccessMsg\",updateValidate); \n RequestDispatcher rd=request.getRequestDispatcher(\"6_ORM_MetPortal.jsp\");\n rd.forward(request, response);\n }\n else\n {\n request.setAttribute(\"UpdateErrorMsg\",updateValidate); \n RequestDispatcher rd=request.getRequestDispatcher(\"6_ORM_Material.jsp\");\n rd.include(request, response);\n }\n }\n\t}",
"public static Result editPost(Long id) {\t\t\n\t\tUser currentUser = UserController.loggedInUser();\n\t\tif (currentUser == null) {\n\t\t\t// User not logged in. So redirect to login first\n\t\t\t//String uri = request().uri();\n\t\t\tflash(\"loginMessage\", \"You are not logged in\");\n\t\t\treturn redirect(routes.Application.login());\n\t\t}\n\t\tPost post = Post.get(id);\n\t\tif (post != null) {\n\t\t\tif (!post.createdBy.equals(currentUser.userName)) {\n\t\t\t\treturn TODO; // You cannot edit post which you did not post.\n\t\t\t}\n\t\t\tForm<Post> postForm = form(Post.class).fill(post);\n\t\t\treturn ok(editPost.render(postForm, currentUser));\n\t\t} else {\n\t\t\treturn TODO; //Post does not exist\n\t\t}\n\t}",
"@Secured({ PermissionConstants.EDIT_PRICE })\n\t@RequestMapping(value = { \"edit/{id}\" }, method = RequestMethod.GET)\n\tpublic ModelAndView edit(@PathVariable(\"id\") String blogId,\n\t\t\tModelMap modelMap) {\n\n\t\tBlog blog = blogService.getById(blogId);\n\n\t\tif (blog != null) {\n\t\t\tmodelMap.put(\"blog\", blog);\n\t\t\t\n\t\t\tmodelMap.put(WebConstants.CONTENT_HEADER, \"Edit blog!! \");\n\t\t\treturn new ModelAndView(\"blogForm\", modelMap);\n\t\t}\n\n\t\tmodelMap.put(WebConstants.MODEL_ATTRIBUTE_ERROR_MESSAGE,\n\t\t\t\t\"Invalid blog id supplied\");\n\t\treturn view(modelMap, true);\n\t}",
"@GetMapping(\"/showFormForUpdateRoom\")\r\n\tpublic String showFormForUpdateRoom(@RequestParam(\"roomId\") int theId,\r\n\t\t\t\t\t\t\t\t\tModel theModel) {\n\t\tRoom theRoom = roomService.findById(theId);\r\n\t\t\r\n\t\t// set employee as a model attribute to pre-populate the form\r\n\t\ttheModel.addAttribute(\"room\", theRoom);\r\n\t\t\r\n\t\t// send over to our form\r\n\t\treturn \"/rooms/room-form\";\t\t\t\r\n\t}",
"@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\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\treturn \"go_preload\";\r\n\t}",
"@Override\n public void edit(User user) {\n }",
"@RequestMapping(value = \"/edit\", method = RequestMethod.POST)\n public String saveEdit (@ModelAttribute(\"pack\") Package pack, @RequestParam(value=\"id\", required=true) Integer id, Model model) {\n\t logger.debug(\"Received request to update package\");\n\t \n\t PackageDao pd = null;\n\t try {\n\t\t\tApplicationContext context = new ClassPathXmlApplicationContext (\"beans.xml\");\n\t\t\tpd = (PackageDao) context.getBean (\"packageDao\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error (\"FAIL: \" + e);\n\t\t}\n\t \n\t pd.update (pack);\n\t model.addAttribute (\"id\", id);\n\t model.addAttribute (\"programId\", pack.getProgramId());\n\t \n\t return \"packageEditedPage\";\n \t}",
"@RequestMapping(\"/edit/{id}\")\n\tpublic String showEditEmployeePage(@PathVariable(name = \"id\") int id, Model model) {\n\t\tEmployees Employees = service.get(id);\n\t\tmodel.addAttribute(\"Employees\", Employees);\n\t\tList<Employees> Employeeslist = service.listAll();\n\t\tmodel.addAttribute(\"Employeeslist\", Employeeslist);\n\t\treturn \"Edit_Employees\";\n\t}",
"public void edit() {\n\t\tlogger.debug(\"Entering IVR dtmf edit method...\");\n\t\tif (selectedDtmfId != null && selectedDtmfId.intValue() != -1) {\n\t\t\ttry {\n\t\t\t\tIvrDtmf entry = ivrDtmfDao.findById(selectedDtmfId);\n\t\t\t\tdtmfId = entry.getDtmfId();\n\t\t\t\tdtmfName = entry.getDtmfName();\n\t\t\t\tdtmfDigit = entry.getDtmfDigit();\n\t\t\t\tdtmfDescription = entry.getDtmfDescription();\n\t\t\t\tdtmfCreateDate = entry.getDtmfCreateDate();\n\t\t\t\tdtmfUpdateDate = entry.getDtmfUpdateDate();\n\t\t\t\tselectedDtmfId = -1;\n\t\t\t} catch (Exception ex) {\n\t\t\t\tlogger.error(\"Failed to fetch the element data from db, Cause: \"+ex.getMessage(), ex);\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Failed to fetch the element data from db, Cause: \"+ex.getMessage()));\n\t\t\t}\n\t\t} else {\n\t\t\treset();\n\t\t}\n\t}",
"@RequestMapping(\"/editEducation\")\r\n\t\tpublic String editEducation(@RequestParam(\"id\") Long id, ModelMap modelMap) {\r\n\t\tEducationQualification education = educationRepo.findEducationById(id);\r\n\t\tmodelMap.addAttribute(\"education\", education);\r\n\t\t\treturn \"updateEducationDetails\";\r\n\r\n\t\t}",
"@RequestMapping(\"/editRep\")\r\n\t@ResponseBody\r\n\tpublic Rep repToEdit(HttpServletRequest request){\r\n\t\t\r\n\t\tHttpSession session = request.getSession();\r\n\t\tString rep_id = (String)session.getAttribute(\"REP_ID\");\r\n\t\tint _rep_id = Integer.parseInt(rep_id);\r\n\r\n\t\tList<Rep> rep = repserviceimpl.doFindAllRep(); \r\n\r\n\t\treturn (rep.size() > 0) ? rep.get(0) : null;\t\t\r\n\t}",
"void editMyPost(Post post);",
"@RequestMapping(value = \"addContact\", method = RequestMethod.POST)\n\tpublic String savePerson(Model model, @ModelAttribute Person person) {\n\t\tsynchronized (Person.class) {\n\t\t\tdao.addPerson(person);\n\t\t}\n\n\t\tPerson p = new Person();\n\t\tmodel.addAttribute(\"person\", p);\n\t\treturn \"AddContact\";\n\t}",
"@GetMapping(\"/details/{id}/edit\")\n public String getEditOneRegistrationPage(@PathVariable Long id, DentistVisitForm dentistVisitForm, Model model) {\n if(!addSelectedVisitToModel(model, id)) {\n return \"redirect:/registrationList\";\n }\n return prepareAndReturnEditPage(model);\n }",
"@GetMapping(\"/students/edit/{id}\")\n\tpublic String createEditStudentPage(@PathVariable long id, Model model)\n\t{\n\t\tmodel.addAttribute(\"student\", studentService.getStudentById(id));\n\t\treturn \"edit_student\"; \n\t\t\n\t}",
"public String update()\n {\n this.conversation.end();\n\n try\n {\n if (this.id == null)\n {\n this.entityManager.persist(this.automotor);\n return \"search?faces-redirect=true\";\n }\n else\n {\n this.entityManager.merge(this.automotor);\n return \"view?faces-redirect=true&id=\" + this.automotor.getId();\n }\n }\n catch (Exception e)\n {\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(e.getMessage()));\n return null;\n }\n }",
"@GetMapping(\"/updateUser/{id}\")\n\t public String editUser(@PathVariable(\"id\") Long userId, Model model) {\n\t\t model.addAttribute(\"userId\", userId);\n\t\t return \"updatePage.jsp\";\n\t }",
"public Result viaje_edit(Long id){\n \n Viaje viaje=Viaje.find.byId(id);\n List<Cabezal> cabezales = Cabezal.find.where().eq(\"activo\",true).findList();\n List<Cliente> clientes = Cliente.find.where().eq(\"activo\",true).findList();\n List<Motorista> motoristas = Motorista.find.where().eq(\"activo\",true).findList();\n \n if(viaje==null){\n return redirect(routes.LogisticaController.viajes());\n }\n\n return ok(viaje_edit.render(viaje,cabezales,motoristas,clientes));\n\n }",
"protected void editArticle(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tArticleDAO articleDAO = ArticleDAO.getInstance();\r\n\r\n\t\t// Parsing the parameter to an int\r\n\t\tint id = Integer.parseInt(request.getParameter(\"article\"));\r\n\t\t// Getting all the articles as a list\r\n\t\tArticle a = articleDAO.getByArticleID(id);\r\n\t\t\r\n\t\tString action = request.getParameter(\"articleAction\");\r\n\t\t\r\n\t\tif( action != null && action.equals(\"update\")){\r\n\t\t\t//Article updateArticle = (Article) request.getAttribute(\"Article\");\r\n\t\t\tString title = request.getParameter(\"title\");\r\n\t\t\tString body = request.getParameter(\"body\");\r\n\t\t\ta.setTitle(title);\r\n\t\t\ta.setBody(body);\r\n\t\t\tarticleDAO.updateArticle(a);\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\trequest.setAttribute(\"Article\", a);\r\n\t\t\r\n\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/editArticle.jsp\");\r\n\t\tdispatcher.forward(request, response);\r\n\t}",
"public String edit() {\r\n\t\tuserEdit = (User) users.getRowData();\r\n\t\treturn \"edit\";\r\n\t}",
"private void showOldAuthorData() {\n try {\n Author author = authorService.getAuthorById(selectedId);\n nameTxt.setText(author.getName());\n surnameTxt.setText(author.getSurname());\n } catch (Exception ex) {\n Logger.getLogger(EditAuthorFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }"
] | [
"0.7358169",
"0.7175219",
"0.71255916",
"0.69772345",
"0.6964688",
"0.66991055",
"0.6590597",
"0.6522493",
"0.64920926",
"0.648081",
"0.6462364",
"0.64452255",
"0.6408208",
"0.63829803",
"0.63671565",
"0.63555163",
"0.63392",
"0.6299538",
"0.6294745",
"0.62436926",
"0.6202159",
"0.6192284",
"0.61899436",
"0.6181478",
"0.61646456",
"0.6142504",
"0.6140548",
"0.6127991",
"0.6104465",
"0.6097552",
"0.60807294",
"0.60788244",
"0.60659933",
"0.6061961",
"0.6057004",
"0.6054479",
"0.60542417",
"0.604453",
"0.60240066",
"0.60071",
"0.59929764",
"0.598379",
"0.5977785",
"0.59603673",
"0.5956147",
"0.59536594",
"0.59456944",
"0.5940755",
"0.59319663",
"0.59309286",
"0.59266835",
"0.59141403",
"0.5903482",
"0.59006155",
"0.5900493",
"0.58972216",
"0.58936566",
"0.5888768",
"0.5888609",
"0.58581847",
"0.5844457",
"0.5835346",
"0.5828903",
"0.58288157",
"0.5827716",
"0.5820791",
"0.5818573",
"0.58184236",
"0.58059865",
"0.58037096",
"0.58011496",
"0.58002",
"0.57863516",
"0.5785725",
"0.576973",
"0.57510304",
"0.5741406",
"0.57405335",
"0.5734308",
"0.5732475",
"0.57313573",
"0.57227534",
"0.5714485",
"0.5709018",
"0.5708807",
"0.57054895",
"0.56962967",
"0.5691395",
"0.56900436",
"0.56879336",
"0.568275",
"0.5681172",
"0.5674564",
"0.56717503",
"0.5670787",
"0.566949",
"0.56688255",
"0.56659585",
"0.5665639",
"0.56605846"
] | 0.779647 | 0 |
Summary: This method is called when users first select to delete a user from the database. Return: This method returns a view that confirms the user's choice to delete the person from the database. Parameters: id = The id of the person to be deleted; contained in the URL | @RequestMapping(value = "delete/{id}", method = RequestMethod.GET)
public ModelAndView delete(@PathVariable("id") int id)
{
Person person = personService.findPersonById(id);
return new ModelAndView("delete", "person", person);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"delete/{id}\", method = RequestMethod.POST)\r\n\tpublic ModelAndView deleteConfirm(@ModelAttribute Person deletedPerson, @PathVariable int id) \r\n\t{\r\n\t\tString fullName = deletedPerson.getFirstName() + \" \" + deletedPerson.getLastName();\r\n\t\tpersonService.deletePerson(deletedPerson);\r\n\t\treturn new ModelAndView(\"deleteConfirm\", \"fullName\", fullName);\r\n\t}",
"@RequestMapping(value = \"/person/delete/{id}\", method = RequestMethod.GET)\r\n\tpublic String personDeleteForm(@PathVariable int id, Model model) {\r\n\t\tPerson deletedPerson = personManager.getPersonById(id);\r\n\t\tpersonManager.deletePerson(deletedPerson);\r\n\t\t// Get all persons and render them\r\n\t\tList<Person> persons = personManager.getPersons();\r\n\t\tmodel.addAttribute(\"persons\", persons);\r\n\t\treturn \"groefnia/person/all\";\r\n\r\n\t}",
"@RequestMapping(value = \"/delete/{id}\")\r\n\tpublic ModelAndView delete(@PathVariable\r\n\tString id, HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {\r\n\r\n\t\tpersonService.deletePerson(new String(id));\r\n\t\tFlashMessageHelper.success(\"user.delete.success\", request);\r\n\t\treturn new ModelAndView(\"user.show\", \"persons\", personService.getAll());\r\n\t}",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"@RequestMapping(value = { \"/delete-{id}\" }, method = RequestMethod.GET)\n\tpublic String deleteUser(@PathVariable ID id, ModelMap model, @RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\t\tabm.eliminarPorId(id);\n\t\t\tmodel.addAttribute(\"success\", \"La eliminación se realizó correctamente.\");\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tmodel.addAttribute(\"success\", \"No se pudo completar la solicitud. Comuniquese con el administrador del sistema.\");\n\t\t}\n\n\n\t\treturn \"redirect:list\";\n\t}",
"@Override\n\tpublic ModelAndView delete(String id) {\n\t\treturn null;\n\t}",
"public void deleteUser(String id) {\n\t\tSystem.out.println(\"deleteUser\");\n\t\t personDAO.deleteUser(id);\n\t}",
"@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }",
"@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}",
"@RequestMapping(\"ville/delete/{id}\")\r\n public String delete(@PathVariable Integer id) {\r\n villeService.deleteVille(id);\r\n return \"redirect:/villes\";\r\n }",
"@Override\r\n\tpublic User delete(String id) {\n\t\treturn null;\r\n\t}",
"@Override\n public Header delete(Long id) {\n Optional<User> optionalUser = baseRepository.findById(id);\n\n // respository -> delete\n return optionalUser\n .map(user -> {\n baseRepository.delete(user);\n\n return Header.OK();\n })\n .orElseGet(() -> Header.ERROR(\"데이터가 없습니다.\"));\n //response return\n }",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"@FXML\n\tpublic void deleteUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString id = txtDeleteUserId.getText();\n\t\tif (!id.equals(empty)) {\n\t\t\tboolean found = restaurant.findUser(id);\n\t\t\tif (found == true) {\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.deleteUser(txtDeleteUserId.getText());\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Confirmation Dialog\");\n\t\t\t\t\talert.setHeaderText(\"Delete User\");\n\t\t\t\t\talert.setContentText(\"The user has been deleted\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\ttxtDeleteUserId.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrese la identificacion del usuario a eliminar\");\n\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"@RequestMapping(value = \"/delete/{id}\", method = RequestMethod.GET)\n public String deleteStudent(ModelMap view, @PathVariable int id) {\n if(studentService.delete(id)) {\n view.addAttribute(\"msg\", new String(\"Deleted Successfully!\"));\n } else {\n view.addAttribute(\"msg\", new String(\"Not Deleted!\"));\n }\n return(\"redirect:/list\");\n }",
"@RequestMapping(value = \"{id}\", method = RequestMethod.DELETE)\n public void delete(@PathVariable Long id)\n {\n userRepo.deleteById(id);\n }",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\")\r\n public ResponseObject delete(@PathVariable(\"id\") Long id) {\r\n return candidateService.delete(id);\r\n }",
"void deleteUser(int id);",
"@FXML\n private void handleDeletePerson() {\n int selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n personTable.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }",
"@Override\r\n\tpublic boolean delete(int id) {\r\n\t\treturn executeAndIsModified(DELETE_USER, id);\r\n\t}",
"@Override\n\tpublic void delete(String id) {\n\t\tuserDao.delete(id);\n\t\t\n\t}",
"@Override\n\tpublic void deleteUserGoodsView(int id) throws Exception {\n\t\t\n\t}",
"@DeleteMapping(\"{id}\")\n public ResponseEntity<PersonResponse> delete(@PathVariable(name = \"id\") String id) {\n personService.delete(id);\n return ResponseEntity.status(HttpStatus.NO_CONTENT).build();\n }",
"@Override\n\tpublic void delete(String id) {\n\t\tsession.delete(\"users.delete\",id);\n\t}",
"@Override\n\tpublic User delete(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String execute(HttpServletRequest req, HttpServletResponse resp) throws Exception {\n\t\tint id = Integer.parseInt(req.getParameter(\"id\"));\n\t\tUserService userService = new UserService();\n\t\tuserService.delete(id);\n\t\treturn \"mvc?controller=ListUserController\";\n\t}",
"@DeleteMapping(\"/user/{id}\")\n\tpublic ResponseEntity<User> deleteUser(@PathVariable(\"id\") int id) {\n\t\tUser currentUser = userDao.getUserById(id);\n\t\tif (currentUser == null) {\n\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND);\n\t\t} else {\n\n\t\t\tuserDao.delete(currentUser);\n\t\t\treturn new ResponseEntity<User>(HttpStatus.NO_CONTENT);\n\t\t}\n\n\t}",
"@FXML\n private void handleDeletePerson() {\n //remove the client from the view\n int selectedIndex = informationsClients.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n //remove the client from the database\n ClientManager cManager = new ClientManager();\n cManager.deleteClient(informationsClients.getSelectionModel().getSelectedItem().getId());\n informationsClients.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Erreur : Pas de selection\");\n alert.setHeaderText(\"Aucun client n'a été selectionné\");\n alert.setContentText(\"Veuillez selectionnez un client.\");\n alert.showAndWait();\n }\n }",
"public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }",
"@DeleteMapping(\"/{id}\")\n public void delete(@PathVariable(\"id\") final int id) {\n userService.delete(id);\n }",
"@RequestMapping(value = \"/eliminarPersona\", method = RequestMethod.GET)\n\tpublic ModelAndView EliminarPersona() {\n\t\tList<Persona> personaLista = personaService.getAllPersonas();\n\t\tmav.addObject(\"personaLista\", personaLista);\n\t\tmav.setViewName(\"eliminarPersona\");\n\t\treturn mav;\n\t}",
"@GetMapping(\"/delete/{id}\")\n public String borrarSocio(@PathVariable Integer id) {\n personaService.borrarSocio(id);\n return \"redirect:/admin/socios\";\n\n }",
"@DeleteMapping(\"/delete/{id}\")\n\tpublic void delete(@PathVariable int id) {\n\t\tuserService.delete(id);\n\t}",
"@RequestMapping(method=RequestMethod.DELETE, value=\"{id}\")\n\tpublic void delete(@AuthenticationPrincipal @PathVariable Long id) {\n\t\tUser user = RestPreconditions.checkFound(repo.findByUserId(id));\n\t\trepo.delete(user.getId());\n\t}",
"@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }",
"@DeleteMapping(\"/{id}\")\n @PreAuthorize(\"hasRole('ADMIN')\")\n public void delete(@PathVariable Integer id) {\n boolean hasAuthority = userAccountService.userHasAuthority(\"CAC_EDIT_DEMO_PAGE\");\n if (hasAuthority) {\n // just for demonstration purposes...\n }\n\n service.delete(id);\n }",
"@Override\n\tpublic User delete(int id) {\n\t\tSystem.out.println(\"OracleDao is delete\");\n\t\treturn null;\n\t}",
"void DeleteCompteUser(int id);",
"public String deleteContactPerson() {\n this.contactPersonService.deleteBy(this.id);\n return SUCCESS;\n }",
"@RequestMapping(\"/deleteDirector/{id}\")\n public String deleteDirector(@PathVariable(\"id\") long id){\n directorRepo.delete(id);\n return \"redirect:/listAllDirectors\";\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUserDAO dao = new UserDAO(context);\r\n\t\t\t\tboolean b = dao.delete(\"id=?\", new String[] { id + \"\" });\r\n\t\t\t\tif (b) {\r\n\t\t\t\t\tToast.makeText(context, \"删除成功\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tcontext.sendBroadcast(new Intent(\"UPDATE\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tToast.makeText(context, \"删除失败\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t\t}",
"@RequestMapping(\"/delete\")\r\n\t @ResponseBody\r\n\t public UserDto delete(Long id) {\r\n\t \r\n\t return service.delete(id);\r\n\t \r\n\t }",
"@Override\r\n\tpublic boolean deletePerson(int id) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}",
"@CrossOrigin(origins = \"*\")\r\n\t@DeleteMapping(\"/user/{id}\")\r\n\tpublic ResponseEntity<Users> deleteUser(@PathVariable(value=\"id\")Long id){\r\n\t\tUsers user = usersDAO.findById(id);\r\n\t\tif(user==null) {\r\n\t\t\t\r\n\t\t\treturn ResponseEntity.notFound().build();\r\n\t\t}\r\n\t\tusersDAO.deleteAll(user);\r\n\t\t\r\n\t\treturn ResponseEntity.ok().build();\r\n\t\t\r\n\t}",
"void deletePersonById( final Long id );",
"@Override\n\tpublic void delete(int id) {\n\t\tuserDao.delete(id);\n\t}",
"@Override\r\n\t@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\r\n\tvoid delete(Long id);",
"public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}",
"@GetMapping(\"/delete/{id}\")\n\tpublic ModelAndView delete(@PathVariable(\"id\") Long id) {\n\t\t\n\t\tservice.delete(id);\n\t\t\n\t\treturn findAll();\n\t}",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(value = \"/user/delete/{userName}\", method = RequestMethod.GET)\n public String deleteUser(@PathVariable String userName, Model model) throws RosettaUserException {\n logger.debug(\"Get delete user confirmation form.\");\n // Get the persisted user to delete.\n User user = userManager.lookupUser(userName);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"action\", \"deleteUser\");\n return \"user\";\n }",
"@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic ApplicationResponse deleteUser(String id) {\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\trepository.deleteById(id);\n\t\t\treturn new ApplicationResponse(true, \"Success\", null);\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}",
"@Override\r\n\tpublic int delete(int id) {\n\t\treturn userDAO.DeleteUser(id);\r\n\t}",
"@PreAuthorize(\"hasAnyRole('ADMIN')\") // PERMISSÃO APENAS DO ADMIN\n\t@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> delete(@PathVariable Integer id) {\n\t\tservice.delete(id);\n\t\treturn ResponseEntity.noContent().build(); // RESPOSTA 204\n\t}",
"public void deletePerson(){\r\n\r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to delete.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*remove Person of the given name*/\r\n\t\tint no = pDAO.removePerson(name);\r\n\t\tJOptionPane.showMessageDialog(null, no + \" Record(s) deleted.\");\r\n\t}\r\n }",
"@RequestMapping(value=\"/delete\",method=RequestMethod.GET)\r\n\tpublic String delete(String id) {\r\n\t\tSystem.out.print(\"你要删除的id:\"+id);\r\n\t\treturn \"delete\";\r\n\t}",
"@RequestMapping(value=\"leasing/delete\", method = RequestMethod.GET)\r\n\tpublic ModelAndView delete(String idParameter) {\n\t\tConnection connection = Connection.getInstance();\r\n\t\tModelAndView response = BaseController.model();\r\n\t\tresponse = initParameter(response);\r\n\r\n\t\tLeasingDao parameterDao = new LeasingDao(connection);\r\n\t\tLeasing parameter = parameterDao.getParameterById(idParameter);\r\n\r\n\t\tif (!parameterDao.update(parameter)) {\r\n\t\t\tSystem.out.println(\"Error database\");\r\n\t\t}\r\n\r\n\t\tString page = Constant.CRITERIA_INDEX;\r\n\t\tpage = Helper.loggedCheck(page);\r\n\t\tresponse.setViewName(page);\r\n\t\treturn response;\r\n\t}",
"public void delete(int id){\n\t\tuserRepository.delete(id);\n\t}",
"@RequestMapping(value=\"/users/{id}\",method=RequestMethod.DELETE)\n public ResponseEntity<User> deleteUser(@PathVariable(\"id\") String id){\n \n User user=userService.delete(Integer.parseInt(id));\n if(user==null)\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n else \n return new ResponseEntity<User>(user, HttpStatus.OK);\n \n }",
"public String deleteAction(long id) {\n boolean success = quizEJB.delete(id);\n quizList = quizEJB.listQuiz();\n if (success){\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"Record deleted successfully\"));\n }\n else {\n FacesContext.getCurrentInstance().addMessage(\"successForm:errorInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Error\", \"Something went wrong. Please try again\"));\n }\n return \"quiz-list.xhtml\";\n }",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users/{id}\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<AppUser> deleteUser(@PathVariable Long id) {\n\t\tAppUser appUser = appUserRepository.findOne(id);\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tString loggedUsername = auth.getName();\n\t\tif (appUser == null) {\n\t\t\treturn new ResponseEntity<AppUser>(HttpStatus.NO_CONTENT);\n\t\t} else if (appUser.getUsername().equalsIgnoreCase(loggedUsername)) {\n\t\t\tthrow new RuntimeException(\"You cannot delete your account\");\n\t\t} else {\n\t\t\tappUserRepository.delete(appUser);\n\t\t\treturn new ResponseEntity<AppUser>(appUser, HttpStatus.OK);\n\t\t}\n\n\t}",
"@DeleteMapping(\"/users/{id}\")\n\tpublic void deleteUser(@PathVariable int id) {\n\t\tuserService.deleteById(id);\n\t\t\n\t\t\n\t}",
"@DeleteMapping(\"/p-v-app-users/{id}\")\n @Timed\n public ResponseEntity<Void> deletePVAppUser(@PathVariable String id) {\n log.debug(\"REST request to delete PVAppUser : {}\", id);\n pVAppUserRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id)).build();\n }",
"@RequestMapping(value = \"/delete/{id}\", method = RequestMethod.GET)\n public ModelAndView delete(@PathVariable Integer id) {\n Key key = keyDao.findById(id);\n keyDao.delete(key);\n return new ModelAndView(\"redirect:/key/list\");\n }",
"protected void onDeletePerson(Person person) {\n personManager.remove(person.getId());\n\n String message = getLocalizer().getString(\"person.deleted\", this);\n getSession().info(message);\n\n responsePage.get(\"feedback\").setVisible(true);\n // how to redirect in Wicket 6: http://stackoverflow.com/a/23960578/65681\n throw new RestartResponseAtInterceptPageException(responsePage);\n }",
"void deleteUserById(Integer id);",
"@GetMapping(\"/delete\")\n public RedirectView delete(Long id, Principal p) {\n if(applicationUserRepository.findByUsername(p.getName()).getAdmin()) {\n for (LineItem item : lineItemRepository.findAll()) {\n if (item.getProduct().getId() == id) {\n lineItemRepository.deleteById(item.getId());\n }\n }\n productRepository.deleteById(id);\n }\n return new RedirectView(\"/products\");\n }",
"public ResponseEntity<Object> deleteUser(Long id) {\n if (userRepository.findById(id).isPresent()) {\n userRepository.deleteById(id);\n if (userRepository.findById(id).isPresent()) {\n return ResponseEntity.unprocessableEntity().body(\"Failed to delete the specified record\");\n } else return ResponseEntity.ok().body(\"Successfully deleted specified record\");\n } else\n return ResponseEntity.unprocessableEntity().body(\"No Records Found\");\n }",
"@RequestMapping(value = { \"/delete-user-{ssoId}\" }, method = RequestMethod.GET)\r\n\tpublic String deleteUser(@PathVariable String ssoId) {\r\n\t\tuserService.deleteUserBySSO(ssoId);\r\n\t\treturn \"delete\";\r\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString id = UserID.getText();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint check = db.idcheck(id);\r\n\r\n\t\t\t\t\tif (check == 1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"삭제되었습니다.\");\r\n\t\t\t\t\t\tdb.delete(id);\r\n\t\t\t\t\t\t로그인창 login = new 로그인창();\r\n\t\t\t\t\t\tlogin.loginpage();\r\n\t\t\t\t\t\tj.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"해당 아이디가 존재하지않습니다.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception 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}",
"@Override\n\tpublic String deletePerson(Integer atId) {\n\t\treturn null;\n\t}",
"public boolean deletePeople(Long id);",
"@RequestMapping(value = \"/staff/programedit/{id}\")\n\tpublic String redirectToProgramEditDelete(@PathVariable(\"id\") Long id, Model model) {\n\t\tProgram program = (Program) programService.getProgramById(id);\n\t\tmodel.addAttribute(\"program\", program);\n\t\t// TODO handle if program not found\n\t\treturn \"staff/programedit\";\n\t}",
"@DeleteMapping(path=\"/{id}\")\n\tpublic ResponseEntity<Integer> deleteUserById(@PathVariable(\"id\") Integer id) {\n\t\tes.deleteById(id);\n\t\treturn new ResponseEntity<>(id, HttpStatus.OK);\n\t}",
"@DeleteMapping(value = \"/deletegreeting\")\n public String deleteGreeting(@RequestParam int id) {\n return greetingService.deleteGreeting(id);\n }",
"@PostMapping(\"/details/{id}/delete\")\n public String deleteOneRegistrationPage(@PathVariable Long id, Model model) {\n DentistVisitDTO foundVisit = this.dentistVisitService.getVisitById(id);\n if(foundVisit != null) {\n this.dentistVisitService.deleteEntry(id);\n }\n return \"redirect:/registrationList\";\n }",
"@GetMapping(\"/carsAndCustomers/customer/delete/{id}\")\n public String deleteCustomerModal(@PathVariable(\"id\") Integer id, Model model) {\n model.addAttribute(\"customer\", customerRepository.findById(id));\n return \"fragments/deleteConfirmationCustomer :: deleteConfirmationCustomer\";\n\n }",
"@Override\n\tpublic boolean deleteUser(Integer id) {\n\t\treturn false;\n\t}",
"@RequestMapping(value = \"/delete\", method = RequestMethod.GET) \n public RedirectView deleteBuku(@RequestParam(required = true) Long id){ //Pake RequestParam klo ada kirim/minta data, disini kita tulis name dri inputannnya dan type datanya apa.\n this.bukuService.delete(new Buku (id));\n //this.bukuService.delete(id);\n return new RedirectView(\"/admin/buku/list\", true); \n }",
"@Override\n\tpublic String deleteUser(UserKaltiaControlVO userKaltiaControl) {\n\t\treturn null;\n\t}",
"@RequestMapping(value = \"/fornecedors/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteFornecedor(@PathVariable Long id) {\n log.debug(\"REST request to delete Fornecedor : {}\", id);\n fornecedorService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"fornecedor\", id.toString())).build();\n }",
"public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }",
"@DeleteMapping(path=\"{id}\")\n public void deleteUserById(@PathVariable(\"id\") int id){\n ReviewDAOService.deleteUserById(id);\n }",
"private void actionDelete() {\r\n showDeleteDialog();\r\n }",
"public static void viewDeleteRegistrant() {\n\t\tint regNum = Integer.parseInt(getResponseTo(\"Enter registrants number to delete: \"));\r\n\t\tString choice = getResponseTo(\"You are about to delete a registrant number and all the its \"\r\n\t\t\t\t+ \"associated properties;\\nDo you wish to continue? (Enter ‘Y’ to proceed.) \");\r\n\t\tif (choice.equals(\"Y\") || choice.equals(\"y\")) {\r\n\t\t\tRegistrant deletedRegistrant = getRegControl().deleteRegistrant(regNum);\r\n\t\t\tif (deletedRegistrant == null) {\r\n\t\t\t\tSystem.out.println(\"No registrations number found.\");\r\n\t\t\t} else {\r\n\t\t\t\tArrayList<Property> prop_list = rc.listOfProperties(regNum);\r\n\t\t\t\trc.deleteProperties(prop_list);\r\n\t\t\t\tSystem.out.println(\"Registrant and related properties deleted.\");\r\n\t\t\t}\r\n\t\t} else { // if deleteRegistrant return null, the program failed to delete (no registrant\r\n\t\t\t\t\t// with given regNum exists)\r\n\t\t\tSystem.out.printf(\"The registrant with registrant number %d was not deleted.\", regNum);\r\n\t\t}\r\n\t}",
"@Authorized(\"ADMIN\")\n @DeleteMapping(path = \"/{id}\")\n public Response<Object> delete\n (\n @PathVariable(\"id\") Long id\n )\n {\n try {\n return Response.ok().setPayload(this.facultyService.delete(id));\n } catch (FacultyNotFoundException e) {\n return Response.exception().setErrors(e.getMessage());\n }\n }",
"@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}",
"@Override\r\n\tpublic User deleteRcord(int id) {\n\t\treturn null;\r\n\t}",
"public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic ResponseEntity<String> deleteUser() {\n\t\treturn null;\n\t}",
"@GetMapping(value = \"/deleteUser\", params = \"userId\")\n public String deleteUser(HttpServletRequest request, @RequestParam(\"userId\") int theId){\n if(request.isUserInRole(\"ROLE_ADMIN\")){ //is the logged user admin\n User user = accountService.getUser(theId);\n if(user.getGrantedAuthorities().contains(new SimpleGrantedAuthority(\"ROLE_ADMIN\"))){ //is he trying to delete admin\n return \"redirect:users\"; //yes, admin trying to delete admin, redirect him\n }\n accountService.deleteUser(theId); //the admin is not deleting himself, allow him to delete anyone else he wants\n return \"redirect:users\";\n }\n CustomUserDetails userDetails = (CustomUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n if(userDetails.getId() == theId){// is the logged user authorized to delete the account he wants to\n accountService.deleteUser(theId); //yes, he can delete himself, allow him\n new SecurityContextLogoutHandler().logout(request, null, null);\n return \"redirect:users\"; //no, he is not, return him to main page\n }else return \"redirect:users\";\n }",
"@RequestMapping(\"/deleteTemplate\")\n public String deleteCustomer(@RequestParam(\"id\") int templateId,\n @CookieValue(\"userTag\") String userID,\n Model model) {\n JeanTemplate temp = new JeanTemplate();\n temp.setTemplateId(templateId);\n accessTemplate.delete(temp);\n\n ArrayList<JeanTemplate> templateList = accessTemplate.selectAllUserTemplates(userID);\n\n model.addAttribute(\"templateList\", templateList);\n\n return \"templateView\";\n\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete RfpUser : {}\", id);\n rfpUserRepository.deleteById(id);\n }",
"private void DeletebuttonActionPerformed(ActionEvent e) {\n int row = userTable.getSelectedRow();\n\n if (row == -1) {\n JOptionPane.showMessageDialog(ListUserForm.this, \"Vui lòng chọn user\", \"lỗi\", JOptionPane.ERROR_MESSAGE);\n } else {\n int confirm = JOptionPane.showConfirmDialog(ListUserForm.this, \"Bạn có chắc chắn xoá?\");\n\n if (confirm == JOptionPane.YES_OPTION) {\n\n int userid = Integer.parseInt(String.valueOf(userTable.getValueAt(row, 0)));\n\n userService.deleteUser(userid);\n\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }\n }\n }",
"void deleteUser(String deleteUserId);",
"public void delete(Integer id) {\n\t\tpersonRepository.delete(id);\n\t}",
"public void deleteUser(Integer id) {\n UserModel userModel;\n try {\n userModel = userRepository.findById(id).orElseThrow(IOException::new);\n }\n catch (IOException e) {\n System.out.println(\"User not found\");\n userModel = null;\n }\n userRepository.delete(userModel);\n }",
"@RequestMapping(value = \"/mensajes/delete/{id}\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> deleteById(@PathVariable int id){\n\t\tMensaje mensajeBorrar = chatDAO.findById(id);\n\t\tchatDAO.delete(mensajeBorrar);\n\t\treturn new ResponseEntity<Void>(HttpStatus.OK);\n\t}",
"@DeleteMapping(\"/{id}\")\n\tpublic ResponseEntity<UsersDTO> deleteUser(@PathVariable(\"id\") final Long id) {\n\t\tOptional<UsersDTO> user = userJpaRepository.findById(id);\n\t\tif(! user.isPresent()) {\n\t\t\treturn new ResponseEntity<UsersDTO>(new CustomErrorType(\"Unable to delete. \"\n\t\t\t\t\t+ \"User with id :\" + id +\" not found.\"), HttpStatus.NOT_FOUND);\t\n\t\t}\n\t\tuserJpaRepository.deleteById(id);\n\t\treturn new ResponseEntity<UsersDTO>(HttpStatus.NO_CONTENT);\n\t}"
] | [
"0.7533887",
"0.7340942",
"0.7324858",
"0.70550495",
"0.69877195",
"0.6893128",
"0.67505443",
"0.6730953",
"0.6698861",
"0.6614162",
"0.6567678",
"0.65484494",
"0.654548",
"0.6541663",
"0.6521696",
"0.65153456",
"0.6497222",
"0.64775836",
"0.6477381",
"0.6464089",
"0.6451914",
"0.6449359",
"0.6413125",
"0.6408023",
"0.63879305",
"0.63849306",
"0.6381889",
"0.637645",
"0.6372952",
"0.63612986",
"0.63502586",
"0.6348213",
"0.63469124",
"0.6339676",
"0.6338914",
"0.6327147",
"0.6313696",
"0.6309458",
"0.630568",
"0.6304482",
"0.62997466",
"0.62942916",
"0.62900317",
"0.627206",
"0.6268623",
"0.6268599",
"0.6267167",
"0.6266817",
"0.62647426",
"0.6262663",
"0.6259155",
"0.625476",
"0.6250282",
"0.6249498",
"0.6246756",
"0.6245301",
"0.6238555",
"0.62300456",
"0.62296677",
"0.62213707",
"0.6217007",
"0.6212089",
"0.6205174",
"0.6197531",
"0.6181686",
"0.617899",
"0.61722374",
"0.6169914",
"0.61684775",
"0.6166593",
"0.6164175",
"0.6162317",
"0.6148983",
"0.6141644",
"0.6133056",
"0.6123443",
"0.61085045",
"0.6107605",
"0.61075014",
"0.6104656",
"0.6102612",
"0.6096287",
"0.6096233",
"0.6094145",
"0.609078",
"0.60809684",
"0.60745376",
"0.607368",
"0.60622144",
"0.60603976",
"0.60535353",
"0.6051566",
"0.60411143",
"0.60371625",
"0.60350525",
"0.6032992",
"0.60308063",
"0.60280764",
"0.6023706",
"0.60155827"
] | 0.7493371 | 1 |
Summary: This method is called when users submits the form that confirms the decision to delete the person from the database. Return: This method returns a view that displays the name of the user deleted from the database. Parameters: Person = An object containing the data of the deleted person id = The id of the person to be deleted; contained in the URL | @RequestMapping(value = "delete/{id}", method = RequestMethod.POST)
public ModelAndView deleteConfirm(@ModelAttribute Person deletedPerson, @PathVariable int id)
{
String fullName = deletedPerson.getFirstName() + " " + deletedPerson.getLastName();
personService.deletePerson(deletedPerson);
return new ModelAndView("deleteConfirm", "fullName", fullName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/person/delete/{id}\", method = RequestMethod.GET)\r\n\tpublic String personDeleteForm(@PathVariable int id, Model model) {\r\n\t\tPerson deletedPerson = personManager.getPersonById(id);\r\n\t\tpersonManager.deletePerson(deletedPerson);\r\n\t\t// Get all persons and render them\r\n\t\tList<Person> persons = personManager.getPersons();\r\n\t\tmodel.addAttribute(\"persons\", persons);\r\n\t\treturn \"groefnia/person/all\";\r\n\r\n\t}",
"public void deletePerson(){\r\n\r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to delete.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*remove Person of the given name*/\r\n\t\tint no = pDAO.removePerson(name);\r\n\t\tJOptionPane.showMessageDialog(null, no + \" Record(s) deleted.\");\r\n\t}\r\n }",
"@RequestMapping(value = \"/eliminarPersona\", method = RequestMethod.GET)\n\tpublic ModelAndView EliminarPersona() {\n\t\tList<Persona> personaLista = personaService.getAllPersonas();\n\t\tmav.addObject(\"personaLista\", personaLista);\n\t\tmav.setViewName(\"eliminarPersona\");\n\t\treturn mav;\n\t}",
"@RequestMapping(value = \"delete/{id}\", method = RequestMethod.GET)\r\n\tpublic ModelAndView delete(@PathVariable(\"id\") int id) \r\n\t{\r\n\t\tPerson person = personService.findPersonById(id);\r\n\t\treturn new ModelAndView(\"delete\", \"person\", person);\r\n\t}",
"protected void onDeletePerson(Person person) {\n personManager.remove(person.getId());\n\n String message = getLocalizer().getString(\"person.deleted\", this);\n getSession().info(message);\n\n responsePage.get(\"feedback\").setVisible(true);\n // how to redirect in Wicket 6: http://stackoverflow.com/a/23960578/65681\n throw new RestartResponseAtInterceptPageException(responsePage);\n }",
"public String deleteContactPerson() {\n this.contactPersonService.deleteBy(this.id);\n return SUCCESS;\n }",
"@RequestMapping(value = \"/delete/{id}\")\r\n\tpublic ModelAndView delete(@PathVariable\r\n\tString id, HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) {\r\n\r\n\t\tpersonService.deletePerson(new String(id));\r\n\t\tFlashMessageHelper.success(\"user.delete.success\", request);\r\n\t\treturn new ModelAndView(\"user.show\", \"persons\", personService.getAll());\r\n\t}",
"@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }",
"@FXML\n private void handleDeletePerson() {\n int selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n personTable.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }",
"@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }",
"@RequestMapping(value = \"eliminarPublicacionPersonal\", method = RequestMethod.POST)\n\tpublic ModelAndView eliminar(HttpServletRequest request, HttpServletResponse response, Model model)throws Exception{\n\t\tModelAndView miMAV = new ModelAndView(\"menu\");\n\t\tList<Persona> usuarios =new ArrayList<Persona>();\n\t\tDAOPersona dao = new DAOPersona();\n\t\tusuarios=dao.getAllPersonas();\n\t\tmodel.addAttribute(\"listUsuarios\", usuarios );\n\t\tDAOPublicacion daoPublicacion = new DAOPublicacion();\n\t\t\n\t\t// TRAIGO LA INFORMACION QUE NECESITO\n\t\tString username;\n\t\tusername = request.getParameter(\"eliminarNombre\");\n\t\tString mensaje;\n\t\tmensaje = request.getParameter(\"eliminarMensaje\");\n\t\tString fecha;\n\t\tfecha = request.getParameter(\"eliminarFecha\");\n\t\t\n\t\t// CREAMOS LA PUBLICACION QUE QUEREMOS BORRAR\n\t\tdaoPublicacion.borrarPublicacionExacta(username, fecha);\n\t\tHttpSession session=request.getSession();\n\t\tPersona a=(Persona) session.getAttribute(\"persona\");\n\t\tList<Publicacion> publicaciones = daoPublicacion.leerPublicaciones(a.getUsername());\n\t\tmodel.addAttribute(\"listPublicacionesPersona\", publicaciones );\n\n\t\treturn miMAV;\n\t}",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(value = \"/user/delete/{userName}\", method = RequestMethod.GET)\n public String deleteUser(@PathVariable String userName, Model model) throws RosettaUserException {\n logger.debug(\"Get delete user confirmation form.\");\n // Get the persisted user to delete.\n User user = userManager.lookupUser(userName);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"action\", \"deleteUser\");\n return \"user\";\n }",
"@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}",
"@FXML\n private void handleDeletePerson() {\n //remove the client from the view\n int selectedIndex = informationsClients.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n //remove the client from the database\n ClientManager cManager = new ClientManager();\n cManager.deleteClient(informationsClients.getSelectionModel().getSelectedItem().getId());\n informationsClients.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Erreur : Pas de selection\");\n alert.setHeaderText(\"Aucun client n'a été selectionné\");\n alert.setContentText(\"Veuillez selectionnez un client.\");\n alert.showAndWait();\n }\n }",
"public void deletePerson() {\n\t\t\n\n\t\tString code = selectedPerson.getCode();\n\t\tString nameKey = selectedPerson.getName()+code;\n\t\tString lastnameKey = selectedPerson.getLastName()+code;\n\t\tString fullNameKey = nameKey+lastnameKey+code;\n\t\ttreeName.removeE(nameKey);\n\t\ttreeLastname.removeE(lastnameKey);\n\t\ttreeFullName.removeE(fullNameKey);\n\t\ttreeCode.removeE(code);\n\n\t\t\n\t}",
"public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@FXML\n\tpublic void deleteUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString id = txtDeleteUserId.getText();\n\t\tif (!id.equals(empty)) {\n\t\t\tboolean found = restaurant.findUser(id);\n\t\t\tif (found == true) {\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.deleteUser(txtDeleteUserId.getText());\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Confirmation Dialog\");\n\t\t\t\t\talert.setHeaderText(\"Delete User\");\n\t\t\t\t\talert.setContentText(\"The user has been deleted\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\ttxtDeleteUserId.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrese la identificacion del usuario a eliminar\");\n\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"@Override\n\tpublic String execute(HttpServletRequest req, HttpServletResponse resp) throws Exception {\n\t\tint id = Integer.parseInt(req.getParameter(\"id\"));\n\t\tUserService userService = new UserService();\n\t\tuserService.delete(id);\n\t\treturn \"mvc?controller=ListUserController\";\n\t}",
"@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}",
"@RequestMapping(value = { \"/delete-{id}\" }, method = RequestMethod.GET)\n\tpublic String deleteUser(@PathVariable ID id, ModelMap model, @RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\t\tabm.eliminarPorId(id);\n\t\t\tmodel.addAttribute(\"success\", \"La eliminación se realizó correctamente.\");\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tmodel.addAttribute(\"success\", \"No se pudo completar la solicitud. Comuniquese con el administrador del sistema.\");\n\t\t}\n\n\n\t\treturn \"redirect:list\";\n\t}",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }",
"public String handleDelete()\n throws HttpPresentationException, webschedulePresentationException\n {\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n System.out.println(\" trying to delete a project \"+ projectID);\n \n\t try {\n\t Project project = ProjectFactory.findProjectByID(projectID);\n String title = project.getProj_name();\n project.delete();\n this.getSessionData().setUserMessage(\"The project, \" + title +\n \", was deleted\");\n // Catch any possible database exception as well as the null pointer\n // exception if the project is not found and is null after findProjectByID\n\t } catch(Exception ex) {\n this.getSessionData().setUserMessage(projectID + \" Please choose a valid project to delete\");\n }\n // Redirect to the catalog page which will display the error message,\n // if there was one set by the above exception\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n }",
"@Override\n\tpublic ResponseEntity<String> deleteUser() {\n\t\treturn null;\n\t}",
"public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}",
"public boolean deleteUser(List <Person> listOfPerson) {\n\t\tdo \n\t\t{\n\t\t\tSystem.out.println(\"Enter the First Name of the person you want to delete: \");\n\t\t\tString firstName = Utility.inputString();\n\t\t\tfor (int i = 0; i < listOfPerson.size(); i++) \n\t\t\t{\n\t\t\t\tif (listOfPerson.get(i).getFname().equals(firstName)) \n\t\t\t\t{\n\t\t\t\t\tlistOfPerson.remove(i);\n\t\t\t\t\tSystem.out.println(\"Person's detail deleted successfully\");\n\t\t\t\t\tSystem.out.println(\"To delete more person \");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (Utility.inputBoolean());\n\t\treturn false;\n\t}",
"@Override\n\tpublic String deletePerson(Integer atId) {\n\t\treturn null;\n\t}",
"@Override\n protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command,\n BindException errors) throws Exception {\n ModelAndView mv = new ModelAndView(this.getSuccessView());\n try{\n \n String s=request.getParameter(\"id\");\n int id=Integer.parseInt(s);\n\n ElderDao elderdao = (ElderDao)getApplicationContext().getBean(\"ElderDao\");\n int i=elderdao.deleteElders(id);\n if(i == 1){\n mv.addObject(\"reminder_s\", \"You have delete the elder info successfully!\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(this.getSuccessView());\n }else {\n mv.addObject(\"reminder\", \"Operation failed! Please try again.\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(\"reminder\");\n } \n }catch(Exception e){\n mv.addObject(\"reminder\", \"Operation failed! Please try again.\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(\"reminder\");\n }\n \n return mv;\n }",
"public static void viewDeleteRegistrant() {\n\t\tint regNum = Integer.parseInt(getResponseTo(\"Enter registrants number to delete: \"));\r\n\t\tString choice = getResponseTo(\"You are about to delete a registrant number and all the its \"\r\n\t\t\t\t+ \"associated properties;\\nDo you wish to continue? (Enter ‘Y’ to proceed.) \");\r\n\t\tif (choice.equals(\"Y\") || choice.equals(\"y\")) {\r\n\t\t\tRegistrant deletedRegistrant = getRegControl().deleteRegistrant(regNum);\r\n\t\t\tif (deletedRegistrant == null) {\r\n\t\t\t\tSystem.out.println(\"No registrations number found.\");\r\n\t\t\t} else {\r\n\t\t\t\tArrayList<Property> prop_list = rc.listOfProperties(regNum);\r\n\t\t\t\trc.deleteProperties(prop_list);\r\n\t\t\t\tSystem.out.println(\"Registrant and related properties deleted.\");\r\n\t\t\t}\r\n\t\t} else { // if deleteRegistrant return null, the program failed to delete (no registrant\r\n\t\t\t\t\t// with given regNum exists)\r\n\t\t\tSystem.out.printf(\"The registrant with registrant number %d was not deleted.\", regNum);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void delete(Person person) {\n\r\n\t}",
"@PostMapping(\"/delete\")\r\n public String deleteForm(Model model,@RequestParam int traineeId) {\r\n try {\r\n Trainee trainee = service.findById(traineeId);\r\n model.addAttribute(\"trainee\", trainee);\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }",
"public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }",
"@RequestMapping(\"/deleteemployee\")\npublic ModelAndView deleteEmployeeRecord(@RequestParam int employee_id)\n{\n\tergserv.delEmployee(employee_id);\n\tModelAndView mv= new ModelAndView();\n\tmv.addObject(\"msg\",\"RECORD DELETED\");\n\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\treturn mv;\n}",
"protected abstract void onDelete(Person person);",
"@Override\n\tpublic ModelAndView delete(String id) {\n\t\treturn null;\n\t}",
"@RequestMapping(value=\"leasing/delete\", method = RequestMethod.GET)\r\n\tpublic ModelAndView delete(String idParameter) {\n\t\tConnection connection = Connection.getInstance();\r\n\t\tModelAndView response = BaseController.model();\r\n\t\tresponse = initParameter(response);\r\n\r\n\t\tLeasingDao parameterDao = new LeasingDao(connection);\r\n\t\tLeasing parameter = parameterDao.getParameterById(idParameter);\r\n\r\n\t\tif (!parameterDao.update(parameter)) {\r\n\t\t\tSystem.out.println(\"Error database\");\r\n\t\t}\r\n\r\n\t\tString page = Constant.CRITERIA_INDEX;\r\n\t\tpage = Helper.loggedCheck(page);\r\n\t\tresponse.setViewName(page);\r\n\t\treturn response;\r\n\t}",
"@GetMapping(\"/deletePharmacist\")\n public String pharmacistFormDelete(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"deletePharmacist\";\n }",
"@RequestMapping(value = \"/delete/{id}\", method = RequestMethod.GET)\n public String deleteStudent(ModelMap view, @PathVariable int id) {\n if(studentService.delete(id)) {\n view.addAttribute(\"msg\", new String(\"Deleted Successfully!\"));\n } else {\n view.addAttribute(\"msg\", new String(\"Not Deleted!\"));\n }\n return(\"redirect:/list\");\n }",
"@DeleteMapping(\"{id}\")\n public ResponseEntity<PersonResponse> delete(@PathVariable(name = \"id\") String id) {\n personService.delete(id);\n return ResponseEntity.status(HttpStatus.NO_CONTENT).build();\n }",
"@Delete\n\tpublic Representation delete() {\n\t\tUserInfo userInfo = userInfoProvider.get();\n\t\tif (!userInfo.isSignedIn) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\t\tMember member = memberDAO.readByUserId(userInfo.userId);\n\t\tKey theaterKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes()\n\t\t\t\t\t\t.get(\"theaterKey\"));\n\n\t\tif (!tmjDAO.memberHasAccessToTheater(\n\t\t\t\tKeyFactory.keyToString(memberDAO.getKey(member)),\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\tKey locationKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes().get(\n\t\t\t\t\t\t\"locationKey\"));\n\n\t\t// check location belongs to given theaterKey\n\t\tif (!KeyFactory.keyToString(locationKey.getParent()).equals(\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\t\tlocationDAO.delete(locationKey);\n\n\t\treturn null;\n\t}",
"public void deletePerson() {\n\t\tSystem.out.println(\"*****Delete the record*****\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"Enter phone number for deletion : \");\n\t\tlong PhoneDelete = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneDelete) {\n\t\t\t\tdetails[i] = null;\n\t\t\t\tSystem.out.println(\"Record deleted successfully\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void deleteUser(String name);",
"@RequestMapping(value = \"/delete\", method = RequestMethod.GET)\r\n\tpublic String deleteList(){\r\n\t\tClearList list = clearListRepository.findById(getActiveListId()).get();\r\n\t\tString listN = list.getListName();\r\n\t\tclearListRepository.deleteById(getActiveListId());\r\n\t\t\r\n\t\treturn String.format(\"The Clearlist %s has been deleted\",listN);\r\n\t}",
"private void actionDelete() {\r\n showDeleteDialog();\r\n }",
"@Execute(validator = true, input = \"error.jsp\", urlPattern = \"deletepage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"deletepage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String deletepage() {\n if (crudTableForm.crudMode != CommonConstants.DELETE_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.DELETE_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"confirm.jsp\";\n }",
"@GetMapping(\"/carsAndCustomers/customer/delete/{id}\")\n public String deleteCustomerModal(@PathVariable(\"id\") Integer id, Model model) {\n model.addAttribute(\"customer\", customerRepository.findById(id));\n return \"fragments/deleteConfirmationCustomer :: deleteConfirmationCustomer\";\n\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 }",
"public Function<User, String> delete() {\n return user -> {\n String result = \"No such user!\";\n if (store.delete(user.getId())) {\n result = String.format(\"User with id %s was deleted\", user.getId());\n }\n return result;\n };\n }",
"@Override\n\tpublic String deleteUser(UserKaltiaControlVO userKaltiaControl) {\n\t\treturn null;\n\t}",
"public void delUser() {\n\t\tProgramGUI.this.dispose();\n\t\tframe = new JFrame(\"Delete a User\");\n\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tframe.setLocationRelativeTo(null);\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(1, 2));\n\t\tpanel.add(new JLabel(\"Delete which user: \"));\n\t\tuser = new JTextField();\n\t\tpanel.add(user);\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));\n\t\tframe.add(panel, BorderLayout.NORTH);\n\t\tJPanel button = new JPanel();\n\t\tJButton confirm = new JButton(\"Confirm Delete\");\n\t\tJButton cancel = new JButton(\"Cancel\");\n\t\tcancel.addActionListener(new ButtonListener());\n\t\tconfirm.addActionListener(new DelListener());\n\t\tbutton.add(confirm);\n\t\tbutton.add(cancel);\n\t\tframe.add(button, BorderLayout.SOUTH);\n\t\tframe.setVisible(true);\n\t}",
"public void buttonDelete(View view) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(UserEditActivity.this);\n builder.setMessage(R.string.text_delete_confirmation)\n .setTitle(R.string.text_attention_title)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Delete the record confirmed\n deleteRecord();\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }",
"@RequestMapping(\"/deleteDirector/{id}\")\n public String deleteDirector(@PathVariable(\"id\") long id){\n directorRepo.delete(id);\n return \"redirect:/listAllDirectors\";\n }",
"private void DeletebuttonActionPerformed(ActionEvent e) {\n int row = userTable.getSelectedRow();\n\n if (row == -1) {\n JOptionPane.showMessageDialog(ListUserForm.this, \"Vui lòng chọn user\", \"lỗi\", JOptionPane.ERROR_MESSAGE);\n } else {\n int confirm = JOptionPane.showConfirmDialog(ListUserForm.this, \"Bạn có chắc chắn xoá?\");\n\n if (confirm == JOptionPane.YES_OPTION) {\n\n int userid = Integer.parseInt(String.valueOf(userTable.getValueAt(row, 0)));\n\n userService.deleteUser(userid);\n\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }\n }\n }",
"public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }",
"public String eliminarCliente(){\r\n //leyendo el parametro enviador desde la vista\r\n String identificador = JsfUtil.getRequest().getParameter(\"idCliente\");\r\n if(modelo.eliminarCliente(identificador)>0){\r\n JsfUtil.setFlashMessage(\"exito\", \"El cliente ha sido eliminado\");\r\n }//fin if\r\n else{\r\n JsfUtil.setErrorMessage(null, \"Lo sentimos, no se pudo borrar el registro\");\r\n }//fin else\r\n return \"listacli?faces-redirect=true\";\r\n }",
"@RequestMapping(value = { \"/delete-{loginID}-user\" }, method = RequestMethod.GET)\r\n public String deleteuser(@PathVariable String loginID) {\r\n service.deleteUserByLoginID(loginID);\r\n return \"redirect:/list\";\r\n }",
"@FXML\r\n\r\n private void deleteFriend(){\r\n // Delete from GUI\r\n final int selectIndex = udb_FriendsListView.getSelectionModel().getSelectedIndex();\r\n if(selectIndex != -1){\r\n String itemToRemove = udb_FriendsListView.getSelectionModel().getSelectedItem();\r\n final int newSelectedIndex = (selectIndex == udb_FriendsListView.getItems().size() - 1) ? selectIndex - 1 : selectIndex;\r\n udb_FriendsListView.getItems().remove(selectIndex);\r\n udb_FriendsListView.getSelectionModel().select(newSelectedIndex);\r\n\r\n //Delete from DB\r\n try{\r\n FriendsDao.deleteFriend(userName, itemToRemove);\r\n }catch (Exception e){\r\n\r\n }\r\n }\r\n\r\n }",
"@RequestMapping(value = \"delete\", method = RequestMethod.POST)\r\n\tpublic String delete(HttpServletRequest request) {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\t// Create the student\r\n\t\tStudent student = studentService.findById(id);\r\n\t\tSystem.out.println(student);\r\n\t\t// insert student to db\r\n\r\n\t\tString res = studentService.delete(student);\r\n\r\n\t\tif (res.equals(\"SUCCESS\"))\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Deleted\");\r\n\t\telse\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Not Deleted\");\r\n\t\treturn \"delete\";\r\n\t}",
"public void deletePerson(String personName) {\n \tqueryExecutor.delete(personName);\n \t//personMap.remove(personName);\n }",
"@Override\n\tpublic void deletePerson(Person p) {\n\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString id = UserID.getText();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint check = db.idcheck(id);\r\n\r\n\t\t\t\t\tif (check == 1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"삭제되었습니다.\");\r\n\t\t\t\t\t\tdb.delete(id);\r\n\t\t\t\t\t\t로그인창 login = new 로그인창();\r\n\t\t\t\t\t\tlogin.loginpage();\r\n\t\t\t\t\t\tj.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"해당 아이디가 존재하지않습니다.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception 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}",
"@RequestMapping(value = \"/delete\", method = RequestMethod.GET) \n public RedirectView deleteBuku(@RequestParam(required = true) Long id){ //Pake RequestParam klo ada kirim/minta data, disini kita tulis name dri inputannnya dan type datanya apa.\n this.bukuService.delete(new Buku (id));\n //this.bukuService.delete(id);\n return new RedirectView(\"/admin/buku/list\", true); \n }",
"private void removePerson(){\r\n\t\t// can't remove a value if there's nothing there\r\n\t\tif (dataTable.getSelectedRow()== -1)\r\n\t\t\treturn;\r\n\t\tpeople.remove(dataTable.getSelectedRow());\r\n\t\tpersonTableModel.fireTableRowsDeleted(dataTable.getSelectedRow(),dataTable.getSelectedRow());\r\n\t}",
"@Override\r\n\tpublic void delete(Person p) \r\n\t{\n\t\t\r\n\t}",
"void deletePersonById( final Long id );",
"void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }",
"public void delete() {\n\t\tJFrame j = new JFrame();\r\n\t\tj.getContentPane().setBackground(Color.GREEN);\r\n\t\tMemberDAO db = new MemberDAO();\r\n\r\n\t\tj.setSize(600, 300);\r\n\t\tj.getContentPane().setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"회원삭제\");\r\n\t\tlblNewLabel.setFont(new Font(\"굴림\", Font.PLAIN, 24));\r\n\t\tlblNewLabel.setBounds(242, 10, 108, 58);\r\n\t\tj.getContentPane().add(lblNewLabel);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"아이디\");\r\n\t\tlblNewLabel_1.setBounds(134, 121, 57, 15);\r\n\t\tj.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tUserID = new JTextField();\r\n\t\tUserID.setBounds(212, 114, 178, 30);\r\n\t\tj.getContentPane().add(UserID);\r\n\t\tUserID.setColumns(10);\r\n\r\n\t\tJButton btnmodify = new JButton(\"삭제하기\");\r\n\t\tbtnmodify.setBackground(Color.WHITE);\r\n\t\tbtnmodify.setBounds(242, 191, 97, 40);\r\n\t\tj.getContentPane().add(btnmodify);\r\n\r\n\t\tbtnmodify.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// TODO Auto-generated method stub\r\n\t\t\t\tString id = UserID.getText();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint check = db.idcheck(id);\r\n\r\n\t\t\t\t\tif (check == 1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"삭제되었습니다.\");\r\n\t\t\t\t\t\tdb.delete(id);\r\n\t\t\t\t\t\t로그인창 login = new 로그인창();\r\n\t\t\t\t\t\tlogin.loginpage();\r\n\t\t\t\t\t\tj.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"해당 아이디가 존재하지않습니다.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tj.setVisible(true);\r\n\t}",
"@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }",
"@Override\r\n public boolean delete(Person person) {\n return false;\r\n }",
"@RequestMapping(value = \"delete\", method = RequestMethod.DELETE)\n private UserMessage delete(@RequestParam UserMessage userMessage) {\n log.debug(\"deleting \"+ userMessage.getId());\n messageRepository.delete(userMessage);\n UserMessage deletedOne = messageRepository.findOne(userMessage.getId());\n log.debug(\"\");\n return deletedOne;\n }",
"@GetMapping(\"/delete/{id}\")\n public String borrarSocio(@PathVariable Integer id) {\n personaService.borrarSocio(id);\n return \"redirect:/admin/socios\";\n\n }",
"@RequestMapping(\"ville/delete/{id}\")\r\n public String delete(@PathVariable Integer id) {\r\n villeService.deleteVille(id);\r\n return \"redirect:/villes\";\r\n }",
"public void deleteButtonClicked(View view) {\n String inputText = johnsInput.getText().toString();\n dbHandler.deleteProduct(inputText);\n printDatabase();\n }",
"public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }",
"@FXML public void deleteBT_handler(ActionEvent e) {\n\t\tif(list.getSelectionModel().getSelectedIndex() == -1) {\n\t\t\tAlert error = new Alert(AlertType.ERROR, \"Nothing Selected.\\nPlease select correctly or add new User\", ButtonType.OK);\n\t error.showAndWait();\n\t\t}\n\t\telse {\n\t\t\tAlert warning = new Alert(AlertType.WARNING,\"Delete this User from list?\", ButtonType.YES, ButtonType.NO);\n\t warning.showAndWait();\n\t if(warning.getResult() == ButtonType.NO){\n\t return;\n\t }\n\t\n\t int idx = list.getSelectionModel().getSelectedIndex();\n\t if(list.getSelectionModel().getSelectedItem().getUserName().equals(\"stock\")) {\n\t \tAlert error = new Alert(AlertType.ERROR, \"You can't delete stock username\", ButtonType.OK);\n\t error.showAndWait();\n\t \treturn;\n\t }\n\t obs.remove(idx);\n\t mgUsr.arrList.remove(idx);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\n\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\talert.setTitle(\"Confirm\");\n\t\t\t\talert.setHeaderText(null);\n\t\t\t\talert.setContentText(\"Delete this accout?\");\n\t\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\t\tif (result.get() == ButtonType.OK) {\n\t\t\t\t\tUser employee = table.getSelectionModel().getSelectedItem();\n\n\t\t\t\t\tif (employee == null) {\n\t\t\t\t\t\tAlert alert1 = new Alert(AlertType.INFORMATION);\n\t\t\t\t\t\talert1.setHeaderText(null);\n\t\t\t\t\t\talert1.setTitle(\"Customer Remove\");\n\t\t\t\t\t\talert1.setContentText(\"Please select a row in the table\");\n\t\t\t\t\t\talert1.showAndWait();\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tint username = employee.getId();\n\n\t\t\t\t\t\tuser.deleteUser(\"\" + username);\n\n\t\t\t\t\t\tObservableList<User> data = FXCollections.observableArrayList(employeeManager.getAllEmployees());\n\n\t\t\t\t\t\ttable.setItems(data);\n\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"private void deleteActionPerformed(ActionEvent evt) throws Exception {\n String teaID = this.teaIDText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null, \"请先选择一条老师信息!\");\n return;\n }\n int confirm = JOptionPane.showConfirmDialog(null, \"确认删除?\");\n if(confirm == 0){//确认删除\n Connection con = dbUtil.getConnection();\n int delete = teacherInfo.deleteInfo(con, teaID);\n if(delete == 1){\n JOptionPane.showMessageDialog(null, \"删除成功!\");\n resetValues();\n }\n else{\n JOptionPane.showMessageDialog(null, \"删除失败!\");\n return;\n }\n initTable(new Teacher());//初始化表格\n }\n }",
"@ExceptionHandler(UserDeleteException.class)\n\tpublic ModelAndView handleDeleteException(UserDeleteException e) {\n\t ModelMap model = new ModelMap();\n\t model.put(\"user\", e.getUser());\n\t return new ModelAndView(\"users/delete-error\", model);\n\t}",
"public String btn_confirm_delete_action()\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(\n getgermplasm$SementalSessionBean().getDeleteSemental());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n \n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n \n return null;\n }",
"@Override\r\n\tpublic String delete() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(admin.getAdminAccount());\r\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doDelete(paramList)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"ɾ³ý\");\r\n\t\treturn SUCCESS;\r\n\t}",
"public void deleteUser(User selectedUser) throws SQLException, IOException {\n userManager.deleteUser(selectedUser);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }",
"private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}",
"public String deletedBy() {\n return this.deletedBy;\n }",
"public void deleteReview() throws ServletException, IOException {\r\n\t\tInteger reviewId = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tif (reviewDAO.get(reviewId) != null) {\r\n\t\t\treviewDAO.delete(reviewId);\r\n\t\t\t\r\n\t\t\tString message = \"The review has been deleted successfully.\";\r\n\t\t\t\r\n\t\t\tlistAllReview(message);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tString message = \"Another user has already deleted review with ID \" + reviewId + \".\";\r\n\t\t\tlistAllReview(message);\r\n\t\t}\r\n\t}",
"public String remove(User u) {\n userRepository.delete(u);\n return \"/user-list.xhml?faces-redirect=true\";\n }",
"@DeleteMapping(\"/deleteUser\")\n public ResponseEntity<String> deleteUser(HttpServletRequest request, HttpServletResponse response) {\n // send an HTTP 403 response if there is currently not a session\n HttpSession session = request.getSession(false);\n if (session == null) {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n // get the logged in user from the current session\n String username = (String) session.getAttribute(\"user\");\n User user = userRepo.findByUserName(username);\n\n //remove deleted user from all followers lists\n List<User> followers = userRepo.findUsersFollowingUserByUser(user);\n followers.forEach(user1 -> user1.unfollowUser(user));\n userRepo.save(followers);\n\n // remove the user's sensitive info and mark as deleted\n user.delete();\n\n // save the deletion of the account into the repository\n userRepo.save(user);\n\n // invalidate the user session, since the user no longer exists\n session.invalidate();\n\n // add the clearUser cookie so that it deletes the browsers cookie\n response.addCookie(CookieManager.getClearUserCookie());\n\n // send an HTTP 204 response to signify successful deletion\n return ResponseEntity.status(HttpStatus.NO_CONTENT).body(null);\n }",
"@RequestMapping(value = \"/absen/hapus/{id_absen}\", method = RequestMethod.GET)\n public String viewDelete (@NotNull Authentication auth, Model model, @PathVariable(value = \"id_absen\") int id_absen, @ModelAttribute AbsenModel delete) {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n\n AbsenModel absen = absenDAO.detailAbsen(id_absen);\n model.addAttribute(\"absen\", absen);\n absenDAO.deleteAbsen(delete);\n return \"redirect:/absen/kelola/?success=Hapus\";\n }",
"public String deleteAction(long id) {\n boolean success = quizEJB.delete(id);\n quizList = quizEJB.listQuiz();\n if (success){\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"Record deleted successfully\"));\n }\n else {\n FacesContext.getCurrentInstance().addMessage(\"successForm:errorInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Error\", \"Something went wrong. Please try again\"));\n }\n return \"quiz-list.xhtml\";\n }",
"public void delete(String username);",
"@Override\n\tpublic String delete(User user) {\n\t\treturn null;\n\t}",
"public int deleteContact(int personId) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(FeedEntry.COLUMN_TITLE, personId);\r\n\r\n int todo_id = db.delete(FeedEntry.TABLE_NAME, \"_id=\" + personId, null);\r\n\r\n return todo_id;\r\n }",
"@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tfacepp.deletePerson(result, new CallBack() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}",
"@Override\n\tpublic void delete(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tcd.delete(id);\n\t\ttry{\n\t\t\tresponse.sendRedirect(request.getContextPath()+\"/CTServlet?type=question&operation=view&id=123\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\n\t}",
"public String delete() throws Exception {\r\n\t\t/*Default Method with save modeCode(2)*/\r\n\t\tgetNavigationPanel(1);\r\n\t\tExpensesCategoryModel model = new ExpensesCategoryModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.deleteExpenseType(expenses);\r\n\t\tif (result) {\r\n\t\t\tlogger.info(\"DELETING........\");\r\n\t\t\taddActionMessage(getMessage(\"delete\"));\r\n\t\t\texpenses.setOnLoadFlag(false);\r\n\t\t\texpenses.setPanelFlag(\"1\");\r\n\t\t\texpenses.setRetrnFlag(\"view\");\r\n\t\t\treset();\r\n\t\t} else {\r\n\t\t\taddActionMessage(getMessage(\"del.error\"));\r\n\t\t}\r\n\t\tinput();\r\n\t\tmodel.terminate();\r\n\t\texpenses.setPanelFlag(\"1\");\r\n\t\texpenses.setRetrnFlag(\"view\");\r\n\t\t\r\n\t\treturn \"view\";\r\n\t}",
"void deleteUser(String deleteUserId);",
"@RequestMapping(value = \"/staff/studentedit/{username:.+}\")\n\tpublic String redirectToStudentEditDelete(@PathVariable(\"username\") String username, Model model) {\n\t\tStudent studentUser = (Student) userService.getUserByUsername(username);\n\t\tmodel.addAttribute(\"studentUser\", studentUser);\n\t\t// TODO handle if studentuser not found\n\t\treturn \"staff/studentedit\";\n\t}",
"@RequestMapping(\"/deleteTemplate\")\n public String deleteCustomer(@RequestParam(\"id\") int templateId,\n @CookieValue(\"userTag\") String userID,\n Model model) {\n JeanTemplate temp = new JeanTemplate();\n temp.setTemplateId(templateId);\n accessTemplate.delete(temp);\n\n ArrayList<JeanTemplate> templateList = accessTemplate.selectAllUserTemplates(userID);\n\n model.addAttribute(\"templateList\", templateList);\n\n return \"templateView\";\n\n }",
"@RequestMapping(\"/confirmDeleteAppusers\")\n\tpublic ModelAndView confirmDeleteAppusers(@RequestParam Integer appuseridKey) {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"appusers\", appusersDAO.findAppusersByPrimaryKey(appuseridKey));\n\t\tmav.setViewName(\"appusers/deleteAppusers.jsp\");\n\n\t\treturn mav;\n\t}",
"@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}"
] | [
"0.71649903",
"0.7086793",
"0.68032914",
"0.6757843",
"0.67514837",
"0.6612342",
"0.6597668",
"0.64866364",
"0.64530754",
"0.64226675",
"0.64165944",
"0.6395254",
"0.63870263",
"0.6341816",
"0.623853",
"0.6194484",
"0.61169344",
"0.6085475",
"0.6057461",
"0.60495466",
"0.60229325",
"0.60018176",
"0.59914434",
"0.5988007",
"0.5981307",
"0.5962565",
"0.5952434",
"0.5940561",
"0.5927476",
"0.59149057",
"0.5892504",
"0.5884767",
"0.5883987",
"0.58820224",
"0.5880382",
"0.58278775",
"0.5815948",
"0.5789475",
"0.5783331",
"0.57712007",
"0.5767192",
"0.57658386",
"0.5765708",
"0.57654864",
"0.57646066",
"0.5751789",
"0.57454073",
"0.574202",
"0.57057554",
"0.57040733",
"0.5699268",
"0.56692886",
"0.5667361",
"0.5666944",
"0.5660172",
"0.5650518",
"0.562804",
"0.56246924",
"0.5622966",
"0.561322",
"0.56081676",
"0.5608016",
"0.5607591",
"0.5606061",
"0.56013674",
"0.5597447",
"0.5595417",
"0.5579358",
"0.556642",
"0.5557316",
"0.55570257",
"0.5552634",
"0.5538251",
"0.5536858",
"0.5524483",
"0.5520288",
"0.55128306",
"0.55004257",
"0.55003405",
"0.5497275",
"0.54967105",
"0.5493571",
"0.5486243",
"0.54815173",
"0.5480765",
"0.5475949",
"0.54657656",
"0.5465314",
"0.5460816",
"0.54584575",
"0.5457581",
"0.54560566",
"0.5449897",
"0.5449218",
"0.5441674",
"0.54406357",
"0.54366744",
"0.5436419",
"0.5431458",
"0.5428625"
] | 0.77491915 | 0 |
Constructeur de la classe GWDPEXPRESS_MY_ACHIEVEMENTS | public GWDPEXPRESS_MY_ACHIEVEMENTS()
{
ajouterFenetre("EXPRESS_FEN_Search", mWD_EXPRESS_FEN_Search);
ajouterFenetre("EXPRESS_FEN_Profil", mWD_EXPRESS_FEN_Profil);
ajouterFenetre("EXPRESS_FEN_Achievement", mWD_EXPRESS_FEN_Achievement);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArriveRequirement(Goal goal) {\n\t\tsuper(goal);\t\n\t\t//Bukkit.getPluginManager().registerEvents(this, QuestManagerPlugin.questManagerPlugin);\n\t}",
"public PPI() {\n \tsuper();\n this.goals = new ArrayList<String>();\n this.informed = new ArrayList<String>();\n }",
"UsabilityGoal createUsabilityGoal();",
"public Goal(String task, String date, int priority, boolean isAccomplished) {\r\n this.task = task;\r\n this.date = date;\r\n this.priority = priority;\r\n this.isAccomplished = isAccomplished;\r\n }",
"public EqpmentExample() {\n oredCriteria = new ArrayList();\n }",
"GoalSpecification createGoalSpecification();",
"public AssistantProfessor(){\n super();\n m_yearsUntilTenure = -1;\n }",
"private static abstract class <init> extends com.google.android.gms.games.hodImpl\n{\n\n public com.google.android.gms.games.quest.Result zzau(Status status)\n {\n return new com.google.android.gms.games.quest.Quests.ClaimMilestoneResult(status) {\n\n final Status zzQs;\n final QuestsImpl.ClaimImpl zzavH;\n\n public Milestone getMilestone()\n {\n return null;\n }\n\n public Quest getQuest()\n {\n return null;\n }\n\n public Status getStatus()\n {\n return zzQs;\n }\n\n \n {\n zzavH = QuestsImpl.ClaimImpl.this;\n zzQs = status;\n super();\n }\n };\n }",
"public ScheduleExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}",
"public Competence() {\r\n\t\tsuper();\r\n\t}",
"public BhiEnvironmentalAssessmentExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public ParticipantBehaviorDescription(){\n\t\t\n\t}",
"public parmLottC () {\r\n \r\n course = \"\"; // name of this course\r\n\r\n idA = new long [100]; // request id array\r\n wghtA = new int [100]; // weight of this request\r\n\r\n id2A = new long [100]; // request id array\r\n wght2A = new int [100]; // weight of this request\r\n players2A = new int [100]; // # of players in the request\r\n\r\n timeA = new int [100]; // tee time\r\n fbA = new short [100]; // f/b for the tee time\r\n busyA = new boolean [100]; // tee time busy flag\r\n\r\n atimeA = new int [5]; // assigned tee time array per req (save area)\r\n }",
"public DeptAwardsTransAMImpl() {\n }",
"public StrategyByGA(double ProbabilityOfCooperatingGivenCooperation,\n double ProbabilityOfCooperatingGivenDefection) {\n\n name = \"Strategy Developed by the Genetic Algorithm\";\n opponentLastMove = 1;\n proCoopGivCoop = ProbabilityOfCooperatingGivenCooperation;\n proCoopGivDef = ProbabilityOfCooperatingGivenDefection;\n }",
"@Test\n public void goalCustomConstructor_isCorrect() throws Exception {\n\n int goalId = 11;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n\n //Create goal\n Goal goal = new Goal(goalId, userId, name, timePeriod, unit, amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }",
"public Goal() {\n super(ItemType.GOAL);\n }",
"public ActingGoal() {\n\t\t// rosbridge compatibility issues\n\t}",
"public PayActinfoExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public PromoBonusImpl() {\n }",
"public GoodsmsgExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public MMCAgent() {\n\n\t}",
"public Goal(String goalName) {\r\n this.goalName = goalName;\r\n }",
"public TaBoardReplyExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}",
"public EqpmentLogExample() {\n oredCriteria = new ArrayList();\n }",
"public Achievement(int index, boolean achieved, boolean popup){\n image = new GreenfootImage(WIDTH + 1, HEIGHT + 1);\n \n name = names[index];\n desc = descriptions[index];\n type = types[index];\n this.achieved = achieved;\n this.popup = popup;\n \n if(popup) popupDuration = 150;\n \n drawMedal();\n }",
"@Override\n\tpublic void getAchievementsGPGS() {\n\t}",
"public JobExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public Test() {\n super(0, \"A task\");\n this.answersArray = new String[]{\"a\", \"b\", \"c\"};\n }",
"public DepotTimetableAsk() {\n }",
"public static void addAll(){\n /* Add kill Achievements. */\n AchievementManager.addAchievement(kill1);\n AchievementManager.addAchievement(kill2);\n AchievementManager.addAchievement(kill3);\n AchievementManager.addAchievement(kill4);\n\n /* Add Death Achievements. */\n AchievementManager.addAchievement(death1);\n AchievementManager.addAchievement(death2);\n AchievementManager.addAchievement(death3);\n AchievementManager.addAchievement(death4);\n\n /* Add Score Achievements. */\n AchievementManager.addAchievement(score1);\n AchievementManager.addAchievement(score2);\n AchievementManager.addAchievement(score3);\n AchievementManager.addAchievement(score4);\n\n /* Add Time Achievements. */\n AchievementManager.addAchievement(time1);\n AchievementManager.addAchievement(time2);\n AchievementManager.addAchievement(time3);\n AchievementManager.addAchievement(time4);\n\n /* Random Achievements. */\n AchievementManager.addAchievement(tutorialAch);\n AchievementManager.addAchievement(secretAch);\n }",
"public void setAchievements(int achievements) {\n this.achievements = achievements;\n }",
"public BhiFeasibilityStudyExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}",
"AchievementModel createAchievementModel(AchievementModel achievementModel);",
"public QuestionnaireExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public Investment() {\r\n\t\t\r\n\t}",
"public BopeAutoGG() {\n\t\tsuper(BopeCategory.BOPE_CHAT);\n\n\t\t// Info.\n\t\tthis.name = \"Auto GG\";\n\t\tthis.tag = \"AutoGG\";\n\t\tthis.description = \"Automaticaly say good game paceaful or no!\";\n\n\t\t// Release.\n\t\trelease(\"B.O.P.E - Module - B.O.P.E\");\n\t}",
"Girl(String n,String p,String i,String a,String b,String t,String pr) {\n \n name = n;\n pairedto = p;\n intelligence = Integer.parseInt(i);\n attractiveness = Integer.parseInt(a);\n mBudget = Integer.parseInt(b); \n type = t;\n pref = pr;\n \n }",
"public ManageAllianceQuestion(Creature aResponder, String aTitle, String aQuestion, long aTarget) {\n/* 47 */ super(aResponder, aTitle, aQuestion, 19, aTarget);\n/* */ }",
"@Override\n\tpublic void onQaQuestion(QaQuestion arg0, int arg1) {\n\t\t\n\t}",
"public interface Participation {\n\n /** alternative owner, but as long as this person is not the owner. \n * This person is allowed to make comments, but nothing else. */\n String CANDIDATE = \"candidate\";\n\n /** the person with ultimate responsibility over a task. */\n String OWNER = \"owner\";\n\n /** person that will be using the result of this task. This person is \n * allowed to make comments, but nothing else. */\n String CLIENT = \"client\";\n\n /** person that is allowed to watch-but-not-touch this task */\n String VIEWER = \"viewer\";\n\n /** a person that was assigned to a task, but got replaced because of \n * absence or another reason. This way, a trace can be left in case \n * this person returns and wants to take back his tasks that got \n * reassigned. */\n String REPLACED_ASSIGNEE = \"replaced-assignee\";\n\n /** the unique id for this participation that is used as a reference in the service methods */\n String getId();\n\n /** userId for this participation. \n * null in case this is a {@link #getGroupId() group participation}. */\n String getUserId();\n\n /** groupId for this participation. \n * null in case this is a {@link #getUserId() user participation}. */\n String getGroupId();\n\n /** see constants for default participations */\n String getType();\n}",
"@Override\n public String getDescription() {\n return \"Ask order placement\";\n }",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"public Athlete()\r\n{\r\n this.def = \"An athlete is said to be running when he/she is accelerating in a certain direction during which his legs and the rest of his body are moving\";\r\n}",
"public ActivityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private static ArrayList<Quest> createQuests() {\n ArrayList<Quest> quests = new ArrayList();\n //Create Cooks assistant and imp catcher;\n\n //Imp Catcher\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Yellow Bead\");\n itemReqs.add(\"Red Bead\");\n itemReqs.add(\"Black Bead\");\n itemReqs.add(\"While Bead\");\n QuestStep qs1 = new QuestStep(1, \"Hand in beads to wizard\", itemReqs,12337);\n ArrayList<QuestStep> questSteps = new ArrayList();\n questSteps.add(qs1);\n\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n for (int i = 0; i < Constant.NUMBER_OF_Skills; i++) {\n skillReqs[i] = 0;\n }\n ArrayList<String> questReqs = new ArrayList();\n Quest q1 = new Quest(\"Imp Catcher\", questSteps,12337, skillReqs, 0, questReqs);\n quests.add(q1);\n\n //Cooks assistant\n itemReqs = new ArrayList();\n itemReqs.add(\"Pot of Flour\");\n itemReqs.add(\"Egg\");\n itemReqs.add(\"Bucket of Milk\");\n qs1 = new QuestStep(1, \"Hand in ingredients to chef\", itemReqs,12850);\n questSteps = new ArrayList();\n questSteps.add(qs1);\n\n\n Quest q2 = new Quest(\"Cooks Assistant\", questSteps,12850, skillReqs, 0, questReqs);\n quests.add(q2);\n return quests;\n }",
"public ChoixCombat(Monstre[] monstres, Competences[] competences)\r\n\t{\r\n\t\tthis.competences = competences;\r\n\t\tthis.monstres = monstres;\r\n\t\t\r\n\t\tthis.choixMenu = 1;\r\n\t\tthis.choixMonstre = -1; // Desactive la variable\r\n\t\tthis.choixMonstreAAfficher = -1;\r\n\t\tthis.choixCompetence = -1;\r\n\t\tthis.choixMouvement = 0;\r\n\t}",
"private Approche(String identifiantRunway, ArrayList<LatitudeLongitude> balises) {\n super(\"APPR\", identifiantRunway, balises);\n }",
"@Override\n\tpublic void createAgence(Agence a) {\n\t\t\n\t}",
"public ResiduatedGoal (Goal goal)\n {\n setGoal(goal);\n }",
"public QuestEntity(String questName, String questDescription,\r\n String completionCode,\r\n int experienceRewarded,\r\n int levelRequirement,\r\n String aDateAvailable,\r\n String aDateUnavailable,\r\n String victoryText,\r\n String prereqQuest,\r\n List<Long> itemsRewardedPassed,\r\n int questPoints) {\r\n this.questName = questName;\r\n this.questDescription = questDescription;\r\n this.completionCode = completionCode;\r\n this.victoryText = victoryText;\r\n this.experienceRewarded = experienceRewarded;\r\n this.levelRequirement = levelRequirement;\r\n this.dateAvailable = aDateAvailable;\r\n this.dateUnavailable = aDateUnavailable;\r\n this.prereqQuest = prereqQuest;\r\n globallyAvailable = false;\r\n itemsRewarded = new ArrayList<Long>();\r\n itemsRewarded = itemsRewardedPassed;\r\n this.questPoints = questPoints;\r\n questCompleted = false;\r\n \r\n\r\n }",
"GoalModel createGoalModel();",
"public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}",
"public PAYMENTS() {\n initComponents();\n }",
"public RecommendedActionMetricInfo() {\n }",
"public ActivitiesAndHr() {\r\n\t\tthis.overtimePaymentRate = new OvertimePaymentRate();\r\n\t}",
"public QaStep() {\n\t}",
"public ChallengeItemsExample() {\n oredCriteria = new ArrayList();\n }",
"public AETinteractions() {\r\n\t}",
"@Override\n\tpublic void start() {\n\t\tsendOptionsDialogue(\"Achievement cape stand\", \"List requirements\",\n\t\t\t\t\"Max cape\", \"Completionist cape\", \"Trimmed completionist\");\n\t}",
"public Reimbursement(){}",
"@Then(\"user inputs the answers of the questions as requirment information for GehaltsCheck\")\n public void user_inputs_the_answers_of_the_questions_as_requirment_information_for_GehaltsCheck() {\n throw new io.cucumber.java.PendingException();\n }",
"@Generated\n public Anotacion() {\n }",
"private AppointmentItem createBasicAppt() throws HarnessException{\n\t\tAppointmentItem appt = new AppointmentItem();\n\t\tappt.setSubject(\"appointment\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setContent(\"content\" + ZimbraSeleniumProperties.getUniqueString());\n\t\n\n\t\t// Open the new mail form\n\t\tFormApptNew apptForm = (FormApptNew) app.zPageCalendar.zToolbarPressButton(Button.B_NEW);\n\t\tZAssert.assertNotNull(apptForm, \"Verify the new form opened\");\n\n\t\t// Fill out the form with the data\n\t\tapptForm.zFill(appt);\n\n\t\t// Send the message\n\t\tapptForm.zSubmit();\n\t\n\t\treturn appt;\n\t}",
"private static Achievement createCuistotAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"cuistot_none\");\n picturesPaths.add(\"cuistot_bronze\");\n picturesPaths.add(\"cuistot_silver\");\n picturesPaths.add(\"cuistot_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No recipes\");\n picturesLabels.add(\"Starting Chef\");\n picturesLabels.add(\"Casual Chef\");\n picturesLabels.add(\"Legacy Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(10);\n levelSteps.add(50);\n\n Function<User, Integer> getUserNbRecipes = u -> u.getRecipes().size();\n\n return new Achievement(\"cuistot\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbRecipes);\n }",
"public AutoLowBarToGoalCmd() {\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=PARAMETERS\n // Add Commands here:\n // e.g. addSequential(new Command1());\n // addSequential(new Command2());\n // these will run in order.\n\n // To run multiple commands at the same time,\n // use addParallel()\n // e.g. addParallel(new Command1());\n // addSequential(new Command2());\n // Command1 and Command2 will run in parallel.\n\n // A command group will require all of the subsystems that each member\n // would require.\n // e.g. if Command1 requires chassis, and Command2 requires arm,\n // a CommandGroup containing them would require both the chassis and the\n // arm.\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n //addSequential(new LowerIntakeCmd());\n \taddSequential(new ShiftDownCmd());\n \taddParallel(new LowerIntakeCmd());\n addSequential(new DriveStraightCmd(.95,9000.));\n addSequential(new TurnToAngleCmd(56.));\n //addParallel(new BumpIntakeUpCmd());\n addSequential(new DriveStraightCmd(0.9, 4700.));\n \n addSequential(new AutoEjectBallCmd());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n \n }",
"public Answers()\r\n {\r\n \r\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();",
"private AppoinmentCompleteRequest appoinmentCompleteRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppoinmentCompleteRequest appoinmentCompleteRequest = new AppoinmentCompleteRequest();\n appoinmentCompleteRequest.set_id(appoinmentid);\n appoinmentCompleteRequest.setCompleted_at(currentDateandTime);\n appoinmentCompleteRequest.setAppoinment_status(\"Completed\");\n appoinmentCompleteRequest.setDiagnosis(DiagnosisType);\n appoinmentCompleteRequest.setSub_diagnosis(SubDiagnosisType);\n appoinmentCompleteRequest.setDoctor_comment(Doctor_Comments);\n Log.w(TAG,\"appoinmentCompleteRequest\"+ \"--->\" + new Gson().toJson(appoinmentCompleteRequest));\n return appoinmentCompleteRequest;\n }",
"@Test\n public void generateDescription_walking_durationGoal_singularHours() {\n Goal goal = new Goal(2, 99, GoalType.Walk,\"2018-09-28\", \"2017-01-12\",\n \"PT1H40M\");\n // Create the real and expected descriptions\n description = goal.getDescription();\n expectedDescription = \"Walk for 1 hour and 40 minutes\";\n\n // Check that the real and expected descriptions match\n assertEquals(expectedDescription, description);\n }",
"DumyTest(int priority, CampaignState activation){\r\n\r\n super(Name, priority, activation);\r\n setCoolDown(CoolDown_Days);\r\n registerMessageIds( MessageIds );\r\n }",
"public AdvertisedContribution(Type type) {\n this.type = type;\n }",
"public BNHaystackLearnStructureJob() {}",
"public BigDecimal getADVANCE_INSURANCE_AMT() {\r\n return ADVANCE_INSURANCE_AMT;\r\n }",
"public Alternative() {\r\n \t\tsuper();\r\n \t\tstatus = AlternativeStatus.ATISSUE;\r\n \t\targumentsAgainst = new Vector<Argument>();\r\n \t\targumentsFor = new Vector<Argument>();\r\n \t\trelationships = new Vector<Argument>();\r\n \t\tsubDecisions = new Vector<Decision>();\r\n \t\tquestions = new Vector<Question>();\r\n \t\tartifacts = new Vector<String>();\r\n \t\targuments = new Vector<Argument>();\r\n \t\tpatternID = -1;\r\n \t}",
"@Override\n\tpublic void getAchievementsGPGS() {\n\t\tstartActivityForResult(gameHelper.getGamesClient()\n\t\t\t\t.getAchievementsIntent(), 101);\n\n\t}",
"public void sendQuestion() {\n/* 76 */ Village village = getResponder().getCitizenVillage();\n/* 77 */ if (village != null) {\n/* */ \n/* 79 */ this.allies = village.getAllies();\n/* */ \n/* 81 */ Arrays.sort((Object[])this.allies);\n/* 82 */ StringBuilder buf = new StringBuilder();\n/* 83 */ buf.append(getBmlHeader());\n/* 84 */ PvPAlliance pvpAll = PvPAlliance.getPvPAlliance(village.getAllianceNumber());\n/* 85 */ if (pvpAll != null) {\n/* */ \n/* 87 */ buf.append(\"text{text=\\\"You are in the \" + pvpAll.getName() + \".\\\"}\");\n/* 88 */ if (FocusZone.getHotaZone() != null)\n/* */ {\n/* 90 */ buf.append(\"text{text=\\\"\" + pvpAll.getName() + \" has won the Hunt of the Ancients \" + pvpAll\n/* 91 */ .getNumberOfWins() + \" times.\\\"}\");\n/* */ }\n/* */ \n/* */ \n/* 95 */ if (village.getId() == village.getAllianceNumber()) {\n/* */ \n/* 97 */ if (village.getMayor().getId() == getResponder().getWurmId()) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 102 */ buf.append(\"text{text=\\\"\" + village\n/* 103 */ .getName() + \" is the capital in the alliance which means your diplomats are responsible for ousting other settlements. The mayor may change name, disband or set another village as the alliance capital:\\\"};\");\n/* */ \n/* */ \n/* */ \n/* 107 */ buf.append(\"harray{label{text=\\\"Alliance name:\\\"};input{id=\\\"allName\\\"; text=\\\"\" + pvpAll.getName() + \"\\\";maxchars=\\\"20\\\"}}\");\n/* */ \n/* 109 */ buf.append(\"harray{label{text='Alliance capital:'}dropdown{id=\\\"masterVill\\\";options=\\\"\");\n/* */ \n/* 111 */ for (int x = 0; x < this.allies.length; x++)\n/* */ {\n/* 113 */ buf.append(this.allies[x].getName() + \",\");\n/* */ }\n/* */ \n/* 116 */ buf.append(\"No change\");\n/* 117 */ buf.append(\"\\\";default=\\\"\" + this.allies.length + \"\\\"}}\");\n/* 118 */ buf.append(\"harray{checkbox{text=\\\"Check this if you wish to disband this alliance: \\\";id=\\\"disbandAll\\\"; selected=\\\"false\\\"}}\");\n/* */ } \n/* */ \n/* */ \n/* 122 */ for (Village ally : this.allies)\n/* */ {\n/* 124 */ if (ally != village) {\n/* 125 */ buf.append(\"harray{label{text=\\\"Check to break alliance with \" + ally.getName() + \":\\\"}checkbox{id=\\\"break\" + ally\n/* */ \n/* 127 */ .getId() + \"\\\";text=' '}}\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 177 */ buf.append(\"harray{label{text=\\\"Check to break alliance with \" + pvpAll.getName() + \":\\\"}checkbox{id=\\\"break\" + pvpAll\n/* */ \n/* 179 */ .getId() + \"\\\";text=' '}}\");\n/* */ } \n/* 181 */ buf.append(\"text{type=\\\"bold\\\";text=\\\"Alliance message of the day:\\\"}\");\n/* 182 */ buf.append(\"input{maxchars=\\\"200\\\";id=\\\"motd\\\";text=\\\"\" + pvpAll.getMotd() + \"\\\"}\");\n/* */ } \n/* 184 */ if (this.allies.length == 0)\n/* 185 */ buf.append(\"text{text='You have no allies.'}\"); \n/* 186 */ buf.append(\"text{text=''}\");\n/* 187 */ buf.append(\"text{text=''}\");\n/* 188 */ if (village.warDeclarations != null) {\n/* */ \n/* 190 */ buf.append(\"text{type='bold'; text='The current village war declarations:' }\");\n/* 191 */ for (WarDeclaration declaration : village.warDeclarations.values()) {\n/* */ \n/* 193 */ if (declaration.declarer == village) {\n/* */ \n/* 195 */ if (Servers.isThisAChaosServer() && \n/* 196 */ System.currentTimeMillis() - declaration.time > 86400000L) {\n/* */ \n/* 198 */ declaration.accept();\n/* 199 */ buf.append(\"harray{label{text=\\\"\" + declaration.receiver.getName() + \" has now automatically accepted your declaration.\\\"}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* 203 */ buf.append(\"harray{label{text=\\\"Check to withdraw declaration to \" + declaration.receiver.getName() + \":\\\"}checkbox{id'decl\" + declaration.receiver\n/* 204 */ .getId() + \"';text=' '}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 209 */ if (Servers.isThisAChaosServer()) {\n/* */ \n/* 211 */ if (System.currentTimeMillis() - declaration.time < 86400000L) {\n/* */ \n/* 213 */ buf.append(\"harray{label{text=\\\"You have \" + \n/* 214 */ Server.getTimeFor(System.currentTimeMillis() - declaration.time) + \" until you automatically accept the declaration of war.\\\"}}\");\n/* */ \n/* */ \n/* 217 */ buf.append(\"harray{label{text=\\\"Check to accept declaration from \" + declaration.declarer\n/* 218 */ .getName() + \":\\\"}checkbox{id='recv\" + declaration.declarer\n/* */ \n/* 220 */ .getId() + \"';text=' '}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* 224 */ declaration.accept();\n/* 225 */ buf.append(\"harray{label{text=\\\"\" + declaration.receiver.getName() + \" has now automatically accepted the war declaration from \" + declaration.declarer\n/* */ \n/* 227 */ .getName() + \".\\\"}}\");\n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 232 */ buf.append(\"harray{label{text=\\\"Check to accept declaration from \" + declaration.declarer.getName() + \":\\\"}checkbox{id='recv\" + declaration.declarer\n/* */ \n/* 234 */ .getId() + \"';text=' '}}\");\n/* */ } \n/* */ \n/* 237 */ buf.append(\"text{text=''}\");\n/* 238 */ buf.append(\"text{text=''}\");\n/* */ }\n/* 240 */ else if (Servers.localServer.PVPSERVER) {\n/* 241 */ buf.append(\"text{text='You have no pending war declarations.'}\");\n/* 242 */ } Village[] enemies = village.getEnemies();\n/* 243 */ if (enemies.length > 0) {\n/* */ \n/* 245 */ buf.append(\"harray{text{type='bold'; text='We are at war with: '}text{text=\\\" \");\n/* */ \n/* 247 */ Arrays.sort((Object[])enemies);\n/* */ \n/* 249 */ for (int x = 0; x < enemies.length; x++) {\n/* */ \n/* 251 */ if (x == enemies.length - 1) {\n/* 252 */ buf.append(enemies[x].getName());\n/* 253 */ } else if (x == enemies.length - 2) {\n/* 254 */ buf.append(enemies[x].getName() + \" and \");\n/* */ } else {\n/* 256 */ buf.append(enemies[x].getName() + \", \");\n/* */ } \n/* 258 */ } buf.append(\".\\\"}}\");\n/* */ }\n/* 260 */ else if (Servers.localServer.PVPSERVER) {\n/* 261 */ buf.append(\"text{text='You are not at war with any particular settlement.'}\");\n/* 262 */ } buf.append(createAnswerButton2());\n/* 263 */ getResponder().getCommunicator().sendBml(300, 300, true, true, buf.toString(), 200, 200, 200, this.title);\n/* */ } \n/* */ }",
"public AssistantProfessor(AssistantProfessor c){\n super(c);\n m_yearsUntilTenure = c.m_yearsUntilTenure;\n }",
"public GoodsCommentExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}",
"public Leagues() {\n }",
"private void constructACLMessage()\n {\n PlayIntroAction playIntroObject = new PlayIntroAction();\n playIntroObject.setLenght(numberOfMeasures);\n playIntroObject.setNow(true);\n playIntroObject.setDuration(-1);\n msg = new ACLMessage(ACLMessage.CFP);\n msg.setLanguage(codec.getName());\n msg.setOntology(ontology.getName());\n for(int i = 0; i < receivers.size(); i++)\n {\n try\n {\n //fill the content using the Ontology concept\n myAgent.getContentManager().fillContent(msg,new Action((AID)receivers.elementAt(i),playIntroObject));\n }catch (Exception ex) { ex.printStackTrace(); }\n //Set the receiver of the message\n msg.addReceiver((AID)receivers.elementAt(i));\n\n }\n\n //Set the protocol that we gonna use\n msg.setProtocol(FIPANames.InteractionProtocol.FIPA_CONTRACT_NET);\n //We indicate the deadline of the reply\n msg.setReplyByDate(new Date(System.currentTimeMillis() + 30000));\n\n\n }",
"interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }",
"void addGoalObserver(GoalObserver obs);",
"public void testAllMedicalQuestionParametersPopulated() {\n final String QUESTION_ID = \"hypoglycaemia-blood-sugar\";\n\n Map<String, MedicalCondition> conditions = cache.getConditions(Service.NOTIFY);\n MedicalCondition condition = conditions.get(DIABETES_CONDITION);\n\n assertNotNull(condition);\n\n MedicalQuestion question = condition.getQuestions().get(QUESTION_ID);\n assertNotNull(question);\n\n assertEquals(QUESTION_ID, question.getID());\n assertEquals(\"22\", question.getStep());\n assertEquals(Page.VERIFIED.getName(), question.getPage());\n assertEquals(9, question.getOrder().intValue());\n assertEquals(Format.RADIO.getName(), question.getType());\n assertEquals(Boolean.TRUE, question.getValidate());\n assertEquals(Boolean.FALSE, question.getLogout());\n assertEquals(EMPTY, question.getOptions());\n\n assertNotNull(question.getAnswers());\n assertEquals(question.getAnswers().size(), 0);\n\n assertNotNull(question.getConfiguration());\n assertTrue(question.getConfiguration().trim().length() > 0);\n\n assertNotNull(question.toString());\n }",
"void onShowAchievementsRequested();",
"public List<Achievement> getAchievements()\n\t{\n\t\treturn achievements;\n\t}",
"@Override\n\tpublic void onQaJoinConfirm(int arg0) {\n\t\t\n\t}",
"public Behavior() \r\n\t{ \r\n\t\tm_influence = 0; \r\n\t}",
"public GPProblem() {\n\n }",
"public static void createMissions() {\n allMissions.addMission(airport, \"Find your boardingpass\");\n allMissions.addMission(airport, \"Picking up first item\");\n allMissions.addMission(beach, \"Pick up food\");\n allMissions.addMission(jungle, \"Find survivors\");\n allMissions.addMission(cave, \"Eat the shrooms\");\n allMissions.addMission(camp, \"Escape the island\");\n }",
"public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}",
"public ExperiencevoucherofferingsRecord() {\n super(Experiencevoucherofferings.EXPERIENCEVOUCHEROFFERINGS);\n }",
"public ActiveSurveyQuestionItem() {\n }",
"public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }",
"public GoodsExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"AgentPolicyBuilder setJobPriority(JobPriority jobPriority);",
"public TPrizeExample() {\r\n\t\toredCriteria = new ArrayList();\r\n\t}",
"private AchievementProto(Builder builder) {\n super(builder);\n }",
"public void testCompletion() throws Exception {\n \t\tsetUpIntentProject(\"completionTest\", INTENT_DOC_PATH);\n \t\teditor = openIntentEditor();\n \t\tdocument = editor.getDocumentProvider().getDocument(editor.getEditorInput());\n \t\tcontentAssistant = editor.getViewerConfiguration().getContentAssistant(editor.getProjectionViewer());\n \n \t\tICompletionProposal[] proposals = null;\n \n \t\t/*\n \t\t * STRUCTURE\n \t\t */\n \t\t// inside a document\n \t\tproposals = getCompletionProposals(12);\n \t\tassertEquals(1, proposals.length);\n \t\tassertEquals(TEMPLATE_DESC_CHAPTER, proposals[0].getDisplayString());\n \t\tproposals = getCompletionProposals(15);\n \t\tassertEquals(2, proposals.length);\n \t\tassertEquals(KW_CHAPTER, proposals[0].getDisplayString());\n \t\tassertEquals(TEMPLATE_DESC_CHAPTER, proposals[1].getDisplayString());\n \n \t\t// inside a chapter\n \t\tproposals = getCompletionProposals(741);\n \t\tassertEquals(1, proposals.length);\n \t\tassertEquals(TEMPLATE_DESC_SECTION, proposals[0].getDisplayString());\n \t\tproposals = getCompletionProposals(745);\n \t\tassertEquals(2, proposals.length);\n \t\tassertEquals(KW_SECTION, proposals[0].getDisplayString());\n \t\tassertEquals(TEMPLATE_DESC_SECTION, proposals[1].getDisplayString());\n \n \t\t// inside a section\n \t\tproposals = getCompletionProposals(773);\n \t\tassertEquals(2, proposals.length);\n \t\tassertEquals(TEMPLATE_DESC_SECTION, proposals[0].getDisplayString());\n \t\tassertEquals(TEMPLATE_DESC_MU, proposals[1].getDisplayString());\n \n \t\t/*\n \t\t * MODELING UNITS\n \t\t */\n \t\t// beginning of the modeling unit\n \t\tproposals = getCompletionProposals(2138);\n \t\t// We should propose to create a new resource, a new entity, or contribute to an existing entity\n \t\tassertIsExpectedProposalsForEmptyModelingUnit(proposals);\n \n \t\t// beginning of a named modeling unit\n \t\tproposals = getCompletionProposals(3232);\n \t\tassertIsExpectedProposalsForEmptyModelingUnit(proposals);\n \n \t\t// resource declaration patterns\n \t\tproposals = getCompletionProposals(3263);\n \t\tassertEquals(2, proposals.length);\n \t\tassertEquals(TEMPLATE_DESC_URI, proposals[0].getDisplayString());\n \t\tassertEquals(TEMPLATE_DESC_CONTENT, proposals[1].getDisplayString());\n \n \t\t// features proposals in instanciation\n \t\tproposals = getCompletionProposals(3557);\n \t\tassertEquals(2, proposals.length);\n \t\tassertEquals(\"nsURI : EString [?] - Set the value EPackage.nsURI\", proposals[0].getDisplayString());\n \t\tassertEquals(\"nsPrefix : EString [?] - Set the value EPackage.nsPrefix\",\n \t\t\t\tproposals[1].getDisplayString());\n \n \t\t// features proposals in contribution\n \t\tproposals = getCompletionProposals(3848);\n \t\tassertEquals(1, proposals.length);\n \t\tassertEquals(\"eClassifiers : EClassifier [0,*] - Set the value match.eClassifiers\",\n \t\t\t\tproposals[0].getDisplayString());\n \n \t\t// Boolean value\n \t\tproposals = getCompletionProposals(4016);\n \t\tassertEquals(1, proposals.length);\n \t\tassertEquals(TEMPLATE_DESC_BOOL_VALUE, proposals[0].getDisplayString());\n \n \t\t// Object value\n \t\tproposals = getCompletionProposals(3985);\n \t\tassertEquals(3, proposals.length);\n \t\t// We should propose to create a new Element\n \t\tassertEquals(\"new Element (of type EClassifier) - Set this new Element as value for eType\",\n \t\t\t\tproposals[0].getDisplayString());\n \t\t// Use existing elements (of matching type) defined in the document\n \t\tassertEquals(\"Reference to MatchElement - Set the MatchElement element as value for eType\",\n \t\t\t\tproposals[1].getDisplayString());\n \t\t// And available Classifiers from the package registry\n \t\tassertEquals(\"MatchElement - http://www.eclipse.org/emf/compare/match/1.1\",\n \t\t\t\tproposals[2].getDisplayString());\n \n \t\t// instanciation proposals\n \t\tproposals = getCompletionProposals(3865);\n \t\tassertEquals(2, proposals.length);\n \t\tassertEquals(\"EClass - http://www.eclipse.org/emf/2002/Ecore\", proposals[0].getDisplayString());\n \t\tassertEquals(\"EClassifier - http://www.eclipse.org/emf/2002/Ecore\", proposals[1].getDisplayString());\n \n \t\t// features proposals further in contribution\n \t\tproposals = getCompletionProposals(4128);\n \t\tassertEquals(1, proposals.length);\n \t\tassertEquals(\n \t\t\t\t\"eStructuralFeatures : EStructuralFeature [0,*] - Set the value EClass.eStructuralFeatures\",\n \t\t\t\tproposals[0].getDisplayString());\n \t}",
"String getAssignmentApproaches();"
] | [
"0.59684014",
"0.58457375",
"0.54720336",
"0.54668087",
"0.54155654",
"0.5334655",
"0.52993757",
"0.52844656",
"0.525876",
"0.52487195",
"0.5210657",
"0.51713014",
"0.51442814",
"0.51287824",
"0.5088413",
"0.5080322",
"0.5076591",
"0.5025481",
"0.49622235",
"0.49349293",
"0.4920473",
"0.49058038",
"0.4900149",
"0.48984784",
"0.48949566",
"0.48831144",
"0.4861051",
"0.48569122",
"0.485645",
"0.48553237",
"0.4827742",
"0.48243704",
"0.4822078",
"0.4818688",
"0.4809595",
"0.4805687",
"0.48045233",
"0.48012206",
"0.47999972",
"0.47960925",
"0.47805583",
"0.47787708",
"0.47751424",
"0.47744572",
"0.47727236",
"0.47623459",
"0.4750542",
"0.47438586",
"0.47422302",
"0.47387767",
"0.47312257",
"0.4730565",
"0.47253165",
"0.4720537",
"0.4716004",
"0.4713606",
"0.47049287",
"0.47033325",
"0.47004554",
"0.4693375",
"0.46905586",
"0.46866158",
"0.46860442",
"0.4684708",
"0.46749878",
"0.4671558",
"0.46708113",
"0.46684584",
"0.4666996",
"0.4664985",
"0.46646175",
"0.46533322",
"0.4644145",
"0.46413139",
"0.46398333",
"0.4639759",
"0.46383256",
"0.462922",
"0.46291032",
"0.46280035",
"0.46264473",
"0.4625368",
"0.4619924",
"0.46197855",
"0.46127787",
"0.461272",
"0.46105307",
"0.4608709",
"0.46059108",
"0.46054018",
"0.46047178",
"0.46020207",
"0.4596837",
"0.45959952",
"0.4588703",
"0.45886052",
"0.45830417",
"0.4577885",
"0.457726",
"0.4576413"
] | 0.64586055 | 0 |
when btn_personal_details clicked move to PersonalDetails activity | public void btn_personal_details_On_click(View v) {
Intent i = new Intent(MainActivity.this, PersonalDetails.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(View v) {\n Intent reg = new Intent(RegDetailsPersonal.this, RegDetailsEmployment.class);\n RegDetailsPersonal.this.startActivity(reg);\n }",
"public void onClick(View v){\n Intent signIn = new Intent(RegDetailsPersonal.this, MainActivity.class);\n RegDetailsPersonal.this.startActivity(signIn);\n\n }",
"public void gotoProfileActivity()\n {\n Log.e(\"next\",\"\"+\"log\");\n startActivity(new Intent(OTPActivity.this, UserProfileActivity.class));\n finish();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }",
"public void buttonClicked(View view) {\n Intent intent = new Intent(getApplicationContext(), CompanyDetailsActivity.class);\n startActivity(intent);\n\n }",
"public void btn_medical_information_On_click(View v) {\n Intent i = new Intent(MainActivity.this, Medical_information.class);\n startActivity(i);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent in = new Intent();\n\t\t\t\tin.setClass(CollegeDetails.this,CollegePlacements.class);\n\t\t\t\tstartActivity(in);\n\t\t\t\t//finish();\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(DonationActivity.this, ProfileActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onButtonClicked(View v) {\n\n Log.e(getClass().getSimpleName(),\"Button clicked !\");\n startActivity(new Intent(this,DetailActivity.class));\n\n }",
"private void call_register_details_activity_page()\n {\n\n\n Intent intent = new Intent(getApplicationContext(), b_register_details_activity.class);\n\n startActivity(intent);\n finish();\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tIntent i = new Intent(NewProfileActivity.this,\n\t\t\t\t\t\tTBDispContacts.class);\n\t\t\t\ti.putExtra(\"Edit\", \"true\");\n\t\t\t\ti.putExtra(\"Details\", \"false\");\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent in = new Intent();\n\t\t\t\tin.setClass(CollegeDetails.this,CollegeContact.class);\n\t\t\t\tstartActivity(in);\n\t\t\t//\tfinish();\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, EditDataActivity.class);\n startActivity(intent);\n\n }",
"public void onClick(View v)\n {\n Intent fp=new Intent(getApplicationContext(),SignUpDetails.class);\n startActivity(fp);\n }",
"@Override\n public void onClick(View v) {\n Intent intentMain = new Intent(Najblizi.this ,\n MainProfile.class);\n Najblizi.this.startActivity(intentMain);\n Log.i(\"Content \",\" Main layout \");\n }",
"public void buttonToExam(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam button clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n// intent.putExtra(\"extra\", \"extra\");\n startActivity(intent);\n }",
"public void onClick(View v) {\n\n startActivity(new Intent(MainPage.this, AddFD.class));\n\n\n }",
"public void onClick(View view) {\n Intent detailActIntent = new Intent(view.getContext(), MainActivity.class);\n finish();\n startActivity(detailActIntent);\n\n\n }",
"@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(LoginActivity.this, ProfileSetupActivity.class);\n startActivity(intent);\n }",
"public void onClick(View view){\n Intent toDetailActivity = new Intent (view.getContext(), Detail.class);\n toDetailActivity.putExtra(\"nama\", nama.getText().toString());\n toDetailActivity.putExtra(\"gender\",avatarCode);\n toDetailActivity.putExtra(\"pekerjaan\", job.getText().toString());\n view.getContext().startActivity(toDetailActivity);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context,UserProfileActivity.class);\n intent.putExtra(AppConstants.USER_ID,postDetailModel.getUserDetailsModel().getId());\n startActivity(intent);\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(mContext, ActivityProfile.class));\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context,ProfileActivity.class);\n startActivity(intent);\n }",
"public void onSecondActivity(View view) {\n Intent intent = new Intent(getApplicationContext(), SecondActivity.class);\n intent.putExtra(Constants.KEY.TV_MAIN, etMain.getText().toString());\n\n switch (view.getId()){\n case R.id.btnFirst:\n// create person object\n Person person = new Person(etPersonName.getText().toString(), etPersonAge.getText().toString());\n// put person as extra to intent\n intent.putExtra(Constants.KEY.PERSON, person);\n\n break;\n case R.id.btnSecond:\n // create person object\n PersonP personP = new PersonP(etPersonName.getText().toString(), etPersonAge.getText().toString());\n// put person as extra to intent\n intent.putExtra(Constants.KEY.PERSON, personP);\n break;\n }\n\n// start activity\n startActivity(intent);\n\n\n\n }",
"@Override\r\n public void onClick(View v) {\n Intent i = new Intent(verify_list.this, Verify_a_donor.class);\r\n i.putExtra(\"name\", name_text);\r\n i.putExtra(\"username\", username_text);\r\n i.putExtra(\"blood\", bloodtext);\r\n i.putExtra(\"phno\", phnotext);\r\n i.putExtra(\"admin\", admin);\r\n startActivity(i);\r\n }",
"@Override\n public void onClick(View v) {\n if(!GlobalMethods.movetologinscreen(base_fgmt.getActivity()))\n {\n AppConstants.PharmacyDetails = mPharmacyDetails.get(position);\n ((HomeScreen) context).pushFragment(new ReviewFragment());\n }\n }",
"@Override\n public void onClick(View v) {\n if(!GlobalMethods.movetologinscreen(base_fgmt.getActivity()))\n {\n AppConstants.PharmacyDetails = mPharmacyDetails.get(position);\n ((HomeScreen) context).pushFragment(new ReviewFragment());\n }\n }",
"private void goToEditPage()\n {\n Intent intent = new Intent(getActivity(),EditProfilePage.class);\n getActivity().startActivity(intent);\n }",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n DeveloperProfileActivity.setDeveloper(adapter.getItem(position));\r\n Intent intent = new Intent(MainActivity.this, DeveloperProfileActivity.class);\r\n startActivity(intent);\r\n }",
"@Override\n public void onClick(View view) {\n int current = getItem(+1);\n if (current < layouts.length) {\n // move to next screen\n binding.activityWelcomeViewPager.setCurrentItem(current);\n } else {\n //Go to sign up\n startActivity(new Intent(WelcomeActivity.this , SignupActivity.class));\n finish();\n }\n }",
"private void gotoUserProfile() {\n Intent launchUserProfile = new Intent(this, Profile.class);\n startActivity(launchUserProfile);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(cont, ProfilePageActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tdil.dismiss();\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(context, Detail.class);\n i.putExtra(\"id\", id);\n i.putExtra(\"firstname\", firstname);\n i.putExtra(\"lastname\", lastname);\n i.putExtra(\"email\", email);\n i.putExtra(\"image\", image);\n context.startActivity(i);\n }",
"private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on cancel or submit\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(MainActivity.this, AddressActivity.class);\n startActivityForResult(i,2);\n\n }",
"public void ButtonClicked(View view) {\n Intent intentInput = new Intent(DetailActivity.this, InputActivity.class);\n startActivity(intentInput);\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tif (v.getId() == R.id.btn_setdetail) {\n\t\t\tIntent intent = new Intent(MydetialActivity.this,\n\t\t\t\t\tUpdateDetailActivity.class);\n\t\t\tintent.putExtra(\"nick\", nick.getText());\n\t\t\tintent.putExtra(\"name\", name.getText());\n\t\t\tintent.putExtra(\"sex\", sex.getText());\n\t\t\tintent.putExtra(\"tel\", tel.getText());\n\t\t\tintent.putExtra(\"qq\", qq.getText());\n\t\t\tintent.putExtra(\"email\", email.getText());\n\t\t\tintent.putExtra(\"level\", level.getText());\n\t\t\tstartActivityForResult(intent, REQUEST_CODE);\n\t\t}\n\t}",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.back_iv:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase R.id.relativeLayout_project:\r\n\t\t\tintent = new Intent(SnaDetailsActivity.this,ProjectActivity.class);\r\n\t\t\tintent.putExtra(\"project\", project);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase R.id.relativeLayout_activity:\r\n\t\t\tintent = new Intent(SnaDetailsActivity.this,MyActivity.class);\r\n\t\t\tintent.putExtra(\"service\", service);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n//\t\t\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), EmployeeListScreen.class);\n intent.putExtra(\"Type\",\"attendance\");\n getContext().startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\t//intent.putExtra(\"path\",path);\n\t\t\t\tintent.setClass(MainInterfceActivity.this, PersonalInfoActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), ProfileActivity.class);\n startActivity(intent);\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent i = new Intent(MainActivity.this, Add_Record.class);\n\t\t\t\tstartActivity(i);\n\n\t\t\t}",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(\n HomeScreen.this, AddPoi.class));\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(DonationActivity.this, DonationProjectActivity.class);\n startActivity(intent);\n //finish();\n }",
"@Override\r\n public void onClick(View view) {\r\n Intent paymentsIntent = new Intent(MainActivity.this, PaymentActivity.class);\r\n startActivity(paymentsIntent);\r\n }",
"@Override\n public void onClick(View v) {\n Intent account = new Intent(Welcome.this, MyAccount.class);\n startActivity(account);\n\n }",
"public void onClick(View view){\n String name = Name.getText().toString();\n String age = Age.getText().toString();\n\n // Change Main Activity into NewActivity in screen through intent.\n Intent intent = new Intent(getApplicationContext(), NewActivity.class);\n\n // Send data values that name and age .\n intent.putExtra(\"loginName\", name);\n intent.putExtra(\"loginAge\", age);\n\n startActivity(intent);\n }",
"private void goToDoctors() {\n\n Intent intent = new Intent(this, DoctorsActivity.class);\n intent.putExtra(EXTRA_EMAIL, email);\n startActivity(intent);\n\n }",
"@OnClick(R.id.setUserProfileEdits)\n public void onConfirmEditsClick() {\n if (UserDataProvider.getInstance().getCurrentUserType().equals(\"Volunteer\")){\n addSkills();\n addCauses();\n }\n updateUserData();\n // get intent information from previous activity\n\n// Intent intent = new Intent(getApplicationContext(), LandingActivity.class);\n\n\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n finish();\n// startActivity(intent);\n }",
"public void gotonewpatient(View view)\n {\n Intent i=new Intent(this,AddNewPatient.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n\t \tIntent myIntent = new Intent(MainActivity.this, Profile.class);\n\t \t//myIntent.putExtra(\"key\", value); //Optional parameters\n\t \tMainActivity.this.startActivity(myIntent);\n }",
"@Override\r\npublic void onClick(View arg0) {\n\tswitch(arg0.getId())\r\n\t{\r\n\t\tcase R.id.bt_other:\r\n\t\t/*Intent i=new Intent();\r\n\t\t\tstartActivity(i);\r\n\t\t\tsetContentView(R.layout.other);*/\r\n\t\t\tIntent Intent=new Intent(MainPage.this,DataSend.class);\r\n\t\t\tIntent.putExtra(\"KEY_LIST\", device);\r\n\t\t\tIntent.putExtra(\"KEY_LISTNUMBER\", count);\r\n\t\t\tstartActivity(Intent);\r\n\t\t\t/*Intent Intent1=new Intent(MainPage.this,AdminPanel.class);\r\n\t\t\tIntent1.putExtra(\"KEY_LIST\", device);\r\n\t\t\tstartActivity(Intent1);*/\r\n \t//setContentView(R.layout.adminhome);\r\n\t\tbreak;\r\n\t}\r\n}",
"@Override\r\n public void onClick(View v) {\n int selectedDoctorPosition = viewHolder.getAdapterPosition();\r\n enterDocterDetailsActivity(selectedDoctorPosition);\r\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(SubmitPaymentActivity.this, PatientHomeActivity.class);\n //start activity\n startActivity(intent);\n }",
"@Override\n // Function for once the button gets clicked\n public void onClick(View v) {\n Intent i = new Intent(FindOutMore.this, Tab_Main.class);\n // The activity is started and the variable i is placed into this\n startActivity(i);\n // This is an animation overrider...\n // This means that once the button has been pressed it will perform an animation to take\n // the users back to the new page that they have selected...\n overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);\n }",
"@Override\r\n public void onClick(View view) {\n Intent intent = new Intent(GuidePage.this, LoginOrRegister.class);\r\n startActivity(intent);\r\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"2\");\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, DemandDetailActivity.class);\n //intent.putExtra(\"id\",String.valueOf(item.getPid()));\n intent.putExtra(\"pid\", String.valueOf(item.getPid()));\n intent.putExtra(\"uid\", String.valueOf(item.getUid()));\n mContext.startActivity(intent);\n }",
"@Override\r\n public void onClick(View v) {\n Intent nxt = new Intent(Login.this,Register.class);\r\n startActivity(nxt);\r\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(\"NAME\", (String) mNameTextView.getText());\n intent.putExtra(\"REALNAME\", (String) mRealNameTextView.getText());\n intent.putExtra(\"URL\", (String) mHero.getUrl());\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, ListDataActivity.class);\n startActivity(intent);\n }",
"private void moveToMainActivity(){\r\n Intent goToMainActivity = new Intent(workoutActivity.this, BodyGroups.class);\r\n startActivity(goToMainActivity);;\r\n }",
"@Override\n public void onClick(View view) {\n saveBlocks();\n XmlDataManager.changeProject(model);\n\n Intent i = new Intent(DetailViewActivityEdit.this, MainActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivity(i);\n finish();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, SpecificInfoActivityed.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onClick(View view){\n Intent goToList = new Intent(SPQ7Page.this,SPQuestionList.class );\n\n // Executes Intent object.\n startActivity(goToList);\n\n }",
"@Override\n public void onClick(View v) {\n final Intent i = new Intent(Resultat.this, MenuPrincipal.class);\n startActivity(i);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(getApplicationContext(),Login_Profile.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"1\");\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"actid\", actid);\n\t\t\t\tintent.setClass(Activity_detail.this, BaoMing.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onDetailsClick(int position) {\n Intent intent = new Intent(getActivity(), MovieViewActivity.class);\n intent.putExtra(\"movieName\", memoirs.get(position).getMovieName());\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"from\", \"memoir\");\n startActivity(intent);\n }",
"public void userInfo() {\n Intent intent = new Intent(this, UserInfoActivity.class);\n intent.putExtra(\"userId\", buttonUserId);\n Log.d(\"TAG\", \"passed userId = \" +buttonUserId);\n startActivity(intent);\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\t\tint id = v.getId();\n\t\tswitch(id){\n\t\tcase R.id.layout1:\n\t\t\t//AboutCustodian layout1 used to navigate to AboutCustodianDirect screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,AboutCustodianDirect.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.layout2:\n\t\t\t//ClaimsProcess layout2 used to navigate to ClaimsProcess screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,ClaimsProcess.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.layout3:\n\t\t\t//Contact us layout3 used to navigate to ContactUs screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,ContactUs.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.bPhone:\n\t\t\t//Phone button opens the default dialer.\n\t\t\tmyIntent = new Intent(Intent.ACTION_DIAL); \n\t\t\tmyIntent.setData(Uri.parse(\"tel:\" + CONSTANTS.DIAL_NUMBER));\n\t\t\tstartActivity(myIntent);\n\t\t\tbreak;\n\t\tcase R.id.bEmail:\n\t\t\t//Email button to send email.\n\t\t\tfinal Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n\n\t\t\t/* Fill it with Data */\n\t\t\temailIntent.setType(\"plain/text\");\n\t\t\temailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"enquiries@custodianinsurance.com\"});\n\t\t\temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Custodian\");\n\t\t\temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"\");\n\n\t\t\t/* Send it off to the Activity-Chooser */\n\t\t\tstartActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n\t\t\tbreak;\n\n\t\tcase R.id.bBranches:\n\t\t\t//Branches button will navigate to branches screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,Branches.class);\n\t startActivity(myIntent);\n\t break;\n\t \n\t\tcase R.id.make_payment_menu:\n\t\t\t//used to navigate to Report Claim screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,CustodianReportClaim.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.Menu:\n\t\t\t//Menu button placed on left side is used to navigate directly to Home Page.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,CustodianHomeScreenMain.class);\n startActivity(myIntent);\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.Claim_center_menu:\n\t\t\t//used to navigate to ClaimsCenterMenuScreen from Menu Button.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,ClaimsCenterMenuScreen.class);\n\t\t\tstartActivity(myIntent);\t\n\t\t\tbreak;\n\n\t\tcase R.id.My_Info_menu:\n\t\t\t//used to navigate to MyInfo from Menu Button.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,CustodianMyInfo.class);\n\t\t\tmyIntent.putExtra(\"details\",details); \n\t\t\tstartActivity(myIntent);\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.Logout_menu:\n\t\t\t//used to logout from the application.\n\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(InformationCenterMenuScreen.this);\n\t\t\t alertDialog.setCancelable(false); \n\t // Setting Dialog Title\n\t alertDialog.setTitle(\"Custodian\");\n\t \n\t // Setting Dialog Message\n\t alertDialog.setMessage(\"Are you sure you want to logout from the application?\");\n\t \n\t // Setting Icon to Dialog\n\t alertDialog.setIcon(R.drawable.app_icon_48x48);\n\t \n\t // Setting Positive \"Yes\" Button\n\t alertDialog.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog,int which) {\n\t \tClearData();\n\t \tIntent intent = new Intent(InformationCenterMenuScreen.this,CustodianMainLanding.class);\n\t\t startActivity(intent); \n\t }\n\t });\n\t \n\t // Setting Negative \"NO\" Button\n\t alertDialog.setNegativeButton(\"NO\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int which) {\n\t // Write your code here to invoke NO event\n\t \n\t dialog.cancel();\n\t }\n\t });\n\t \n\t // Showing Alert Message\n\t alertDialog.show();\n\n\t\t\tbreak;\n\t\t} \n\t \n\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(DoctorTodaysAppointment.this,DoctorTodaysAppointmentsForPatient.class);\n intent.putExtra(\"mobile\",doctorMobile);\n intent.putExtra(\"userId\",doctorId);\n startActivity(intent);\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n if (view.getId()== position){\n Intent intent = new Intent(MainActivity.this, Details.class);\n intent.putExtra(\"name\", \"bangladesh\");\n startActivity(intent);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent();\n\t\t\t\tin.setClass(CollegeDetails.this,CollegeCourses.class);\n\t\t\t\tstartActivity(in);\n\t\t\t\t//finish();\n\t\t\t\t\n\t\t\t}",
"public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this, home_page.class);\n startActivity(intent);\n\n }",
"@Override\n\tpublic void turnToDetail(int position) {\n\t\tIntent intent = new Intent(WhiteListActivity.this,\n\t\t\t\tWhiteListDetailActivity.class);\n\t\tif (position >= 0) {\n\t\t\tintent.putExtra(\"isnew\", false);\n\t\t\tintent.putExtra(\"name\", adapter.getItem(position).getName());\n\t\t\tintent.putExtra(\"phone\", adapter.getItem(position).getPhone());\n\t\t\tintent.putExtra(\"id\", adapter.getItem(position).getId());\n\t\t} else {\n\t\t\tintent.putExtra(\"isnew\", true);\n\t\t}\n\t\tstartActivity(intent);\n\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(SingleTopActivity.this, SingleTopActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent1 = new Intent(ProjectActivity.this, TaskActivityWriter.class);\n intent1.putExtra(\"project\", project);\n startActivity(intent1);\n }",
"@Override\r\n public void onClick(View view) {\n switch (view.getId()){\r\n case R.id.register:\r\n Intent i = new Intent(this, RegistrationActivity.class);\r\n startActivity(i);\r\n break;\r\n }\r\n }",
"public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }",
"public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tIntent intent=new Intent(LookMyDataPrivacyActivity.this, MydataPrivacyActivity.class);\r\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.self_info:// 个人电话、详细地址及邮箱\r\n\t\t\tintent.putExtra(\"title\", \"个人电话、详细地址及邮箱\");\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.which_org:// 所在组织\r\n\t\t\tintent.putExtra(\"title\", \"所在组织\");\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.member_information:// 会员信息\r\n\t\t\tintent.putExtra(\"title\", \"会员信息(认证信息、等级)\");\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View view) {\n Intent intent;\n switch (view.getId()) {\n case R.id.record_vital_signs:\n intent = new Intent(this, PatientRecordVitalSignsActivity.class);\n intent.putExtra(PatientRecordVitalSignsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_vital_signs:\n intent = new Intent(this, PatientVitalSignsActivity.class);\n intent.putExtra(PatientVitalSignsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.record_symptoms:\n intent = new Intent(this, PatientRecordSymptomsActivity.class);\n intent.putExtra(PatientRecordSymptomsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_symptoms:\n intent = new Intent(this, PatientSymptomsActivity.class);\n intent.putExtra(PatientSymptomsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.add_prescription:\n intent = new Intent(this, PatientAddPrescriptionActivity.class);\n intent.putExtra(PatientAddPrescriptionActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_prescriptions:\n intent = new Intent(this, PatientPrescriptionsActivity.class);\n intent.putExtra(PatientPrescriptionsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.edit_info:\n \tintent = new Intent(this, PatientEditActivity.class);\n \tintent.putExtra(PatientEditActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n \tstartActivity(intent);\n break;\n case R.id.patient_detail_doctor:\n intent = new Intent(this, PatientDoctorActivity.class);\n intent.putExtra(PatientDoctorActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.add_seen_by_doctor:\n mPatient.addSeenByDoctor();\n populatePatientData();\n break;\n }\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(view.getContext(), EditProfil.class);\n i.putExtra(\"fullName\", nameTextView.getText().toString());\n i.putExtra(\"email\", emailTextView.getText().toString());\n i.putExtra(\"phone\",phoneTextView.getText().toString());\n startActivity(i);\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(),Pfillup.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n\n\n\n Intent intent = getIntent();\n intent.setClass(ConfirmPayActivity.this,FinishedPayActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Log.d(\"prof\",\"edit\");\n editDetails();\n// btn_prof_save.setVisibility(View.VISIBLE);\n// btn_prof_edit.setVisibility(View.INVISIBLE);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(Admin2Home.this, Admin2Infomation.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void onClick(View v) {\n\t\t\t\t\t\t\tIntent gotohomefrommyaccount = new Intent(UserProfileActivity.this, HomeActivity.class);\n\t\t\t\t\t\t\tstartActivity(gotohomefrommyaccount);\n\t\t\t\t\t\t}",
"@Override\r\n public void onClick(View v) {\n int id = v.getId();\r\n switch(id){\r\n case R.id.mylend:\r\n \t startActivity(new Intent(MyInfoActivity.this,CollectionActivity.class));\r\n \t break;\r\n case R.id.mywant:\r\n \t startActivity(new Intent(MyInfoActivity.this,MyWantedActivity.class));\r\n \t break;\r\n }\r\n }",
"@Override\n public void onClick(View view) {\n Intent nameIntent = new Intent(AccountSettingsActivity.this, NameActivity.class);\n startActivity(nameIntent);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent1=new Intent(mContext,ProfileActivity.class);\n intent1.putExtra(\"uid\",String.valueOf(item.getUid()));\n mContext.startActivity(intent1);\n\n }",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tIntent intent = new Intent(CityEditPageActivity.this,\r\n\t\t\t\t\tWeatherDetailsActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tCityEditPageActivity.this.finish();\r\n\t\t}",
"private void SendUserToInfoPage(){\n Intent intent = new Intent(sign_up_activity.this,user_info_activity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK);\n overridePendingTransition(0,0);\n startActivity(intent);\n finish();\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }",
"private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tIntent intent;\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btn_myresume_edit_back:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.layout_myresume_edit_project_experience:\n\t\t\tintent = new Intent(MyresumeEditActivity.this, ProjectExperienceListActivity.class);\n\t\t\tintent.putExtra(\"uid\", \"\"+uid);\n\t\t\tintent.putExtra(\"writeable\", \"\"+0);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.tv_myresume_edit_save:\n\t\tcase R.id.btn_myresume_edit_save:\n\t\t\tcomStr = etMyresumeEditCompany.getText().toString();\n\t\t\tcontactStr = myresumeEditContact.getText().toString();\n\t\t\tmobileStr = myresumeEditMobile.getText().toString();\n\t\t\tqqStr = myresumeEditQQ.getText().toString();\n\t\t\temailStr = myresumeEditEmail.getText().toString();\n//\t\t\tjobStr = myresumeEditJob.getText().toString();\n//\t\t\texperienceStr = myresumeEditExperience.getText().toString();\n\t\t\taddressStr = myresumeEditAddress.getText().toString();\n\t\t\tidnumberStr = myresumeEditIdnumber.getText().toString();\n\t\t\tintroduceStr = myresumeEditIntroduce.getText().toString();\n\t\t\tif (resumeType == 2) {\n\t\t\t\tif (\"\".equals(comStr)) {\n\t\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入企业名称\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (\"\".equals(contactStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系人姓名\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(mobileStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入手机号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(qqStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系QQ\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(emailStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系E-mail\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\telse if (\"\".equals(jobStr)) {\n//\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入职业状态\",\n//\t\t\t\t\t\tToast.LENGTH_LONG).show();\n//\t\t\t\tbreak;\n//\t\t\t}\n\t\t\telse if (\"\".equals(experienceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入行业经验\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(addressStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入通讯地址\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(idnumberStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入证件号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 1 && idnumberStr.length() != 18) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"身份证号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 2 && idnumberStr.length() != 15) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"营业执照号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(introduceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入自我介绍\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpd = new ProgressDialog(MyresumeEditActivity.this);\n\t\t\tpd.setMessage(\"请稍后…\");\n\t\t\tpd.show();\n\t\t\tList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n\t\t\t\n\t\t\tparams.add(new BasicNameValuePair(\"uid\", \"\"+uid));\n\t\t\tparams.add(new BasicNameValuePair(\"type\", \"\"+resumeType));\n\t\t\tparams.add(new BasicNameValuePair(\"comname\", comStr));\n\t\t\tparams.add(new BasicNameValuePair(\"linkname\", contactStr));\n\t\t\tparams.add(new BasicNameValuePair(\"mobile\", mobileStr));\n\t\t\tparams.add(new BasicNameValuePair(\"qq\", qqStr));\n\t\t\tparams.add(new BasicNameValuePair(\"email\", emailStr));\n\t\t\tparams.add(new BasicNameValuePair(\"status\", \"\"+status));\n\t\t\tparams.add(new BasicNameValuePair(\"workinglife\", experienceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"address\", addressStr));\n\t\t\tparams.add(new BasicNameValuePair(\"idcardno\", idnumberStr));\n\t\t\tparams.add(new BasicNameValuePair(\"description\", introduceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"goodin_item_num\", \"\"+(mArray.size() - 1)));\n\t\t\n\t\t\tfor(int i = 0; i < (mArray.size() - 1); i++){\n\t\t\t\tparams.add(new BasicNameValuePair(\"goodin_item\"+(i+1), \"\"+mArray.get(i).get(\"id\")));\n\t\t\t}\n\t\t\tnew Thread(new ConnectPHPToGetJSON(URL_ADDRESUME, handler, params))\n\t\t\t\t\t.start();\n\t\t\tbreak;\n\t\t}\n\t}"
] | [
"0.73070335",
"0.68366426",
"0.68000036",
"0.6767445",
"0.66887265",
"0.6642781",
"0.6595788",
"0.6595186",
"0.65895",
"0.6586438",
"0.65813524",
"0.65401244",
"0.65325385",
"0.6525495",
"0.65241694",
"0.65112656",
"0.649686",
"0.6491303",
"0.6487439",
"0.6484776",
"0.6479977",
"0.64767534",
"0.64643407",
"0.6463905",
"0.6450317",
"0.64502186",
"0.6445971",
"0.6434259",
"0.6434259",
"0.6424255",
"0.6382583",
"0.6380807",
"0.63801926",
"0.6378595",
"0.6352539",
"0.63472617",
"0.63433707",
"0.6342499",
"0.63395673",
"0.6334805",
"0.6327102",
"0.6319807",
"0.63180584",
"0.63047945",
"0.62991965",
"0.62972593",
"0.6278638",
"0.62694705",
"0.62581784",
"0.62567735",
"0.6252074",
"0.6251249",
"0.6241195",
"0.6238616",
"0.62281394",
"0.62256753",
"0.6224377",
"0.6211411",
"0.6209595",
"0.6203991",
"0.6199068",
"0.61906207",
"0.61901927",
"0.61805975",
"0.6177573",
"0.61717266",
"0.61698276",
"0.6162082",
"0.6160438",
"0.61580175",
"0.61470497",
"0.6142706",
"0.6142062",
"0.61380106",
"0.6133034",
"0.61329913",
"0.6127518",
"0.6122008",
"0.6119947",
"0.6115292",
"0.610515",
"0.61025244",
"0.61008745",
"0.6097209",
"0.6096184",
"0.6082938",
"0.6082462",
"0.6082178",
"0.607945",
"0.60775816",
"0.60775703",
"0.60761815",
"0.6075306",
"0.6069908",
"0.60694265",
"0.60647935",
"0.60621476",
"0.60573167",
"0.60424197",
"0.60400397"
] | 0.83505183 | 0 |
when btn_medical_information clicked move to Medical_information activity | public void btn_medical_information_On_click(View v) {
Intent i = new Intent(MainActivity.this, Medical_information.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n Intent returnToPressHelp = new Intent(getApplicationContext(), PressHelp.class);\n startActivity(returnToPressHelp);\n\n\n //Tell the phone that the medication was taken.\n\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent it = new Intent(ManaInsertActivity.this,ManaMediActivity.class); \n it.putExtras(it);\n startActivity(it);\n\t\t\t}",
"public void btn_personal_details_On_click(View v) {\n Intent i = new Intent(MainActivity.this, PersonalDetails.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }",
"public void gotonewpatient(View view)\n {\n Intent i=new Intent(this,AddNewPatient.class);\n startActivity(i);\n }",
"@Override\n // Function for once the button gets clicked\n public void onClick(View v) {\n Intent i = new Intent(FindOutMore.this, Tab_Main.class);\n // The activity is started and the variable i is placed into this\n startActivity(i);\n // This is an animation overrider...\n // This means that once the button has been pressed it will perform an animation to take\n // the users back to the new page that they have selected...\n overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);\n }",
"@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, Inspection.class);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActInfo.class);\n\t\t\t\t \n\t\t\t\t Bundle bundle=new Bundle();\n\t\t\t\t bundle.putInt(\"id\", 0);\n\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, SpecificInfoActivityed.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent imiddle_gaza = new Intent(man_lamar.this,man_middle_gaza.class);\n\t\t\t\tstartActivity(imiddle_gaza);\n\t\t\t\n\t\t\t}",
"private void gotoInfo() {\n Intent launchInfo = new Intent(this, Info.class);\n startActivity(launchInfo);\n }",
"public void ButtonClicked(View view) {\n Intent intentInput = new Intent(DetailActivity.this, InputActivity.class);\n startActivity(intentInput);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }",
"public void buttonToExam(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam button clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n// intent.putExtra(\"extra\", \"extra\");\n startActivity(intent);\n }",
"public void clickOnMedication() {\n\t\tscrollDown(element(\"link_medications\"));\n\t\telement(\"link_medications\").click();\n\t\tlogMessage(\"User clicks on Medications on left navigation bar at Physician End\");\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }",
"@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = MeasurementResultActivity.newIntent(getActivity(), null);\n startActivity(intent);\n }",
"@Override\r\npublic void onClick(View arg0) {\n\tswitch(arg0.getId())\r\n\t{\r\n\t\tcase R.id.bt_other:\r\n\t\t/*Intent i=new Intent();\r\n\t\t\tstartActivity(i);\r\n\t\t\tsetContentView(R.layout.other);*/\r\n\t\t\tIntent Intent=new Intent(MainPage.this,DataSend.class);\r\n\t\t\tIntent.putExtra(\"KEY_LIST\", device);\r\n\t\t\tIntent.putExtra(\"KEY_LISTNUMBER\", count);\r\n\t\t\tstartActivity(Intent);\r\n\t\t\t/*Intent Intent1=new Intent(MainPage.this,AdminPanel.class);\r\n\t\t\tIntent1.putExtra(\"KEY_LIST\", device);\r\n\t\t\tstartActivity(Intent1);*/\r\n \t//setContentView(R.layout.adminhome);\r\n\t\tbreak;\r\n\t}\r\n}",
"public void openPromotion() {\n myActivity.setContentView(R.layout.promotion);\n Button promotionButtonToGame = myActivity.findViewById(R.id.button6);\n\n promotionButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingRulesScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n }\n\n\n );\n\n\n }",
"@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openMachineDetails(position);\n }",
"@Override\n public void onClick(View v) {\n animateFAB();\n Intent intent=new Intent(getApplicationContext(),Emergency_SMS.class)\n .putExtra(\"activityFROM\",\"main2\");\n startActivity(intent);\n }",
"@Override\r\n public void onClick(View v) {\n int id = v.getId();\r\n switch(id){\r\n case R.id.mylend:\r\n \t startActivity(new Intent(MyInfoActivity.this,CollectionActivity.class));\r\n \t break;\r\n case R.id.mywant:\r\n \t startActivity(new Intent(MyInfoActivity.this,MyWantedActivity.class));\r\n \t break;\r\n }\r\n }",
"public void onClick(View v) {\n Intent reg = new Intent(RegDetailsPersonal.this, RegDetailsEmployment.class);\n RegDetailsPersonal.this.startActivity(reg);\n }",
"@Override\n public void onClick(View view) {\n Intent intent;\n switch (view.getId()) {\n case R.id.record_vital_signs:\n intent = new Intent(this, PatientRecordVitalSignsActivity.class);\n intent.putExtra(PatientRecordVitalSignsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_vital_signs:\n intent = new Intent(this, PatientVitalSignsActivity.class);\n intent.putExtra(PatientVitalSignsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.record_symptoms:\n intent = new Intent(this, PatientRecordSymptomsActivity.class);\n intent.putExtra(PatientRecordSymptomsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_symptoms:\n intent = new Intent(this, PatientSymptomsActivity.class);\n intent.putExtra(PatientSymptomsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.add_prescription:\n intent = new Intent(this, PatientAddPrescriptionActivity.class);\n intent.putExtra(PatientAddPrescriptionActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.patient_detail_prescriptions:\n intent = new Intent(this, PatientPrescriptionsActivity.class);\n intent.putExtra(PatientPrescriptionsActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.edit_info:\n \tintent = new Intent(this, PatientEditActivity.class);\n \tintent.putExtra(PatientEditActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n \tstartActivity(intent);\n break;\n case R.id.patient_detail_doctor:\n intent = new Intent(this, PatientDoctorActivity.class);\n intent.putExtra(PatientDoctorActivity.ARG_ITEM_ID, mPatient.getHealthCardNumber());\n startActivity(intent);\n break;\n case R.id.add_seen_by_doctor:\n mPatient.addSeenByDoctor();\n populatePatientData();\n break;\n }\n }",
"private void moveToMainActivity(){\r\n Intent goToMainActivity = new Intent(workoutActivity.this, BodyGroups.class);\r\n startActivity(goToMainActivity);;\r\n }",
"public void openMoving() {\n myActivity.setContentView(R.layout.moving);\n Button movingButtonToGame = myActivity.findViewById(R.id.button10);\n\n movingButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingRulesScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }",
"public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this,story.class);\n startActivity(intent);\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, PhoneSetActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}",
"@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }",
"@Override\n public void onClick(String[] movieInformation) {\n Context context = this;\n Class destinationClass = DetailActivity.class;\n Intent intentToStartDetailActivity = new Intent(context, destinationClass);\n intentToStartDetailActivity.putExtra (\"movieInfo\", movieInformation);\n startActivity(intentToStartDetailActivity);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(Admin2Home.this, Admin2Infomation.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void GoInfo(View view) {\n Intent a = new Intent(MainActivity.this, Info.class);\n startActivity(a);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent irss = new Intent(man_lamar.this,ITCutiesReaderAppActivity.class);\n\t\t\t\tstartActivity(irss);\n\t\t\t\n\t\t\t}",
"public void onClick(View view){\n Intent toDetailActivity = new Intent (view.getContext(), Detail.class);\n toDetailActivity.putExtra(\"nama\", nama.getText().toString());\n toDetailActivity.putExtra(\"gender\",avatarCode);\n toDetailActivity.putExtra(\"pekerjaan\", job.getText().toString());\n view.getContext().startActivity(toDetailActivity);\n }",
"public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, viewUpdateDeleteAMedicine.class);\n\n int mID= medData.get(position).getMedID();\n String medid = String.valueOf(mID);\n\n int uID= medData.get(position).getMedID();\n String userid = String.valueOf(uID);\n\n intent.putExtra(\"MedID\", medid);\n intent.putExtra(\"UserID\",medData.get(position).getUserID());\n intent.putExtra(\"MedName\", medData.get(position).getMedName());\n intent.putExtra(\"MedType\",medData.get(position).getMedType());\n intent.putExtra(\"MedFrequency\", medData.get(position).getMedFreq());\n intent.putExtra(\"MedDose\", medData.get(position).getMedDose());\n intent.putExtra(\"MedTime\", medData.get(position).getMedTime());\n intent.putExtra(\"MedDuration\", medData.get(position).getMedDuration());\n intent.putExtra(\"MedStart\", medData.get(position).getMedStartdate());\n intent.putExtra(\"MedDescript\", medData.get(position).getMedDescrip());\n\n mContext.startActivity(intent);\n\n }",
"public void onClick(View v) {\n\n startActivity(new Intent(MainPage.this, AddFD.class));\n\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.layout_info:\n Intent intent = new Intent(getActivity(), InfoActivity.class);\n startActivity(intent);\n break;\n default:\n break;\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActRecommend.class);\n//\t\t\t\t \n//\t\t\t\t Bundle bundle=new Bundle();\n//\t\t\t\t bundle.putInt(\"id\", 1);\n//\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(DoctorTodaysAppointment.this,DoctorTodaysAppointmentsForPatient.class);\n intent.putExtra(\"mobile\",doctorMobile);\n intent.putExtra(\"userId\",doctorId);\n startActivity(intent);\n\n }",
"public void catButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G1.class);\n startActivity(intent);\n\n }",
"public void onClick(View view) {\n Intent nextScreen = new Intent(view.getContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n }",
"private void goToWeather(){\n \tIntent intent = new Intent(PresentadorV_main.this,\n \t\t\tPresentador_weather.class); \t\n \tstartActivity(intent); \t\n }",
"public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }",
"@Override\r\n public void onClick(View v) {\n Intent i = new Intent(verify_list.this, Verify_a_donor.class);\r\n i.putExtra(\"name\", name_text);\r\n i.putExtra(\"username\", username_text);\r\n i.putExtra(\"blood\", bloodtext);\r\n i.putExtra(\"phno\", phnotext);\r\n i.putExtra(\"admin\", admin);\r\n startActivity(i);\r\n }",
"@Override\n public void onClick(View view) {\n Intent indianCenterIntent = new Intent(Sights.this, IndianCenter.class);\n startActivity(indianCenterIntent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"actid\", actid);\n\t\t\t\tintent.setClass(Activity_detail.this, BaoMing.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(SubmitPaymentActivity.this, PatientHomeActivity.class);\n //start activity\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\t//intent.putExtra(\"path\",path);\n\t\t\t\tintent.setClass(MainInterfceActivity.this, PersonalInfoActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, ListDataActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(mContext, HelpDetails.class);\n intent.putExtra(\"hid\", item.getHelpId());\n mContext.startActivity(intent);\n\n\n // Toast.makeText(mContext, \"clicked\", Toast.LENGTH_SHORT).show();\n // Toast.makeText(mContext, \"\"+user_id, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link dumoActivity}\n Intent dumoIntent = new Intent(MainActivity.this, dumoActivity.class);\n // Start the new activity\n startActivity(dumoIntent);\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tIntent intent=new Intent(LookMyDataPrivacyActivity.this, MydataPrivacyActivity.class);\r\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.self_info:// 个人电话、详细地址及邮箱\r\n\t\t\tintent.putExtra(\"title\", \"个人电话、详细地址及邮箱\");\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.which_org:// 所在组织\r\n\t\t\tintent.putExtra(\"title\", \"所在组织\");\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.member_information:// 会员信息\r\n\t\t\tintent.putExtra(\"title\", \"会员信息(认证信息、等级)\");\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent ikhan_yunis = new Intent(man_lamar.this,man_khan_yunis.class);\n\t\t\t\tstartActivity(ikhan_yunis);\n\t\t\t\n\t\t\t}",
"public void mantDoble(View view){\n Intent intent = new Intent(this, mant_doble.class);\n startActivity(intent);\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\t\tint id = v.getId();\n\t\tswitch(id){\n\t\tcase R.id.layout1:\n\t\t\t//AboutCustodian layout1 used to navigate to AboutCustodianDirect screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,AboutCustodianDirect.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.layout2:\n\t\t\t//ClaimsProcess layout2 used to navigate to ClaimsProcess screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,ClaimsProcess.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.layout3:\n\t\t\t//Contact us layout3 used to navigate to ContactUs screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,ContactUs.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.bPhone:\n\t\t\t//Phone button opens the default dialer.\n\t\t\tmyIntent = new Intent(Intent.ACTION_DIAL); \n\t\t\tmyIntent.setData(Uri.parse(\"tel:\" + CONSTANTS.DIAL_NUMBER));\n\t\t\tstartActivity(myIntent);\n\t\t\tbreak;\n\t\tcase R.id.bEmail:\n\t\t\t//Email button to send email.\n\t\t\tfinal Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n\n\t\t\t/* Fill it with Data */\n\t\t\temailIntent.setType(\"plain/text\");\n\t\t\temailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"enquiries@custodianinsurance.com\"});\n\t\t\temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Custodian\");\n\t\t\temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"\");\n\n\t\t\t/* Send it off to the Activity-Chooser */\n\t\t\tstartActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n\t\t\tbreak;\n\n\t\tcase R.id.bBranches:\n\t\t\t//Branches button will navigate to branches screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,Branches.class);\n\t startActivity(myIntent);\n\t break;\n\t \n\t\tcase R.id.make_payment_menu:\n\t\t\t//used to navigate to Report Claim screen.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,CustodianReportClaim.class);\n startActivity(myIntent);\n break;\n \n\t\tcase R.id.Menu:\n\t\t\t//Menu button placed on left side is used to navigate directly to Home Page.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,CustodianHomeScreenMain.class);\n startActivity(myIntent);\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.Claim_center_menu:\n\t\t\t//used to navigate to ClaimsCenterMenuScreen from Menu Button.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,ClaimsCenterMenuScreen.class);\n\t\t\tstartActivity(myIntent);\t\n\t\t\tbreak;\n\n\t\tcase R.id.My_Info_menu:\n\t\t\t//used to navigate to MyInfo from Menu Button.\n\t\t\tmyIntent = new Intent(InformationCenterMenuScreen.this,CustodianMyInfo.class);\n\t\t\tmyIntent.putExtra(\"details\",details); \n\t\t\tstartActivity(myIntent);\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.Logout_menu:\n\t\t\t//used to logout from the application.\n\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(InformationCenterMenuScreen.this);\n\t\t\t alertDialog.setCancelable(false); \n\t // Setting Dialog Title\n\t alertDialog.setTitle(\"Custodian\");\n\t \n\t // Setting Dialog Message\n\t alertDialog.setMessage(\"Are you sure you want to logout from the application?\");\n\t \n\t // Setting Icon to Dialog\n\t alertDialog.setIcon(R.drawable.app_icon_48x48);\n\t \n\t // Setting Positive \"Yes\" Button\n\t alertDialog.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog,int which) {\n\t \tClearData();\n\t \tIntent intent = new Intent(InformationCenterMenuScreen.this,CustodianMainLanding.class);\n\t\t startActivity(intent); \n\t }\n\t });\n\t \n\t // Setting Negative \"NO\" Button\n\t alertDialog.setNegativeButton(\"NO\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int which) {\n\t // Write your code here to invoke NO event\n\t \n\t dialog.cancel();\n\t }\n\t });\n\t \n\t // Showing Alert Message\n\t alertDialog.show();\n\n\t\t\tbreak;\n\t\t} \n\t \n\t\t}",
"private void call_register_details_activity_page()\n {\n\n\n Intent intent = new Intent(getApplicationContext(), b_register_details_activity.class);\n\n startActivity(intent);\n finish();\n\n }",
"public void onClick(View v) {\n Intent i = new Intent(v.getContext(), NewPatient.class);\n startActivity(i);\n }",
"public void onClick(View v) {\n Intent westminsterIntent = new Intent(confessionsActivity.this, westminsterActivity.class);\n startActivity(westminsterIntent);\n }",
"@Override\n public void onButtonClicked(View v) {\n\n Log.e(getClass().getSimpleName(),\"Button clicked !\");\n startActivity(new Intent(this,DetailActivity.class));\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(MotionSensor.this, MainActivity.class);\n\t\t\t\tMotionSensor.this.startActivity(intent);\n\t\t\t}",
"public void btn_previous_analysis_On_click(View v) {\n Intent i = new Intent(MainActivity.this, PreviousAnalysis.class);\n startActivity(i);\n }",
"public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this, home_page.class);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,SafeMove.class));\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(\n HomeScreen.this, AddPoi.class));\n\n }",
"@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, ScanQR.class);\n //intent.putExtra( \"id\", tvmechID.getText().toString() );\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"2\");\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent nationIntent = new Intent(MainActivity.this, NationActivity.class);\n startActivity(nationIntent);\n }",
"private void viewMove(Move move) {\n Intent intent = new Intent(this, MoveInfoActivity.class);\n intent.putExtra(getString(R.string.moveKey), move);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }",
"public void onClick(View view){\n Toast.makeText(WelcomePage.this,R.string.Processing,Toast.LENGTH_LONG).show();\n\n // Jumps to Weather forecast Activity\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Thought chosenThought = thoughts.get((int) v.getTag());\n Intent thoughtContentIntent = new Intent(getActivity(), ThougtContentActivity.class);\n thoughtContentIntent.putExtra(\"id\", chosenThought.thoughtId.toString());\n thoughtContentIntent.putExtra(\"image\", chosenThought.imagePath.getPath());\n thoughtContentIntent.putExtra(\"recording\", chosenThought.recordingPath.getPath());\n thoughtContentIntent.putExtra(\"title\", chosenThought.title);\n thoughtContentIntent.putExtra(\"details\", chosenThought.details);\n startActivity(thoughtContentIntent);\n }",
"public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tServiceAdditionActivity.setclass(\"carecar\");\r\n\t\t\t\tstartActivity(new Intent(ServiceActivity.this,ServiceAdditionActivity.class));\r\n\t\t\t}",
"public void mangoButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G2.class);\n startActivity(intent);\n\n }",
"public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }",
"@Override\n\t public void onFinish(){\n\t \tIntent nextScreen = new Intent(getApplicationContext(), Main_Menu_2.class);\n\t\t\t // TODO Auto-generated method stub\n\t\t startActivity(nextScreen);\n\t }",
"@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, InputActivity.class));\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, DemandDetailActivity.class);\n //intent.putExtra(\"id\",String.valueOf(item.getPid()));\n intent.putExtra(\"pid\", String.valueOf(item.getPid()));\n intent.putExtra(\"uid\", String.valueOf(item.getUid()));\n mContext.startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i = new Intent(HomeScreen.this, ReportScreen.class);\n\t\t\t startActivity(i);\n\t\t\t}",
"protected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\r\n\tsetContentView(R.layout.input_med);\r\n\tButton submit=(Button)findViewById(R.id.button1);\r\n\t\r\n\t//Toast.makeText(getApplicationContext(), \r\n // a, Toast.LENGTH_LONG).show();\r\n\tsubmit.setOnClickListener(new View.OnClickListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onClick(View v) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}\r\n\t});\r\n}",
"public void onClick(View v) {\n Intent i = new Intent(v.getContext(), SelectCurrentPatient.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"1\");\n startActivity(intent);\n }",
"public void onSecondActivity(View view) {\n Intent intent = new Intent(getApplicationContext(), SecondActivity.class);\n intent.putExtra(Constants.KEY.TV_MAIN, etMain.getText().toString());\n\n switch (view.getId()){\n case R.id.btnFirst:\n// create person object\n Person person = new Person(etPersonName.getText().toString(), etPersonAge.getText().toString());\n// put person as extra to intent\n intent.putExtra(Constants.KEY.PERSON, person);\n\n break;\n case R.id.btnSecond:\n // create person object\n PersonP personP = new PersonP(etPersonName.getText().toString(), etPersonAge.getText().toString());\n// put person as extra to intent\n intent.putExtra(Constants.KEY.PERSON, personP);\n break;\n }\n\n// start activity\n startActivity(intent);\n\n\n\n }",
"@Override\n public void onClick(View v) {\n Intent welcome = new Intent(Welcome.this, Scan.class);\n startActivity(welcome);\n\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tMyShareEntity MF1= list.get(i);\n\t\t\t\t\t\tIntent it = new Intent(mContext,SharingCenterDetail.class);\n\t\t\t\t\t\t\n\t\t\t\t\t\tit.putExtra(\"sid\", MF1.getId());\n\t\t\t\t\t\tit.putExtra(\"pid\", MF1.getPERSONID());\n\t\t\t\t\t\tit.putExtra(\"pname\", MF1.getName());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmContext.startActivity(it);\n\t\t\t\t\t}",
"public void sobreedad(View view){\n Intent sob = new Intent(this, Sobreedad.class);\n startActivity(sob);\n }",
"public void mo55098f() {\n setContentView(C3417R.C3421layout.medallia_activity_full_form);\n this.f847i = (Toolbar) findViewById(C3417R.C3420id.medallia_toolbar);\n setSupportActionBar(this.f847i);\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeActionContentDescription((CharSequence) getString(C3417R.string.back));\n }\n this.f848j = (TextView) findViewById(C3417R.C3420id.medallia_title_text_view);\n m403g();\n }",
"@Override\n public void onClick(View v) {\n MainActivity.getMainActivity().loadDetailScreen(station);\n\n }",
"public void clickRS(View view){\n Intent i = new Intent(this,Hospital.class);\n startActivity(i);\n }",
"public void toExamSe(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n intent.putExtra(\"finnish\", false);\n intent.putExtra(\"startNewExam\", true);\n db.setIsFinnishQuestions(false);\n startActivity(intent);\n }",
"@Override\n public void onClick(View arg0)\n {\n\n ExtendedNewController extendedNewController = new ExtendedNewController();\n startNewControllerActivity(extendedNewController, 0, 0);\n }",
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Login.this,teacherLogin.class);\n startActivity(intent , ActivityOptions.makeSceneTransitionAnimation(Login.this).toBundle());\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.putExtra(\"isFirstInfo\", 1);\n\t\t\t\tintent.setClass(mContext, HelpActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyPictureActivity.this,SetInfo.class);\n\t\t\t\tintent.putExtra(\"ext\", \"client\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}"
] | [
"0.6994721",
"0.69722563",
"0.6869765",
"0.67641795",
"0.662043",
"0.6424812",
"0.64131737",
"0.6377238",
"0.6326238",
"0.6267714",
"0.6263789",
"0.6254464",
"0.62437826",
"0.62275904",
"0.61980784",
"0.61892575",
"0.6154311",
"0.6147704",
"0.61467767",
"0.6143154",
"0.61334723",
"0.6125616",
"0.60971254",
"0.60749304",
"0.6068977",
"0.60517454",
"0.6046461",
"0.60420126",
"0.6027679",
"0.6027456",
"0.6027212",
"0.6025904",
"0.6022753",
"0.6022703",
"0.60197943",
"0.60154665",
"0.60102737",
"0.6008378",
"0.59976286",
"0.59955615",
"0.59922326",
"0.59840584",
"0.5975959",
"0.597401",
"0.5970073",
"0.5968844",
"0.59644353",
"0.59545416",
"0.5953901",
"0.59481597",
"0.5947071",
"0.5945412",
"0.5942786",
"0.59338593",
"0.59114",
"0.5907172",
"0.5903198",
"0.5900865",
"0.59007615",
"0.5898251",
"0.58919495",
"0.5890064",
"0.5889535",
"0.5881231",
"0.5877059",
"0.58760035",
"0.5867817",
"0.58676636",
"0.58655095",
"0.5856783",
"0.58435476",
"0.5842612",
"0.58425677",
"0.58419085",
"0.58412147",
"0.58409697",
"0.58364516",
"0.58345664",
"0.5834052",
"0.5831491",
"0.5828754",
"0.5828114",
"0.58273065",
"0.58267945",
"0.5821489",
"0.58105665",
"0.5806462",
"0.58051276",
"0.57999384",
"0.57995987",
"0.5799549",
"0.5798141",
"0.5791376",
"0.57871544",
"0.5785866",
"0.5785778",
"0.5785284",
"0.57822216",
"0.5781046",
"0.5780095"
] | 0.8200937 | 0 |
/ when btn_previous_analysis clicked move to PreviousAnalysis activity | public void btn_previous_analysis_On_click(View v) {
Intent i = new Intent(MainActivity.this, PreviousAnalysis.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToPreviousStagesActivity(View view)\n {\n Stage thisStage = stageHandler.getStage(1);\n if (thisStage != null)\n {\n Intent intent = new Intent(MainActivity.this, PreviousStagesActivity.class);\n startActivity(intent);\n }\n else\n {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this);\n alertDialog.setMessage(getString(R.string.noStages)).create().show();\n }\n }",
"public void Back(View view) // back button pressed - go back to previous class\n {\n Intent intent = new Intent(ImportingOCR.this, AddedCmc.class); // back to previous page--which should be addedcmc.class and not importing manual(i change to Addedcmc.class)\n intent.putExtra(\"personid\", personid);\n intent.putExtra(\"amount\", amount);\n intent.putExtra(\"date\", date);\n intent.putExtra(\"username\", uploader);\n startActivity(intent);\n }",
"private void previousQuestion()\r\n {\r\n Intent question = new Intent(AnswerActivity.this, QuestionActivity.class);\r\n Bundle bundle = new Bundle();\r\n bundle.putIntArray(QuestionActivity.FLASH_CARD_ARRAY, intArray);\r\n bundle.putInt(QuestionActivity.NUMBER_OF_FLASH_CARDS, numberOfFlashCards);\n bundle.putBoolean(PREVIOUS_QUESTION, true); \r\n bundle.putInt(QuestionActivity.CURRENT_INDEX, currentIndex);\r\n question.putExtras(bundle);\r\n startActivity(question);\r\n overridePendingTransition(R.anim.fade, R.anim.hold);\n finish();\r\n }",
"public void previousBtnClicked(View v){\n\t\tresetSelection();\r\n\t\tnextQuestion(-1);\r\n\t\tshowQuesAndAnswers();\r\n\t}",
"private void activate_previous_activity(){\n\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch(arg0.getId())\n\t\t{\n\t\tcase R.id.iv_recover_analysis_back: //返回\n\t\t\t//跳转至首页\n\t\t\tIntent intent1 = new Intent(RecoverAnalysisActivity.this,\n\t\t\t\t\tRecoverMainActivity.class);\n\t\t\tstartActivity(intent1);\n\t\t\tfinish();\n\t\t\tbreak;\t\n\t\tcase R.id.btn_analysis_chartnow: //切换档次测试图表\n\t\t\t//初始化当次测试图表\n\t\t\tinitchart_current();\n\t\t\t//显示图表\n\t\t\tmChart_current.setVisibility(View.VISIBLE);\n\t\t\tmChart_current.animateY(1500);\n\t\t\t//隐藏历史肌力等级数据图表\n\t mChart_histroy.setVisibility(View.GONE);\n\t\t\tmChart_histroy = null;\n\t\t\t//设置相关按钮颜色\n\t\t\tbtn_chartnow.setTextColor(0xFFF186FD);\n\t\t\tbtn_charthistroy.setTextColor(color.bg_recover_analysispage_wordtitle);\n\t\t\t//禁用和开启相关按钮\n\t\t\tbtn_chartnow.setClickable(false);\n\t\t\tbtn_charthistroy.setClickable(true);\n\t\t\tbreak;\t\n\t\tcase R.id.btn_analysis_charthistroy: //切换历史数据\n//\t\t\tmChart_histroy = null;\n\t //初始化历史图表\n\t\t\tinitchart_histroy();\n\t setHistropData();\n\t //显示图表\n\t\t\tmChart_histroy.setVisibility(View.VISIBLE);\n\t\t\tmChart_histroy.animateX(1000);\n\t //隐藏当次测试结果图表\n\t\t\tmChart_current.setVisibility(View.GONE);\n\t\t\tmChart_current = null;\n\t\t\t//设置按钮颜色\n\t\t\tbtn_chartnow.setTextColor(color.bg_recover_analysispage_wordtitle);\n\t\t\tbtn_charthistroy.setTextColor(0xFFF186FD);\n\t\t\t//禁用和开启相关按钮\n\t\t\tbtn_chartnow.setClickable(true);\n\t\t\tbtn_charthistroy.setClickable(false);\n\t\t\tbreak;\t\n\t\tcase R.id.btn_analysis_starttrain: //开始训练\n\t\t\tfinish();\n\t\t\tIntent intent2 = new Intent(RecoverAnalysisActivity.this,\n\t\t\t\t\tRecoverAdjustActivity.class);\n\t\t\tintent2.putExtra(\"userid\",userid);\n\t\t\tintent2.putExtra(\"maxpower\",maxpower);\n\t\t\tintent2.putExtra(\"mplan\",mplan);\n\t\t\tintent2.putExtra(\"activity\", \"1\");//1表示盆底肌测试\n\t\t\tintent2.putExtra(\"mplancode\",mPlanCode);\n\t\t\tintent2.putExtra(\"userweight\",userWeight);//1表示盆底肌测试\n\t\t\tintent2.putExtra(\"userphone\",userphone);//晶\n\t\t\tstartActivity(intent2);\n\t\t\tbreak;\n\t\tcase R.id.btn_analysis_savereport://保存报告(图片)\n\t\t\t//System.out.println(\"111\");\n\t\t\t//Log.d(\"myDebug\", \"myFirstDebugMg\");\n\t\t\tIntent intent3 = new Intent(RecoverAnalysisActivity.this,\n\t\t\t\t\tRecoverSaveReportActivity.class); \n\t\t\tintent3.putExtra(\"userid\",userid);\n\t\t\tintent3.putExtra(\"userphone\",userphone);\n\t\t\tstartActivity(intent3);\n\t\t\tbreak;\n\t\t//System.out.println(\"222\");\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"public void previousQuestion(View view) {\n if (sequence > 1) {\n saveProgress();\n sequence--;\n if (sequence <=1){\n Button button = (Button) findViewById(R.id.question_button_previous);\n button.setEnabled(false);\n }\n updateView();\n }\n }",
"private void previous() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n\n Timeline.Window currentWindow = currentTimeline.getWindow(currentWindowIndex, new Timeline.Window());\n if (currentWindowIndex > 0 && (player.getCurrentPosition() <= MAX_POSITION_FOR_SEEK_TO_PREVIOUS\n || (currentWindow.isDynamic && !currentWindow.isSeekable))) {\n player.seekTo(currentWindowIndex - 1, C.TIME_UNSET);\n } else {\n player.seekTo(0);\n }\n }",
"private void previous_press() {\n Log.d(TAG, \"previous match pressed\");\n AlertDialog.Builder builder = new AlertDialog.Builder(SuperScouting.this);\n builder.setTitle(\"Save match data?\");\n\n // Save option\n builder.setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n // Collect values from all the custom elements\n List<ScoutFragment> fragmentList = adapter.getAllFragments();\n ScoutMap data = new ScoutMap();\n String error = \"\";\n for (ScoutFragment fragment : fragmentList) {\n error += fragment.writeContentsToMap(data);\n }\n\n if (error.equals(\"\")) {\n Log.d(TAG, \"Saving values\");\n if (!practice) {\n new SaveTask().execute(data);\n }\n\n // Go to the next match\n Intent intent = new Intent(SuperScouting.this, SuperScouting.class);\n if (practice) {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, -1);\n } else {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, matchNumber - 1);\n }\n startActivity(intent);\n } else {\n Toast.makeText(SuperScouting.this, String.format(\"Error: %s\", error), Toast.LENGTH_LONG).show();\n }\n }\n });\n\n // Cancel Option\n builder.setNeutralButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Dialogbox goes away\n }\n });\n\n // Continue w/o Saving Option\n builder.setNegativeButton(\"Continue w/o Saving\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Go to the next match\n Intent intent = new Intent(SuperScouting.this, SuperScouting.class);\n if (practice) {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, -1);\n } else {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, matchNumber - 1);\n }\n startActivity(intent);\n }\n });\n builder.show();\n }",
"public void previousRecord( View v){\n// \tClear out the display first\n \tclearBtn( v );\n \tLog.i(\"in prev record\", \"this sheep ID is \" + String.valueOf(thissheep_id));\n \tcursor.moveToPrevious();\n \tLog.i(\"in prev record\", \"after moving the cursor \");\n \tthissheep_id = cursor.getInt(0);\n \tLog.i(\"in prev record\", \"this sheep ID is \" + String.valueOf(thissheep_id));\n \trecNo -= 1;\n \tfindTagsShowAlert(v, thissheep_id);\n\t\t// I've moved back so enable the next record button\n\t\tButton btn2 = (Button) findViewById( R.id.next_rec_btn );\n\t\tbtn2.setEnabled(true); \t\t\n \tif (recNo == 1) {\n \t\t// at beginning so disable prev record button\n \t\tButton btn3 = (Button) findViewById( R.id.prev_rec_btn );\n \tbtn3.setEnabled(false); \t\t\n \t}\n }",
"@Override\n // Function for once the button gets clicked\n public void onClick(View v) {\n Intent i = new Intent(FindOutMore.this, Tab_Main.class);\n // The activity is started and the variable i is placed into this\n startActivity(i);\n // This is an animation overrider...\n // This means that once the button has been pressed it will perform an animation to take\n // the users back to the new page that they have selected...\n overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);\n }",
"private void navigateQuestion(boolean previous) {\n currentQuestionIndex = previous ? currentQuestionIndex - 1 : currentQuestionIndex + 1;\n if (currentQuestionIndex == 10 || currentQuestionIndex < 0) {\n currentQuestionIndex = 0;\n }\n question = questions[currentQuestionIndex];\n textView.setText(question.getStringResourceId());\n\n Log.d(TAG, \"Displaying question \" + String.valueOf(currentQuestionIndex));\n }",
"private void moveToPreviousCard() {\r\n\t\t// This is simple enough: Move the card set to the previous\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the first card, disable the Previous button and make sure\r\n\t\t// the Next button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FIRST_CARD) {\r\n\t\t\tcardSet.previousCard();\r\n\t btnNext.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FIRST_CARD)\r\n\t\t\t\tbtnPrevious.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }",
"public void returnToPrevious(View v) {\n }",
"private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }",
"public void onClickPreviousNext(int which) {\n switch (which) {\n case 1://previous\n int previous = previousSong();\n playAudio(audioList.get(previous).getData());\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(previous).getData());\n }\n }\n }, DELAY_TIME);*/\n break;\n case 2://next\n int next = nextSong();\n playAudio(audioList.get(next).getData());\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(next).getData());\n }\n }\n }, DELAY_TIME);*/\n break;\n }\n }",
"void clickPreviousStation();",
"public void goBack() {\n goBackBtn();\n }",
"@Override\n public void onClick(View view) {\n switch (view.getId())\n {\n case R.id.activity_slider_btn_skip:\n Intent loginIntent = new Intent(IntroductionActivity.this, MainActivity.class);\n loginIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(loginIntent);\n finish();\n break;\n }\n }",
"private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\n }",
"private void gotoOtherActivity() {\n finish();\n }",
"public void previous();",
"public void onClickBack(View view){\n cam = mMap.getCameraPosition();//saves camara position\r\n Intent intent = new Intent(this,MainWindow.class);//needed to send the user to another screen\r\n startActivity(intent);\r\n }",
"public void backButtonClicked()\r\n {\n manager = sond.getManager();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n else if (manager.canUndo())\r\n {\r\n manager.undo();\r\n }\r\n }",
"public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }",
"private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }",
"private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }",
"public void cancelStudy(Fragment caller) {\n // start intent to go back to MainActivity\n Study.cancel();\n fm.beginTransaction().remove(caller).commit();\n startActivity(new Intent(this, MainActivity.class));\n }",
"private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }",
"private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }",
"public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }",
"private void navigateToPreviousSearchState() {\n Logger.logMessage(TAG, \"Current adapter in nav back is\" + currentAdapter);\n switch (currentAdapter) {\n case \"R\":\n navToPreviousRegions();\n break;\n case \"S\":\n mRecyclerView.setAdapter(regionsAdapter);\n if (currentDisplayingParentId == 0) {\n displayingNowTextView.setText(\"Regions\");\n searchBack.setVisibility(View.GONE);\n } else {\n navToPreviousRegions();\n }\n currentAdapter = \"R\";\n break;\n }\n }",
"@Override\n public void onClick(View v) {\n tabChangeInterface.switchToTheNextTab();\n }",
"public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }",
"@Override\r\n public void onClick(View v) {\n finish();\r\n IntentToStartView();\r\n }",
"public void backToSetup(View view) {\n Intent myIntent = new Intent(CountingActivity.this, SetupActivity.class);\n myIntent.putExtra(\"buttonCount\", buttonCount);\n myIntent.putExtra(\"textArray\", textArray);\n myIntent.putExtra(\"catCounters\", catCounters);\n myIntent.putExtra(\"colourPtrs\", colourPointers);\n myIntent.putExtra(\"layout_name\", layout_name);\n\t\tstartActivityForResult(myIntent, 0);\n\t}",
"@Override\n public void onBackPressed() {\n //intent that references this class\n Intent intent = new Intent(this, MedplanActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View arg0) {\n Intent i = new Intent(mContext, AddCameraThirdActivity.class);\n startActivity(i);\n finish();//@@8.10\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(AktieCubeActivity.this, AktiePagerActivity.class);\n startActivity(intent);\n finish();\n\n }",
"public void switchPreviousTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i - 1 >= 0)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(tabItems.length - 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t sendStopMicroToService(activity);\r\n\t\t\t\t\tStartActivityUtil.backPreActivity(activity);\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.movePrevMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = MeasurementResultActivity.newIntent(getActivity(), null);\n startActivity(intent);\n }",
"private void displayPrevious() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n myMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"myMostRecent\",false));\n myDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"myDisplayAll\",false));\n foMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"foMostRecent\",false));\n foDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"foDisplayAll\",false));\n myReasonEditText.setText(filterSetting.getString(\"myReason\",null));\n foReasonEditText.setText(filterSetting.getString(\"foReason\",null));\n int mySpinner = filterSetting.getInt(\"mySpinner\",0);\n if (mySpinner != 0){\n myEmotionalStateSpinner.setSelection(mySpinner);\n }\n int foSpinner = filterSetting.getInt(\"foSpinner\",0);\n if (foSpinner != 0){\n foEmotionalStateSpinner.setSelection(foSpinner);\n }\n }",
"private void previousBtnActionPerformed(java.awt.event.ActionEvent evt) {\n}",
"@OnClick(R.id.nextButton)\n public void onNext(View view){\n Intent intent = new Intent(getApplicationContext(), SettingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n finish();\n database.close();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tstartActivity(new Intent(\"comp.history.BHA\"));\n\t\t\t}",
"public void goBackToCal(){\n Intent cal = new Intent(this, Calender.class);\n cal.putExtra(\"startDate\", fromDate);\n cal.putExtra(\"updatedEvent\", updating);\n startActivity(cal);\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.back_iv:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase R.id.relativeLayout_project:\r\n\t\t\tintent = new Intent(SnaDetailsActivity.this,ProjectActivity.class);\r\n\t\t\tintent.putExtra(\"project\", project);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase R.id.relativeLayout_activity:\r\n\t\t\tintent = new Intent(SnaDetailsActivity.this,MyActivity.class);\r\n\t\t\tintent.putExtra(\"service\", service);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n//\t\t\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void backMainButton (View v) {\n Intent nextScreen = new Intent(getBaseContext(), MainActivity.class);\n startActivity(nextScreen);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n NavUtils.navigateUpFromSameTask(EditoryActivity.this);\n }",
"void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);",
"public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}",
"private void prevButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }",
"@Override\n public void onClick(View v) {\n StopMediaPlayer();\n Intent intent = new Intent(ResultActivity.this, ArenaActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n transitionTo(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(projectsLoader.getNextInspection()!=null){\n\t\t\t\t\tString recordId = projectsLoader.getNextInspection().getRecordId_id();\n\t\t\t\t\tif(recordId==null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tActivityUtils.startScheduleInspectionActivity(LandingPageActivity.this, projectsLoader.getParentProject(recordId).getProjectId(), recordId, projectsLoader.getNextInspection(), AppConstants.CANCEL_INSPECTION_SOURCE_OTHER);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setClass(MainPage.this, AddPage.class);\n\t\t\tstartActivityForResult(intent,0);\n\t\t\toverridePendingTransition(R.anim.push_up_in, R.anim.push_up_out);\n\t\t}",
"public void goBack(ActionEvent event) {\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/walkin/BasicInfoPrompt.fxml\"));\n\t\t\tParent root = (Parent) loader.load();\n\t\t\t\n\t\t\tGenerateReportController reportVariables = loader.getController();\n\t\t\treportVariables.getReport(newReport2);\n\t\t\t\n\t\t\tStage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n\t\t\tstage.setScene(new Scene(root));\n\t\t\tstage.show();\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void onNextPress() {\n try {\n MainActivity activity = (MainActivity) getActivity();\n// activity.onChangeText(R.string.textSkip,false);\n if (Constants.isSkipButton) {\n mImgViewMicPlay.setImageDrawable(getResources().getDrawable(R.drawable.ic_mic_blue_svg_128),false,getActivity());\n mImgViewMicRecord.setImageDrawable(getResources().getDrawable(R.drawable.ic_speaker_red_svg_128),false,getActivity());\n testController.onServiceResponse(false,\"Mic\", ConstantTestIDs.MIC_ID);\n testController.onServiceResponse(false,\"Speaker\", ConstantTestIDs.SPEAKER_ID);\n utils.showToast(ctx, getResources().getString(R.string.txtManualFail));\n // utils.compare_UpdatePreferenceInt(ctx, JsonTags.MMR_33.name(), AsyncConstant.TEST_FAILED);\n\n // updateResultToServer();\n }\n boolean semi=false;\n nextPress(activity,semi);\n// MainActivity mainActivity = (MainActivity)getActivity();\n//// if (Constants.isDoAllClicked && mainActivity.index != mainActivity.automatedTestListModels.size()) {\n//\n// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(mainActivity.automatedTestListModels.get(mainActivity.index).getTest_id(), mainActivity.automatedTestListModels.get(mainActivity.automatedTestListModels.size() - 1).getTest_id()),null, false);\n// mainActivity.index++;\n//\n// }\n// if (Constants.isDoAllClicked && activity.manualIndex != Manual2SemiAutomaticTestsFragment.testListModelList.size()){\n// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(Manual2SemiAutomaticTestsFragment.testListModelList.get(activity.manualIndex).getTest_id(), Manual2SemiAutomaticTestsFragment.testListModelList.get(Manual2SemiAutomaticTestsFragment.testListModelList.size() - 1).getTest_id()),null, false);\n// activity.manualIndex++;\n//\n// }\n// else {\n//// clearAllStack();\n//// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(-1,mainActivity.automatedTestListModels.get(mainActivity.automatedTestListModels.size()-1).getTest_id()), FragmentTag.GPS_FRAGMENT.name(), true);\n// popFragment(R.id.container);\n// }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_onNextPress()\");\n }\n\n\n }",
"public void goBack(View v)\n {\n Intent i = new Intent (getBaseContext(), staff_modules.class);\n module_statistics.this.startActivity(i);\n }",
"@Override\n public void onBackPressed() {\n replaceUseCase(meetingManager);\n replaceUseCase(traderManager);\n super.onBackPressed();\n }",
"@Nullable\n WizardPage flipToPrevious();",
"@Override\n public void onClick(View view) {\n\n openMain3Activity();\n }",
"@Override\r\n\tpublic void showPrevious(){\r\n\t\tint currentNotification = this.getDisplayedChild();\r\n\t\tif(currentNotification > 0){\r\n\t\t\tsetInAnimation(inFromLeftAnimation());\r\n\t\t\tsetOutAnimation(outToRightAnimation());\r\n\t\t\t//Update the navigation information on the previous view before we switch to it.\r\n\t\t\tfinal View previousView = this.getChildAt(currentNotification - 1);\r\n\t\t\tupdateView(previousView, currentNotification - 1, 0);\r\n\t\t\t//Flip to previous View.\r\n\t\t\tsuper.showPrevious();\r\n\t\t}\r\n\t}",
"public void onClick(View view) {\n Intent nextScreen = new Intent(view.getContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n }",
"public void onCancelClicked(View v) {\n goBackToStart();\n }",
"public void onCancelClicked(View v) {\n goBackToStart();\n }",
"public void onClick(View arg0) {\n goBack();\n }",
"public void back() {\n Views.goBack();\n }",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tif(v==Bn_Pre){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, MainActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}else if(v==Bn_Next){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, Next2Activity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t}",
"public void back_searchResult(View view){\n // Goes back to Login page\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n }",
"@FXML\n void onActGoBack(ActionEvent event) throws IOException {\n sceneManage(\"/View/Reports.fxml\", event);\n }",
"public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }",
"public void goBack(View v)\n {\n startActivity(new Intent(getBaseContext(),SensorsActivity.class));\n }",
"public void nextQuestion(View view) {\n Button button = (Button) findViewById(R.id.question_button_previous);\n if (!button.isEnabled()){\n button.setEnabled(true);\n }\n saveProgress();\n sequence++;\n updateView();\n }",
"public void MovePrevious()\r\n {\r\n\r\n \t try{\r\n \t\t if(!rsTution.previous())rsTution.first();\r\n \t\t Display();\r\n\r\n\r\n \t }catch(SQLException sqle)\r\n \t {System.out.println(\"MovePrevious Error:\"+sqle);}\r\n }",
"public void backToSection(){\n Intent intent = new Intent(getApplication(), QuizSectionActivity.class);\n startActivity(intent);\n }",
"public void onBackPressed() {\n if(about_vf.getDisplayedChild() == 0) {\n AlertDialog.Builder builder = new AlertDialog.Builder(PreCameraAboutActivity.this);\n builder.setMessage(\"All changes on this page will be lost, would you still like to go back to the home page?\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(PreCameraAboutActivity.this, PreCameraActivity.class));\n finish();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n builder.create();\n builder.show();\n }\n else {\n about_vf.setInAnimation(getApplicationContext(), R.anim.slide_in_from_left);\n about_vf.setOutAnimation(getApplicationContext(), R.anim.slide_out_to_right);\n if(about_vf.getDisplayedChild() == 1) {\n direction.setText(\"From\");\n who.setText(\"Homeless individual\");\n }\n else {\n direction.setText(\"To\");\n who.setText(\"Loved one\");\n next.setText(\"Next\");\n }\n about_vf.showPrevious();\n }\n }",
"public void returnToPrev(){\r\n Stage stage = (Stage) exitButton.getScene().getWindow();\r\n stage.close();\r\n }",
"private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }",
"public void PrevTurn(){\n currentTurn = currentTurn.getAnterior();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }",
"@Override\n public void onBackPressed()\n {\n \t//Emulate the progressDialog.setCancelable(false) behavior\n \t//If the first view is being shown\n \tif(viewSwitcher.getDisplayedChild() == 0)\n \t{\n \t\t//Do nothing\n \t\treturn;\n \t}\n \telse\n \t{\n \t\t//Finishes the current Activity\n \t\tsuper.onBackPressed();\n \t}\n }",
"public void onClick(View v) {\n moveTaskToBack(true);\n\n //membuat method tombol keluar dari aplikasi\n\n }",
"public void playPreviousTrack(View view) {\n mPlayingIndex = mPlayingIndex - 1;\n mSeekTo = 0;\n startTrack();\n }",
"public void forwardOnClick(View view){\n while(Integer.parseInt(mazeController.getPercentDone()) < 99) {\n\n }\n Intent newIntent = new Intent(this, Play.class);\n startActivity(newIntent);\n }",
"public void onDiscardClick(){\n if (mHomeChecked){ // at Home Checkmark\n NavUtils.navigateUpFromSameTask(EditSymptomActivity.this);\n }\n if (!mHomeChecked) { // at BackPressed\n finish();\n }\n }",
"public void onBack(View view){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"Back\");\n saveTemplate(filename);\n Intent intent = new Intent(this, FileManager.class);\n startActivity(intent);\n }",
"private void buttonNext (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }",
"private void onBack(McPlayerInterface player, GuiSessionInterface session, ClickGuiInterface gui)\r\n {\r\n session.setNewPage(this.prevPage);\r\n }",
"public void backButtonClicked(ActionEvent actionEvent) {\n Stage current = (Stage) locationName.getScene().getWindow();\n\n current.setScene(getPreviousScreen());\n }",
"public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnext.startAnimation(animAlpha);\r\n\t\t\t\tIntent i = new Intent(Train.this, Truck.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\toverridePendingTransition(R.anim.right_in,R.anim.left_out);\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"private void initPlus() {\n thirdLayout = (LinearLayout) findViewById(R.id.third_layout);\n thirdLayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent i = new Intent(MainActivity.this, CameraActivity.class);\n startActivity(i);\n }\n });\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i){\n NavUtils.navigateUpFromSameTask(DetailsActivity.this);\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\t Intent reset=new Intent(getActivity(),Listspace.class);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t \t\t\t\t\t\n\t\t\t\t\t\t\t\t\t startActivity(reset);\n\t\t\t\t\t\t\t\t\t getActivity().finish();\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}",
"public void backToMain(View view) {\n startActivity(new Intent(getApplicationContext(), GameChoiceActivity.class));\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}",
"public void onPreviousOrNextDayClicked(View view) {\n int oneOrMinusOne = 0;\n\n switch (view.getId()) {\n case R.id.previousDay:\n oneOrMinusOne = -1;\n break;\n\n case R.id.nextDay:\n oneOrMinusOne = 1;\n break;\n }\n\n switch (buttonIdChecked) {\n case R.id.dayBtn:\n calendar.add(Calendar.DAY_OF_MONTH, oneOrMinusOne);\n break;\n\n case R.id.weekBtn:\n calendar.add(Calendar.WEEK_OF_YEAR, oneOrMinusOne);\n break;\n\n case R.id.monthBtn:\n calendar.add(Calendar.MONTH, oneOrMinusOne);\n break;\n }\n\n updateView();\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(ActivityIndex.this, ActivityTrialMessage.class);\n intent.putExtra(\"fromIndex\", true);\n startActivity(intent);\n }",
"@Override\n\tpublic void onBackPressed()\n\t{\n\t\tIntent intent = new Intent(AlbumActivity.this, MainActivity.class);\n\t\tstartActivity(intent);\n\t}"
] | [
"0.6853254",
"0.6688718",
"0.6661802",
"0.6574381",
"0.65567386",
"0.6466046",
"0.64226234",
"0.62786764",
"0.62412226",
"0.61839503",
"0.6153114",
"0.6107562",
"0.61049986",
"0.60911494",
"0.6084442",
"0.60815704",
"0.60787064",
"0.6068754",
"0.6035624",
"0.60184795",
"0.60183203",
"0.60127467",
"0.6001862",
"0.59996337",
"0.5990881",
"0.5933354",
"0.5927164",
"0.5924568",
"0.59047794",
"0.5900151",
"0.5898402",
"0.58781207",
"0.58771056",
"0.58760375",
"0.58705646",
"0.5865312",
"0.5849385",
"0.5812086",
"0.5803597",
"0.580096",
"0.5799512",
"0.57968485",
"0.5792331",
"0.5773846",
"0.5765605",
"0.5755745",
"0.5742698",
"0.573333",
"0.57332295",
"0.57287633",
"0.5727102",
"0.5721858",
"0.5715624",
"0.57119477",
"0.5709028",
"0.570514",
"0.5705082",
"0.5700974",
"0.5699137",
"0.5697722",
"0.5694411",
"0.569",
"0.56878597",
"0.5684652",
"0.5684051",
"0.56831664",
"0.56831664",
"0.568092",
"0.5675574",
"0.56736803",
"0.5671017",
"0.5670615",
"0.56609386",
"0.5660692",
"0.56572735",
"0.5657185",
"0.5655301",
"0.5649543",
"0.56478554",
"0.56447816",
"0.56420547",
"0.5635862",
"0.5618461",
"0.5618351",
"0.56182593",
"0.5616574",
"0.5613875",
"0.5606467",
"0.5601826",
"0.55984443",
"0.5593359",
"0.55924",
"0.559195",
"0.55901253",
"0.5588852",
"0.5584934",
"0.5580315",
"0.5568776",
"0.5566956",
"0.55607784"
] | 0.84050804 | 0 |
when btn_new_photo clicked move to NewPhoto activity | public void btn_new_photo_On_click(View v) {
Intent i = new Intent(MainActivity.this, NewPhoto.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@OnClick(R.id.add_photo_layout)\n public void onClickAddPhoto() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, getString(R.string.choose_image_from)), 8);\n }",
"@Override\n public void onClick(View arg0) {\n Intent i = new Intent(mContext, AddCameraThirdActivity.class);\n startActivity(i);\n finish();//@@8.10\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\n\t\t\tcase R.id.display_new_back:// 返回\n\t\t\t\tdisplayList.setIsSubmit(0);\n\t\t\t\tsaveData();//按返回键前对数据保存\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase R.id.display_new_photo1:// 照片1\n//\t\t\t\tT.showShort(DisplayNewAdd.this, \"拍照1\");\n\t\t\t\tif (Display_Img_List.size() >= 1) {\n\t\t\t\t\tIntent intent1 = new Intent(DisplayNewAdd.this,VisitPhotoManage.class);\n\t\t\t\t\tintent1.putExtra(\"index\", 2);\n\t\t\t\t\tintent1.putExtra(\"imgselect\", 0);\n\t\t\t\t\tstartActivityForResult(intent1, 1);\n\t\t\t\t}else {\n\t\t\t\t\t\n\t\t\t\t\tFileName = getSystemTime() + \".jpg\";\n\t\t\t\t\tphotoPath = Constant.SAVE_IMG_PATH + File.separator\n\t\t\t\t\t\t\t+ FileName;\n\t\t\t\t\tCallSystemApp.callCamera(DisplayNewAdd.this, photoPath);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\tcase R.id.display_new_photo2:// 照片2\n\t\t\t\t\n\t\t\t\tif (Display_Img_List.size() >= 2) {\n\t\t\t\t\tIntent intent1 = new Intent(DisplayNewAdd.this,VisitPhotoManage.class);\n\t\t\t\t\tintent1.putExtra(\"index\", 2);\n\t\t\t\t\tintent1.putExtra(\"imgselect\", 1);\n\t\t\t\t\tstartActivityForResult(intent1, 1);\n\t\t\t\t}else {\n\t\t\t\t\t\n\t\t\t\t\tFileName = getSystemTime() + \".jpg\";\n\t\t\t\t\tphotoPath = Constant.SAVE_IMG_PATH + File.separator\n\t\t\t\t\t\t\t+ FileName;\n\t\t\t\t\tCallSystemApp.callCamera(DisplayNewAdd.this, photoPath);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\tcase R.id.display_new_photo3:// 照片3\n\t\t\t\t\n\t\t\t\tif (Display_Img_List.size() >= 3) {\n\t\t\t\t\tIntent intent1 = new Intent(DisplayNewAdd.this,VisitPhotoManage.class);\n\t\t\t\t\tintent1.putExtra(\"index\", 2);\n\t\t\t\t\tintent1.putExtra(\"imgselect\", 2);\n\t\t\t\t\tstartActivityForResult(intent1, 1);\n\t\t\t\t}else {\n\t\t\t\t\t\n\t\t\t\t\tFileName = getSystemTime() + \".jpg\";\n\t\t\t\t\tphotoPath = Constant.SAVE_IMG_PATH + File.separator\n\t\t\t\t\t\t\t+ FileName;\n\t\t\t\t\tCallSystemApp.callCamera(DisplayNewAdd.this, photoPath);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\tcase R.id.display_client_layout://选择客户\n\t\t\t\tIntent intent = new Intent(DisplayNewAdd.this, CustomersListActivity.class);\n\t\t\t\t//选择个客户/人员界面,客户传值“0”,人员传值“1”(注意传String类型)\n\t\t\t\tintent.putExtra(\"mode\", \"0\");\n\t\t\t\t//多选传0,单选传1\n\t\t\t\tintent.putExtra(\"select\", 1);\n\t\t\t\t//传递分组名称\n\t\t\t\tintent.putExtra(\"groupName\", \"分类\");\n\t\t\t\tintent.putExtra(\"Tittle\", \"选择客户\");\n\t\t\t\tstartActivityForResult(intent, 4);\n\t\t\t\tbreak;\n\t\t\tcase R.id.txt_display_submit://提交按钮\n\t\t\t\t\n\t\t\t\t //获取登录人id\n\t\t\t int Manager_ID = Integer.parseInt(preferences.getString(Constant.HUISHANGYUN_UID,\"0\"));\n\t\t\t \n\t\t\t if (arrayList.size()>0) {\n\t\t\t \tMember_ID = arrayList.get(0).getID();//客户编号\n\t\t\t\t}\n\t\t\t String Note = edit_display_content.getText().toString();//描述\n\t\t\t //图片地址拼接\n\t\t\t\t StringBuffer mangerid = new StringBuffer(\"\");\n\t\t\t\t\tfor (int i = 0; i < Display_pList.size(); i++) {\n\t\t\t\t\t\tif (i>0) {\n\t\t\t\t\t\t\tmangerid.append(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmangerid.append(Display_pList.get(i)+\"\");\n\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\tString Picture = mangerid.toString(); \n\t\t\t\t\n\t\t\t\tif (isWrite()) {\n\t\t\t\t\t//提交数据\n\t\t\t\t\tgetNetData(Member_ID, Note, Lng, Lat, location, Picture, Manager_ID);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"@Override\r\n public void onClick(View view) {\n Intent intent=new Intent(MainActivity.this, CameraActivity.class);\r\n startActivity(intent);\r\n }",
"@Override\n public void onClick(View v) {\n Intent i = PhotoPageActivity\n .newIntent(getActivity(), mItem.getPhotoPageUri());\n startActivity(i);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_new_bphotos, container, false);\n\n /* next=(Button)findViewById(R.id.next);\n next.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(NewBPhotosActivity.this,NewBLocActivity.class));\n }\n });*/\n\n\n featuredPhoto1 = (ImageView) view.findViewById(R.id.other_pic_1);\n featuredPhoto2 = (ImageView) view.findViewById(R.id.other_pic_2);\n featuredPhoto3 = (ImageView) view.findViewById(R.id.other_pic_3);\n featuredPhoto4 = (ImageView) view.findViewById(R.id.other_pic_4);\n featuredPhoto5 = (ImageView) view.findViewById(R.id.other_pic_5);\n\n featuredPhotoScheme1 = (LinearLayout) view.findViewById(R.id.other_pic_1_scheme);\n featuredPhotoScheme2 = (LinearLayout) view.findViewById(R.id.other_pic_2_scheme);\n featuredPhotoScheme3 = (LinearLayout) view.findViewById(R.id.other_pic_3_scheme);\n featuredPhotoScheme4 = (LinearLayout) view.findViewById(R.id.other_pic_4_scheme);\n featuredPhotoScheme5= (LinearLayout) view.findViewById(R.id.other_pic_5_scheme);\n\n\n addFeaturedPhoto1 = (ImageButton) view.findViewById(R.id.add_other_pic_1);\n addFeaturedPhoto1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE1_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto2 = (ImageButton) view.findViewById(R.id.add_other_pic_2);\n addFeaturedPhoto2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE2_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto3 = (ImageButton) view.findViewById(R.id.add_other_pic_3);\n addFeaturedPhoto3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE3_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto4 = (ImageButton) view.findViewById(R.id.add_other_pic_4);\n addFeaturedPhoto4.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE4_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto5 = (ImageButton) view.findViewById(R.id.add_other_pic_5);\n addFeaturedPhoto5.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE5_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n\n editFeaturedPhoto1 = (LinearLayout) view.findViewById(R.id.edit_pic1);\n editFeaturedPhoto1.setVisibility(View.INVISIBLE);\n editFeaturedPhoto1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE1_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto2 = (LinearLayout) view.findViewById(R.id.edit_pic2);\n editFeaturedPhoto2.setVisibility(View.INVISIBLE);\n editFeaturedPhoto2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE2_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto3 = (LinearLayout) view.findViewById(R.id.edit_pic3);\n editFeaturedPhoto3.setVisibility(View.INVISIBLE);\n editFeaturedPhoto3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE3_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto4 = (LinearLayout) view.findViewById(R.id.edit_pic4);\n editFeaturedPhoto4.setVisibility(View.INVISIBLE);\n editFeaturedPhoto4.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE4_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto5 = (LinearLayout) view.findViewById(R.id.edit_pic5);\n editFeaturedPhoto5.setVisibility(View.INVISIBLE);\n editFeaturedPhoto5.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE5_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n\n return view;\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(CJ_BXBQ_XCKP_edit.this, SelectPicActivity.class);\n startActivityForResult(intent, TO_SELECT_PHOTO);\n }",
"@Override\n\t\t\tpublic void onClick(View v){\n\t\t\t\tIntent i = new Intent(CapturePhotoActivity.this, RemoteImageGalleryActivity.class);\n\t\t\t\t//i.putExtra(\"Photo file name\", fileStringUri);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n //here we are setting the type of intent which\n //we will pass to the another screen\n intent.setType(\"image/*\");//For specific type add image/jpeg\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, 50);\n }",
"@SuppressLint(\"RestrictedApi\")\n private void setUpAddPhoto() {\n mAddPhotoView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n MenuBuilder menuBuilder = new MenuBuilder(EditStudentInfo.this);\n new MenuInflater(EditStudentInfo.this).inflate(R.menu.menu_photo, menuBuilder);\n MenuPopupHelper menuPopupHelper = new MenuPopupHelper(EditStudentInfo.this,\n menuBuilder, mAddPhotoView);\n menuPopupHelper.setForceShowIcon(true);\n menuBuilder.setCallback(new MenuBuilder.Callback() {\n // Create a menu for the user to choose between taking a new photo and\n // choosing a photo from their photo gallery\n @Override\n public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) {\n switch (item.getItemId()) {\n case R.id.photo_gallery_action:\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, PICK_PHOTO_GALLERY);\n break;\n case R.id.camera_action:\n launchCamera();\n break;\n default:\n throw new IllegalArgumentException(\"Invalid menu item selected\");\n }\n return true;\n }\n @Override\n public void onMenuModeChange(MenuBuilder menu) {\n\n }\n });\n menuPopupHelper.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, TAKE_PICTURE);\n dialog.dismiss();\n }",
"public void onPressAddPhoto(View view) {\r\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\r\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\r\n File imageFile = FileUtil.createUniqueJPGFile(this);\r\n\r\n lastPhotoUri = FileProvider.getUriForFile(\r\n this,\r\n \"com.example.a31taochvisakort.fileprovider\",\r\n imageFile\r\n );\r\n\r\n takePictureIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\r\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, lastPhotoUri);\r\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\r\n }\r\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, SELECT_PHOTO);\n }",
"public void OnPhotos (View View)\n {\n \tIntent intent = new Intent(this, EditPhotos.class);\n \tintent.putExtra(EXTRA_URI, uri);\n \t\tstartActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(getActivity(), CameraActivity.class));\n }",
"public void onCameraPressed(View view) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\r\n\r\n // create a file handle for the phoot that will be taken\r\n this.photoFile = getFileForPhoto(this.filename);\r\n Uri fileProvider = FileProvider.getUriForFile(PersonDetailsActivity.this, \"com.example.labtest1\", this.photoFile);\r\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\r\n\r\n // Try to open the camera app\r\n if (intent.resolveActivity(getPackageManager()) != null) {\r\n startActivityForResult(intent, TAKE_PHOTO_ACTIVITY_REQUEST_CODE);\r\n }\r\n }",
"@Override\n public void onPositive(MaterialDialog materialDialog) {\n Intent intent = new Intent(ProductDetailImageActivity.this, CameraActivity.class);\n intent.putExtra(EXTRA_ZUOZHENG_IMAGE, isZuozhengImage);\n intent.putExtra(EXTRA_IMAGE_INDEX, index);\n startActivityForResult(intent, REQUEST_TAKE_PICTURE);\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent();\n photoPickerIntent.setType(\"image/*\");\n photoPickerIntent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(photoPickerIntent, GALLERY_REQUEST);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"public void btnImgAddClick(View view) {\n\t\tIntent photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);\n\t\tphotoPickerIntent.setType(\"image/*\");\n\t\tstartActivityForResult(photoPickerIntent, 1);\n\t}",
"@Override\n public void onClick(View v) {\n String newName = etname.getText().toString();\n String newAge = etage.getText().toString();\n String newPicture = etpicture.getText().toString();\n\n // put the strings into a message for MainActivity\n\n //start MainActivity again\n\n\n Intent i = new Intent(v.getContext(), MainActivity.class);\n\n i.putExtra(\"modifier\", positionToEdit);\n i.putExtra(\"nom\", newName);\n i.putExtra(\"age\", newAge);\n i.putExtra(\"photo\", newPicture);\n startActivity(i);\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tif (v.getId() == R.id.capture_btn) {\r\n\t\t\ttry {\r\n\t\t\t //use standard intent to capture an image\r\n\t\t\t Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\r\n\t\t\t //we will handle the returned data in onActivityResult\r\n\t\t\t startActivityForResult(captureIntent, CAMERA_CAPTURE);\r\n\t\t\t}catch(ActivityNotFoundException anfe){\r\n\t\t\t //display an error message\r\n\t\t\t String errorMessage = \"Whoops - your device doesn't support capturing images!\";\r\n\t\t\t Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n\t\t\t toast.show();\r\n\t\t\t}\r\n\t }\r\n\t\tif(v.getId() == R.id.setpic){\r\n\t\t\tIntent i = new Intent(ImageTag.this,Login.class);\r\n\t\t\t startActivity(i);\r\nfinish();\r\n\t\t\t\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onClick(int whichButton) {\n\t\tif (whichButton == 1) {\r\n\t\t\tIntent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\r\n\t\t\tstartActivityForResult(intent, CAMERA_REQUEST_CODE);\r\n\t\t} else if (whichButton == 2) {\r\n\t\t\tIntent intent = new Intent(Intent.ACTION_GET_CONTENT);\r\n\t\t\tintent.setType(\"image/*\");\r\n\t\t\tstartActivityForResult(intent, GALLERY_REQUEST_CODE);\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (new FileUtil().getFilesList() != null) {\n\t\t\t\t\tPictureToBye.deletePhotos();// 清空Pad上的图片\n\t\t\t\t}\n\t\t\t\tIntent intentCamera = new Intent(\n\t\t\t\t\t\tMediaStore.ACTION_IMAGE_CAPTURE);\n\n\t\t\t\tUri uri = null;\n\t\t\t\ttry {\n\t\t\t\t\turi = Uri.fromFile(new FileUtil().createFileInSDCard(\n\t\t\t\t\t\t\tDateUtils.toString(new Date(), \"yyyyMMddHHmmss\")\n\t\t\t\t\t\t\t\t\t+ \"test.jpg\", \"/\"));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// intentCamera.putExtra(name, value);\n\t\t\t\tintentCamera.putExtra(MediaStore.EXTRA_OUTPUT, uri);\n\t\t\t\tstartActivity(intentCamera);\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tIntent intent = null;\n\t\t\t\t\t\t// 删除上一次截图的临时文件\n\t\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\t\tSharedPreferences sharedPreferences = getSharedPreferences(\n\t\t\t\t\t\t\t\t\"temp\", Context.MODE_WORLD_WRITEABLE);\n\t\t\t\t\t\tImageTools.deletePhotoAtPathAndName(Environment\n\t\t\t\t\t\t\t\t.getExternalStorageDirectory()\n\t\t\t\t\t\t\t\t.getAbsolutePath(), sharedPreferences\n\t\t\t\t\t\t\t\t.getString(\"tempName\", \"\"));\n\n\t\t\t\t\t\t// 保存本次截图临时文件名字\n\t\t\t\t\t\tString fileName = String.valueOf(System\n\t\t\t\t\t\t\t\t.currentTimeMillis()) + \".jpg\";\n\t\t\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\t\t\teditor.putString(\"tempName\", fileName);\n\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\tif (ImageTools.checkSDCardAvailable()) {\n\t\t\t\t\t\t\ttempFile = new File(Environment\n\t\t\t\t\t\t\t\t\t.getExternalStorageDirectory(), fileName);\n\t\t\t\t\t\t\tphotoUri = Uri.fromFile(tempFile);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tshowToastMsg(getString(R.string.user_photo_no_sdcard));\n\t\t\t\t\t\t\tmAvatarDialog.dismiss();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (view.getId()) {\n\t\t\t\t\t\tcase R.id.btnCamera:\n\t\t\t\t\t\t\tintent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);// action\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// is\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// capture\n\t\t\t\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);\n\t\t\t\t\t\t\tstartActivityForResult(intent, TAKE_BIG_PICTURE);\n\t\t\t\t\t\t\tmAvatarDialog.dismiss();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.btnPhoto:\n\t\t\t\t\t\t\tintent = new Intent(Intent.ACTION_GET_CONTENT, null);\n\t\t\t\t\t\t\tintent.setType(\"image/*\");\n\t\t\t\t\t\t\tintent.putExtra(\"crop\", \"true\");\n\t\t\t\t\t\t\tintent.putExtra(\"aspectX\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"aspectY\", 1);\n\t\t\t\t\t\t\t// intent.putExtra(\"outputX\", 300);\n\t\t\t\t\t\t\t// intent.putExtra(\"outputY\", 300);\n\t\t\t\t\t\t\tintent.putExtra(\"scale\", true);\n\t\t\t\t\t\t\tintent.putExtra(\"return-data\", false);\n\t\t\t\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);\n\t\t\t\t\t\t\tintent.putExtra(\"outputFormat\",\n\t\t\t\t\t\t\t\t\tBitmap.CompressFormat.JPEG.toString());\n\t\t\t\t\t\t\tintent.putExtra(\"noFaceDetection\", false); // no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// face\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// detection\n\t\t\t\t\t\t\tstartActivityForResult(intent, CHOOSE_BIG_PICTURE);\n\t\t\t\t\t\t\tmAvatarDialog.dismiss();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onClick(View view) {\n Dialog cameraOrGallery = Utils.getBasicDialog(PrescriptionActivity.this, R.layout.dialog_camera_or_gallery);\n cameraOrGallery.getWindow().setLayout(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n cameraOrGallery.getWindow().setBackgroundDrawable(ContextCompat.getDrawable(PrescriptionActivity.this, R.drawable.rounded_corners));\n cameraOrGallery.getWindow().setGravity(Gravity.CENTER);\n cameraOrGallery.show();\n\n cameraOrGallery.findViewById(R.id.prescription_use_camera).setOnClickListener(view1 -> {\n // ask for permission\n letUserUseTheCamera();\n // getCameraAccessPermission();\n cameraOrGallery.dismiss();\n\n //upload the image\n //return to activity\n });\n cameraOrGallery.findViewById(R.id.prescription_use_gallery).setOnClickListener(view1 -> {\n letUserChooseImage();\n cameraOrGallery.dismiss();\n });\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetTitle(R.string.naevus_analysis);\r\n\t\tsetContent(R.layout.lens_entry_menu);\r\n\t\tbtnNew = (Button) findViewById(R.id.new_photo);\r\n\t\tbtnOld = (Button) findViewById(R.id.old_photo);\r\n\t\tbtnHelp = (Button) findViewById(R.id.help);\r\n//\t\tbtnHelp.setVisibility(View.GONE);\r\n\t\tbtnNew.setText(R.string.new_naevus_photo);\r\n\t\tbtnOld.setText(R.string.old_naevus_photo);\r\n\t\tbtnNew.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent intent = new Intent(NaevusEntryActivity.this,\r\n\t\t\t\t\t\tLensBaseActivity.class);\r\n\t\t\t\tint index = LensConstant.INDEX_NAEVUS;\r\n\t\t\t\tintent.putExtra(\"index\", index);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnOld.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent intent = new Intent(NaevusEntryActivity.this,\r\n\t\t\t\t\t\tLensPhotoList.class);\r\n\t\t\t\tint index = LensConstant.INDEX_NAEVUS;\r\n\t\t\t\tintent.putExtra(\"index\", index);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnHelp.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void clickStart(View view) {\n // open camera, get image and send to intent\n Intent intent = new Intent(this, PhotoDraw.class);\n String message = \"START\";\n intent.putExtra(msg, message);\n startActivity(intent);\n }",
"@Override\r\n public void onClick(View v) {\n Intent pictureIntent = new Intent(\r\n android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\r\n startActivityForResult(pictureIntent, TAKE_AVATAR_CAMERA_REQUEST);\r\n UtilSettings.this\r\n .removeDialog(AVATAR_DIALOG_ID);\r\n\r\n\r\n }",
"@Override\n public void onClick(View v) {\n handlePhoto();\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(\n HomeScreen.this, AddPoi.class));\n\n }",
"public void mudaFoto(View view){\n Intent tirarFoto = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(tirarFoto, TIRAR_FOTO);\n }",
"@Override\n public void onPhotoTap(View view, float x, float y) {\n finish();\n overridePendingTransition(0, 0);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(\n\t\t\t\t\t\tIntent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t\t\tif(isAdded())\n\t\t\t\t\tstartActivityForResult(i, RESULT_LOAD_POST_IMAGE);\n\t\t\t\telse{\n\t\t\t\t\tstatusAlert.dismiss();\n\t\t\t\t\tToast.makeText(getActivity(), \"Something went wrong.Try sharing your updates again.\", 1000).show();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Bundle extras = new Bundle();\n extras.putInt(\"PICK_FROM_FILE\", mPICK_FROM_FILE);\n extras.putParcelable(\"ImageCaptureUri\", mImageCaptureUri);\n\n Intent i = new Intent(DisplayImageActivity.this, EffectsActivity.class);\n i.putExtras(extras);\n startActivity(i);\n }",
"public void onClick(View v, Photo photo);",
"@SuppressLint(\"ShowToast\")\n @Override\n public void onClick(View v) {\n if (v.getId() == R.id.uploaded_img || v.getId() == R.id.img_upload_button) {\n // This opens the gallery and gets the selected image for our app\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(galleryIntent, RESULT_LOAD_IMAGE);\n }\n if (v.getId() == R.id.confirm_upload_button) {\n if (selectedImageUri != null) {\n UploadToFirebase();\n }\n else {\n Toast toast = Toast.makeText(getApplicationContext(), \"No photo selected\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n if (v.getId() == R.id.close_button) {\n openHomeActivity();\n }\n }",
"public void onClick(DialogInterface dialog, int i) {\n\n Intent intent = new Intent(MainActivity.this, PictureActivity.class);\n intent.putExtra(\"num\",i);\n MainActivity.this.startActivity(intent);\n }",
"public void onClick(View v) {\n if (photoGallery.size() != 0) {\n switch (v.getId()) {\n case R.id.btnUpload:\n task.execute(new String[] { \"http://localhost:9091/PhotoServer/sends\" });\n case R.id.btnCaption:\n File source = new File(currentPhotoPath);\n String[] split_str2 = currentPhotoPath.split(\"_\");\n String fin = split_str2[0] + \"_\" + split_str2[1] + \"_\" + split_str2[2] + \"_\" + caption.getText() + \"_\" + split_str2[4] + \"_\" + split_str2[5] + \"_\" + split_str2[6];\n File destination = new File(fin);\n source.renameTo(destination);\n photoGallery = photoGallery = populateGallery(minDate, maxDate, \"\", min_long, max_long, min_lat, max_lat);\n\n break;\n case R.id.btnLeft:\n --currentPhotoIndex;\n break;\n case R.id.btnRight:\n ++currentPhotoIndex;\n break;\n default:\n break;\n }\n if (currentPhotoIndex < 0)\n currentPhotoIndex = 0;\n if (currentPhotoIndex >= photoGallery.size())\n currentPhotoIndex = photoGallery.size() - 1;\n if (photoGallery.size() != 0) {\n currentPhotoPath = photoGallery.get(currentPhotoIndex);\n String[] split_str = currentPhotoPath.split(\"_\");\n timestamp.setText(split_str[1]);\n caption.setText(split_str[3]);\n lat_text.setText(split_str[4]);\n long_text.setText(split_str[5]);\n caption.invalidate();\n timestamp.invalidate();\n }\n Log.d(\"phpotoleft, size\", Integer.toString(photoGallery.size()));\n Log.d(\"photoleft, index\", Integer.toString(currentPhotoIndex));\n displayPhoto(currentPhotoPath);\n\n }\n }",
"@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tNoteEditView.this.addPicture();\n \t\t\t}",
"@Override\n\tpublic void onClick(View v) {\n\t\tIntent intent = new Intent(CreateSalonActivity.this,SelectPicPopupWindow.class);\n\t\tswitch (v.getId()) {\n\t\tcase R.id.img_add0:\n\t\t\tstartActivityForResult(intent, 0);\n\t\t\tbreak;\n\t\tcase R.id.img_add1:\n\t\t\tstartActivityForResult(intent, 1);\n\t\t\tbreak;\n\t\tcase R.id.img_add2:\n\t\t\tstartActivityForResult(intent, 2);\n\t\t\tbreak;\n\t\tcase R.id.img_add3:\n\t\t\tstartActivityForResult(intent, 3);\n\t\t\tbreak;\n\t\tcase R.id.img_add4:\n\t\t\tstartActivityForResult(intent, 4);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n public void onItemClick(Photo photo) {\n Intent intent = new Intent(activity, FullScreenPhotoActivity.class);\n intent.putExtra(\"photoUrls\", urls);\n activity.startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n if (current_photo < petPhotoUrlList.size()-1) {\n current_photo++;\n imageView.setImageBitmap(photoList[current_photo]);\n }\n else{\n current_photo=0;\n imageView.setImageBitmap(photoList[current_photo]);\n }\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_add_photo_description);\n\t\tphoto = (PhotoBean) getIntent().getParcelableExtra(\"photo\");\n\t\tif(null == photo) {\n\t\t\tfinish();\n\t\t\treturn;\n\t\t}\n\n\t\tcanelTextView = (TextView) findViewById(R.id.cancel_tv);\n\t\tcanelTextView.setOnClickListener(this);\n\t\tokTextView = (TextView) findViewById(R.id.ok_tv);\n\t\tokTextView.setOnClickListener(this);\n\t\tsetResult(RESULT_CANCELED);\n\t\tphotoDescriptionEditText = (EditText) findViewById(R.id.photo_description_et);\n\t\tphotoDescriptionEditText.setText(photo.description);\n\t\tphotoImageView = (ImageView) findViewById(R.id.photo_iv);\n\t\tcom.nostra13.universalimageloader.core.ImageLoader.getInstance().displayImage(\"file://\"+photo.path,photoImageView, ImageLoaderOptionsSetting.getConstantImageLoaderDefaultOptions());\n\t}",
"@Override\n public void onClick(View view) {\n\n photoStorage.addImage(currentLabel, currentVisibleImagePath);\n addImage.setEnabled(false);\n }",
"private void onPhotoPickerItemSelected(int button) {\n switch (button) {\n case CAMERA_OPTION:\n // camera\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Construct temporary image path and name to save the taken\n // photo\n try {\n mPhotoFile = createImageFile();\n } catch (IOException ex) {\n // Error occurred while creating the File\n ex.printStackTrace();\n }\n if (mPhotoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n }\n startActivityForResult(intent, REQUEST_CODE_CAMERA_PERMISSION);\n break;\n case GALLERY_OPTION:\n //gallery:\n try {\n mPhotoFile = createImageFile();\n } catch (IOException ex) {\n // Error occurred while creating the File\n ex.printStackTrace();\n }\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n photoPickerIntent.setType(\"image/*\");\n startActivityForResult(photoPickerIntent, REQUEST_CODE_GALLERY);\n }\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE);\n }",
"@Override\n public void onClick(View view) {\n Intent takeFoto = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if(takeFoto.resolveActivity(getPackageManager()) != null){\n File photoFile = null;\n try{\n photoFile = createImageFile();\n } catch (IOException ex) {\n Log.d(\"FALLO\",\"TOMAR FOTO\");\n }\n if(photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(getApplicationContext(), \"com.B3B.farmbros.android.fileprovider\", photoFile);\n takeFoto.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(takeFoto, REQUEST_IMAGE_SAVE);\n }\n }\n }",
"private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); \n\t\t startActivityForResult(cameraIntent, CAMERA_REQUEST); \n\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_camera)\n .setTitle(\"Take Picture\")\n .setMessage(\"Is this the location where you would like to take a picture?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n takePicture();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }",
"public void buttonNew(View view) {\n Intent intent = new Intent(this, ProductNewActivity.class);\n startActivity(intent);\n }",
"public void OnSetAvatarButton(View view){\n Intent intent = new Intent(getApplicationContext(),ProfileActivity.class);\n startActivityForResult(intent,0);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n ((MainActivity) getActivity()).startActivityForResult(\n Intent.createChooser(intent, \"Select Picture\"),\n MainActivity.GALLERY_CODE);\n\n }",
"@Override\n public void onClick(View v) {\n\n ((CreateDocketActivityPart2) activity).openGalleryForPickingImage(position);\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(context, Detail.class);\n i.putExtra(\"id\", id);\n i.putExtra(\"firstname\", firstname);\n i.putExtra(\"lastname\", lastname);\n i.putExtra(\"email\", email);\n i.putExtra(\"image\", image);\n context.startActivity(i);\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainInterface.this, Picture.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n\n case R.id.iv_ivfront:\n Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(i, 1);\n\n }\n }",
"public void onClick(DialogInterface dialog, int id) {\n takePhoto();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tFile fileCache = ImageOptions.getCache(AddPsXqyzActivity.this);\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);\r\n\t\t\t\t// intent.addCategory(Intent.CATEGORY_DEFAULT);\r\n\t\t\t\tcurrentfile = new File(fileCache.getPath() + \"/\"\r\n\t\t\t\t\t\t+ UUID.randomUUID().toString() + \".jpg\");\r\n\t\t\t\tif (currentfile.exists()) {\r\n\t\t\t\t\tcurrentfile.delete();\r\n\t\t\t\t}\r\n\t\t\t\tUri uri = Uri.fromFile(currentfile);\r\n\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, uri);\r\n\t\t\t\tstartActivityForResult(intent, 3);\r\n\t\t\t\tmPopupWindow.dismiss();\r\n\t\t\t}",
"private void askTakePhoto() {\n Activity activity = getActivity();\n if (activity != null && CameraUtil.hasCameraAny(activity)) {\n new NewProductDialogFragment().show(getChildFragmentManager(), \"NewProductDialogFragment\");\n }\n }",
"@Override\n public void onClick(View arg0)\n {\n\n ExtendedNewController extendedNewController = new ExtendedNewController();\n startNewControllerActivity(extendedNewController, 0, 0);\n }",
"public void changePhoto(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"public void onClick(View v) {\n Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(i, cameraData);\n }",
"private void onClickPhotoThumbnail(View view) {\r\n int photoId = (int) view.getTag(R.integer.tag_event_photo);\r\n EventPhoto photo = DatabaseManager.getInstance().getDatabase().eventPhotoDao().findById(photoId);\r\n\r\n if (!isEditingPhotos) {\r\n Intent intent = new Intent(this, ViewPhotoActivity.class);\r\n intent.putExtra(ViewPhotoActivity.EXTRA_PHOTO, photo.uri);\r\n startActivity(intent);\r\n return;\r\n }\r\n\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_photo))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_PHOTO)\r\n .show(getSupportFragmentManager(), null);\r\n\r\n lastPressedPhoto = view;\r\n }",
"@Override\n public void onClick(View v) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n //Where do we want to find the data\n File pictureDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n //Get the name of the directory\n String pictureDirectoryPath = pictureDirectory.getPath();\n //Get a URI representation of the Path because this is what android needs to deal with\n Uri data = Uri.parse(pictureDirectoryPath);\n //Set the data (where we want to look for this media) and the type (what media do we want to look for).Get all image types\n photoPickerIntent.setDataAndType(data, \"image/*\");\n //We invoke the image gallery and receive something from it\n if (photoPickerIntent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(photoPickerIntent, IMAGE_GALLERY_REQUEST);\n }\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(context, TestActivity1.class);\n\t\t\t\t((MyHome)context).startActivityForResult(intent, 1);\n\t\t\t\tdata.get(pos).put(\"image\", R.drawable.email);\n\t\t\t}",
"public void viewPrevPhoto(ActionEvent event) {\n\t\t\n\t\t//System.out.println(\"left check: \" + listOfPhotos);\n\t\t\n\t\tif (displayedPhoto.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Cannot find next image!\");\n\t\t\talert.setContentText(\"No photo selected. Failed to display next image.\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tint photosList_size = listOfPhotos.size();\n\t\t\n\t\tif(currPhotoIndex == 0) {\n\t\t\tcurrPhotoIndex = photosList_size - 1;\n\t\t} else {\n\t\t\tcurrPhotoIndex = currPhotoIndex - 1;\n\t\t}\n\t\t\n\t\tImageView nextPhoto = listOfPhotos.get(currPhotoIndex);\n\t\tcurrPhotoIndex = listOfPhotos.indexOf(nextPhoto);\n\t\t//System.out.println(currPhotoIndex);\n\t\tImageView newimg = new ImageView();\n\t\tnewimg.setImage(nextPhoto.getImage());\n\t\tnewimg.setFitWidth(480);\n\t\tnewimg.setFitHeight(330);\n\t\tdisplayedPhoto.clear();\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\tdisplayedPhoto.add(newimg);\n\t\tDisplayedImage.setItems(displayedPhoto);\n\t}",
"private void takePhoto() {\n Intent cameraIntent = new Intent(Intent.ACTION_PICK);\n cameraIntent.setType(\"image/*\");\n //startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);\n startActivityForResult(cameraIntent, GALLERY_PIC_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n }",
"public void changePic(View v){\n //Intent gallery = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n //startActivityForResult(gallery,PICK_IMAGE);\n new AlertDialog.Builder(ProfileModify.this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Choose\")\n .setItems(Choose, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(which == 0) {\n Intent iGallery = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(iGallery,PICK_GALLERY);\n }\n else {\n Intent iCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if(iCamera.resolveActivity(getPackageManager()) != null){\n startActivityForResult(iCamera,REQUEST_IMAGE_CAPTURE);\n }\n }\n }\n }).create().show();\n }",
"@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setClass(MainPage.this, AddPage.class);\n\t\t\tstartActivityForResult(intent,0);\n\t\t\toverridePendingTransition(R.anim.push_up_in, R.anim.push_up_out);\n\t\t}",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 1);\n\n }",
"@Override\n public void onClick(View arg0) {\n if (arg0.getId() == R.id.fab) {\n takePicture();\n /* try {\n//use standard intent to capture an image\n Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n//we will handle the returned data in onActivityResult\n startActivityForResult(captureIntent, CAMERA_CAPTURE);\n } catch(ActivityNotFoundException anfe){\n//display an error message\n String errorMessage = \"Whoops - your device doesn't support capturing images!\";\n Toast toast = Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_SHORT);\n toast.show();\n }*/\n }\n\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.addtolist);\n\t\tnameET = (EditText) findViewById(R.id.nameET);\n\t\tplaceET = (EditText) findViewById(R.id.placeET);\n\t\tenterButton = (Button) findViewById(R.id.enterButton);\n\t\timgView = (ImageView) findViewById(R.id.imageView);\n\t\tcaptureButton = (Button) findViewById(R.id.captureButton);\n\t\tcaptureButton.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString name = nameET.getText().toString() + placeET.getText().toString();\n\t\t\t\tif(!name.equals(\"\")){\n\t\t\t\t\tIntent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\t\t\t\t\tstartActivityForResult(i, IMAGE_REQUEST_CODE);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Please enter name and place\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tenterButton.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString name = nameET.getText().toString();\n\t\t\t\tString place = placeET.getText().toString();\n\t\t\t\tif(!name.equals(\"\") && !place.equals(\"\")){\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\tBundle bundle= new Bundle();\n\t\t\t\t\tbundle.putString(\"name\", name);\n\t\t\t\t\tbundle.putString(\"place\", place);\n\t\t\t\t\ti.putExtras(bundle);\n\t\t\t\t\tsetResult(RESULT_OK, i);\n\t\t\t\t\tif(bitmap!=null){\n\t\t\t\t\t\tsaveBitmap(bitmap);\n\t\t\t\t\t}\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Please enter name and place\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}",
"public void startImageSwitch() {\n Intent intent = new Intent(this, AlbumCompatActivity.class);\r\n intent.putExtra(AlbumCompatActivity.CHOOSE_MODE, AlbumCompatActivity.CHOOSE_MODE_SECTION); // ImageUtil.getPathForUpload(mImageKey).getAbsolutePath()\r\n intent.putExtra(AlbumCompatActivity.K_ALBUM_RST_COUNT, 5);\r\n startActivityForResult(intent, SELECT_IMAGE_COMPLETE);\r\n }",
"public void onImageClick(View view) {\n Intent photo_picker = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photo_picker.setType(\"image/jpeg\");\n startActivityForResult(photo_picker,PHOTO_PICK);\n }",
"private void selectImage() {\n final CharSequence[] items = {\"Take Photo\", \"Choose from Library\",\n \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Timetable.this);\n builder.setTitle(\"Add Photo!\");\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (items[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, REQUEST_CAMERA);\n } else if (items[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n SELECT_FILE);\n } else if (items[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"@Override\n public void onClick(View view) {\n saveBlocks();\n XmlDataManager.changeProject(model);\n\n Intent i = new Intent(DetailViewActivityEdit.this, MainActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivity(i);\n finish();\n }",
"public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }",
"public void btn_AddActivity(View view) {\n startActivity(new Intent(this, add_Recipe.class));\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tLog.e(\"open gallery\", \"opencamera\");\n\n\t\t\t\t\topenImagechooseAlertDialog();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tLog.e(\"open gallery\", \"opencamera\");\n\n\t\t\t\t\topenImagechooseAlertDialog();\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tAddNewArticleActivity.this.setResult(1, intent);\n\t\t\t\tAddNewArticleActivity.this.finish();\n\t\t\t}",
"@Override\r\n public void onClick(View view) {\r\n Intent albumIntent = new Intent(MainActivity.this, AlbumActivity.class);\r\n startActivity(albumIntent);\r\n }",
"public void newuserclicked(View view) {\n Intent myuserIntent = new Intent(this, UserCreation.class);\n startActivity(myuserIntent);\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tdoTakePhoto();\r\n\t\t\t\t\timagePopupWindow.dismiss();\r\n\t\t\t\t}",
"public void imageClicked(int imageView){\n //get text from all buttons\n String name=etName.getText().toString().trim();\n String phoneNum=etPhoneNumber.getText().toString().trim();\n String website=etWebsite.getText().toString().trim();\n String address=etLocation.getText().toString().trim();\n\n //check if strings are empty, otherwise close this activity and send intent\n if(name.isEmpty()||phoneNum.isEmpty()||website.isEmpty()||address.isEmpty()){\n Toast.makeText(this, \"Enter all fields\", Toast.LENGTH_SHORT).show();\n }else{\n Intent intent= new Intent();\n intent.putExtra(\"name\", name);\n intent.putExtra(\"phone number\",phoneNum);\n intent.putExtra(\"website\",website);\n intent.putExtra(\"address\", address);\n intent.putExtra(\"image\",imageView);\n setResult(RESULT_OK,intent);\n Activity2.this.finish();\n }\n\n }",
"@Override\r\n public void onClick(View v) {\n Intent pickPhoto = new Intent(Intent.ACTION_PICK);\r\n pickPhoto.setType(\"image/*\");\r\n startActivityForResult(pickPhoto, TAKE_AVATAR_GALLERY_REQUEST);\r\n UtilSettings.this\r\n .removeDialog(AVATAR_DIALOG_ID);\r\n\r\n }",
"@Override\n public void onClick(View v) {\n dispatchTakePictureIntent();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\t\t\t\t// 下面这句指定调用相机拍照后的照片存储的路径\n\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment.getExternalStorageDirectory(), \"xiaoma.jpg\")));\n\t\t\t\tstartActivityForResult(intent, 2);\n\t\t\t\tmenu_mine.setVisibility(View.GONE);\n\t\t\t}",
"public void takePhoto(View view){\n Intent callCameraApplicationIntent = new Intent();\n //Todo: Se llama la accion de camara\n callCameraApplicationIntent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);\n\n File photoFile = null;\n try {\n photoFile = createImageFile();\n }catch (IOException e){\n e.printStackTrace();\n }\n callCameraApplicationIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoFile));\n //Todo: Se inicia la actividad y se pasa la constante ACTIVITY_START_CAMERA_APP al metodo onActivityResult\n startActivityForResult(callCameraApplicationIntent, ACTIVITY_START_CAMERA_APP);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n /*creating reference to galleryButton ad image view\n * giving reference to activity_main.xml*/\n galleryButton = findViewById(R.id.button);\n imageView = findViewById(R.id.imageView);\n // Starts with action pressing on button to select file\n galleryButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {//here we are creating the on click method\n // here we are creating the intent\n Intent intent = new Intent();\n //here we are setting the type of intent which\n //we will pass to the another screen\n intent.setType(\"image/*\");//For specific type add image/jpeg\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, 50);\n }\n });\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, RESULT_LOAD_IMAGE);\n }",
"public void onLaunchCamera(View view) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\n\n data.insertAnImage(OptionID.get(alg), null);\n Cursor imageCursor = data.getImageData(OptionID.get(alg));\n imageCursor.moveToNext();\n intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(getPhotoFileUri(imageCursor.getString(0))))); // set the image file name\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t dia.dismiss();\n\t\t\t\tIntent intent = new Intent( Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t\t\t startActivityForResult(intent, 1);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n\n startActivityForResult(Intent.createChooser(intent,\"Choose an app to select a image\"), 1);\n }",
"public void onClick(View v) {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\n }\n\n }"
] | [
"0.7126691",
"0.6878133",
"0.68195045",
"0.67441326",
"0.67377293",
"0.6685058",
"0.6677757",
"0.665737",
"0.66445166",
"0.6582428",
"0.65684694",
"0.6549563",
"0.65338445",
"0.65337104",
"0.6531598",
"0.65157497",
"0.6499721",
"0.6495682",
"0.64850295",
"0.64850295",
"0.6467568",
"0.64268833",
"0.6407033",
"0.6379708",
"0.6370352",
"0.63611",
"0.6350293",
"0.63429785",
"0.6342218",
"0.6339797",
"0.63279724",
"0.6314847",
"0.6314039",
"0.63090193",
"0.6301564",
"0.6294496",
"0.628225",
"0.6281962",
"0.6270656",
"0.6270013",
"0.6267996",
"0.62666667",
"0.6265781",
"0.6262425",
"0.6259395",
"0.6259273",
"0.625807",
"0.6248507",
"0.62470156",
"0.62389386",
"0.6237989",
"0.6224586",
"0.62046146",
"0.6198091",
"0.61944926",
"0.6185986",
"0.6181415",
"0.6178855",
"0.6173582",
"0.6159745",
"0.615541",
"0.61480325",
"0.6146472",
"0.61409605",
"0.61349756",
"0.61304677",
"0.6130306",
"0.6129665",
"0.6128855",
"0.6126749",
"0.61264735",
"0.61251825",
"0.611959",
"0.61137354",
"0.61112803",
"0.6111079",
"0.61102843",
"0.6108312",
"0.61064154",
"0.6105582",
"0.61031336",
"0.60955536",
"0.6088114",
"0.60872763",
"0.60872763",
"0.60871947",
"0.60865545",
"0.60754734",
"0.6067679",
"0.6058735",
"0.6058618",
"0.60551876",
"0.6054325",
"0.60492724",
"0.60487264",
"0.6048682",
"0.60484916",
"0.6046402",
"0.60459536",
"0.60447997"
] | 0.8371667 | 0 |
evalueaza fiul stagsi fiul drept si combina rezultatul | @Override
public void visit(AdditionNode node) {
/**
* verificam intai sintaxa: in cazde eroare nu mergem mai departe in
* evaluare
*/
if (Evaluator.checkScope(node) == false) {
return;
}
/**
* verificare pentru assert failed
*/
if (Evaluator.checkAssert(node) == false) {
return;
}
/**
* evaluam fiii nodului
*/
Evaluator.evaluate(node.getChild(0));
Evaluator.evaluate(node.getChild(1));
Integer i, j;
/**
* Salvam valorile calculate in urma evaluarii copiilor in 2 variabile
* Integer. Daca unul dintre fii este de tip Variable ii luam valoarea
* din HashMap-ul din Evaluator. Altfel, valoarea e reprezentata de
* numele nodului.
*/
if (node.getChild(1) instanceof Variable) {
i = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));
} else {
i = Integer.parseInt(node.getChild(1).getName());
}
if (node.getChild(0) instanceof Variable) {
j = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));
} else {
j = Integer.parseInt(node.getChild(0).getName());
}
/**
* realizam suna celor doua valori si updatam numele nodului curent cu
* valoarea calculata
*/
Integer n = i + j;
node.setName(n.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"public static Resultado Def_FA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada=0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n \n \n int caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }",
"public static Result comp2(){\n\t\t\t\n\t\t\t//Requête pour récupèrer le nombre de viols en espagne\n\t \t //requete pour recuperer les valeurs , les dates et les pays avec filtre date et pays \n\t \t// creattion d modele \n\t\t\tModel m = ModelFactory.createDefaultModel();\n\t\t\t // j'int�gre mon modele dans un autre modele inf�r� \n\t\t\tInfModel infm = ModelFactory.createRDFSModel(m);\n\t\t\t // je lis les deus fichier .RDF et .ttl pour le sujet crime \t\t\n\t\t\tString ns = \"http://www.StatisticSquade.fr#\";\n\t\t \tinfm.setNsPrefix(\"StatisticSquade\", ns);\n\t\t \t/// name space de eurostat\n\t\t \tString nsEuro = \"http://eurostat.linked-statistics.org/data/\";\n\t\t\tinfm.setNsPrefix(\"Eurostat\", nsEuro);\n\t\t\tFileManager.get().readModel(infm, rdf_file0 );\n\t\t\tFileManager.get().readModel(infm, rdf_file1 ); \n\t\t\t\n\t\t\t//Construction dynamique des requêtes\n\t\t\t/**\n\t\t\t * Récupération des pays\n\t\t\t */\n\t\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * récupétation autes\n\t\t\t */\n\t\t\tString pays = Form.form().bindFromRequest().get(\"pays\");\n\t\t\tanneeDebut = Form.form().bindFromRequest().get(\"anneeDebut\");\n\t\t\tanneeFin = Form.form().bindFromRequest().get(\"anneeFin\");\n\t\t\tString sujet1 = Form.form().bindFromRequest().get(\"sujet1\");\n\t\t\tString sujet2 = Form.form().bindFromRequest().get(\"sujet2\");\n\t\t\tString [] tabAnneeDebut = anneeDebut.split(\"-\");\n\t String anneeD = tabAnneeDebut[0];\n\t int aDebut = Integer.parseInt(anneeD);\n\t String [] tabAnneeFin = anneeFin.split(\"-\");\n\t String anneeF = tabAnneeFin[0];\n\t int aFin = Integer.parseInt(anneeF);\n\t if(aFin < aDebut){\n\t \tString anneeTemp = anneeDebut;\n\t \tanneeDebut = anneeFin;\n\t \tanneeFin = anneeTemp;\n\t }\n\n\t String rdq1 = \n\t\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet1+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \"; \n\t\t \n\t\tString rdq2 = \n\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet2+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \";\n\t\t\n \n //mapping entre sujets et leurs codes\n HashMap<String,String> codeToSujet = new HashMap<String,String>();\n codeToSujet.put(\"DBURG\", \"Cambriolages dans un lieu d'habitation\");\n codeToSujet.put(\"DRUGT\", \"Trafic de stupéfiants\");\n codeToSujet.put(\"HCIDE\", \"Homicides\");\n codeToSujet.put(\"VTHFT\", \"Vols de véhicules à moteur\");\n codeToSujet.put(\"VIOLT\", \"Crimes et délits violents\");\n codeToSujet.put(\"ROBBR\", \"Vols avec violences\");\n\t\t\t\n //Execution des requêtes\n /**\n * Requête 1\n */\n Query query1 = QueryFactory.create(rdq1); \n\t QueryExecution qexec1 = QueryExecutionFactory.create(query1,m);\n\t /////////\n\t ResultSet rs1 = qexec1.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste1 = ResultSetFormatter.toList(rs1);\n\t Iterator<QuerySolution> it1 = liste1.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map1 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString1 = new ArrayList<String>();\n while(it1.hasNext()){\n \t \n \t QuerySolution elt1 = it1.next();\n String anneeElt1 = elt1.get(\"Date\").toString();\n String valeur1 = elt1.get(\"Valeur\").toString();\n String [] tabAnnee1 = anneeElt1.split(\"-\");\n String annee1 = tabAnnee1[0];\n map1.put(Integer.parseInt(annee1), valeur1);\t \n donneesString1.add(valeur1);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd1 = new TreeMap<Integer,String>(map1);\n /**\n * Requete 2\n */\n Query query2 = QueryFactory.create(rdq2); \n\t QueryExecution qexec2 = QueryExecutionFactory.create(query2,m);\n\t /////////\n\t ResultSet rs2 = qexec2.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste2 = ResultSetFormatter.toList(rs2);\n\t Iterator<QuerySolution> it2 = liste2.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map2 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString2 = new ArrayList<String>();\n while(it2.hasNext()){\n \t \n \t QuerySolution elt2 = it2.next();\n String anneeElt2 = elt2.get(\"Date\").toString();\n String valeur2 = elt2.get(\"Valeur\").toString();\n String [] tabAnnee2 = anneeElt2.split(\"-\");\n String annee2 = tabAnnee2[0];\n map2.put(Integer.parseInt(annee2), valeur2);\t \n donneesString2.add(valeur2);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd2 = new TreeMap<Integer,String>(map2);\n \n //////////\n JsonObject title = new JsonObject();\n title.put(\"text\", \"Nombre de \"+codeToSujet.get(sujet1)+\" et de \"+codeToSujet.get(sujet2));\n \n JsonObject subtitle = new JsonObject();\n subtitle.put(\"text\", pays);\n \n JsonObject xAxis = new JsonObject();\n xAxis.put(\"type\", \"value\");\n \n JsonObject titleY = new JsonObject();\n titleY.put(\"text\", \"valeurs :\");\n JsonObject yAxis = new JsonObject();\n yAxis.put(\"title\", titleY);\n yAxis.put(\"min\", 0);\n \n JsonArray series = new JsonArray();\n \n JsonObject objSerie1 = new JsonObject();\n objSerie1.put(\"name\", codeToSujet.get(sujet1));\n JsonArray data1 = new JsonArray();\n for(Entry<Integer, String> entry1 : mapOrd1.entrySet()){\n \t \n \t JsonArray eltData1 = new JsonArray();\n eltData1.add(entry1.getKey());\n eltData1.add(Integer.parseInt(entry1.getValue()));\n data1.add(eltData1);\n \n }\n objSerie1.put(\"data\",data1);\n series.add(objSerie1);\n \n \n \n JsonObject objSerie2 = new JsonObject();\n objSerie2.put(\"name\", codeToSujet.get(sujet2));\n JsonArray data2 = new JsonArray(); \n for(Entry<Integer, String> entry2 : mapOrd2.entrySet()){\n \t \n \t JsonArray eltData2 = new JsonArray();\n eltData2.add(entry2.getKey());\n eltData2.add(Integer.parseInt(entry2.getValue()));\n data2.add(eltData2);\n }\t \n objSerie2.put(\"data\",data2); \n series.add(objSerie2);\n \n \n //Ajouter au graphe\n JsonObject graphe = new JsonObject();\n graphe.put(\"title\", title);\n graphe.put(\"subtitle\", subtitle);\n graphe.put(\"xAxis\", xAxis);\n graphe.put(\"yAxis\", yAxis);\n graphe.put(\"series\", series);\n /**\n * \n * données statistiques\n */\n \n \n StatisticsComputation myStats = new StatisticsComputation(donneesString1, donneesString2);\n double covariance = myStats.covariance();\n\t\tdouble pearsonsCorrelation = myStats.pearsonsCorrelation();\n\t\tSystem.out.println(\"Ma covariance \" + covariance);\n\t\tSystem.out.println(\"Ma correlation \" + pearsonsCorrelation);\n\t\tdouble mean = myStats.mean();\n\t\tdouble standardDeviation = myStats.standardDeviation();\n\t\tSystem.out.println(\"Ma moyenne \" + mean);\n\t\tSystem.out.println(\"Mon écart-type \" + standardDeviation);\n\n /**\n * \n * Données statistiques fin\n */\n\t\t/**\n\t\t * Ajout au graphe\n\t\t */\n\t\tGraphCreation gc = new GraphCreation(\"crim_gen\");\n\t\tgc.postGraph(sujet1+\"-\"+sujet2+\"-\"+pays, sujet1+pays, sujet2+pays, anneeDebut, anneeFin, \n\t\t\t\t Double.toString(pearsonsCorrelation), Double.toString(mean), Double.toString(standardDeviation), \n\t\t\t\t Double.toString(covariance));\n\t\tgc.save();\n\t\t\n\t\tString ip = request().remoteAddress();\n ArrayList<String> listeComments = gc.getComments(sujet1+\"-\"+sujet2+\"-\"+pays, false); \n if(listeComments !=null){\n\t\tIterator<String> it = listeComments.iterator();\n\t\tList<Comment> listeCom = new ArrayList<Comment>();\n\t\twhile(it.hasNext()){\n\t\t\tString elt = it.next();\n\t\t\tString [] tab = elt.split(\";\");\n\t\t\tString nomRecup = tab[0];\n\t\t\tString dateRecup = tab[1];\n\t\t\tString contenuRecup = tab[2];\n\t\t\tComment comment1 = new Comment(nomRecup,dateRecup,contenuRecup);\n\t\t\tlisteCom.add(comment1);\n\t\t}\n\t\tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,listeCom,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n\t\treturn ok(comp2.render(g));\n }else{\n \tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,null,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n \t\treturn ok(comp2.render(g));\t\n \t\n }\n\t\t \n\t\t \n\t \t\n\t \t\n\t }",
"public void testF() {\n\t\tfor (int k = 0; k < usedSS; k++) {\n\t\t\tList<Integer> subStr = vals.subList(k*compSize, (k+1)*compSize);\n\t\t\tint sum = (int) subStr.stream().filter(i -> i != BipartiteMatching.FREE).count();\n\t\t\tfData.add(sum);\t\t\t\n\t\t}\n\t}",
"public ArrayList<String> ExcutarCalculo(ArrayList<String> linha, String tipo){\n ArrayList<String> cod = new ArrayList();\n String reg, rv1, rv2;\n \n /*Verifica se a variavel tem registrador*/\n reg = r.getRegistrador(linha.get(0));\n if(linha.size() == 3){//x = n\n rv1 = r.getRegistrador(linha.get(2));//Verifica se é variavel\n \n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n } \n \n if(rv1 == null)\n cod.add(\"load \"+reg+\", \"+linha.get(2));\n else\n cod.add(\"load \"+reg+\", \"+rv1);\n }else{\n ArrayList<String> aux = new ArrayList();\n String[] ordem = new String[100];\n String [][]operador = {{\"(\",\"\"},{\"*\",\"mult\"},{\"/\",\"div\"},{\"+\",\"add\"},{\"-\",\"sub\"}};\n String []temp = {\"ra\",\"rb\",\"rc\",\"rd\",\"re\",\"rf\"};\n Boolean ctr = false;\n int i, j, k, tl, ctrTemp, r1, r2, pos;\n \n for(i = 0; i < 100; i++){\n ordem[i] = \"\";\n } \n \n tl = ctrTemp = 0;\n for(i = 0; i < 5; i++){\n for(j = 0; j < linha.size(); j++){\n if(linha.get(j).contains(operador[i][0])){\n if(i == 0){\n /* min = verificaRegistradores(linha.get(j+1),linha.get(j+3),temp);\n \n if(min == -1){\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t1\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+3);//Carrega val no registrador t2\n }\n \n \n for(k = 0; k < 5; k++){\n if(linha.get(j+2).contains(operador[k][0])){ \n if(operador[k][1].equals(\"add\")){\n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n }\n \n k = 5;\n }\n }\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3 por conta de reuso\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n \n for(k = 0; k < 5; k++)//( ate )\n linha.remove(j);\n linha.add(j,temp[ctrTemp-2]);\n \n if(min == -1)\n ctrTemp -= 1;\n else\n ctrTemp = 0;*/\n }else{\n rv1 = r.getRegistrador(linha.get(j-1));\n rv2 = r.getRegistrador(linha.get(j+1));\n \n r1 = verificaRegistradores(linha.get(j-1),temp);\n if(r1 == -1){//Nenhum registrador\n if(rv1 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j-1);//Carrega val no registrador t1\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv1;\n }\n r2 = verificaRegistradores(linha.get(j+1),temp);\n if(r2 == -1){//Nenhum registrador\n if(rv2 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t2\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv2;//Carrega val no registrador t2\n } \n \n pos = ctrTemp;//como posso entrar no mult ou no add\n if(operador[i][1].equals(\"mult\") || operador[i][1].equals(\"div\")){\n ctrTemp -= 2;\n \n if(operador[i][1].equals(\"mult\")){\n aux = mult(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }else\n if(operador[i][1].equals(\"div\")){\n aux = div(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }\n \n tl -= 2;\n for(k = 0; k < aux.size(); k++){\n ordem[tl++] = aux.get(k);\n }\n pos = ctrTemp-1;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n /*else\n ctrTemp -= 1;*/\n }else\n if(operador[i][1].equals(\"add\") || operador[i][1].equals(\"sub\")){\n if(operador[i][1].equals(\"sub\")){\n ordem[tl-1] = \"load \"+temp[ctrTemp-1]+\", -\"+linha.get(j+1);\n }\n \n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n pos = ctrTemp-2;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n else\n ctrTemp -= 1;\n }\n \n for(k = 0; k < 3; k++)\n linha.remove(j-1);\n linha.add(j-1,temp[pos]);\n }\n ctr = true;//Faz repetir denovo caso adicione;\n }\n }\n if(ctr){\n i--;//Controla pra só sair quando tiver excluido todas operacoes desse tipo\n ctr = false;\n }\n }\n for(k = 0; k < tl; k++){\n cod.add(ordem[k]);\n }\n\n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n }\n cod.add(\"move \"+reg+\", \"+temp[ctrTemp-1]);\n ctrTemp = 0;\n }\n \n return cod;\n }",
"public String execute() {\n\t\ttry {\n\t\t\tHashMap<Integer, RigaVenditeCommercianti> map = new HashMap<Integer, RigaVenditeCommercianti>();\n\t\t\tlistaTotali = new LinkedList<RigaVenditeCommercianti>();\n\t\t\t\n\t\t\tFatture fatture = new Fatture();\n\t\t\tfatture.setOrderByCliente();\n\t\t\tCollection colFatture = fatture.getFatture(dataDal, dataAl);\n\t\t\tIterator itr = colFatture.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tFattura fattura = (Fattura) itr.next();\t\n\t\t\t\tfattura.calcolaTotali();\n\t\t\t\tif (map.containsKey(fattura.getIdCliente().intValue())) {\n\t\t\t\t\t//Aggiungi totali alla riga attuale\n\t\t\t\t\tRigaVenditeCommercianti riga = map.get(fattura.getIdCliente().intValue());\n\t\t\t\t\triga.setTotaleFattura(riga.getTotaleFattura().add(fattura.getTotaleFattura()));\n\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tfattura.calcolaTotali();\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 4\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva1())) { //IVA AL 4\n\t\t\t\t\t\triga.setImponibile1(riga.getImponibile1().add(imponibili.get(riga.getIva1())[0]));\n\t\t\t\t\t\triga.setImposta1(riga.getImposta1().add(imponibili.get(riga.getIva1())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 10\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile2(riga.getImponibile2().add(imponibili.get(riga.getIva2())[0]));\n\t\t\t\t\t\triga.setImposta2(riga.getImposta2().add(imponibili.get(riga.getIva2())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 20\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile3(riga.getImponibile3().add(imponibili.get(riga.getIva3())[0]));\n\t\t\t\t\t\triga.setImposta3(riga.getImposta3().add(imponibili.get(riga.getIva3())[1]));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//Crea riga per cliente\n\t\t\t\t\tRigaVenditeCommercianti riga = new RigaVenditeCommercianti();\n\t\t\t\t\triga.setCliente(fattura.getCliente());\n\t\t\t\t\triga.setTotaleFattura(fattura.getTotaleFattura());\n\t\t\t\t\t\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\tIvas dao = new Ivas();\n\t\t\t\t\tdao.setOrderByDescrizione(DataAccessObject.ORDER_ASC);\n\t\t\t\t\tCollection aliquote = dao.getElements();\n\t\t\t\t\t\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor(Object obj : aliquote)\n\t\t\t\t\t{\n\t\t\t\t\t\tIva iva = (Iva)obj;\n\t\t\t\t\t\tif(iva.getValore().floatValue() < 4) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tBigDecimal imponibile = new BigDecimal(0);\n\t\t\t\t\t\tBigDecimal imposta = new BigDecimal(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(imponibili.containsKey(iva.getValore()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\timponibile = imponibili.get(iva.getValore())[0];\n\t\t\t\t\t\t\timposta = imponibili.get(iva.getValore())[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva1(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile1(imponibile);\n\t\t\t\t\t\t\triga.setImposta1(imposta);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva2(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile2(imponibile);\n\t\t\t\t\t\t\triga.setImposta2(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva3(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile3(imponibile);\n\t\t\t\t\t\t\triga.setImposta3(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 3) break;\n\t\t\t\t\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tmap.put(fattura.getIdCliente().intValue(), riga);\n\t\t\t\t\tlistaTotali.add(riga);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tstampaErrore(\"PrintVendite.execute()\", e);\n\t\t\treturn ERROR;\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public Fasores sumarFasores (Fasores f, Fasores g) {\r\n if(f.trig == 'c' && g.trig!=f.trig){\r\n g.pasarACoseno(g);\r\n }\r\n if(f.trig == 's' && g.trig!=f.trig){\r\n g.pasarASeno(g);\r\n }\r\n double parteRealDeSuma = f.amplitud*Math.cos(f.desplazamiento) + g.amplitud*Math.cos(g.desplazamiento);\r\n double parteImaginariaDeSuma = f.amplitud*Math.sin(f.desplazamiento) + g.amplitud*Math.sin(g.desplazamiento);\r\n ComplejoBinomica cBin = new ComplejoBinomica(parteRealDeSuma,parteImaginariaDeSuma);\r\n ComplejoPolar cPol = new ComplejoPolar(); \r\n cPol.binomicaAPolar (cBin);\r\n this.amplitud=cPol.modulo; \r\n this.fase=f.fase;\r\n this.desplazamiento = cPol.argumento;\r\n this.trig=f.trig;\r\n return this;\r\n }",
"void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \" + arredondar(this.desconto_final));\n }",
"public static Resultado Def_FACA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n \n double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }",
"public static Resultado KSP_FF_Algorithm_MBBR(GrafoMatriz G, GrafoMatriz Gaux, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n /*Definicion de variables las variables*/\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n \n /*Probamos para cada camino, si exite espectro para ubicar la damanda*/\n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n /*Calcular la ocupacion del espectro para cada camino k*/\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0 ||\n Gaux.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0 ){\n OE[i]=0;\n break;\n }\n }\n }\n /*Teniendo la ocupacion del espectro del camino k, buscamos un bloque continuo de FS\n * que satisfazca la demanda.\n */\n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n demandaColocada=1;\n break;\n }\n }\n }\n if(demandaColocada==1){\n break;\n }\n }\n k++;\n }\n \n if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }\n /*Bloque contiguoo encontrado, asignamos los indices del espectro a utilizar \n * y retornamos el resultado\n */\n Resultado r= new Resultado();\n r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);\n return r;\n }",
"public static Resultado PCF(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n //*Definicion de variables las variables\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n \n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n double slotsDemanda = demanda.getNroFS();\n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n \n \n \n // double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n //FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n FcmtAux = ((saltos*slotsDemanda) + corte + desalineamiento)/capacidadLibre;\n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }",
"public static String getUltimaFiesta() {\n Map<String, DiaFiestaMeta> diasFiestas;\n Iterator<String> itDiasFiestasMeta;\n SimpleDateFormat formatoDelTexto ;\n Map<String, Date> mapFiestaDia = new HashMap<>(); // \"uidFiesta:tituloDiaFiestaFormateado\"\n HashSet<Fiestas> fiestas;\n Date fechaMasReciente;\n String uidFiestaMasReciente;\n Iterator<String> itmapFiestaDia;\n\n Date date = new Date();\n formatoDelTexto = new SimpleDateFormat(\"dd MMMM yyyy\",new Locale(\"es\",\"ES\"));\n String strDate =formatoDelTexto.format(date);\n uidFiestaMasReciente =\"\";\n try {\n fechaMasReciente = formatoDelTexto.parse(\"15 Junio 1980\");\n } catch (ParseException e) {\n fechaMasReciente = new Date();\n e.printStackTrace();\n }\n fiestas = (HashSet) baseDatos.get(Tablas.Fiestas.name());\n for (Fiestas fiesta : fiestas){\n diasFiestas = fiesta.getDiasFiestas();\n itDiasFiestasMeta = diasFiestas.keySet().iterator();\n while (itDiasFiestasMeta.hasNext()){\n String keyDia = itDiasFiestasMeta.next();\n DiaFiestaMeta diaFiestaMeta = diasFiestas.get(keyDia);\n mapFiestaDia.put(fiesta.getUidFiestas(), formatearDia(diaFiestaMeta.getTituloDiaFiesta(), fiesta.getUidFiestas()));\n }\n }\n\n itmapFiestaDia = mapFiestaDia.keySet().iterator();\n while (itmapFiestaDia.hasNext()) {\n String key = itmapFiestaDia.next();\n Date fechaI = mapFiestaDia.get(key);\n if (fechaI.after(fechaMasReciente)) {\n uidFiestaMasReciente = key;\n fechaMasReciente = fechaI;\n }\n }\n return uidFiestaMasReciente;\n }",
"protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }",
"public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }",
"private void triFusion(int debut,int fin) {\n\t\tint[] tFusion = new int[fin-debut +1];\n\t\tint milieu = (debut +fin) / 2;\n\t\t//Indices des elements à comparer\n\t\tint i1 = debut,i2 = milieu +1;\n\t\t//indice de la prochaine case du tableau tFusion à remplir\n\t\tint iFusion = 0;\n\t\twhile (i1 <= milieu && i2 <= fin) {\n\t\t\tif(getTab()[i1] < getTab()[i2]) {\n\t\t\t\ttFusion[iFusion++] = getTab()[i1++];\n\t\t\t}else {\n\t\t\t\ttFusion[iFusion++] = getTab()[i2++];\n\t\t\t}\n\t\t}\n\t\tif(i1 > milieu) {\n\t\t\t//la 1ere tranche est epuisée\n\t\t\tfor(int i=i2;i<=fin;) {\n\t\t\t\ttFusion[iFusion++] = getTab()[i++];\n\t\t\t}\n\t\t}else {\n\t\t\t//la deuxieme tranche est epuisée\n\t\t\tfor(int i=i1;i<=milieu;) {\n\t\t\t\ttFusion[iFusion++] = getTab()[i++];\n\t\t\t}\n\t\t}\n\t\t//Copie TFusion dans t\n\t\tfor (int i= 0,j = debut ; i <=fin-debut;) {\n\t\t\tsetValueTab(j++, tFusion[i++]);\n\t\t}\n\t}",
"private Filtro getFiltroFissiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Filtro filtroDate = null;\n Filtro filtroInizio = null;\n Filtro filtroSincro;\n Filtro filtroVuota;\n Filtro filtroIntervallo;\n Filtro filtroFine;\n Filtro filtroConto = null;\n Modulo modConto;\n Date dataVuota;\n\n try { // prova ad eseguire il codice\n\n modConto = Progetto.getModulo(Conto.NOME_MODULO);\n\n filtroDate = new Filtro();\n\n filtroInizio = FiltroFactory.crea(Cam.dataInizioValidita.get(),\n Filtro.Op.MINORE_UGUALE,\n data);\n filtroSincro = FiltroFactory.crea(Cam.dataSincro.get(), Filtro.Op.MINORE, data);\n dataVuota = Lib.Data.getVuota();\n filtroVuota = FiltroFactory.crea(Cam.dataSincro.get(), dataVuota);\n\n filtroFine = FiltroFactory.crea(Cam.dataFineValidita.get(),\n Filtro.Op.MAGGIORE_UGUALE,\n data);\n filtroIntervallo = new Filtro();\n filtroIntervallo.add(filtroSincro);\n filtroIntervallo.add(filtroFine);\n\n filtroDate.add(filtroIntervallo);\n filtroDate.add(Filtro.Op.OR, filtroVuota);\n\n /* filtro per il conto */\n filtroConto = FiltroFactory.codice(modConto, codConto);\n\n filtro = new Filtro();\n filtro.add(filtroInizio);\n filtro.add(filtroDate);\n filtro.add(filtroConto);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }",
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }",
"public void movF(){\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * fallos , la f3 de la cara 4 pasa a la c0 de cara 2\r\n\t\t * la columna 0 de cara dos pasa a fila 1 cara 5\r\n\t\t * columna 3 de cara 0 para a fila 0 cara 4\r\n\t\t * fila 0 cara 5 pasa a columna 3 cara 0\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tint aux[][] = new int[1][3];\r\n\t\tint aux2[][] = new int[3][1];\r\n\t\tint aux3[][] = new int[1][3];\r\n\t\tint aux4[][] = new int[3][1];\r\n\t\t\r\n\t\tint aux5[][]= new int [1][3];\r\n\t\tint aux6[][]= new int [1][3];\r\n\t\tint aux7[][]= new int [1][3];\r\n\t\t\r\n\t\t//copiamos en un aux la primera fila de zona 5\r\n\t\taux=cloneF(5,0);\r\n\t\taux2=cloneC(0,2);\r\n\t\taux3=cloneF(4,2); //bloque 4 fila 2\r\n\t\taux4=cloneC(2,0);//bloque 2 col 0\r\n\t\t\r\n\t\taux5=cloneF(1,0);\r\n\t\taux6=cloneF(1,1);\r\n\t\taux7=cloneF(1,2);\r\n\t\t\r\n\t\t\r\n\t\tthis.copiaEnColumnaUnaFila(aux, 0, 2);//copiamos en bl0 col2\r\n\t\tthis.copiaEnFilaUnaColumnaReverse(aux2, 4, 2);\r\n\t\t\r\n\t\tthis.copiaEnColumnaUnaFila(aux3, 2, 0);//copiamos en bl0 la col0\r\n\t\tthis.copiaEnFilaUnaColumnaReverse(aux4, 5, 0);\r\n\t\t\r\n\t\tthis.copiaEnColumnaUnaFila(aux5, 1, 2);\r\n\t\tthis.copiaEnColumnaUnaFila(aux6, 1, 1);\r\n\t\tthis.copiaEnColumnaUnaFila(aux7, 1, 0);\r\n\t\t\r\n\t\t\r\n\t}",
"public void imprimirResultados(int fo,File archivoResultados,Ruteo r){\n\t\tint numo=0;\n\t\tfor(int i=0;i<r.rutas.size();i++){\n\t\t\tRuta ruta=r.rutas.get(i);\n\t\t\tnumo+=ruta.obras.size()-2;\n\t\t}\n\t\tdistanciaTotalRecorrida=darDistanciaTotal(r);\n\t\ttiempoComputacionalTotal=darTiempoTotal();\n\t\ttry{\n\t\tFileWriter fw = new FileWriter(archivoResultados.getAbsoluteFile());\n\t\t\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.newLine();\n\t\tbw.write(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\tbw.newLine();\n\t\tbw.write(\" GRASP + SET COVERING \");\n\t\tbw.newLine();\n\t\tbw.write(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\tbw.newLine();\n\t\tif(fo==FO1){\n\t\t\tbw.write(\"La funcion objetivo usada fue: Minimizar Costos\");\n\t\t}else if(fo==FO2){\n\t\t\tbw.write(\"La funcion objetivo usada fue: Minimizar el maximo tiempo de las rutas\");\n\t\t}else if(fo==FO3){\n\t\t\tbw.write(\"La funcion objetivo usada fue: Minimizar el numero de rutas\");\t\n\t\t}else if(fo==FO4){\n\t\t\tbw.write(\"La funcion objetivo usada fue: Minimizar el tiempo\");\n\t\t}\n\t\tbw.newLine();\n\t\tbw.write(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\tbw.newLine();\n\t\tbw.write(\"Distancia total recorrida por todos los interventores: \"+distanciaTotalRecorrida);\n\t\tbw.newLine();\n\t\tbw.write(\"Numero obras: \"+numo);\n\t\tbw.newLine();\n\t\tbw.write(\"Tiempo computacional de GRASP + Set Covering: \"+tiempoComputacionalTotal);\n\t\tbw.newLine();\n\t\tbw.write(\"Numero de iteraciones de GRASP: \"+k);\n\t\tbw.newLine();\n\t\tbw.write(\"Tiempo computacional promedio de una iteración de GRASP: \"+tiempoComputacionalIterGrasp);\n\t\tbw.newLine();\n\t\tbw.write(\"Tiempo computacional del Set Covering: \"+tiempoComputacionalSetCovering);\n\t\tbw.newLine();\t\n\t\tbw.write(\"FO: \"+objval);\n\t\tbw.newLine();\t\n\t\tbw.write(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\tbw.newLine();\t\n\t\tbw.write(\"*****************************************************************\");\n\t\tbw.newLine();\t\n\t\tbw.write(\"************************* RUTAS *********************************\");\n\t\tbw.newLine();\t\n\t\tbw.write(\"*****************************************************************\");\n\t\tfor(int i=0;i<r.rutas.size();i++){\n\t\t\tRuta ruta=r.rutas.get(i);\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\"---------------INFORMACION RUTA \"+(i+1)+\":\");\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" * Id: \"+(i+1));\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" * Dias de recorrido: \"+ruta.diasRecorrido/24.0);\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" * Dias de descanso: \"+ruta.diasDescanso/24.0);\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" * Cantidad de obras: \"+(ruta.obras.size()-2));\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" * Costo por recorrido: \"+ruta.costoRecorrido);\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" * Costo por descanso: \"+ruta.costoDescanso);\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" * OBRAS: \");\n\t\t\tbw.newLine();\t\n\t\t\tbw.write(\" \"+ruta.obras.toString());\n\t\t}\n\t\tbw.newLine();\t\n\t\tbw.write(\"*****************************************************************\");\n\t\tbw.newLine();\t\n\t\tbw.write(\"************************* FIN RUTAS *****************************\");\n\t\tbw.newLine();\t\n\t\tbw.write(\"*****************************************************************\");\n\t\tbw.close();\n\t\t\n\t\tJOptionPane.showMessageDialog (null, \"El archivo se guardo con los parametros satisfactoriamente.\", \"Archivo Guardado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch(Exception ee){\n\t\t\tJOptionPane.showMessageDialog (null, \"No se llevó a cabo la simulación.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t}\n\t}",
"public SparseVector FiltraRelimportant (int i1,double threshold,int numres,String etiq) throws Exception {\n System.out.println(threshold+\" \"+numres+\" \"+etiq);\r\n ResImportant r = lr.getRelImp().get(i1);\r\n SparseVector sv = (SparseVector) r.Resultat().copy(); //clonem\r\n //threshold\r\n Vector<Pair<Integer,Double>> v = new Vector<>(); //guardarem els valors per\r\n VectorIterator it = sv.nonZeroIterator();\r\n while(it.hasNext()){\r\n Double rel = it.next();\r\n String p = r.getQuery().getPath();\r\n p=Entitatequivalent(p.charAt(p.length()-1));\r\n System.out.println(\"etiqueta de \"+it.index()+\" és : \"+getEntitat(it.index(),p).getEtiqueta());\r\n String etiqitem = getEntitat(it.index(),p).getEtiqueta();\r\n if((etiqitem == null && !etiq.equals(\"no\"))||rel< threshold || ( !etiq.equals(\"no\") && !etiqitem.equals(etiq))) {\r\n it.set(0);\r\n }\r\n else v.add(new Pair<>(it.index(),rel)); // ens quedem sol si estan o per sobre el threshold o mateix etiqueta\r\n }\r\n Collections.sort(v, new Comparator<Pair<Integer, Double>>() { //ordeno aqui per rellevancia per filtrar per rellevancia i nombre de resultats\r\n @Override\r\n public int compare(Pair<Integer, Double> o1, Pair<Integer, Double> o2) {\r\n return o2.getValue().compareTo(o1.getValue());\r\n }\r\n });\r\n if(numres!=-1) {\r\n while (v.size() > numres) {\r\n sv.set(v.get(v.size() - 1).getKey(), 0.0);\r\n v.removeElementAt(v.size() - 1);\r\n }\r\n }\r\n System.out.println(sv.cardinality());\r\n return sv;\r\n }",
"public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}",
"private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }",
"public static void leerRegistros() {\n\n try { // Entrada a registros del archivo\n Scanner entrada = new Scanner(new File(\"data/tabula-FWC_2018_\"\n + \"Squadlists_4.csv\"));\n // Variables\n int cont = 0;\n double goals = 0;\n double totalG = 0;\n double height = 0;\n double totalH = 0;\n double promG = 0;\n double promH = 0;\n\n while (entrada.hasNext()) {\n String linea = entrada.nextLine();\n\n ArrayList<String> linea_partes = new ArrayList<>(\n Arrays.asList(linea.split(\"\\\\|\")));\n\n // Tomando las posiciones\n goals = Double.parseDouble(linea_partes.get(11)); \n height = Double.parseDouble(linea_partes.get(9));\n\n totalG = goals + totalG; // Cálculo de total de goles\n totalH = height + totalH; // Cálculo del total de estatura\n\n cont = cont + 1;\n }\n // Cálculo de promedios\n promG = totalG / cont; \n promH = totalH / cont;\n\n System.out.printf(\"El promedio de goles es: %.2f\\nEl promedio de \"\n + \"estatura es: %.2f\", promG, promH);\n entrada.close();\n } catch (Exception e) {\n System.err.println(\"Error al leer del archivo.\");\n System.exit(1);\n } // fin de catch\n }",
"public void FermerAgd() {\n //on essaye d'ouvrir un fichier dans lequel enregistrer le contenu de l'agenda\n try {\n Formatter agd_a_enreg = new Formatter(\"C:\\\\Projet_Agenda_ING3\\\\saved_agendas\");\n\n for (RdV el : this.getAgenda()) {\n //on enregistre 1 rdv par ligne\n //faire gaffe aux formats : %..\n agd_a_enreg.format(\"%s/%s/%s de %s a %s : %s , %s\\n\",\n el.getDate().getDayOfMonth(), el.getDate().getMonthValue(),\n el.getDate().getYear(), el.getHdebut(),\n el.getHfin(), el.getLibelle(), el.getRappel());\n //on supprime le rdv de l'arraylist d'agenda \n this.suppressionRdV(el);\n }\n //on ferme le fichier en ecriture\n agd_a_enreg.close();\n //on met l'attribut agenda à null une fois qu'il est \"vidé\"\n this.agd = null;\n } //en cas de probleme dans l'ouverture du fichier on affiche une erreur\n catch (Exception e) {\n System.out.print(\"Erreur d'ouverture du fichier en ecriture\\n\");\n }\n\n }",
"public void creaAddebitiGiornalieri(AddebitoFissoPannello pannello,\n int codConto,\n Date dataInizio,\n Date dataFine) {\n /* variabili e costanti locali di lavoro */\n boolean continua = true;\n Modulo modAddFisso;\n ArrayList<CampoValore> campiFissi;\n Campo campoQuery;\n CampoValore campoVal;\n ArrayList<WrapListino> lista;\n ArrayList<AddebitoFissoPannello.Riga> righeDialogo = null;\n int quantita;\n\n try { // prova ad eseguire il codice\n\n modAddFisso = this.getModulo();\n campiFissi = new ArrayList<CampoValore>();\n\n /* recupera dal dialogo il valore obbligatorio del conto */\n if (continua) {\n campoQuery = modAddFisso.getCampo(Addebito.Cam.conto.get());\n campoVal = new CampoValore(campoQuery, codConto);\n campiFissi.add(campoVal);\n }// fine del blocco if\n\n /* recupera dal dialogo il pacchetto di righe selezionate */\n if (continua) {\n righeDialogo = pannello.getRigheSelezionate();\n }// fine del blocco if\n\n /* crea il pacchetto delle righe di addebito fisso da creare */\n if (continua) {\n\n /* traverso tutta la collezione delle righe selezionate nel pannello */\n for (AddebitoFissoPannello.Riga riga : righeDialogo) {\n lista = ListinoModulo.getPrezzi(riga.getCodListino(),\n dataInizio,\n dataFine,\n true,\n false);\n quantita = riga.getQuantita();\n for (WrapListino wrapper : lista) {\n this.creaAddebitoFisso(codConto, dataInizio, wrapper, quantita);\n }\n } // fine del ciclo for-each\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}",
"void rozpiszKontraktyPart2EV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\t//wektor z ostatecznie ustalona cena\n\t\t//rozpiszKontrakty() - wrzuca jako ostatnia cene cene obowiazujaa na lokalnym rynku \n\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\n\t\t\n\t\t//ograniczenia handlu prosumenta\n\t\tArrayList<DayData> constrainMarkerList = new ArrayList<DayData>();\n\t\t\n\t\t//ograniczenia handlu EV\n\t\tArrayList<DayData> constrainMarkerListEV = new ArrayList<DayData>();\n\t\t\n\t\t//print(listaFunkcjiUzytecznosci.size());\n\t\t//getInput(\"rozpiszKontraktyPart2EV first stop\");\n\t\t\n\t\tint i=0;\n\t\twhile(i<listaFunkcjiUzytecznosci.size())\n\t\t{\n\t\t\t\n\t\t\t//lista funkcji uzytecznosci o indeksie i\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(i);\n\t\t\t\n\t\t\t//point z cena = cena rynkowa\n\t\t\tPoint point = L1.get(index);\n\t\t\t\n\t\t\t\n\t\t\tDayData d =rozpiszKontraktyPointToConstrainMarker(point, wolumenHandlu, sumaKupna, sumaSprzedazy, i);\n\t\t\t\n\t\t\tif (i<Stale.liczbaProsumentow)\n\t\t\t{\n\t\t\t\tconstrainMarkerList.add(d);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconstrainMarkerListEV.add(d);\n\t\t\t\t\n\t\t\t\t/*print(d.getKupuj());\n\t\t\t\tprint(d.getConsumption());\n\t\t\t\tprint(d.getGeneration());\n\t\t\t\t\n\t\t\t\tgetInput(\"rozpiszKontraktyPart2EV - Ostatni kontrakt\");*/\n\t\t\t}\n\n\t\t\t\n\t\t\t//print(\"rozpiszKontraktyPart2EV \"+i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tArrayList<Prosument> listaProsumentow =listaProsumentowWrap.getListaProsumentow();\n\n\t\t//wyywolaj pobranie ontraktu\n\t\ti=0;\n\t\twhile (i<Stale.liczbaProsumentow)\n\t\t{\n\t\t\tif (i<constrainMarkerListEV.size())\n\t\t\t{\n\t\t\t\t((ProsumentEV)listaProsumentow.get(i)).getKontrakt(priceVector,constrainMarkerList.get(i),constrainMarkerListEV.get(i));\n\t\t\t\t//print(\"constrainMarkerListEV \"+i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlistaProsumentow.get(i).getKontrakt(priceVector,constrainMarkerList.get(i));\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//getInput(\"rozpiszKontraktyPart2EV -end\");\n\t}",
"public Ficha_epidemiologia_n3 obtenerFichaEpidemiologia() {\n\t\t\n\t\t\t\tFicha_epidemiologia_n3 ficha_epidemiologia_n3 = new Ficha_epidemiologia_n3();\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n3.setCodigo(\"Z000\");\n\t\t\t\tficha_epidemiologia_n3.setCodigo_ficha(tbxCodigo_ficha\n\t\t\t\t\t\t.getValue());\n\t\t\t\tficha_epidemiologia_n3.setFecha_ficha(new Timestamp(dtbxFecha_ficha.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n3.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\n\t\t\t\t//ficha_epidemiologia_n3\n\t\t\t\t\t//\t.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConoce_y_o_ha_sido_picado_por_pito(rdbConoce_y_o_ha_sido_picado_por_pito\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTransfuciones_sanguineas(rdbTransfuciones_sanguineas\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSometido_transplante(rdbSometido_transplante\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHijo_de_madre_cero_positiva(rdbHijo_de_madre_cero_positiva\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEmbarazo_actual(rdbEmbarazo_actual\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHa_sido_donante(rdbHa_sido_donante\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_techo(rdbTipo_techo\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_paredes(rdbTipo_paredes\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEstrato_socio_economico(rdbEstrato_socio_economico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEstado_clinico(rdbEstado_clinico\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setClasificacion_de_caso(rdbClasificacion_de_caso\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setFiebre(chbFiebre.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_cronico(chbDolor_toracico_cronico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setDisnea(chbDisnea.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setPalpitaciones(chbPalpitaciones\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMialgias(chbMialgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setArtralgias(chbArtralgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setEdema_facial(chbEdema_facial\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEdema_miembros_inferiores(chbEdema_miembros_inferiores\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDerrame_pericardico(chbDerrame_pericardico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHepatoesplenomegalia(chbHepatoesplenomegalia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setAdenopatias(chbAdenopatias\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setChagoma(chbChagoma.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setFalla_cardiaca(chbFalla_cardiaca\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPalpitacion_taquicardia(chbPalpitacion_taquicardia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_agudo(chbDolor_toracico_agudo\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setBrandicardia(chbBrandicardia\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSincope_o_presincope(chbSincope_o_presincope\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setHipotension(chbHipotension\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDisfagia(chbDisfagia.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setGota_gruesa_frotis_de_sangre_periferica(rdbGota_gruesa_frotis_de_sangre_periferica\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMicrohematocrito_examen_fresco(rdbMicrohematocrito_examen_fresco\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setStrout(rdbStrout.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setElisa_igg_chagas(rdbElisa_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setIfi_igg_chagas(rdbIfi_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHai_chagas(rdbHai_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setElectrocardiograma(rdbElectrocardiograma\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEcocardiograma(rdbEcocardiograma\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setRayos_x_de_torax_indice_toracico(rdbRayos_x_de_torax_indice_toracico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHolter(rdbHolter.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_etiologico(rdbTratamiento_etiologico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_sintomatico(rdbTratamiento_sintomatico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPosible_via_transmision(rdbPosible_via_transmision\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setRomana(chbRomana.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa\n\t\t\t\t\t\t.getCodigo_empresa());\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal\n\t\t\t\t\t\t.getCodigo_sucursal());\n\t\t\t\t// ficha_epidemiologia_n3.setCodigo(tbxCodigo.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado1(tbxResultado1.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado2(tbxResultado2.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSemanas_de_embarazo((ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setNumero_familiares_con_changa((ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConstipacion_cronica(chbConstipacion_cronica\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setCreacion_date(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setUltimo_update(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setCreacion_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n3.setUltimo_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n3.setOtro_tipo_techo(tbxotro_tipo_techo.getValue());\n\n\t\t\t\t\n\t\treturn ficha_epidemiologia_n3;\n\t\t}",
"public String guardarsalidatransferencia( List<ListviewGenerico> existencias, List<ListviewGenerico> salidatransferencia, String clavemobil, String observacion){\n\t\tint size = existencias.size();\n\t\tfor (int i = 0; i < size; i++){\n\t\t Double existencia =existencias.get(i).getexistencia();\n\t\t int idmaterial =existencias.get(i).getidmaterial();\n\t\t int idalmacen =existencias.get(i).getidalmacen();\n\t\t updateexistencia(existencia,idmaterial,idalmacen);\t\t \n\t\t}\n\t\t\n\t\tString cadenaimprimir=\"\";\n\t\tsize =salidatransferencia.size();\n\t\tVector vector=new Vector();\n\t\tfor (int i = 0; i < size; i++){\t\t\n\t\t\tint cont=0;\n\t\t\tfor (int j=0; j<vector.size(); j++){\n\t\t\t\tif(vector.elementAt(j).equals(salidatransferencia.get(i).getnombrealmacne()))\n\t\t\t\t\tcont++;\t\n\t\t\t}\n\t\t\tif(cont==0)\n\t\t\t\tvector.add(salidatransferencia.get(i).getnombrealmacne());\t\t\t\n\t\t}\n\t\tcadenaimprimir+=\"SALIDA TRANSFERECIA\\n\";\n\t\tfor (int j=0; j<vector.size(); j++) {\n\t\t\tLog.e(\"obra-concepto\",vector.elementAt(j)+\"\");\t\t\t\n\t\t\tcadenaimprimir+=\"--------------------------------------------\\n\";\n\t\t\tcadenaimprimir+=vector.elementAt(j).toString()+\"\\n\";\n\t\t\tcadenaimprimir+=\"--------------------------------------------\\n\";\n\t\t\tfor (int i = 0; i < size; i++){\n\t\t\t\t\tif(vector.elementAt(j).equals(salidatransferencia.get(i).getnombrealmacne())){\n\t\t\t\t\t\tLog.e(\"concepto\",\" \"+salidatransferencia.get(i).getexistencia()+\" - \"+salidatransferencia.get(i).getunidad()+\"\\n \"+salidatransferencia.get(i).getdescripcion());\n\t\t\t\t\t\tcadenaimprimir+=\" \"+salidatransferencia.get(i).getexistencia()+\" - \"+salidatransferencia.get(i).getunidad()+\"\\n \"+salidatransferencia.get(i).getdescripcion()+\"\\n\";\n\t\t\t\t\t\tif(salidatransferencia.get(i).getidcontratista()>0){\n\t\t\t\t\t\t\tcadenaimprimir+=\" Entregado a: \"+salidatransferencia.get(i).getnombrecontratista()+\"\";\t\n\t\t\t\t\t\t\tLog.e(\"material\",\" \"+salidatransferencia.get(i).getnombrecontratista());\n\t\t\t\t\t\t\tif(salidatransferencia.get(i).getconcargo()>0){\n\t\t\t\t\t\t\t\tcadenaimprimir+=\"(Con cargo)\\n\";\n\t\t\t\t\t\t\t\tLog.e(\"material\",\" -> Con cargo\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcadenaimprimir+=\"\\n\\nObservaciones: \"+observacion;\n\t\t\n\t\tfor (int i = 0; i < size; i++){\n\t\t\t Double existencia =salidatransferencia.get(i).getexistencia();\n\t\t\t int idmaterial =salidatransferencia.get(i).getidmaterial();\n\t\t\t int idalmacen =salidatransferencia.get(i).getidalmacen();\n\t\t\t String unidad=salidatransferencia.get(i).getunidad();\t\n\t\t\t int idcontratista=salidatransferencia.get(i).getidcontratista();\t\n\t\t\t int concargo=salidatransferencia.get(i).getconcargo();\n\t\t\t \n\t\t\t salidatrasferenciapartidas(existencia, idmaterial, unidad, idalmacen, clavemobil, idcontratista, concargo);\n\t\t}\n\t\treturn cadenaimprimir;\n\t\t\n\t}",
"public Sequentie() throws notFasta, Cancel{\n String[] seq = FileOpener.FileOpener();\n this.titel = seq[0];\n this.sequentie1 = seq[1];\n \n\n for (int p =0; p <FRAMES;p++){\n findORF(p,p+1>FRAMES/2);\n \n } \n }",
"public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }",
"static void citajSveRedove(String imeFajla) {\n\n /* Radimo dokle god fajl nije prazan */\n while (!Svetovid.in(imeFajla).isEmpty()){\n\n /* Citamo ceo red */\n String red = Svetovid.in(imeFajla).readLine();\n\n /* Ispisujemo procitani red */\n Svetovid.out.println(red);\n\n }\n\n }",
"public Ficha_epidemiologia_n13 obtenerFichaEpidemiologia() {\n\t\t\t\t\n\t\t\t\tFicha_epidemiologia_n13 ficha_epidemiologia_n13 = new Ficha_epidemiologia_n13();\n\t\t\t\tficha_epidemiologia_n13.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_ficha(tbxCodigo_ficha.getValue());\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion(tbxIdentificacion.getValue());\n\t\t\t\tficha_epidemiologia_n13.setFecha_creacion(new Timestamp(dtbxFecha_creacion.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n13.setCodigo_diagnostico(\"Z000\");\n\t\t\t\tficha_epidemiologia_n13.setFiebre(chbFiebre.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMialgias(chbMialgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCefalea(chbCefalea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setArtralgias(chbArtralgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVomito(chbVomito.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNausea(chbNausea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_retrocular(chbDolor_retrocular.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHiperemia_conjuntival(chbHiperemia_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSecrecion_conjuntival(chbSecrecion_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_pantorrillas(chbDolor_pantorrillas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDiarrea(chbDiarrea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_abdominal(chbDolor_abdominal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoptisis(chbHemoptisis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMelenas(chbMelenas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEpistaxis(chbEpistaxis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setErupcion(chbErupcion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHematuria(chbHematuria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTomiquete_postiva(chbTomiquete_postiva.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEsplenomegalia(chbEsplenomegalia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSignos_meningeos(chbSignos_meningeos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDisnea(chbDisnea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTos(chbTos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_respiratoria(chbInsuficiencia_respiratoria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHepatomeglia(chbHepatomeglia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setIctericia(chbIctericia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_hepatica(chbInsuficiencia_hepatica.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_renal(chbInsuficiencia_renal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVacuna_fiebre_amarilla(rdbVacuna_fiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_fiebre_amarilla(ibxDosis_fiebre_amarilla.getValue()!=null ? ibxDosis_fiebre_amarilla.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_a(rdbVacuna_hepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_a(ibxDosis_hepatitis_a.getValue()!=null?ibxDosis_hepatitis_a.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_b(rdbVacuna_hepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_b(ibxDosis_hepatitis_b.getValue()!=null?ibxDosis_hepatitis_b.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_leptospirosis(rdbVacuna_leptospirosis.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_leptospirosis(ibxDosis_leptospirosis.getValue()!=null?ibxDosis_leptospirosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setPerros(chbPerros.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setGatos(chbGatos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setBovinos(chbBovinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEquinos(chbEquinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPorcions(chbPorcions.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNinguno(chbNinguno.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setOtros_animal(chbOtros_animal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCual_otro(tbxCual_otro.getValue());\n\t\t\t\tficha_epidemiologia_n13.setContacto_animales(rdbContacto_animales.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_domicilio(rdbRatas_domicilio.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_trabajo(rdbRatas_trabajo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAcueducto(chbAcueducto.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPozo(chbPozo.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setRio(chbRio.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTanque_almacenamiento(chbTanque_almacenamiento.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlcantarillas(rdbAlcantarillas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setInundaciones(rdbInundaciones.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setContacto_aguas_estancadas(rdbContacto_aguas_estancadas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAntecedentes_deportivos(rdbAntecedentes_deportivos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDisposicion_residuos(rdbDisposicion_residuos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTiempo_almacenamiento(rdbTiempo_almacenamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPersonas_sintomatologia(rdbPersonas_sintomatologia.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setLeucocitosis(chbLeucocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLeucopenia(chbLeucopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutrofilia(chbNeutrofilia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutropenia(chbNeutropenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLinfocitocis(chbLinfocitocis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitosis(chbTrombocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitopenia(chbTrombocitopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoconcentracion(chbHemoconcentracion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_trasaminasas(chbAlteracion_trasaminasas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bilirrubinas(chbAlteracion_bilirrubinas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bun(chbAlteracion_bun.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_creatinina(chbAlteracion_creatinina.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCpk_elevada(chbCpk_elevada.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDengue(rdbDengue.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMalaria(rdbMalaria.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_a(rdbHepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_b(rdbHepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_c(rdbHepatitis_c.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setFiebre_amarilla(rdbFiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTipo_muestra(rdbTipo_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDestino_muestra(rdbDestino_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setOtra_muestra(tbxOtra_muestra.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCultivo(rdbCultivo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHistoquimica(rdbHistoquimica.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPcr(rdbPcr.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setElisa(rdbElisa.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMicroaglutinacion(rdbMicroaglutinacion.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPareadas(rdbPareadas.getSelectedItem().getValue().toString());\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra1.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(new Timestamp(dtbxFecha_muestra1.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(null);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra2.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(new Timestamp(dtbxFecha_muestra2.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(null);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion_serogrupos(rdbIdentificacion_serogrupos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra1(tbxTitulo_muestra1.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra2(tbxTitulo_muestra2.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento(rdbTratamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setCual_tratamiento(tbxCual_tratamiento.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento_antibiotico(tbxTratamiento_antibiotico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setDosis(ibxDosis.getValue()!=null?ibxDosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setTiempo(ibxTiempo.getValue()!=null?ibxTiempo.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setCodigo_medico(tbxCodigo_medico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCreacion_date(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setUltimo_update(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setCreacion_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n13.setUltimo_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n13.setOtro_serogrupo(tbxOtro_serogrupo.getValue());\n\n\t\t\t\treturn ficha_epidemiologia_n13;\n\t\t\t \n\t}",
"public String agregarDetalleIVAFacturaSRI()\r\n/* 418: */ {\r\n/* 419:421 */ this.servicioFacturaProveedorSRI.cargarDetalleIVARetencion(this.facturaProveedorSRI, null);\r\n/* 420: */ \r\n/* 421:423 */ return \"\";\r\n/* 422: */ }",
"float calcularFinal(){\n return (calif1*0.3f)+(calif2*0.3f)+(calif3*0.4f);// debo agregar la f para que lo tome como float y no como double\r\n }",
"private void finalizarButtonActionPerformed(java.awt.event.ActionEvent evt) {\n try{\n String val = compraFinalFormattedTextField.getText();\n val = filterVal(val);\n String nome = clientNomeTextField.getText();\n String date = dateTextField.getText();\n float total = Float.parseFloat(val);\n finances.compra currCompra = f.new compra(nome,total,metodo,date);\n currCompra.prod.addAll(realizarVenda.compra);\n Estoque.allFinances.get(Estoque.allFinances.size()-1).vendas.add(currCompra);\n Estoque.allFinances.get(Estoque.allFinances.size()-1).valorBruto += currCompra.valorTotal;\n for(produtos.produto p: currCompra.prod){\n for(produtos.produto p2:Estoque.allProdArray){\n if(p.nome.equals(p2.nome)){\n p2.quantidade -= p.quantidade;\n }\n }\n }\n realizarVenda.compra.clear();\n float temp = 0.0f;\n for(produtos.produto p:Estoque.allProdArray){\n temp += (p.quantidade*p.valor.valor_final);\n }\n Estoque.allFinances.get(Estoque.allFinances.size()-1).valorProdutos = temp;\n this.dispose();\n }catch(Exception e){\n errorTextField.setText(String.valueOf(e));\n }\n }",
"public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}",
"private void ricaricaSubAccertamenti(boolean flagPostAggiorna) {\n\t\tif(model.getAccertamentoRicaricatoDopoInsOAgg()!= null){\n\t\t\t\n\t\t\t//travaso alcuni dati:\n\t\t\tmodel.setListaSubaccertamenti(model.getAccertamentoRicaricatoDopoInsOAgg().getElencoSubAccertamenti());\n\t\t\tmodel.setDisponibilitaSubImpegnare(model.getAccertamentoRicaricatoDopoInsOAgg().getDisponibilitaSubAccertare());\n\t\t\tmodel.setTotaleSubImpegno(model.getAccertamentoRicaricatoDopoInsOAgg().getTotaleSubAccertamenti());\n\t\t\tmodel.setAccertamentoInAggiornamento(model.getAccertamentoRicaricatoDopoInsOAgg());\n\t\t\tsetAccertamentoToUpdate(model.getAccertamentoRicaricatoDopoInsOAgg());\n\t\t\t\n\t\t\t//flagPostAggiorna serve ad indicare al metodo caricaDatiAccertamento\n\t\t\t//se deve ricaricare i dati da servizio oppure basarsi su quelli presenti nel model:\n\t\t\tcaricaDatiAccertamento(flagPostAggiorna);\n\t\t\t\n\t\t\t//setto a null AccertamentoRicaricatoDopoInsOAgg\n\t\t\tmodel.setAccertamentoRicaricatoDopoInsOAgg(null);\n\t\t}\n\t}",
"private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}",
"public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }",
"private int finn(T el) {\n\t\t\n\t\t//int i = 0, \n\t\tint resultat = IKKE_FUNNET;\n\t\t\n\t\tboolean funnet = false;\n\t\tT svar = null;\n\n\t\tfor (int i = 0; ((i < bak) && (!funnet)); i++) {\n\t\t\tif (liste[i].equals(el)) {\n\t\t\t\tfunnet = true;\n\t\t\t\tsvar = liste[i];\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn resultat;\n\t}",
"public static Resultado Def_MSGD(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n int inicio=0, fin=0,cont; \n int demandaColocada=0;\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres 1=libre 0=ocupado\n /*for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n */\n \n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres POR CADA CAMINO 1=libre 0=ocupado\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n\n /*Calcular la ocupacion del espectro para cada camino k*/\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n\n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n demandaColocada=1;\n break;\n }\n }\n }\n if(demandaColocada==1){\n break;\n }\n }\n k++;\n }\n \n if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }\n /*Bloque contiguoo encontrado, asignamos los indices del espectro a utilizar \n * y retornamos el resultado. r fin e inicio son los indices del FS a usar\n */\n Resultado r= new Resultado();\n r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);\n return r;\n }",
"public void resolver(){\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras(); j++){\n\t\t\t\tif(tablero.getTablero()[i].contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tE\");\n\t\t\t\t} else if (tablero.getTablero()[i].contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tO\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Busca sentido Norte y Sur\n\t\tString aux = \"\";\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < tablero.getTamanio(); j++){\n\t\t\t\taux += tablero.getTablero()[j].charAt(i);\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras() ; j++){\n\t\t\t\tif(aux.contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tS\");\n\t\t\t\t} else if(aux.contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tN\");\n\t\t\t\t}\n\t\t\t}\n\t\t\taux = \"\";\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(\"Rapigrama1.out\"));\n\t\t\tfor(int i = 0 ; i < respuesta.size(); i++){\n\t\t\t\tpw.println(respuesta.get(i));\n\t\t\t}\n\t\t\tpw.close();\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void cadastrarOfertasQuad1(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q1.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(1);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas1LazyModel = null;\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }",
"private Filtro filtroEscludiRiga(int codice) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Campo campo = null;\n\n try { // prova ad eseguire il codice\n campo = this.getModulo().getCampoChiave();\n filtro = FiltroFactory.crea(campo, Operatore.DIVERSO, codice);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }",
"public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }",
"private int sumaCen(){\n int kasa = 0;\n for(Restauracja r :zamowioneDania){\n kasa+=r.getCena();\n }\n return kasa;\n }",
"public List<SinistroPendente_FaixaVO> validaSelecionaSinistroPendente_Faixa(int tipo) {\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tList<SinistroPendente_FaixaVO> listaTratadaTotais = new ArrayList<SinistroPendente_FaixaVO>();\n\t\tList<SinistroPendente_FaixaVO> listaSinistroPendente = null;\n\t\tList<SinistroPendente_FaixaVO> listaFinal = new ArrayList<SinistroPendente_FaixaVO>();\n\n\t\tswitch (tipo) {\n\t\tcase 1: // faixa tempo\n\t\t\tlistaSinistroPendente = listaSinistroPendenteTempo;\n\t\t\tbreak;\n\t\tcase 2:// faixa valor\n\t\t\tlistaSinistroPendente = listaSinistroPendenteValor;\n\t\t\tbreak;\n\t\t}\n\n\t\tint totalNumSinistrosPendentes_Administrativo = 0;\n\t\tint totalNumSinistrosPendentes_Judicial = 0;\n\t\tint totalNumSinistrosPendentes_Total = 0;\n\n\t\tBigDecimal totalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\n\t\tString textoGrupoAnterior = \"\";\n\n\t\t// ============================\n\t\t// esse obj serve apenas para a lista nao ficar vazia\n\t\tSinistroPendente_FaixaVO totaNulo = new SinistroPendente_FaixaVO();\n\t\ttotaNulo.setGrupo(\"vazio\");\n\t\t// ============================\n\n\t\tlistaTratadaTotais.add(totaNulo);\n\t\tfor (int i = 0; i < listaSinistroPendente.size(); i++) {\n\n\t\t\tif (i == 0) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior)) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (!(listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior))) {\n\n\t\t\t\tSinistroPendente_FaixaVO totalVO = new SinistroPendente_FaixaVO();\n\t\t\t\ttotalVO.setGrupo(textoGrupoAnterior);\n\t\t\t\ttotalVO.setFaixa(\"Total\");\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Administrativo(\n\t\t\t\t\t\ttotalValorSinistrosPendentes_Administrativo.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\t\tlistaTratadaTotais.add(totalVO);\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Judicial = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\n\t\t\t\ttotalNumSinistrosPendentes_Total = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t}\n\n\t\t}\n\t\tboolean insere = false;\n\t\tfor (int i = 0; i < listaTratadaTotais.size(); i++) {\n\t\t\tif (listaTratadaTotais.get(i).getGrupo().equalsIgnoreCase(textoGrupoAnterior)) {\n\t\t\t\tinsere = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tinsere = true;\n\t\t\t}\n\t\t}\n\t\tif (insere) {\n\t\t\tSinistroPendente_FaixaVO totaVO = new SinistroPendente_FaixaVO();\n\t\t\ttotaVO.setGrupo(textoGrupoAnterior);\n\t\t\ttotaVO.setFaixa(\"Total\");\n\t\t\ttotaVO.setValorSinistrosPendentes_Administrativo(totalValorSinistrosPendentes_Administrativo.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\n\t\t\ttotaVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\ttotaVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\ttotaVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\tlistaTratadaTotais.add(totaVO);\n\t\t}\n\t\tlistaTratadaTotais.remove(0);// remove o obj inserido acima com o texto\n\t\t\t\t\t\t\t\t\t\t// \"nulo\"\n\n\t\t// ###################################################\n\t\t// ###################################################\n\t\t// parte para calcular as porcentagens\n\t\t// ###################################################\n\n\t\t// este 'for' serve para vincular a lista de pendentes com a lista de\n\t\t// totais atraves do indice da lista de totais\n\t\ttextoGrupoAnterior = \"\";\n\t\tint tamLista = listaSinistroPendente.size();\n\t\tfor (int i = 0; i < tamLista; i++) {\n\t\t\tfor (int j = 0; j < listaTratadaTotais.size(); j++) {\n\t\t\t\tif (listaSinistroPendente.get(i).getGrupo().equalsIgnoreCase(listaTratadaTotais.get(j).getGrupo())) {\n\t\t\t\t\t// Exemplo: Na listaSinistroPendente na posicao i=5 o\n\t\t\t\t\t// produto eh \"Auto Correntista\". Na listaTratadaTotais\n\t\t\t\t\t// esse produto \"Auto Correntista\" eh j=1. Entao assim\n\t\t\t\t\t// saberei onde esta o total de \"Auto Correntista\" na\n\t\t\t\t\t// listaTratadaTotais.\n\t\t\t\t\tlistaSinistroPendente.get(i).setIndiceListaTotais(j);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// este 'for' serve para organizar as listas de pendentes e a lista de\n\t\t// totais\n\t\tint inseriu = 0;\n\t\tint ultimoIndice = 0;\n\t\tfor (int j = 0; j < listaSinistroPendente.size(); j++) {\n\n\t\t\tif (listaSinistroPendente.get(j).getIndiceListaTotais() != ultimoIndice) {\n\t\t\t\tinseriu = 0;\n\t\t\t}\n\t\t\tif (inseriu == 0) {\n\t\t\t\tlistaFinal.add(listaTratadaTotais.get(listaSinistroPendente.get(j).getIndiceListaTotais()));\n\t\t\t\tultimoIndice = listaSinistroPendente.get(j).getIndiceListaTotais();\n\t\t\t\tinseriu = 1;\n\t\t\t}\n\n\t\t\tlistaFinal.add(listaSinistroPendente.get(j));\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\t\t\tif (!(listaFinal.get(i).getFaixa().equalsIgnoreCase(\"Total\"))) {\n\n\t\t\t\tint indice = listaFinal.get(i).getIndiceListaTotais();\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Administrativo())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Administrativo())));\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(percentForm.format(\n\t\t\t\t\t\t\tnew BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Administrativo()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(\"0%\");\n\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Judicial())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Judicial())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Judicial()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Judicial()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Total())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Total())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Total()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(listaTratadaTotais.get(indice).getValorSinistrosPendentes_Total()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t}\n\n\t\t\t} // if\n\t\t} // for\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Administrativo(uteis.insereSeparadoresMoeda(roundForm\n\t\t\t\t\t.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Judicial(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Judicial()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Total(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Total()))));\n\n\t\t}\n\n\t\treturn listaFinal;\n\t}",
"public Fenetre_resultats_plaque(float debit_m_1, float debit_m_2, float capacite_th_1, float capacite_th_2, float viscosite_1, float viscosite_2, float conductivite_th_1, float conductivite_th_2, float masse_volumique_1, float masse_volumique_2, float tempc, float tempf, float longueur, float largeur, float hauteur) {\n\n Plaques plaque1;\n Finance F1;\n\n plaque1 = new Plaques(longueur, largeur, hauteur, debit_m_1, debit_m_2, capacite_th_1, capacite_th_2, tempc, tempf, masse_volumique_1, masse_volumique_2, viscosite_1, viscosite_2, conductivite_th_1, conductivite_th_2);\n F1 = new Finance();\n\n int nbre_plaques_total_main = plaque1.calcul_nbre_plaques_total();\n double surface_plaque_main = plaque1.calcul_surface_plaques();\n\n plaque1.calcul_surface_contact();\n\n double smod_main = plaque1.calcul_smod();\n\n plaque1.calcul_coeff_convection_h();\n plaque1.calcul_rth();\n plaque1.calcul_densite_couple();\n plaque1.calcul_rcharge();\n \n double pe_main = plaque1.calcul_Pe();\n\n int nbre_modules_main = plaque1.getter_nbre_modules();\n\n double prix_modules_main = F1.calcul_prix_modules(nbre_modules_main);\n if (prix_modules_main < 0) {\n prix_modules_main = 0;\n }\n \n F1.calcul_volume_plaques(surface_plaque_main, plaque1.getter_diam_tube(), plaque1.getter_epaisseur_plaque(), nbre_plaques_total_main, plaque1.getter_inter_plaque());\n \n double prix_materiaux_main = F1.calcul_prix_matiere();\n if (prix_materiaux_main < 0) {\n prix_materiaux_main = 0;\n }\n \n double prix_total_main = prix_modules_main + prix_materiaux_main;\n\n double energie_produite_main = F1.conversion_kwh(pe_main);\n double revenu_horaire_main = F1.calcul_revenu_horaire();\n double nbre_heures_main = F1.calcul_nbre_heures();\n \n DecimalFormat df2 = new DecimalFormat(\"#.##\");\n DecimalFormat df4 = new DecimalFormat(\"#.####\");\n DecimalFormat df5 = new DecimalFormat(\"#.#####\");\n DecimalFormat df7 = new DecimalFormat(\"#.#######\");\n \n\n String entetes[] = {\"Résultat\", \"Valeur\"};\n Object donnees[][] = {\n {\"Nombre de modules\", plaque1.getter_nbre_modules()},\n {\"Surface proposée (en m²)\", df5.format(plaque1.getter_surface_contact())},\n {\"Surface utilisée par les modules (en m²)\", df5.format(smod_main)},\n {\"Débit massique chaud(en m3/h)\", debit_m_1},\n {\"Débit massique froid(en m3/h)\", debit_m_2},\n {\"Température chaude (en °C)\", tempc},\n {\"Différence de température\", plaque1.getter_diff_temperature()},\n {\"Puissance électrique générée (en W)\", df2.format(pe_main)}};\n\n DefaultTableModel modele = new DefaultTableModel(donnees, entetes) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau = new JTable(modele);\n\n String entetes2[] = {\"Caractéristiques\", \"Valeurs\"};\n Object donnees2[][] = {\n {\"Surface d'un module (en m²)\", plaque1.getter_surface_module()},\n {\"Longueur d'une jambe (en m)\", df4.format(plaque1.getter_longueur_jambe())},\n {\"Surface d'une jambe (en m²)\", df7.format(plaque1.getter_surface_jambe())},\n {\"Densité de couple\", df5.format(plaque1.getter_densite_couple())},\n {\"Conductivité thermique du module (en W/m/K)\", df2.format(plaque1.getter_conduct_th_module())}\n };\n\n DefaultTableModel modele2 = new DefaultTableModel(donnees2, entetes2) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n Object donnees3[][] = {\n {\"Prix des modules (en €)\", df2.format(prix_modules_main)},\n {\"Prix de la matière première (en €)\", df2.format(prix_materiaux_main)},\n {\"Prix total échangeur (en €)\", df2.format(prix_total_main)},\n {\"Prix du kilowatt-heure\", F1.getter_prix_elec()},\n {\"Revenu horaire\", df2.format(revenu_horaire_main)},\n {\"Nbre d'heures pour remboursement\", df2.format(nbre_heures_main)}\n\n };\n String entetes3[] = {\"Caractéristiques\", \"Valeurs\"};\n\n DefaultTableModel modele3 = new DefaultTableModel(donnees3, entetes3) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau3 = new JTable(modele3);\n\n // Pour le graphique en camembert\n final JFXPanel fxPanel = new JFXPanel(); // On crée un panneau FX car on peut pas mettre des objet FX dans un JFRame\n final PieChart chart = new PieChart(); // on crée un objet de type camembert\n chart.setTitle(\"Répartition du prix de l'échangeur\"); // on change le titre de ce graph\n chart.getData().setAll(new PieChart.Data(\"Prix des modules \" + prix_modules_main + \" €\", prix_modules_main), new PieChart.Data(\"Prix du matériau \" + df2.format(prix_materiaux_main) + \" €\", prix_materiaux_main)\n ); // on implémente les différents case du camebert\n final Scene scene = new Scene(chart); // on crée une scene (FX) où l'on met le graph camembert\n fxPanel.setScene(scene);\n\n // a partir de là c'est plus le camembert\n tableau2 = new JTable(modele2);\n\n JScrollPane tableau_entete = new JScrollPane(tableau);\n JScrollPane tableau_entete2 = new JScrollPane(tableau2);\n JScrollPane tableau_entete3 = new JScrollPane(tableau3);\n\n tableau_entete.setViewportView(tableau);\n tableau_entete2.setViewportView(tableau2);\n tableau_entete3.setViewportView(tableau3);\n\n tableau_entete.setPreferredSize(new Dimension(550, 170));\n tableau_entete2.setPreferredSize(new Dimension(550, 110));\n tableau_entete3.setPreferredSize(new Dimension(550, 120));\n\n JLabel label_resultat = new JLabel(\"Resultat de la simulation\");\n JLabel label_module = new JLabel(\"Caractéristiques du module utilisé\");\n JLabel label_prix = new JLabel(\"Prix de l'échangeur\");\n \n setBounds(0, 0, 600, 950);\n setTitle(\"Résultats Technologie Plaques\");\n \n panneau = new JPanel();\n panneau.add(label_resultat);\n panneau.add(tableau_entete);\n panneau.add(label_module);\n panneau.add(tableau_entete2);\n panneau.add(label_prix);\n panneau.add(tableau_entete3);\n panneau.add(fxPanel); // on ajoute au Jframe notre panneau FX (qui contient donc UNE \"scene\" qui elle contient les object FX, ici notre camembert)\n getContentPane().add(panneau);\n \n this.setLocation(600, 0);\n this.setResizable(false);\n }",
"public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }",
"public Ruteo setCovering(){\n\t\tRuteo resultado=null;\n\t\t double time1= System.currentTimeMillis();\n\t\t Integer [][]a=new Integer[Auxiliar.OBRAS.size()][listaSetCovering.size()];\n\t\t List<Double>c=new ArrayList<Double>();\n\t\t List<Double>t=new ArrayList<Double>();\n\t\t List<Obra>listObras=Auxiliar.OBRAS;\n\t\t for(int i=0;i<listaSetCovering.size();i++){\n\t\t\t c.add(listaSetCovering.get(i).costosTotales);\n\t\t\t t.add(listaSetCovering.get(i).tiempoTotal);\n\t\t }\n\t\t for(int i=0;i<Auxiliar.OBRAS.size();i++){\n\t\t\t for(int j=0;j<listaSetCovering.size();j++){\n\t\t\t\t if(listaSetCovering.get(j).estaObraEnRuta(listObras.get(i))){\n\t\t\t\t\t a[i][j]=1;\n\t\t\t\t }else{\n\t\t\t\t\t a[i][j]=0;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t List<Integer>respuesta=new ArrayList<Integer>();\n\t\tif(fo==FO1){\n\t\t\tSetCovering sc=new SetCovering();\n\t\t\trespuesta=sc.generateModel(c, a);\n\t\t\t\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tobjval=sc.fo;\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO2){\n\t\t\tSetCovering2 sc=new SetCovering2();\n\t\t\trespuesta=sc.generateModel(c,t, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO3){\n\t\t\tSetCovering3 sc=new SetCovering3();\n\t\t\trespuesta=sc.generateModel(c, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO4){\n\t\t\tSetCovering4 sc=new SetCovering4();\n\t\t\trespuesta=sc.generateModel(c,t, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}\n\t\t double time2= System.currentTimeMillis();\n\t\t tiempoComputacionalSetCovering=(time2-time1)/1000.0;\n\t\t return resultado;\n\t}",
"public String agregarDetalleFacturaSRI()\r\n/* 405: */ {\r\n/* 406:401 */ this.servicioFacturaProveedorSRI.cargarDetalleRetencion(this.facturaProveedorSRI, null, null);\r\n/* 407: */ \r\n/* 408:403 */ return \"\";\r\n/* 409: */ }",
"@Override\n public Combinacion comprobarColores(Combinacion filaIntroducida) {\n Combinacion respuesta;\n\n\n ArrayList<Ficha> combinacionRespuesta = new ArrayList<>();\n ArrayList<Integer> fichasNegrasUtilizadas = new ArrayList<>();\n ArrayList<Integer> fichasTotalesUtilizadas = new ArrayList<>();\n boolean comprobado = false;\n Colores color = Colores.SC;\n\n // COMPROBAMOS LAS NEGRAS\n for (int i = 0; i < filaIntroducida.getCodigo().length; i++) {\n if (filaIntroducida.getCodigo()[i].equals(tablero.getCombinacionOculta().getCodigo()[i])) {\n combinacionRespuesta.add(new Ficha(Colores.NEGRO));\n fichasNegrasUtilizadas.add(i);\n }\n }\n\n fichasTotalesUtilizadas.addAll(fichasNegrasUtilizadas);\n // SEPARAMOS NEGRAS DE BLANCAS\n\n for (int i = 0; i < filaIntroducida.getCodigo().length; i++) {\n if (!fichasNegrasUtilizadas.contains(i)) {\n for (int j = 0; j < filaIntroducida.getCodigo().length && !comprobado; j++) {\n if (!fichasTotalesUtilizadas.contains(j)) {\n if (filaIntroducida.getCodigo()[i].equals(tablero.getCombinacionOculta().getCodigo()[j])) {\n color = Colores.BLANCO;\n fichasTotalesUtilizadas.add(j);\n comprobado = true;\n } else {\n color = Colores.SC;\n }\n }\n }\n combinacionRespuesta.add(new Ficha(color));\n comprobado = false;\n }\n }\n\n combinacionRespuesta.sort(new Comparator<Ficha>() {\n @Override\n public int compare(Ficha o1, Ficha o2) {\n return o1.getColor().compareTo(o2.getColor());\n }\n });\n\n respuesta = new Combinacion(combinacionRespuesta.toArray(new Ficha[combinacionRespuesta.size()]));\n\n // MODO MEDIO Y FACIL\n\n return respuesta;\n }",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"private void remplirFabricantData() {\n\t}",
"public Familia(String cedulaFam,Persona per,Persona per2)\n {\n cedulaFamiliar = cedulaFam;\n used = true;\n activa = true;\n asociado1 = per;\n asociado2 = per2;\n //cabeza=per;\n hijos_Ambos=null;\n hijos_Adoptados=null; \n next=null;\n }",
"private void creaAddebitiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n boolean continua;\n Filtro filtro;\n int[] interi;\n ArrayList<Integer> codici = null;\n Modulo modAddFisso;\n Modulo modConto;\n boolean chiuso;\n\n try { // prova ad eseguire il codice\n\n /* controllo se il conto e' aperto */\n modConto = Albergo.Moduli.Conto();\n chiuso = modConto.query().valoreBool(Conto.Cam.chiuso.get(), codConto);\n continua = (!chiuso);\n\n if (continua) {\n\n /* filtro che isola gli addebiti fissi da eseguire\n * per il giorno e il conto dati */\n filtro = this.getFiltroFissiGiornoConto(data, codConto);\n continua = filtro != null;\n\n /* crea elenco dei codici addebito fisso da elaborare */\n if (continua) {\n modAddFisso = Albergo.Moduli.AddebitoFisso();\n interi = modAddFisso.query().valoriChiave(filtro);\n codici = Lib.Array.creaLista(interi);\n }// fine del blocco if\n\n /* crea un addebito effettivo per ogni addebito fisso */\n if (codici != null) {\n for (int cod : codici) {\n this.creaSingoloAddebito(cod, data);\n } // fine del ciclo for-each\n }// fine del blocco if\n\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }",
"private StringBuilder rellenarFila(StringBuilder fila, int luces_encendidas, int cantidad_de_iteraciones) {\r\n\r\n\t\tfor (int i = luces_encendidas; i < cantidad_de_iteraciones; i++) {\r\n\t\t\tfila.append(Luces.APAGADO.getLuz());\r\n\t\t}\r\n\t\treturn fila;\r\n\t}",
"public void suma(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n }\n }",
"int getSumaAdunata();",
"public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Individuo Recombinar(Individuo padre, Individuo madre) {\n Individuo hijo = new Individuo(padre.getCAMINOS());\r\n Individuo hijo2 = new Individuo(madre.getCAMINOS());\r\n for (int i = 0; i < padre.getEntradas_individuo().size(); i++) {\r\n if (i < padre.getCAMINOS() / 2) {\r\n Entradas entrada_1 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_1.setValores((ArrayList<Integer>) padre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_1.setEntradas((ArrayList<String>) padre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_1.setCamino_cubierto(padre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n Entradas entrada_2 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_2.setValores((ArrayList<Integer>) madre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_2.setEntradas((ArrayList<String>) madre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_2.setCamino_cubierto(madre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n hijo.getEntradas_individuo().add(entrada_1); \r\n hijo2.getEntradas_individuo().add(entrada_2);\r\n } else {\r\n Entradas entrada_1 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_1.setValores((ArrayList<Integer>) madre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_1.setEntradas((ArrayList<String>) madre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_1.setCamino_cubierto(madre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n Entradas entrada_2 = new Entradas(this.ENTRADAS,this.SUPERIOR,this.INFERIOR);\r\n entrada_2.setValores((ArrayList<Integer>) padre.getEntradas_individuo().get(i).getValores().clone());\r\n entrada_2.setEntradas((ArrayList<String>) padre.getEntradas_individuo().get(i).getEntradas().clone());\r\n entrada_2.setCamino_cubierto(padre.getEntradas_individuo().get(i).getCamino_cubierto());\r\n hijo.getEntradas_individuo().add(entrada_1); \r\n hijo2.getEntradas_individuo().add(entrada_2);\r\n }\r\n }\r\n hijo.caminos_posibles = padre.caminos_posibles;\r\n hijo.caminos_cubiertos = padre.caminos_cubiertos;\r\n hijo2.caminos_posibles = madre.caminos_posibles;\r\n hijo2.caminos_cubiertos = madre.caminos_cubiertos;\r\n Document doc_copy_1 = (Document) this.doc.cloneNode(true);\r\n Document doc_copy_2 = (Document) this.doc.cloneNode(true);\r\n //Mutar(hijo);\r\n //Mutar(hijo2);\r\n hijo.EvaluarIndividuo(doc_copy_1);\r\n hijo2.EvaluarIndividuo(doc_copy_2);\r\n individuos.add(hijo);\r\n individuos.add(hijo2);\r\n if(hijo.getEvaluacion() > hijo2.getEvaluacion())\r\n {\r\n return hijo;\r\n }\r\n else\r\n {\r\n return hijo2;\r\n }\r\n }",
"@Override\r\n\tpublic String update(FicheColisageValue ficheColisageValue) {\n\t\tLong nombrePaquet = ZERO_L;\r\n\t\tLong quantiteEclate = ZERO_L;\r\n\t\t\r\n\t\tif(ficheColisageValue.getListColis() != null){\r\n\t\t\t\r\n\t\t\tif (ficheColisageValue.getColPalette() != null && ficheColisageValue.getColPalette() == true)\r\n\t\t\t{\r\n\t\t\t\tRechercheMulticritereBonSortieFiniValue request;\r\n\t\t\t for (ColisValue cv:ficheColisageValue.getListColis())\r\n\t\t\t {\r\n\t\t\t \tif (cv.getOrdrePalette() != null && cv.getOrdrePalette().equals(\"\")) cv.setOrdrePalette(null);\r\n\t\t\t \t\t\r\n\t\t\t \tif (cv.getRefPalette() != null)\r\n\t\t\t \t{\r\n\t\t\t \t\tif (!cv.getRefPalette().equals(\"\"))\r\n\t\t\t \t\t{\r\n\t\t\t \t\t\trequest= new RechercheMulticritereBonSortieFiniValue();\r\n\t\t\t\t \t\trequest.setReferenceBon(cv.getRefPalette());\r\n\t\t\t\t \t\tResultatRechecheBonSortieFiniValue res = bonSortieFiniDomain.rechercherMultiCritere(request);\r\n\t\t\t\t \t\t\r\n\t\t\t\t \t\tif (res != null) \r\n\t\t\t\t \t\t{\r\n\t\t\t\t \t\t\tif (res.getNombreResultaRechercher() > 0)\r\n\t\t\t\t \t\t\t{\r\n\t\t\t\t \t\t\t\tcv.setBonSortie(res.getList().iterator().next().getId());\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\telse \r\n\t\t\t \t\t{\r\n\t\t\t \t\t\tcv.setBonSortie(null);\r\n\t\t\t \t\t\tcv.setOrdrePalette(null);\r\n\t\t\t \t\t\tcv.setFictif(null);\r\n\t\t\t \t\t}\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tnombrePaquet = Long.valueOf(ficheColisageValue.getListColis().size());\r\n\t\t\t\r\n\t\t\tfor(ColisValue element : ficheColisageValue.getListColis()){\r\n\t\t\t\t\r\n\t\t\t\tquantiteEclate = quantiteEclate + ((element.getQuantite() != null) ? element.getQuantite() : ZERO_L);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tficheColisageValue.setQuantiteColis(quantiteEclate);\r\n\t\t\tficheColisageValue.setNombreColis(nombrePaquet);\r\n\t\t\r\n\t\t\r\n\t\t\tif(ficheColisageValue.getOrdreFabricationNumero()!=null){\r\n\t\t\t\tOrdreFabricationValue ordreFabrication =ordreFabricationPersistence.getByNumero(ficheColisageValue.getOrdreFabricationNumero());\r\n\t\t\t \r\n\t\t\t\tif(ordreFabrication!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\tficheColisageValue.setOrdreFabricationId(ordreFabrication.getId());\r\n\t\t\t\t\t////System.out.println(\"/***********ordreFabrication.getQtColisage() : \"+ordreFabrication.getQtColisage());\r\n\t\t\t\t\t////System.out.println(\"/*//////////////////////ficheColisageValue.getQuantiteColisBefore() : \"+ficheColisageValue.getQuantiteColisBefore());\r\n\t\t\t\t//\t//System.out.println(\"/*//////////////ficheColisageValue.getQuantiteColis() : \"+ficheColisageValue.getQuantiteColis());\r\n\t\t\t\t\t\r\n\t\t\t\tordreFabrication.setQtColisage(ordreFabrication.getQtColisage()-ficheColisageValue.getQuantiteColisBefore()+ficheColisageValue.getQuantiteColis());\r\n\t\t\t//\tordreFabrication.setSolder(ficheColisageValue.getSolder());\r\n\t\t\t\t ordreFabricationPersistence.modifierOrdreFabrication(ordreFabrication);\r\n\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t/*\tLong quantiteTotale = ZERO_L;\r\n\t\t\r\n\t\tif(ficheColisageValue.getListDetails()!=null){\r\n\t\t\t\r\n\t\t\tfor (DetailsColisageValue det:ficheColisageValue.getListDetails()){\r\n\t\t\t\tquantiteTotale+=det.getQuantite();\r\n\t\t\t}\r\n\t\t\tficheColisageValue.setQuantiteTotale(quantiteTotale);\r\n\t\t} */\r\n\t\t\r\n\t}\r\n\t\tPartieInteresseValue partieInteresseValue=partieInteressePersistance.recherchePartieInteresseeParId(ficheColisageValue.getClientId());\r\n\t\tficheColisageValue.setClientAbreviation(partieInteresseValue.getAbreviation());\r\n ficheColisageValue.setClientReference(partieInteresseValue.getReference());\t\r\n\t\t\r\n\t\treturn ficheColisagePersistance.update(ficheColisageValue);\r\n\t}",
"private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public void cadastrarOfertasQuad3(){\n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q3.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(3);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas3LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }",
"public static int ruolette(ArrayList<Integer> fitvalores, ArrayList<int[]> poblacion, int semilla){ \n int totalfitnes = 0;\n int totalfitnesnuevo = 0;\n int indtablero = 0;\n int semi=semilla;\n int tpoblacion=poblacion.size();\n int []nuevofitness = new int [fitvalores.size()];\n double []nproporcion = new double [fitvalores.size()];\n ArrayList <Double> proporcion = new ArrayList<>();//proporcion j la ruleta\n ArrayList <Double> ruleta = new ArrayList<>();\n //obtener el max fitnes\n for(int i=0;i<fitvalores.size();i++){ //total de fitnes\n totalfitnes=totalfitnes+fitvalores.get(i);\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el nuevo fittnes inverso\n double pro=(tpoblacion*tpoblacion-tpoblacion)-fitvalores.get(i);\n nuevofitness[i]= (int) pro;\n // System.out.println(\"nuevo fitnes\"+nuevofitness[i]);\n } \n for(int i=0;i<fitvalores.size();i++){ //total de fitnes nuevo o inverso\n totalfitnesnuevo=(totalfitnesnuevo+nuevofitness[i]);//para que los mejores casos usen mas espacio\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n double var1=nuevofitness[i];\n double var2=totalfitnesnuevo;\n double pro=var1/var2;\n nproporcion[i]=pro;\n //System.out.println(\"nueva proporcion \"+nproporcion[i]);\n } \n ruleta.add(nproporcion[0]);\n // System.out.println(\"primera propporniaso \"+nproporcion[0]);\n for(int i=1;i<fitvalores.size();i++){ //poner datos en la ruleta\n double var1=ruleta.get(i-1);\n double var2=nproporcion[i];\n ruleta.add(var1+var2);\n //System.out.println(\"ruleta \"+ruleta.get(i));\n }\n double num=randomadec(0,1,semi);\n // System.out.println(\"numero random dec \"+num); \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n // System.out.println(ruleta.get(i));\n if(num<ruleta.get(i)){\n indtablero=i;\n //System.out.println(\"se guardo el tablero \"+indtablero);\n break;\n }\n }\n return indtablero;//esto devuelve el indice del tablero ganador en la ruleta\n }",
"@Override\n public void endElement(String uri, String localName,\n String qName) throws SAXException {\ntry{\n if (currentField.equals(\"vypis\")) {\n String hodnota = stringBuffer.toString();\n scanner = new Scanner(hodnota);\n while (scanner.hasNextLine()) {\n String veta=scanner.nextLine();\n //tady otchytavam vety tarifikace\n\n System.out.println(veta);\n //String[] radky = veta.split(\"\\n\");\n //for (int radek=0;radek<radky.length;radek++){\n // System.out.println(\"tak radek \"+ radek + \" : \"+radky[radek]);\n String[] temp = veta.split(\";\");// radky[radek].split(\";\"); //rozdelim string po castech do pole sringu, oddelovac je strednik\n // System.out.println(\"velikost vety je:\"+temp.length);\n if (temp.length == 13) { //pravidelne na stejnem vzorku se vzdy stane po x desitkach radek, ze neni vse, posledni znak je utnut a vlozen jako jediny do dalsiho value\n String sql = \"insert into tarifikace(_z,_na,pole2,kdy,priznak1,priznak2,popis,pole7,delka,pole10,pole11,pole12,pole13) values('\" + temp[0].trim() + \"','\" + temp[1] + \"','\" + temp[2] + \"','\" + temp[3] + \"','\" + temp[4] + \"','\" + temp[5] + \"','\" + temp[6] + \"','\" + temp[7] + \"',\" + temp[8] + \",'\" + temp[9] + \"','\" + temp[10] + \"','\" + temp[11] + \"','\" + temp[12] + \"')\";\n \n try {\n if(d.existujeTarifikace(temp[0].trim(),temp[1], temp[3]))\n {\n //System.out.println(\"sql :\" + sql);\n Menu.log1.info(\"Tarifikace: linka \"+temp[0]+\" cil \"+temp[1]+\" datum \"+temp[3]+\" delka\"+temp[8]);\n d.update(sql);\n if (temp[11].length() < 1) {\n temp[11] = \"0\";// a mam tu problem trun se jmenuje \"vyskocilova\" tak dam natvrdo \"0\"\n }\n if (temp[5].contains(\"Y\")) {\n Menu.single.execute(new Caracas(c.tatifikace(temp[0].trim(), temp[1], temp[3], Integer.parseInt(temp[8]), \"0\")));//c.zapis(c.tatifikace(temp[0].trim(), temp[1], temp[3], Integer.parseInt(temp[8]), \"0\"));\n }}else{\n //System.out.println(\"zaznam jiz v tarifikaci existuje\");\n }\n } catch (Exception ex) {\n Menu.log1.severe(\"Chyba - sql: \"+sql);\n Logger.getLogger(LinkyHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n //System.out.println(\"Zaznam \"+temp + \"ma delku: \" + temp.length);\n }//}\n }\n\n\n\n }\n }catch (NullPointerException ne){\n //System.out.println(\"Tak currenfield je null\");\n }\n currentField = null;\n }",
"public static Nodo busqueda(Nodo arbol, int fija) {\n\n if (fija > arbol.info) {\n if (arbol.der.info != fija || arbol.der.info == fija) {\n if (fija == arbol.der.info) {\n tmp = arbol.der;\n\n } else {\n busqueda(arbol.der, fija);\n }\n }\n }//Este es el fin del Primer if\n else {\n if (arbol.izq.info != fija || arbol.izq.info == fija) {\n if (fija == arbol.izq.info) {\n tmp = arbol.izq;\n// break;\n } else {\n busqueda(arbol.izq, fija);\n }\n }\n }\n return tmp;\n }",
"public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}",
"public int recuperar() {\r\n\t if (raiz == null)\r\n\t return -99999;\r\n\t ;\r\n\t int x = raiz.dato;\r\n\t raiz = raiz.sig;\r\n\t return x;\r\n\t }",
"public float calculTauxErreurBinaire() {\n \n \tint nbElementsEmis = source.getInformationEmise().nbElements() ;\n int nbBitsFaux = 0 ;\n \tint i ;\n \tfor(i=0;i<nbElementsEmis;i++){\n \t\tif(source.getInformationEmise().iemeElement(i) != destination.getInformationRecue().iemeElement(i)){\n \t\t\tnbBitsFaux++ ;\n \t\t}\t\n \t}\n \t\t\n \tif(nbBitsFaux != 0)\t\n return (float)nbElementsEmis/(float)nbBitsFaux;\n \telse\n \t\treturn 0.0f ;\n }",
"private static Date sumarORestarFecha(Date fecha, int field, int value){\n\t\tCalendar calendar = GregorianCalendar.getInstance();\n\t\tDate fechaTemp = calendar.getTime();\n\t\tif(fecha!=null){\n\t\t\tcalendar.setTime(fecha);\n\t\t\tcalendar.add(field, value);\n\t\t\tfecha = calendar.getTime();\n\t\t\tcalendar.setTime(fechaTemp);\n\t\t}\n\t\treturn fecha;\n\t}",
"public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }",
"private AtualizarContaPreFaturadaHelper parserRegistroTipo2(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\t\tSystem.out.println(\"Tipo de Retorno: \" + retorno.tipoRegistro);\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\t\tSystem.out.println(\"Matricula do Imovel: \" + retorno.matriculaImovel);\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Valor faturado agua\r\n\t\tretorno.valorFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_AGUA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorTarifaMinimaAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA;\r\n\r\n\t\t// Consumo Minimo de Agua\r\n\t\tretorno.consumoMinimoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA;\r\n\r\n\t\t// Valor faturado esgoto\r\n\t\tretorno.valorFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO;\r\n\r\n\t\t// Valor tarifa minima de esgoto\r\n\t\tretorno.valorTarifaMinimaEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO;\r\n\r\n\t\t// Consumo Minimo de esgoto\r\n\t\tretorno.consumoMinimoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO;\r\n\t\t\r\n\t\t// Consumo Minimo de esgoto \r\n\t\t/*\r\n\t\tretorno.subsidio = linha.substring(index + 2, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA);\r\n\t\tindex += REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA;\r\n\t\t*/\r\n\t\treturn retorno;\r\n\t}",
"public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }",
"public void enfoncerEgal() {\n\t\tthis.pile.push(this.valC);\n\t\tthis.raz = true;\n\t}",
"public BigDecimal obtenerValorExpresion(DetalleReporteadorVariable detalleVariable, Date fechaDesde, Date fechaHasta, int idSucursal, Map<Integer, BigDecimal> mapaValorVariables)\r\n/* 202: */ throws AS2Exception, IllegalArgumentException, ArithmeticException\r\n/* 203: */ {\r\n/* 204:219 */ Integer key = Integer.valueOf(detalleVariable.getId());\r\n/* 205:220 */ String expresion = detalleVariable.getExpresion();\r\n/* 206: */ \r\n/* 207:222 */ BigDecimal valorSaldoCuenta = BigDecimal.ZERO;\r\n/* 208:224 */ if (mapaValorVariables == null) {\r\n/* 209:225 */ mapaValorVariables = new HashMap();\r\n/* 210: */ }\r\n/* 211:229 */ if (mapaValorVariables.containsKey(key)) {\r\n/* 212:230 */ return (BigDecimal)mapaValorVariables.get(key);\r\n/* 213: */ }\r\n/* 214:232 */ if ((detalleVariable.isIndicadorFormula()) && ((expresion == null) || (expresion.trim().isEmpty()))) {\r\n/* 215:233 */ return BigDecimal.ZERO;\r\n/* 216: */ }\r\n/* 217:237 */ if (!detalleVariable.isIndicadorFormula())\r\n/* 218: */ {\r\n/* 219:239 */ List<CuentaContable> listaCuentas = new ArrayList();\r\n/* 220:240 */ if (detalleVariable.getCuentaContable() != null)\r\n/* 221: */ {\r\n/* 222:241 */ if (detalleVariable.getCuentaContable().isIndicadorMovimiento())\r\n/* 223: */ {\r\n/* 224:242 */ listaCuentas.add(detalleVariable.getCuentaContable());\r\n/* 225: */ }\r\n/* 226: */ else\r\n/* 227: */ {\r\n/* 228:245 */ Map<String, String> filters = new HashMap();\r\n/* 229:246 */ filters.put(\"codigo\", detalleVariable.getCuentaContable().getCodigo() + \"%\");\r\n/* 230:247 */ filters.put(\"indicadorMovimiento\", \"true\");\r\n/* 231:248 */ filters.put(\"idOrganizacion\", \"\" + detalleVariable.getIdOrganizacion());\r\n/* 232:249 */ listaCuentas = this.servicioCuentaContable.obtenerListaCombo(\"codigo\", true, filters);\r\n/* 233: */ }\r\n/* 234:252 */ List<Object[]> saldos = this.servicioCuentaContable.obtenerValores(fechaDesde, fechaHasta, detalleVariable.getIdOrganizacion(), listaCuentas, detalleVariable\r\n/* 235:253 */ .getValoresCalculo(), detalleVariable.getTipoCalculo(), false, idSucursal, null, null);\r\n/* 236:255 */ for (Object[] objects : saldos) {\r\n/* 237:256 */ if (objects[1] != null) {\r\n/* 238:257 */ valorSaldoCuenta = valorSaldoCuenta.add((BigDecimal)objects[1]);\r\n/* 239: */ }\r\n/* 240: */ }\r\n/* 241:261 */ valorSaldoCuenta = valorSaldoCuenta.setScale(2, RoundingMode.HALF_UP);\r\n/* 242: */ \r\n/* 243:263 */ mapaValorVariables.put(key, valorSaldoCuenta);\r\n/* 244: */ }\r\n/* 245:265 */ return valorSaldoCuenta;\r\n/* 246: */ }\r\n/* 247:269 */ Map<String, Double> mapaVariables = new HashMap();\r\n/* 248:270 */ Set<String> setVariables = new HashSet();\r\n/* 249:271 */ for (DetalleReporteadorVariable detalleRelacionado : detalleVariable.getListaDetalleVariablesExpresion())\r\n/* 250: */ {\r\n/* 251:272 */ BigDecimal valorVariableRelacionada = (BigDecimal)mapaValorVariables.get(Integer.valueOf(detalleRelacionado.getId()));\r\n/* 252:273 */ if (valorVariableRelacionada == null) {\r\n/* 253:274 */ valorVariableRelacionada = obtenerValorExpresion(detalleRelacionado, fechaDesde, fechaHasta, idSucursal, mapaValorVariables);\r\n/* 254: */ }\r\n/* 255:276 */ mapaVariables.put(detalleRelacionado.getCodigo(), Double.valueOf(valorVariableRelacionada.doubleValue()));\r\n/* 256:277 */ setVariables.add(detalleRelacionado.getCodigo());\r\n/* 257: */ }\r\n/* 258:280 */ Expression expresionBuild = new ExpressionBuilder(expresion).variables(setVariables).build();\r\n/* 259:281 */ expresionBuild.setVariables(mapaVariables);\r\n/* 260:282 */ valorSaldoCuenta = new BigDecimal(expresionBuild.evaluate()).setScale(2, RoundingMode.HALF_UP);\r\n/* 261:283 */ mapaValorVariables.put(key, valorSaldoCuenta);\r\n/* 262:284 */ return valorSaldoCuenta;\r\n/* 263: */ }",
"public IFilialAux vendaToFilial();",
"private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }",
"public void ComprarEdificio(int tipo){\n if(edificios[tipo].tipoCompra.equals(\"oro\")){\n if(aldea.oro >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar oro de edificio\n aldea.gastarOro(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro de culminacion\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldOro.setText(String.valueOf((int)aldea.oro));\n }\n }\n }else{\n if(aldea.elixir >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar elixir de edificio\n aldea.gastarElixir(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldElixir.setText(String.valueOf((int)aldea.elixir));\n }\n }\n }\n }",
"public int eliminardelfinal(){\n int elemento=fin.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n fin=fin.anterior;\n fin.siguiente=null;}\n return elemento;\n }",
"public void ingresarUbigeo() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo1);\r\n\t\t\tubigeoDefecto = \"otro ubigeo\";\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento)) {\r\n\t\t\tubigeoDefecto = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo1)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t}",
"public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }",
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}",
"public static void main(String[] args) {\n ArrayList<Integer> taszkok = new ArrayList<>();\r\n String text = null;\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n text = reader.readLine();\r\n\r\n String[] taszkfeltolt = text.split(\",\");\r\n for(int i = 0; i<taszkfeltolt.length ;i++){\r\n taszkok.add(Integer.parseInt(taszkfeltolt[i])) ;\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n\r\n }\r\n\r\n int laphibak=0;\r\n ArrayList<String> abc = new ArrayList<>();\r\n ArrayList<Integer> fagyi = new ArrayList<>();\r\n ArrayList<Integer> szam = new ArrayList<>();\r\n for(int i = 0; i<taszkok.size();i++){\r\n boolean csillag=false;\r\n boolean nemvoltlaphiba=false;\r\n int fagyilesz=-1;\r\n //System.out.print(taszkok.get(i));\r\n\r\n if(0>taszkok.get(i)){\r\n //valami történik\r\n taszkok.set(i, taszkok.get(i)*(-1));\r\n fagyilesz=0;\r\n }\r\n if(abc.size()<3){\r\n\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){\r\n if (abc.size()==2){\r\n abc.add(\"C\");\r\n System.out.print(\"C\");\r\n }\r\n else if (abc.size()==1){\r\n abc.add(\"B\");\r\n System.out.print(\"B\");\r\n }\r\n else if (abc.size()==0){\r\n abc.add(\"A\");\r\n System.out.print(\"A\");\r\n }\r\n szam.add(taszkok.get(i));\r\n if(fagyilesz!=0){\r\n fagyi.add(4); // a kör végén ugy is csökkentem 1el elsőre is\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n //System.out.print(abc);\r\n int tempfagyi=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n if(fagyilesz!=0){\r\n fagyi.add(tempfagyi);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n //System.out.print(temp+\"e,\");\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n }\r\n else if(abc.size()==3){\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){ //ha ez egy uj szam\r\n int hanyadikbet=vanszabad(fagyi);\r\n if(hanyadikbet!=-1){\r\n String temp=abc.get(hanyadikbet);\r\n szam.remove(hanyadikbet);\r\n szam.add(taszkok.get(i));\r\n abc.remove(hanyadikbet); //a tömb végére rakom és 4 ra allitom a fagyasztast\r\n abc.add(temp);\r\n\r\n fagyi.remove(hanyadikbet);\r\n if(fagyilesz!=0){\r\n fagyi.add(4);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n\r\n System.out.print(temp);\r\n }\r\n else{\r\n csillag=true;\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n int fagyitemp=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n fagyi.add(fagyitemp);\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n\r\n }\r\n\r\n if (csillag==true){\r\n System.out.print(\"*\");\r\n }\r\n if(nemvoltlaphiba==true){\r\n System.out.print(\"-\");\r\n }\r\n else{\r\n laphibak++;\r\n }\r\n for(int j = 0; j<fagyi.size();j++){\r\n if(fagyi.get(j)!=0){\r\n fagyi.set(j,fagyi.get(j)-1); //csokkentem a fagyasztast\r\n }\r\n }\r\n }\r\n\r\n\r\n System.out.println();\r\n System.out.print(laphibak);\r\n }",
"public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"private AtualizarContaPreFaturadaHelper parserRegistroTipo1(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Tipo de medição\r\n\t\tretorno.tipoMedicao = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_MEDICAO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_MEDICAO;\r\n\r\n\t\t// Ano e mes do faturamento\r\n\t\tretorno.anoMesFaturamento = Util.formatarMesAnoParaAnoMes(linha\r\n\t\t\t\t.substring(index, index + REGISTRO_TIPO_1_ANO_MES_FATURAMENTO));\r\n\t\tindex += REGISTRO_TIPO_1_ANO_MES_FATURAMENTO;\r\n\r\n\t\t// Numero da conta\r\n\t\tretorno.numeroConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_NUMERO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo do Grupo de faturamento\r\n\t\tretorno.codigoGrupoFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO;\r\n\r\n\t\t// Codigo da rota\r\n\t\tretorno.codigoRota = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_ROTA);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_ROTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro\r\n\t\tretorno.leituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO;\r\n\r\n\t\t// Anormalidade de Leitura\r\n\t\tretorno.anormalidadeLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_LEITURA;\r\n\r\n\t\t// Data e Hora Leitura\r\n\t\tretorno.dataHoraLeituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_DATA_HORA_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_DATA_HORA_LEITURA;\r\n\r\n\t\t// Indicador de Confirmacao\r\n\t\tretorno.indicadorConfirmacaoLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA;\r\n\r\n\t\t// Leitura do Faturamento\r\n\t\tretorno.leituraFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_FATURAMENTO;\r\n\r\n\t\t// Consumo Medido no mes\r\n\t\tretorno.consumoMedido = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_MEDIDO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_MEDIDO;\r\n\r\n\t\t// Consumo a ser cobrado\r\n\t\tretorno.consumoASerCobradoMes = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES;\r\n\r\n\t\t// Consumo rateio agua\r\n\t\tretorno.consumoRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA;\r\n\r\n\t\t// Valor rateio agua\r\n\t\tretorno.valorRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_AGUA;\r\n\r\n\t\t// Consumo rateio esgoto\r\n\t\tretorno.consumoRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO;\r\n\r\n\t\t// Valor rateio esgoto\r\n\t\tretorno.valorRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO;\r\n\r\n\t\t// Tipo de consumo\r\n\t\tretorno.tipoConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_CONSUMO;\r\n\r\n\t\t// Anormalidade de consumo\r\n\t\tretorno.anormalidadeConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO;\r\n\r\n\t\t// Indicador de emissao de conta\r\n\t\tretorno.indicacaoEmissaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA;\r\n\r\n\t\t// Inscricao\r\n\t\tString inscricao = \"\";\r\n\t\tinscricao = linha.substring(index, index + REGISTRO_TIPO_1_INSCRICAO);\r\n\t\tformatarInscricao(retorno, inscricao);\r\n\t\tindex += REGISTRO_TIPO_1_INSCRICAO;\r\n\r\n\t\t// Indicador Geração da conta\r\n\t\tretorno.indicadorGeracaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA;\r\n\r\n\t\t// consumo imóveis vinculados\r\n\t\tretorno.consumoImoveisVinculados = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS;\r\n\r\n\t\t// anormalidade de faturamento\r\n\t\tretorno.anormalidadeFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO;\r\n\r\n\t\t// Id Cobrança Documento\r\n\t\tretorno.idCobrancaDocumento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_COBRANCA_DOCUMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro anterior\r\n\t\tretorno.leituraHidrometroAnterior = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR;\r\n\r\n\t\t\r\n\t\tif (linha.length() > 200) {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = linha.substring( index, index + REGISTRO_TIPO_1_LATITUDE );\r\n\t\t\tindex += REGISTRO_TIPO_1_LATITUDE;\r\n\r\n\t\t\t// Longitude\r\n\t\t\tretorno.longitude = linha.substring( index, index + REGISTRO_TIPO_1_LONGITUDE );\r\n\t\t\t index += REGISTRO_TIPO_1_LONGITUDE;\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t} else {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = \"0\";\r\n\r\n\t\t\t// Longitude\r\n\t\t\t retorno.longitude = \"0\";\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}",
"public BigDecimal calcolaImportoTotaleRilevanteIVASubdoumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()) {\n\t\t\tif(Boolean.TRUE.equals(ds.getFlagRilevanteIVA())) {\n\t\t\t\tresult = result.add(ds.getImporto());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public void notaFinal() {\n\n for (int i = 0; i <= (nombres.size() - 1); i++) {\n\n notaFinal.add((notas.get(0) + notas.get(1) + notas.get(2)) / 3);\n\n }\n\n }",
"public DuploQuantidadeFaturacao(){\r\n faturacao = 0;\r\n quantidade = 0;\r\n }",
"public String agregarDetalleFacturaSRI332()\r\n/* 412: */ {\r\n/* 413:415 */ this.servicioFacturaProveedor.agregarDetalleFacturaSRI332(this.facturaProveedorSRI);\r\n/* 414:416 */ return \"\";\r\n/* 415: */ }",
"public int extraer ()\n {\n if (raiz!=null)\n {\n int informacion = raiz.edad;\n raiz = raiz.sig;\n return informacion;\n }\n else\n {\n System.out.println(\"La lista se encuentra vacia\");\n return 0;\n }\n }",
"public void liquidarEmpleado(Fecha fechaLiquidacion) {\n //COMPLETE\n double prima=0; \n boolean antiguo=false;\n double aniosEnServicio=fechaLiquidacion.getAnio()-this.fechaIngreso.getAnio();\n if(aniosEnServicio>0&&\n fechaLiquidacion.getMes()>this.fechaIngreso.getMes())\n aniosEnServicio--; \n \n //System.out.println(\"A:\"+aniosEnServicio+\":\"+esEmpleadoLiquidable(fechaLiquidacion));\n if(esEmpleadoLiquidable(fechaLiquidacion)){\n this.descuentoSalud=salarioBase*0.04;\n this.descuentoPension=salarioBase*0.04;\n this.provisionCesantias=salarioBase/12;\n if(fechaLiquidacion.getMes()==12||fechaLiquidacion.getMes()==6)\n prima+=this.salarioBase*0.5; \n if(aniosEnServicio<6&&\n fechaLiquidacion.getMes()==this.fechaIngreso.getMes())prima+=((aniosEnServicio*5)/100)*this.salarioBase;\n if(aniosEnServicio>=6&&fechaLiquidacion.getMes()==this.fechaIngreso.getMes()) prima+=this.salarioBase*0.3;\n\n this.prima=prima;\n this.setIngresos(this.salarioBase+prima);\n \n this.setDescuentos(this.descuentoSalud+this.descuentoPension);\n this.setTotalAPagar(this.getIngresos()-this.getDescuentos());\n }\n\n }",
"public Nodo espaciosJustos(Nodo nodo){\n System.out.println(\"----------------inicio heuristica espaciosJustos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n int changue=0;\n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i=0;i<numFilas;i++){\n auxListFila = (ArrayListFila)filas.get(i);\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n\n if(auxColor.getNumero() > 0){\n int contador=0;\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n contador++;\n }\n }\n }\n }\n \n if(auxColor.getNumero() == contador){\n changue=1;\n cambio=1;\n auxColor.setNumero(0);\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n \n auxColor1.setNumero(auxColor1.getNumero()-1);\n\n matriz = operadores.pintarPosicion(matriz, i, c, auxColor.getColor());\n\n nodo.setMatriz(matriz);\n }\n }\n }\n }\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n \n \n }\n }\n }\n }\n \n }\n if(changue==1) nodo.setCambio(1);\n System.out.println(\"----------------fin heuristica espaciosJustos-------------- \");\n return (Nodo)nodo;\n }",
"private AtualizarContaPreFaturadaHelper parserRegistroTipo3(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Limite Inicial do Consumo na Faixa\r\n\t\tretorno.limiteInicialConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Limite Final do consumo na Faixa\r\n\t\tretorno.limiteFinalConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Agua na Faixa\r\n\t\tretorno.valorTarifaAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Esgoto na Faixa\r\n\t\tretorno.valorTarifaEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\treturn retorno;\r\n\t}",
"public String darPista() {\r\n\t\tString msj = \"\";\r\n\t\tboolean fin = false;\r\n\t\tfor (int i = 0; i < casillas.length && !fin; i++) {\r\n\t\t\tfor (int j = 0; j < casillas[0].length && !fin; j++) {\t\t\r\n\t\t\t\tif(casillas[i][j].esMina() == false && casillas[i][j].darValor() > 0) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tmsj += i+\",\"+j;\r\n\t\t\t\t\tfin = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn msj;\r\n\t}",
"public void escribirProductos(Context context, ArrayList<Cesta> cesta, String total) {\n SimpleDateFormat dateFormat = new SimpleDateFormat( \"dd/MM/yyyy\", Locale.getDefault() ); // \"yyyy-MM-dd\"\n Date date = new Date();\n\n String fecha = dateFormat.format( date );\n\n String[]diaMes = fecha.split( \"/\" );\n String dia = diaMes[0];\n String mes = diaMes[1];\n\n String StringNumero = dia+\"/\"+mes;\n\n // sacar la hora actural\n @SuppressLint(\"SimpleDateFormat\") DateFormat df = new SimpleDateFormat( \"HH:mm\" ); // \"EEE, d MMM yyyy, HH:mm\"\n String hora = df.format( Calendar.getInstance().getTime() );\n\n // sumar las variables\n\n String StringTotal = total.replace( \",\", \".\" );\n double DoubleTotal = Double.parseDouble( StringTotal); //\n double totalG = DoubleTotal+IVA+TAXA_DE_TRANSPORTE;\n\n System.out.println( \"Total String1: \"+StringTotal );\n System.out.println( \"Total Double: \"+DoubleTotal );\n\n String valorTotalGeneral = String.valueOf(df2.format( totalG ));\n\n System.out.println( \"TOTAL G: \"+totalG );\n\n System.out.println( \"Valor General: \"+valorTotalGeneral );\n\n // variables de aixilio de excrituras\n String info1 = \"--------------------------------------------------------------------\";\n //String info2 = \"--------------------------------------------------------------------\";\n\n\n String saludo = \"Exm@. Sr@.\";\n String usuario = Usuario.getNombre() + \" \" + Usuario.getApellidos();\n String direcion = Usuario.getCalle() + \", \" + Usuario.getPiso() + \", \" + Usuario.getPuerta();\n\n //numero aleatorio para la factura\n int numero = (int)(Math.random()*10+1);\n String valor = String.valueOf( numero );\n String nFactura = \"00\"+valor+ \"/\"+StringNumero;\n\n\n try {\n OutputStreamWriter fout =\n new OutputStreamWriter(\n context.openFileOutput( archivo, Context.MODE_PRIVATE ) );\n\n\n fout.write( \"_______________________________________________________________________________________\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.nombreTienda + \"\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.prov + \"\\t\\t\\t\\t\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.DirecionTienda + \"\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.mail + \"\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.Cp + \"\\t\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.tel + \"\\t\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"_______________________________________________________________________________________\\n\" );\n\n // fout.write( \"\\n\" );\n // informacion de usuario\n fout.write( \" \" + saludo + \"\\n\" );\n fout.write( \" \" + usuario + \"\\n\" );\n fout.write( \" \" + Usuario.getEmail() + \"\\n\" );\n fout.write( \" \" + Usuario.getTelefono() + \"\\n\" );\n fout.write( \" \" + Usuario.getEmail() + \"\\n\" );\n fout.write( \" \" + direcion + \"\\n\" );\n\n // fwcha, hora y nº pedido\n fout.write( \"_______________________________________________________________________________________\\n\" );\n fout.write( \"\\tFactura Nº: \"+nFactura+\"\\n\" );\n fout.write( \"\\tFecha: \"+fecha+\"\\n\" );\n fout.write( \"\\tHora: \"+hora+\"\\n\" );\n fout.write( \"_______________________________________________________________________________________\\n\" );\n\n\n // fout.write( \"_______________________________________________________________________________________\\n\" ); //=========================\n\n fout.write( \"|\\tNombre\\t\\t\\tDescripcion \\t\\t\\tPrecio\\t\\t\\tCantidad\\t\\tSubTotal|\\n\" );\n fout.write( \"_______________________________________________________________________________________\\n\" );\n for (Cesta cest1 : cesta) {\n\n fout.write( \"\\t\" + cest1.getNombre() + \"\\t\\t\\t \" +cest1.getDescripcion()+ \"\\t\\t\\t\\t\" + cest1.getPrecio() + \" \\t\\t\\tX \"+ cest1.getCantidad_User() + \"\\t\\t\\t\\t\"+cest1.getSubTotal() +\"\\n\");\n\n }\n\n fout.write( \"_______________________________________________________________________________________\\n\" );\n fout.write( \"\\tIVA: ********************************************************************* 0.99 €\\n\" );\n fout.write( \"\\tTAXA DE TRANSPORTE: ****************************************************** 2.99 €\\n\" );\n fout.write( \"\\tTOTAL DE LA COMPRA: ****************************************************** \"+total+\" €\\n\" );\n fout.write( \"\\tTOTAL GENERAL: *********************************************************** \"+valorTotalGeneral+\" €\\n\" );\n fout.write( \"-------------------------------------------------------------------------------------------\\n\" );\n\n //fout.write( \"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t **** www.elproductoasugusto.es **** \\t\\t\\t\\n\" );\n fout.write( \"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\\n\" );\n\n\n fout.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n Log.e( \"Ficheros\", \"Error al escribir fichero a memoria interna\" );\n }\n\n\n }"
] | [
"0.63566405",
"0.61376274",
"0.6132493",
"0.61059666",
"0.6024986",
"0.5982617",
"0.59524995",
"0.59279937",
"0.59225607",
"0.591759",
"0.58914125",
"0.5831347",
"0.5798151",
"0.5775701",
"0.57620454",
"0.5727772",
"0.5701667",
"0.56462276",
"0.56313366",
"0.5629799",
"0.56015986",
"0.55954504",
"0.5592905",
"0.5568154",
"0.554332",
"0.55426604",
"0.5527674",
"0.55245477",
"0.5522508",
"0.55190516",
"0.5516769",
"0.55055463",
"0.5504234",
"0.5501476",
"0.5500722",
"0.5498362",
"0.54963017",
"0.5490594",
"0.54870373",
"0.5486827",
"0.5484586",
"0.547856",
"0.5470049",
"0.5452681",
"0.5449825",
"0.5427063",
"0.5425608",
"0.54248",
"0.5419556",
"0.5418805",
"0.541217",
"0.54114765",
"0.5410984",
"0.54108113",
"0.53905433",
"0.5389142",
"0.5385643",
"0.53850716",
"0.53818125",
"0.53726023",
"0.5372232",
"0.5369079",
"0.53678715",
"0.5366623",
"0.5360457",
"0.53564733",
"0.53522134",
"0.5350717",
"0.5349579",
"0.53492314",
"0.5345671",
"0.5333458",
"0.533223",
"0.53252095",
"0.53235",
"0.5321376",
"0.5318421",
"0.5312972",
"0.5309306",
"0.5307524",
"0.53043103",
"0.52938825",
"0.52910763",
"0.52891093",
"0.5287547",
"0.52744806",
"0.5271335",
"0.52657616",
"0.52571183",
"0.5255632",
"0.52483547",
"0.5233083",
"0.52329326",
"0.52319396",
"0.5231795",
"0.5228729",
"0.5228142",
"0.5226491",
"0.5220272",
"0.52141434",
"0.5209846"
] | 0.0 | -1 |
evaluam intai fiul nodului, pentru a respecta oridnea prioritatilor erorilor | @Override
public void visit(AssertNode node) {
Evaluator.evaluate(node.getChild(0));
/**
* daca nodul contine variabile nedeclarate pana acum nu mergem mai
* departe si propagam in sus check failed
*/
if (Evaluator.checkScope(node) == false) {
return;
}
/**
* daca valoarea din copil se evalueaza la false setam indicatorul de
* assert failed
*/
if (node.getChild(0).getName().contentEquals("false")) {
Evaluator.assertFailed = true;
return;
} else {
node.setName("true");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void visit(LessNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam expresiile din cei 2 fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger s2 = 0;\n\t\tInteger s1 = 0;\n\t\t/**\n\t\t * preluam rezultatele evaluarii si verificam daca primul este mai mic\n\t\t * decat la doilea ,setand corespunzator valoarea din nodul curent in\n\t\t * functie de rezultatul comparatiei\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\t\t} else {\n\t\t\ts1 = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t} else {\n\t\t\ts2 = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (s1 < s2) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\t}",
"private Object eval(RelExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n if (expr.getExpr().size() == 2) {\n Object res2 = eval(expr.getExpr().get(1));\n String opt = expr.getOpt();\n\n if (\"==\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = ((Double) res).equals(res2);\n } else if (res instanceof String && res2 instanceof String) {\n res = ((String) res).equals(res2);\n } else if (res instanceof Boolean && res2 instanceof Boolean) {\n res = ((Boolean) res).equals(res2);\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"!=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = !((Double) res).equals(res2);\n } else if (res instanceof String && res2 instanceof String) {\n res = !((String) res).equals(res2);\n } else if (res instanceof Boolean && res2 instanceof Boolean) {\n res = !((Boolean) res).equals(res2);\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"<\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res < (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"<=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res <= (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\">\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res > (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\">=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res >= (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }",
"public void expression(Node n_parent) {\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: expression::if- \"+n_parent.getData());\r\n\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.simpleExpression(makeown);\r\n\r\n //compNode = expressionNode.addChild(\"Compare\");\r\n //Node n_connect =\r\n this.restExpression(n_parent,n_factor);\r\n //n_parent.setNodeChild(n_connect);\r\n }\r\n }",
"public int getNEval () {\r\n return n_eval; }",
"public void preOrden(NodoArbol r){\n\t\tif(r!=null){\n\t\t\tSystem.out.println(r.dato);\n\t\t\tpreOrden(r.hijoizq);\n\t\t\tpreOrden(r.hijoder);\n\t\t}\n\t}",
"Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"public int evaluate() {\n return Condition.INDETERMINATE;\n }",
"public void inOrden(Nodo r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.println(r.valor);\n inOrden(r.hijoDerecho);\n }\n }",
"private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}",
"@Override\n\tpublic void visit(EqualityNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam fiul stang si fiul drept\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tString s2 = null;\n\t\tString s1 = null;\n\t\t/**\n\t\t * preluam rezultatele evaluarii celor doi fii\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Evaluator.variables.get(node.getChild(0).getName());\n\t\t} else {\n\t\t\ts1 = node.getChild(0).getName();\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Evaluator.variables.get(node.getChild(1).getName());\n\t\t} else {\n\t\t\ts2 = node.getChild(1).getName();\n\t\t}\n\n\t\t/**\n\t\t * verificam daca cei doi fii s- au evaluat la aceeasi expresie\n\t\t */\n\t\tif (s1.contentEquals(s2)) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\n\t}",
"public void inOrden(nodoArbolAVL r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.print (r.dato + \" , \");\n inOrden(r.hijoDerecho);\n \n } \n }",
"public void preOrden(nodoArbolAVL r){\n\n if(r != null){\n System.out.print(r.dato + \" , \");\n \n preOrden(r.hijoIzquierdo);\n preOrden(r.hijoDerecho);\n \n } \n }",
"@Override\n\tpublic Point estTraversePar(Rayon r) {\n\t\tassert r != null;\n\t\tint i, indice;\n\t\tdouble distanceMin = 0.0;\n\t\tPoint point;\n\t\tPoint pointReturn = null;\n\t\t\n\t\tfor (i = 0; i<6; i++) {\n\t\t\tpoint = this.plans.get(i).estTraversePar(r);\n\t\t\tindice = this.appartientCube(point);\n\t\t\t\n\t\t\tif (point != null & indice != -1) {\n\t\t\t\tif ((distanceMin > point.distance(r.getOrigine()) | distanceMin < Objet3D.EPSILON) ) {\n\t\t\t\t\tpointReturn = point.copie();\n\t\t\t\t\tdistanceMin = pointReturn.distance(r.getOrigine());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn pointReturn;\n\t}",
"private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}",
"private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }",
"public abstract double evaluer(SolutionPartielle s);",
"int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di sebelah kiri\n return nilaiMin(node.left);// maka jika != null akan me return node sebelah kiri\n }\n return node.data;\n }",
"public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }",
"protected IExpressionValue expression() throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t\r\n\t\t// temp table already created by upper caller\r\n\t\t\r\n\t\tIExpressionValue temp1 = term();\r\n\t\tIExpressionValue temp2 = null;\r\n\t\t\r\n\t\tFloat temp1Value = null;\r\n\t\tFloat temp2Value = null;\r\n\t\t// LOOK FOR +/- (OPTIONAL)\r\n\t\tswitch (look) {\r\n\t\tcase '+':\r\n\t\t\tmatch('+');\r\n\t\t\ttemp2 = term();\r\n\t\t\ttry {\r\n\t\t\t\ttemp1Value = Float.parseFloat(temp1.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp1Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\ttemp2Value = Float.parseFloat(temp2.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp2Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\tif (!Float.isNaN(temp1Value) && !Float.isNaN(temp2Value)) {\r\n\t\t\t\t// TODO cut the subtree if it is a known value...\r\n\t\t\t\ttemp1 = new AddOperationProbabilityValue(\r\n\t\t\t\t\t\ttemp1.isFixedValue()?(new SimpleProbabilityValue(temp1Value)):temp1 ,\r\n\t\t\t\t\t\t\t\ttemp2.isFixedValue()?(new SimpleProbabilityValue(temp2Value)):temp2);\r\n\t\t\t}\t\t\r\n\t\t\tbreak;\r\n\t\tcase '-':\r\n\t\t\tmatch('-');\r\n\t\t\ttemp2 = term();\r\n\t\t\ttry {\r\n\t\t\t\ttemp1Value = Float.parseFloat(temp1.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp1Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\ttemp2Value = Float.parseFloat(temp2.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp2Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\tif (!Float.isNaN(temp1Value) && !Float.isNaN(temp2Value)){\r\n\t\t\t\t// TODO cut the subtree if it is known value...\r\n\t\t\t\ttemp1 = new SubtractOperationProbabilityValue(\r\n\t\t\t\t\t\ttemp1.isFixedValue()?(new SimpleProbabilityValue(temp1Value)):temp1 ,\r\n\t\t\t\t\t\t\t\ttemp2.isFixedValue()?(new SimpleProbabilityValue(temp2Value)):temp2);\r\n\t\t\t}\t\t\t\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Expression returned \" + temp1.getProbability());\r\n\t\treturn temp1;\r\n\t}",
"public void setNEval (int value) {\r\n n_eval = value; }",
"boolean isEstConditionne();",
"@Override\n\tpublic void visit(IfNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * Verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam conditia si preluam rezultatul evaluarii fiului corespunzator\n\t\t * branch-ului de then sau de else\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/***\n\t\t * Daca conditia este adevarata, continuam cu evaluarea celui de-al\n\t\t * doiela fiu, iar daca este false evaluam al treilea fiu\n\t\t */\n\t\tif (node.getChild(0).getName().contentEquals(\"true\")) {\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t\tnode.getChild(2).setVisited(true);\n\n\t\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(1).getName());\n\t\t\t}\n\t\t} else {\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\tnode.getChild(1).setVisited(true);\n\n\t\t\tif (node.getChild(2) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(2).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(2).getName());\n\t\t\t}\n\t\t}\n\n\t}",
"@Test\n\tpublic void priorsAreReasonable() {\n\t\tdouble tot = 0;\n\t\tboolean zeroPrior = false;\n\t\tfor(NewsGroup g: groups) {\n\t\t\tdouble p = g.getPrior();\n\t\t\ttot+=p;\n\t\t\tif(p == 0.0) {\n\t\t\t\tzeroPrior = true;\n\t\t\t}\n\t\t}\n\t\tassertTrue((tot == 1) && !zeroPrior);\n\t}",
"private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }",
"public boolean execute() {\n\t\t\n\t\tfor (int i = 0; i <Network.size(); i++) {\n\t\t\t\n\t\t\tMyNode n = (MyNode)Network.get(i);\n\t\t\t//MyNode n1 = (MyNode) n;\t\t\n \n System.out.println(\"The frobenius_norm at node\"+\"(\"+i+\"):\"+n.frobenius_norm);\n\t\t\tretVal=retVal &&(n.frobenius_norm<=threshold);\n\t\t\tSystem.out.println(retVal);\n }\n if(retVal)\n {\n \t System.out.println(\"ALgorithm Converged...###########################!\");\n \t return myNewSVMCode.end;\n }\n else\t\n {\n\t\treturn false;\n }\n }",
"LogicExpression getExpr();",
"@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }",
"protected abstract Value evaluate();",
"private void naturalLog()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.naturalLog ( );\n\t\t\tupdateText();\n\t\t}\n\t}",
"private boolean evaluarEntrada(Date fechaPoliza, AnalisisDeFlete det) {\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void visit(AdditionNode node) {\n\t\t/**\n\t\t * verificam intai sintaxa: in cazde eroare nu mergem mai departe in\n\t\t * evaluare\n\t\t */\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * evaluam fiii nodului\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\t\tInteger i, j;\n\t\t/**\n\t\t * Salvam valorile calculate in urma evaluarii copiilor in 2 variabile\n\t\t * Integer. Daca unul dintre fii este de tip Variable ii luam valoarea\n\t\t * din HashMap-ul din Evaluator. Altfel, valoarea e reprezentata de\n\t\t * numele nodului.\n\t\t */\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ti = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\n\t\t} else {\n\t\t\ti = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tj = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\n\t\t} else {\n\t\t\tj = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\n\t\t/**\n\t\t * realizam suna celor doua valori si updatam numele nodului curent cu\n\t\t * valoarea calculata\n\t\t */\n\t\tInteger n = i + j;\n\n\t\tnode.setName(n.toString());\n\n\t}",
"public int mayorOIgualQue(Stack<String> sta) {\n\n double val1;\n double val2;\n int resp = -1;\n\n try {\n if (ComprobarNumero(sta.peek())) {\n val1 = Double.parseDouble(sta.pop());\n } else {\n val1 = hashmap.get(sta.pop());\n }\n\n if (ComprobarNumero(sta.peek())) {\n val2 = Double.parseDouble(sta.pop());\n } else {\n val2 = hashmap.get(sta.pop());\n }\n\n if (val1 >= val2) {\n resp = 1;\n } else {\n resp = 0;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error de Sintaxis\");\n }\n return resp;\n }",
"E minVal();",
"public String newRuleFirstCondition(Situation threeSituationsAgo)\n {\n String firstPredicate;\n //---------------\n firstPredicate = \"ninguno\";\n\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8) &&\n (threeSituationsAgo.puzzle[2][0] == 9) &&\n (threeSituationsAgo.puzzle[3][0] == 13)\n )\n {\n firstPredicate = \"dosLineasYColumna\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4) &&\n (threeSituationsAgo.puzzle[1][0] == 5) &&\n (threeSituationsAgo.puzzle[1][1] == 6) &&\n (threeSituationsAgo.puzzle[1][2] == 7) &&\n (threeSituationsAgo.puzzle[1][3] == 8)\n )\n {\n firstPredicate = \"dosLineasListas\";\n }//end if\n else\n {\n if(\n (threeSituationsAgo.puzzle[0][0] == 1) &&\n (threeSituationsAgo.puzzle[0][1] == 2) &&\n (threeSituationsAgo.puzzle[0][2] == 3) &&\n (threeSituationsAgo.puzzle[0][3] == 4)\n )\n {\n firstPredicate = \"primeraLineaLista\";\n }//end if\n }//end else\n }//end else\n\n return firstPredicate;\n }",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"int calculaX(){\n int n;\n if(pratonl[0][0]==pquesol[0][0]){//evalua si esta en la misma fila\n n=0;\n }else{\n n=pquesol[0][0]-pratonl[0][0]; \n }\n return n;\n }",
"@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}",
"private void evaluarRedefinicion(List<EntradaPar> l, List<EntradaPar> lAncestro, Token tok) throws Exception {\r\n\t\t// comparo sus tipos\r\n\t\tIterator<EntradaPar> l1 = l.iterator();\r\n\t\tIterator<EntradaPar> l2 = lAncestro.iterator(); //l2 tiene igual longitud que l1\r\n\t\tTipo tipo,tipoAncestro;\r\n\t\t\r\n\t\t//mientras haya un siguiente -> itero\r\n\t\twhile (l1.hasNext()) {\r\n\t\t\ttipo= l1.next().getTipo();\r\n\t\t\ttipoAncestro= l2.next().getTipo();\r\n\t\t\t\r\n\t\t\t//si tienen distinto tipo -> error\r\n\t\t\tif ( ! tipo.getTipo().equals(tipoAncestro.getTipo()))\r\n\t\t\t\tthrow new redefinicionMetodoInvalido(\"Error el redefinir un metodo en la clase \"+this.getNombre()+\", se esperaba tipo de parametro '\"+tipoAncestro.getTipo()+\"' y recibi '\"+tipo.getTipo()+\"'\", tok.getNroLinea(), tok.getNroColumna());\r\n\t\t\t\r\n\t\t\t//sino, sigo comprobando\r\n\t\t}\r\n\t}",
"LogicExpression getLeftExp();",
"private double calc_e_order_n(int il) {\n\t\tint j;\n\t\tdouble dr2,newe,store_cut,pot;\n\t\t\n\t\tstore_cut = pot_cut_off;\n\t\tpot_cut_off = 1.0e20;\n\t\tpot_cut_off2 = pot_cut_off*pot_cut_off;\n\t\tnewe = 0.0;\n\t\tfor(j=0; j<n; j++) {\n\t\t\tif ( j != 0 ) {\n\t\t\t\tdr2 = ij_sep2(0,j,il,CUR_POS);\n\t\t\t\tpot = ij_inter_act(dr2,0,j,il);\n\t\t\t\tnewe += pot;\n\t\t\t}\n\t\t}\n\t\tpot_cut_off = store_cut;\n\t\tpot_cut_off2 = pot_cut_off*pot_cut_off;\n\t\t\n\t\treturn(newe);\n\t}",
"@Override\r\n public double eval() {\r\n return (this.child == null) ? 0.0 : this.child.eval();\r\n }",
"public EtatDuJeu verifierCondition() {\r\n for (Objet obj : this.objets) {\r\n if (!this.vivant.possede(obj)) {\r\n return EtatDuJeu.ENCOURS;\r\n }\r\n }\r\n return this.getEtatConditionVerifiee();\r\n }",
"public boolean filterPrimesse(Map<Variable, String> assigne, Map<Variable, ArrayList<String>> nonAssigne) {\n\n ArrayList<Variable> InNonAss = Tools.variableInConstraint(this.premisse, nonAssigne); // recuperation des varable de la premise qui ne sont par encore assigne \n ArrayList<Variable> InAss = Tools.variableConstraintInAssigne(assigne, this.premisse); // recuperation des varable de la premise qui sont deja assigne \n \n \n for (Variable v : this.getScope()) {\n // on verrification de la presente de tout la varriable scope\n if (!Tools.inArrayList(InAss, v) && !Tools.inArrayList(InNonAss, v)) {\n return false;\n }\n }\n\n if (InNonAss.isEmpty() || InAss.isEmpty()) { // cas on aussi variable ou tout les varriable son asigne \n\n return false;\n }\n\n String valeurVariablePremise;\n\n for (int i = 0; i < InAss.size(); i++) {// on veriffie que les varaible de les variable deja assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InAss.get(i));\n\n if (!Tools.getValue(assigne, InAss.get(i)).equals(valeurVariablePremise)) {\n\n Tools.cleanDomainFritrage(nonAssigne, InNonAss);\n\n return true;\n }\n\n }\n\n boolean filtrage = false;\n\n for (int j = 0; j < InNonAss.size(); j++) { // Reduction des domain des varaible si les non assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InNonAss.get(j)); // recuperation de la valeur de variable non asigne dans la premisse \n\n for (int k = 0; k < nonAssigne.get(InNonAss.get(j)).size(); k++) { // filttrage du domaine \n\n if (!nonAssigne.get(InNonAss.get(j)).get(k).equals(valeurVariablePremise)) {\n\n nonAssigne.get(InNonAss.get(j)).remove(k);\n\n k--;\n\n filtrage = true;\n\n }\n\n }\n\n }\n\n return filtrage;\n }",
"@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }",
"public Node term(Node n_parent) {\r\n\r\n if (token.get(lookAheadPossition).contains(\"ident(\") || token.get(lookAheadPossition).contains(\"num(\") || token.get(lookAheadPossition).contains(\"boollit(\") || token.get(lookAheadPossition).equals(\"LP\")) {\r\n System.out.println(\":: term:if:\" + n_parent.getData());\r\n Node n_factor = this.factor(n_parent);\r\n //if (n_parent.getData().contains(\"*\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"DIV\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"MOD\")) {n_parent.setNodeChild(n_factor); }\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (this.restTerm(n_parent, n_factor));\r\n } else {\r\n\r\n return (null);\r\n }\r\n }",
"public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInterf heur, HashMap <String, String> mapaEstadosgen ){ \n //listado de nodos posibles al expandir\n ArrayList <Accion> acciones = nodoAexp.estado.accionesPosibles(null);\n Iterator<Accion> itrAcciones = acciones.iterator();\n\n \n int mejorCosto = -1 ;\n \n ArrayList<Nodo> mejoresNodos = new ArrayList<Nodo>();\n \n int costoTotalNodo = 0 ;\n \n \twhile (itrAcciones.hasNext()) {\n \t\t\n Accion accion = itrAcciones.next();\n \n Tablero nuevoEstado = nodoAexp.estado.clonar();\n nuevoEstado.mover( accion ); \n \n //control para evitar evaluar heuristicas para estados ya generados\n String hashmatriz = nuevoEstado.toStrHash();\n \n if ( mapaEstadosgen.containsKey( hashmatriz )){\n \tcontinue ;\n }\n \n mapaEstadosgen.put(hashmatriz, hashmatriz);\n \n \n // se obtine el costo del posible nodo a expandir y se crea un tablero con el estado correspóndiente\n int costoH = heur.heuristica (nuevoEstado.matriz, Problema.MATRIZ_META );\n \n Nodo nuevoNodo = new Nodo(nodoAexp,nuevoEstado,accion,costoH );\n \n costoTotalNodo = nuevoNodo.getCosto();\n \n if ( mejorCosto < 0 ) mejorCosto = costoTotalNodo ;\n \n if (costoTotalNodo <= mejorCosto ){\n\t\t\n \tmejorCosto = costoTotalNodo ;\n \t\n \tmejoresNodos.add( nuevoNodo );\n } \n \n //System.out.println(nuevoNodo.getAccion()+\" queda \"+nuevoEstado.toString()+\" costo \"+nuevoNodo.getCosto());\n \n \t}\n \tint tam = mejoresNodos.size();\n \t\n \tfor(int i = 0 ; i <tam ; i++){\n \t\tif( mejoresNodos.get(i).getCosto() <= mejorCosto )\n \t\t\t\n \t\t\tfrontera.add(mejoresNodos.get( i ));\n \t}\n }",
"public Data evaluateRelational (int op, Data d) {\n switch (op) {\n case AslLexer.EQUAL: return new SvglangBoolean((float) value == (float) d.getValue());\n case AslLexer.NOT_EQUAL: return new SvglangBoolean((float) value != (float) d.getValue());\n case AslLexer.LT: return new SvglangBoolean((float) value < (float) d.getValue());\n case AslLexer.LE: return new SvglangBoolean((float) value <= (float) d.getValue());\n case AslLexer.GT: return new SvglangBoolean((float) value > (float) d.getValue());\n case AslLexer.GE: return new SvglangBoolean((float) value >= (float) d.getValue());\n default: assert false;\n }\n return null;\n }",
"public void inOrden(){\n\t\tPlanta planta= Singleton.GetPlanta();\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) {\n\t aux.inOrden();\n\t } \n\t \n\t planta.out().print(\" \"+this.datoRaiz);\n\t \n\t if ((aux=getHijoDer())!=null){\n\t aux.inOrden();\n\t } \n\t }\n\t}",
"public final Rule getPredecessor() {\n //ELM: in again\n//\t\treturn null; // TODO by m.zopf: because of performance reasons return here just null\n return m_pred;\n }",
"public Element getPredicateVariable();",
"public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }",
"private boolean onaryLeft(WAVLNode z) {\n\t if(z.left.rank!=-1) {\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }",
"public void evaluate() {\n if (manoeuvre.getTrajectory().getEvolutionEnd() - manoeuvre.getCalcEvolution() <= toDoLength) { raise(); }\n }",
"@Override\n public int compareTo(Node n){\n if(this.getfVal() < n.getfVal())\n return -1;\n if(this.getfVal() > n.getfVal())\n return 1;\n return 0;\n }",
"@Override\n\tpublic double evaluate() {\n\t\tString var = myChildren.get(0).myChildren.get(0).toString(); //goes two levels down to get variable\n\t\tint start = (int) myChildren.get(0).myChildren.get(1).evaluate(); \n\t\tint end = (int) myChildren.get(0).myChildren.get(2).evaluate(); \n\t\tint increment = (int) myChildren.get(0).myChildren.get(3).evaluate(); \n\t\tdouble returnVal = 0;\n\t\tfor(int i = start; i < end; i += increment) {\n\t\t\tUserVariables.add(var, i);\n\t\t\tfor(Node child : myChildren) {\n\t\t\t\treturnVal = child.evaluate(); //repeatNode will contain a GroupNode, but GroupNodes know how to evaluate themselves\n\t\t\t}\n\t\t}\n\t\treturn returnVal;\n\t}",
"int calculaY(){\n int n;\n if(pratonl[0][1]==pquesol[0][1]){//evalua si esta en la misma fila\n n=0;\n }else{\n n=pquesol[0][1]-pratonl[0][1]; \n }\n return n;\n }",
"@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}",
"Expression getCond();",
"private void evaluate(String inVal){\n\t\tString treeCond=\"\";\n\t\tString treeVal=\"\";\n\t\tint treeIntVal =0;\n\t\tdouble treeDblVal = 0.000;\n\t\tboolean condMatched = false;\n\t\t//evaluating condition\n\t\tfor(int i=0;i<ConditionTree.length;i++){\n\t\t\tif(ConditionTree[i][4].equals(\"Number\")){\n\t\t\t\ttry{\n\t\t\t\t\ttreeCond = ConditionTree[i][2];\n\t\t\t\t\tif(ConditionTree[i][1].equals(currentRule)){\n\t\t\t\t\t\ttreeDblVal = Double.parseDouble(ConditionTree[i][3]);\n\t\t\t\t\t\tdouble inDblVal = Double.parseDouble(inVal);\n\t\t\t\t\t\tif(treeCond.equals(\">\")){\n\t\t\t\t\t\t\tif(inDblVal > treeDblVal){\n\t\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(treeCond.equals(\"<\")){\n\t\t\t\t\t\t\tif(inDblVal < treeDblVal){\n\t\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(treeCond.equals(\">=\")){\n\t\t\t\t\t\t\tif(inDblVal >= treeDblVal){\n\t\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(treeCond.equals(\"<=\")){\n\t\t\t\t\t\t\tif(inDblVal <= treeDblVal){\n\t\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(treeCond.equals(\"<>\")){\n\t\t\t\t\t\t\tif(inDblVal != treeDblVal){\n\t\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(treeCond.equals(\"=\")){\n\t\t\t\t\t\t\tif(inDblVal == treeDblVal){\n\t\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}catch(java.lang.NumberFormatException expNumFor){\n\t\t\t\t\tcondMatched = false;\n\t\t\t\t\tEvaluatedlistModel.addElement(\"Please enter numbers only.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(ConditionTree[i][4].equals(\"String\")){\n\t\t\t\tif(ConditionTree[i][1].equals(currentRule)){\n\t\t\t\t\ttreeVal = ConditionTree[i][3];\n\t\t\t\t\ttreeCond = ConditionTree[i][2];\n\t\t\t\t\tif(treeCond.equals(\"=\")){\n\t\t\t\t\t\tif(inVal.equalsIgnoreCase(treeVal)){\n\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(treeCond.equals(\"<>\")){\n\t\t\t\t\t\tif(!inVal.equalsIgnoreCase(treeVal)){\n\t\t\t\t\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\t\t\t\t\tcondMatched = true;\n\t\t\t\t\t\t\tbreak;\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\t//checking if any condition matched else declare it a final rule.\n\t\tif(condMatched){\n\t\t\tif(chkCurRulIsLast()){\n\t\t\t\tlblQuestion.setText(\"Final Rule!\");\n\t\t\t\t\n\t\t\t\t//printing to out list\n\t\t\t\tEvaluatedlistModel.addElement(inVal);\n\t\t\t\tEvaluatedlistModel.addElement(currentRule);\n\t\t\t\tEvaluatedlistModel.addElement(\"Final Rule!\");\n\n\t\t\t}else{\n\t\t\t\tfillInputCombo();\n\t\t\t\tsetCurrentQuestion();\n\t\t\t\tlblQuestion.setText(currentQuestion);\n\n\t\t\t\t//printing to outlist\n\t\t\t\tEvaluatedlistModel.addElement(inVal);\n\t\t\t\tEvaluatedlistModel.addElement(currentQuestion);\n\t\t\t}\n\t\t}else{\n\t\t\tmyInput.removeAllItems();\n\t\t\tlblQuestion.setText(\"NO CONDITION\");\n\t\t}\n\t\ttskValue.setText(\"\");\n\t}",
"public String ToString(){\n return \"Natural Number: \"+this.n+\" and Predecessor: \"+this.prev.getVal();}",
"public int calcTensorUnitRadice()\n\t{\n\t\tNodoTensore radice=albero.get(0);\n\n\t\tif(radice.getNodi().size()==0)\n\t\t{\n\t\t\tif(radice.getTensori().size()==1)return radice.getTensori().get(0).calcSommaDetLaplace();//se la radice ha un solo tensore , il minimo sarÓ il suo determinante totale\n\t\t\t\n\t\t\tint min=Math.min(radice.getTensori().get(0). calcSommaDetLaplace(), radice.getTensori().get(1).calcSommaDetLaplace());\n\t\t\tfor(int i =2;i<radice.getTensori().size();i++)\n\t\t\t{\n\t\t\t\tmin=Math.min(min,radice.getTensori().get(i).calcSommaDetLaplace() );\n\t\t\t}\n\t\t\treturn min;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint max1=Math.max(radice.getNodi().get(0).calcTensorUnit(), radice.getNodi().get(1).calcTensorUnit());\n\t\t\tfor(int i=2;i<radice.getNodi().size();i++)\n\t\t\t{\n\t\t\t\t\tmax1=Math.min(max1,radice.getNodi().get(i).calcTensorUnit() );\n\t\t\t}\n\t\t\tint min2=Math.max(radice.getTensori().get(0).calcSommaDetLaplace(), radice.getTensori().get(1).calcSommaDetLaplace());\n\t\t\tfor(int i =2;i<radice.getTensori().size();i++)\n\t\t\t{\n\t\t\t\tmin2=Math.min(min2,radice.getTensori().get(i).calcSommaDetLaplace() );\n\t\t\t}\n\t\t\treturn Math.min(max1, min2);\n\t\t\t\n\t\t}\n\t}",
"public int menorOIgualQue(Stack<String> sta) {\n\n double val1;\n double val2;\n int resp = -1;\n\n try {\n if (ComprobarNumero(sta.peek())) {\n val1 = Double.parseDouble(sta.pop());\n } else {\n val1 = hashmap.get(sta.pop());\n }\n\n if (ComprobarNumero(sta.peek())) {\n val2 = Double.parseDouble(sta.pop());\n } else {\n val2 = hashmap.get(sta.pop());\n }\n\n if (val1 <= val2) {\n resp = 1;\n } else {\n resp = 0;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error de Sintaxis\");\n }\n return resp;\n }",
"private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }",
"@Override\n\tpublic void visit(ForNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * initializare\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/**\n\t\t * evaluam conditia pentru a intra in for\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(1));\n\t\twhile (node.getChild(1).getName().contentEquals(\"true\")) {\n\t\t\t/**\n\t\t\t * Daca conditia e adevarata, atunci executam programul din for\n\t\t\t */\n\t\t\tEvaluator.evaluate(node.getChild(3));\n\t\t\t/**\n\t\t\t * executam pasul\n\t\t\t */\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\t/**\n\t\t\t * reevaluam conditia\n\t\t\t */\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t}\n\t\t/**\n\t\t * preluam valoarea din fiul al patrulea, corespunzator rezultatului\n\t\t * evaluarii programului din for\n\t\t */\n\t\tif (node.getChild(3) instanceof Variable) {\n\t\t\tnode.setName(Evaluator.variables.get(node.getChild(3).getName()));\n\t\t} else {\n\t\t\tnode.setName(node.getChild(3).getName());\n\t\t}\n\n\t}",
"public boolean fjernElement(N n) {\n if (listehode.neste == null) {\n return false;\n }\n if (listehode.neste.nkl.compareTo(n) == 0){\n listehode.neste = listehode.neste.neste;\n antall--;\n return true;\n }\n\n Node forrige = listehode.neste;\n Node node = listehode.neste.neste;\n\n while (node.hasNext()){\n if (node.nkl.compareTo(n) == 0){\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n forrige = node;\n node = node.neste;\n }\n\n if (node.nkl.compareTo(n) == 0) {\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n return false;\n }",
"@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }",
"public void inOrden(Node root) {\n\r\n if (root != null) {\r\n inOrden(root.left);\r\n expresion = expresion + root.value + \"\";\r\n inOrden(root.right);\r\n }\r\n\r\n }",
"private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }",
"static void setExample(int n) throws Exception {\n int j=n-1;\n PetriNet net = new PetriNet(n);\n PetriNet.setNet(net);\n \n int[] eins=new int[n]; \n Arrays.fill(eins, 1);\n m0 = new Marking(eins);\n \n int[] zwei=new int[n]; \n Arrays.fill(zwei, 2); \n mF = new Marking(zwei);\n \n for (int i = 0; i < n; i++) {\n int[] tmin = new int[n]; \n int[] tdelta = new int[n]; \n Arrays.fill(tmin, 1);\n Arrays.fill(tdelta, -1); \n tdelta[i]=n-1;\n if(i==j) tdelta[i]=n;\n PNTransition t = new PNTransition(tmin, tdelta);\n net.addTransition(t);\n }\n int[] temp=new int[n]; \n Arrays.fill(temp, -n-1); \n temp[j]=-n;\n Inequality ineq=new Inequality(temp);\n boolean findC = ineq.findC();\n System.out.println(\"check-k for: \"+n+\": \"+findC);\n System.out.println(ineq.toString());\n\n }",
"public void updateSingleNode(Node n) {\r\n\t\t//update val\r\n\t\tn.val = n.left.getVal() + n.p + n.right.getVal();\r\n\r\n\t\t//update eval and emax\r\n\t\tint case1 = n.left.getMaxVal();\r\n\t\tint case2 = n.left.getVal() + n.p;\r\n\t\tint case3 = n.left.getVal() + n.p + n.right.getMaxVal();\r\n\t\tif( case1 >= case2 && case1 >= case3 ) {\r\n\t\t\t//case 1\r\n\t\t\tn.maxval = case1;\r\n\t\t\t//if the left node is the nilNode, make emax this node\r\n\t\t\tif( n.left.isNil ) {\r\n\t\t\t\tn.emax = n.getEndpoint();\r\n\t\t\t} else {\r\n\t\t\t\t//otherwise get emax of left\r\n\t\t\t\tn.emax = n.left.getEmax();\r\n\t\t\t}\r\n\t\t} else if( case2 >= case1 && case2 >= case3 ) {\r\n\t\t\t//case 2\r\n\t\t\tn.maxval = case2;\r\n\t\t\tn.emax = n.getEndpoint();\r\n\t\t} else if( case3 >= case1 && case3 >= case2 ) {\r\n\t\t\t//case 3\r\n\t\t\tn.maxval = case3;\r\n\t\t\t//if the left node is the nilNode, make emax this node\r\n\t\t\tif( n.right.isNil ) {\r\n\t\t\t\tn.emax = n.getEndpoint();\r\n\t\t\t} else {\r\n\t\t\t\t//otherwise get emax of right\r\n\t\t\t\tn.emax = n.right.getEmax();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n \tpublic void whereClauseForNodeRangedPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10, 20));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\t\"_node23.right_token BETWEEN SYMMETRIC _node42.left_token - 10 AND _node42.left_token - 20\"\n \t\t);\n \t}",
"public final double raiz(double x0, double x1, double t) { // se reciben tres parametros en el metodo\n Double x = Double.NaN; // valor inicial not a number\n if (f.evaluar(x0) * f.evaluar(x1) < 0) { // f(x) evaluada en x1 y x0 (formula) para saber si existen o no raices\n do {\n x = (x0 + x1) / 2;\n if (f.evaluar(x0) * f.evaluar(x) < 0) { //f(x) evaluada en x0 y (x) mientras sean menor que cero\n x1 = x;\n } else { // en el if y el else se hace el cambio de variable\n x0 = x;\n }\n } while (Math.abs(f.evaluar(x)) > t); // si es mayor que la tolerancia se siguen realizando los calculss\n } // el absoluto de la funcion debe ser mayor o igual que la tolerancia\n return x;\n }",
"public String getLHS()\n {\n return lhs;\n }",
"static BiPredicate<SibillaValue,SibillaValue> getRelationOperator(String op) {\n if (op.equals(\"<\")) { return (x,y) -> x.doubleOf()<y.doubleOf(); }\n if (op.equals(\"<=\")) { return (x,y) -> x.doubleOf()<=y.doubleOf(); }\n if (op.equals(\"==\")) { return (x,y) -> x.doubleOf()==y.doubleOf(); }\n if (op.equals(\"!=\")) { return (x,y) -> !x.equals(y); }\n if (op.equals(\">\")) { return (x,y) -> x.doubleOf()>y.doubleOf(); }\n if (op.equals(\">=\")) { return (x,y) -> x.doubleOf()>=y.doubleOf(); }\n return (x,y) -> false;\n }",
"@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}",
"void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}",
"@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}",
"public int nEigenOneOrGreater(){\n if(!this.pcaDone)this.pca();\n return this.greaterThanOneLimit;\n }",
"@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}",
"@Test\n \tpublic void whereClauseForNodeRangedDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10, 20));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\t\"_rank23.level BETWEEN SYMMETRIC _rank42.level - 10 AND _rank42.level - 20\"\n \n \t\t);\n \t}",
"protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}",
"public vy e(int paramInt1, int paramInt2, int paramInt3)\n/* */ {\n/* 186 */ if (this.d.e(paramInt1, paramInt2, paramInt3) > this.e * this.e) return null;\n/* 187 */ vy localvy; for (Iterator localIterator = this.b.iterator(); localIterator.hasNext(); \n/* 188 */ return localvy)\n/* */ {\n/* 187 */ localvy = (vy)localIterator.next();\n/* 188 */ if ((localvy.a != paramInt1) || (localvy.c != paramInt3) || (Math.abs(localvy.b - paramInt2) > 1)) {} }\n/* 189 */ return null;\n/* */ }",
"private void evaluationLogic() {\n // setup for logic:\n // if distToClosestEstimate[i][0] is smaller than threshold, we have a Tp\n // if distToClosestEstimate[i][0] is larger than threshold, we have a Fn\n // all estimatedFeatures that are not assigned Tp are therefore Fp\n for (int i = 0; i < groundTruthInstant.size(); ++i) {\n if (distToClosestEstimate[i][0] < truePositiveThreshold) {\n ++truePositiveCount;\n int assignedEstimatedFeature = (int) distToClosestEstimate[i][1];\n assignedEstimatedFeatures[assignedEstimatedFeature] = true;\n } else\n ++falseNegativeCount;\n }\n for (int i = 0; i < estimatedInstant.size(); ++i)\n if (!assignedEstimatedFeatures[i])\n ++falsePositiveCount;\n }",
"private boolean purelySequentialDependent(\r\n\t\t\tfinal Rule r1, \r\n\t\t\tint indx_r1,\r\n\t\t\tfinal Rule r2,\r\n\t\t\tint indx_r2,\r\n\t\t\tGraph g) {\n\t\t\r\n\t\tfinal Match embedding = BaseFactory.theFactory().createMatch(r2, r1.getRight());\t\t\r\n\t\tembedding.setCompletionStrategy(this.strategy, true);\r\n\t\tboolean result = false;\r\n\t\twhile (embedding.nextCompletionWithConstantsChecking() && !result) {\r\n\t\t\tEnumeration<GraphObject> codom = embedding.getCodomain();\t\t\t\t\t\t\r\n\t\t\t// exist l21 : L2 -> R1\r\n\t\t\twhile (codom.hasMoreElements()) {\r\n\t\t\t\tGraphObject obj = codom.nextElement();\r\n\t\t\t\t// rule r1 produce at least one object which is used in LHS of r2\r\n\t\t\t\tif (!r1.getInverseImage(obj).hasMoreElements()) {\r\n\t\t\t\t\tresult = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.ruleSequence.isObjFlowActive()) {\r\n\t\t\t\t\t\tfinal ObjectFlow objFlow = this.ruleSequence.getObjFlowForRules(r1, indx_r1, r2, indx_r2);\r\n\t\t\t\t\t\tif (objFlow != null && !objFlow.isEmpty()) \r\n\t\t\t\t\t\t\tresult = pureEnablingAlongObjectFlow(embedding, objFlow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// add match to matchSequence\r\n\t\t\t\t\tif (result)\r\n\t\t\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak; \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (result) {\r\n\t\t\t\tboolean attrCondUsesIP = attrConditionUsesInputParameterRight(r2, r1, embedding);\r\n\t\t\t\t\t\r\n\t\t\t\tif (attrCondUsesIP) {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), false, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), true, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: apply r1, then r2 along the comatch of r2 to check NACs of r2\r\n//\t\t\tresult = isPurelyEnabledRuleApplicable(r1, r2, embedding, g);\r\n//\t\t\tif (result) {\r\n//\t\t\t\t// to test : add match to matchSequence\r\n//\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceOfMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tembedding.dispose();\r\n\t\tBaseFactory.theFactory().unsetAllTransientAttrValuesOfRule(r1);\r\n//\t\tr1.getRight().setNotificationRequired(true);\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public Node simpleExpression(Node n_parent) {\r\n\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: simpleExpression::if \"+n_parent.getData());\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.term(makeown);\r\n //if (!(n_parent==null)) {n_parent.setNodeChild(n_factor); }//simpleExpression(n_factor); }\r\n //if (n_parent.getData().contains(\"-\")) {n_parent.setNodeChild(n_factor); simpleExpression(n_factor); } /////////************add\r\n //addNode = simpleExpressionNode.addChild(\"Add\");\r\n return(this.restSimpleExpression(n_parent,n_factor ));\r\n }\r\n return(null);\r\n }",
"public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }",
"LogicExpression getLeft();",
"public boolean evaluate();",
"@Override\r\n public int compare(Node o1, Node o2) {\r\n\r\n ArrayList<Litteral> solution1 = o1.getValeur();\r\n ArrayList<Litteral> solution2 = o2.getValeur();\r\n int satisfaitClauseNumberS1 = satInstance.satisfaitClauseNumber(solution1);\r\n int satisfaitClauseNumberS2 = satInstance.satisfaitClauseNumber(solution2);\r\n return satisfaitClauseNumberS2 - satisfaitClauseNumberS1;\r\n\r\n }",
"public void evaluate()\r\n {\r\n\tdouble max = ff.evaluate(chromos.get(0),generation());\r\n\tdouble min = max;\r\n\tdouble sum = 0;\r\n\tint max_i = 0;\r\n\tint min_i = 0;\r\n\r\n\tdouble temp = 0;\r\n\r\n\tfor(int i = 0; i < chromos.size(); i++)\r\n\t {\r\n\t\ttemp = ff.evaluate(chromos.get(i),generation());\r\n\t\tif(temp > max)\r\n\t\t {\r\n\t\t\tmax = temp;\r\n\t\t\tmax_i = i;\r\n\t\t }\r\n\r\n\t\tif(temp < min)\r\n\t\t {\r\n\t\t\tmin = temp;\r\n\t\t\tmin_i = i;\r\n\t\t }\r\n\t\tsum += temp;\r\n\t }\r\n\r\n\tbestFitness = max;\r\n\taverageFitness = sum/chromos.size();\r\n\tworstFitness = min;\r\n\tbestChromoIndex = max_i;;\r\n\tworstChromoIndex = min_i;\r\n\tbestChromo = chromos.get(max_i);\r\n\tworstChromo = chromos.get(min_i);\r\n\t\r\n\tevaluated = true;\r\n }",
"OrExp getLeft();",
"public boolean lessthan(Inatnum a) throws Exception{\n if((this.isZero() &&a.isZero())==true) {return false;}//if both this and a are both zero, it returns false because it is not less than.\n if((this.isZero())==false&&a.isZero()==true) {return false;}//conditional that check if a is less than this.\n if((this.isZero())==true&&a.isZero()==false) {return true;}//conditional that checks if this is less than a.\n else {return this.pred().lessthan(a.pred()); }}",
"public int eval() \n\t { \n\t \treturn eval(root);\n\t }",
"private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}",
"@Override\n public int compareTo(MetalNode arg0) {\n\n int iResult=0;\n\n if (this.getDate()==arg0.getDate())\n {\n iResult=0;\n }\n else if (this.getDate()>arg0.getDate())\n {\n iResult=1;\n }\n else if (this.getDate()<arg0.getDate())\n {\n iResult=-1;\n }\n\n\n return iResult;\n }",
"private Object evalETree(ETreeNode node) throws FSException{\n Object lVal,rVal;\n\n if ( node == null )\n {\n parseError(\"Malformed expression\");\n // this is never reached, just for readability\n return null;\n }\n\n if (node.type==ETreeNode.E_VAL){\n return node.value;\n }\n lVal=evalETree(node.left);\n rVal=evalETree(node.right);\n\n switch (((Integer)node.value).intValue()){\n //call the various eval functions\n case LexAnn.TT_PLUS:{\n return evalPlus(lVal,rVal);\n }\n case LexAnn.TT_MINUS:{\n return evalMinus(lVal,rVal);\n }\n case LexAnn.TT_MULT:{\n return evalMult(lVal,rVal);\n }\n case LexAnn.TT_DIV:{\n return evalDiv(lVal,rVal);\n }\n case LexAnn.TT_LEQ:{\n return evalEq(lVal,rVal);\n }\n case LexAnn.TT_LNEQ:{\n return evalNEq(lVal,rVal);\n }\n case LexAnn.TT_LLS:{\n return evalLs(lVal,rVal);\n }\n case LexAnn.TT_LLSE:{\n return evalLse(lVal,rVal);\n }\n case LexAnn.TT_LGR:{\n return evalGr(lVal,rVal);\n }\n case LexAnn.TT_LGRE:{\n return evalGre(lVal,rVal);\n }\n case LexAnn.TT_MOD:{\n return evalMod(lVal,rVal);\n }\n case LexAnn.TT_LAND:{\n return evalAnd(lVal,rVal);\n }\n case LexAnn.TT_LOR:{\n return evalOr(lVal,rVal);\n }\n }\n\n return null;\n }",
"@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }",
"public abstract PredicateExpr getNext();",
"@Override\n\tprotected void initPredicate() {\n\t\t\n\t\tString pred1 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * header::Entry<ele,header,header> & size=0 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,header,header> & first=last & size=1 || \" +\n\t\t\"root::DoubleLinkedList<modCount,header,size> * header::Entry<eleH,first,last> * first::Entry<ele1,nextF,prevF> * last::Entry<ele2,nextL,prevL> * lseg(nextF,first,last,prevL,size1) & prevF=header & nextL=header & size=2+size1\";\n\t\t\n\t\tString pred2 = \"pred lseg(next,first,last,prev,size) == next=last & prev=first & size=0 || \" +\n\t\t\t\t\"next::Entry<item,next1,prev1> * lseg(next1,next,last,prev,size1) & prev1=first & size=size1+1\";\n\t\t\n\t\t\n//\t\tString pred0 = \"pred list(root) == root::DoubleLinkedList<modCount,header,size> * dll(header,size)\";\n//\t\tString pred1 = \"pred dll(header,size) == header::Entry<ele,header,header> & size=0 || header::Entry<ele,next,prev> * nndll(next,header,header,prev,size)\";\n//\t\tString pred2 = \"pred nndll(curr,prev,header,prevH,size) == curr::Entry<ele,header,prev> & prevH=curr & size=1 || curr::Entry<ele,next,prev> * nndll(next,curr,header,prevH,size1) & size=size1+1\";\n\t\t\t\t\n\t\tString pred = pred1 + \";\" + pred2;\n\t\tInitializer.initPredicate(pred);\n\t}",
"private int first_leaf() { return n/2; }",
"public int stoerrelse();"
] | [
"0.5975416",
"0.56282",
"0.55443305",
"0.54538894",
"0.5338833",
"0.5278065",
"0.5223166",
"0.5219465",
"0.5192869",
"0.5185426",
"0.51602346",
"0.5154917",
"0.51519495",
"0.5141564",
"0.51053226",
"0.51043963",
"0.5081483",
"0.5067049",
"0.5056816",
"0.5055024",
"0.5048539",
"0.5041536",
"0.5027771",
"0.5027121",
"0.5021033",
"0.5019481",
"0.50186634",
"0.49841225",
"0.49767604",
"0.4971645",
"0.49684596",
"0.4943284",
"0.49352348",
"0.49337327",
"0.49178556",
"0.4908827",
"0.49022442",
"0.48956683",
"0.48912114",
"0.48886245",
"0.48826984",
"0.48810828",
"0.48765752",
"0.48640412",
"0.48599443",
"0.48546806",
"0.48527935",
"0.48494813",
"0.48422608",
"0.48420697",
"0.4840294",
"0.4840058",
"0.48398435",
"0.48333007",
"0.48314068",
"0.48253706",
"0.48238346",
"0.48183244",
"0.48158565",
"0.48086113",
"0.48078176",
"0.48070186",
"0.4805969",
"0.48051983",
"0.4796615",
"0.47931975",
"0.47847977",
"0.4784223",
"0.4782129",
"0.47638616",
"0.47636938",
"0.47589076",
"0.4757839",
"0.47520947",
"0.47513354",
"0.47501624",
"0.47478577",
"0.47383174",
"0.4731499",
"0.47309613",
"0.47254598",
"0.47245944",
"0.4718864",
"0.47147635",
"0.47144023",
"0.47142684",
"0.47138932",
"0.47125992",
"0.47076684",
"0.47068274",
"0.47039703",
"0.47008094",
"0.4699792",
"0.46987736",
"0.469501",
"0.46949443",
"0.46940577",
"0.46930712",
"0.46917692",
"0.46898162",
"0.46892968"
] | 0.0 | -1 |
Evaluam copiii din stanga si dreapta. Nu evaluam sintaxa in nodurile de tip Assign deoarece aici se asigneaza valori variailelor | @Override
public void visit(AssignNode node) {
Evaluator.evaluate(node.getChild(0));
Evaluator.evaluate(node.getChild(1));
/**
* Verificam fiii si construim perechea Variabila, Valoare pentru a fi
* inserata in HahMap-ul din Evaluator
*/
Variable x = null;
Value i = null;
if (node.getChild(1) instanceof Variable) {
x = new Variable(node.getChild(1).getName());
} else {
i = new Value(node.getChild(1).getName());
}
if (node.getChild(0) instanceof Variable) {
x = new Variable(node.getChild(0).getName());
} else {
i = new Value(node.getChild(0).getName());
}
Evaluator.variables.put(x.getName(), i.getName());
node.setName(i.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void visit(EqualityNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam fiul stang si fiul drept\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tString s2 = null;\n\t\tString s1 = null;\n\t\t/**\n\t\t * preluam rezultatele evaluarii celor doi fii\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Evaluator.variables.get(node.getChild(0).getName());\n\t\t} else {\n\t\t\ts1 = node.getChild(0).getName();\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Evaluator.variables.get(node.getChild(1).getName());\n\t\t} else {\n\t\t\ts2 = node.getChild(1).getName();\n\t\t}\n\n\t\t/**\n\t\t * verificam daca cei doi fii s- au evaluat la aceeasi expresie\n\t\t */\n\t\tif (s1.contentEquals(s2)) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\n\t}",
"@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}",
"public boolean filterPrimesse(Map<Variable, String> assigne, Map<Variable, ArrayList<String>> nonAssigne) {\n\n ArrayList<Variable> InNonAss = Tools.variableInConstraint(this.premisse, nonAssigne); // recuperation des varable de la premise qui ne sont par encore assigne \n ArrayList<Variable> InAss = Tools.variableConstraintInAssigne(assigne, this.premisse); // recuperation des varable de la premise qui sont deja assigne \n \n \n for (Variable v : this.getScope()) {\n // on verrification de la presente de tout la varriable scope\n if (!Tools.inArrayList(InAss, v) && !Tools.inArrayList(InNonAss, v)) {\n return false;\n }\n }\n\n if (InNonAss.isEmpty() || InAss.isEmpty()) { // cas on aussi variable ou tout les varriable son asigne \n\n return false;\n }\n\n String valeurVariablePremise;\n\n for (int i = 0; i < InAss.size(); i++) {// on veriffie que les varaible de les variable deja assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InAss.get(i));\n\n if (!Tools.getValue(assigne, InAss.get(i)).equals(valeurVariablePremise)) {\n\n Tools.cleanDomainFritrage(nonAssigne, InNonAss);\n\n return true;\n }\n\n }\n\n boolean filtrage = false;\n\n for (int j = 0; j < InNonAss.size(); j++) { // Reduction des domain des varaible si les non assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InNonAss.get(j)); // recuperation de la valeur de variable non asigne dans la premisse \n\n for (int k = 0; k < nonAssigne.get(InNonAss.get(j)).size(); k++) { // filttrage du domaine \n\n if (!nonAssigne.get(InNonAss.get(j)).get(k).equals(valeurVariablePremise)) {\n\n nonAssigne.get(InNonAss.get(j)).remove(k);\n\n k--;\n\n filtrage = true;\n\n }\n\n }\n\n }\n\n return filtrage;\n }",
"protected Element evalAssurance(Assurance ass){\n\t\tRecord r1 = ass.getLeftRecord();\n\t\tRecord r2 = ass.getRightRecord();\n\t\tOperator op = ass.getOperator();\n\t\tElement an = el(\"bpws:assign\");\n\t\tif (r1.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r1.getFormular(), \"nswomoxsd:leftValue\"));\n\t\tif (r2.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r2.getFormular(), \"nswomoxsd:rightValue\"));\n\t\tan.appendChild(\n\t\t\tsetExpr(\n\t\t\t\tgetMyVarPath(\"/nswomoxsd:leftValue\") + \n\t\t\t\top.value() +\n\t\t\t\tgetMyVarPath(\"nswomoxsd:rightValue\"),\n\t\t\t\t\"nswomoxsd:value\"\n\t\t\t)\n\t\t);\n\t\treturn an;\n\t}",
"public abstract double evaluer(SolutionPartielle s);",
"@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}",
"@Test\r\n public void deriveFromAndAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M&=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH&=9\", \"(long,km^2/h)\");\r\n }",
"@Test\r\n public void deriveFromOrAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M|=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH|=9\", \"(long,km^2/h)\");\r\n }",
"private void manual() {\n State q1 = new State(\"q1\", \"ID\");\n State q2 = new State(\"q2\", \"IF\");\n State q3 = new State(\"q3\", \"ID\");\n State q4 = new State(\"q4\", \"CONSTANTE\");\n State q5 = new State(\"q5\", \"ABRE_PARENTESES\");\n State q6 = new State(\"q6\", \"FECHA_PARENTESES\");\n State q7 = new State(\"q7\", \"OPERADOR_MAIOR\");\n State q8 = new State(\"q8\", \"OPERADOR_MENOR\");\n State q9 = new State(\"q9\", \"OPERADOR_DIFERENTE\");\n State q10 = new State(\"q10\", \"ID\");\n State q11 = new State(\"q11\", \"ID\");\n State q12 = new State(\"q12\", \"ID\");\n State q13 = new State(\"q13\", \"ID\");\n State q14 = new State(\"q14\", \"BEGIN\");\n State q15 = new State(\"q15\", \"ID\");\n State q16 = new State(\"q16\", \"ID\");\n State q17 = new State(\"q17\", \"END\");\n State q18 = new State(\"q18\", \"ESPACO\");\n State q19 = new State(\"q19\", \"ID\");\n State q20 = new State(\"q20\", \"ID\");\n State q21 = new State(\"q21\", \"ELSE\");\n\n // IF\n q0.put(\"[i]\", q1);\n q1.put(\"[f]\", q2);\n q1.put(\"[^\\\\Wf]\", q3);\n q2.put(\"[\\\\w]\", q3);\n\n // ID\n q0.put(\"[^\\\\Wbei0-9_]\", q3);\n q3.put(\"[\\\\w]\", q3);\n\n // CONSTANTE\n q0.put(\"[\\\\d]\", q4);\n q4.put(\"[\\\\d]\", q4);\n\n // ABRE_PARENTESES\n q0.put(\"[(]\", q5);\n\n // ABRE_PARENTESES\n q0.put(\"[)]\", q6);\n\n // OPERADOR_MAIOR\n q0.put(\"[>]\", q7);\n\n // OPERADOR_MENOR\n q0.put(\"[<]\", q8);\n\n // OPERADOR_DIFERENTE\n q0.put(\"[#]\", q9);\n\n // BEGIN\n q0.put(\"[b]\", q10);\n q10.put(\"[e]\", q11);\n q11.put(\"[g]\", q12);\n q12.put(\"[i]\", q13);\n q13.put(\"[n]\", q14);\n q10.put(\"[^\\\\We]\", q3);\n q11.put(\"[^\\\\Wg]\", q3);\n q12.put(\"[^\\\\Wi]\", q3);\n q13.put(\"[^\\\\Wn]\", q3);\n q14.put(\"[\\\\w]\", q3);\n\n // END\n q0.put(\"[e]\", q15);\n q15.put(\"[n]\", q16);\n q16.put(\"[d]\", q17);\n q15.put(\"[^\\\\Wnl]\", q3);\n q16.put(\"[^\\\\Wd]\", q3);\n q17.put(\"[\\\\w]\", q3);\n\n // ELSE\n q15.put(\"[l]\", q19);\n q19.put(\"[s]\", q20);\n q20.put(\"[e]\", q21);\n q19.put(\"[^\\\\Ws]\", q3);\n q20.put(\"[^\\\\We]\", q3);\n q21.put(\"[\\\\w]\", q3);\n\n // ESPACO\n q0.put(\"[\\\\s]\", q18);\n }",
"static void translate() {\n if(!token.equals(\"IF\")) {\r\n stack.add(lexeme);\r\n index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n stack.add(lexeme);\r\n index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n stack.add(index, lexeme);\r\n index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n index++;\r\n }\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n index++;\r\n break;\r\n }\r\n }\r\n\r\n // Beginning the execution and evaluation of the translated code.\r\n index = 0;\r\n\r\n while (!stack.get(index).equals(\"=\") && !stack.get(index).equals(\"+\") && !stack.get(index).equals(\"-\") &&\r\n !stack.get(index).equals(\"*\") && !stack.get(index).equals(\"/\") && !stack.get(index).equals(\"%\")) {\r\n index ++;\r\n }\r\n\r\n int value = 0;\r\n int operand1 = 0;\r\n int operand2 = 0;\r\n String operator = stack.get(index);\r\n stack.remove(index);\r\n index--;\r\n\r\n if (operator.equals(\"=\")) {\r\n\r\n try {\r\n value = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n value = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n index--;\r\n\r\n String id = stack.get(index);\r\n stack.remove(index);\r\n\r\n //System.out.println(\"\\n\" + id + \" is equal to \" + value);\r\n\r\n if (search(id) == -1) {\r\n varList.add(id);\r\n varList.add(Integer.toString(value));\r\n } else {\r\n varList.set(search(id) + 1, Integer.toString(value));\r\n }\r\n }\r\n\r\n else {\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n\r\n execute(evaluate(operand1, operand2, operator));\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(translateIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }",
"public static void main(String args[]) {\n boolean hasSATscore = true;\n boolean hasHighSchoolTranscript = true;\n boolean isInternational=false;\n boolean hasTOFELscore=false;\n\n /*\n * logical_step2: Check if the applicant is eligible to apply to the university\n * logical_step_details: the applicant must have a SAT score, a high school transcript and must have TOEFL score\n * if is an international student.\n * question_1: What does the following block of code do?\n * answer 1: Check if the applicant is eligible to apply to the university\n * question_2: What is the data type of the variable isElig?\n * answer 2: isElig is a Boolean data type\n * question_3: What is the value of: !isInternational. (value assigned above)\n * answer_3: the value of !isInternational is true\n * question_4: What is the output the following block of code?\n * answer_4: the code displays the following statement \"You eligibility requirement has been evaluated to :true\"\n */\n\n /*\n * stm_comment: isElig contains result of logical operation between the variables. logical and (&&), logical or(||) and not operator is used \n * question_1: Please explain how the value of isElig evaluated.\n * answer_1: isElig contains result of logical operation between the variables\n * question_2: Please state the operators used in the code block below.\n * answer_2: logical and (&&), logical or(||) and not operator is used .\n *\n */\n\n boolean isElig = hasSATscore && hasHighSchoolTranscript && (!isInternational || (isInternational && hasTOFELscore));\n System.out.println(\" Your eligibility requirement has been evaluated to :\" +isElig );\n\n\n }",
"@Override\n\tpublic boolean evaluarPropuesta(Oferta o) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void visit(LessNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam expresiile din cei 2 fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger s2 = 0;\n\t\tInteger s1 = 0;\n\t\t/**\n\t\t * preluam rezultatele evaluarii si verificam daca primul este mai mic\n\t\t * decat la doilea ,setand corespunzator valoarea din nodul curent in\n\t\t * functie de rezultatul comparatiei\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\t\t} else {\n\t\t\ts1 = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t} else {\n\t\t\ts2 = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (s1 < s2) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\t}",
"public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }",
"public static void main(String[] args) {\n\t\tString pol1=\"1x^3+3x^2+7x^1+21x^0\";\r\n\t\tString pol2=\"1x^2+7x^0\";\r\n\t\tString adunare=\"+1x^3+4x^2+7x^1+28x^0\";\r\n\t\tString scadere=\"+1x^3+2x^2+7x^1+14x^0\";\r\n\t\tString inmultire=\"+1x^5+3x^4+14x^3+42x^2+49x^1+147x^0\";\r\n\t\tString restul=\"\";\r\n\t\tString catul=\"+1.0x^1+3.0x^0\";\r\n\t\tString derivare=\"+3x^2+6x^1+7x^0\";\r\n\t\tString integrare=\"+0.25x^4+1.0x^3+3.5x^2+21.0x^1\";\r\n\t\tPolinom p1=new Polinom();\r\n\t\tPolinom p2=new Polinom();\r\n\t\tPolinom p1copie=new Polinom();\r\n\t\ttry {\r\n\t\t\tp1=p1.crearePolinom(pol1, 3);\r\n\t\t\tp1copie=p1.crearePolinom(pol1, 3);\r\n\t\t\tp2=p2.crearePolinom(pol2, 2);\r\n\t\t} catch (IllegalInputException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\tPolinom p3=p1.adunarePolinom(p2, 4);\r\n\t\tString rezAdunare=p3.afisPolinomIntreg();\r\n\t\tPolinom p4=p1.scaderePolinom(p2, 4);\r\n\t\tString rezScadere=p4.afisPolinomIntreg();\r\n\t\tPolinom p5=p1.inmultirePolinom(p2, 6);\r\n\t\tString rezInmultire=p5.afisPolinomIntreg();\r\n\t\tString cat=p1.impartirePolinom(p2, 3, 2);\r\n\t\tString rest=p1copie.impartirePolinom(p2, 3, 2);\r\n\t\tPolinom p7=p1.derivarePolinom(3);\r\n\t\tString rezDerivare=p7.afisPolinomReal();\r\n\t\tPolinom p8=p1.integrarePolinom(4);\r\n\t\tString rezIntegrare=p8.afisPolinomReal();\r\n\t\t\r\n\t\tassert adunare!=rezAdunare : \"Nu se verifica adunarea!\";\r\n\t\tassert scadere!=rezScadere : \"Nu se verifica scaderea!\";\r\n\t\tassert inmultire!=rezInmultire : \"Nu se verifica inmultirea!\";\r\n\t\tassert derivare!=rezDerivare : \"Nu se verifica derivarea!\";\r\n\t\tassert integrare!=rezIntegrare : \"Nu se verifica integrarea!\";\r\n\t\tassert catul!=cat : \"Nu se verifica adunarea!\";\r\n\t\tassert restul!=rest : \"Nu se verifica adunarea!\";\r\n\t\t\r\n\t\t\r\n\t}",
"public void mostrarVariablesForrester(){\n System.out.println(\"\");\n for (int i = 0; i < tam; i++) {\n if(matrizTipos[i][i].equals(\"P\")){\n System.out.println(\"[\"+i+\"] es un parametro\"); // parametro = constante\n }\n else if(matrizTipos[i][i].equals(\"V\")){\n System.out.println(\"[\"+i+\"] es un auxiliar\"); // auxiliar = constante * auxiliar (?) ó constante +/- auxiliar\n }\n else if(matrizTipos[i][i].equals(\"R\")){\n System.out.println(\"[\"+i+\"] es un flujo\"); // flujo = constante * auxiliar * nivel\n }\n else if(matrizTipos[i][i].equals(\"X\")){\n System.out.println(\"[\"+i+\"] es un nivel\");// xi(t + Δt) = xi(t) + Δt{rj - rk} rj = entrada y rk = salida, \"el - es por la salida\" (creo) \n }\n }\n }",
"public static void isSAT(Predicate pred, int[] vList){\n\t\t\n\t\tStack<Integer> assignedVariables = new Stack<Integer>();\n\t\tboolean satisfiability = false;\n\t\twhile(assignedCount<vList.length/2){\n\t\t\tif(pred.isContainsVariable(assignedCount+1, vList.length/2) == 0){\n\t\t\t\tvList[assignedCount] = 0;\n\t\t\t\tvList[assignedCount+vList.length/2] = 1;\n\t\t\t\tassignedCount++;\n\t\t\t} else {\n\t\t\t\tfailedPoint = assignedCount+1;\n\t\t\t\tsatisfiability = assignVariableAndEvaluatePred(pred, vList, assignedVariables);\n\t\t\t\t\n\t\t\t\tif(!satisfiability){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(satisfiability){\n\t\t\t\n\t\t\tsats.add(vList);\n\t\t\t\n\t\t\tgetAllSat(pred, vList);\n\t\t\t\n\t\t\tSystem.out.println(\"Satisfied Assigned Values for Variables:\");\n\t\t\tfor(int[] arr: sats){\n\t\t\t\tfor(int i=0; i<vList.length/2; i++){\n\t\t\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Satisfied Clauses:\");\n\t\t\tfor(int i : pred.clauses.keySet()){\n\t\t\t\tClause c = pred.clauses.get(i);\n\t\t\t\tif(i==pred.clauses.size()){\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \" )\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \" ) ^ \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"No Possible Variable Values for Satisfiability\");\n\t\t\t\n\t\t\tSystem.out.println(\"UnSatisfied Variable: \" + failedPoint);\n\t\t\t\n\t\t\tSystem.out.println(\"Backtracked Node Count: \" + backTrackedCount);\n\t\t\t\n\t\t\tSystem.out.println(\"UnSatisfied Clauses:\");\n\t\t\tfor(int i : pred.clauses.keySet()){\n\t\t\t\tClause c = pred.clauses.get(i);\n\t\t\t\tif(i==pred.clauses.size()){\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \")\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"(\" + c.getL1().value + \" V \" + c.getL2().value + \" V \" + c.getL3().value + \") ^ \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public VariableUnit solve() {\n LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();\n\n VariableUnit vu1 = new VariableUnit(250.0, 'x');\n VariableUnit vu2 = new VariableUnit('+');\n VariableUnit vu3 = new VariableUnit(250.0, 'x');\n VariableUnit vu4 = new VariableUnit(501.0, 'x');\n VariableUnit vu5 = new VariableUnit('y');\n VariableUnit vu6 = new VariableUnit('-');\n alpha_arr.get(('x' - 'a')).addLast(vu1);\n alpha_arr.get(('x' - 'a')).addLast(vu2);\n alpha_arr.get(('x' - 'a')).addLast(vu3);\n op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);\n op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);\n assignValue(2.0, 'x');\n \n System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);\n System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);\n System.out.print(vu5);\n System.out.println();\n System.out.println(\"------------------------------\");\n \n VariableUnit temp, temp1;\n for (int i = 0; i < op_order.size(); i++) {\n \ttemp = op_order.pollFirst();\n \t\n \t\tswitch (temp.getVariable()) {\n \tcase '+':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().add(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tcase '-':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().subtract(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tdefault:\n \t\tprocessor.push(temp);\n \t\t}\n }\n\n /*\n * System.out.println(\"This equation is currently unsolvable.\");\n \tSystem.out.println(\"Try assigning values to some of the variables.\");\n */\n while (!processor.isEmpty()) {\n \top_order.addFirst(processor.pop());\n }\n \n ListIterator<VariableUnit> iter = op_order.listIterator();\n \n while ( iter.hasNext() ) {\n \tVariableUnit iter_temp = iter.next();\n \t//System.out.print(iter_temp.hasValue());\n \tif (iter_temp.hasValue()) {\n \t\tSystem.out.print( Double.toString(iter_temp.subValue()) );\n \t}\n \telse {\n \t\tSystem.out.print(iter_temp);\n \t}\n };\n System.out.println();\n \n return new VariableUnit(Double.NaN, ' ');\n }",
"@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}",
"@Override\n\tpublic void visit(AssertNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/**\n\t\t * daca nodul contine variabile nedeclarate pana acum nu mergem mai\n\t\t * departe si propagam in sus check failed\n\t\t */\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * daca valoarea din copil se evalueaza la false setam indicatorul de\n\t\t * assert failed\n\t\t */\n\t\tif (node.getChild(0).getName().contentEquals(\"false\")) {\n\t\t\tEvaluator.assertFailed = true;\n\t\t\treturn;\n\t\t} else {\n\t\t\tnode.setName(\"true\");\n\t\t}\n\n\t}",
"public static void main(String[] args){\r\n\r\n IStmt lab2ex1 = new CompStmt(new AssignStmt(\"v\", new ConstExp(2)), new PrintStmt(new VarExp(\"v\")));\r\n\r\n /*\r\n * lab2ex2\r\n * a = 2 + 3 * 5;\r\n * b = a + 1;\r\n * print(b)\r\n *\r\n * */\r\n\r\n IStmt lab2ex2 = new CompStmt(new AssignStmt(\"a\", new ArithExp('+', new ConstExp(2), new ArithExp('*', new ConstExp(3), new ConstExp(5)))), new CompStmt(new AssignStmt(\"b\", new ArithExp('+', new VarExp(\"a\"), new ConstExp(1))), new PrintStmt(new VarExp(\"b\"))));\r\n\r\n /*\r\n * lab2ex3\r\n * a = 2 - 2;\r\n * if a then v = 2 else v = 3\r\n * print(v)\r\n *\r\n * */\r\n\r\n IStmt lab2ex3 = new CompStmt(new AssignStmt(\"a\", new ArithExp('-', new ConstExp(2), new ConstExp(2))), new CompStmt(new IfStmt(new VarExp(\"a\"), new AssignStmt(\"v\", new ConstExp(2)), new AssignStmt(\"v\", new ConstExp(3))), new PrintStmt(new VarExp(\"v\"))));\r\n\r\n /*\r\n * lab3ex1\r\n * openRFile(var_f, \"test.in\");\r\n * readFile(var_f, var_c); print(var_c);\r\n * if var_c then readFile(var_f, var_c); print(var_c)\r\n * else print(0)\r\n * closeRFile(var_f)\r\n *\r\n * */\r\n\r\n IStmt lab3ex1 = new CompStmt(new OpenRFileStmt(\"var_f\", \"test1.in\"),\r\n new CompStmt(\r\n new ReadFileStmt(new VarExp(\"var_f\"), \"var_c\"),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"var_c\")),\r\n new CompStmt(\r\n new IfStmt(\r\n new VarExp(\"var_c\"),\r\n new CompStmt(\r\n new ReadFileStmt(new VarExp(\"var_f\"), \"var_c\"),\r\n new PrintStmt(new VarExp(\"var_c\"))\r\n ),\r\n new PrintStmt(new ConstExp(0))\r\n ),\r\n new CloseRFileStmt(new VarExp(\"var_f\"))\r\n )\r\n )\r\n )\r\n );\r\n\r\n /**\r\n * lab3ex2\r\n * openRFile(var_f + 2, var_c); print(var_c);\r\n * (if var_c then readFile(var_f, var_c); print(var_c)\r\n * else print(0));\r\n * closeRFile(var_f)\r\n *\r\n */\r\n\r\n IStmt lab3ex2 = new CompStmt(new OpenRFileStmt(\"var_f\", \"test.in\"),\r\n new CompStmt(\r\n new ReadFileStmt(new ArithExp('+', new VarExp(\"var_f\"), new ConstExp(2)), \"var_c\"),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"var_c\")),\r\n new CompStmt(\r\n new IfStmt(\r\n new VarExp(\"var_c\"),\r\n new CompStmt(\r\n new ReadFileStmt(new VarExp(\"var_f\"), \"var_c\"),\r\n new PrintStmt(new VarExp(\"var_c\"))\r\n ),\r\n new PrintStmt(new ConstExp(0))\r\n ),\r\n new CloseRFileStmt(new VarExp(\"var_f\"))\r\n )\r\n )\r\n )\r\n );\r\n\r\n\r\n /*\r\n * v = 10; new(v, 20); new(a, 22); wH(a, 30); print(a); print(rH(a)); a = 0;\r\n *\r\n * */\r\n\r\n IStmt lab4ex1 = new CompStmt(new AssignStmt(\"v\", new ConstExp(10)),\r\n new CompStmt(\r\n new NewStmt(\"v\", new ConstExp(20)),\r\n new CompStmt(\r\n new NewStmt(\"a\", new ConstExp(22)),\r\n new CompStmt(\r\n new WriteHeapStmt(\"a\", new ConstExp(30)),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"a\")),\r\n new CompStmt(\r\n new PrintStmt(new ReadHeapExp(\"a\")),\r\n new AssignStmt(\"a\", new ConstExp(0))\r\n )\r\n )\r\n )\r\n )\r\n )\r\n );\r\n\r\n\r\n /**\r\n *\r\n * Lab5ex1: 10 + (2 < 6) = 11\r\n *\r\n * */\r\n\r\n\r\n IStmt lab5ex1 = new CompStmt(new AssignStmt(\"P\", new ArithExp('+', new ConstExp(10),\r\n new BooleanExp(new ConstExp(2), new ConstExp(6), \"<\"))),\r\n new PrintStmt(new VarExp(\"P\")));\r\n\r\n\r\n /*\r\n *\r\n * Lab5ex2: (10 + 2) < 6\r\n *\r\n * **/\r\n\r\n IStmt lab5ex2 = new CompStmt(new AssignStmt(\"Q\", new BooleanExp(new ArithExp('+',\r\n new ConstExp(10), new ConstExp(2)), new ConstExp(6), \"<\")),\r\n new PrintStmt(new VarExp(\"Q\")));\r\n\r\n\r\n /*\r\n *\r\n * v = 6;\r\n * (while (v - 4) print(v); v = v - 1)\r\n * print(v)\r\n *\r\n ***/\r\n\r\n AssignStmt as = new AssignStmt(\"v\", new ConstExp(6));\r\n IStmt auxlab5ex3 = new CompStmt(new WhileStmt(new BooleanExp(new VarExp(\"v\"),\r\n new ConstExp(4), \">=\"), new CompStmt(new PrintStmt(new VarExp(\"v\")),\r\n new AssignStmt(\"v\", new ArithExp('-', new VarExp(\"v\"), new ConstExp(1))))),\r\n new PrintStmt(new VarExp(\"v\")));\r\n\r\n IStmt lab5ex3 = new CompStmt(as, auxlab5ex3);\r\n\r\n\r\n /**\r\n *\r\n * la6ex1\r\n * v = 10; new(a, 22);\r\n * fork(wH(a, 30); v = 32; print(v); print(rH(a)));\r\n * print(v); print(rH(a))\r\n *\r\n * */\r\n\r\n IStmt lab6ex1 = new CompStmt(\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(10)),\r\n new NewStmt(\"a\", new ConstExp(22))\r\n ),\r\n new CompStmt(\r\n new ForkStmt(\r\n new CompStmt(\r\n new WriteHeapStmt(\"a\", new ConstExp(30)),\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(32)),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\"))\r\n )\r\n )\r\n )\r\n ),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\"))\r\n )\r\n )\r\n );\r\n\r\n IStmt lab6ex2 = new CompStmt(\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(10)),\r\n new NewStmt(\"a\", new ConstExp(22))\r\n ),\r\n new CompStmt(\r\n new ForkStmt(\r\n new CompStmt(\r\n new WriteHeapStmt(\"a\", new ConstExp(30)),\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(32)),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\"))\r\n )\r\n )\r\n )\r\n ),\r\n new ForkStmt(new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\")))\r\n )\r\n )\r\n );\r\n\r\n\r\n\r\n TextMenu menu = new TextMenu(new MyDictionary<String, Command>(new HashMap<String, Command>()));\r\n menu.addCommand(new ExitCommand(\"0\", \"Exit\"));\r\n menu.addCommand(new RunExample(\"1\", lab2ex1.toString(), getNewController(lab2ex1)));\r\n menu.addCommand(new RunExample(\"2\", lab2ex2.toString(), getNewController(lab2ex2)));\r\n menu.addCommand(new RunExample(\"3\", lab2ex3.toString(), getNewController(lab2ex3)));\r\n menu.addCommand(new RunExample(\"4\", lab3ex1.toString(), getNewController(lab3ex1)));\r\n menu.addCommand(new RunExample(\"5\", lab3ex2.toString(), getNewController(lab3ex2)));\r\n menu.addCommand(new RunExample(\"6\", lab4ex1.toString(), getNewController(lab4ex1)));\r\n menu.addCommand(new RunExample(\"7\", lab5ex1.toString(), getNewController(lab5ex1)));\r\n menu.addCommand(new RunExample(\"8\", lab5ex2.toString(), getNewController(lab5ex2)));\r\n menu.addCommand(new RunExample(\"9\", lab5ex3.toString(), getNewController(lab5ex3)));\r\n menu.addCommand(new RunExample(\"10\", lab6ex1.toString(), getNewController(lab6ex1)));\r\n menu.addCommand(new RunExample(\"11\", lab6ex2.toString(), getNewController(lab6ex2)));\r\n\r\n menu.show();\r\n }",
"@Override\n\t public String solve() {\n\t if (count == 0) {\n\t answer1 = getVariable2()*getVariable3();\n\t setAnswer(answer1 + \"\");\n\t } else if (count == 1) {\n\t answer1 = getVariable1()/getVariable2();\n\t setAnswer(answer1 + \"\");\n\t }else if (count == 2) {\n\t answer1 = getVariable1()/getVariable3();\n\t setAnswer(answer1 + \"\");\n\t }\n\t return getAnswer();\n\t }",
"private void setFuncion(){\r\n if(!interpretador.checarParentesis(txtFuncion.getText()) && !interpretadorD.checarParentesis(txtFuncionD.getText())){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Información\");\r\n alert.setContentText(\"Error de sintaxis. Verifique que haya escrito la función correctamente\");\r\n alert.showAndWait();\r\n }else{\r\n interpretador.setFuncion(txtFuncion.getText());\r\n interpretadorD.setFuncion(txtFuncionD.getText());\r\n }\r\n }",
"void outputAsSalWithoutGVAL() throws IsabelleException, FileException {\r\n if ( operator == Token.EQUALS ) {\r\n left.outputAsSAL(true); //without Some\r\n outputSAL(operator);\r\n right.outputAsSAL(true); //with Some if true \r\n }\r\n else {\r\n outputSAL(operator, Token.OPENING_ROUND_BRACKET);\r\n left.outputAsSAL(true); //without Some\r\n outputSAL(Token.COMMA);\r\n right.outputAsSAL(true); //with Some if true \r\n outputSAL(Token.CLOSING_ROUND_BRACKET);\r\n }\r\n }",
"public static void main(String[] args) {\n if (1 > 0) {\n System.out.println(\"1 > 0\");\n }\n \n \n if (5 < 4) {\n System.out.println(\"5 < 4\");\n } else {\n System.out.println(\"5 > 4\");\n }\n \n if (1 > 10) {\n System.out.println(\"1 > 10\");\n } else if (5 > 10) {\n System.out.println(\"5 > 10\");\n } else if (9 > 10) {\n System.out.println(\"9 > 10\");\n } else if (11 > 10){\n System.out.println(\"11 > 10\");\n } else {\n System.out.println(\"< 10\");\n }\n \n /*\n * keywordul break - opreste executia in acel bloc\n * in cazul structurii switch: daca gasim un rezultat valid vom opri excecutia\n */\n \n \n //Controlul executiei prin switch\n char rezultat;\n char valoareEvaluata = 'F';\n switch (valoareEvaluata) {\n case 'A':\n rezultat = 'A';\n break;\n case 'B':\n rezultat = 'B';\n break;\n case 'C':\n rezultat = 'C';\n break;\n default:\n rezultat = valoareEvaluata;\n }\n System.out.println(\"Am gasit: \" + rezultat);\n \n }",
"public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }",
"private void evaluarRedefinicion(List<EntradaPar> l, List<EntradaPar> lAncestro, Token tok) throws Exception {\r\n\t\t// comparo sus tipos\r\n\t\tIterator<EntradaPar> l1 = l.iterator();\r\n\t\tIterator<EntradaPar> l2 = lAncestro.iterator(); //l2 tiene igual longitud que l1\r\n\t\tTipo tipo,tipoAncestro;\r\n\t\t\r\n\t\t//mientras haya un siguiente -> itero\r\n\t\twhile (l1.hasNext()) {\r\n\t\t\ttipo= l1.next().getTipo();\r\n\t\t\ttipoAncestro= l2.next().getTipo();\r\n\t\t\t\r\n\t\t\t//si tienen distinto tipo -> error\r\n\t\t\tif ( ! tipo.getTipo().equals(tipoAncestro.getTipo()))\r\n\t\t\t\tthrow new redefinicionMetodoInvalido(\"Error el redefinir un metodo en la clase \"+this.getNombre()+\", se esperaba tipo de parametro '\"+tipoAncestro.getTipo()+\"' y recibi '\"+tipo.getTipo()+\"'\", tok.getNroLinea(), tok.getNroColumna());\r\n\t\t\t\r\n\t\t\t//sino, sigo comprobando\r\n\t\t}\r\n\t}",
"public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }",
"@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }",
"public void MIPSme()\n\t{\n\t\t\n\t\tTEMP varAddress = null;\n\t\t//v := v - this is the right side of the assignment - we want to load the value of v from memory\n\t\tif (isRight){\n\t\t\tif(isParamFromStack){\n\t\t\t\t// we want value from stack\n\t\t\t\tsir_MIPS_a_lot.getInstance().loadFromFrame(dst,(this.localVarOffset+1)*4);\n\t\t\t}\n\t\t\t//need to be modified\n\t\t\telse{\n\t\t\t\tsir_MIPS_a_lot.getInstance().loadFromFrame(dst,-(this.localVarOffset+1)*4);\n\t\t\t}\n\t\t}\n\t\t//left side - we want to get variable address into temp t \n\t\telse{\n\t\t\t//variable is a parameter of a function\n\t\t\tif (isParamFromStack){\n\t\t\t\tvarAddress = sir_MIPS_a_lot.getInstance().addressParamVar(this.localVarOffset);\n\t\t\t}\n\t\t\t//for now it represents local variable but need to be changed.... (data members, globals...) \n\t\t\telse{\n\t\t\t\tvarAddress = sir_MIPS_a_lot.getInstance().addressLocalVar(this.localVarOffset);\n\t\t\t}\n\t\t\tsir_MIPS_a_lot.getInstance().move(dst,varAddress);\n\t\t}\n\t}",
"public void showAssignments(){\n\t\tIterator it = this.clauses.iterator();\n\t\tint numVar = this.getVocabulary().getMaxVariableId();\n\t\tint[] assign = new int[numVar*2+1]; \n\n\t\twhile (it.hasNext()) {\n\t\t\tSystem.out.println(\"___________________________\");\n IClause cl = (IClause) it.next();\n Iterator litIterator = cl.literalIterator();\n while (litIterator.hasNext()){\n \tILiteral lit = (ILiteral) litIterator.next();\n \tint idx = lit.getId();\n \tif (idx<0) \n \t\tidx = numVar - idx;\n \tassign[idx] = lit.value();\n }\n }\n\t\t\n\t\tfor (int i=1;i<assign.length;i++){\n\t\t\tint k = i;\n\t\t\tif (i>numVar)\n\t\t\t\tk = numVar - i;\n\t\t\tSystem.out.print(k + \"|\" + assign[i] + \";\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"protected void podesiRaspUlaznice(String nazivPredstave) {\n\t\tfor (Predstave p:Kontroler.getInstanca().vratiRepertoar())\r\n\t\t\tif(p.getNazivPredstave().equals(nazivPredstave))\r\n\t\t\t\tnoviBrRasUl=p.getBrojRaspolozivihUlaznica();\r\n\t}",
"private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}",
"public String eval(String p1 ) {\n\t}",
"public void printTruthAssesment(){\n for(CustomHashmap.HashMapEntry<Integer, Boolean> e: tarjan.getTruthAssignment().entrySet()){\n if(e.getKey()>tarjan.getNumVariables()){\n continue;\n }else{\n String number=\"x\";\n for(char c: e.getKey().toString().toCharArray()){\n number+=UnicodeUtil.numbers[c-'0'];\n }\n io.println(number+\" = \"+ e.getValue());\n }\n }\n }",
"public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n public void t1()\n {\n \tFormula f1;\n \tEnvironment retenv;\n \tClause clause1,clause2,clause3;\n \tclause1 = make (na);\n\n \tf1=new Formula(clause1);\n \tSystem.out.println(\"---\");\n \tSystem.out.println(f1);\n \tretenv=SATSolver.solve(f1);\n \tSystem.out.println(\"Solution: \"+retenv);\n \t\n \tassertTrue(Boolean.TRUE);\n }",
"private void assignment() {\n\n\t\t\t}",
"public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}",
"protected void setExplain(int line, int one, int two) {\r\n String a = setToInfinity(one);\r\n String b = setToInfinity(two);\r\n String text;\r\n switch (line) {\r\n case 0:\r\n text = \"Aufruf mit: negascout(\" + a + \",\" + b + \")\";\r\n break;\r\n case 1:\r\n text = \"\\u00DCberpr\\u00FCfe, ob node ein Blatt ist\";\r\n break;\r\n case 2:\r\n text = \"Der Blattknoten wird zu \" + a + \" ausgewertet\";\r\n break;\r\n case 3:\r\n text = \"a = \" + a;\r\n break;\r\n case 4:\r\n text = \"b = \" + a;\r\n break;\r\n case 5:\r\n text = \"Iteriere \\u00FCber alle Kindknoten.\";\r\n break;\r\n case 60:\r\n text = \"Negierter Aufruf auf dem ersten Kindknoten\";\r\n break;\r\n case 61:\r\n text = \"Negierter Aufruf mit minimalem Fenster\";\r\n break;\r\n case 62:\r\n text = \"score = \" + a;\r\n break;\r\n case 7:\r\n text = \"\\u00FCberpr\\u00FCfe, ob Fail High vorliegt\";\r\n break;\r\n case 8:\r\n text = \"Erneuter Aufruf mit dem gesamten Fenster\";\r\n break;\r\n case 90:\r\n text = \"alpha = max( \" + a + \", \" + b + \" ) = \" + a;\r\n break;\r\n case 91:\r\n text = \"alpha = max( \" + a + \", \" + b + \" ) = \" + b;\r\n break;\r\n case 100:\r\n text = \"alpha = \" + a + \" ist gr\\u00F6\\u00DFer als beta = \" + b;\r\n break;\r\n case 101:\r\n text = \"alpha = \" + a + \" ist kleiner als beta = \" + b;\r\n break;\r\n case 110:\r\n text = \"Es wird ein Cutoff durchgef\\u00FChrt\";\r\n break;\r\n case 111:\r\n text = \"Der Cutoff ist irrelevant, weil es keine weiteren Kinder gibt.\";\r\n break;\r\n case 12:\r\n text = \"Setze neues minimales Fenster mit b =\" + a;\r\n break;\r\n case 14:\r\n text = \"Der letzte Kindknoten wurde betrachtet.\";\r\n break;\r\n case 200:\r\n text = \"Der Algorithmus gibt das Ergebnis \" + a + \" zur\\u00FCck.\";\r\n break;\r\n default:\r\n text = \"\";\r\n\r\n }\r\n explain.setText(text, null, null);\r\n }",
"Hojas eval();",
"void aprovarAnalise();",
"private void convert(AssignStatContext c, List<String> ssa) {\n\t\tString expr = getExpr(c.expr());\n\t\tString id = this.variableTrack.get(c.ID().getText());\n\t\tString newId = generateNewName(id);\n\t\tString constraint = \"(assert(= \" + newId + \" \" + expr + \"))\";\n\t\tssa.add(constraint);\n\t\t\n\t}",
"@Override\n\tpublic void visit(AdditionNode node) {\n\t\t/**\n\t\t * verificam intai sintaxa: in cazde eroare nu mergem mai departe in\n\t\t * evaluare\n\t\t */\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * evaluam fiii nodului\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\t\tInteger i, j;\n\t\t/**\n\t\t * Salvam valorile calculate in urma evaluarii copiilor in 2 variabile\n\t\t * Integer. Daca unul dintre fii este de tip Variable ii luam valoarea\n\t\t * din HashMap-ul din Evaluator. Altfel, valoarea e reprezentata de\n\t\t * numele nodului.\n\t\t */\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ti = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\n\t\t} else {\n\t\t\ti = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tj = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\n\t\t} else {\n\t\t\tj = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\n\t\t/**\n\t\t * realizam suna celor doua valori si updatam numele nodului curent cu\n\t\t * valoarea calculata\n\t\t */\n\t\tInteger n = i + j;\n\n\t\tnode.setName(n.toString());\n\n\t}",
"@Override\r\n public void doEdit ()\r\n throws DoEditException\r\n {\n List<StringWithProperties> criteria = probNet.getDecisionCriteria ();\r\n StringWithProperties criterion = null;\r\n switch (stateAction)\r\n {\r\n case ADD :\r\n if (criteria == null)\r\n {\r\n // agents = new StringsWithProperties();\r\n criteria = new ArrayList<StringWithProperties> ();\r\n }\r\n criterion = new StringWithProperties (criterionName);\r\n // agents.put(agentName);\r\n criteria.add (criterion);\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case REMOVE :\r\n for (StringWithProperties criterio : criteria)\r\n {\r\n if (criterio.getString ().equals (criterionName))\r\n {\r\n criterion = criterio;\r\n }\r\n }\r\n criteria.remove (criterion);\r\n // TODO assign criteria to node\r\n // it is also necessary to delete this criteria from the node it\r\n // was assigned to\r\n /*\r\n * if (criteria != null) { for (ProbNode node :\r\n * probNet.getProbNodes()) { if\r\n * (node.getVariable().getDecisionCriteria\r\n * ().getString().equals(criteriaName)) {\r\n * node.getVariable().setDecisionCriteria(null); } } }\r\n */\r\n if (criteria.size () == 0)\r\n {\r\n criteria = null;\r\n }\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case DOWN :\r\n // StringsWithProperties newAgentsDown = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasDown = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsDown.put((String)dataTable[i][0]);\r\n newCriteriasDown.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasDown);\r\n break;\r\n case UP :\r\n // StringsWithProperties newAgentsUp = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasUp = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsUp.put((String)dataTable[i][0]);\r\n newCriteriasUp.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasUp);\r\n break;\r\n case RENAME :\r\n // agents.rename(agentName, newName);\r\n // StringsWithProperties newAgentsRename = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasRename = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsRename.put((String)dataTable[i][0]);\r\n newCriteriasRename.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasRename);\r\n break;\r\n }\r\n }",
"@Override\n\tpublic void visit(ForNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * initializare\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/**\n\t\t * evaluam conditia pentru a intra in for\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(1));\n\t\twhile (node.getChild(1).getName().contentEquals(\"true\")) {\n\t\t\t/**\n\t\t\t * Daca conditia e adevarata, atunci executam programul din for\n\t\t\t */\n\t\t\tEvaluator.evaluate(node.getChild(3));\n\t\t\t/**\n\t\t\t * executam pasul\n\t\t\t */\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\t/**\n\t\t\t * reevaluam conditia\n\t\t\t */\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t}\n\t\t/**\n\t\t * preluam valoarea din fiul al patrulea, corespunzator rezultatului\n\t\t * evaluarii programului din for\n\t\t */\n\t\tif (node.getChild(3) instanceof Variable) {\n\t\t\tnode.setName(Evaluator.variables.get(node.getChild(3).getName()));\n\t\t} else {\n\t\t\tnode.setName(node.getChild(3).getName());\n\t\t}\n\n\t}",
"private void asserEquals(int esperado, int resultado) {\n\t\t\r\n\t}",
"@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }",
"public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }",
"@Override\n\tpublic void visit(IfNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * Verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam conditia si preluam rezultatul evaluarii fiului corespunzator\n\t\t * branch-ului de then sau de else\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/***\n\t\t * Daca conditia este adevarata, continuam cu evaluarea celui de-al\n\t\t * doiela fiu, iar daca este false evaluam al treilea fiu\n\t\t */\n\t\tif (node.getChild(0).getName().contentEquals(\"true\")) {\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t\tnode.getChild(2).setVisited(true);\n\n\t\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(1).getName());\n\t\t\t}\n\t\t} else {\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\tnode.getChild(1).setVisited(true);\n\n\t\t\tif (node.getChild(2) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(2).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(2).getName());\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}",
"@Test\n\tpublic void probandoParametrosDevuelta() {\n\n\t\tString outFolder = ArbolFileSources.userFolder + \"/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_2_dm_finanzas/entregable/historia/\";\n\t\ttry {\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400, 500 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70,90 };\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70 };\n\n\t\t\tString[] seed = { \"101723\", \"208403\", \"663552\", \"826668\", \"980641\" };\n\t\t\tInteger[] maximaProfundidadList = { 7 };\n\t\t\tInteger[] minParentSizeList = { 300, 350, 400 };\n\t\t\t// cuenta que va a ser el porcentaje variable del current padre\n\t\t\tInteger[] minChildSizeList = { 65, 70 };\n\n\t\t\t// para cada semilla correr los arboles\n\n\t\t\tString resultSyntax = ArbolesSQLEjecutador.generaSyntaxSpssIterativoVarsYHisto(outFolder, maximaProfundidadList, minParentSizeList, minChildSizeList, seed);\n\t\t\tString timeStampFolder = UtilidadesGenerales.getTimeStamp(null, null);\n\t\t\tUtilidadesGenerales.writeToFile(resultSyntax, \"UTF-8\", outFolder + timeStampFolder + \"_syntax.txt\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail(e.getMessage());\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}",
"@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }",
"public boolean jeu() {\n int k;\n\n String compJoueur = \"\";\n String compOrdi = \"\";\n String reponse;\n\n boolean victoireJoueur = false;\n boolean victoireOrdi = false;\n String mystJoueur = challenger.nbMystere(); /**nb que le joueur doit trouver*/\n String mystOrdi = defenseur.nbMystere(); /**nb que l'ordinateur doit trouver*/\n String propOrdi = defenseur.proposition(); /**ordinateur genere un code aleatoire en premiere proposition*/\n log.info(\"Proposition ordinateur : \" + propOrdi); /**afficher proposition ordinateur*/\n String propJoueur = \"\";\n String goodResult = MethodesRepetitives.bonResultat();\n\n\n for (k = 1; !victoireJoueur && !victoireOrdi && k <= nbEssais; k++) { /**si ni le joueur ou l'ordinateur n'ont gagne et si le nombre d'essais n'est pas atteind, relancer*/\n\n compOrdi = MethodesRepetitives.compare(mystOrdi, propOrdi); /**lancer la methode de comparaison du niveau defenseur*/\n log.info(\"Reponse Ordinateur :\" + compOrdi); /**afficher la comparaison*/\n propJoueur = challenger.proposition(); /**demander une saisie au joueur selon le mode challenger*/\n compJoueur = MethodesRepetitives.compare(mystJoueur, propJoueur); /**comparer selon le mode challenger*/\n log.info(\"Reponse Joueur :\" + compJoueur); /**afficher la comparaison*/\n\n if (compOrdi.equals(goodResult)) { /**si l'ordinateur a gagne, changement de la valeur victoireOrdi*/\n victoireOrdi = true;\n }else if(compJoueur.equals(goodResult)) {/**si le joueur a gagne changement de la valeur victoireJoeur*/\n victoireJoueur = true;\n } else if (k < nbEssais) { /**sinon redemander un code a l'ordinateur selon les symboles de comparaison*/\n propOrdi = defenseur.ajuste(propOrdi, compOrdi);\n log.info(\"Proposition Ordinateur :\" + propOrdi);\n }\n }\n\n if (victoireOrdi || !victoireJoueur)/**si l'ordinateur ou le joueur perdent alors perdu sinon gagne*/\n victoireJoueur = false;\n else\n victoireJoueur = true;\n\n return victoireJoueur;\n\n\n }",
"private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }",
"public String apavada_para_rupa(String X_anta, String X_adi)\n {\n\n // this will deal with para_rupa and purva_rupa aapavaads\n\n // making life easier by dealing with ITRANS CODING\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA 2**********\");\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta); // anta\n // is\n // ITRANS\n // equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi); // adi is\n // ITRANS\n // equivalent\n\n String return_me = \"UNAPPLICABLE\";\n\n // 216\n\n // 218 Vik Semantic Dependency\n // **********ELSE IF****************//\n if (VowelUtil.isAkaranta(anta) && (adi.equals(\"eva\")))\n\n {\n Log.info(\" Rules 215 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"eve caniyoge\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"akaranta word followed by the word 'eva' used to imply uncertainity.\\n\" + \" <a> (a/A/a3) + eva (implying uncertainty) = para-rupa ekadesha\\n\" + \"Blocks all other rules. If the condition of uncertainty is \" + \"not expressed this rule doesnot apply.\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 217 Vik Semantic Dependency not working\n // **********ELSE IF****************//\n else if (is_akaranta_upsarga(X_anta) && (X_adi.startsWith(\"e\") || X_adi.startsWith(\"o\"))) // USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n {\n Log.info(\" Came in Rule 217 \");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.97\");\n comments.setSutraPath(\"e~Ni pararUpam\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = depend + \"akaranta-upsarga followed by verbal form beginning with \" + \"'e' or 'o' results in 'para-rupa-ekadesha.\\n\" + \"<akranta-upasarga> a/A/a3 + <e~N> e/o-initial Verbal Form = para-rupa ekadesha\\n\" + \"This Condition will block autsargic vriddhi.\";\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // Removed Below We are not dealing with Internal sandhi any more\n\n /***********************************************************************\n * // From SKT Pathan Path Pg. 107 //**********ELSE IF\n **********************************************************************/\n //\n // else if ( /*(sandhi.internal == true ) && */ Vowel.is_aganta(X_anta)\n /***********************************************************************\n * && X_adi.equals(\"am\") ) { return_me = purva_rupa(X_anta,X_adi);\n * //sandhi_notes = PRV + apavada + sutra + \"'ami pUrvaH'(6.1.107).\" +\n * \"\\nBlocks Ayadi Sandhi\"; vowel_notes.start_adding_notes();\n * vowel_notes.set_sutra_num(\"6.1.107\") ; vowel_notes.setSutraPath(\"ami\n * pUrvaH\") ; vowel_notes.set_sutra_proc(\"purva-rupa-ekadesh\");\n * vowel_notes.set_source(tippani.sutra) ; String cond1 =\"Blocks Ayadi\n * Sandhi.\"; vowel_notes.set_conditions(cond1); } //**********END OF\n * ELSE IF\n **********************************************************************/\n //\n // 219\n // 220\n // **********ELSE IF****************//\n else if (anta.equals(\"sIma\") && (adi.equals(\"anta\"))) // USing X_adi,\n // switched to\n // Sharfe\n // Encoding\n {// checked:29-6\n Log.info(\" Rules 220 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"sImantaH kesheSu\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"if the word sImanta is used in relation to hairs of the \" + \"the head(kesha) this is the correct form.Otherwise not.\\n\" + \"sIma + anta = para-rupa ekadesh. If used in relation to hairs\";\n comments.setConditions(cond1);\n }\n\n // **********END OF ELSE IF****************//\n // 221\n else if (VowelUtil.isAkaranta(X_anta) && (adi.equals(\"otu\") || adi.equals(\"oSTha\"))) // USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n {// checked:29-6\n Log.info(\" Rules 220 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"otvoSThayoH samAse vA\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"This is a optional form which is permitted along \" + \"with the regular form if an akaranta word is followed by 'otu' and 'oSTha' \" + \"to form a Compund Word.\\n\" + \" a + otu/oSTha = para-rupa, other Sandhis permitted\";\n comments.setConditions(cond1);\n\n }\n // 222\n // 223a -now working... make diff rule for \"A\" or consider it...did\n // check 223b\n // **********ELSE IF****************//\n else if (VowelUtil.isAkaranta(X_anta) && (adi.equals(\"om\") && adi.equals(\"A\"))) // USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n {// checked:29-6\n return_me = para_rupa(X_anta, X_adi);\n // sandhi_notes = PAR + apavada + sutra + \"'omA~Nosca'(6.1.92).\" +\n // \"\\nBlocks Vrddhi Sandhi\";\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.92\");\n comments.setSutraPath(\"omA~Noshca\");\n comments.setSutraProc(\"para-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = \"om/aa~N + iti = para-rupa sandhi.Blocks Vrddhi and/or Dirgha Sandhi\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 223b\n // **********ELSE IF****************//\n /*\n * else if (Vowel.is_akaranta(X_anta) && adi.equals(\"A\") ) // USing\n * X_adi, switched to Sharfe Encoding { return_me =\n * utsarga_sandhi(X_anta,X_adi) + \", \" + para_rupa(X_anta,X_adi) + \"**\";\n * /*sandhi_notes = usg1 + sandhi_notes + \"\\n\" + usg2 ; //sandhi_notes+=\n * PAR + apavada + sutra + \"'omA~Nosca'(6.1.92).\" + depend + //\n * \"\\nCondition: If the 'A' of String 2 is 'A~N' then this rule is used \"+ // \"\n * which blocks Dirgha Sandhi\"; // vowel_notes.start_adding_notes();\n * vowel_notes.set_sutra_num(\"6.1.92\") ;\n * vowel_notes.setSutraPath(\"omA~Nosca\") ;\n * vowel_notes.set_sutra_proc(\"para-rupa ekadesh\");\n * vowel_notes.set_source(tippani.sutra) ; String cond1 =\"If the 'A' of\n * String 2 is 'A~N' then this rule is used \"+ \" which blocks Dirgha\n * Sandhi\"; vowel_notes.set_conditions(cond1);\n * }\n */\n // **********END OF ELSE IF****************//\n // 224 Vik Semantic Dependency - apadAnta\n // **********ELSE IF****************//\n else if ( /*\n * (sandhi.internal == true ) && (SandhiBean.padanta ==\n * false) &&\n */\n VowelUtil.isAkaranta(X_anta) && adi.equals(\"us\"))\n {// checked:29-6\n return_me = para_rupa(X_anta, X_adi);\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.63\");\n comments.setSutraPath(\"usyapadAntAt\");\n comments.setSutraProc(\"para-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = \"Non-padanta <a> + 'us' affix = para-rupa.Blocks Vrddhi Sandhi\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 225 Vik Semantic Dependency - apadAnta\n // **********ELSE IF****************//\n // else if ( /*(sandhi.internal == true )&& ( SandhiBean.padanta ==\n // false) && */\n /*\n * X_anta.endsWith(\"a\") && ( X_adi.startsWith(\"a\") ||\n * X_adi.startsWith(\"e\") || X_adi.startsWith(\"o\") ) ) {//checked:29-6\n * \n * return_me = para_rupa(X_anta,X_adi);\n * vowel_notes.start_adding_notes(); vowel_notes.set_sutra_num(\"6.1.94\") ;\n * vowel_notes.setSutraPath(\"ato guNe\") ;\n * vowel_notes.set_sutra_proc(\"para-rupa ekadesh\");\n * vowel_notes.set_source(tippani.sutra) ; String cond1 =\"Blocks Vrddhi\n * Sandhi\"; vowel_notes.set_conditions(cond1); }\n */// **********END OF ELSE IF****************//\n // 226 - 231\n // 232 Vik Semantic Dependency - padanta\n // Purva Rupa Sandhi Begins\n // **********ELSE IF****************//\n else if ( /* (SandhiBean.padanta == true ) && */\n (X_anta.endsWith(\"e\") || X_anta.endsWith(\"o\")) && X_adi.startsWith(\"a\"))\n {// checked:29-6\n if (anta.equals(\"go\"))\n ; // condition will be handled elsewhere\n else\n {\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + purva_rupa(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.105\");\n comments.setSutraPath(\"e~NaH padAntAdati\");\n comments.setSutraProc(\"purva-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = padanta + \"If a padanta word ending in either 'e' or 'o' is followed by an 'a' purva-rupa ekadesh takes place\" + \"\\npadanta <e~N> 'e/o' + 'a' = purva-rupa ekadesha. Blocks Ayadi Sandhi\";\n comments.setConditions(cond1);\n\n }\n }\n // **********END OF ELSE IF****************//\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA 2**********\");\n\n if (return_me.equals(\"UNAPPLICABLE\"))\n {\n return_me = apavada_prakruti_bhava(X_anta, X_adi); // search for\n // more apavada\n // rules\n }\n return return_me; // apavada rules formulated by Panini apply\n }",
"public TestAbestiakniveltres(String Wording,String Correct){\r\n wording=Wording;\r\n correct=Correct;\r\n\r\n }",
"private double individualEvaluation() {\n\t\t//System.out.println(\"indE\"+ myValues.get(myAction.getPurpose()).getStrength(null));\n\t\treturn myValues.get(myAction.getPurpose()).getStrength(null);\n\t}",
"@Test\r\n public void deriveFromBinaryXorAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M^=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH^=9\", \"(long,km^2/h)\");\r\n }",
"public void ingresarEvalPlanVida() throws SQLException {\n if (vistaEvaPlanVid.getTxtCedula().getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Ingrese primero cédula y presione 'Enter'\", \"Ingrese Valores\", JOptionPane.ERROR_MESSAGE);\n } else {\n if (vistaEvaPlanVid.getDtcFecha().getDate() == null) {\n JOptionPane.showMessageDialog(null, \"Ingrese Fecha\", \"Ingrese Valores\", JOptionPane.WARNING_MESSAGE);\n } else {\n if (vistaEvaPlanVid.getDtcFechaEval().getDate() == null) {\n JOptionPane.showMessageDialog(null, \"Ingrese Fecha de Evaluación\", \"Ingrese Valores\", JOptionPane.WARNING_MESSAGE);\n } else {\n evalPlModelDB.setVictima_codigo(Integer.parseInt(vistaEvaPlanVid.getTxtCodigo().getText()));\n evalPlModelDB.setPersonal_codigo(evalPlModelDB.verifiUserP(personal_cod));\n evalPlModelDB.setEvaluacion_fecha(obtenerFecha(vistaEvaPlanVid.getDtcFecha()));\n evalPlModelDB.setEvaluacion_proxima(obtenerFecha(vistaEvaPlanVid.getDtcFechaEval()));\n if (evalPlModelDB.IngresarEvaluacionPlaVida()) {\n JOptionPane.showMessageDialog(null, \"A continuación presione el botón guardar para completar esta sección\");\n vistaEvaPlanVid.getBtnObjetivoGeneral().setEnabled(true);\n vistaEvaPlanVid.getBtnObjetivosEspecificos().setEnabled(true);\n vistaEvaPlanVid.getBtnGuradrarDesa().setEnabled(true);\n vistaEvaPlanVid.getBtnGuradar().setEnabled(false);\n } else {\n JOptionPane.showMessageDialog(null, \"Error al continuar, vuelva a intentar\");\n }\n }\n }\n }\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"void doSet() throws NotConnectedException\n\t{\n\t\ttry\n\t\t{\n\t\t\tValueExp exp = null;\n\n\t\t\tif (!hasMoreTokens())\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"setCommand\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\t// pull the expression\n\t\t\t\tString s = restOfLine();\n\n\t\t\t\t// parse and eval which causes the assignment to occur...\n\t\t\t\tif ( (exp = parseExpression(s)) == null )\n\t\t\t\t\t; // failed parse\n\n\t\t\t\t// make sure contains assignment\n\n\t\t\t\telse if ( !exp.containsAssignment() )\n\t\t\t\t\tthrow new IllegalAccessException(\"=\"); //$NON-NLS-1$\n\n\t\t\t\telse\n\t\t\t\t\tevalExpression(exp);\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalAccessException iae)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"operator\", iae.getMessage()); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"missingOperator\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotEvaluate\")); //$NON-NLS-1$\n\t\t}\n\t}",
"private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }",
"public static void main(String[] args) {\n\n Studenti s1= new Studenti(\"Pera Peric\",\"drumski\",\"DR-123\");\n Studenti s2 = new Studenti(\"Laza Lazic\", \"logistika\",\"LO-267\");\n Studenti s3 = new Studenti(\"Marko Markovic\", \"vodni\", \"VO-745\");\n\n // menja broj indeksa\n s2.setBrIndeksa(\"LO-473\");\n\n // stampa sve podatke o studentu - kada nisu uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n\n //unos rezultata, stampanje rezultata i poruka da li je polozio ispit ili nije na osnovu rezultata\n s1.setRezultat(81);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s1.getRezultat()); //81\n s2.setRezultat(50);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s2.getRezultat()); //50\n s3.setRezultat(-4);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s3.getRezultat()); //0, ne prihvata -4\n\n // stampa sve podatke o studentu - kada su uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n }",
"@Override\n\tpublic String visitAssignment(AssignmentContext ctx) {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\treturn \"LOAD \"+ ctx.getChild(0)+\" \"+ visitExpr(ctx.expr());\n\t\t\n\t\t\t\n\t\t\n\t}",
"public void validerSaisie();",
"private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }",
"public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }",
"private boolean hardCode(int index, boolean isCourse)\n\t{\n\t\tboolean isValid = testValue;\n\n\t\tif(isCourse)\n\t\t{\n\t\t\tCourses course = parser.coursesVector.get(index);\n\t\t\t\n\t\t\t//for the CPSC 813/913 courses\t\n\t\t\tif((course.getCourseNumber().equals(\"813\") || course.getCourseNumber().equals(\"913\")) && course.getDepartment().equals(\"CPSC\"))\n\t\t\t{\n\t\t\t\tisValid = child.assign13(index, parser.labSlotsVector.get(course.getPartAssign().get(0))) && course.constr(child, index) && parser.labSlotsVector.get(course.getPartAssign().get(0)).constr(child, index, !isCourse);\t\t\t\t\n\t\t\t}\n\n\t\t\telse if (course.getPartAssign().size() > 0)\n\t\t\t{//do the partial assignment\n\t\t\t\tisValid = child.assign(index, parser.courseSlotsVector.get(course.getPartAssign().get(0)), isCourse) && course.constr(child, index) && parser.courseSlotsVector.get(course.getPartAssign().get(0)).constr(child, index, isCourse);\n\t\t\t}\n\n\t\t\t//System.out.println(course);\n\t\t} \n\t\telse //its a lab\n\t\t{\n\t\t\tLabs lab = parser.labsVector.get(index) ;\n\t\t\n\t\t\tif (lab.getPartAssign().size() > 0)\n\t\t\t{//do the partial assignment\n\t\t\t\tisValid = child.assign(index, parser.labSlotsVector.get(lab.getPartAssign().get(0)), isCourse) && lab.constr(child, index) && parser.labSlotsVector.get(lab.getPartAssign().get(0)).constr(child, index, isCourse);\n\t\t\t}\t\t\n\n\t\t\t//System.out.println(lab);\n\t\t}//end if-else (not a lecture)\t\t\n\t\t\n\t\treturn isValid;\n\t}",
"public void program() throws Exception {\r\n int valg;\r\n skrivInn(\"dvdarkiv2.txt\");//leser inn fra dvd arkivet\r\n while(true) {\r\n meny();//kaller paa meny for a skrive ut menyen etter hvert fullforte valg\n System.out.println(\"Skriv inn valget ditt\");\n valg = sjekkOmTall();//kaller paa metoden for o sorge for aa faa valg\n if (valg == 1) {\n nyPerson();\n }\n else if (valg == 2) {\n kjop();\n }\n else if (valg == 3) {\n laan();\n }\n else if (valg == 4) {\n visPerson();\n }\n else if (valg == 5) {\n visOversikt();\n }\n else if (valg == 6){\n retur();\n }\n else if (valg == 7) {\n avslutt();\n }\n }\r\n }",
"public static void check18 (IR.Node node){\n if (node == null) return; \n if (node instanceof AssignmentStatement){\n if ((((AssignmentStatement)node).assignExpr) != null){\n String s1 = ((AssignmentStatement)node).loc.getType(); \n String s2 = ((AssignmentStatement)node).assignExpr.getType();\n if (!(s1.equals(\"any\") || s2.equals(\"any\"))){\n if (!(((AssignmentStatement)node).loc.getType().equals(((AssignmentStatement)node).assignExpr.getType()))){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n }\n\n }\n if ((((AssignmentStatement)node).op.type == Op.Type.minusequals) || (((AssignmentStatement)node).op.type == Op.Type.plusequals)){\n String s1 = ((AssignmentStatement)node).loc.getType(); \n String s2 = ((AssignmentStatement)node).assignExpr.getType();\n if (!(s1.equals(\"any\") || s2.equals(\"any\"))){\n if (!(((AssignmentStatement)node).loc.getType().equals(\"int\"))){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n if (!(((AssignmentStatement)node).assignExpr.getType().equals(\"int\"))){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n }\n }\n if ((((AssignmentStatement)node).op.type == Op.Type.increment) || (((AssignmentStatement)node).op.type == Op.Type.decrement)){\n if (!(((AssignmentStatement)node).loc.getType().equals(\"int\"))){\n if (!(((AssignmentStatement)node).loc.getType().equals(\"any\"))){\n throw new IllegalStateException (\"Bad assignment.\");\n } \n }\n }\n }\n if (node instanceof ForStatement){\n if (((ForStatement)node).initLoc == null || ((ForStatement)node).initExpr == null){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n if (!(((ForStatement)node).initLoc.getType().equals(((ForStatement)node).initExpr.getType()))){\n throw new IllegalStateException (\"Bad assignment.\"); \n } \n }\n List <IR.Node> children = node.getChildren(); \n if (children == null) return; \n\n for (int child=0; child<children.size(); child++){\n check18 (children.get(child)); \n }\n }",
"@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }",
"public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }",
"@Test\n\tpublic void predFuncTest() \n\t{\n\t\tPath filePath = Paths.get(\"src/test/testfile/test.txt\");\n\t\tScanner scanner;\n\t\ttry {\n\t\t\tscanner = new Scanner(filePath);\n\t\t\tTranslator translator = new Translator();\n\t\t\tList<String> startCodons = new ArrayList<String>();\n\t\t\tstartCodons.add(\"ATG\");\n\t\t\tList<List<String>> result = translator.translation(scanner.next(), startCodons );\n\t\t\tfor(List<String> r : result){\n\t\t\t\tfor(String s : r){\n\t\t\t\t\tif(scanner.hasNext()){\n\t\t\t\t\t\tassertEquals(s, scanner.next());\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfail();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t \n\n\t\t} catch (IOException e) {\n\t\t\tfail(e.getLocalizedMessage());\n\t\t}\n\t}",
"@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}",
"@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }",
"public static boolean assignment(FileInputStream f) {\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n \n CToken t = new CToken();\n t = getUsePeek(f);\n\n if (!t.token.equals(\"let\")) {\n return false;\n }\n CScanner.needToUsePeekedToken = false;\n\n if (!descriptor(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n t = getUsePeek(f);\n\n if (!t.token.equals(\"=\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n\n CScanner.needToUsePeekedToken = false;\n \n if (!expression(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n if (CScanner.needToUsePeekedToken) {\n t = CScanner.peekedToken;\n } //we peeked before this call, so use it\n else {\n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n } //get token\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", false);\n }\n return true;\n }",
"public static void main(String[] args){\r\n String saludar = \"Hola Mundo desde Java\";\r\n System.out.println(saludar);\r\n System.out.println(\"saludar.toUpperCase(Locale.ROOT) = \" + saludar.toUpperCase(Locale.ROOT));\r\n\r\n Integer numero = 11;\r\n\r\n\r\n boolean valor = true;\r\n Integer numero2 = 5;\r\n if(valor){\r\n System.out.println(\"numero = \" + numero);\r\n numero2 = 10;\r\n }\r\n System.out.println(\"numero2 = \" + numero2);\r\n\r\n var numero3 = \"15\";\r\n\r\n String nombre;\r\n\r\n nombre = \"Juan\";\r\n\r\n if(numero >10){\r\n nombre = \"Andres\";\r\n }\r\n\r\n System.out.println(\"nombre = \" + nombre);\r\n\r\n System.out.println();\r\n\r\n }",
"static void opration(){ \n System.out.println(\"Final veriable value l:\"+l+\"\\nj:\"+j);\n // l=l+2; erorr it can't change it's value\n \n }",
"@Test\r\n public void testInvalidAndAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varI_M&=varI_M\", \"0xA0183\");\r\n }",
"public static void statement(CommonTree ast, IRTree irt)\n {\n CommonTree ast1;\n IRTree irt1 = new IRTree();\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == WRITELN)\n {\n String a = String.valueOf(Memory.allocateString(\"\\n\"));\n irt.setOp(\"WRS\");\n irt.addSub(new IRTree(\"MEM\", new IRTree(\"CONST\", new IRTree(a))));\n }\n else if (tt == WRITE)\n {\n ast1 = (CommonTree)ast.getChild(0);\n String type = arg(ast1, irt1);\n if (type.equals(\"real\")) {\n irt.setOp(\"WRR\");\n irt.addSub(irt1);\n }\n else {\n irt.setOp(\"WRS\");\n irt.addSub(irt1);\n }\n }\n else if(tt == ASSIGN)\n {\n //try deailng with assign here\n irt.setOp(\"ASSIGN\");\n IRTree iHold = new IRTree(\"MEM\", new IRTree(\"CONST\", new IRTree(String.valueOf(Memory.allocateReal(ast.getChild(0).getText())))));\n System.out.println(\"var name = \" + ast.getChild(0).getText());\n irt.addSub(iHold);\n expression((CommonTree)ast.getChild(1), irt1);\n irt.addSub(irt1);\n }\n else if(tt == MEM)\n {\n System.out.println(\"GOT MEM TYPE\");\n }\n else {\n error(tt);\n }\n }",
"@Test\n public void testValiderLaCouvertureDuSoin() {\n \n assertTrue(soin1.validerLaCouvertureDuSoin());\n soin3.setPourcentage(2.0);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n soin3.setPourcentage(-1.1);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n assertTrue(soin2.validerLaCouvertureDuSoin());\n }",
"public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }",
"public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void pt(int numGen) {\r\n\r\n\t\tswitch (numGen) {\r\n\t\tcase 0:\r\n\t\t\tinitialisations();\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Primaires et Valeurs */\r\n\r\n\t\tcase 1: //Valeur NBENTIER POS\r\n\t\t\ttCour = ENT; \r\n\t\t\tvCour = UtilLex.valNb;\r\n\t\t\tbreak;\r\n\t\tcase 2: //Valeur NBENTIER NEG\r\n\t\t\ttCour = ENT; \r\n\t\t\tvCour = -UtilLex.valNb;\r\n\t\t\tbreak;\r\n\t\tcase 3: //Valeur BOOL VRAI\r\n\t\t\ttCour = BOOL; \r\n\t\t\tvCour = 1;\r\n\t\t\tbreak;\r\n\t\tcase 4: //Valeur BOOL FAUX\r\n\t\t\ttCour = BOOL; \r\n\t\t\tvCour = 0;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 5: //PRIMAIRE VALEUR\r\n\t\t\tpo.produire(EMPILER);\r\n\t\t\tpo.produire(vCour);\r\n\t\t\tbreak;\r\n\t\tcase 6 : //PRIMAIRE IDENT\r\n\t\t\tint valALire = presentIdent(1);\r\n\t\t\tif(valALire == 0) UtilLex.messErr(\"La variable n'existe pas\");\r\n\t\t\telse {\r\n\t\t\t\tswitch (tabSymb[valALire].categorie) {\r\n\t\t\t\tcase CONSTANTE:\r\n\t\t\t\t\tpo.produire(EMPILER);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase VARGLOBALE:\r\n\t\t\t\t\tpo.produire(CONTENUG);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase VARLOCALE: \r\n\t\t\t\t\tpo.produire(CONTENUL);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tpo.produire(0);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase PARAMFIXE : \r\n\t\t\t\t\tpo.produire(CONTENUL);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tpo.produire(0);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase PARAMMOD : \r\n\t\t\t\t\tpo.produire(CONTENUL);\r\n\t\t\t\t\tpo.produire(tabSymb[valALire].info);\r\n\t\t\t\t\tpo.produire(1);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tUtilLex.messErr(\"Action non valide\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttCour = tabSymb[valALire].type;\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Expressions */\r\n\r\n\t\tcase 10:\r\n\t\t\tverifBool();\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tpo.produire(OU);\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tpo.produire(ET);\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tpo.produire(NON);\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\t\tcase 14:\r\n\t\t\tverifEnt();\r\n\t\t\tbreak;\r\n\t\tcase 15:\r\n\t\t\tpo.produire(EG);\r\n\t\t\tbreak;\r\n\t\tcase 16:\r\n\t\t\tpo.produire(DIFF);\r\n\t\t\tbreak;\r\n\t\tcase 17:\r\n\t\t\tpo.produire(SUP);\r\n\t\t\tbreak;\r\n\t\tcase 18:\r\n\t\t\tpo.produire(SUPEG);\r\n\t\t\tbreak;\r\n\t\tcase 19:\r\n\t\t\tpo.produire(INF);\r\n\t\t\tbreak;\r\n\t\tcase 20:\r\n\t\t\tpo.produire(INFEG);\r\n\t\t\tbreak;\r\n\t\tcase 21:\r\n\t\t\tpo.produire(ADD);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 22:\r\n\t\t\tpo.produire(SOUS);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 23:\r\n\t\t\tpo.produire(MUL);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 24:\r\n\t\t\tpo.produire(DIV);\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\t\tcase 25:\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Déclarations */\r\n\r\n\t\t\t// Variables\r\n\t\tcase 50:\r\n\t\t\ttCour = ENT;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 51:\r\n\t\t\ttCour = BOOL;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 52:\r\n\t\t\tnbVar = 0;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 53: //On place l'ident dans la table des symboles\r\n\t\t\tint varc = presentIdent(1);\r\n\t\t\tif( varc == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tif(bc == 1){\r\n\t\t\t\t\tplaceIdent(UtilLex.numId, VARGLOBALE, tCour, nbVar);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tplaceIdent(UtilLex.numId, VARLOCALE, tCour, nbVar+nbParamProc+2);\r\n\t\t\t\t}\r\n\t\t\t\tnbVar++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tUtilLex.messErr(\"La variable '\"+UtilLex.repId(varc)+\"' a deja ete declaree\");\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 54: //On reserve de l'espace pour chaque variable globale/locale lue\r\n\t\t\tif( desc.getUnite().equals(\"programme\") ){\r\n\t\t\t\tpo.produire(RESERVER);\r\n\t\t\t\tpo.produire(nbVar);\r\n\t\t\t}\r\n\t\t\tdesc.setTailleGlobaux(nbVar);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// Constantes\r\n\r\n\t\tcase 60: //\"Var = valeur\", On place var dans la table des symboles\r\n\t\t\tint constc = presentIdent(1);\r\n\t\t\tif( constc == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tplaceIdent(UtilLex.numId, CONSTANTE, tCour, vCour);\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tUtilLex.messErr(\"La constante '\"+UtilLex.repId(constc)+\"' a deja ete declaree\");\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\t\t/* Affectations */\r\n\r\n\t\tcase 70:\r\n\t\t\tvTmp = presentIdent(1);\r\n\t\t\tbreak;\r\n\r\n\t\tcase 71:\r\n\t\t\tint varAffect = vTmp;\r\n\t\t\tif( varAffect == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tUtilLex.messErr(\"La Variable '\"+UtilLex.repId(varAffect)+\"' n'a pas ete declaree\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(tabSymb[varAffect].type != tCour) {\r\n\t\t\t\t\tUtilLex.messErr(\"types non-concordants\");\r\n\t\t\t\t}\r\n\t\t\t\tswitch(tabSymb[varAffect].categorie){\r\n\t\t\t\tcase VARGLOBALE : \r\n\t\t\t\t\tpo.produire(AFFECTERG);\r\n\t\t\t\t\tpo.produire(tabSymb[varAffect].info);\r\n\t\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase VARLOCALE : \r\n\t\t\t\t\tpo.produire(AFFECTERL);\r\n\t\t\t\t\tpo.produire(tabSymb[varAffect].info);\r\n\t\t\t\t\tpo.produire(0);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase PARAMMOD :\r\n\t\t\t\t\tpo.produire(AFFECTERL);\r\n\t\t\t\t\tpo.produire(tabSymb[varAffect].info);\r\n\t\t\t\t\tpo.produire(1);\t\t\t\t\t\r\n\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\tdefault : \r\n\t\t\t\t\tUtilLex.messErr(\"Ne peut pas affecter dans \"+UtilLex.repId(varAffect)+\"', c'est une constante\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\t\t/* Lectures, Ecritures */\r\n\r\n\t\t\t// Lecture\r\n\r\n\t\tcase 80:\r\n\t\t\tint varALire = presentIdent(1);\r\n\t\t\tif( varALire == 0) {\r\n\t\t\t\t//dernier ident lu n'est pas dans tabSymb\r\n\t\t\t\tUtilLex.messErr(UtilLex.repId(varALire)+\"' n'a pas ete declaree\");\r\n\t\t\t}\t\t\t\r\n\t\t\tswitch(tabSymb[varALire].categorie){\r\n\t\t\tcase VARGLOBALE : \r\n\t\t\t\tif(tabSymb[varALire].type == BOOL){\r\n\t\t\t\t\tpo.produire(LIREBOOL);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpo.produire(LIRENT);\r\n\t\t\t\t}\r\n\t\t\t\tpo.produire(AFFECTERG);\r\n\t\t\t\tpo.produire(tabSymb[varALire].info);\r\n\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase VARLOCALE : \r\n\t\t\t\tif(tabSymb[varALire].type == BOOL){\r\n\t\t\t\t\tpo.produire(LIREBOOL);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpo.produire(LIRENT);\t\r\n\t\t\t\t}\r\n\t\t\t\tpo.produire(AFFECTERL);\r\n\t\t\t\tpo.produire(tabSymb[varALire].info);\r\n\t\t\t\tpo.produire(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase PARAMMOD :\r\n\t\t\t\tif(tabSymb[varALire].type == BOOL){\r\n\t\t\t\t\tpo.produire(LIREBOOL);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpo.produire(LIRENT);\r\n\t\t\t\t}\r\n\t\t\t\tpo.produire(AFFECTERG);\r\n\t\t\t\tpo.produire(tabSymb[varALire].info);\r\n\t\t\t\tpo.produire(1);\r\n\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\tdefault : \r\n\t\t\t\tUtilLex.messErr(\"Ne peut pas lire dans \"+UtilLex.repId(varALire)+\"', c'est une constante\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t// Ecriture\r\n\r\n\t\tcase 81:\r\n\t\t\tswitch(tCour) {\r\n\t\t\tcase BOOL:\r\n\t\t\t\tpo.produire(ECRBOOL);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ENT:\r\n\t\t\t\tpo.produire(ECRENT);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Conditions */\r\n\r\n\t\t\t/* si */\r\n\r\n\t\t\t// si\r\n\t\tcase 100:\r\n\t\t\tverifBool();\r\n\t\t\tpo.produire(BSIFAUX);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// sinon\r\n\t\tcase 101:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+3);\r\n\t\t\tpo.produire(BINCOND);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// fsi\r\n\t\tcase 102:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+1);\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* cond */\r\n\r\n\t\t\t// cond\r\n\t\tcase 120:\r\n\t\t\tpileRep.empiler(0);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// exp : (bsifaux)\r\n\t\tcase 121:\r\n\t\t\tverifBool();\r\n\t\t\tpo.produire(BSIFAUX);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\t//System.out.println(\"121 \"+pileRep.toString());\r\n\t\t\tbreak;\r\n\r\n\t\t\t// , ou aut (bincond)\r\n\t\tcase 122:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+3);\r\n\t\t\t//System.out.println(\"122_1 \"+pileRep.toString());\r\n\t\t\tpo.produire(BINCOND);\r\n\t\t\tpo.produire(pileRep.depiler());\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\t//System.out.println(\"122_2 \"+pileRep.toString());\r\n\t\t\tbreak;\r\n\r\n\t\t\t// fcond\r\n\t\tcase 123:\r\n\t\t\tint fcond = po.getIpo()+1;\r\n\t\t\t// last binc (-1)\r\n\t\t\tint lbinc = pileRep.depiler();\r\n\t\t\t// the one before (-2)\r\n\t\t\tint tmp;\r\n\r\n\t\t\twhile(lbinc != 0) {\t\t\t\t// 0 n'est jamais dans la pile à fcond, ce while fait toujours au moins une iteration\r\n\t\t\t\ttmp = po.getElt(lbinc);\r\n\t\t\t\tpo.modifier(lbinc, fcond);\r\n\t\t\t\tlbinc = tmp;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t// cas ou il n'y a pas de aut\r\n\t\t\t// \t-> regler le dernier bsifaux a ipo+1\r\n\t\t\t//\t-> ne pas produire de bincond pour le dernier case\r\n\t\tcase 124:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+1);\r\n\t\t\tbreak;\r\n\r\n\t\t\t/* Boucle */\r\n\r\n\t\t\t// ttq\r\n\t\tcase 140:\r\n\t\t\tpileRep.empiler(po.getIpo()+1);\r\n\t\t\tbreak;\r\n\r\n\t\t\t// exp\r\n\t\tcase 141:\r\n\t\t\tverifBool();\r\n\t\t\tpo.produire(BSIFAUX);\r\n\t\t\t//on met 0 en argument en attendant de savoir ou on branche\r\n\t\t\tpo.produire(0);\r\n\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\tcase 142:\r\n\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+3);\r\n\t\t\tpo.produire(BINCOND);\r\n\t\t\tpo.produire(pileRep.depiler());\r\n\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\tmodifVecteurTrans(2);\r\n\t\t\tbreak;\r\n\r\n\t\t\t/////////////// PROCEDURES /////////////////// \r\n\r\n\t\t\t//Si il ya des proc�dures\r\n\t\tcase 198 : \r\n\t\t\tif( desc.getUnite().equals(\"programme\") ){\r\n\t\t\t\tpo.produire(BINCOND);\r\n\t\t\t\tpo.produire(0);\r\n\t\t\t\tpileRep.empiler(po.getIpo());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 199 :\r\n\t\t\tif( desc.getUnite().equals(\"programme\") ){\r\n\t\t\t\tpo.modifier(pileRep.depiler(), po.getIpo()+1);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 200 : //D�claration d'une proc�dure \r\n\r\n\t\t\t//On v�ifie que le nom de la proc�dure n'est pas d�j� pris \r\n\t\t\tif(presentIdent(1) == 0){\r\n\t\t\t\tplaceIdent(UtilLex.numId, PROC, NEUTRE, po.getIpo()+1);\r\n\t\t\t\tint indexTabDef = desc.presentDef(UtilLex.repId(UtilLex.numId));\r\n\t\t\t\tif( indexTabDef != -1){\r\n\t\t\t\t\tdesc.modifDefAdPo(indexTabDef, po.getIpo()+1);\r\n\t\t\t\t\tplaceIdent(-1, DEF, NEUTRE, 0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tplaceIdent(-1, PRIVEE, NEUTRE, 0);\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tnbParamProc = 0;\r\n\t\t\t}\r\n\t\t\tbc = it + 1;\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase 201 : //D�claration des param�tres fixes\r\n\t\t\t//Ajout des param�tres fixes dans la table des symboles\r\n\t\t\tif(presentIdent(bc) == 0){\r\n\t\t\t\tplaceIdent(UtilLex.numId, PARAMFIXE, tCour, nbParamProc);\r\n\t\t\t\tnbParamProc++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 202: //D�claration des param�tres mod\r\n\t\t\tif(presentIdent(bc) == 0){\r\n\t\t\t\tplaceIdent(UtilLex.numId, PARAMMOD, tCour, nbParamProc);\r\n\t\t\t\tnbParamProc++;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 203: //Modifie le nombre de param�tres dans la table des symboles \r\n\t\t\tint indexTabDef = desc.presentDef(UtilLex.repId(tabSymb[bc-2].code));\r\n\t\t\tif( indexTabDef != -1)\r\n\t\t\t\tdesc.modifDefNbParam(indexTabDef, nbParamProc);\r\n\t\t\ttabSymb[bc-1].info = nbParamProc;\r\n\t\t\tbreak;\t\r\n\r\n\t\tcase 210: \r\n\t\t\t//Met � -1 les variables de la proc�dure une fois qu'elle est finie\r\n\t\t\tpo.produire(RETOUR);\r\n\t\t\tpo.produire(nbParamProc);\r\n\t\t\tit = bc + nbParamProc - 1;\r\n\t\t\tfor(int i = 0; i < nbParamProc; i++){\r\n\t\t\t\ttabSymb[bc+i].code = -1;\r\n\t\t\t}\t\t\t\r\n\t\t\tbc = 1;\r\n\t\t\tbreak;\r\n\r\n\t\t\t// appel d'une fonction\r\n\t\tcase 215: \r\n\t\t\tint paramEff = presentIdent(1);\r\n\t\t\tswitch(tabSymb[paramEff].categorie){\r\n\t\t\tcase VARGLOBALE : \r\n\t\t\t\tpo.produire(EMPILERADG);\r\n\t\t\t\tpo.produire(tabSymb[paramEff].info);\r\n\t\t\t\tif( desc.getUnite().equals(\"module\") )\r\n\t\t\t\t\tmodifVecteurTrans(1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase VARLOCALE :\r\n\t\t\t\tpo.produire(EMPILERADL);\r\n\t\t\t\tpo.produire(tabSymb[paramEff].info);\r\n\t\t\t\tpo.produire(0);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase PARAMMOD :\r\n\t\t\t\tpo.produire(EMPILERADL);\r\n\t\t\t\tpo.produire(tabSymb[paramEff].info);\r\n\t\t\t\tpo.produire(1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase PARAMFIXE :\t\t\r\n\t\t\tcase CONSTANTE : \r\n\t\t\t\tUtilLex.messErr(\"PARAMFIXE et CONSTANTE interdits pour des PARAMMOD\");\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase 220 : \r\n\t\t\tpo.produire(APPEL); //On produit l'appel\t\r\n\t\t\tpo.produire(tabSymb[vTmp].info); //On produit le numero de la ligne de la proc\r\n\t\t\tif(desc.getUnite().equals(\"programme\")){\r\n\t\t\t\tmodifVecteurTrans(REFEXT);\t\t\t\t\r\n\t\t\t}\r\n\t\t\tpo.produire(tabSymb[vTmp+1].info); //On produit le nombre de paramètres de la proc\r\n\t\t\tbreak;\r\n\r\n\t\t/////////////// COMPILATION SEPAREE ///////////// \r\n\t\tcase 300: \r\n\t\t\t//On lit un def, ajout du nom dans tabDef\r\n\t\t\tdesc.ajoutDef(UtilLex.repId(UtilLex.numId));\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// ajout du champs unite du descripteur\r\n\t\t\t\r\n\t\tcase 301:\r\n\t\t\tdesc.setUnite(\"programme\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 302:\r\n\t\t\tdesc.setUnite(\"module\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 303:\r\n\t\t\tUtilLex.nomSource = UtilLex.repId(UtilLex.numId);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// ajout de la taille du code\r\n\t\tcase 304:\r\n\t\t\tdesc.setTailleCode(po.getIpo());\r\n\t\t\tdesc.ecrireDesc(UtilLex.nomSource);\r\n\t\t\tafftabSymb();\r\n\t\t\tSystem.out.println(desc);\r\n\t\t\tpo.constGen();\r\n\t\t\tpo.constObj();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t// taille \r\n\t\tcase 310:\r\n\t\t\t//On ajoute ref dans la table des symbs\r\n\t\t\tif(desc.presentRef(UtilLex.repId(UtilLex.numId)) == 0){\r\n\t\t\t\tdesc.ajoutRef(UtilLex.repId(UtilLex.numId));\r\n\t\t\t\tdesc.modifRefNbParam(desc.getNbRef(), 0);\r\n\t\t\t\tplaceIdent(UtilLex.numId, PROC, NEUTRE, desc.getNbRef());\r\n\t\t\t\tplaceIdent(-1, REF, NEUTRE, 0);\r\n\t\t\t\tnbParamProc = 0;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tUtilLex.messErr(\"Procédure déjà declarée\");\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 311:\r\n\t\t\tint i = desc.getNbRef();\r\n\t\t\tdesc.modifRefNbParam(i, desc.getRefNbParam(i)+1);\r\n\t\t\ttabSymb[it].info = desc.getRefNbParam(i);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\r\n\t\tcase 312 : //D�claration des param�tres fixes\r\n\t\t\t//Ajout des param�tres fixes dans la table des symboles\r\n\t\t\tplaceIdent(-1, PARAMFIXE, tCour, nbParamProc);\r\n\t\t\tnbParamProc++;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 313: //D�claration des param�tres mod\r\n\t\t\tplaceIdent(-1, PARAMMOD, tCour, nbParamProc);\r\n\t\t\tnbParamProc++;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 314 : //Modifie le nombre de param�tres dans la table des symboles \r\n\t\t\ttabSymb[it-nbParamProc].info = nbParamProc;\r\n\t\t\tbreak;\t\r\n\t\t\t\r\n\t\tcase 1000:\r\n\t\t\tpo.produire(ARRET);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Point de generation non prevu dans votre liste\");\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\t}",
"@Test\r\n public void deriveFromDoubleLeftAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M<<=9\", \"(int,m)\");\r\n //example with int m - char\r\n check(\"varI_M<<=\\'c\\'\", \"(int,m)\");\r\n }",
"@Test\r\n\t\tpublic void testCompileAllOperators() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 6\\nb = 6\\nc = a + (b * 4)\\nd = c / 3\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[3]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"opt_plus\") && elementText.contains(\"opt_div\") && elementText.contains(\"opt_mult\") &! elementText.contains(\"opt_minus\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}",
"public void modifierpointV(String nomAgence,Scanner sc) {\n\t\t\tint i=this.existPointV(nomAgence);\n\t\t\tnotExist:{\n\t\t\t\tif (i==-1) {System.out.println(\"cette agence n'exsite pas ! \\n\\n\"); break notExist;}\n\t\t\t\t\n\t\t\t\tint rep;\n\t\t\t\tString numTele;\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"1-Modifier l'adresse de l'agence \");\n\t\t\t\tSystem.out.println(\"2-Modifier le numéro de téléphone de l'agence \");\n\t\t\t\tSystem.out.println(\"3-Changer le type de l'agence \");\n\t\t\t\trep=sc.nextInt();\n\t\t\t\t\n\t\t\t\tEnumWilaya w;\n\t\t\t\tswitch(rep) \n\t\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Donner la nouvelle adresse :\");\n\t\t\t\t\tSystem.out.print(\"Numéro de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNumRue(sc.nextInt());\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Nom de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNomRue(sc.nextLine());\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Numéro de wilaya : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tw=Adresse.saisieWilaya(rep);\n\t\t\t\t\tif (w!=null) break;\n\t\t\t\t\tSystem.out.print(\"numéro wilaya incorrect ! reéssayer : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setWilaya(w);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.print(\"Donner le nouveau numéro de téléphone : \");\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tnumTele = sc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tif (numTele.charAt(0)=='0' & numTele.length()==10) break;\n\t\t\t\t\tSystem.out.print(\"numéro inccorect ! veillez resaisir : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\tthis.pointV.get(i).setNumTele(numTele);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Selectioner le type de l'agence : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"1-Principale\");\n\t\t\t\t\tSystem.out.println(\"2-Secondaire\");\n\t\t\t\t\tSystem.out.print(\"Votre choix : \");\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tif (rep==1 || rep==2) break;\n\t\t\t\t\tSystem.out.println(\"choix invalide ! reéssayez : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).setType(rep);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"@Override\n public String visit(AssignExpr n, Object arg) {\n return null;\n }",
"@Override\n void execute(RolapEvaluator evaluator) {\n }",
"String evaluate();",
"@Override\n public CodeFragment visitAssignmentStat(AlangParser.AssignmentStatContext ctx) {\n String name = ctx.ID().getText();\n if (!variableExists(name)) {\n this.addError(ctx, name, \"Assignment to undeclared variable\");\n return new CodeFragment(\"\");\n }\n\n Variable v = this.globals.get(name);\n v.setValue(ctx.global_expression().getText());\n v.setHasValue();\n\n return new CodeFragment(\"\");\n }",
"public Type visit(Assign n) {\n\t\tType tipo1 = this.symbolTable.getVarType(this.currMethod, this.currClass, n.i.s);\n\t\tType tipo2 = n.e.accept(this);\n\n\t\tif (!(this.symbolTable.compareTypes(tipo1, tipo2))) {\n\t\t\tSystem.out.println(\"A variável e o valor atribuído são de tipos diferentes\");\n\t\t}\n\n\t\tn.i.accept(this);\n\n\t\treturn null;\n\t}",
"public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}",
"public static Result comp2(){\n\t\t\t\n\t\t\t//Requête pour récupèrer le nombre de viols en espagne\n\t \t //requete pour recuperer les valeurs , les dates et les pays avec filtre date et pays \n\t \t// creattion d modele \n\t\t\tModel m = ModelFactory.createDefaultModel();\n\t\t\t // j'int�gre mon modele dans un autre modele inf�r� \n\t\t\tInfModel infm = ModelFactory.createRDFSModel(m);\n\t\t\t // je lis les deus fichier .RDF et .ttl pour le sujet crime \t\t\n\t\t\tString ns = \"http://www.StatisticSquade.fr#\";\n\t\t \tinfm.setNsPrefix(\"StatisticSquade\", ns);\n\t\t \t/// name space de eurostat\n\t\t \tString nsEuro = \"http://eurostat.linked-statistics.org/data/\";\n\t\t\tinfm.setNsPrefix(\"Eurostat\", nsEuro);\n\t\t\tFileManager.get().readModel(infm, rdf_file0 );\n\t\t\tFileManager.get().readModel(infm, rdf_file1 ); \n\t\t\t\n\t\t\t//Construction dynamique des requêtes\n\t\t\t/**\n\t\t\t * Récupération des pays\n\t\t\t */\n\t\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * récupétation autes\n\t\t\t */\n\t\t\tString pays = Form.form().bindFromRequest().get(\"pays\");\n\t\t\tanneeDebut = Form.form().bindFromRequest().get(\"anneeDebut\");\n\t\t\tanneeFin = Form.form().bindFromRequest().get(\"anneeFin\");\n\t\t\tString sujet1 = Form.form().bindFromRequest().get(\"sujet1\");\n\t\t\tString sujet2 = Form.form().bindFromRequest().get(\"sujet2\");\n\t\t\tString [] tabAnneeDebut = anneeDebut.split(\"-\");\n\t String anneeD = tabAnneeDebut[0];\n\t int aDebut = Integer.parseInt(anneeD);\n\t String [] tabAnneeFin = anneeFin.split(\"-\");\n\t String anneeF = tabAnneeFin[0];\n\t int aFin = Integer.parseInt(anneeF);\n\t if(aFin < aDebut){\n\t \tString anneeTemp = anneeDebut;\n\t \tanneeDebut = anneeFin;\n\t \tanneeFin = anneeTemp;\n\t }\n\n\t String rdq1 = \n\t\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet1+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \"; \n\t\t \n\t\tString rdq2 = \n\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet2+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \";\n\t\t\n \n //mapping entre sujets et leurs codes\n HashMap<String,String> codeToSujet = new HashMap<String,String>();\n codeToSujet.put(\"DBURG\", \"Cambriolages dans un lieu d'habitation\");\n codeToSujet.put(\"DRUGT\", \"Trafic de stupéfiants\");\n codeToSujet.put(\"HCIDE\", \"Homicides\");\n codeToSujet.put(\"VTHFT\", \"Vols de véhicules à moteur\");\n codeToSujet.put(\"VIOLT\", \"Crimes et délits violents\");\n codeToSujet.put(\"ROBBR\", \"Vols avec violences\");\n\t\t\t\n //Execution des requêtes\n /**\n * Requête 1\n */\n Query query1 = QueryFactory.create(rdq1); \n\t QueryExecution qexec1 = QueryExecutionFactory.create(query1,m);\n\t /////////\n\t ResultSet rs1 = qexec1.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste1 = ResultSetFormatter.toList(rs1);\n\t Iterator<QuerySolution> it1 = liste1.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map1 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString1 = new ArrayList<String>();\n while(it1.hasNext()){\n \t \n \t QuerySolution elt1 = it1.next();\n String anneeElt1 = elt1.get(\"Date\").toString();\n String valeur1 = elt1.get(\"Valeur\").toString();\n String [] tabAnnee1 = anneeElt1.split(\"-\");\n String annee1 = tabAnnee1[0];\n map1.put(Integer.parseInt(annee1), valeur1);\t \n donneesString1.add(valeur1);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd1 = new TreeMap<Integer,String>(map1);\n /**\n * Requete 2\n */\n Query query2 = QueryFactory.create(rdq2); \n\t QueryExecution qexec2 = QueryExecutionFactory.create(query2,m);\n\t /////////\n\t ResultSet rs2 = qexec2.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste2 = ResultSetFormatter.toList(rs2);\n\t Iterator<QuerySolution> it2 = liste2.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map2 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString2 = new ArrayList<String>();\n while(it2.hasNext()){\n \t \n \t QuerySolution elt2 = it2.next();\n String anneeElt2 = elt2.get(\"Date\").toString();\n String valeur2 = elt2.get(\"Valeur\").toString();\n String [] tabAnnee2 = anneeElt2.split(\"-\");\n String annee2 = tabAnnee2[0];\n map2.put(Integer.parseInt(annee2), valeur2);\t \n donneesString2.add(valeur2);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd2 = new TreeMap<Integer,String>(map2);\n \n //////////\n JsonObject title = new JsonObject();\n title.put(\"text\", \"Nombre de \"+codeToSujet.get(sujet1)+\" et de \"+codeToSujet.get(sujet2));\n \n JsonObject subtitle = new JsonObject();\n subtitle.put(\"text\", pays);\n \n JsonObject xAxis = new JsonObject();\n xAxis.put(\"type\", \"value\");\n \n JsonObject titleY = new JsonObject();\n titleY.put(\"text\", \"valeurs :\");\n JsonObject yAxis = new JsonObject();\n yAxis.put(\"title\", titleY);\n yAxis.put(\"min\", 0);\n \n JsonArray series = new JsonArray();\n \n JsonObject objSerie1 = new JsonObject();\n objSerie1.put(\"name\", codeToSujet.get(sujet1));\n JsonArray data1 = new JsonArray();\n for(Entry<Integer, String> entry1 : mapOrd1.entrySet()){\n \t \n \t JsonArray eltData1 = new JsonArray();\n eltData1.add(entry1.getKey());\n eltData1.add(Integer.parseInt(entry1.getValue()));\n data1.add(eltData1);\n \n }\n objSerie1.put(\"data\",data1);\n series.add(objSerie1);\n \n \n \n JsonObject objSerie2 = new JsonObject();\n objSerie2.put(\"name\", codeToSujet.get(sujet2));\n JsonArray data2 = new JsonArray(); \n for(Entry<Integer, String> entry2 : mapOrd2.entrySet()){\n \t \n \t JsonArray eltData2 = new JsonArray();\n eltData2.add(entry2.getKey());\n eltData2.add(Integer.parseInt(entry2.getValue()));\n data2.add(eltData2);\n }\t \n objSerie2.put(\"data\",data2); \n series.add(objSerie2);\n \n \n //Ajouter au graphe\n JsonObject graphe = new JsonObject();\n graphe.put(\"title\", title);\n graphe.put(\"subtitle\", subtitle);\n graphe.put(\"xAxis\", xAxis);\n graphe.put(\"yAxis\", yAxis);\n graphe.put(\"series\", series);\n /**\n * \n * données statistiques\n */\n \n \n StatisticsComputation myStats = new StatisticsComputation(donneesString1, donneesString2);\n double covariance = myStats.covariance();\n\t\tdouble pearsonsCorrelation = myStats.pearsonsCorrelation();\n\t\tSystem.out.println(\"Ma covariance \" + covariance);\n\t\tSystem.out.println(\"Ma correlation \" + pearsonsCorrelation);\n\t\tdouble mean = myStats.mean();\n\t\tdouble standardDeviation = myStats.standardDeviation();\n\t\tSystem.out.println(\"Ma moyenne \" + mean);\n\t\tSystem.out.println(\"Mon écart-type \" + standardDeviation);\n\n /**\n * \n * Données statistiques fin\n */\n\t\t/**\n\t\t * Ajout au graphe\n\t\t */\n\t\tGraphCreation gc = new GraphCreation(\"crim_gen\");\n\t\tgc.postGraph(sujet1+\"-\"+sujet2+\"-\"+pays, sujet1+pays, sujet2+pays, anneeDebut, anneeFin, \n\t\t\t\t Double.toString(pearsonsCorrelation), Double.toString(mean), Double.toString(standardDeviation), \n\t\t\t\t Double.toString(covariance));\n\t\tgc.save();\n\t\t\n\t\tString ip = request().remoteAddress();\n ArrayList<String> listeComments = gc.getComments(sujet1+\"-\"+sujet2+\"-\"+pays, false); \n if(listeComments !=null){\n\t\tIterator<String> it = listeComments.iterator();\n\t\tList<Comment> listeCom = new ArrayList<Comment>();\n\t\twhile(it.hasNext()){\n\t\t\tString elt = it.next();\n\t\t\tString [] tab = elt.split(\";\");\n\t\t\tString nomRecup = tab[0];\n\t\t\tString dateRecup = tab[1];\n\t\t\tString contenuRecup = tab[2];\n\t\t\tComment comment1 = new Comment(nomRecup,dateRecup,contenuRecup);\n\t\t\tlisteCom.add(comment1);\n\t\t}\n\t\tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,listeCom,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n\t\treturn ok(comp2.render(g));\n }else{\n \tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,null,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n \t\treturn ok(comp2.render(g));\t\n \t\n }\n\t\t \n\t\t \n\t \t\n\t \t\n\t }",
"@Test\r\n\tpublic void testCompileOperator() {\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(\"a = 5\\nb = a - 1\\nc = a + (b / 2 * 4)\");\r\n\r\n\t\t// Look for the \"Compile\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(2).click();\r\n\r\n\t\t// Check that there contains the word \"opt_plus\", \"opt_minus\",\r\n\t\t// \"opt_mult\" and \"opt_div\"\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_plus\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_minus\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_mult\"));\r\n\t\t\tassertTrue(code.getText().contains(\"opt_div\"));\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Object visit(ASTAssign node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" := \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}",
"public void executeevaluate() {\n \t\tString board = conf.getProperty(\"gamesman.board\");\n \t\tif (board == null)\n \t\t\tUtil.fatalError(\"Please specify a hash to evaluate\");\n \t\tBigInteger val = new BigInteger(board);\n \t\tSystem.out.println(gm.primitiveValue(gm.hashToState(val)));\n \t}",
"private void assertSExpr(String script, String sexpr) {\n try {\n Lexer lexer = new Lexer(new StringReader(script));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n assertEquals(sexpr, node.toString());\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }"
] | [
"0.6278101",
"0.6063457",
"0.59694946",
"0.5835542",
"0.57418233",
"0.56482995",
"0.56362236",
"0.5615862",
"0.5595849",
"0.55470836",
"0.54549456",
"0.5425109",
"0.54102665",
"0.53308976",
"0.5330591",
"0.53261214",
"0.5325923",
"0.53147435",
"0.53135294",
"0.5313074",
"0.53104645",
"0.5310464",
"0.5304706",
"0.529836",
"0.5290942",
"0.5284806",
"0.5280455",
"0.52702224",
"0.52674323",
"0.5260897",
"0.5246249",
"0.52323395",
"0.52261186",
"0.52240765",
"0.5216036",
"0.5213137",
"0.52119017",
"0.52083045",
"0.5206336",
"0.52045095",
"0.5194292",
"0.51890856",
"0.518585",
"0.5182748",
"0.517956",
"0.51776475",
"0.51741976",
"0.5172068",
"0.5162968",
"0.51604646",
"0.5156753",
"0.5156546",
"0.5155957",
"0.5154024",
"0.5137212",
"0.5136394",
"0.5133422",
"0.51298565",
"0.51193863",
"0.51140934",
"0.5111431",
"0.5109868",
"0.5107246",
"0.5107063",
"0.5102859",
"0.5100606",
"0.5093307",
"0.5092058",
"0.508799",
"0.5082192",
"0.5081749",
"0.50769633",
"0.50767547",
"0.50761175",
"0.5075063",
"0.50750613",
"0.5074861",
"0.5073343",
"0.5062905",
"0.5062653",
"0.50566345",
"0.50526565",
"0.5051796",
"0.5050202",
"0.5045034",
"0.50322765",
"0.5029675",
"0.5028497",
"0.5021467",
"0.50213766",
"0.50205207",
"0.502046",
"0.5019299",
"0.50180984",
"0.50141853",
"0.5014011",
"0.5013825",
"0.5009228",
"0.50077444",
"0.5003302"
] | 0.5727278 | 5 |
Efectuam verificarea pentru check failed intai si propagam in sus rezultatul in caz de esec | @Override
public void visit(IfNode node) {
if (Evaluator.checkScope(node) == false) {
return;
}
/**
* Verificare pentru assert failed
*/
if (Evaluator.checkAssert(node) == false) {
return;
}
/**
* evaluam conditia si preluam rezultatul evaluarii fiului corespunzator
* branch-ului de then sau de else
*/
Evaluator.evaluate(node.getChild(0));
/***
* Daca conditia este adevarata, continuam cu evaluarea celui de-al
* doiela fiu, iar daca este false evaluam al treilea fiu
*/
if (node.getChild(0).getName().contentEquals("true")) {
Evaluator.evaluate(node.getChild(1));
node.getChild(2).setVisited(true);
if (node.getChild(1) instanceof Variable) {
node.setName(Evaluator.variables.get(node.getChild(1).getName()));
} else {
node.setName(node.getChild(1).getName());
}
} else {
Evaluator.evaluate(node.getChild(2));
node.getChild(1).setVisited(true);
if (node.getChild(2) instanceof Variable) {
node.setName(Evaluator.variables.get(node.getChild(2).getName()));
} else {
node.setName(node.getChild(2).getName());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long invalidations();",
"boolean isFailure();",
"boolean isFail();",
"@Override\n boolean canFail() {\n return true;\n }",
"private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}",
"boolean hasErr();",
"@Override\n public boolean hasValenceError() {\n String valenceCheck = atom.checkBadValence();\n//\n// System.out.println(\"valenceCheckBad \" + valenceCheck);\n// System.out.println(\"calling actual checkValence \" + atom.checkValence());\n// System.out.println(\"valenceCheckBad again \" + atom.checkBadValence());\n return !valenceCheck.isEmpty();\n }",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"public static void error()\r\n {\r\n valid=false;\r\n\r\n }",
"public AlwaysFailsCheck(String excepmsg) {\n errmsg = excepmsg;\n }",
"@Override\n boolean isFailed() {\n return false;\n }",
"boolean checkValidity();",
"private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }",
"protected void checkValidity(Epml epml) {\n\t}",
"boolean checkVerification();",
"public void checkResult(){\n\t\tif(throwNum == 0){\n\t\t\tthis.firstThrow = this.sumOfDice;\n\t\t}\n\n\t\tif((this.sumOfDice == 7 || this.sumOfDice==11) && throwNum==0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse if(this.sumOfDice ==2 || this.sumOfDice== 3 ||this.sumOfDice==12){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.game == gameStatus.CONTINUE && this.sumOfDice == 7)){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.sumOfDice== this.firstThrow) && throwNum!=0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse{\n\t\t\tthis.game = gameStatus.CONTINUE;\n\t\t}\n\t}",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"private boolean validacionesSolicitarReserva(int indice, int CodEmp, int CodLoc, int CodCot, boolean isSol){\n boolean blnRes=true;\n try{\n if(!validaItemsServicio(CodEmp, CodLoc, CodCot)){\n blnRes=false;\n MensajeInf(\"La cotizacion contiene Items de Servicio o Transporte, los cuales no deben ser reservados.\");\n }\n\n if(!validaFechasMAX(indice, tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString(),isSol)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada es mayor a la permitida, revise la Fecha y vuelva a intentarlo\");\n }\n \n if(!validaTerminalesLSSegunEmpresaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar reserva de codigos L/S en este local, debe reservarlo por el local que puede ser facturado\");\n }\n \n if(!validaFechasPrimerDiaLaboral(indice,isSol,CodEmp,CodLoc)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada, no corresponde al primer dia laboral registrado\");\n } \n \n if(tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if(!validaTerminalesLReservaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar Reserva en Empresa de Codigos L \");\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }",
"public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}",
"private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\treturn false;\n \t} else {\n \treturn true;\n \t}\n }",
"public boolean erreurStandard2() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (0 ~ 59).']\")));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}",
"void checkValid();",
"boolean hasIsSuccess();",
"public boolean erreurStandard1() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (>= 0).']\")));\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}",
"private void verificarCodigoErro() {\n\t\ttry {\n\t\t\tif (resultado.getStatus().isCodigoErro() && emailReplicacaoServico != null) {\n\t\t\t\tExecucaoReplicacaoUtil.log(\"Enviando e-mail de erro.\");\n\t\t\t\tenviarEmailErro();\n\t\t\t}\n\t\t} catch (BancoobException e) {\n\t\t\tExecucaoReplicacaoUtil.log(e.getMessage());\n\t\t}\n\t}",
"boolean hasErrmsg();",
"boolean hasError();",
"boolean hasError();",
"boolean hasError();",
"public boolean isValidated() throws Exception\r\n {\n return false;\r\n }",
"private void checkFlag(int flag, String msg) throws NumericException {\r\n\t\tif (flag == CV_TOO_MUCH_WORK){\r\n\t\t\t//added to override stopping at maximal number of steps (auth: Jonas Coussement)\r\n\t\t}else{\t\r\n\t\t\tif (flag != CV_SUCCESS)\r\n\t\t\t\tthrow new NumericException(\"[\" + CVodeGetReturnFlagName(flag)\r\n\t\t\t\t\t+ \"] \" + msg);\r\n\t\t}\r\n\t}",
"boolean fail(int rc) {\n if (complete.compareAndSet(false, true)) {\n this.rc = rc;\n submitCallback(rc);\n return true;\n } else {\n return false;\n }\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}",
"@Override\n\tpublic void check() throws Exception {\n\t}",
"private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }",
"private void check2(){\n \n // All methods past the first rule check to see\n // if errorCode is still 0 or not; if not skips respective method\n if(errorCode == 0){\n \n if (!(fourthDigit == fifthDigit + 1)){\n valid = false;\n errorCode = 2;\n }\n }\n\t}",
"boolean hasErrcode();",
"public abstract String check() throws Exception;",
"public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}",
"boolean hadErrors();",
"public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }",
"public boolean isFailed() {\n return candyName.equals(\"\") && pokemonHP == 10 && pokemonCP == 10;\r\n }",
"public boolean proceedOnErrors() {\n return false;\n }",
"public boolean wasOkay();",
"private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}",
"public void verifyNoMatching(AcBatchFlight e)\n {\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }",
"private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }",
"public boolean errors() {\n \treturn semantErrors != 0;\n }",
"private int completionCheck() {\n if (nameTB.getText().trim().isEmpty()) {\n AlertMessage.addCustomerError(1);\n return -1;\n }\n if (addressTB.getText().trim().isEmpty()) {\n AlertMessage.addCustomerError(2);\n return -1;\n }\n if (postCodeTB.getText().trim().isEmpty()){\n AlertMessage.addCustomerError(3);\n return -1;\n }\n if (countryCB.getSelectionModel().getSelectedItem() == null) {\n AlertMessage.addCustomerError(4);\n return -1;\n }\n if (stateProvinceCB.getSelectionModel().getSelectedItem() == null) {\n AlertMessage.addCustomerError(5);\n return -1;\n }\n if (phone.getText().trim().isEmpty()) {\n AlertMessage.addCustomerError(6);\n return -1;\n }\n return 1;\n }",
"protected int checkForAllErrors(Order order) {\r\n int returnValue = checkIfGiftCardsAreBeingPurchased(order);\r\n \r\n if (returnValue == NO_ERRORS) {\r\n returnValue = checkGiftCardValues(order.getProfileId());\r\n }\r\n if (returnValue == NO_ERRORS) {\r\n returnValue = checkForDuplicateGiftCards(order);\r\n }\r\n if (returnValue == NO_ERRORS) {\r\n returnValue = checkAllCardsAppliedHaveZeroBalance();\r\n }\r\n \r\n return returnValue;\r\n }",
"private boolean isResultadoDadoValido(int resultadoDado) throws Exception {\n if ((resultadoDado > 6) || (resultadoDado < 1)) {\n throw new Exception(\"Invalid die result\");\n }\n return true;\n }",
"@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}",
"static void validate(int sal) throws Test1 {\r\n\r\n\t\tif (sal < 3000) {\r\n\t\t\t\r\n\t\t\tthrow new Test1(sal);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\r\n\t\t\tSystem.out.println(\"WELCOME\");\r\n\t\t}\r\n\t}",
"private static void setFailed() {\n HealthCheck.failed = true;\n }",
"public boolean needsProblem();",
"boolean hasErrors();",
"@Override\n protected void checkResult(int pResult) throws ACBrException {\n switch (pResult) {\n case -1: {\n String lMessage;\n final int LEN = 1024;\n ByteBuffer buffer = ByteBuffer.allocate(LEN);\n int ret = ACBrAACInterop.INSTANCE.AAC_GetUltimoErro(getHandle(), buffer, LEN);\n\n lMessage = fromUTF8(buffer, ret);\n throw new ACBrException(lMessage);\n }\n case -2: {\n throw new ACBrException(\"ACBr AAC não inicializado.\");\n }\n }\n }",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }",
"public void engineFailureStatus() {\n \tthis.engineFailureActive = this.trainModelGUI.engineFailStatus();\n }",
"private void fail() {\n mFails++;\n if(mFails > MAX_NUMBER_OF_FAILS) {\n gameOver();\n }\n }",
"public void check() throws IOException {\n Boolean codeIsValid = Boolean.valueOf(res.readEntity(String.class));\n if(codeIsValid) {\n ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();\n context.redirect(context.getRequestContextPath() + \"/business/UseDeals.jsf\");\n codeMessage = \"\";\n } else {\n codeMessage = \"Code is not valid! Please try again!\";\n }\n }",
"@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}",
"boolean hasPossiblyBad();",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"public boolean checkAnmeldung()\n {\n boolean result = false;\n if (!sUsername.equals(userDBM.getEmail()) || !sPw.equals(userDBM.getPw()))\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.incorrectData)\n .setCancelable(false)\n .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int id)\n {\n //do things\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n else\n {\n result = true;\n }\n return result;\n }",
"public boolean steamFailure() {\n double steam = this.steamMessage.getDoubleParameter();\n if (steam < 0) {\n return true;\n }\n if (steam > this.configuration.getMaximualSteamRate()) {\n return true;\n }\n return false;\n }",
"private boolean hasFailures(Map item){\n if(item.containsKey(\"code\") && item.get(\"code\").equals(\"ACCEPTED\"))\n return false;\n return ((Integer)item.get(\"failuresCount\")) > 0;\n }",
"void check();",
"void check();",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"public boolean isSuccess()\r\n/* 79: */ {\r\n/* 80:115 */ Object result = this.result;\r\n/* 81:116 */ if ((result == null) || (result == UNCANCELLABLE)) {\r\n/* 82:117 */ return false;\r\n/* 83: */ }\r\n/* 84:119 */ return !(result instanceof CauseHolder);\r\n/* 85: */ }",
"@Test\n\tpublic void testCase2()\n\t{\n\t\tint numberOfCases=-1;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertFalse(valid);\n\t\t\n\t}",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}",
"boolean hasErrormessage();",
"public void correctErrors();",
"@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"valid@email.com\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }",
"private void checkAnnoRateo() {\n\t\tif(req.getRateo().getAnno()>=primaNota.getBilancio().getAnno()){\n\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"L'anno del Rateo deve essere minore dell'anno della prima nota di partenza.\"));\n\t\t}\n\t}",
"public boolean hasFailed ()\r\n {\r\n return exception_ != null;\r\n }",
"void doCheckHealthy();",
"private int validate(long usrid, String digest1, String digest2, long statusid, int tries, Timestamp last) {\r\n\t\tint rtn = -1;\r\n\t\ttry {\r\n\t\t\tif (statusid == DISABLED) {\r\n\t\t\t\tsetError(\"Login is disabled\");\r\n\t\t\t\treturn DISABLED;\r\n\t\t\t}\r\n\r\n\t\t\tlong now = new Date().getTime();\r\n\t\t\tlong waituntil = (last == null) ? 0 : last.getTime() + WAITTIME;\r\n\r\n\t\t\tif (waituntil < now) {\r\n\t\t\t\t// clear out attempts since the timeout period is over\r\n\t\t\t\ttries = 0;\r\n\r\n\t\t\t} else if (tries == MAXTRIES) {\r\n\t\t\t\t// too many tries\r\n\t\t\t\tint seconds = (int) ((waituntil - now) / 1000);\r\n\t\t\t\tint minutes = (int) (seconds / 60);\r\n\t\t\t\tseconds = seconds % 60;\r\n\t\t\t\tString timeout = \"0\" + seconds;\r\n\t\t\t\ttimeout = timeout.substring(timeout.length() - 2);\r\n\t\t\t\tsetError(\"User Timedout for - \" + minutes + \":\" + timeout);\r\n\t\t\t\treturn LOCKEDOUT;\r\n\t\t\t}\r\n\r\n\t\t\tif (digest1.equals(digest2)) {\r\n\t\t\t\ttries = 0;\r\n\t\t\t\trtn = NORMAL;\r\n\t\t\t\t_transaction.setUsrID(usrid);\r\n\t\t\t} else {\r\n\t\t\t\ttries++;\r\n\t\t\t\tsetError(\"Login failed \");\r\n\t\t\t\trtn = (tries == MAXTRIES) ? LOCKEDOUT : rtn;\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetError(e.getMessage());\r\n\t\t}\r\n\t\treturn rtn;\r\n\r\n\t}",
"public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }",
"@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"public void checkError(int[][] job, int size) {\n\t\tif(size == 0) {\n\t\t\tthrow new AssertionError(\"No jobs to show result\");\n\t\t}\n\t\t\n\t\tif(size != job.length) {\n\t\t\tthrow new AssertionError(\"Wrong number of jobs given.\");\n\t\t}\n\t\t\n\t\tfor(int i=0; i<size; i++) {\n\t\t\tif(job[i][0] < 0 || job[i][1] < 0) {\n\t\t\t\t\tthrow new AssertionError(\"Negative value found.\");\n\t\t\t}\t\t\n\t\t}\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\r\n\t}",
"public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\t\r\n\t}",
"private void setFailed(int errorCode){\n\t\tCartPayIndent currentIndent = mCoffeeIndentsList.get(mCurrentIndentIndex);\n\t\tString indentID = currentIndent.getIndentID();\n\t\tint coffeeID = currentIndent.getCoffeeID();\n\t\tLogUtil.e(TAG, \"make coffee unsuccessully, code:\" + errorCode + \", indent:\" + indentID);\n\t\tupdateIndentStatusDB(FLAG_ERROR, indentID, coffeeID);\n\t\t// rollback order\n\t\trollBackOrder(errorCode);\n\t\t// report server\n\t\tList<Integer> status = new ArrayList<Integer>();\n\t\tMachineStatusReportInfo info = new MachineStatusReportInfo();\n\t\tinfo.setUid(U.getMyVendorNum());\n\t\tinfo.setTimestamp(TimeUtil.getNow_millisecond());\n\t\tstatus.add(errorCode);\n\t\tinfo.setStatus(status);\n\t\texecute(info.toRemote());\n\n\t\tmMachineStatus = CoffeeMachineStatus.READY;\n\t\t// quit time\n\t\tmUIHandler.sendEmptyMessage(MSG_UI_MAKE_COFFEE_FAIL);\n\t\tmQuitTimer.startCountDownTimer(QUIT_WAIT_TIME, 1000, 1000);\n\t}",
"private static boolean checkIfToUpdateAfterCreateFailed(LocalRegion rgn, EntryEventImpl ev) {\n boolean doUpdate = true;\n if (ev.oldValueIsDestroyedToken()) {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n doUpdate = false;\n }\n if (ev.isConcurrencyConflict()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"basicUpdate failed with CME, not to retry:\" + ev);\n }\n doUpdate = false;\n }\n return doUpdate;\n }",
"public static boolean chkManualEncumbranceRejValid(EscmProposalMgmt proposalmgmt) {\n try {\n OBContext.setAdminMode();\n EscmProposalMgmt baseProposal = proposalmgmt.getEscmBaseproposal();\n if (baseProposal == null) {\n OBQuery<EfinBudgetManencumlines> encline = OBDal.getInstance().createQuery(\n EfinBudgetManencumlines.class,\n \" as e where e.manualEncumbrance.id=:encumId and e.id in \"\n + \" ( select b.efinBudgmanencumline.id from Escm_Proposalmgmt_Line b \"\n + \" where b.escmProposalmgmt.id=:proposalId) and e.usedAmount > 0 \");\n encline.setNamedParameter(\"encumId\", proposalmgmt.getEfinEncumbrance().getId());\n encline.setNamedParameter(\"proposalId\", proposalmgmt.getId());\n\n if (encline.list().size() > 0) {\n return true;\n } else\n return false;\n } else if (baseProposal != null) {\n for (EscmProposalmgmtLine lines : proposalmgmt.getEscmProposalmgmtLineList()) {\n if (!lines.isSummary() && lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n if (amountDiffernce.compareTo(BigDecimal.ZERO) > 0\n && encline.getRemainingAmount().compareTo(amountDiffernce) < 0\n && encline.getManualEncumbrance().getEncumMethod().equals(\"M\")) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in chkManualEncumbranceValidation after Reject : \", e);\n return false;\n } finally {\n OBContext.restorePreviousMode();\n }\n return false;\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"public void fail(boolean hcf);",
"@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }",
"@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}",
"@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Test\r\n\tpublic void verifyErrorMsgWithOutDataTest() throws InvalidFormatException, IOException, Throwable{\n\t\tString errorMSg = fdata.getExcelData(\"Sheet2\", 5, 2);\r\n\t\tdriver.get(pobj.getProperty(\"url\"));\r\n\t\t\r\n\t\t\r\n\t\t//click on login Button with out data\r\n\t\tLog_In lpage = PageFactory.initElements(driver, Log_In.class);\r\n\t\tlpage.getLogin_Edit().click();\r\n\t\t\r\n\t\t String actMSg = lpage.getErrMsg().getText();\r\n \r\n\t\t//verify Error msg\r\n\t Assert.assertEquals(errorMSg, actMSg);\r\n\t}",
"@Then ( \"^The labor and delivery report is not updated successfully$\" )\n public void unsuccessfulEdit () {\n // confirm that the error message is displayed\n waitForAngular();\n try {\n final String temp = driver.findElement( By.name( \"errorMsg\" ) ).getText();\n if ( temp.equals( \"\" ) ) {\n fail();\n }\n }\n catch ( final Exception e ) {\n }\n }"
] | [
"0.6999844",
"0.66997606",
"0.6583199",
"0.64983106",
"0.64594036",
"0.64519536",
"0.6450581",
"0.64125013",
"0.6402122",
"0.6366342",
"0.6342115",
"0.6318187",
"0.6279114",
"0.6227215",
"0.6203177",
"0.61884177",
"0.6167777",
"0.61338633",
"0.6094679",
"0.60727066",
"0.6065283",
"0.60606974",
"0.6055347",
"0.6050163",
"0.6043994",
"0.60433406",
"0.6039396",
"0.60208404",
"0.60208404",
"0.60208404",
"0.6018189",
"0.6014171",
"0.59972674",
"0.5994594",
"0.59900784",
"0.5966062",
"0.59639335",
"0.5963614",
"0.5962299",
"0.59598476",
"0.5937947",
"0.5926578",
"0.5920831",
"0.59170246",
"0.59122795",
"0.59114355",
"0.5902682",
"0.59012175",
"0.59003115",
"0.59002024",
"0.5899319",
"0.58964795",
"0.58775705",
"0.5872616",
"0.5868198",
"0.5862824",
"0.5851042",
"0.5850589",
"0.5850027",
"0.58447415",
"0.5837981",
"0.5837119",
"0.5834767",
"0.5830914",
"0.5830261",
"0.58248067",
"0.58101124",
"0.5808878",
"0.5808867",
"0.5807722",
"0.5806662",
"0.58066434",
"0.58066434",
"0.5804719",
"0.5793071",
"0.5789697",
"0.5786213",
"0.57851785",
"0.57828754",
"0.57800287",
"0.5778131",
"0.57759356",
"0.5774645",
"0.5771107",
"0.57681483",
"0.5762386",
"0.5759921",
"0.57431227",
"0.5736844",
"0.57274604",
"0.57274604",
"0.5726433",
"0.57239276",
"0.5721657",
"0.5718515",
"0.5712542",
"0.5709119",
"0.5707752",
"0.5704325",
"0.5704132",
"0.5702584"
] | 0.0 | -1 |
verificare pentru check failed si assert failed | @Override
public void visit(ForNode node) {
if (Evaluator.checkScope(node) == false) {
return;
}
if (Evaluator.checkAssert(node) == false) {
return;
}
/**
* initializare
*/
Evaluator.evaluate(node.getChild(0));
/**
* evaluam conditia pentru a intra in for
*/
Evaluator.evaluate(node.getChild(1));
while (node.getChild(1).getName().contentEquals("true")) {
/**
* Daca conditia e adevarata, atunci executam programul din for
*/
Evaluator.evaluate(node.getChild(3));
/**
* executam pasul
*/
Evaluator.evaluate(node.getChild(2));
/**
* reevaluam conditia
*/
Evaluator.evaluate(node.getChild(1));
}
/**
* preluam valoarea din fiul al patrulea, corespunzator rezultatului
* evaluarii programului din for
*/
if (node.getChild(3) instanceof Variable) {
node.setName(Evaluator.variables.get(node.getChild(3).getName()));
} else {
node.setName(node.getChild(3).getName());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean assertExpected(Exception e);",
"boolean isFail();",
"boolean isFailure();",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }",
"@Override\n boolean canFail() {\n return true;\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Test\t\t\n\tpublic void TestToFail()\t\t\t\t\n\t{\t\t\n\t System.out.println(\"This method to test fail\");\t\t\t\t\t\n\t // Assert.assertTrue(false);\t\t\t\n\t}",
"@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}",
"@Test\n public void fehlerquelleAssert()\n {\n\n BigDecimal eins = BigDecimal.ONE;\n Integer intEins = Integer.valueOf( 1 );\n\n try\n {\n Assert.assertEquals( eins , intEins );\n Assert.fail( \"AssertionError erwartet.\" );\n } catch (AssertionError e)\n {\n MatcherAssert.assertThat( e.getMessage() , Matchers.is( \"expected: java.math.BigDecimal<1> but was: java.lang.Integer<1>\" ) );\n }\n }",
"public TestCase fail();",
"private void assertTrue(String name, boolean result) {\n if(! result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" +totalTests);\n totalErrors = totalErrors + 1;\n }/*else{\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" +totalTests);\n }*/\n totalTests = totalTests + 1;\n }",
"public void testInvalidNoType() { assertInvalid(\"a\"); }",
"public FailedAssertion(String reason)\n {\n super(\"\\nAssertion that failed: \" + reason);\n }",
"TestClassExecutionResult assertConfigMethodFailed(String name);",
"@Test\n public void test5(){\n Assert.assertFalse(0>1, \"verify 0 not big then 1 \");\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}",
"private void assertFail(int value) {\n try {\n converter.convertRomanNumber(value);\n fail();\n } catch (Exception e) {\n }\n }",
"@Test\n public void testValidationFailed() {\n fail();\n }",
"@Override\n boolean isFailed() {\n return false;\n }",
"private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"private void assertAll() {\n\t\t\n\t}",
"@Then ( \"the Prescription was not added\" )\r\n public void failure () {\r\n // assertTrue( driver.getPageSource().contains( \"Error occurred creating\r\n // prescription\" ) );\r\n }",
"@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test075() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDML((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public AlwaysFailsCheck(String excepmsg) {\n errmsg = excepmsg;\n }",
"@Test(timeout = 4000)\n public void test031() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.dependencyOrderedTables((TableHolder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"valid@email.com\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"@Test\n public void isCorrectTest(){\n BuyCard cardErr = new BuyCard(12,0);\n\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"Row index out of bounds.\");\n cardErr.isCorrect();\n }",
"private void checkFailedResult_EnrollmentWizard_UI(WebDriver driver, String expectedFailed) {\t\t\n\t\tBy by = By.xpath(\"//tr[descendant::td[contains(text(),'\"+Failed_Msg+\"')]]/td[2]\");\n\t\tString failed = WebDriverUtils.getText(driver, by);\n\t\tJUnitAssert.assertEquals(expectedFailed, failed);\n\t}",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"boolean hasErr();",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private void assertReflexive(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertTrue(msgArg.equals(msgArg));\r\n\t}",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"protected void checkValidity(Epml epml) {\n\t}",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"private void assertTrue(String name, boolean result) {\n if (!result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" + totalTests);\n totalErrors = totalErrors + 1;\n } \n else {\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" + totalTests);\n }\n totalTests = totalTests + 1;\n }",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"public boolean hasFail() {\n return result.hasFail();\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader();\n Boolean boolean0 = Boolean.FALSE;\n SQLUtil.isQuery(\"selectntowrong c|ck\");\n Boolean.valueOf(true);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"selectntowrong c|ck\");\n // Undeclared exception!\n try { \n defaultDBTable0.getUniqueConstraint(\"^h=wZ>:9%}Pj6(#%M\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DefaultDBTable\", e);\n }\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}",
"@Override\n\tpublic void onTestFailure(ITestResult arg0) {\n\n\t}",
"boolean checkVerification();",
"@Override\r\n\tpublic void onTestFailure(ITestResult arg0) {\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.containsMandatoryColumn((DBConstraint) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}",
"@Test\n public void testStateMatchingExceptionThrown() throws Exception {\n service.loadFiles();\n \n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"MN\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match State\", correctExceptionThrown);\n\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"public static void fail() throws IllegalStateException {\n check(false);\n }",
"public abstract String check() throws Exception;",
"public static void\tassertFail(java.lang.String message) \r\n\t\t{\r\n\t\t\tassertFail(message,null);\r\n\t\t}",
"@VisibleForTesting\n @SuppressWarnings(\"CheckReturnValue\")\n void checkAssertions() {\n checkAssertions(root);\n }",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"private void handleAssertionFailures(List<AssertionFailure> result, CollectConstraintsVisitor collectConstraintsVisitor, String queryResult) throws UnknownResultException {\r\n if (queryResult.startsWith(\"sat\")) {\r\n\r\n List<Integer> indexesFailed = getPropertiesThatFailed(queryResult);\r\n\r\n // for all the properties that have failed, we get the index and report the failure\r\n for (Integer anIndexesFailed : indexesFailed) {\r\n Tree tree = collectConstraintsVisitor.propertyNodes.get(anIndexesFailed).getTokenInfo();\r\n // Uncomment the code below to see which assertions failed (used for debugging)\r\n // System.out.printf(\"Assertion failure on line:%s column:%s .\\n\", tree.getLine(), tree.getCharPositionInLine());\r\n result.add(new AssertionFailure(tree));\r\n }\r\n\r\n } else if (!queryResult.startsWith(\"unsat\")) {\r\n throw new UnknownResultException();\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private void testBadAssertions(String dsId) throws Exception {\n pid = PID.getInstance(\"demo:foo\");\n\n String p, o;\n\n // Model namespace\n p = Constants.MODEL.CONTROL_GROUP.uri;\n o = \"demo:baz\";\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora Model namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n // View namespace\n p = Constants.VIEW.DISSEMINATES.uri;\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora View namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n\n\n }",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"@Test\n public void testGetOnFail_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getOnFail();\n\n assertEquals(\"\", result);\n }",
"@Test\n public void testFail() {\n fail();\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"G00@gmit.ie\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}",
"@Test\n\tpublic void testValidInvalidEstimtes() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(-1);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"protected abstract void assertFact(Object fact);",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDDL((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void printFailure() {\n //\n }",
"public void testFail1() throws Exception {\n helperFail(new String[] {\"j\", \"i\"}\r\n , new String[] {\"I\", \"I\"}\r\n , RefactoringStatus.ERROR);\r\n }",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Test(timeout = 4000)\n public void test033() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.currentLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"private void verifyForAssertionFailures(final RunNotifier notifier) throws Throwable {\n try {\n verify(notifier, never()).fireTestFailure(any());\n } catch (MockitoAssertionError e) {\n ArgumentCaptor<Failure> failureCaptor = ArgumentCaptor.forClass(Failure.class);\n verify(notifier, atLeastOnce()).fireTestFailure(failureCaptor.capture());\n List<Failure> failures = failureCaptor.getAllValues();\n // Go through the failures, look for an known failure case from the above exceptions\n // and throw the exception in the first one out if any.\n for (Failure failure : failures) {\n if (failure.getException().getMessage().contains(ASSERTION_FAILURE_MESSAGE)) {\n throw failure.getException();\n }\n }\n // Otherwise, throw the exception from the first failure reported.\n throw failures.get(0).getException();\n }\n }",
"void assertError(int error, String url) throws Exception {\n ServletUnitClient client = container.newClient();\n try {\n client.getResponse(url);\n fail(\"expected HTTP error \" + error + \" on \" + url);\n } catch (HttpException e) {\n assertEquals(\"Unexpected HTTP Error code for \" + url, error, e.getResponseCode());\n }\n }",
"@Test(timeout = 4000)\n public void test021() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseResultRow((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test\n\tpublic void testValidInvalidEstimtesFib() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(10);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test(timeout = 4000)\n public void test101() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.countRows(\"6vyv%@\\\":8OZvgeq:\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test\n public void testIsValidarFecha() {\n System.out.println(\"isValidarFecha\");\n String fecha = \"06/09/2018\";\n boolean expResult = true;\n boolean result = Entradas.isValidarFecha(fecha);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"@Test(timeout = 4000)\n public void test065() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.querySingleRow(\")\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test\n\tpublic void testCase2()\n\t{\n\t\tint numberOfCases=-1;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertFalse(valid);\n\t\t\n\t}",
"@Test\n void testDisabledOnFailedAssumption(){\n assumeTrue(DayOfWeek.TUESDAY.equals(LocalDate.now().getDayOfWeek()));\n assertEquals(1, 2);\n }",
"@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}",
"boolean hasIsSuccess();",
"@Test(timeout = 4000)\n public void test11() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void test2() {\n cashRegister.addTens(5);\n try {\n cashRegister.withdraw(0, 5);\n fail();\n } catch (InsufficientCashException e) {\n assertEquals(e.getMessage(), \"Not enough denominations\");\n }\n }",
"@Test\n public void checkValidityTest1() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n assert (g.checkValidity(g.getDeck()));\n }",
"@Test\n void cadastraPesquisadorInvalido() {\n assertEquals(\"Campo fotoURL nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"\")));\n assertEquals(\"Campo nome nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(null, \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https://godspeed\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"sem o necessario\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"testeteste\",\"https://godspeed\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"teste@\",\"https://godspeed\")));\n }"
] | [
"0.72393745",
"0.6917953",
"0.6866414",
"0.6745447",
"0.67156965",
"0.6698923",
"0.6660824",
"0.6630843",
"0.66118175",
"0.6550945",
"0.6498842",
"0.6475106",
"0.6472451",
"0.6398807",
"0.63731444",
"0.6322195",
"0.6314215",
"0.6312465",
"0.631102",
"0.63048786",
"0.6287181",
"0.6283941",
"0.6237191",
"0.62325734",
"0.6230661",
"0.6221213",
"0.62114817",
"0.6206562",
"0.62025",
"0.6190305",
"0.6170048",
"0.61671495",
"0.6153784",
"0.6144756",
"0.6138528",
"0.6126539",
"0.6122982",
"0.61193085",
"0.6118901",
"0.6118779",
"0.6115966",
"0.6112769",
"0.61123526",
"0.60864145",
"0.60788465",
"0.6078505",
"0.60743827",
"0.60732615",
"0.60723317",
"0.60723317",
"0.6071644",
"0.60690755",
"0.6068711",
"0.60682946",
"0.60682946",
"0.60682946",
"0.606724",
"0.6066608",
"0.60564506",
"0.6054026",
"0.6031196",
"0.6027289",
"0.60256064",
"0.60246974",
"0.6023076",
"0.6009765",
"0.600948",
"0.6001457",
"0.5997346",
"0.5995788",
"0.59911984",
"0.5990584",
"0.5987941",
"0.5985092",
"0.59833586",
"0.5980127",
"0.59794915",
"0.5976639",
"0.5976244",
"0.59661627",
"0.59597605",
"0.59472835",
"0.5937572",
"0.59175336",
"0.5914697",
"0.59142554",
"0.5913454",
"0.5910043",
"0.5907925",
"0.59061193",
"0.59046036",
"0.5904033",
"0.5902728",
"0.59020525",
"0.5901636",
"0.590135",
"0.5898229",
"0.58982235",
"0.5897393",
"0.5896122",
"0.5893269"
] | 0.0 | -1 |
verificare check failed si assert failed | @Override
public void visit(EqualityNode node) {
if (Evaluator.checkScope(node) == false) {
return;
}
if (Evaluator.checkAssert(node) == false) {
return;
}
/**
* evaluam fiul stang si fiul drept
*/
Evaluator.evaluate(node.getChild(0));
Evaluator.evaluate(node.getChild(1));
String s2 = null;
String s1 = null;
/**
* preluam rezultatele evaluarii celor doi fii
*/
if (node.getChild(0) instanceof Variable) {
s1 = Evaluator.variables.get(node.getChild(0).getName());
} else {
s1 = node.getChild(0).getName();
}
if (node.getChild(1) instanceof Variable) {
s2 = Evaluator.variables.get(node.getChild(1).getName());
} else {
s2 = node.getChild(1).getName();
}
/**
* verificam daca cei doi fii s- au evaluat la aceeasi expresie
*/
if (s1.contentEquals(s2)) {
node.setName("true");
} else {
node.setName("false");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean assertExpected(Exception e);",
"boolean isFail();",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"boolean isFailure();",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }",
"public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}",
"@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}",
"@Override\n boolean canFail() {\n return true;\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Test\n public void fehlerquelleAssert()\n {\n\n BigDecimal eins = BigDecimal.ONE;\n Integer intEins = Integer.valueOf( 1 );\n\n try\n {\n Assert.assertEquals( eins , intEins );\n Assert.fail( \"AssertionError erwartet.\" );\n } catch (AssertionError e)\n {\n MatcherAssert.assertThat( e.getMessage() , Matchers.is( \"expected: java.math.BigDecimal<1> but was: java.lang.Integer<1>\" ) );\n }\n }",
"private void assertTrue(String name, boolean result) {\n if(! result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" +totalTests);\n totalErrors = totalErrors + 1;\n }/*else{\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" +totalTests);\n }*/\n totalTests = totalTests + 1;\n }",
"public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}",
"@Test\t\t\n\tpublic void TestToFail()\t\t\t\t\n\t{\t\t\n\t System.out.println(\"This method to test fail\");\t\t\t\t\t\n\t // Assert.assertTrue(false);\t\t\t\n\t}",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"public void testInvalidNoType() { assertInvalid(\"a\"); }",
"public TestCase fail();",
"@Then ( \"the Prescription was not added\" )\r\n public void failure () {\r\n // assertTrue( driver.getPageSource().contains( \"Error occurred creating\r\n // prescription\" ) );\r\n }",
"@Test\n public void test5(){\n Assert.assertFalse(0>1, \"verify 0 not big then 1 \");\n }",
"private void assertFail(int value) {\n try {\n converter.convertRomanNumber(value);\n fail();\n } catch (Exception e) {\n }\n }",
"public FailedAssertion(String reason)\n {\n super(\"\\nAssertion that failed: \" + reason);\n }",
"private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }",
"private void assertAll() {\n\t\t\n\t}",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"TestClassExecutionResult assertConfigMethodFailed(String name);",
"private void assertReflexive(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertTrue(msgArg.equals(msgArg));\r\n\t}",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void isCorrectTest(){\n BuyCard cardErr = new BuyCard(12,0);\n\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"Row index out of bounds.\");\n cardErr.isCorrect();\n }",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"@Test(timeout = 4000)\n public void test075() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDML((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader();\n Boolean boolean0 = Boolean.FALSE;\n SQLUtil.isQuery(\"selectntowrong c|ck\");\n Boolean.valueOf(true);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"selectntowrong c|ck\");\n // Undeclared exception!\n try { \n defaultDBTable0.getUniqueConstraint(\"^h=wZ>:9%}Pj6(#%M\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DefaultDBTable\", e);\n }\n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"@Test(timeout = 4000)\n public void test031() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.dependencyOrderedTables((TableHolder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"private void assertTrue(String name, boolean result) {\n if (!result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" + totalTests);\n totalErrors = totalErrors + 1;\n } \n else {\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" + totalTests);\n }\n totalTests = totalTests + 1;\n }",
"@Override\n boolean isFailed() {\n return false;\n }",
"@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"protected void checkValidity(Epml epml) {\n\t}",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"boolean checkVerification();",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"valid@email.com\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }",
"@Test\n\tpublic void testValidInvalidEstimtes() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(-1);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}",
"@Test\n public void testValidationFailed() {\n fail();\n }",
"public AlwaysFailsCheck(String excepmsg) {\n errmsg = excepmsg;\n }",
"boolean hasErr();",
"private void testBadAssertions(String dsId) throws Exception {\n pid = PID.getInstance(\"demo:foo\");\n\n String p, o;\n\n // Model namespace\n p = Constants.MODEL.CONTROL_GROUP.uri;\n o = \"demo:baz\";\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora Model namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n // View namespace\n p = Constants.VIEW.DISSEMINATES.uri;\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora View namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n\n\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"G00@gmit.ie\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test\n public void testGetOnFail_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getOnFail();\n\n assertEquals(\"\", result);\n }",
"@Test\n\tpublic void testValidInvalidEstimtesFib() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(10);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"private void checkFailedResult_EnrollmentWizard_UI(WebDriver driver, String expectedFailed) {\t\t\n\t\tBy by = By.xpath(\"//tr[descendant::td[contains(text(),'\"+Failed_Msg+\"')]]/td[2]\");\n\t\tString failed = WebDriverUtils.getText(driver, by);\n\t\tJUnitAssert.assertEquals(expectedFailed, failed);\n\t}",
"public boolean hasFail() {\n return result.hasFail();\n }",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private void handleAssertionFailures(List<AssertionFailure> result, CollectConstraintsVisitor collectConstraintsVisitor, String queryResult) throws UnknownResultException {\r\n if (queryResult.startsWith(\"sat\")) {\r\n\r\n List<Integer> indexesFailed = getPropertiesThatFailed(queryResult);\r\n\r\n // for all the properties that have failed, we get the index and report the failure\r\n for (Integer anIndexesFailed : indexesFailed) {\r\n Tree tree = collectConstraintsVisitor.propertyNodes.get(anIndexesFailed).getTokenInfo();\r\n // Uncomment the code below to see which assertions failed (used for debugging)\r\n // System.out.printf(\"Assertion failure on line:%s column:%s .\\n\", tree.getLine(), tree.getCharPositionInLine());\r\n result.add(new AssertionFailure(tree));\r\n }\r\n\r\n } else if (!queryResult.startsWith(\"unsat\")) {\r\n throw new UnknownResultException();\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.containsMandatoryColumn((DBConstraint) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"protected abstract void assertFact(Object fact);",
"@Test\n public void testStateMatchingExceptionThrown() throws Exception {\n service.loadFiles();\n \n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"MN\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match State\", correctExceptionThrown);\n\n }",
"@Test\n\tpublic void testCase2()\n\t{\n\t\tint numberOfCases=-1;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertFalse(valid);\n\t\t\n\t}",
"@Test\r\n public void test6() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(57,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 6, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }",
"@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test\n public void checkValidityTest1() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n assert (g.checkValidity(g.getDeck()));\n }",
"@Test\n public void test2() {\n cashRegister.addTens(5);\n try {\n cashRegister.withdraw(0, 5);\n fail();\n } catch (InsufficientCashException e) {\n assertEquals(e.getMessage(), \"Not enough denominations\");\n }\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"public abstract String check() throws Exception;",
"@Test\n void cadastraPesquisadorInvalido() {\n assertEquals(\"Campo fotoURL nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"\")));\n assertEquals(\"Campo nome nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(null, \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https://godspeed\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"sem o necessario\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"testeteste\",\"https://godspeed\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"teste@\",\"https://godspeed\")));\n }",
"@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Test(timeout = 4000)\n public void test101() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.countRows(\"6vyv%@\\\":8OZvgeq:\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDDL((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test11() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n void testDisabledOnFailedAssumption(){\n assumeTrue(DayOfWeek.TUESDAY.equals(LocalDate.now().getDayOfWeek()));\n assertEquals(1, 2);\n }",
"@VisibleForTesting\n @SuppressWarnings(\"CheckReturnValue\")\n void checkAssertions() {\n checkAssertions(root);\n }",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"@Test\n public void loginWithEmptyName(){\n\n Assert.assertEquals(createUserChecking.creationChecking(\"\",email),\"APPLICATION ERROR #11\");\n log.info(\"Empty login and email \"+ email+\" were typed\");\n }",
"@Test\n public void bookHotelTestError2() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tick Joachim\", \"00000000\", 0, 9);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"Month must be between 1 and 12\",e.getMessage());\n } \n }",
"@Override\n\tpublic void onTestFailure(ITestResult arg0) {\n\n\t}",
"@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Override\r\n\tpublic void onTestFailure(ITestResult arg0) {\n\t\t\r\n\t}",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}",
"private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n public void cancelHotelTestError1() throws CancelHotelFault, DatatypeConfigurationException{ \n String input = \"hello you\";\n try {\n cancelHotel(input);\n } catch (CancelHotelFault e) {\n assertEquals(\"ERROR\",e.getMessage());\n } \n }",
"boolean hasIsSuccess();",
"@Test\r\n public void test1() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n loan = p.getMonthlyAmount(TestHelper.getSSN(19,0,0,5555), 0, 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 1, correct : 0, got : \"+ loan);\r\n \t}\r\n }",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"public static void\tassertFail(java.lang.String message) \r\n\t\t{\r\n\t\t\tassertFail(message,null);\r\n\t\t}"
] | [
"0.7089022",
"0.6835058",
"0.67904174",
"0.6759052",
"0.6720366",
"0.6657081",
"0.6611533",
"0.65513396",
"0.65482277",
"0.65179527",
"0.64710116",
"0.6410966",
"0.6399206",
"0.63983136",
"0.6332907",
"0.6301904",
"0.6285513",
"0.6281005",
"0.6279333",
"0.6260898",
"0.62544394",
"0.62469965",
"0.62443393",
"0.62266654",
"0.6209936",
"0.62095284",
"0.62052715",
"0.6201545",
"0.6175197",
"0.6172758",
"0.6167416",
"0.6161431",
"0.6148988",
"0.6127953",
"0.6123857",
"0.6116166",
"0.6111013",
"0.6104748",
"0.61039746",
"0.60993606",
"0.60970193",
"0.6095352",
"0.60868317",
"0.60856324",
"0.60856324",
"0.60770184",
"0.6072289",
"0.6071207",
"0.606887",
"0.605754",
"0.6055935",
"0.60505867",
"0.60492885",
"0.6047817",
"0.6043803",
"0.60264957",
"0.60258764",
"0.6016663",
"0.6011236",
"0.60103697",
"0.60074335",
"0.6004338",
"0.60011494",
"0.59994495",
"0.59953463",
"0.59953266",
"0.5991926",
"0.5987512",
"0.59835994",
"0.59813255",
"0.59740657",
"0.5966236",
"0.5966236",
"0.5966236",
"0.5965635",
"0.5958151",
"0.5957527",
"0.5957417",
"0.59572124",
"0.5946721",
"0.59326845",
"0.59303904",
"0.59289545",
"0.59248644",
"0.592205",
"0.59198236",
"0.59165883",
"0.5915577",
"0.59116644",
"0.59091765",
"0.5905113",
"0.5905085",
"0.59050363",
"0.59016705",
"0.59008",
"0.59001905",
"0.59000784",
"0.5898919",
"0.5898217",
"0.5892308",
"0.5891297"
] | 0.0 | -1 |
verificare check failed si assert failed | @Override
public void visit(MultiplyNode node) {
if (Evaluator.checkScope(node) == false) {
return;
}
if (Evaluator.checkAssert(node) == false) {
return;
}
/**
* evaluam cei doi fii
*/
Evaluator.evaluate(node.getChild(0));
Evaluator.evaluate(node.getChild(1));
Integer i, j;
/**
* salvam si inmultim valorile rezulate in urma evaluarii celor 2 fii si
* setam valoarea corespunzatoare in nodul curent
*/
if (node.getChild(1) instanceof Variable) {
i = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));
} else {
i = Integer.parseInt(node.getChild(1).getName());
}
if (node.getChild(0) instanceof Variable) {
j = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));
} else {
j = Integer.parseInt(node.getChild(0).getName());
}
Integer n = i * j;
node.setName(n.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean assertExpected(Exception e);",
"boolean isFail();",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"boolean isFailure();",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }",
"public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}",
"@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}",
"@Override\n boolean canFail() {\n return true;\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Test\n public void fehlerquelleAssert()\n {\n\n BigDecimal eins = BigDecimal.ONE;\n Integer intEins = Integer.valueOf( 1 );\n\n try\n {\n Assert.assertEquals( eins , intEins );\n Assert.fail( \"AssertionError erwartet.\" );\n } catch (AssertionError e)\n {\n MatcherAssert.assertThat( e.getMessage() , Matchers.is( \"expected: java.math.BigDecimal<1> but was: java.lang.Integer<1>\" ) );\n }\n }",
"private void assertTrue(String name, boolean result) {\n if(! result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" +totalTests);\n totalErrors = totalErrors + 1;\n }/*else{\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" +totalTests);\n }*/\n totalTests = totalTests + 1;\n }",
"public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}",
"@Test\t\t\n\tpublic void TestToFail()\t\t\t\t\n\t{\t\t\n\t System.out.println(\"This method to test fail\");\t\t\t\t\t\n\t // Assert.assertTrue(false);\t\t\t\n\t}",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"public void testInvalidNoType() { assertInvalid(\"a\"); }",
"public TestCase fail();",
"@Then ( \"the Prescription was not added\" )\r\n public void failure () {\r\n // assertTrue( driver.getPageSource().contains( \"Error occurred creating\r\n // prescription\" ) );\r\n }",
"@Test\n public void test5(){\n Assert.assertFalse(0>1, \"verify 0 not big then 1 \");\n }",
"private void assertFail(int value) {\n try {\n converter.convertRomanNumber(value);\n fail();\n } catch (Exception e) {\n }\n }",
"public FailedAssertion(String reason)\n {\n super(\"\\nAssertion that failed: \" + reason);\n }",
"private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }",
"private void assertAll() {\n\t\t\n\t}",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"TestClassExecutionResult assertConfigMethodFailed(String name);",
"private void assertReflexive(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertTrue(msgArg.equals(msgArg));\r\n\t}",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void isCorrectTest(){\n BuyCard cardErr = new BuyCard(12,0);\n\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"Row index out of bounds.\");\n cardErr.isCorrect();\n }",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"@Test(timeout = 4000)\n public void test075() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDML((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader();\n Boolean boolean0 = Boolean.FALSE;\n SQLUtil.isQuery(\"selectntowrong c|ck\");\n Boolean.valueOf(true);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"selectntowrong c|ck\");\n // Undeclared exception!\n try { \n defaultDBTable0.getUniqueConstraint(\"^h=wZ>:9%}Pj6(#%M\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DefaultDBTable\", e);\n }\n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }",
"private void assertTrue(String name, boolean result) {\n if (!result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" + totalTests);\n totalErrors = totalErrors + 1;\n } \n else {\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" + totalTests);\n }\n totalTests = totalTests + 1;\n }",
"@Test(timeout = 4000)\n public void test031() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.dependencyOrderedTables((TableHolder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Override\n boolean isFailed() {\n return false;\n }",
"@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"protected void checkValidity(Epml epml) {\n\t}",
"boolean checkVerification();",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"valid@email.com\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }",
"@Test\n\tpublic void testValidInvalidEstimtes() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(-1);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}",
"@Test\n public void testValidationFailed() {\n fail();\n }",
"public AlwaysFailsCheck(String excepmsg) {\n errmsg = excepmsg;\n }",
"boolean hasErr();",
"private void testBadAssertions(String dsId) throws Exception {\n pid = PID.getInstance(\"demo:foo\");\n\n String p, o;\n\n // Model namespace\n p = Constants.MODEL.CONTROL_GROUP.uri;\n o = \"demo:baz\";\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora Model namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n // View namespace\n p = Constants.VIEW.DISSEMINATES.uri;\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora View namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n\n\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"G00@gmit.ie\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test\n public void testGetOnFail_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getOnFail();\n\n assertEquals(\"\", result);\n }",
"@Test\n\tpublic void testValidInvalidEstimtesFib() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(10);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"private void checkFailedResult_EnrollmentWizard_UI(WebDriver driver, String expectedFailed) {\t\t\n\t\tBy by = By.xpath(\"//tr[descendant::td[contains(text(),'\"+Failed_Msg+\"')]]/td[2]\");\n\t\tString failed = WebDriverUtils.getText(driver, by);\n\t\tJUnitAssert.assertEquals(expectedFailed, failed);\n\t}",
"public boolean hasFail() {\n return result.hasFail();\n }",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private void handleAssertionFailures(List<AssertionFailure> result, CollectConstraintsVisitor collectConstraintsVisitor, String queryResult) throws UnknownResultException {\r\n if (queryResult.startsWith(\"sat\")) {\r\n\r\n List<Integer> indexesFailed = getPropertiesThatFailed(queryResult);\r\n\r\n // for all the properties that have failed, we get the index and report the failure\r\n for (Integer anIndexesFailed : indexesFailed) {\r\n Tree tree = collectConstraintsVisitor.propertyNodes.get(anIndexesFailed).getTokenInfo();\r\n // Uncomment the code below to see which assertions failed (used for debugging)\r\n // System.out.printf(\"Assertion failure on line:%s column:%s .\\n\", tree.getLine(), tree.getCharPositionInLine());\r\n result.add(new AssertionFailure(tree));\r\n }\r\n\r\n } else if (!queryResult.startsWith(\"unsat\")) {\r\n throw new UnknownResultException();\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.containsMandatoryColumn((DBConstraint) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"protected abstract void assertFact(Object fact);",
"@Test\n public void testStateMatchingExceptionThrown() throws Exception {\n service.loadFiles();\n \n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"MN\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match State\", correctExceptionThrown);\n\n }",
"@Test\n\tpublic void testCase2()\n\t{\n\t\tint numberOfCases=-1;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertFalse(valid);\n\t\t\n\t}",
"@Test\r\n public void test6() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(57,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 6, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }",
"@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test\n public void checkValidityTest1() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n assert (g.checkValidity(g.getDeck()));\n }",
"@Test\n public void test2() {\n cashRegister.addTens(5);\n try {\n cashRegister.withdraw(0, 5);\n fail();\n } catch (InsufficientCashException e) {\n assertEquals(e.getMessage(), \"Not enough denominations\");\n }\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"public abstract String check() throws Exception;",
"@Test\n void cadastraPesquisadorInvalido() {\n assertEquals(\"Campo fotoURL nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"\")));\n assertEquals(\"Campo nome nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(null, \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https://godspeed\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"sem o necessario\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"testeteste\",\"https://godspeed\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"teste@\",\"https://godspeed\")));\n }",
"@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Test(timeout = 4000)\n public void test101() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.countRows(\"6vyv%@\\\":8OZvgeq:\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDDL((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test11() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n void testDisabledOnFailedAssumption(){\n assumeTrue(DayOfWeek.TUESDAY.equals(LocalDate.now().getDayOfWeek()));\n assertEquals(1, 2);\n }",
"@VisibleForTesting\n @SuppressWarnings(\"CheckReturnValue\")\n void checkAssertions() {\n checkAssertions(root);\n }",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"@Test\n public void loginWithEmptyName(){\n\n Assert.assertEquals(createUserChecking.creationChecking(\"\",email),\"APPLICATION ERROR #11\");\n log.info(\"Empty login and email \"+ email+\" were typed\");\n }",
"@Test\n public void bookHotelTestError2() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tick Joachim\", \"00000000\", 0, 9);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"Month must be between 1 and 12\",e.getMessage());\n } \n }",
"@Override\n\tpublic void onTestFailure(ITestResult arg0) {\n\n\t}",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Override\r\n\tpublic void onTestFailure(ITestResult arg0) {\n\t\t\r\n\t}",
"@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }",
"@Test\n public void cancelHotelTestError1() throws CancelHotelFault, DatatypeConfigurationException{ \n String input = \"hello you\";\n try {\n cancelHotel(input);\n } catch (CancelHotelFault e) {\n assertEquals(\"ERROR\",e.getMessage());\n } \n }",
"boolean hasIsSuccess();",
"@Test\r\n public void test1() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n loan = p.getMonthlyAmount(TestHelper.getSSN(19,0,0,5555), 0, 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 1, correct : 0, got : \"+ loan);\r\n \t}\r\n }",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"public static void\tassertFail(java.lang.String message) \r\n\t\t{\r\n\t\t\tassertFail(message,null);\r\n\t\t}"
] | [
"0.7090813",
"0.6836364",
"0.67909",
"0.6760431",
"0.6720432",
"0.6657428",
"0.66137546",
"0.655297",
"0.6548877",
"0.6517339",
"0.64716715",
"0.6413279",
"0.640165",
"0.6399359",
"0.63327587",
"0.6303205",
"0.62861526",
"0.6281287",
"0.6280595",
"0.6261408",
"0.6255996",
"0.6248405",
"0.6244992",
"0.622888",
"0.6211075",
"0.6209674",
"0.6205882",
"0.6203647",
"0.6175199",
"0.61726636",
"0.6168014",
"0.6161081",
"0.61493987",
"0.61276686",
"0.61230266",
"0.61161035",
"0.61107624",
"0.6105103",
"0.61050606",
"0.6099492",
"0.6098751",
"0.6096179",
"0.6087547",
"0.60866195",
"0.60866195",
"0.6077879",
"0.6073245",
"0.6072514",
"0.6070024",
"0.6057914",
"0.60570216",
"0.6051502",
"0.6050036",
"0.604805",
"0.60447913",
"0.6026984",
"0.6025852",
"0.6017046",
"0.60121703",
"0.60095155",
"0.6008015",
"0.60058767",
"0.60026515",
"0.59990025",
"0.59956825",
"0.59954995",
"0.59926146",
"0.59886056",
"0.59844935",
"0.59816396",
"0.59745187",
"0.59674287",
"0.59674287",
"0.59674287",
"0.5966621",
"0.59582764",
"0.59578735",
"0.59575117",
"0.59567046",
"0.5946309",
"0.59322166",
"0.59320205",
"0.5929444",
"0.5925091",
"0.5922695",
"0.5920675",
"0.59166974",
"0.5915501",
"0.5911657",
"0.5909515",
"0.59058034",
"0.590552",
"0.5904775",
"0.5902956",
"0.5900998",
"0.5900983",
"0.5900347",
"0.5900053",
"0.5898596",
"0.58925563",
"0.5892345"
] | 0.0 | -1 |
verificare check failed si assert failed | @Override
public void visit(LessNode node) {
if (Evaluator.checkScope(node) == false) {
return;
}
if (Evaluator.checkAssert(node) == false) {
return;
}
/**
* evaluam expresiile din cei 2 fii
*/
Evaluator.evaluate(node.getChild(0));
Evaluator.evaluate(node.getChild(1));
Integer s2 = 0;
Integer s1 = 0;
/**
* preluam rezultatele evaluarii si verificam daca primul este mai mic
* decat la doilea ,setand corespunzator valoarea din nodul curent in
* functie de rezultatul comparatiei
*/
if (node.getChild(0) instanceof Variable) {
s1 = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));
} else {
s1 = Integer.parseInt(node.getChild(0).getName());
}
if (node.getChild(1) instanceof Variable) {
s2 = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));
} else {
s2 = Integer.parseInt(node.getChild(1).getName());
}
if (s1 < s2) {
node.setName("true");
} else {
node.setName("false");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean assertExpected(Exception e);",
"boolean isFail();",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"boolean isFailure();",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }",
"public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}",
"@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}",
"@Override\n boolean canFail() {\n return true;\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Test\n public void fehlerquelleAssert()\n {\n\n BigDecimal eins = BigDecimal.ONE;\n Integer intEins = Integer.valueOf( 1 );\n\n try\n {\n Assert.assertEquals( eins , intEins );\n Assert.fail( \"AssertionError erwartet.\" );\n } catch (AssertionError e)\n {\n MatcherAssert.assertThat( e.getMessage() , Matchers.is( \"expected: java.math.BigDecimal<1> but was: java.lang.Integer<1>\" ) );\n }\n }",
"private void assertTrue(String name, boolean result) {\n if(! result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" +totalTests);\n totalErrors = totalErrors + 1;\n }/*else{\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" +totalTests);\n }*/\n totalTests = totalTests + 1;\n }",
"public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}",
"@Test\t\t\n\tpublic void TestToFail()\t\t\t\t\n\t{\t\t\n\t System.out.println(\"This method to test fail\");\t\t\t\t\t\n\t // Assert.assertTrue(false);\t\t\t\n\t}",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"public void testInvalidNoType() { assertInvalid(\"a\"); }",
"public TestCase fail();",
"@Then ( \"the Prescription was not added\" )\r\n public void failure () {\r\n // assertTrue( driver.getPageSource().contains( \"Error occurred creating\r\n // prescription\" ) );\r\n }",
"@Test\n public void test5(){\n Assert.assertFalse(0>1, \"verify 0 not big then 1 \");\n }",
"private void assertFail(int value) {\n try {\n converter.convertRomanNumber(value);\n fail();\n } catch (Exception e) {\n }\n }",
"public FailedAssertion(String reason)\n {\n super(\"\\nAssertion that failed: \" + reason);\n }",
"private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }",
"private void assertAll() {\n\t\t\n\t}",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"TestClassExecutionResult assertConfigMethodFailed(String name);",
"private void assertReflexive(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertTrue(msgArg.equals(msgArg));\r\n\t}",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void isCorrectTest(){\n BuyCard cardErr = new BuyCard(12,0);\n\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"Row index out of bounds.\");\n cardErr.isCorrect();\n }",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"@Test(timeout = 4000)\n public void test075() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDML((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader();\n Boolean boolean0 = Boolean.FALSE;\n SQLUtil.isQuery(\"selectntowrong c|ck\");\n Boolean.valueOf(true);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"selectntowrong c|ck\");\n // Undeclared exception!\n try { \n defaultDBTable0.getUniqueConstraint(\"^h=wZ>:9%}Pj6(#%M\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DefaultDBTable\", e);\n }\n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }",
"private void assertTrue(String name, boolean result) {\n if (!result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" + totalTests);\n totalErrors = totalErrors + 1;\n } \n else {\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" + totalTests);\n }\n totalTests = totalTests + 1;\n }",
"@Test(timeout = 4000)\n public void test031() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.dependencyOrderedTables((TableHolder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Override\n boolean isFailed() {\n return false;\n }",
"@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"protected void checkValidity(Epml epml) {\n\t}",
"boolean checkVerification();",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }",
"@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"valid@email.com\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }",
"@Test\n\tpublic void testValidInvalidEstimtes() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(-1);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}",
"@Test\n public void testValidationFailed() {\n fail();\n }",
"public AlwaysFailsCheck(String excepmsg) {\n errmsg = excepmsg;\n }",
"boolean hasErr();",
"private void testBadAssertions(String dsId) throws Exception {\n pid = PID.getInstance(\"demo:foo\");\n\n String p, o;\n\n // Model namespace\n p = Constants.MODEL.CONTROL_GROUP.uri;\n o = \"demo:baz\";\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora Model namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n // View namespace\n p = Constants.VIEW.DISSEMINATES.uri;\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora View namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n\n\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"G00@gmit.ie\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test\n public void testGetOnFail_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getOnFail();\n\n assertEquals(\"\", result);\n }",
"@Test\n\tpublic void testValidInvalidEstimtesFib() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(10);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"private void checkFailedResult_EnrollmentWizard_UI(WebDriver driver, String expectedFailed) {\t\t\n\t\tBy by = By.xpath(\"//tr[descendant::td[contains(text(),'\"+Failed_Msg+\"')]]/td[2]\");\n\t\tString failed = WebDriverUtils.getText(driver, by);\n\t\tJUnitAssert.assertEquals(expectedFailed, failed);\n\t}",
"public boolean hasFail() {\n return result.hasFail();\n }",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private void handleAssertionFailures(List<AssertionFailure> result, CollectConstraintsVisitor collectConstraintsVisitor, String queryResult) throws UnknownResultException {\r\n if (queryResult.startsWith(\"sat\")) {\r\n\r\n List<Integer> indexesFailed = getPropertiesThatFailed(queryResult);\r\n\r\n // for all the properties that have failed, we get the index and report the failure\r\n for (Integer anIndexesFailed : indexesFailed) {\r\n Tree tree = collectConstraintsVisitor.propertyNodes.get(anIndexesFailed).getTokenInfo();\r\n // Uncomment the code below to see which assertions failed (used for debugging)\r\n // System.out.printf(\"Assertion failure on line:%s column:%s .\\n\", tree.getLine(), tree.getCharPositionInLine());\r\n result.add(new AssertionFailure(tree));\r\n }\r\n\r\n } else if (!queryResult.startsWith(\"unsat\")) {\r\n throw new UnknownResultException();\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.containsMandatoryColumn((DBConstraint) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"protected abstract void assertFact(Object fact);",
"@Test\n public void testStateMatchingExceptionThrown() throws Exception {\n service.loadFiles();\n \n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"MN\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match State\", correctExceptionThrown);\n\n }",
"@Test\n\tpublic void testCase2()\n\t{\n\t\tint numberOfCases=-1;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertFalse(valid);\n\t\t\n\t}",
"@Test\r\n public void test6() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(57,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 6, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }",
"@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test\n public void checkValidityTest1() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n assert (g.checkValidity(g.getDeck()));\n }",
"@Test\n public void test2() {\n cashRegister.addTens(5);\n try {\n cashRegister.withdraw(0, 5);\n fail();\n } catch (InsufficientCashException e) {\n assertEquals(e.getMessage(), \"Not enough denominations\");\n }\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"public abstract String check() throws Exception;",
"@Test\n void cadastraPesquisadorInvalido() {\n assertEquals(\"Campo fotoURL nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"\")));\n assertEquals(\"Campo nome nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(null, \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https://godspeed\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"sem o necessario\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"testeteste\",\"https://godspeed\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"teste@\",\"https://godspeed\")));\n }",
"@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Test(timeout = 4000)\n public void test101() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.countRows(\"6vyv%@\\\":8OZvgeq:\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDDL((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test11() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n void testDisabledOnFailedAssumption(){\n assumeTrue(DayOfWeek.TUESDAY.equals(LocalDate.now().getDayOfWeek()));\n assertEquals(1, 2);\n }",
"@VisibleForTesting\n @SuppressWarnings(\"CheckReturnValue\")\n void checkAssertions() {\n checkAssertions(root);\n }",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"@Test\n public void loginWithEmptyName(){\n\n Assert.assertEquals(createUserChecking.creationChecking(\"\",email),\"APPLICATION ERROR #11\");\n log.info(\"Empty login and email \"+ email+\" were typed\");\n }",
"@Test\n public void bookHotelTestError2() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tick Joachim\", \"00000000\", 0, 9);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"Month must be between 1 and 12\",e.getMessage());\n } \n }",
"@Override\n\tpublic void onTestFailure(ITestResult arg0) {\n\n\t}",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Override\r\n\tpublic void onTestFailure(ITestResult arg0) {\n\t\t\r\n\t}",
"@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }",
"@Test\n public void cancelHotelTestError1() throws CancelHotelFault, DatatypeConfigurationException{ \n String input = \"hello you\";\n try {\n cancelHotel(input);\n } catch (CancelHotelFault e) {\n assertEquals(\"ERROR\",e.getMessage());\n } \n }",
"boolean hasIsSuccess();",
"@Test\r\n public void test1() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n loan = p.getMonthlyAmount(TestHelper.getSSN(19,0,0,5555), 0, 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 1, correct : 0, got : \"+ loan);\r\n \t}\r\n }",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"public static void\tassertFail(java.lang.String message) \r\n\t\t{\r\n\t\t\tassertFail(message,null);\r\n\t\t}"
] | [
"0.7090813",
"0.6836364",
"0.67909",
"0.6760431",
"0.6720432",
"0.6657428",
"0.66137546",
"0.655297",
"0.6548877",
"0.6517339",
"0.64716715",
"0.6413279",
"0.640165",
"0.6399359",
"0.63327587",
"0.6303205",
"0.62861526",
"0.6281287",
"0.6280595",
"0.6261408",
"0.6255996",
"0.6248405",
"0.6244992",
"0.622888",
"0.6211075",
"0.6209674",
"0.6205882",
"0.6203647",
"0.6175199",
"0.61726636",
"0.6168014",
"0.6161081",
"0.61493987",
"0.61276686",
"0.61230266",
"0.61161035",
"0.61107624",
"0.6105103",
"0.61050606",
"0.6099492",
"0.6098751",
"0.6096179",
"0.6087547",
"0.60866195",
"0.60866195",
"0.6077879",
"0.6073245",
"0.6072514",
"0.6070024",
"0.6057914",
"0.60570216",
"0.6051502",
"0.6050036",
"0.604805",
"0.60447913",
"0.6026984",
"0.6025852",
"0.6017046",
"0.60121703",
"0.60095155",
"0.6008015",
"0.60058767",
"0.60026515",
"0.59990025",
"0.59956825",
"0.59954995",
"0.59926146",
"0.59886056",
"0.59844935",
"0.59816396",
"0.59745187",
"0.59674287",
"0.59674287",
"0.59674287",
"0.5966621",
"0.59582764",
"0.59578735",
"0.59575117",
"0.59567046",
"0.5946309",
"0.59322166",
"0.59320205",
"0.5929444",
"0.5925091",
"0.5922695",
"0.5920675",
"0.59166974",
"0.5915501",
"0.5911657",
"0.5909515",
"0.59058034",
"0.590552",
"0.5904775",
"0.5902956",
"0.5900998",
"0.5900983",
"0.5900347",
"0.5900053",
"0.5898596",
"0.58925563",
"0.5892345"
] | 0.0 | -1 |
indicam faptul ca exista return in program | @Override
public void visit(ReturnNode node) {
Evaluator.missingRet = false;
/**
* verificam check failed, nu si assert failed, deoarece eroarea de
* missing return are prioritate mai mare decat cea de assert failed
*/
if (Evaluator.checkScope(node) == false) {
return;
}
/**
* evaluam copilul nodului
*/
Evaluator.evaluate(node.getChild(0));
/**
* preluam rezultatul evaluarii
*/
if (node.getChild(0) instanceof Variable) {
node.setName(Evaluator.variables.get(node.getChild(0).getName()));
} else {
node.setName(node.getChild(0).getName());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasEresult();",
"public static void main(String[] args) throws Exception {\n\n\n\n\n boolean success = false;\n }",
"boolean estaAcabado();",
"public boolean getReturn();",
"static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }",
"protected boolean colaVacia() {\r\n return ini == -1;\r\n }",
"public boolean verMina(){\n\r\n return espM;\r\n }",
"void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }",
"private boolean Verific() {\n\r\n\treturn true;\r\n\t}",
"static void return_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"public boolean get_return(){\n return local_return;\n }",
"public void main(String[] args) {\n \n Scanner entrada = new Scanner(System.in); \n String nombre;\n \n System.out.println(\"¿Cual es tu Nombre? \");\n nombre = entrada.nextLine();\n mensaje(nombre);\n \n \n \n imprimir(28, 12);\n imprimir(67, 6);\n imprimir(84, 16);\n imprimir(57, 23);\n imprimir(92, 12);\n \n \n\n \n int resultado=sumar(1, 2);\n System.out.println(\n concatenar(\"El resultado es\", \"\" +resultado));\n \n int resultado2= sumar(sumar(1, 2), 7);\n\n boolean mayor= comprobar(resultado2);\n \nif(comprobar(resultado2))\n System.out.println(\"Es mayor\");\n else\n System.out.println(\"No es mayor\");\n}",
"public static void main (String []args){\n\t\t\n\t\tString hola =\"RV SIGUIENTE MENSAJE\";\n\t\tint num = hola.indexOf(\"RV\");\n\t\tif (hola.indexOf(\"RV\")!=-1){\n\t\t\tSystem.out.println(\"CONTIENE RV\");\n\n\t\t}else{\n\t\t\tSystem.out.println(\"NO CONTIENE RV\");\n\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public static int check() {\r\n\t\tint num = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\t\t\t// unos \r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, probajte ponovo\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t\treturn num;\r\n\t}",
"public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}",
"public boolean getOutput(){\n if (output){\n System.out.println(\"Archivo Cocol/R Aceptado\");\n return true;\n }\n else{\n System.out.println(\"Archivo Cocol/R no aceptado, tiene errores de estructura\");\n return false;\n }\n }",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"int exitValue();",
"public static void main(String[] args) {\n\t \n{\n\t\t\t// TODO Auto-generated method stub\t\t\n\t\t\tboolean zamena=false;\n\t\t\tString ispis = zamenaMesta(\"prvi\", \"drugi\", zamena);\n\t\t\tif (zamena) {\n\t\t\t\t//ako je doslo do zamene ispis ce biti:\n\t\t\tSystem.out.println(\"Zamenili smo stringove \" + ispis);}\n\t//ako nije doslo do zamene ispis ce biti:\n\t\t\telse {\n\tSystem.out.println(\"Nismo zamenili stringove \" + ispis);\n\n\t\t\t} \n}\n\t}",
"public void verificar_que_se_halla_creado() {\n\t\t\n\t}",
"boolean mo1489a();",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"boolean getVarReturn();",
"public static String IngresarRazaCorrecta (){\n boolean condicion;\r\n int razaPerro;\r\n String razaElegida=\"\";\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n razaElegida=TiposDeRaza(razaPerro - 1);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n return razaElegida;}",
"public int extraer ()\n {\n if (raiz!=null)\n {\n int informacion = raiz.edad;\n raiz = raiz.sig;\n return informacion;\n }\n else\n {\n System.out.println(\"La lista se encuentra vacia\");\n return 0;\n }\n }",
"public static void main(String[] args) {\n int a= 2;\n System.out.println(\"nilai = \"+a);\n //ini cabang\n if(a == 5){\n System.out.println(\"ini adalah jalur true\");\n }else{\n System.out.println(\"ini adalah jalur false\");\n }\n\n System.out.println(\"SELESAI\");\n }",
"public void ex02() {\n\n boolean hasFinished = false;\n\n\n if (hasFinished==true) {\n printResults();\n }\n\n\n }",
"public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }",
"public int consultaMesa(int mesa){\n \n int val;\n if(mesas[mesa-1] == 0){\n System.out.println(\"¡¡¡mesa disponible!!!\");\n \n System.out.println(\"¿desea asignar esta mesa a algun comensal?\\n1.-si\\n2.-no \"); //pregunta si quiere agregar comensal \n val = num.nextInt();\n \n if(val < 1 || val > 2){\n System.out.println(\"el valor es invalido\");\n }else if(val == 1){ //ingresa si es necesario\n //llamar funcion\n \n System.out.println(\"ingrese nombre de comensal: \");\n num.nextLine();\n comensal = num.nextLine();\n asignaMesa(comensal,mesa);\n }else if(val == 2){\n System.out.println(\"estas son las mesas disponibles: \");\n for(int i=0;i<mesas.length;i++){ \n System.out.print(\" \"+mesas[i]);\n }\n }\n }else if(mesas[mesa-1] == 1){\n System.out.println(\"mesa ocupada\");\n System.out.println(\"estas son las mesas disponibles: \");\n for(int i=0;i<10;i++){\n System.out.print(\" \"+mesas[i]);\n }\n }\n return 0;\n }",
"public static void main(String[] args) {\n Calculadora cal = new Calculadora();\n\n int actualResult = cal.sumar(5,5);\n int expectedResult = 10;\n\n if(actualResult == expectedResult){\n System.out.println(\"Funciona\");\n }else {\n System.out.println(\"No Funciona\");\n }\n }",
"boolean mo718a() throws RemoteException;",
"public boolean deposito(int idConta, double quantia) {\n try {\n Conta conta = new Conta(idConta); //deveria poder fazer isto\n boolean executado = conta.depositoConta(quantia);\n System.out.println(executado ? \"Deposito efetuado com sucesso.\" : \"Erro ao Efeuar o Deposito\" );\n return executado;\n } catch (Exception e) {\n System.out.println(\"Erro no serviço deposito: \" + e.getMessage());\n return false;\n } \n}",
"static void return_not_carry(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_return_requirements();\n\t}",
"public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }",
"public void noReturn() {\n\t\tSystem.out.println(\"noReturn method will not returing any thing\");\n\t}",
"public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }",
"public boolean kosong() {\r\n return ukuran == 0;\r\n }",
"public static int verif(String cadena) {\r\n Scanner l = new Scanner(System.in);\r\n int m1 = -1;\r\n do {\r\n try {\r\n System.out.println(cadena);\r\n m1 = l.nextInt();\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"Valor no valido, ingrese un valor nuimerico\");\r\n }\r\n l.nextLine();\r\n } while (m1 < 0);\r\n\r\n return m1;\r\n }",
"public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }",
"static void return_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_return_requirements();\n\t}",
"static void return_not_parity(String passed){\n\t\tif(!P)\n\t\t\tcomplete_return_requirements();\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tArrayList<Conta> lista = new ArrayList<Conta>();\n\t\t\n\t\tContaCorrente cc = new ContaCorrente(123,123333);\n\t\tlista.add(cc);\n\t\t\n\t\tContaCorrente cc2 = new ContaCorrente(222,222222);\n\t\tlista.add(cc2);\n\t\t\n\t\tContaCorrente cc3 = new ContaCorrente(222,222222);\n\t\tboolean exists = lista.contains(cc3);\n\t\t\n\t\tSystem.out.println(\"JŠ existe? \" + exists);\n\t\t\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tfor(Conta conta : lista) {\n\t\t\tSystem.out.println(conta);\n\t\t}\n\t}",
"private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}",
"public void noreturn(){\n System.out.println(\"universal\");\n }",
"public static void main(String[] args){\n try {\r\n // m.nada(0);\r\n } catch (Exception ex) {\r\n System.out.println(\"No hay error\");\r\n }\r\n }",
"public boolean ejecutar() {\n\n try {\n\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n //this.imprimir(this._agente.getActions());\n //this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n // Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"¡SOLUCIONADO!\");\n return true;\n } else {\n // Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n return false;\n }\n } catch (Exception ex) {\n System.out.println(ex);\n return false;\n }\n\n }",
"private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }",
"static void return_unconditionally(String passed){\n\t\tcomplete_return_requirements();\n\t}",
"public boolean erTom();",
"boolean hasOutput();",
"public boolean verRevelado(){\n\r\n return revelado;\r\n }",
"static void complete_return_requirements(){\n\t\tString ad = memory.get(SP+1)+memory.get(SP);\n\t\tSP+=2;\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified =true;\n\t}",
"public boolean Step(){\n\t\t\t\t\tboolean Result = true;\t\t\t\t\t\t// A vegso eredmeny: Stabil-e az aramkor\n\t\t\t\t\t_TEST stack = new _TEST();\t\t\t\t\t/* TEST */\n\t\t\t\t\tstack.PrintHeader(ID,\"\",\"true:boolean\");\t/* TEST */\n\t\t\t\t\tPreviousValue = Count();\t\t\t\t\t// Megnezzuk az elso futas erredmenyet\n\t\t\t\t\tinv0.Count();\t\t\t\t//feedback[0].Count(), elso ciklus\n\t\t\t\t\tPreviousValue = Count();\t//feedback 0 es 1 kozt magat frissiti\n\t\t\t\t\tinv0.Count();\t\t\t\t//feedback[0].Count(), masodik ciklus\n\t\t\t\t\tPreviousValue = Count();\t//frissiti magat. itt instabilitasi teszt jon a proto-ban\n\n\t\t\t\t\tstack.PrintTail(ID,\"\",Result + \":boolean\");\t/* TEST */\n\t\t\t\t\treturn Result;\n\t\t\t\t}",
"public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }",
"public boolean indietro();",
"Variable getReturn();",
"int return0() ;",
"static void return_not_sign(String passed){\n\t\tif(!S)\n\t\t\tcomplete_return_requirements();\n\t}",
"@Override\r\n public boolean ubahStatus(int masukan) {\r\n if (masukan == 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"boolean mo203k();",
"boolean getIsOk();",
"boolean potvrdiUnos(){\r\n\t\tboolean odluka = false;\r\n\t\tboolean test = true;\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t//trazenje od korisnika da odabere opciju\r\n\t\tdo{\r\n\t\t\tSystem.out.println(\"Izvrsiti?(DA/NE)\");\r\n\t\t\tString karakter = in.next();\r\n\t\t\tif(karakter.equals(\"DA\") || karakter.equals(\"da\")){\r\n\t\t\t\todluka = true;\r\n\t\t\t\ttest = false;\r\n\t\t\t}\r\n\t\t\tif(karakter.equals(\"NE\") || karakter.equals(\"ne\")){\r\n\t\t\t\ttest = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(test);\r\n\t\treturn odluka;\r\n\t}",
"private static String checkReturn(String code) {\n if (!code.contains(\"return\")) {\n long numberOfSemiColons = code.chars().filter(c -> c == ';').count();\n if (numberOfSemiColons <= 1 && !code.contains(\"throw\")) {\n return \"return \".concat(code);\n }\n }\n return code;\n }",
"public abstract Code vreturn();",
"public boolean exit()\n {\n if(select == 0)\n {\n return true;\n }\n else\n return false;\n }",
"public abstract int forca();",
"public static void main(String[] args) {\n\t\tScanner entrada=new Scanner(System.in);\r\n\t\t//Inicio del code\r\n\t\t\r\n\t\tBoolean ornah;\r\n\t\t\r\n\t\tString controller=JOptionPane.showInputDialog(\"Sos puto: \");\r\n\t\t\r\n\t\tif(controller.equals(\"yes\")) {\r\n\t\t\tornah=true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tornah=false;\r\n\t\t}\r\n\t\t\r\n\t\t//Boolean ornah=Boolean.parseBoolean(JOptionPane.showInputDialog(\"Ingresa True or False :\"));\r\n\t\t\t\t\r\n\t\tByte edad=Byte.parseByte(JOptionPane.showInputDialog(\"ingresar edad: \"));\r\n\t\t\t\t\r\n\t\tString name=JOptionPane.showInputDialog(\"Ingrese nombre: \");\r\n\t\t\r\n\t\tSystem.out.println(\"Su name is \"+name+\" La edad \"+edad+\" this is \"+ornah);\r\n\t\t\r\n\t\tif (edad>=20) {\r\n\t\t\tSystem.out.print(\"Tay viejo \"+name+\" ctmree, ya tenes: \"+edad);\r\n\t\t}\r\n\t\telse if(edad>25) {\r\n\t\t\tSystem.out.println(\"segunda opcion\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Todavia estai bien zii\");\r\n\t\t}\r\n\t}",
"public boolean Vacia (){\n return cima==-1;\n \n }",
"public static void VerificarPar(){\n\t\tint numero;\n\t\tint resultado;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tresultado=(numero%2);\n\t\tif(resultado==0){\n\t\t\tSystem.out.println(\"Numero Par: \"+(numero*2));\n\t\t}else{\n\t\t\tSystem.out.println(\"Numero Impar: \"+(numero*3));\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}",
"static void checkYESorNO(){\n /*\n System.out.print(\"X:\" + cntSymbols.get(\"X\"));\n System.out.print(\",O:\" + cntSymbols.get(\"O\"));\n System.out.print(\",.:\" + cntSymbols.get(\".\") + \"\\n\");\n */\n if(cntSymbols.get(\"O\") == null && cntSymbols.get(\".\") == 1 && cntSymbols.get(\"X\") ==3){\n result = \"YES\";\n return;\n } \n }",
"private static int menu() {\r\n\t\tSystem.out.println(\"Elige opcion de jugada:\");\r\n\t\tSystem.out.println(\"1-Piedra\");\r\n\t\tSystem.out.println(\"2-Papel\");\r\n\t\tSystem.out.println(\"3-Tijera\");\r\n\t\tSystem.out.println(\"0-Salir\");\r\n\t\tSystem.out.print(\"Opcion: \");\r\n\t\treturn Teclado.leerInt();\r\n\t}",
"boolean _non_existent();",
"public boolean disattiva_account()\n {\n boolean d=true;//variabile per disattivare l'account\n //già messa a true in quanto l'account viene attualmente usato\n int scelta;\n \n System.out.println(\"--Vuoi disattivare l'account?\\n[1] si [0] no\");\n scelta=input.nextInt();\n \n if(scelta==1)\n { \n d=false;\n System.out.println(\"--Attenzione account disattivato--\");\n }\n \n else if(scelta==0)\n { \n System.out.println(\"--Puoi usare ancora il tuo account--\");\n }\n \n else \n System.out.println(\"Impossibile eseguire l'operazione scelta\");\n \n return d;\n }",
"static void perform_ret(String passed){\n\t\tint type = type_of_ret(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\treturn_unconditionally(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n public boolean isReturn() {\n return true;\n }",
"static int leerOpcion()throws java.io.IOException{\n\t\t\n\t\tint opcion;\n\n\t\tout.print(\"Seleccione su opcion: \");\n\t\topcion = Integer.parseInt(in.readLine()); \n\t\tout.println();\n\n\t\treturn opcion;\n\t}",
"boolean hasCode();",
"boolean hasCode();",
"boolean hasCode();",
"public String execute(){\n\tString output = \"\";\n\tif (fcentails()){\n\t\t\t// the method returned true so it entails\n\t\t\toutput = \"YES: \";\n\t\t\t// for each entailed symbol\n\t\t\tfor (int i=0;i<entailed.size();i++){\n\t\t\t\t\toutput += entailed.get(i)+\", \";\n\t\t\t\t}\n\t\t\toutput += ask;\t\n\t}\n\telse{\n\t\t\toutput = \"NO\";\n\t}\n\treturn output;\t\t\n}",
"public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}",
"static boolean continuar(){\r\n\t\tchar respuesta = Teclado.leerCaracter(\"¿Desea continuar? (s/n): \");\r\n\t\tif (respuesta == 's' || respuesta == 'S')\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"@Override\n public int estado(){\n \n try {\n Process proceso;\n proceso = Runtime.getRuntime().exec(\"/etc/init.d/\"+nombreServicio+\" status\");\n InputStream is = proceso.getInputStream(); \n BufferedReader buffer = new BufferedReader (new InputStreamReader (is));\n \n //Se descartan las dos primeras lineas y se lee la tercera\n buffer.readLine();\n buffer.readLine();\n String resultado = buffer.readLine();\n \n if(resultado.contains(\"Active: active\")){\n return 1;\n }\n } \n catch (IOException ex) {\n Logger.getLogger(Servicio.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return 0;\n }",
"public int obtenirVie();",
"static void return_when_carry(String passed){\n\t\tif(CS)\n\t\t\tcomplete_return_requirements();\n\t}",
"private static void cajas() {\n\t\t\n\t}"
] | [
"0.63908964",
"0.6306329",
"0.6199458",
"0.61989695",
"0.61989653",
"0.6147966",
"0.61448795",
"0.61362565",
"0.6134486",
"0.61106914",
"0.60744447",
"0.6069789",
"0.6041683",
"0.60310435",
"0.6026888",
"0.6022685",
"0.59904516",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5977817",
"0.5970176",
"0.59654737",
"0.59535706",
"0.59449464",
"0.59234786",
"0.59234786",
"0.59234786",
"0.59234786",
"0.59234315",
"0.59201425",
"0.5896239",
"0.58853567",
"0.58522725",
"0.5837183",
"0.58328116",
"0.5819391",
"0.58013564",
"0.5798346",
"0.5795265",
"0.5794829",
"0.57890916",
"0.5783951",
"0.5765036",
"0.5748047",
"0.5746926",
"0.57319856",
"0.5731388",
"0.5730345",
"0.57156044",
"0.57151973",
"0.5714344",
"0.57113314",
"0.570764",
"0.56936055",
"0.5692724",
"0.5687745",
"0.567397",
"0.5670418",
"0.5669631",
"0.56629497",
"0.5659467",
"0.5658217",
"0.56484056",
"0.5639738",
"0.563729",
"0.5626478",
"0.56208706",
"0.56185466",
"0.56160337",
"0.5614672",
"0.5608667",
"0.56062984",
"0.5604041",
"0.5595903",
"0.5591463",
"0.5590981",
"0.5588305",
"0.55869615",
"0.5581323",
"0.5581265",
"0.5574135",
"0.55707693",
"0.5564207",
"0.5564207",
"0.5564207",
"0.5560964",
"0.555953",
"0.5554976",
"0.5549637",
"0.5546849",
"0.5545568",
"0.55362666"
] | 0.0 | -1 |
verificare de assert failed | @Override
public void visit(SemicolonNode semicolonNode) {
if (Evaluator.checkAssert(semicolonNode) == false) {
return;
}
/**
* evaluarea copiilor
*/
Evaluator.evaluate(semicolonNode.getChild(0));
Evaluator.evaluate(semicolonNode.getChild(1));
/**
* preluam rezultatul evaluarii celui de-al doilea copil
*/
if (semicolonNode.getChild(1) instanceof Variable) {
semicolonNode.setName(Evaluator.variables.get(semicolonNode.getChild(1).getName()));
} else {
semicolonNode.setName(semicolonNode.getChild(1).getName());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean assertExpected(Exception e);",
"boolean isFail();",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"boolean isFailure();",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test\n public void fehlerquelleAssert()\n {\n\n BigDecimal eins = BigDecimal.ONE;\n Integer intEins = Integer.valueOf( 1 );\n\n try\n {\n Assert.assertEquals( eins , intEins );\n Assert.fail( \"AssertionError erwartet.\" );\n } catch (AssertionError e)\n {\n MatcherAssert.assertThat( e.getMessage() , Matchers.is( \"expected: java.math.BigDecimal<1> but was: java.lang.Integer<1>\" ) );\n }\n }",
"public void testInvalidNoType() { assertInvalid(\"a\"); }",
"@Override\n boolean canFail() {\n return true;\n }",
"public TestCase fail();",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}",
"public FailedAssertion(String reason)\n {\n super(\"\\nAssertion that failed: \" + reason);\n }",
"@Then ( \"the Prescription was not added\" )\r\n public void failure () {\r\n // assertTrue( driver.getPageSource().contains( \"Error occurred creating\r\n // prescription\" ) );\r\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test\t\t\n\tpublic void TestToFail()\t\t\t\t\n\t{\t\t\n\t System.out.println(\"This method to test fail\");\t\t\t\t\t\n\t // Assert.assertTrue(false);\t\t\t\n\t}",
"private void assertFail(int value) {\n try {\n converter.convertRomanNumber(value);\n fail();\n } catch (Exception e) {\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }",
"public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"private void assertAll() {\n\t\t\n\t}",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private void assertReflexive(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertTrue(msgArg.equals(msgArg));\r\n\t}",
"@Test\n public void test5(){\n Assert.assertFalse(0>1, \"verify 0 not big then 1 \");\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test031() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.dependencyOrderedTables((TableHolder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test075() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDML((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public static void\tassertFail(java.lang.String message) \r\n\t\t{\r\n\t\t\tassertFail(message,null);\r\n\t\t}",
"protected abstract void assertFact(Object fact);",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"G00@gmit.ie\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"private void assertTrue(String name, boolean result) {\n if(! result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" +totalTests);\n totalErrors = totalErrors + 1;\n }/*else{\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" +totalTests);\n }*/\n totalTests = totalTests + 1;\n }",
"@Override\n boolean isFailed() {\n return false;\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader();\n Boolean boolean0 = Boolean.FALSE;\n SQLUtil.isQuery(\"selectntowrong c|ck\");\n Boolean.valueOf(true);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"selectntowrong c|ck\");\n // Undeclared exception!\n try { \n defaultDBTable0.getUniqueConstraint(\"^h=wZ>:9%}Pj6(#%M\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DefaultDBTable\", e);\n }\n }",
"@Test\n public void testValidationFailed() {\n fail();\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(expected=AssertionError.class)\n public void testAssertionsEnabled() {\n assert false;\n }",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Test\n public void cancelHotelTestError1() throws CancelHotelFault, DatatypeConfigurationException{ \n String input = \"hello you\";\n try {\n cancelHotel(input);\n } catch (CancelHotelFault e) {\n assertEquals(\"ERROR\",e.getMessage());\n } \n }",
"public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"private void testBadAssertions(String dsId) throws Exception {\n pid = PID.getInstance(\"demo:foo\");\n\n String p, o;\n\n // Model namespace\n p = Constants.MODEL.CONTROL_GROUP.uri;\n o = \"demo:baz\";\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora Model namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n // View namespace\n p = Constants.VIEW.DISSEMINATES.uri;\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora View namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n\n\n }",
"TestClassExecutionResult assertConfigMethodFailed(String name);",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"private static void assertTrue(boolean flag) {\n if (!flag) {\n throw new AssertionError(\"Case must be true\");\n }\n }",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.fundamentalData(Integer.MAX_VALUE, (String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test\n public void bookHotelTestError() throws BookHotelFault{\n try {\n assertTrue(bookHotel(null));\n } catch (BookHotelFault e) {\n assertEquals(\"Empty\", e.getMessage());\n } \n }",
"@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.containsMandatoryColumn((DBConstraint) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDDL((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void testFail() {\n fail();\n }",
"@Test\n void cadastraPesquisadorInvalido() {\n assertEquals(\"Campo fotoURL nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"\")));\n assertEquals(\"Campo nome nao pode ser nulo ou vazio.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(null, \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https://godspeed\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"sem o necessario\")));\n assertEquals(\"Formato de foto invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"hunterxhunter@1998\",\"https\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"testeteste\",\"https://godspeed\")));\n assertEquals(\"Formato de email invalido.\", verificaExcecao(() -> controllerPesquisador.cadastraPesquisador(\"killua zoldyck\", \"estudante\",\n \"Interessado em eletricidade, o terceiro de cinco filhos da famosa familia Zaoldyeck.\", \"teste@\",\"https://godspeed\")));\n }",
"@Override\n void assertErrorMessage(String messageText) {\n }",
"public void printFailure() {\n //\n }",
"@Test(timeout = 4000)\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }",
"@Test\n public void isCorrectTest(){\n BuyCard cardErr = new BuyCard(12,0);\n\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"Row index out of bounds.\");\n cardErr.isCorrect();\n }",
"@Test\n public void testGetOnFail_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getOnFail();\n\n assertEquals(\"\", result);\n }",
"public void fail( String reason );",
"@Test(timeout = 4000)\n public void test11() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}",
"@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}",
"protected Assert() {\n\t}",
"@Override\n\tpublic void onTestFailure(ITestResult arg0) {\n\n\t}",
"@Override\n\tpublic void fail(Throwable t) {\n\t}",
"@Test(timeout = 4000)\n public void test040() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Override\r\n\tpublic void onTestFailure(ITestResult arg0) {\n\t\t\r\n\t}",
"@Test\n\tpublic void testValidInvalidEstimtes() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(-1);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\n\t\t\t\t\t\t\t}",
"@Test(timeout = 4000)\n public void test033() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.currentLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test024() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.nextLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test038() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test013() throws Throwable {\n NameSpec nameSpec0 = NameSpec.NEVER;\n // Undeclared exception!\n try { \n SQLUtil.ukSpec((DBUniqueConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Order(2)\n\t@Test\n\tpublic void Attempt_LoginFail()\n\t{\n\t\tString user = \"fail\", pass = \"andVoid\";\n\t\tassertThrows(AuthException.class, () -> as.authenticateUser(user, pass));\n\t}",
"@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}",
"@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}",
"public void testFail1() throws Exception {\n helperFail(new String[] {\"j\", \"i\"}\r\n , new String[] {\"I\", \"I\"}\r\n , RefactoringStatus.ERROR);\r\n }",
"public static void\tassertFail(java.lang.String message, java.lang.Throwable e) \r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tfail(message,e);\r\n\t\t\t}\r\n\t\t\tcatch(AssertionError ae)\t{\t}\r\n\t\t}",
"@Test(timeout = 4000)\n public void test065() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.querySingleRow(\")\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test\n\tpublic void testValidInvalidEstimtesFib() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(10);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }",
"@Override\n public void testAssumptionFailure(Failure failure) {\n exception = new AssumptionViolatedException(failure.getException().getMessage());\n exception.setStackTrace(failure.getException().getStackTrace());\n ;\n }",
"@Test\n public void assertFalseWithMessage(){\n Assert.assertFalse(\"My message\", false);\n }",
"@Test(timeout = 4000)\n public void test070() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public TestCase pass();",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void showFailure(TestFailure failure);",
"private void handleAssertionFailures(List<AssertionFailure> result, CollectConstraintsVisitor collectConstraintsVisitor, String queryResult) throws UnknownResultException {\r\n if (queryResult.startsWith(\"sat\")) {\r\n\r\n List<Integer> indexesFailed = getPropertiesThatFailed(queryResult);\r\n\r\n // for all the properties that have failed, we get the index and report the failure\r\n for (Integer anIndexesFailed : indexesFailed) {\r\n Tree tree = collectConstraintsVisitor.propertyNodes.get(anIndexesFailed).getTokenInfo();\r\n // Uncomment the code below to see which assertions failed (used for debugging)\r\n // System.out.printf(\"Assertion failure on line:%s column:%s .\\n\", tree.getLine(), tree.getCharPositionInLine());\r\n result.add(new AssertionFailure(tree));\r\n }\r\n\r\n } else if (!queryResult.startsWith(\"unsat\")) {\r\n throw new UnknownResultException();\r\n }\r\n }",
"@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.getStatement((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"@Test\r\n void enoughFunds() {\n BankAccount account = new BankAccount(100);\r\n \r\n // Assertion for no exceptions\r\n assertDoesNotThrow(() -> account.withdraw(100));\r\n }",
"@Test(timeout = 4000)\n public void test104() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test013() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.queryString((PreparedStatement) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }",
"Assert createAssert();",
"@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }",
"private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }",
"@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }",
"@Test(timeout = 4000)\n public void test040() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDML((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }"
] | [
"0.71677196",
"0.6848539",
"0.68015873",
"0.677003",
"0.67659056",
"0.6744678",
"0.67416227",
"0.66985095",
"0.6658403",
"0.6656546",
"0.6562669",
"0.65624344",
"0.6539021",
"0.65370244",
"0.6481266",
"0.64808536",
"0.6464177",
"0.63912845",
"0.6391",
"0.6354156",
"0.63374025",
"0.63128686",
"0.62804055",
"0.6255311",
"0.62520677",
"0.6235034",
"0.62330943",
"0.622664",
"0.62085456",
"0.6205937",
"0.61993897",
"0.6193231",
"0.61875796",
"0.61844116",
"0.6184082",
"0.6184082",
"0.6184082",
"0.6178443",
"0.61711276",
"0.6169973",
"0.61646795",
"0.6163182",
"0.6156587",
"0.6150812",
"0.614872",
"0.6137194",
"0.6137179",
"0.61338884",
"0.61338884",
"0.61299723",
"0.6128386",
"0.6126582",
"0.6121137",
"0.61128765",
"0.6108601",
"0.61080235",
"0.6105657",
"0.6103933",
"0.610328",
"0.60921705",
"0.6090603",
"0.60857856",
"0.60827607",
"0.60803735",
"0.60769826",
"0.6070821",
"0.6070549",
"0.60655904",
"0.6064509",
"0.60644984",
"0.606298",
"0.6060698",
"0.60538536",
"0.60533285",
"0.60523516",
"0.60434633",
"0.60399276",
"0.60385454",
"0.603813",
"0.60301924",
"0.6027764",
"0.60256135",
"0.60229355",
"0.6019406",
"0.6004023",
"0.60010064",
"0.5997893",
"0.59926254",
"0.5988112",
"0.598688",
"0.59864277",
"0.5985935",
"0.5985655",
"0.59651923",
"0.59646297",
"0.5964432",
"0.5960116",
"0.59583807",
"0.5956961",
"0.5956556",
"0.59553665"
] | 0.0 | -1 |
Sum of all dimensions | public double getMetricSum(String metricFieldInternalName) {
final String cacheKey = "sum";
if (! getMetricCache(metricFieldInternalName).containsKey(cacheKey)) {
try {
Metric cr = getMetricObject(metricFieldInternalName);
cr.setQueryDateRange(null, null);
Double metricValue = cr.getMetricSum();
if (metricValue == null) {
getMetricCache(metricFieldInternalName).put(cacheKey, 0.0d);
} else {
getMetricCache(metricFieldInternalName).put(cacheKey, metricValue);
}
} catch (SQLException e) {
throw new DatabaseException(getMetricObject(metricFieldInternalName).getDatabase(), "Error in Metric.getMetric() : " + e.getLocalizedMessage());
}
}
return getMetricCache(metricFieldInternalName).get(cacheKey);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int sumAll() {\n\t\tint total = 0;\n\t\t//iterate all rows\n\t\tfor(int i = 0;i<size();i++){\n\t\t\t//itreate all columns\n\t\t\tfor(int j = 0;j<size();j++){\n\t\t\t\tInteger cell = matrix.get(i).get(j);\n\t\t\t\ttotal+=cell;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}",
"public double elementSum() {\n return ops.elementSum(mat);\n }",
"public int sum()\n {\n return sum(0,0,size);\n }",
"public static int sumHeight(Iterable<Dimension> dims) {\r\n int sum = 0;\r\n for (Dimension dim : dims) {\r\n sum += dim.height;\r\n }\r\n return sum;\r\n }",
"public double sumXs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < xVals.size(); ++¢)\n $ += unbox(cantBeNull(xVals.get(¢)));\n return $;\n }\n\n // calculate the sum of all the y values\n public double sumYs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < yVals.size(); ++¢)\n $ += unbox(cantBeNull(yVals.get(¢)));\n return $;\n }",
"private int getSumD1(int[][] a) {\n int sum = 0;\n for (int j = 0; j < a.length; j++) {\n sum += a[j][j];\n }\n return sum;\n }",
"public int getSum() {\n int result = 0;\n\n for (Map.Entry<Integer, Integer> entry : this.entrySet()) {\n result += entry.getKey() * entry.getValue();\n }\n\n return result;\n }",
"@Override\n\tpublic IDoubleVector sumColumns() {\n\t\treturn null;\n\t}",
"private int sum(int[] widths) {\n int sum = 0;\n\n for (int width : widths) {\n sum += width;\n }\n\n return sum;\n }",
"public int vectorSum()\n\t{\n\t\tint sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += vector.get(i);\n\t\t}\n\t\treturn sum;\n\t}",
"public double sum()\r\n {\r\n double sum = 0.0;\r\n for (Double c : this.values())\r\n sum += c;\r\n\r\n return sum;\r\n }",
"public static int sum(int[][] a) {\r\n\t\tint rowNum = a.length;\r\n\t\tint colNum = a[0].length;\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < rowNum; i++) {\r\n\t\t\tfor (int j = 0; j < colNum; j++) {\r\n\t\t\t\tsum += a[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"static int performSum(int[][] ar){\n\n int pDia = 0;\n int sDia = 0;\n int counter = ar.length;\n for (int i = 0; i < ar.length; i++) {\n\n pDia = pDia + ar[i][i];\n\n // keeping track of counter for second diagonal\n counter = counter-1;\n\n sDia = sDia + ar[i][counter];\n\n }\n System.out.println(sDia);\n return pDia;\n }",
"public static int sum1( int[][] a )\n {\n\t int sum = 0;\t\t\t\t\t\t\t\t\t//initiate variable to hold value of sum \n\n\t for (int i = 0; i < a.length; i++) {\t\t\t//iterate over each array\n\n\t\t for (int n = 0; n < a[i].length; n++) {\t//iterate over the contents of each array\n\t\t\t sum += a[i][n];\t\t\t\t\t\t//add each value to the sum variable\n\t\t }\n\n\t }\n\n\t return sum;\t\t\t\t\t\t\t\t\t//return said sum variable\n }",
"public static void SumRowsColumns(int[][] array) {\n\n }",
"public double sum() {\n final int size = size();\n double sum = 0.0;\n\n // Compute the average of all values\n for (int i = 0; i < size; i++) {\n final Number number = get(i);\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n sum += number.doubleValue();\n }\n\n return sum;\n }",
"public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"public static int sum1( int[][] a )\n {\n int sum = 0; //initialize sum\n for (int[] i : a) { //for each array a, turn into an array called i\n\t for (int j : i) { //and then for each value in i...\n\t sum += j; //add the value of it to the sum\n\t }\n }\n return sum; //return the sum, an int\n }",
"Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }",
"public static Matrix sum(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c,m);\n for (int col = 1; col <= cols_c; col++) {\n double sumCol = 0D;\n for (int row = 1; row <= rows_c; row++) {\n sumCol += m.get(row, col);\n }\n d.set(1, col, sumCol);\n }\n }\n return d;\n }",
"public int sum()\n\t{\n\t\tint sum = 0;\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tsum += array[index];\n\t\t}\n\t\treturn sum;\n\t}",
"private static void sum(int[][] first, int[][] second) {\r\n\t\tint row = first.length;\r\n\t\tint column = first[0].length;\r\n\t\tint[][] sum = new int[row][column];\r\n\r\n\t\tfor (int r = 0; r < row; r++) {\r\n\t\t\tfor (int c = 0; c < column; c++) {\r\n\t\t\t\tsum[r] = first[r] + second[r];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nSum of Matrices:\\n\");\r\n\t\tprint2dArray(sum);\r\n\t}",
"int numberOfDimensions();",
"public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }",
"public static int sumAll(int n1,int n2) {\n int sum=0;\n for(int i=0;i<12;sum+=weights[n1][n2][i],i++);\n return sum;\n }",
"public int sumDescendants() {\n if (left == null && right == null) {\n int oldVal = value;\n /* fill code*/\n value = 0;\n return oldVal;\n\n } else {\n int oldVal = value;\n\n /* fill code*/\n value = left.sumDescendants()+ right.sumDescendants();\n\n return oldVal + value;\n\n }\n }",
"double getSum();",
"double getSum();",
"public double sumXXs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < xVals.size(); ++¢)\n $ += unbox(cantBeNull(xVals.get(¢))) * unbox(cantBeNull(xVals.get(¢)));\n return $;\n }\n\n // calculate the sum of all the squares of the y values\n public double sumYYs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < yVals.size(); ++¢)\n $ += unbox(cantBeNull(yVals.get(¢))) * unbox(cantBeNull(yVals.get(¢)));\n return $;\n }",
"int dim() {\r\n\t\treturn dimt * dimx * dimy;\r\n\t}",
"static long subArraySum(int[] data) {\n\n long result = 0;\n\n // computing sum of sub array using formula\n int n = data.length;\n for (int i = 0; i < n; i++) {\n // x * (x at first index) + (x at other indices)\n result += (data[i] * (i * (n - i) + (n - i)));\n//\t\t\tresult += (data[i] * (i + 1) * (n - i));\n }\n\n // return all sub array sum\n return result;\n }",
"public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }",
"public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}",
"public static int size_sum_a() {\n return (32 / 8);\n }",
"private int getSumD2(int[][] a) {\n int sum = 0;\n\n int jd1 = 0;\n int jd2 = a.length - 1;\n while (jd1 < a.length) {\n sum += a[jd1][jd2];\n jd2--;\n jd1++;\n }\n return sum;\n }",
"@Override\n\tpublic int sum() {\n\t\treturn this.first + this.second + this.third;\n\t}",
"@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}",
"int getDimensionsCount();",
"@Override\n\tpublic IDoubleVector sumRows() {\n\t\treturn null;\n\t}",
"public static int size_sum_e() {\n return (32 / 8);\n }",
"@Override\r\n protected BigDecimal getSum() {\r\n boolean handleOutOfMemoryError = false;\r\n BigDecimal sum = BigDecimal.ZERO;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n double value;\r\n int row;\r\n int col;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n value = getCell(row, col);\r\n if (Double.isNaN(value) && Double.isFinite(value)) {\r\n if (value != noDataValue) {\r\n sum = sum.add(new BigDecimal(value));\r\n }\r\n }\r\n }\r\n }\r\n return sum;\r\n }",
"public double totalQuantity() {\r\n\t\tdouble t = 0;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) t += quantity[i][j][k];\r\n\t\treturn t;\r\n\t}",
"public int sumOfElements(){\n\t\tint sum = 0;\n\t\tNode temp = this.head;\n\t\twhile(temp != null){\n\t\t\tsum += temp.data;\n\t\t\ttemp = temp.next;\n\t\t}\n\t\treturn sum;\n\t}",
"protected double sum(IntegralImage II, int u, int v, double scale) {\n\t\tdouble sum = 0;\n\t\tfor (FeatureTree tree : trees) {\n\t\t\tsum = sum + tree.eval(II, u, v, scale);\n\t\t}\n\t\treturn sum;\n\t}",
"public T sum();",
"public double sum() {\n double sum = x;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n sum += iter.next.x;\n iter = iter.next;\n }\n return sum;\n }",
"public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }",
"static int sum(int... args) {\n\t\tint sum = 0;\n\t\tfor (int arg : args)\n\t\t\tsum += arg;\n\t\treturn sum;\n\t}",
"public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }",
"public static int sum2( int [][] m )\n {\n int sum = 0; //initialize sum\n int v = 0; //initialize a row counter\n for (int[] i : m) { //for each array in m, make an array called i\n\t sum += sumRow( v, m); //add the sumRow of the row counter and\n\t //original array to the stated sum\n\t v++; //add 1 to the counter\n }\n return sum; //return sum, an int\n }",
"private static int getBoardSum(Game2048Board board) {\n int boardSum = 0;\n for (Game2048Tile tile : board.getItems()) {\n boardSum += Math.pow(tile.getValue().VAL, SCORE_SUM_POWER);\n }\n return boardSum;\n }",
"public static double getTotal(int[][] numbers) {\n int totalValue = 0;\n for (int i = 0; i < numbers.length; i++) {\n for (int j = 0; j < numbers[i].length; j++) {\n totalValue = totalValue + numbers[i][j];\n }\n }\n return totalValue;\n }",
"public static int sum2( int [][] m )\n {\n\t int sum = 0;\t\t\t\t\t\t\t//initialize variable to hold/track sum so far\n\t\n\t for (int i = 0; i < m.length; i++) { \t//loop through the arrays\n\n\t\t sum += sumRow1(i, m);\t\t\t\t//procure the sum of each row, and add it to the sum variable\n\n\t }\n\n\t return sum;\t\t\t\t\t\t\t//return the sum\n }",
"public int getSum() {\n\t\t\treturn 0;\r\n\t\t}",
"public static int simpleArraySum() { //(List<Integer> ar)\n \n Integer []ar = {1,2,3}; \n\n Integer sum =0;\n for(Integer i : ar){\n sum +=i;\n }\n return sum; \n }",
"public AbstractTree<T> calculateSizeAndSum() {\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n T sum = (T)(Number)0;\n int size = 0;\n\n while (pendingNodes.size() != 0) {\n Node<T> currNode = pendingNodes.poll();\n\n size++;\n sum = operations.add(sum, currNode.getValue());\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n this.size = size;\n this.sum = sum;\n\n return this;\n }",
"int dim(){\n\t\treturn dimx*dimy;\n\t}",
"public IndexedTensor sum(String index) {\n int indexIndex = indices.indexOf(index);\n if (indexIndex == -1) return this;\n IndexedTensor[] tensorList = new IndexedTensor[size[indexIndex]];\n for (int s = 0; s < size[indexIndex]; s++) {\n Map<String, Integer> tempMap = new HashMap<>();\n tempMap.put(index, s);\n tensorList[s] = get(tempMap);\n }\n return add(tensorList);\n }",
"public static int diagSum(int[][] a) {\r\n\t\tint rowNum = a.length;\r\n\t\tint colNum = a[0].length;\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < rowNum; i++) {\r\n\t\t\tfor (int j = 0; j < colNum; j++) {\r\n\t\t\t\tif (i == j) {\r\n\t\t\t\t\tsum += a[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"public double getSumXX() { \n\t\treturn sumX1X1; \n\t}",
"private static long[] sums(Mat m,boolean byRow) {\r\n\t\tint rows = m.rows();\r\n\t\tint cols = m.cols();\r\n\t\tbyte[] data = new byte[rows*cols];\r\n\t\tlong[] retSums = null;\r\n\t\t\r\n\t\tint status = m.get(0, 0,data);\r\n\t\t\r\n\t\tlong total = 0;\r\n\t\tfor (int k=0;k<data.length;k++) {\r\n\t\t\ttotal += Byte.toUnsignedInt(data[k]);\r\n\t\t}\r\n\t\tif (byRow) {\r\n\t\t\tretSums = new long[cols];\r\n\t\t\tfor (int col=0;col<cols;col++) {\r\n\t\t\t\tretSums[col] = 0;\r\n\t\t\t\tfor (int row=0;row<rows;row++) {\r\n\t\t\t\t\tint k = row*cols+col;\r\n\t\t\t\t\tretSums[col] += Byte.toUnsignedInt(data[k]);\r\n\t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\telse {\r\n \t\t\tretSums = new long[rows];\r\n \t\t\tfor (int row=0;row<rows;row++) {\r\n \t\t\t\tretSums[row] = 0;\r\n \t\t\t\tfor (int col=0;col<cols;col++) {\r\n \t\t\t\t\tint k = row*cols+col;\r\n \t\t\t\t\tretSums[row] += Byte.toUnsignedInt(data[k]);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n\t\t\r\n\t\tint total1 = 0;\r\n\t\tfor (int k=0; k < retSums.length; k++) {\r\n\t\t\ttotal1 += retSums[k];\r\n\t\t}\r\n\t\r\n\t\treturn retSums;\r\n\t}",
"public long dimCount()\n\t{\n\t\treturn (long)multimemory.dims.length;\n\t}",
"public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }",
"public int dimensions() {\n\t\treturn dim;\n\t}",
"public double getSUM() {\n return sum;\n }",
"public static int sumRow( int r, int[][] a )\n {\n int sum = 0; //initialize sum\n for (int i = 0; i < a[r].length; i++) { //for the width of an array...\n\t sum += a[r][i]; //add the point to the sum\n }\n return sum; //return sum, an int\n }",
"public void addArrayDimension() {\r\n\t\ttheArrayDimension++;\r\n\t}",
"public Integer getSum() {\n return sum;\n }",
"static double calculateArraySum(double... value) {\n double sum = 0;\n for (double i : value) {\n sum += i;\n }\n return sum;\n }",
"public int[][] sumOfMatrices(int row, int col, int array1[][], int array2[][]) {\n int[][] sum = new int[row][col];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n sum[i][j] = array1[i][j] + array2[i][j];\n }\n }\n return sum;\n }",
"@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}",
"public MapSum() {\n root = new Node();\n size = 0;\n }",
"public double edgeSum(List<Edge> e) {\n double sum = 0;\n\n sum = e.stream()\n .map((curr)\n -> curr.length()).reduce(sum, (accumulator, _item) -> accumulator + _item);\n\n return sum;\n }",
"Dimension getDimensions();",
"public void diagonalSum()\r\n {\r\n // Queue which stores tree nodes\r\n Queue<Node> queue = new LinkedList<Node>();\r\n \r\n // Map to store sum of node's data lying diagonally\r\n Map<Integer, Integer> map = new TreeMap<>();\r\n \r\n root.vd = 0;\r\n queue.add(root);\r\n \r\n while (!queue.isEmpty())\r\n {\r\n \tNode current = queue.remove();\r\n int vd = current.vd;\r\n \r\n while (current != null)\r\n {\r\n map.put(vd, map.getOrDefault(vd, 0)+current.data);\r\n \r\n if (current.leftChild != null)\r\n {\r\n current.leftChild.vd = vd+1;\r\n queue.add(current.leftChild);\r\n }\r\n \r\n current = current.rightChild;\r\n }\r\n }\r\n \r\n System.out.println(\"Diagonal sum : \");\r\n for(int val: map.values())\r\n {\r\n \tSystem.out.println(val);\r\n }\r\n }",
"public int sum() {\n\t\treturn (x + y);\n\t}",
"RandomVariable sumProduct(RandomVariableArray array);",
"public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }",
"public int getSumOfImagesWidth() {\n int sum = 0;\n for (RichContentImage image : this.images) {\n sum += image.getWidth();\n }\n return sum;\n }",
"private int[] columnSum(int[][] matrix) {\n int[] result = new int[matrix.length];\n for(int i = 0; i < matrix.length; i++) {\n result[i] = 0;\n for(int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j];\n }\n }\n return result;\n }",
"public static Long sum(MultiDimensionArray mArray, int[] lengthOfDeminsion) { \n // Time complexity: O(n)\n // Space complexity: O(1)\n\t \n \tif(lengthOfDeminsion == null || lengthOfDeminsion.length == 0){\n \t\treturn (long) 0;\n \t}\n \t\n \tlong sum = 0;\n \t//Initialize an array to store the indexOfDimension\n \tint[] iod = new int[lengthOfDeminsion.length];\n \t\n \t/*It's easy to imagine that we should use a loop that has variable number of levels (not sure if it's allowed in java) \n \tBut we can calculate the multiplication of the domain from each level \n \tThen map the index back using only one variable.*/\n \tint mul = 1;\n \tfor(int i = 0; i < lengthOfDeminsion.length; i++){\n \t\tmul = mul * lengthOfDeminsion[i];\n \t}\n \tfor(int i = 0; i < mul; i++){\n \t\tint temp = mul;\n \t\tfor(int j = 0; j < lengthOfDeminsion.length; j++){\n \t\t\tiod[j] = i * lengthOfDeminsion[j] / temp % lengthOfDeminsion[j];\n \t\t\ttemp = temp / lengthOfDeminsion[j];\n \t\t}\n \t\tsum = sum + getValue(iod);\n \t}\n \treturn sum; \t\n }",
"public static void main(String[] args) {\n int[][] array=new int[3][5];\n int[][] array1=new int[3][];\n int[][] array3=new int[][]{};\n int[] a[]={};\n\n int[][] array4=new int[][] {\n {1,2,3},\n {4,5,6,7,9,10},\n {9,10,11,15}\n };\n System.out.println(array4.length);\n System.out.println(array4[0].length);\n System.out.println(array4[1].length);\n System.out.println(array4[0][1]);\n System.out.println(array4[2][3]);\n\n int sum=0;\n for (int i=0; i<array4.length; i++) {\n for (int j=0; j<array4[i].length; j++) {\n sum=sum+array4[i][j];\n System.out.print(array4[i][j]+\" \");\n }\n }\n System.out.println();\n System.out.println(\"Sum of all numbers is: \" +sum);\n\n }",
"private Double CPLXCalculateWeightedSUM(int numTerms) {\n Double result = 0.0;\r\n\r\n for (int counter = 0; counter < numTerms; counter++) \r\n {\r\n result += CPLXCalculateWeightedSUMTerm(counter);\r\n }\r\n\r\n return result;\r\n }",
"int dimensionality();",
"public java.util.List<Dimension> getDimensionsAll();",
"public int minPathSum(int[][] grid) {\n\t\treturn 0;\r\n }",
"public long getSum()\n {\n long sum = 0;\n\n for(int i = 0; i < integerList.length; i++)\n {\n sum = sum + integerList[i];\n }\n\n return sum;\n }",
"public void calculateArray() {\n\n for (int i = 0; i < array.length; i++) {\n sum += array[i];\n }\n }",
"public int sum(int[] array) {\n if (array == null || array.length == 0){\n return 0;\n }\n int sum = 0;\n for (int i = 0; i < array.length; i++){\n sum += array[i];\n }\n return sum;\n }",
"io.dstore.values.BooleanValue getComputeSum();",
"IVec3 sum(IVec3 v);",
"static double geometricSum(int k) {\n\t\tif (k==0) \n\t\t\treturn 1; // Endpoint\n\t\telse \n\t\t\treturn 1/Math.pow(2,k) + geometricSum(k-1); \n\t}",
"public static int sizeBits_sum_a() {\n return 32;\n }",
"public static int sum(int[] arr, int arrlen){ // sum of array\r\n int sum = 0;\r\n for (int i = 0; i < arrlen; i++) {\r\n sum += arr[i];\r\n }\r\n return sum;\r\n }",
"public int cumulativeSum() {\n int sum = 0;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n sum = sum + p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n sum = sum;\n }\n return sum;\n }",
"@Test\n\tpublic void testSum() {\n\t\tassertEquals(155, g1.sum(), .0001);\n\t\tassertEquals(226, g2.sum(), .0001);\n\t\tassertEquals(298, g3.sum(), .0001);\n\t}",
"private int[][] matrixSum(int[][] a, int[][]b) {\n\t\tint row = a.length;\n\t\tint col = a[0].length;\n\t\t// creat a matrix array to store sum of a and b\n\t\tint[][] sum = new int[row][col];\n\t\t\n\t\t// Add elements at the same position in a matrix array\n\t\tfor (int r = 0; r < row; r++) {\n\t\t\tfor (int c = 0; c < col; c++) {\n\t\t\t\tsum[r][c] = a[r][c] + b[r][c]; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sum;\n\t}",
"public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }",
"public double getSumXY() { \n\t\treturn sumX1Y; \n\t}",
"public final int dimension() { return _N; }",
"@Override\n\tprotected void computeSum(double[] c, int nRows) {\n\t\tsuper.computeSum(c, nRows);\n\t\t// and add all sum of reference multiplied with nrows.\n\t\tfinal double refSum = FORUtil.refSum(_reference);\n\t\tc[0] += refSum * nRows;\n\t}"
] | [
"0.71923244",
"0.6603887",
"0.6540166",
"0.6493875",
"0.6328897",
"0.61679935",
"0.6097298",
"0.6085049",
"0.60718006",
"0.60655886",
"0.6037378",
"0.59422475",
"0.5929087",
"0.5919737",
"0.5915384",
"0.58795625",
"0.58793354",
"0.5866457",
"0.5850361",
"0.5774152",
"0.5759287",
"0.5743834",
"0.57366323",
"0.5735405",
"0.5730137",
"0.56994",
"0.56706333",
"0.56706333",
"0.56455255",
"0.5639848",
"0.5630363",
"0.56265527",
"0.5624925",
"0.5620642",
"0.5590666",
"0.5583225",
"0.55745715",
"0.55577034",
"0.55524725",
"0.5537268",
"0.55370575",
"0.55330324",
"0.5519688",
"0.54811805",
"0.54442257",
"0.5437632",
"0.5419835",
"0.5417885",
"0.5412777",
"0.53939533",
"0.5389338",
"0.5386647",
"0.5378864",
"0.53775084",
"0.53657097",
"0.53573096",
"0.53412825",
"0.53276694",
"0.53114146",
"0.5288817",
"0.5282601",
"0.5281426",
"0.5275986",
"0.52734315",
"0.52673477",
"0.5261536",
"0.52611214",
"0.5245403",
"0.5235768",
"0.5223191",
"0.52160877",
"0.5206728",
"0.5201674",
"0.5196581",
"0.51945156",
"0.51943386",
"0.5186683",
"0.51579183",
"0.5157394",
"0.51547813",
"0.5149062",
"0.51477563",
"0.5145213",
"0.5141646",
"0.5132158",
"0.5124608",
"0.51219296",
"0.5116974",
"0.51139015",
"0.5103803",
"0.5093226",
"0.50908935",
"0.5089057",
"0.5083506",
"0.50824594",
"0.50794137",
"0.50761473",
"0.50719255",
"0.50656253",
"0.5062073",
"0.50613564"
] | 0.0 | -1 |
Sum of all dimensions | public double getMetricSumOverDateRange(String metricFieldInternalName, Long startTimestamp, Long endTimestamp) {
final String cacheKey = "sum:"+String.valueOf(startTimestamp) + ":" + String.valueOf(endTimestamp);
if (! getMetricCache(metricFieldInternalName).containsKey(cacheKey)) {
try {
Metric cr = getMetricObject(metricFieldInternalName);
if (cr.getEventDateProcessor().equals(MetricInterval.None.class)) {
throw new RuntimeException("Date range does not apply - no MetricInterval");
}
cr.setQueryDateRange(startTimestamp, endTimestamp);
Double metricValue = cr.getMetricSum();
if (metricValue == null) {
getMetricCache(metricFieldInternalName).put(cacheKey, 0.0d);
} else {
getMetricCache(metricFieldInternalName).put(cacheKey, metricValue);
}
} catch (SQLException e) {
throw new DatabaseException(getMetricObject(metricFieldInternalName).getDatabase(), "Error in Metric.getMetric() : " + e.getLocalizedMessage());
}
}
return getMetricCache(metricFieldInternalName).get(cacheKey);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int sumAll() {\n\t\tint total = 0;\n\t\t//iterate all rows\n\t\tfor(int i = 0;i<size();i++){\n\t\t\t//itreate all columns\n\t\t\tfor(int j = 0;j<size();j++){\n\t\t\t\tInteger cell = matrix.get(i).get(j);\n\t\t\t\ttotal+=cell;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}",
"public double elementSum() {\n return ops.elementSum(mat);\n }",
"public int sum()\n {\n return sum(0,0,size);\n }",
"public static int sumHeight(Iterable<Dimension> dims) {\r\n int sum = 0;\r\n for (Dimension dim : dims) {\r\n sum += dim.height;\r\n }\r\n return sum;\r\n }",
"public double sumXs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < xVals.size(); ++¢)\n $ += unbox(cantBeNull(xVals.get(¢)));\n return $;\n }\n\n // calculate the sum of all the y values\n public double sumYs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < yVals.size(); ++¢)\n $ += unbox(cantBeNull(yVals.get(¢)));\n return $;\n }",
"private int getSumD1(int[][] a) {\n int sum = 0;\n for (int j = 0; j < a.length; j++) {\n sum += a[j][j];\n }\n return sum;\n }",
"public int getSum() {\n int result = 0;\n\n for (Map.Entry<Integer, Integer> entry : this.entrySet()) {\n result += entry.getKey() * entry.getValue();\n }\n\n return result;\n }",
"@Override\n\tpublic IDoubleVector sumColumns() {\n\t\treturn null;\n\t}",
"private int sum(int[] widths) {\n int sum = 0;\n\n for (int width : widths) {\n sum += width;\n }\n\n return sum;\n }",
"public int vectorSum()\n\t{\n\t\tint sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += vector.get(i);\n\t\t}\n\t\treturn sum;\n\t}",
"public double sum()\r\n {\r\n double sum = 0.0;\r\n for (Double c : this.values())\r\n sum += c;\r\n\r\n return sum;\r\n }",
"public static int sum(int[][] a) {\r\n\t\tint rowNum = a.length;\r\n\t\tint colNum = a[0].length;\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < rowNum; i++) {\r\n\t\t\tfor (int j = 0; j < colNum; j++) {\r\n\t\t\t\tsum += a[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"static int performSum(int[][] ar){\n\n int pDia = 0;\n int sDia = 0;\n int counter = ar.length;\n for (int i = 0; i < ar.length; i++) {\n\n pDia = pDia + ar[i][i];\n\n // keeping track of counter for second diagonal\n counter = counter-1;\n\n sDia = sDia + ar[i][counter];\n\n }\n System.out.println(sDia);\n return pDia;\n }",
"public static int sum1( int[][] a )\n {\n\t int sum = 0;\t\t\t\t\t\t\t\t\t//initiate variable to hold value of sum \n\n\t for (int i = 0; i < a.length; i++) {\t\t\t//iterate over each array\n\n\t\t for (int n = 0; n < a[i].length; n++) {\t//iterate over the contents of each array\n\t\t\t sum += a[i][n];\t\t\t\t\t\t//add each value to the sum variable\n\t\t }\n\n\t }\n\n\t return sum;\t\t\t\t\t\t\t\t\t//return said sum variable\n }",
"public static void SumRowsColumns(int[][] array) {\n\n }",
"public double sum() {\n final int size = size();\n double sum = 0.0;\n\n // Compute the average of all values\n for (int i = 0; i < size; i++) {\n final Number number = get(i);\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n sum += number.doubleValue();\n }\n\n return sum;\n }",
"public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"public static int sum1( int[][] a )\n {\n int sum = 0; //initialize sum\n for (int[] i : a) { //for each array a, turn into an array called i\n\t for (int j : i) { //and then for each value in i...\n\t sum += j; //add the value of it to the sum\n\t }\n }\n return sum; //return the sum, an int\n }",
"Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }",
"public static Matrix sum(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c,m);\n for (int col = 1; col <= cols_c; col++) {\n double sumCol = 0D;\n for (int row = 1; row <= rows_c; row++) {\n sumCol += m.get(row, col);\n }\n d.set(1, col, sumCol);\n }\n }\n return d;\n }",
"public int sum()\n\t{\n\t\tint sum = 0;\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tsum += array[index];\n\t\t}\n\t\treturn sum;\n\t}",
"private static void sum(int[][] first, int[][] second) {\r\n\t\tint row = first.length;\r\n\t\tint column = first[0].length;\r\n\t\tint[][] sum = new int[row][column];\r\n\r\n\t\tfor (int r = 0; r < row; r++) {\r\n\t\t\tfor (int c = 0; c < column; c++) {\r\n\t\t\t\tsum[r] = first[r] + second[r];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nSum of Matrices:\\n\");\r\n\t\tprint2dArray(sum);\r\n\t}",
"int numberOfDimensions();",
"public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }",
"public static int sumAll(int n1,int n2) {\n int sum=0;\n for(int i=0;i<12;sum+=weights[n1][n2][i],i++);\n return sum;\n }",
"public int sumDescendants() {\n if (left == null && right == null) {\n int oldVal = value;\n /* fill code*/\n value = 0;\n return oldVal;\n\n } else {\n int oldVal = value;\n\n /* fill code*/\n value = left.sumDescendants()+ right.sumDescendants();\n\n return oldVal + value;\n\n }\n }",
"double getSum();",
"double getSum();",
"public double sumXXs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < xVals.size(); ++¢)\n $ += unbox(cantBeNull(xVals.get(¢))) * unbox(cantBeNull(xVals.get(¢)));\n return $;\n }\n\n // calculate the sum of all the squares of the y values\n public double sumYYs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < yVals.size(); ++¢)\n $ += unbox(cantBeNull(yVals.get(¢))) * unbox(cantBeNull(yVals.get(¢)));\n return $;\n }",
"int dim() {\r\n\t\treturn dimt * dimx * dimy;\r\n\t}",
"static long subArraySum(int[] data) {\n\n long result = 0;\n\n // computing sum of sub array using formula\n int n = data.length;\n for (int i = 0; i < n; i++) {\n // x * (x at first index) + (x at other indices)\n result += (data[i] * (i * (n - i) + (n - i)));\n//\t\t\tresult += (data[i] * (i + 1) * (n - i));\n }\n\n // return all sub array sum\n return result;\n }",
"public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }",
"public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}",
"public static int size_sum_a() {\n return (32 / 8);\n }",
"private int getSumD2(int[][] a) {\n int sum = 0;\n\n int jd1 = 0;\n int jd2 = a.length - 1;\n while (jd1 < a.length) {\n sum += a[jd1][jd2];\n jd2--;\n jd1++;\n }\n return sum;\n }",
"@Override\n\tpublic int sum() {\n\t\treturn this.first + this.second + this.third;\n\t}",
"@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}",
"int getDimensionsCount();",
"@Override\n\tpublic IDoubleVector sumRows() {\n\t\treturn null;\n\t}",
"public static int size_sum_e() {\n return (32 / 8);\n }",
"@Override\r\n protected BigDecimal getSum() {\r\n boolean handleOutOfMemoryError = false;\r\n BigDecimal sum = BigDecimal.ZERO;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n double value;\r\n int row;\r\n int col;\r\n for (row = 0; row < nrows; row++) {\r\n for (col = 0; col < ncols; col++) {\r\n value = getCell(row, col);\r\n if (Double.isNaN(value) && Double.isFinite(value)) {\r\n if (value != noDataValue) {\r\n sum = sum.add(new BigDecimal(value));\r\n }\r\n }\r\n }\r\n }\r\n return sum;\r\n }",
"public double totalQuantity() {\r\n\t\tdouble t = 0;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) t += quantity[i][j][k];\r\n\t\treturn t;\r\n\t}",
"public int sumOfElements(){\n\t\tint sum = 0;\n\t\tNode temp = this.head;\n\t\twhile(temp != null){\n\t\t\tsum += temp.data;\n\t\t\ttemp = temp.next;\n\t\t}\n\t\treturn sum;\n\t}",
"protected double sum(IntegralImage II, int u, int v, double scale) {\n\t\tdouble sum = 0;\n\t\tfor (FeatureTree tree : trees) {\n\t\t\tsum = sum + tree.eval(II, u, v, scale);\n\t\t}\n\t\treturn sum;\n\t}",
"public T sum();",
"public double sum() {\n double sum = x;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n sum += iter.next.x;\n iter = iter.next;\n }\n return sum;\n }",
"public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }",
"static int sum(int... args) {\n\t\tint sum = 0;\n\t\tfor (int arg : args)\n\t\t\tsum += arg;\n\t\treturn sum;\n\t}",
"public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }",
"public static int sum2( int [][] m )\n {\n int sum = 0; //initialize sum\n int v = 0; //initialize a row counter\n for (int[] i : m) { //for each array in m, make an array called i\n\t sum += sumRow( v, m); //add the sumRow of the row counter and\n\t //original array to the stated sum\n\t v++; //add 1 to the counter\n }\n return sum; //return sum, an int\n }",
"private static int getBoardSum(Game2048Board board) {\n int boardSum = 0;\n for (Game2048Tile tile : board.getItems()) {\n boardSum += Math.pow(tile.getValue().VAL, SCORE_SUM_POWER);\n }\n return boardSum;\n }",
"public static double getTotal(int[][] numbers) {\n int totalValue = 0;\n for (int i = 0; i < numbers.length; i++) {\n for (int j = 0; j < numbers[i].length; j++) {\n totalValue = totalValue + numbers[i][j];\n }\n }\n return totalValue;\n }",
"public static int sum2( int [][] m )\n {\n\t int sum = 0;\t\t\t\t\t\t\t//initialize variable to hold/track sum so far\n\t\n\t for (int i = 0; i < m.length; i++) { \t//loop through the arrays\n\n\t\t sum += sumRow1(i, m);\t\t\t\t//procure the sum of each row, and add it to the sum variable\n\n\t }\n\n\t return sum;\t\t\t\t\t\t\t//return the sum\n }",
"public int getSum() {\n\t\t\treturn 0;\r\n\t\t}",
"public static int simpleArraySum() { //(List<Integer> ar)\n \n Integer []ar = {1,2,3}; \n\n Integer sum =0;\n for(Integer i : ar){\n sum +=i;\n }\n return sum; \n }",
"public AbstractTree<T> calculateSizeAndSum() {\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n T sum = (T)(Number)0;\n int size = 0;\n\n while (pendingNodes.size() != 0) {\n Node<T> currNode = pendingNodes.poll();\n\n size++;\n sum = operations.add(sum, currNode.getValue());\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n this.size = size;\n this.sum = sum;\n\n return this;\n }",
"int dim(){\n\t\treturn dimx*dimy;\n\t}",
"public IndexedTensor sum(String index) {\n int indexIndex = indices.indexOf(index);\n if (indexIndex == -1) return this;\n IndexedTensor[] tensorList = new IndexedTensor[size[indexIndex]];\n for (int s = 0; s < size[indexIndex]; s++) {\n Map<String, Integer> tempMap = new HashMap<>();\n tempMap.put(index, s);\n tensorList[s] = get(tempMap);\n }\n return add(tensorList);\n }",
"public static int diagSum(int[][] a) {\r\n\t\tint rowNum = a.length;\r\n\t\tint colNum = a[0].length;\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < rowNum; i++) {\r\n\t\t\tfor (int j = 0; j < colNum; j++) {\r\n\t\t\t\tif (i == j) {\r\n\t\t\t\t\tsum += a[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"public double getSumXX() { \n\t\treturn sumX1X1; \n\t}",
"private static long[] sums(Mat m,boolean byRow) {\r\n\t\tint rows = m.rows();\r\n\t\tint cols = m.cols();\r\n\t\tbyte[] data = new byte[rows*cols];\r\n\t\tlong[] retSums = null;\r\n\t\t\r\n\t\tint status = m.get(0, 0,data);\r\n\t\t\r\n\t\tlong total = 0;\r\n\t\tfor (int k=0;k<data.length;k++) {\r\n\t\t\ttotal += Byte.toUnsignedInt(data[k]);\r\n\t\t}\r\n\t\tif (byRow) {\r\n\t\t\tretSums = new long[cols];\r\n\t\t\tfor (int col=0;col<cols;col++) {\r\n\t\t\t\tretSums[col] = 0;\r\n\t\t\t\tfor (int row=0;row<rows;row++) {\r\n\t\t\t\t\tint k = row*cols+col;\r\n\t\t\t\t\tretSums[col] += Byte.toUnsignedInt(data[k]);\r\n\t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\telse {\r\n \t\t\tretSums = new long[rows];\r\n \t\t\tfor (int row=0;row<rows;row++) {\r\n \t\t\t\tretSums[row] = 0;\r\n \t\t\t\tfor (int col=0;col<cols;col++) {\r\n \t\t\t\t\tint k = row*cols+col;\r\n \t\t\t\t\tretSums[row] += Byte.toUnsignedInt(data[k]);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n\t\t\r\n\t\tint total1 = 0;\r\n\t\tfor (int k=0; k < retSums.length; k++) {\r\n\t\t\ttotal1 += retSums[k];\r\n\t\t}\r\n\t\r\n\t\treturn retSums;\r\n\t}",
"public long dimCount()\n\t{\n\t\treturn (long)multimemory.dims.length;\n\t}",
"public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }",
"public int dimensions() {\n\t\treturn dim;\n\t}",
"public double getSUM() {\n return sum;\n }",
"public static int sumRow( int r, int[][] a )\n {\n int sum = 0; //initialize sum\n for (int i = 0; i < a[r].length; i++) { //for the width of an array...\n\t sum += a[r][i]; //add the point to the sum\n }\n return sum; //return sum, an int\n }",
"public void addArrayDimension() {\r\n\t\ttheArrayDimension++;\r\n\t}",
"public Integer getSum() {\n return sum;\n }",
"static double calculateArraySum(double... value) {\n double sum = 0;\n for (double i : value) {\n sum += i;\n }\n return sum;\n }",
"public int[][] sumOfMatrices(int row, int col, int array1[][], int array2[][]) {\n int[][] sum = new int[row][col];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n sum[i][j] = array1[i][j] + array2[i][j];\n }\n }\n return sum;\n }",
"@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}",
"public MapSum() {\n root = new Node();\n size = 0;\n }",
"public double edgeSum(List<Edge> e) {\n double sum = 0;\n\n sum = e.stream()\n .map((curr)\n -> curr.length()).reduce(sum, (accumulator, _item) -> accumulator + _item);\n\n return sum;\n }",
"Dimension getDimensions();",
"public void diagonalSum()\r\n {\r\n // Queue which stores tree nodes\r\n Queue<Node> queue = new LinkedList<Node>();\r\n \r\n // Map to store sum of node's data lying diagonally\r\n Map<Integer, Integer> map = new TreeMap<>();\r\n \r\n root.vd = 0;\r\n queue.add(root);\r\n \r\n while (!queue.isEmpty())\r\n {\r\n \tNode current = queue.remove();\r\n int vd = current.vd;\r\n \r\n while (current != null)\r\n {\r\n map.put(vd, map.getOrDefault(vd, 0)+current.data);\r\n \r\n if (current.leftChild != null)\r\n {\r\n current.leftChild.vd = vd+1;\r\n queue.add(current.leftChild);\r\n }\r\n \r\n current = current.rightChild;\r\n }\r\n }\r\n \r\n System.out.println(\"Diagonal sum : \");\r\n for(int val: map.values())\r\n {\r\n \tSystem.out.println(val);\r\n }\r\n }",
"public int sum() {\n\t\treturn (x + y);\n\t}",
"RandomVariable sumProduct(RandomVariableArray array);",
"public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }",
"public int getSumOfImagesWidth() {\n int sum = 0;\n for (RichContentImage image : this.images) {\n sum += image.getWidth();\n }\n return sum;\n }",
"private int[] columnSum(int[][] matrix) {\n int[] result = new int[matrix.length];\n for(int i = 0; i < matrix.length; i++) {\n result[i] = 0;\n for(int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j];\n }\n }\n return result;\n }",
"public static Long sum(MultiDimensionArray mArray, int[] lengthOfDeminsion) { \n // Time complexity: O(n)\n // Space complexity: O(1)\n\t \n \tif(lengthOfDeminsion == null || lengthOfDeminsion.length == 0){\n \t\treturn (long) 0;\n \t}\n \t\n \tlong sum = 0;\n \t//Initialize an array to store the indexOfDimension\n \tint[] iod = new int[lengthOfDeminsion.length];\n \t\n \t/*It's easy to imagine that we should use a loop that has variable number of levels (not sure if it's allowed in java) \n \tBut we can calculate the multiplication of the domain from each level \n \tThen map the index back using only one variable.*/\n \tint mul = 1;\n \tfor(int i = 0; i < lengthOfDeminsion.length; i++){\n \t\tmul = mul * lengthOfDeminsion[i];\n \t}\n \tfor(int i = 0; i < mul; i++){\n \t\tint temp = mul;\n \t\tfor(int j = 0; j < lengthOfDeminsion.length; j++){\n \t\t\tiod[j] = i * lengthOfDeminsion[j] / temp % lengthOfDeminsion[j];\n \t\t\ttemp = temp / lengthOfDeminsion[j];\n \t\t}\n \t\tsum = sum + getValue(iod);\n \t}\n \treturn sum; \t\n }",
"public static void main(String[] args) {\n int[][] array=new int[3][5];\n int[][] array1=new int[3][];\n int[][] array3=new int[][]{};\n int[] a[]={};\n\n int[][] array4=new int[][] {\n {1,2,3},\n {4,5,6,7,9,10},\n {9,10,11,15}\n };\n System.out.println(array4.length);\n System.out.println(array4[0].length);\n System.out.println(array4[1].length);\n System.out.println(array4[0][1]);\n System.out.println(array4[2][3]);\n\n int sum=0;\n for (int i=0; i<array4.length; i++) {\n for (int j=0; j<array4[i].length; j++) {\n sum=sum+array4[i][j];\n System.out.print(array4[i][j]+\" \");\n }\n }\n System.out.println();\n System.out.println(\"Sum of all numbers is: \" +sum);\n\n }",
"private Double CPLXCalculateWeightedSUM(int numTerms) {\n Double result = 0.0;\r\n\r\n for (int counter = 0; counter < numTerms; counter++) \r\n {\r\n result += CPLXCalculateWeightedSUMTerm(counter);\r\n }\r\n\r\n return result;\r\n }",
"int dimensionality();",
"public java.util.List<Dimension> getDimensionsAll();",
"public int minPathSum(int[][] grid) {\n\t\treturn 0;\r\n }",
"public long getSum()\n {\n long sum = 0;\n\n for(int i = 0; i < integerList.length; i++)\n {\n sum = sum + integerList[i];\n }\n\n return sum;\n }",
"public void calculateArray() {\n\n for (int i = 0; i < array.length; i++) {\n sum += array[i];\n }\n }",
"public int sum(int[] array) {\n if (array == null || array.length == 0){\n return 0;\n }\n int sum = 0;\n for (int i = 0; i < array.length; i++){\n sum += array[i];\n }\n return sum;\n }",
"io.dstore.values.BooleanValue getComputeSum();",
"IVec3 sum(IVec3 v);",
"static double geometricSum(int k) {\n\t\tif (k==0) \n\t\t\treturn 1; // Endpoint\n\t\telse \n\t\t\treturn 1/Math.pow(2,k) + geometricSum(k-1); \n\t}",
"public static int sizeBits_sum_a() {\n return 32;\n }",
"public static int sum(int[] arr, int arrlen){ // sum of array\r\n int sum = 0;\r\n for (int i = 0; i < arrlen; i++) {\r\n sum += arr[i];\r\n }\r\n return sum;\r\n }",
"public int cumulativeSum() {\n int sum = 0;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n sum = sum + p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n sum = sum;\n }\n return sum;\n }",
"@Test\n\tpublic void testSum() {\n\t\tassertEquals(155, g1.sum(), .0001);\n\t\tassertEquals(226, g2.sum(), .0001);\n\t\tassertEquals(298, g3.sum(), .0001);\n\t}",
"private int[][] matrixSum(int[][] a, int[][]b) {\n\t\tint row = a.length;\n\t\tint col = a[0].length;\n\t\t// creat a matrix array to store sum of a and b\n\t\tint[][] sum = new int[row][col];\n\t\t\n\t\t// Add elements at the same position in a matrix array\n\t\tfor (int r = 0; r < row; r++) {\n\t\t\tfor (int c = 0; c < col; c++) {\n\t\t\t\tsum[r][c] = a[r][c] + b[r][c]; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sum;\n\t}",
"public int sumEquipmentWeight(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getWeight();\n }\n return sum;\n }",
"public double getSumXY() { \n\t\treturn sumX1Y; \n\t}",
"public final int dimension() { return _N; }",
"@Override\n\tprotected void computeSum(double[] c, int nRows) {\n\t\tsuper.computeSum(c, nRows);\n\t\t// and add all sum of reference multiplied with nrows.\n\t\tfinal double refSum = FORUtil.refSum(_reference);\n\t\tc[0] += refSum * nRows;\n\t}"
] | [
"0.71923244",
"0.6603887",
"0.6540166",
"0.6493875",
"0.6328897",
"0.61679935",
"0.6097298",
"0.6085049",
"0.60718006",
"0.60655886",
"0.6037378",
"0.59422475",
"0.5929087",
"0.5919737",
"0.5915384",
"0.58795625",
"0.58793354",
"0.5866457",
"0.5850361",
"0.5774152",
"0.5759287",
"0.5743834",
"0.57366323",
"0.5735405",
"0.5730137",
"0.56994",
"0.56706333",
"0.56706333",
"0.56455255",
"0.5639848",
"0.5630363",
"0.56265527",
"0.5624925",
"0.5620642",
"0.5590666",
"0.5583225",
"0.55745715",
"0.55577034",
"0.55524725",
"0.5537268",
"0.55370575",
"0.55330324",
"0.5519688",
"0.54811805",
"0.54442257",
"0.5437632",
"0.5419835",
"0.5417885",
"0.5412777",
"0.53939533",
"0.5389338",
"0.5386647",
"0.5378864",
"0.53775084",
"0.53657097",
"0.53573096",
"0.53412825",
"0.53276694",
"0.53114146",
"0.5288817",
"0.5282601",
"0.5281426",
"0.5275986",
"0.52734315",
"0.52673477",
"0.5261536",
"0.52611214",
"0.5245403",
"0.5235768",
"0.5223191",
"0.52160877",
"0.5206728",
"0.5201674",
"0.5196581",
"0.51945156",
"0.51943386",
"0.5186683",
"0.51579183",
"0.5157394",
"0.51547813",
"0.5149062",
"0.51477563",
"0.5145213",
"0.5141646",
"0.5132158",
"0.5124608",
"0.51219296",
"0.5116974",
"0.51139015",
"0.5103803",
"0.5093226",
"0.50908935",
"0.5089057",
"0.5083506",
"0.50824594",
"0.50794137",
"0.50761473",
"0.50719255",
"0.50656253",
"0.5062073",
"0.50613564"
] | 0.0 | -1 |
List iilist = jdbcTemplate.query(sql, new BeanPropertyRowMapper(clz)); return jdbcTemplate.queryForList(sql, clz); | public <T> List<T> getResultList(Class<T> clz,String sql){
return new ArrayList<T>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping\n public List<Map<String, Object>> employee(){\n List<Map<String, Object>> test = jdbcTemplate.queryForList(\"select * from employee\");\n return test;\n }",
"public List<Map<String,Object>> ejecutarQuery(String sql){\n return this.jdbcTemplate.queryForList(sql);\n }",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }",
"@Override\r\n\tpublic List<Fault> listToDoFaults() {\r\n\t\tString sql = \"SELECT * FROM \" + Constants.FAULT_TABLE_NAME + \" WHERE \" + Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \" = '\"+ Constants.FAULT_TABLE_TO_DO_STATUS +\"'\";\r\n\t List<Fault> faultsToDo = jdbcTemplate.query(sql, new RowMapper<Fault>() {\r\n\t \r\n\t @Override\r\n\t public Fault mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t Fault faults = new Fault();\r\n\t \r\n\t faults.setIdFault(rs.getInt(Constants.FAULT_TABLE_ID_COLUMN));\r\n\t faults.setDateTime(rs.getDate(Constants.FAULT_TABLE_DATE_TIME_COLUMN));\r\n\t faults.setProductId(rs.getString(Constants.FAULT_TABLE_PRODUCT_ID_COLUMN));\r\n\t faults.setProductType(rs.getString(Constants.FAULT_TABLE_PRODUCT_TYPE_COLUMN));\r\n\t faults.setClientName(rs.getString(Constants.FAULT_TABLE_CLIENT_NAME_COLUMN));\r\n\t faults.setClientStreet(rs.getString(Constants.FAULT_TABLE_CLIENT_STREET_COLUMN));\r\n\t faults.setClientPostalCode(rs.getString(Constants.FAULT_TABLE_CLIENT_POSTAL_CODE));\r\n\t faults.setClientPlace(rs.getString(Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN));\r\n\t faults.setClientPhoneOne(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN));\r\n\t faults.setClientPhoneTwo(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN));\r\n\t faults.setFaultDescription(rs.getString(Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN));\r\n\t faults.setFaultNote(rs.getString(Constants.FAULT_TABLE_FAULT_NOTE_COLUMN));\r\n\t faults.setFaultIssuedTo(rs.getString(Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN));\r\n\t faults.setFaultType(rs.getString(Constants.FAULT_TABLE_FAULT_TYPE_COLUMN));\r\n\t faults.setFaultPriority(rs.getString(Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN));\r\n\t faults.setFaultLat(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LAT));\r\n\t faults.setFaultLng(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LNG));\r\n\t \r\n\t return faults;\r\n\t }\r\n\t \r\n\t });\r\n\t \r\n\t return faultsToDo;\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic List<CategoryList> list() {\n\t\t\r\n\t\tString sql = \"select * from categories\";\r\n\t\tList<CategoryList> listContact = jdbcTemplate.query(sql, new ResultSetExtractor<List<CategoryList>>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic List<CategoryList> extractData(ResultSet rs) throws SQLException, DataAccessException {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tArrayList<CategoryList> list=new ArrayList<CategoryList>(); \r\n\t\t\t\tArrayList<Category> cat = new ArrayList<Category>();\r\n\t\t\t\tCategoryList ctg = new CategoryList();\r\n\t\t\t\t\r\n\t\t while(rs.next()){ \r\n\t\t Category e=new Category(); \r\n\t\t e.setCategoryName(rs.getString(2));\r\n\t\t \r\n\t\t String sql2 = \"SELECT * FROM sub_categories WHERE cat_id=\" + rs.getString(1);\r\n\t\t \r\n\t\t\t\tjdbcTemplate.query(sql2, new ResultSetExtractor<Subcategory>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Subcategory extractData(ResultSet rs1) throws SQLException,\r\n\t\t\t\t\t\t\tDataAccessException {\r\n\t\t\t\t\t\tArrayList<Subcategory> subcat = new ArrayList<Subcategory>();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\twhile (rs1.next()) {\r\n\t\t\t\t\t\t\tSubcategory contact = new Subcategory();\r\n\t\t\t\t\t\t\tcontact.setSubCategoryId(rs1.getString(1));\r\n\t\t\t\t\t\t\tcontact.setSubCategoryName(rs1.getString(2));\r\n\t\t\t\t\t\t\tsubcat.add(contact);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\te.setSubcategories(subcat);\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\tcat.add(e);\r\n\t\t ctg.setCategories(cat);\r\n\t\t }\r\n\t\t ctg.setResponse(\"3\");\r\n\t\t ctg.setMessage(\"fetch successfully\");\r\n\t\t list.add(ctg);\r\n\t\t\t\treturn list;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\treturn listContact;\r\n\t\t\r\n\t}",
"public List<BoardBean> populate(String sql ){\n\t\t\tList<BoardBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(BoardBean.class));\n\t\t\t\treturn retlist;\n\t }",
"List<T> getSQLList(String sql);",
"@Override\r\n\tpublic Map<String, Object> readAll() {\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate).withCatalogName(\"PKG_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .withProcedureName(\"PR_LIS_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .declareParameters(new SqlOutParameter(\"CUR_ESTADO_CIVIL\", OracleTypes.CURSOR,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t new ColumnMapRowMapper()));\r\n\t\treturn simpleJdbcCall.execute();\r\n\t}",
"public List<User> fetchAll()\n {\n String query = \"SELECT * FROM user\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class); // a collection type that holds the results of the query\n List<User> userList; // list of users that will be returned\n try\n {\n userList = template.query(query, userRowMapper); // call the database and assign the results to the userList\n } catch (EmptyResultDataAccessException e)\n {\n userList = new ArrayList<>(); // return an empty arrayList\n }\n return userList;\n }",
"@Override\n\tpublic List queryForList(String sql) {\n\t\treturn this.baseDaoSupport.queryForList(sql);\n\t}",
"@Override\r\n\tpublic List<Fault> listFaultsByServiceman (String serviceman) {\r\n\t\tString sql = \"SELECT * FROM \" + Constants.FAULT_TABLE_NAME + \" WHERE \" + Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \" = '\"+ Constants.FAULT_TABLE_TO_DO_STATUS +\"'\" + \" AND \" + \r\n\t\t\t\t\tConstants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN + \" = '\"+ serviceman +\"'\";\r\n\t List<Fault> faultsToDo = jdbcTemplate.query(sql, new RowMapper<Fault>() {\r\n\t \r\n\t @Override\r\n\t public Fault mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t Fault faults = new Fault();\r\n\t \r\n\t faults.setIdFault(rs.getInt(Constants.FAULT_TABLE_ID_COLUMN));\r\n\t faults.setDateTime(rs.getDate(Constants.FAULT_TABLE_DATE_TIME_COLUMN));\r\n\t faults.setProductId(rs.getString(Constants.FAULT_TABLE_PRODUCT_ID_COLUMN));\r\n\t faults.setProductType(rs.getString(Constants.FAULT_TABLE_PRODUCT_TYPE_COLUMN));\r\n\t faults.setClientName(rs.getString(Constants.FAULT_TABLE_CLIENT_NAME_COLUMN));\r\n\t faults.setClientStreet(rs.getString(Constants.FAULT_TABLE_CLIENT_STREET_COLUMN));\r\n\t faults.setClientPostalCode(rs.getString(Constants.FAULT_TABLE_CLIENT_POSTAL_CODE));\r\n\t faults.setClientPlace(rs.getString(Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN));\r\n\t faults.setClientPhoneOne(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN));\r\n\t faults.setClientPhoneTwo(rs.getString(Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN));\r\n\t faults.setFaultDescription(rs.getString(Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN));\r\n\t faults.setFaultNote(rs.getString(Constants.FAULT_TABLE_FAULT_NOTE_COLUMN));\r\n\t faults.setFaultIssuedTo(rs.getString(Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN));\r\n\t faults.setFaultType(rs.getString(Constants.FAULT_TABLE_FAULT_TYPE_COLUMN));\r\n\t faults.setFaultPriority(rs.getString(Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN));\r\n\t faults.setFaultLat(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LAT));\r\n\t faults.setFaultLng(rs.getDouble(Constants.FAULT_TABLE_FAULT_FAULT_LNG));\r\n\t \r\n\t return faults;\r\n\t }\r\n\t \r\n\t });\r\n\t \r\n\t return faultsToDo;\r\n\t\t\r\n\t}",
"public List<CourseObject> GetAllDepartmentCourses(int dept_id){\r\n String sql = \"SELECT * FROM COURSE WHERE DEPARTMENT_ID = ?\";\r\n List<CourseObject> courseObjectList = null;\r\n try{\r\n courseObjectList = jdbcTemplate.query(sql,new Object[]{dept_id},new BeanPropertyRowMapper(CourseObject.class));\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n return courseObjectList;\r\n }",
"@SqlMapper\npublic interface PortalBeanCurdMapper {\n List<LauncherHomeApiVo> getLauncherHome(@Param(\"curdId\")Integer curdId);\n}",
"@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();",
"@Bean\n public JdbcTemplate jdbcTemplate() {\n return new JdbcTemplate(dataSource());\n }",
"public <T> List<T> query(String sql, Object[] args, final RowMapper<T> rowMapper) throws DataAccessException {\n\t\tSystem.out.println(sql + \" - \" + Arrays.toString(args));\r\n\t\treturn new ResultSetCallback<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\tprotected List<T> doInResultSet(ResultSet rs) throws SQLException {\r\n\t\t\t\tResultSetMetaData meta = rs.getMetaData();\r\n\t\t\t\tint colCount = meta.getColumnCount();\r\n\t\t\t\tString[] colNames = new String[colCount];\r\n\t\t\t\tint[] colTypes = new int[colCount];\r\n\t\t\t\tfor (int i=0; i<colCount; i++) {\r\n\t\t\t\t\tcolNames[i] = meta.getColumnName(i+1);\r\n\t\t\t\t\tcolTypes[i] = meta.getColumnType(i+1);\r\n\t\t\t\t}\r\n List<T> list = new ArrayList<T>(getFetchSize());\r\n while (rs.next()) {\r\n list.add(rowMapper.mapRow(rs, colNames, colTypes));\r\n }\r\n\t\t\t\treturn list;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tprotected int getFetchSize() {\r\n\t\t\t\treturn fetchSize;\r\n\t\t\t}\r\n\t\t}.execute(txManager, sql, args);\r\n\t}",
"public JdbcOperations getJdbcOperations() {\n return _jdbcTemplate.getJdbcOperations();\n }",
"@Override\r\n public <T> List<T> query(String query, RowMapper<T> rowMapper, Object... parameters) {\n List<T> results = new ArrayList<>();\r\n Connection connection = null;\r\n PreparedStatement prepareStatement = null;\r\n ResultSet resultSet = null;\r\n try {\r\n connection = getConnection();\r\n prepareStatement = connection.prepareStatement(query);\r\n setParameter(prepareStatement, parameters);\r\n resultSet = prepareStatement.executeQuery();\r\n while (resultSet.next()) {\r\n results.add(rowMapper.mapRow(resultSet));\r\n }\r\n return results;\r\n } catch (SQLException e) {\r\n return null;\r\n } finally {\r\n try {\r\n connection.close();\r\n if (prepareStatement != null) {\r\n prepareStatement.close();\r\n }\r\n if (resultSet != null) {\r\n resultSet.close();\r\n }\r\n } catch (SQLException e) {\r\n return null;\r\n }\r\n }\r\n }",
"Iterable<Person> getList() throws DataAccessException;",
"public List<SubjectBean> populateStudent(String sql ){\n\t\t\t\t\tList<SubjectBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SubjectBean.class));\n\t\t\t\t\t\treturn retlist;\n\t\t\t }",
"@Override\n\tpublic Map<String, Object> readAll() {\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate)\n\t\t\t\t.withCatalogName(\"PKG_ALM_CRUD_PRODUNIDADMED\")\n\t\t\t\t.withProcedureName(\"PA_MAT_PRODUNIDADMED_LIS\")\t\n\t\t\t\t.declareParameters(new SqlOutParameter(\"uni\", OracleTypes\n\t\t\t\t.CURSOR, new ColumnMapRowMapper()));\n\t\treturn simpleJdbcCall.execute();\n\t}",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"@SuppressWarnings(\"hiding\")\n\tpublic <T> List<T> selectDb (final String sql, T bean) throws DataAccessException;",
"public <T> List<T> select(final String sqlQuery, final Class<T> clzz, final Map<String, Object> param) throws Exception;",
"@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }",
"@Override\n\tpublic List<WanchengPO> mapRow(ResultSet rs) throws Exception {\n\t\treturn null;\n\t}",
"public List<SubjectBean> populatesubject(String sql ){\n\t\t\t\tList<SubjectBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SubjectBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public List<ClassBean1> populateallClasses(String sql ){\n\t\t\t\tList<ClassBean1> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(ClassBean1.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"List<C> getRow() throws Exception;",
"java.util.List<io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row> \n getRowList();",
"@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }",
"@Override\r\n\tpublic List<MemberDto> list() {\n\t\treturn jdbcTemplate.query(\"select * from s_member\", mapper);\r\n\t}",
"public int executeQuery(Class beanClz, String where, List list,\r\n Connection conn) throws SQLException {\r\n Bean bean = helperFactory.getBeanFactory().getByClass(beanClz);\r\n if (bean == null) {\r\n throw new SQLException(\"not cots managed class \" + beanClz);\r\n }\r\n\r\n ObjectHelper oh = helperFactory.getObjectHelper(beanClz);\r\n String tableName = bean.getTableName();\r\n String sql = \"select \"+bean.getColumnNamesString()+\" from \" + DBType.buildName(tableName, dbType);\r\n if (where != null && where.length() > 0) {\r\n sql += \" where \" + where;\r\n }\r\n\r\n Statement stmt = conn.createStatement();\r\n try {\r\n ResultSet rs = stmt.executeQuery(sql);\r\n return oh.populateBatch(list, rs, this);\r\n } finally {\r\n stmt.close();\r\n }\r\n }",
"protected List<E> getListByQuerry(PreparedStatement statement) throws DAOException {\n\t\tfinal List<E> data;\n\n\t\ttry (ResultSet rs = statement.executeQuery()) {\n\t\t\tdata = parseResultSet(rs);\n\t\t} catch (SQLException cause) {\n\t\t\tthrow new DAOException(cause);\n\t\t}\n\t\tif (data.isEmpty())\n\t\t\treturn null;\n\t\telse\n\t\t\treturn data;\n\t}",
"@Override\n\tpublic List<Supplier> getAllSupplier() {\n\t\tString sql=\"SELECT * FROM supplier\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().query(sql, rowmapper);\n\t}",
"java.util.List<io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row> \n getRowList();",
"public List<Map<String, Object>> queryForListWithLog(final String sql) {\n return queryForListWithLog(proxyDataSource, sql);\n }",
"public List listMapBySql(String sql) throws Exception {\n\t\treturn null;\r\n\t}",
"List selectByExample(CTipoComprobanteExample example) throws SQLException;",
"public List<CustomerModel> readDatabase() throws Exception{\n\nList<CustomerModel> list = new ArrayList<CustomerModel>();\n\ntry{\nlog.info(\"Loading MySql driver\");\nClass.forName(\"com.mysql.jdbc.Driver\");\n\nlog.info(\"Setting up connection with db\");\nconnect= DriverManager.getConnection(\"jdbc:mysql://localhost:3306/apidft\",\"root\",\"cisco\");\nlog.info(\"Database connection successful\");\nstatement = connect.createStatement();\n\nresultSet= statement.executeQuery(\"select * from customer\");\n\nwhile(resultSet.next()){\nlist.add(processRow(resultSet));\n}\n}\n\ncatch(Exception e){\nlog.error(\"Database connection fail\");\n}\n\nfinally{\nconnect.close();\n}\nreturn list;\n}",
"@Override\n\tpublic List<DpzsJjfzPojo> getList() {\n\t\treturn this.dpzsJjfzDao.getList();\n\t}",
"List<CustomerInformation> queryListByCustomer(Integer page, Integer rows, CustomerInformation cust);",
"public List<SectionBean> populateallSection(String sql ){\n\t\t\t\tList<SectionBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SectionBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"java.util.List<io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row> \n getRowList();",
"public List<Map<String, Object>> queryForListWithLog(final DataSource dataSource, final String sql) {\n log.info(\"Query SQL: {}\", sql);\n try (Connection connection = dataSource.getConnection()) {\n ResultSet resultSet = connection.createStatement().executeQuery(sql);\n return transformResultSetToList(resultSet);\n } catch (final SQLException ex) {\n throw new RuntimeException(ex);\n }\n }",
"@Override\n\tpublic List getList(Object obj) throws SQLException {\n\t\treturn dao.getListByPage(obj);\n\t}",
"public EpResponseDto getEpDevices1(EpRequestDto epReqDto) {\n final String procedureCall = \"{call GetAvailableEPs(?, ?, ?, ?, ?, ?, ?)}\";\n EpResponseDto response = new EpResponseDto();\n List<SqlParameter> paramList = new ArrayList<SqlParameter>();\n paramList.add(new SqlParameter(Types.BIGINT));\n paramList.add(new SqlParameter(Types.BIGINT));\n paramList.add(new SqlParameter(Types.BIGINT));\n paramList.add(new SqlParameter(Types.INTEGER));\n paramList.add(new SqlParameter(Types.VARCHAR));\n paramList.add(new SqlParameter(Types.VARCHAR));\n paramList.add(new SqlOutParameter(\"p_TotalRecordCount\", Types.BIGINT));\n\n try\n {\n Map<String, Object> resultMap = cspJdbcTemplate.call(new CallableStatementCreator() {\n @Override\n public CallableStatement createCallableStatement(Connection connection) throws SQLException {\n\n CallableStatement callableStatement = connection.prepareCall(procedureCall);\n callableStatement.setLong(\"p_userAccountId\", epReqDto.getAccountId());\n callableStatement.setLong(\"p_supportAccountId\", epReqDto.getSupportAccountId());\n callableStatement.setLong(\"p_PaginationOffset\", epReqDto.getPageOffset());\n callableStatement.setInt(\"p_PaginationCount\", epReqDto.getPageCount());\n callableStatement.setString(\"p_Searchfield\", epReqDto.getSearchField());\n callableStatement.setString(\"p_SearchValue\", epReqDto.getSearchValue());\n callableStatement.registerOutParameter(\"p_TotalRecordCount\", Types.BIGINT);\n return callableStatement;\n }\n\n }, paramList);\n\n Object rs = resultMap.get(\"#result-set-1\");\n if(rs != null)\n {\n List<LinkedCaseInsensitiveMap> list = (List<LinkedCaseInsensitiveMap>) rs;\n for(LinkedCaseInsensitiveMap map: list){\n EpDevice device = new EpDevice();\n device.setSerialNumber((String)map.get(\"SerialNumber\"));\n device.setAuthorizationCode((String)map.get(\"AuthorizationCode\"));\n device.setDescription((String)map.get(\"PartSubTypeName\"));\n device.setUseCount(map.get(\"UseCount\") == null ? 0 : Integer.valueOf(map.get(\"UseCount\").toString()));\n device.setExpirationDate(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").parse(map.get(\"ExpirationDate\").toString()));\n device.setAscName((String)map.get(\"ASCName\"));\n device.setDeviceName((String)map.get(\"DeviceName\"));\n device.setDeviceTag((String)map.get(\"DeviceTag\"));\n device.setIsEsm(map.get(\"IsEsm\") == null ? false : Boolean.valueOf(map.get(\"IsEsm\").toString()));\n response.addEpDevice(device);\n }\n }\n response.setTotalCount((long) resultMap.get(\"p_TotalRecordCount\"));\n }catch (Exception e){\n\n }\n\n return response;\n }",
"public <T> List<T> select(final String sql, final Class<T> clz, final Object... objects) {\n\t\tlogger.debug(\"select(), entered. type: {}, sql: {}\", clz.getSimpleName(), sql);\n\t\tConstructor<T> constructor;\n\t\ttry {\n\t\t\tconstructor = clz.getConstructor(ResultSet.class);\n\t\t} catch (final Exception e) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"Couldn't find a constructor that takes ResultSet as parameter for: \" + clz.getSimpleName());\n\t\t}\n\n\t\ttry (Handle handle = Jdbi.open(pooledDataSource.getConnection()); Query q = handle.createQuery(sql);) {\n\t\t\t// Apply bind parameters\n\t\t\tfor (int i = 0; i < objects.length; i++) {\n\t\t\t\tq.bind(i, objects[i]);\n\t\t\t}\n\n\t\t\tfinal List<T> list = q.map((rs, ctx) -> {\n\t\t\t\ttry {\n\t\t\t\t\treturn constructor.newInstance(rs);\n\t\t\t\t} catch (final Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\thandle.close();\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Couldn't instantiate a constructor that takes ResultSet as parameter for: \"\n\t\t\t\t\t\t\t\t\t+ clz.getSimpleName());\n\t\t\t\t}\n\t\t\t}).list();\n\n\t\t\tlogger.debug(\"select(), exiting. type: {}, list-size: {}\", clz.getSimpleName(), list.size());\n\t\t\treturn list;\n\t\t} catch (final Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t}",
"@Override\r\n\tpublic List<CustVO> getAll() {\n\t\tList<CustVO> list = new ArrayList<CustVO>();\r\n\t\tCustVO custVO = null;\r\n\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(GET_ALL_STMT);\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustVO = new CustVO();\r\n\t\t\t\tcustVO.setCust_ID(rs.getString(\"CUST_ID\"));\r\n\t\t\t\tcustVO.setCust_acc(rs.getString(\"CUST_ACC\"));\r\n\t\t\t\tcustVO.setCust_pwd(rs.getString(\"CUST_PWD\"));\r\n\t\t\t\tcustVO.setCust_name(rs.getString(\"CUST_NAME\"));\r\n\t\t\t\tcustVO.setCust_sex(rs.getString(\"CUST_SEX\"));\r\n\t\t\t\tcustVO.setCust_tel(rs.getString(\"CUST_TEL\"));\r\n\t\t\t\tcustVO.setCust_addr(rs.getString(\"CUST_ADDR\"));\r\n\t\t\t\tcustVO.setCust_pid(rs.getString(\"CUST_PID\"));\r\n\t\t\t\tcustVO.setCust_mail(rs.getString(\"CUST_MAIL\"));\r\n\t\t\t\tcustVO.setCust_brd(rs.getDate(\"CUST_BRD\"));\r\n\t\t\t\tcustVO.setCust_reg(rs.getDate(\"CUST_REG\"));\r\n\t\t\t\tcustVO.setCust_pic(rs.getBytes(\"CUST_PIC\"));\r\n\t\t\t\tcustVO.setCust_status(rs.getString(\"CUST_STATUS\"));\r\n\t\t\t\tcustVO.setCust_niname(rs.getString(\"CUST_NINAME\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured. \" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}",
"public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}",
"List<List<Object>> getTableValues(TableParameters tableParameters);",
"public interface IListService {\n\n public List<HomeDto> getListFromTable() throws SQLException;\n\n}",
"@Override\n\tpublic List<Zongjie> findList(Map<String, Object> queryMap) {\n\t\treturn zongjieDao.findList(queryMap);\n\t}",
"public List getObjectByQuery(StringBuffer sqlquery)\n {\n List list = new ArrayList();\n Query query = getSession().createQuery(sqlquery.toString());\n list = query.list();\n return list;\n }",
"public NamedParameterJdbcTemplate getJdbcTemplate() {\n return _jdbcTemplate;\n }",
"List fetchAll() throws AdaptorException ;",
"@Override\n \tpublic List<?> execute() {\n \t\ttry {\n \t\t\n \t\t\treturn _jdbcTemplate.query(_sql, new RowMapper() {\n \t\t\t\tpublic Object mapRow(ResultSet rs, int rowNum) throws SQLException {\n \t\t\t\t\tint campaignId = rs.getInt(1);\n \t\t\t\t\tint groupId = rs.getInt(2);\n \t\t\t\t\tint count = rs.getInt(3);\n \t\t\t\t\treturn new CampaignPromptGroupItemCount(campaignId, groupId, count);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t} catch (org.springframework.dao.DataAccessException dae) {\n \t\t\t\n \t\t\t_logger.error(\"an exception occurred running the sql '\" + _sql + \"' \" + dae.getMessage());\n \t\t\tthrow new DataAccessException(dae);\n \t\t\t\n \t\t}\n \t}",
"@Override\n public Order findById(int id) { \n String sql = \"SELECT o.*, py.*, dir.*, p.*, pt.*, pr.*, e.*, ca.name, b.*, c.status, d.androidIdentifier FROM Orders o\"\n + \" LEFT JOIN Orders_Extras oe ON o.idOrders = oe.idOrders LEFT JOIN Extras e ON oe.idExtras = e.idExtras\"\n + \" LEFT JOIN Categories ca ON e.idCategories = ca.idCategories\"\n + \" LEFT JOIN Orders_Beverages ob ON o.idOrders = ob.idOrders LEFT JOIN Beverages b ON ob.idBeverages = b.idBeverages\"\n + \" LEFT JOIN Orders_Pizzas p ON o.idOrders = p.idOrders\"\n + \" LEFT JOIN Pizzas_PizzaToppings pp ON p.idPizzas = pp.idPizzas LEFT JOIN PizzaToppings pt ON pp.idPizzasToppings = pt.idPizzaToppings\"\n + \" LEFT JOIN Prices pr ON p.idPrices = pr.idPrices\"\n + \" LEFT JOIN Devices d ON o.idOrders = d.idOrders \" \n + \" LEFT JOIN Checks c ON o.idOrders = c.idOrders LEFT JOIN Payments py ON c.idPayments = py.idPayments\"\n + \" LEFT JOIN Directions dir ON py.idDirections = dir.idDirections\"\n + \" WHERE o.idOrders=\"+id;\n \n final List<Pizza> pizzasList = new ArrayList<>();\n //final List<PizzaToppings> toppings = new ArrayList<>();\n final List<Extra> extrasList = new ArrayList<>();\n final List<Beverage> beveragesList = new ArrayList<>(); \n \n return jdbcTemplate.query(sql, new ResultSetExtractor<Order>() {\n\n @Override\n public Order extractData(ResultSet rs) throws SQLException, DataAccessException {\n if(rs.next()) { \n Order order = new Order(); \n \n int pizzaId = rs.getInt(\"p.idPizzas\");\n //int toppingId = rs.getInt(\"pt.idPizzaToppings\");\n int extraId = rs.getInt(\"e.idExtras\");\n int beverageId = rs.getInt(\"b.idBeverages\"); \n \n Payment payment = new Payment(rs.getInt(\"py.idPayments\"), rs.getDate(\"py.date\"), rs.getString(\"py.description\"), rs.getFloat(\"py.amount\"));\n Direction direction = new Direction(rs.getInt(\"dir.idDirections\"), rs.getString(\"dir.zipCode\"), rs.getString(\"dir.county\"), rs.getString(\"dir.neighborhood\"), rs.getString(\"dir.street\"), rs.getString(\"dir.noExt\"), rs.getString(\"noInt\"), rs.getString(\"betweenStreetA\"), rs.getString(\"betweenStreetB\"));\n Price pizzaPrice = new Price(rs.getInt(\"pr.idPrices\"), rs.getFloat(\"pr.cost\"), rs.getString(\"pr.size\")); \n \n order.setIdOrders(rs.getInt(\"o.idOrders\"));\n order.setName(rs.getString(\"o.name\")); \n order.setPayment(payment);\n order.setDirection(direction); \n order.setStatus(rs.getInt(\"c.status\"));\n order.setAndroidId(rs.getString(\"d.androidIdentifier\")); \n \n //PizzaToppings topping = new PizzaToppings(toppingId, rs.getString(\"pt.name\"), rs.getString(\"pt.description\"), null);\n //toppings.add(topping);\n \n Pizza pizza = new Pizza(pizzaId, pizzaPrice, null);\n Extra extra = new Extra(extraId, rs.getString(\"e.name\"), rs.getString(\"e.description\"), rs.getFloat(\"e.cost\"), rs.getString(\"ca.name\"));\n Beverage beverage = new Beverage(beverageId, rs.getString(\"b.name\"), rs.getString(\"b.description\"), rs.getBoolean(\"b.alcohol\"), rs.getFloat(\"b.cost\"), rs.getString(\"b.measure\"));\n \n pizzasList.add(pizza);\n extrasList.add(extra);\n beveragesList.add(beverage); \n \n while(rs.next()) { \n if(rs.getInt(\"p.idPizzas\") != pizzaId) { \n //toppings.subList(0, 1);\n //if(rs.getInt(\"pt.idPizzaToppings\") != toppingId) {\n // topping = new PizzaToppings(rs.getInt(\"pt.idPizzaToppings\"), rs.getString(\"pt.name\"), rs.getString(\"pt.description\"), null);\n // toppings.add(topping);\n //}\n pizza = new Pizza(rs.getInt(\"p.idPizzas\"), pizzaPrice, null);\n pizzasList.add(pizza);\n } \n \n if (rs.getInt(\"e.idExtras\") != extraId) {\n extra = new Extra(rs.getInt(\"e.idExtras\"), rs.getString(\"e.name\"), rs.getString(\"e.description\"), rs.getFloat(\"e.cost\"), rs.getString(\"ca.name\"));\n extrasList.add(extra);\n } \n \n if (rs.getInt(\"b.idBeverages\") != beverageId) {\n beverage = new Beverage(rs.getInt(\"b.idBeverages\"), rs.getString(\"b.name\"), rs.getString(\"b.description\"), rs.getBoolean(\"b.alcohol\"), rs.getFloat(\"b.cost\"), rs.getString(\"b.measure\"));\n beveragesList.add(beverage);\n } \n } \n \n order.setPizzas(pizzasList);\n order.setExtras(extrasList);\n order.setBeverages(beveragesList); \n \n \n return order;\n }\n return null;\n } \n }); \n }",
"List<Customer> getList();",
"public List<IEntity> query(IQuery query) throws SQLException;",
"@Override\n\tpublic List<Persona> getPersona() throws SQLException {\n\t\tList<Persona> listaPersona1 = new ArrayList<Persona>();\n\t\t\n Single<List<DbRow>> rows = dbClient.execute(exec -> exec\n \t\t.createQuery(\"select * from persona;\").execute()).collectList();\n \n try {\n List<DbRow> listasPersonas = rows.get();\n \n if(!listasPersonas.isEmpty()) {\n \t\n \tfor(int i=0; i< listasPersonas.size(); i++) {\n \t\tPersona p = new Persona();\n \t\tp.setId((int)listasPersonas.get(i).column(\"id\").value());\n \t\tp.setNombre((String)listasPersonas.get(i).column(\"nombre\").value());\n \t\tp.setDireccion((String)listasPersonas.get(i).column(\"direccion\").value());\n \t\tp.setCorreo((String)listasPersonas.get(i).column(\"correo\").value()); \t\t\n \t\tlistaPersona1.add(p);\n \t}\n \t\n }\n // listasPersonas.forEach(System.out::println);\n \n } catch (InterruptedException e) {\n e.printStackTrace();\n return null;\n } catch (ExecutionException e) {\n e.printStackTrace();\n return null;\n }\n return listaPersona1;\n\t\t\n\t}",
"@Override\n public Collection<FasciaOrariaBean> doRetrieveAll() throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria\";\n ArrayList<FasciaOrariaBean> collection = new ArrayList<>();\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n System.out.println(\"DoRetriveAll\" + statement);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n collection.add(bean);\n }\n return collection;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return collection;\n }",
"public ArrayList<Customer> getAllCustomers(){\n ArrayList<Customer> customers = new ArrayList<>();\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer \");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customers.add(\n new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n ));\n\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customers;\n }",
"List<StockList> fetchAll();",
"public List<MediumBean> populatemediam(String sql ){\n\t\t\t\tList<MediumBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(MediumBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public static ArrayList<CustomerInfoBean> getCustomers() {\r\n\t\tSystem.out.println(\"CustomerBAL.get_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, e_status, c_status, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_customers()}\");\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(\"customer_id\");\r\n\t\t\t\t\tcustomerName = rs.getString(\"customer_name\");\r\n\t\t\t\t\tcnicNo = rs.getString(\"customer_cnic\");\r\n\t\t\t\t\tphoneNo = rs.getString(\"customer_phone\");\r\n\t\t\t\t\tdistrict = rs.getString(\"district_name\");\r\n\t\t\t\t\tmonthlyIncome = rs.getString(\"salary_range\");\r\n\t\t\t\t\tgsmNumber = rs.getString(\"appliance_gsmno\");\r\n\t\t\t\t\tstate = rs.getInt(\"appliance_status\");\r\n\t\t\t\t\tsalesmanName = rs.getString(\"salesman_name\");\r\n\r\n\t\t\t\t\tapplianceId = rs.getInt(\"appliance_id\");\r\n\t\t\t\t\tsalesmanId = rs.getInt(\"salesman_id\");\r\n\t\t\t\t\tapplianceName = rs.getString(\"appliance_name\");\r\n\t\t\t\t\te_status = rs.getInt(\"e.status\");\r\n\t\t\t\t\tc_status = rs.getInt(\"cs.status\");\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(e_status);\r\n\t\t\t\t\tbean.setCustomerStatus(c_status);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tconnection.close();\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public List<CustomerPurchase> getAll() throws SQLException;",
"public static ObservableList<Customer> getCustomerList() throws SQLException{\r\n customerList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM customers;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //creates customer and adds to list\r\n while(rs.next())\r\n {\r\n int customerID = rs.getInt(\"Customer_ID\");\r\n String customerName = rs.getString(\"Customer_Name\");\r\n String address = rs.getString(\"Address\");\r\n String state = getDivisionName(rs.getInt(\"Division_ID\"));\r\n String postalCode = rs.getString(\"Postal_Code\");\r\n String country = getCountryName(getCountryID(rs.getInt(\"Division_ID\")));\r\n String phoneNumber = rs.getString(\"Phone\");\r\n Customer customer = new Customer(customerID,customerName,address,state,postalCode,country,phoneNumber);\r\n customerList.add(customer);\r\n }\r\n return customerList;\r\n }",
"public BeanIdList findIds() throws SQLException {\n/* 154 */ boolean useBackgroundToContinueFetch = false;\n/* */ \n/* 156 */ this.startNano = System.nanoTime();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 162 */ List<Object> idList = this.query.getIdList();\n/* 163 */ if (idList == null) {\n/* */ \n/* 165 */ idList = Collections.synchronizedList(new ArrayList());\n/* 166 */ this.query.setIdList(idList);\n/* */ } \n/* */ \n/* 169 */ BeanIdList result = new BeanIdList(idList);\n/* */ \n/* 171 */ SpiTransaction t = this.request.getTransaction();\n/* 172 */ Connection conn = t.getInternalConnection();\n/* 173 */ this.pstmt = conn.prepareStatement(this.sql);\n/* */ \n/* 175 */ if (this.query.getBufferFetchSizeHint() > 0) {\n/* 176 */ this.pstmt.setFetchSize(this.query.getBufferFetchSizeHint());\n/* */ }\n/* */ \n/* 179 */ if (this.query.getTimeout() > 0) {\n/* 180 */ this.pstmt.setQueryTimeout(this.query.getTimeout());\n/* */ }\n/* */ \n/* 183 */ this.bindLog = this.predicates.bind(new DataBind(this.pstmt));\n/* */ \n/* 185 */ ResultSet rset = this.pstmt.executeQuery();\n/* 186 */ this.dataReader = new RsetDataReader(rset);\n/* */ \n/* 188 */ boolean hitMaxRows = false;\n/* 189 */ boolean hasMoreRows = false;\n/* 190 */ this.rowCount = 0;\n/* */ \n/* 192 */ DbReadContext ctx = new DbContext();\n/* */ \n/* 194 */ while (rset.next()) {\n/* 195 */ Object idValue = this.desc.getIdBinder().read(ctx);\n/* 196 */ idList.add(idValue);\n/* */ \n/* 198 */ this.dataReader.resetColumnPosition();\n/* 199 */ this.rowCount++;\n/* */ \n/* 201 */ if (this.maxRows > 0 && this.rowCount == this.maxRows) {\n/* 202 */ hitMaxRows = true;\n/* 203 */ hasMoreRows = rset.next();\n/* */ break;\n/* */ } \n/* 206 */ if (this.bgFetchAfter > 0 && this.rowCount >= this.bgFetchAfter) {\n/* 207 */ useBackgroundToContinueFetch = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 212 */ if (hitMaxRows) {\n/* 213 */ result.setHasMore(hasMoreRows);\n/* */ }\n/* */ \n/* 216 */ if (useBackgroundToContinueFetch) {\n/* */ \n/* */ \n/* 219 */ this.request.setBackgroundFetching();\n/* */ \n/* */ \n/* 222 */ BackgroundIdFetch bgFetch = new BackgroundIdFetch(t, rset, this.pstmt, ctx, this.desc, result);\n/* 223 */ FutureTask<Integer> future = new FutureTask<Integer>(bgFetch);\n/* 224 */ this.backgroundExecutor.execute(future);\n/* */ \n/* */ \n/* 227 */ result.setBackgroundFetch(future);\n/* */ } \n/* */ \n/* 230 */ long exeNano = System.nanoTime() - this.startNano;\n/* 231 */ this.executionTimeMicros = (int)exeNano / 1000;\n/* */ \n/* 233 */ return result;\n/* */ } finally {\n/* */ \n/* 236 */ if (!useBackgroundToContinueFetch)\n/* */ {\n/* */ \n/* 239 */ close();\n/* */ }\n/* */ } \n/* */ }",
"List<List<Object>> getTableValues();",
"public List listBySql(String sql) throws Exception {\n\t\treturn null;\r\n\t}",
"protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }",
"public List<Bill> getBill() {\n\tString sql =\"SELECT * FROM bills JOIN employees e on bills.Id_employees = e.Id_employees JOIN food f on bills.Id_food = f.Id_food\";\n\tList<Bill> list = new ArrayList<Bill>();\n\ttry {\n\t\tPreparedStatement preparedStatement = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\n\t\twhile(resultSet.next()) {\n\t\t\tBill getBill = new Bill();\n\t\t\tgetBill.setId(resultSet.getInt(\"Id_bills\"));\n\t\t\tgetBill.setFood(resultSet.getString(\"Name\"));\n\t\t\tgetBill.setEmployyes(resultSet.getString(\"Name_and_surname\"));\n\t\t\tgetBill.setPrice(resultSet.getDouble(\"Price\"));\n\t\t\tgetBill.setSerialNumber(resultSet.getString(\"Serial_Number_Bill\"));\n\t\t\tgetBill.setTotal(resultSet.getDouble(\"TOTAL\"));\n\t\t\tlist.add(getBill);\n\t\t}\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\treturn list;\n}",
"@Override\n\tpublic List<Object[]> getObjectData(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction transaction = session.beginTransaction();\n\t\tQuery query = session.createQuery(hql);\n\t\tList<Object[]> lists = query.list();\n\t\ttransaction.commit();\n\t\tsession.close();\n\t\treturn lists;\n\t}",
"public PreferenceBean[] loadUsingTemplate(PreferenceBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer where = new StringBuffer(\"\");\n StringBuffer _sql = new StringBuffer(\"SELECT \" + ALL_FIELDS + \" from preference WHERE \");\n StringBuffer _sqlWhere = new StringBuffer(\"\");\n try\n {\n int _dirtyCount = 0;\n \n if (pObject.isPreferenceidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"preferenceid= ?\");\n }\n \n if (pObject.isNameModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"name= ?\");\n }\n \n if (pObject.isPreferencetypeidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"preferencetypeid= ?\");\n }\n \n if (pObject.isRegbyidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"regbyid= ?\");\n }\n \n if (pObject.isRegdateModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"regdate= ?\");\n }\n \n if (pObject.isActiveModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"active= ?\");\n }\n \n if (pObject.isDeletedModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"deleted= ?\");\n }\n \n if (pObject.isReservationidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"reservationid= ?\");\n }\n \n if (pObject.isIsstandartModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"isstandart= ?\");\n }\n \n if (_dirtyCount == 0) {\n throw new SQLException (\"The pObject to look for is invalid : not initialized !\");\n }\n _sql.append(_sqlWhere);\n c = getConnection();\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n \n if (pObject.isPreferenceidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getPreferenceid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isPreferencetypeidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getPreferencetypeid());\n }\n \n if (pObject.isRegbyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getRegbyid());\n }\n \n if (pObject.isRegdateModified()) {\n ps.setTimestamp(++_dirtyCount, pObject.getRegdate());\n }\n \n if (pObject.isActiveModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getActive());\n }\n \n if (pObject.isDeletedModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getDeleted());\n }\n \n if (pObject.isReservationidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getReservationid());\n }\n \n if (pObject.isIsstandartModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getIsstandart());\n }\n \n ps.executeQuery();\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"public ArrayList<UserDataBean> list() {\n/* 80 */ String firstname = \"\";\n/* 81 */ String lastname = \"\";\n/* 82 */ String email = \"\";\n/* */ \n/* 84 */ Connection conn = null;\n/* 85 */ PreparedStatement pstmt = null;\n/* 86 */ ResultSet rs = null;\n/* */ \n/* 88 */ ArrayList<UserDataBean> list = new ArrayList<UserDataBean>();\n/* 89 */ String sql = \"select * from members\";\n/* */ \n/* */ try {\n/* 92 */ conn = getConn();\n/* 93 */ System.out.println(\"db접속 성공\");\n/* 94 */ pstmt = conn.prepareStatement(sql);\n/* 95 */ rs = pstmt.executeQuery();\n/* */ \n/* 97 */ while (rs.next()) {\n/* 98 */ UserDataBean user = new UserDataBean(firstname, lastname, email);\n/* */ \n/* 100 */ user.setFirstname(rs.getString(\"firstname\"));\n/* 101 */ user.setLastname(rs.getString(\"lastname\"));\n/* 102 */ user.setEmail(rs.getString(\"email\"));\n/* */ \n/* 104 */ list.add(user);\n/* */ }\n/* */ \n/* 107 */ } catch (Exception e) {\n/* 108 */ e.printStackTrace();\n/* */ } finally {\n/* 110 */ closeDB();\n/* */ } \n/* */ \n/* 113 */ return list;\n/* */ }",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"@Override\n\tpublic List<StudentRMBO> getAllStudent() {\n\t\tStudentRMBO bo=null;\n\t\tList<StudentRMBO> lrmbo=null;\n\t\ttry {\n\t\t\t\n\t\t\tMap<String ,RowMapper<?>> logginMapper=new HashMap<String , RowMapper<?>>();\n\t\t\tlogginMapper.put(\"result-1\", new RowMapper<StudentBO>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic StudentBO mapRow(ResultSet rs, int pos) throws SQLException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tStudentBO sbo=new StudentBO();\n\t\t\t\t\tList<StudentBO> lbo=new ArrayList<StudentBO>();\n\t\t\t\t\tResultSetMetaData rsmd=(ResultSetMetaData) rs.getMetaData();\n\t\t\t\t\tint columnCount=rsmd.getColumnCount();\n\t\t\t\n\t\t\t\t\tif(columnCount>1) {\n\t\t\t\t\t\n\t\t\t\t\t\tsbo.setName(rs.getString(\"name\"));\n\t\t\t\t\t\tsbo.setRollNumber(rs.getString(\"rollNumber\"));\n\t\t\t\t\t\tsbo.setMaths(rs.getInt(\"Maths\"));\n\t\t\t\t\t\tsbo.setEnglish(rs.getInt(\"English\"));\n\t\t\t\t\t\tsbo.setScience(rs.getInt(\"Science\"));\n\t\t\t\t\t\tlbo.add(sbo);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn sbo;\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tbo=new StudentRMBO();\n\t\t\tlrmbo=new ArrayList<StudentRMBO>();\n\t\t\tMap<String ,Integer> outParam=SPutil.getEmptyOutputParams();\n\t\t\tMapSqlParameterSource inputParam=SPutil.spInputParameters();\n\t\t\tMap<String, Object> m=SPutil.executeMultiple(ds, null, SPutil.get_Student, inputParam, outParam, logginMapper);\n\t\t\tArrayList al=(ArrayList) m.get(\"result-1\");\n\t\t\tSystem.out.println(\"array in dao \"+al);\n\t\t\tSystem.out.println(\"array size \"+al.size());\n\n\t\t\tfor(int i=0 ;i<=al.size()-1;i++) {\n\t\t\tbo.setBo( (StudentBO) al.get(i));\n\t\t\tlrmbo.add(bo);\n\t\t\tSystem.out.println(\"in for i= \"+ i);\n\t\t\tSystem.out.println(\"in for \"+ bo);\n\t\t\t}\n\t\t\t\n\t\t\t\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\n\t\tSystem.out.println(\"student info\"+bo);\n\n\t\treturn lrmbo;\n\t}",
"public List getInfoListAllServiceByOrm(String sql, List placeList, Class outClass) throws Exception{\n\t\tList<Map> tempList=getInfoListAllServiceBySql(sql, placeList);\r\n\t\tList retList=new ArrayList();\r\n\t\tif(outClass!=null){\r\n\t\t\tfor(Map rowMap:tempList){\r\n\t\t\t\tretList.add(MicroBeanMapUtil.mapToBean(rowMap, outClass));\r\n\t\t\t}\t\r\n\t\t}else{\r\n\t\t\tretList=tempList;\r\n\t\t}\t\r\n\t\treturn retList;\r\n\t}",
"public List<Map<String, Object>> findForListMap(final String sql, Object... parameters) {\n\t\ttry {\n\t\t\tAssert.hasText(sql, \"sql语句不正确!\");\n\t\t\treturn simpleJdbcTemplate.queryForList(sql, parameters);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public List sqlQuery(String sql,Object... params);",
"public List<T> enumerate() throws SQLException;",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<T> getList() {\n\t\tthis.hql = \"select m from \" + entityClassName + \" as m \";\n\t\tList<T> resultSet = entity.createQuery(this.hql).getResultList();\n\t\treturn resultSet;\n\t}",
"public DressDaoJdbc(NamedParameterJdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }",
"@Override\r\n\tpublic List<ServicesDto> list() {\r\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"FROM ServicesDto WHERE active = TRUE\").list();\r\n}",
"List<Commodity> selectAll(@Param(\"beginRow\") int beginRow,@Param(\"pageSize\") int pageSize);",
"@Override\r\n\tpublic List<HashMap<String, Object>> queryList(HashMap<String, Object> map) {\n\t\treturn crawlerCronJobDao.queryList(map);\r\n\t}",
"@Override\r\n public List<ActiveStatusModel> listActiveStatus() {\r\n return jdbcTemplate.query(SQL_SELECT, new ActiveStatusHelper());\r\n }",
"public SampletypeBean[] loadByPreparedStatement(PreparedStatement ps, int[] fieldList) throws SQLException\n {\n ResultSet rs = null;\n java.util.ArrayList v = null;\n try\n {\n rs = ps.executeQuery();\n v = new java.util.ArrayList();\n while(rs.next())\n {\n if(fieldList == null)\n v.add(decodeRow(rs));\n else \n v.add(decodeRow(rs, fieldList));\n }\n return (SampletypeBean[])v.toArray(new SampletypeBean[0]);\n }\n finally\n {\n if (v != null) { v.clear(); v = null;}\n getManager().close(rs);\n }\n }",
"@Override\r\npublic Collection<Customer> getCustomersByCity(String city) \r\n{ \r\n\tlogger.info(\"---DAO getCustomersByCity \"+city);\r\n\t //String searchClause = email.toLowerCase();\r\n\t //String qryString = \"from City where LOWER(cityName) LIKE :param\";\r\n\t //String qryString = \"from Customer, Address, City where City.city_id = Address.city_id and Address.address_id = Customer.address_id and LOWER(City.city) = :param\";\r\n\t\tString qryString = \"from Customer cu, Address a, City ci where ci.city_id = a.city_id and a.address_id = cu.address_id and LOWER(ci.city) = :param\";\r\n\t \t \r\n\t EntityManager em = emf.createEntityManager();\r\n\t Query qry = em.createQuery(qryString);\r\n\t qry.setParameter(\"param\", city.toLowerCase());//binding parameter to mitigate SQL Injection attacks\r\n\t \r\n\t List resultList = qry.setMaxResults(ProjectConstants.MAX_RESULTS_PAGE)\r\n\t\t\t \t\t\t .getResultList();\r\n\t \r\n\t logger.info(\"------------resultList.size() \"+resultList.size());\r\n\t \r\n\t if(resultList == null || resultList.size() == 0)\r\n\t {\r\n\t\t return null;\r\n\t }\t \t \r\n\t \r\n\t return resultList;\t\r\n}",
"List<Bill> all() throws SQLException;",
"public InstitutionBean[] loadUsingTemplate(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer where = new StringBuffer(\"\");\n StringBuffer _sql = new StringBuffer(\"SELECT \" + ALL_FIELDS + \" from institution WHERE \");\n StringBuffer _sqlWhere = new StringBuffer(\"\");\n try\n {\n int _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"institutionid= ?\");\n }\n \n if (pObject.isNameModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"name= ?\");\n }\n \n if (pObject.isAddressModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"address= ?\");\n }\n \n if (pObject.isCodeModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"code= ?\");\n }\n \n if (pObject.isProviderModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"provider= ?\");\n }\n \n if (pObject.isHeaderlogoModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"headerlogo= ?\");\n }\n \n if (pObject.isIsoModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"iso= ?\");\n }\n \n if (pObject.isFullnameModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"fullname= ?\");\n }\n \n if (pObject.isPhoneModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"phone= ?\");\n }\n \n if (pObject.isUrlModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"url= ?\");\n }\n \n if (pObject.isParentidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"parentid= ?\");\n }\n \n if (pObject.isCompanyidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"companyid= ?\");\n }\n \n if (_dirtyCount == 0) {\n throw new SQLException (\"The pObject to look for is invalid : not initialized !\");\n }\n _sql.append(_sqlWhere);\n c = getConnection();\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeQuery();\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }",
"@Override\n public List list() throws TransactionException {\n return hibernateQuery.list();\n }",
"@Override\n\tpublic List<?> getListSQLDinamic(String sql) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Object query(String sql) {\n\t\tSystem.out.println(\"HotelDAO.query sql:\" + sql);\n\t\tLinkedList<HotelBean> hotelBeans = new LinkedList<>();\n\t\ttry {\n\t\t\t//建立数据库链接\n\t\t\tConnection c = openDBConnection();\n\t\t\tStatement st = c.createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tHotelBean hotelBean = new HotelBean();\n\t\t\t\tResultSetMetaData rsmd = rs.getMetaData();\n\t\t\t\tint columns = rsmd.getColumnCount();\n\t\t\t\tfor(int i = 0; i < columns; i++) {\n\t\t\t\t\tswitch (rsmd.getColumnName(i + 1)) {\n\t\t\t\t\tcase \"hotel_number\":\n\t\t\t\t\t\thotelBean.setHotelNumber(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"hotel_name\":\n\t\t\t\t\t\thotelBean.setHotelName(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"address\":\n\t\t\t\t\t\thotelBean.setAddress(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"location_city\":\n\t\t\t\t\t\thotelBean.setLocationCity(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thotelBeans.add(hotelBean);\n\t\t\t}\n\t\t\trs.close();\n\t\t\tst.close();\n\t\t\t//关闭数据库链接\n\t\t\tcloseDBConnection(c);\n\t\t\treturn hotelBeans;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Error executing sql.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public static ArrayList<Location> GetAllLocations(){\n \n ArrayList<Location> Locations = new ArrayList<>();\n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM location\")){\n \n while(resultSet.next())\n {\n Location location = new Location();\n location.setCity(resultSet.getString(\"City\"));\n location.setCity(resultSet.getString(\"AirportCode\"));\n Locations.add(location);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Locations;\n }",
"public void getByrGrpWklyOcfList(String queryString, I000091Bean bean){\r\n\t\t\r\n\t\t\tQuery query = entityManager\r\n\t\t\t\t\t.createNativeQuery(queryString);\r\n\t\t\t/**ResultSet of Buyer Group Weekly Ocf*/\r\n\t\t\tList<Object[]> selectResultSet = query.getResultList();\r\n\t\t\t\r\n\t\t\tif(selectResultSet != null && !(selectResultSet.isEmpty())){\r\n\t\t\t\tisDataExist = true;\r\n\t\t\t\tdataLength = dataLength + selectResultSet.size();\r\n\t\t\t\tfinalList.addAll(getWklyOcfList(selectResultSet,bean.getByrGrpCd()));\r\n\t\t\t}else{\r\n\t\t\t\tcommonutility.setStatus(PDConstants.INTERFACE_UNPROCESSED_STATUS);\r\n\t\t\t\tcommonutility.setRemarks(PDMessageConsants.M00354.replace(PDConstants.ERROR_MESSAGE_1, PDConstants.EXTRACT_PORCD + \" \"+porCd+ \" \"+bean.getByrGrpCd())\r\n\t\t\t\t\t\t\t.replace(PDConstants.ERROR_MESSAGE_2, PDConstants.BUYER_GROUP_WEEKLY_OCF_LIMIT_TRN));\r\n\t\t\t\tLOG.error(PDMessageConsants.M00354.replace(PDConstants.ERROR_MESSAGE_1, PDConstants.EXTRACT_PORCD + \" \"+porCd+ \" \"+bean.getByrGrpCd())\r\n\t\t\t\t\t\t\t.replace(PDConstants.ERROR_MESSAGE_2, PDConstants.BUYER_GROUP_WEEKLY_OCF_LIMIT_TRN));\r\n\t\t\t}\r\n\t}"
] | [
"0.66019917",
"0.6493439",
"0.64726317",
"0.6439539",
"0.6297319",
"0.6267256",
"0.6204957",
"0.6184753",
"0.606808",
"0.60589296",
"0.6015135",
"0.60142154",
"0.59678036",
"0.5942687",
"0.5935391",
"0.5932997",
"0.59170306",
"0.5916342",
"0.59004724",
"0.5895873",
"0.5887581",
"0.58874154",
"0.58785385",
"0.5877992",
"0.58739686",
"0.58712584",
"0.5855171",
"0.58518857",
"0.58484894",
"0.58409375",
"0.58267206",
"0.579776",
"0.57535815",
"0.5738124",
"0.56955236",
"0.56903243",
"0.5687913",
"0.5668213",
"0.564758",
"0.5647576",
"0.5620374",
"0.5620188",
"0.5613608",
"0.5604495",
"0.55795336",
"0.55776924",
"0.5566499",
"0.55536634",
"0.5548294",
"0.55477947",
"0.5536017",
"0.55336624",
"0.5533274",
"0.5532985",
"0.5529127",
"0.5528478",
"0.55257607",
"0.5524952",
"0.55224895",
"0.5521143",
"0.551856",
"0.55167055",
"0.55159044",
"0.5514762",
"0.55122143",
"0.54980415",
"0.5487722",
"0.54855096",
"0.54801387",
"0.5477416",
"0.5474652",
"0.54742426",
"0.54729676",
"0.5470669",
"0.5467726",
"0.5464451",
"0.54619586",
"0.5451126",
"0.5438421",
"0.54342633",
"0.54286104",
"0.5404804",
"0.54035676",
"0.539995",
"0.53950346",
"0.53932357",
"0.5383499",
"0.5377866",
"0.5375908",
"0.5370763",
"0.5368817",
"0.5365348",
"0.536428",
"0.53637093",
"0.53626406",
"0.53601235",
"0.5355525",
"0.53409076",
"0.5339303",
"0.5334007"
] | 0.6289364 | 5 |
TODO Autogenerated method stub | public static void main(String[] args) throws IOException {
MyParser2 p = new MyParser2();
p.connectDb();
p.parse();
//p.display();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
1)Creating a new thread 2)Inserting the elements in the data structure of the thread(Array List) by calling the InsertThread 3)In InsertThread, input file and array list is passed as the argument 4)Start the thread | public void threadsCreation(int numberOfThreads, MyArrayList myarr) throws InterruptedException {
read = new Thread[numberOfThreads];
for (int i = 0; i < numberOfThreads; i++) {
read[i] = new Thread(new InsertThread(input, myarr));
read[i].start();
}
for (int i = 0; i < numberOfThreads; i++) {
read[i].join();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void threadstorer()\r\n\r\n\t{\r\n\t\tThread threadstoreData = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//loadData(inputFile1);\r\n\t\t\t\t\tUtility.writeTofile(wordList, outputFile1);\r\n\t\t\t\t\tSystem.out.println(\"Word Stored\");\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in storing data: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tThread threadstorePattern = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tUtility.writeTofile(patternOut, outputFile2);\r\n\t\t\t\t\tSystem.out.println(\"Pattern stored\");\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in storing pattern: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthreadstoreData.run();\r\n\t\tthreadstorePattern.run();\r\n\t}",
"public static void main(String[] args) {\n\n ArrayList<String> lstNames = null;\n try {\n\n lstNames = readFromFile_getNamesList();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n CountDownLatch latch = new CountDownLatch(1);\n MyThread threads[] = new MyThread[1000];\n for(int i = 0; i<threads.length; i++){\n\n threads[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads.length; i++){\n threads[i].start();\n }\n latch.countDown();\n for(int i = 0; i<threads.length; i++){\n try {\n threads[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n try {\n System.out.println(\"Sleeeeeeeping....\");\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n latch = new CountDownLatch(1);\n MyThread threads2[] = new MyThread[1000];\n for(int i = 0; i<threads2.length; i++){\n threads2[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads2.length; i++){\n threads2[i].start();\n }\n latch.countDown();\n }",
"public void insertRecords(){\n InsertToDB insertRecords= new InsertToDB(mDbhelper,mRecord);\n Log.i(TAG, \"starting insertion on a new Thread!!\");\n idlingResource.increment();\n new Thread(insertRecords).start();\n\n }",
"private void runThreads() {\n\t\tinsertionSort = new InsertionSortDemo(insertionData);\n\t\tquickSort = new QuickSortDemo(quickData);\n\t\t// add change listener\n\t\tinsertionSort.addPropertyChangeListener(this);\n\t\tquickSort.addPropertyChangeListener(this);\n\t\t//start the thread\n\t\tinsertionSort.execute();\n\t\tquickSort.execute();\n\t}",
"public static void main(String[] args) \n\t{\n\t\tString fileName = args[1];\n \n\t\t// The number of threads from command line\n\t\tint Th=Integer.parseInt(args[0]);\n\t\t\n Queue queue = new LinkedList();\n \n //push tasks from the file\n queue=pushTask(fileName);\n \n //check if the queue is empty opr not\n System.out.println(\"Output of queue.isEmpty():\"+queue.isEmpty());\n \n //create a pool of threads\n ExecutorService executor = Executors.newFixedThreadPool(Th);\n \n //run the jobs as read from the file\n \n long startTime = System.currentTimeMillis(); //store start time\n \n //System.out.println(System.currentTimeMillis());\n \n while(queue.isEmpty()==false)\n {\n //pop tasks one by one and feed it into the executer service\n Runnable worker = new LocalThread(popTask(queue));\n executor.execute(worker);\n //System.out.println(queue.isEmpty());\n }\n \n executor.shutdown();\t\t//shutdown executor service\n \n while (!executor.isTerminated()); //wait till the executor service ends\n \n long estimatedTime = System.currentTimeMillis() - startTime; //calculate the total time taken\n //System.out.println(System.currentTimeMillis());\n \n //print the time \n System.out.println(\"Finished all \"+ Th + \" threads in time:\" + estimatedTime + \"ms\");//:\"+ watch.getTotalTimeMillis() + \"ms or \"+ watch.getTotalTimeMillis()/1000.0 +\"s\");\n \n\t}",
"@Override\n public void run() {\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n System.out.println(Thread.currentThread().getName());\n AddDataFromFile();\n Thread.yield();\n /* try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }*/\n\n }",
"public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}",
"public static void main(String[] args) throws InterruptedException {\n\t\tArrayList<Integer> list = createRandomList(2500000);\n\t\t\n\t\t//heap array\n\t\tArrayList<Integer> subList1 = new ArrayList<>(list.subList(0, 999999));\n\t\tArrayList<Integer> subList2 = new ArrayList<>(list.subList(1000000, 1499999));\n\t\tArrayList<Integer> subList3 = new ArrayList<>(list.subList(1500000, 2500000));\n\n\n\n\t\tMythread mt1 = new Mythread(subList1, \"Thread 1\");\n\t\tMythread mt2 = new Mythread(subList2, \"Thread 2\");\n\t\tMythread mt3 = new Mythread(subList3, \"Thread 3\");\n\t\t\n\t\tmt1.getThrd().start();\n\t\tmt2.getThrd().start();\n\t\tmt3.getThrd().start();\t\n\t\t\n\t\tmt1.getThrd().join();\n\t\tmt2.getThrd().join();\n\t\tmt3.getThrd().join();\n\t\t\n\t\tArrayList<Integer> sumList = new ArrayList<>();\n\t\tsumList.addAll(subList1);\n\t\tsumList.addAll(subList2);\n\t\tsumList.addAll(subList3);\n\t\t\n\t\twriteFile(sumList, \"output.txt\");\n\n\t}",
"public static void main(String[] args)\r\n\t{\n\t\tint n = Integer.parseInt(JOptionPane.showInputDialog(\"Please Enter Size Of Array:\"));\r\n\t\tint m = Integer.parseInt(JOptionPane.showInputDialog(\"Please Enter Number Of Threads:\"));\r\n\r\n\t\tint threadIndex = 0;\r\n\r\n\t\t//array of random numbers from 1-100\r\n\t\tint[] arr = new int[n];\r\n\r\n\t\t//ArrayList storage represent the storage of the elements from the array arr\r\n\t\tArrayList<Integer> storage = new ArrayList<>();\r\n\r\n\t\t//initialize object Controller that control and handling all threads methods\r\n\t\tController c = new Controller();\r\n\r\n\t\t//initialize random numbers into array arr with size of n\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t{\r\n\t\t\tarr[i] = 1 + (int) (Math.random() * 100);\r\n\t\t\t//uncomment line below to print numbers in array\r\n\t\t\t//System.out.println(arr[i]);\r\n\t\t}\r\n\r\n\t\t//adding elements from original array to storage\r\n\t\tfor (int i = 0; i < arr.length; i++)\r\n\t\t{\r\n\t\t\tstorage.add(arr[i]);\r\n\t\t}\r\n\r\n\t\t//creating m threads and start them (calling run() method)\r\n\t\twhile(storage.size()>1 && threadIndex < m) {\r\n\t\t\t(new ThreadSum(storage, c)).start();\r\n\t\t} \r\n\r\n\t\t//wait for all threads to finish their work\r\n\t\tc.waitForAll(); \r\n\r\n\t\t//print last element in storage which is the sum\r\n\t\tSystem.out.println(\"Sum is: \" + storage.get(0));\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\t\twelcomeSocket= new ServerSocket(50501);\n\t\t\t \twhile (true){\n\t\t\t\t \tSystem.out.println(\"Waiting for a client....\");\n\t\t\t\t\tSocket clientConnect = welcomeSocket.accept(); // connect client to socket\n\t\t\t\t\tSystem.out.println(\"A connection has been made.\");\n\t\t\t\t\tfor (int i=0;i<iter;i++){\n\t\t\t\t\t\tString [][] myFileListtemp=arr[i].GetFileList();\n\t\t\t\t\t\tint tempit=myFileListtemp[0].length-myFileList[0].length;\n\t\t\t\t\t\titerator=iterator+tempit;\n\t\t\t\t\t\tif (tempit!=0){\n\t\t\t\t\t\t\tfor (int i1=myFileList[0].length;i1<myFileListtemp[0].length;i1++){\n\t\t\t\t\t\t\t\tif (iterator >= myFileList[0].length) {\n\t\t\t\t\t\t\t\t\tupdateArray();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmyFileList[0][i]=myFileListtemp[0][i];\n\t\t\t\t\t\t\t\tmyFileList[1][i]=myFileListtemp[1][i];\n\t\t\t\t\t\t\t\tmyFileList[2][i]=myFileListtemp[2][i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tclientIp=clientConnect.getInetAddress().getHostAddress();\t\t\t\t\n\t\t\t\t\tBufferedReader inBuf = new BufferedReader(new InputStreamReader(clientConnect.getInputStream()));\n\t\t\t\t\tPrintWriter outBuf= new PrintWriter(new OutputStreamWriter(clientConnect.getOutputStream()),true);\n\t\t\t\t\tString clientport=inBuf.readLine();\n\t\t\t\t\tString name=inBuf.readLine();\n\t\t\t\t\twhile (!(name.equals(\"-\"))){\n\t\t\t\t\t\tmyFileList[0][iterator]=name;\n\t\t\t\t\t\tmyFileList[1][iterator]=clientIp;\n\t\t\t\t\t\tmyFileList[2][iterator]=clientport;\n\t\t\t\t\t\tname=inBuf.readLine();\n\t\t\t\t\t\titerator++;\n\t\t\t\t\t\tif (iterator >= myFileList[0].length) {\n\t\t\t\t\t\t\tupdateArray();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tarr[iter]=new ServerBThread(clientConnect,clientport);\n\t\t\t\t\tfor (int i=0;i<=iter;i++){\n\t\t\t\t\t\tarr[i].PutFileList(myFileList);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"File List Updated\");\n\t\t\t\t\tThread T = new Thread(arr[iter]);\n\t\t\t\t\tT.start();\n\t\t\t\t\titer++;\n\t\t\t\t\tif (iter >= arr.length) {\n\t\t\t\t\t\tupdateArrayth();\n\t\t\t\t\t}\n\t\t\t\t} \t\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t}",
"public void run(){\n\t\tFileFeeder fileFeeder = new FileFeeder(mySQLConnection,logWindow, fileIssueList, true);\n\t\tThread feederThread = new Thread(fileFeeder);\n\t\tfeederThread.start();\n\t\twhile (moreFilesComing || !fileList.isEmpty()){ //if more data still to process or more data coming\n\t\t\tDataFile dataFile;\n\t\t\tif ((dataFile = fileList.poll()) != null){ //something to actually write\n\t\t\t\tsynchronized(fileList){\n\t\t\t\t\tfileList.notify();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlogWindow.println(\"Processing data from file: \"+dataFile.fileName+\"...\");\n\t\t\t\t\n\t\t\t\tBufferedReader inputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tinputStream = new BufferedReader(new FileReader(dataFile.file));\n\t\n\t\t\t\t\tString fileDateFormat = getFileInfo(dataFile,inputStream);\n\t\t\t\t\t\n\t\t\t\t\tif (dataFile.frequency!=0 && !dataFile.meterSerial.equals(\"\")){ //if got valid info\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tString fileExistsSQL = \"SELECT * FROM files WHERE site_id = \"+dataFile.siteID+\" AND source_id = \"+dataFile.sourceID+\" AND file_name = '\"+dataFile.fileName+\"' AND meter_sn = '\"+dataFile.meterSerial+\"' AND frequency = \"+dataFile.frequency;\n\t\t\t\t\t\t\tResultSet fileExistsQuery = dbConn.createStatement().executeQuery(fileExistsSQL);\n\t\t\t\t\t\t\tif (fileExistsQuery.next()==false){ //if no files with same site,source,filename,meterserial and frequency exist\n\n\t\t\t\t\t\t\t\tgetValidData(dataFile,fileDateFormat,inputStream);\n\n\t\t\t\t\t\t\t\tif (dataFile.dataList.size()>0){\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Processing of data complete.\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t/*try{\n\t\t\t\t\t\t\t\t\t\tString fetchRangeLimitsSQL = \"SELECT min,max FROM ranges WHERE source_id = \"+dataFile.sourceID+\" AND site_id = \"+dataFile.siteID;\n\t\t\t\t\t\t\t\t\t\tResultSet fetchRangeLimitsRS = dbConn.createStatement().executeQuery(fetchRangeLimitsSQL);\n\n\t\t\t\t\t\t\t\t\t\tif (fetchRangeLimitsRS.next()){\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = fetchRangeLimitsRS.getDouble(\"min\");\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = fetchRangeLimitsRS.getDouble(\"max\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"No range limits found for \"+dataFile.sourceID+\" or site \"+dataFile.siteID+\". Adding defaults now...\");\t\n\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = Source.getRangeMin(dataFile.sourceType,dataFile.measurementType);\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = Source.getRangeMax(dataFile.sourceType,dataFile.measurementType,dataFile.frequency);\n\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\tString setRangeLimitsSQL = \"INSERT INTO ranges (site_id,source_id,min,max) VALUES(\"+dataFile.siteID+\",\"+dataFile.sourceID+\",\"+dataFile.rangeMin+\",\"+dataFile.rangeMax+\")\";\n\t\t\t\t\t\t\t\t\t\t\t\tdbConn.createStatement().executeUpdate(setRangeLimitsSQL);\n\t\t\t\t\t\t\t\t\t\t\t}catch(SQLException sE){ //NON FATAL\n\t\t\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"Warning: could not write range limits to database for file \"+dataFile.fileName+\".\");\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t\t\t\t\t\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(\"GMT+10\"));\n\t\t\t\t\t\t\t\t\t\tdataFile.startDate = dateFormatter.format(dataFile.dataList.get(0).dateTime);\n\t\t\t\t\t\t\t\t\t\tdataFile.endDate = dateFormatter.format(dataFile.dataList.get(dataFile.dataList.size()-1).dateTime);*/\n\n\t\t\t\t\t\t\t\t\t\tfileFeeder.addFile(dataFile); //Send file to feeder\n\n\t\t\t\t\t\t\t\t\t/*} catch (SQLException sE){\n\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\n\t\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". No Data found in file.\");\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\telse{\n\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". This file already exists for source \"+dataFile.sourceID+\" at site \"+dataFile.siteID+\".\");\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch(SQLException sE){\n\t\t\t\t\t\t\t//TODO need error here\n\t\t\t\t\t\t\tsE.printStackTrace();\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\tlogWindow.println(dataFile.frequency+\" \"+dataFile.meterSerial);\n\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". Could not determine essential file information.\");\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t} catch (IOException err){\n\t\t\t\t\tdataFile.dataList.clear();\n\t\t\t\t\tlogWindow.println(\"Unable to read from file: \"+dataFile.fileName+\"\\r\\nNo data will be written from this file.\");\n\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\n\t\t\t\t} finally {\n\t\t\t\t\tif (inputStream != null){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinputStream.close();\n\t\t\t\t\t\t} catch (IOException err) {\n\t\t\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\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\ttry{\n\t\t\t\tsynchronized(fileList){ //waiter\n\t\t\t\t\twhile (moreFilesComing && fileList.isEmpty()){\n\t\t\t\t\t\tfileList.notify(); //notify adder just in case things got stuck\n\t\t\t\t\t\tfileList.wait(); //wait for a file to be added to file List.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tsynchronized(fileFeeder.fileList){\n\t\t\tfileFeeder.moreFilesComing = false;\n\t\t\tfileFeeder.fileList.notify();\n\t\t}\n\t\ttry {\n\t\t\tfeederThread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Date endTime = new Date();\n\t\t//logWindow.println(\"Finished sending file(s) to writer for source: \"+sourceID);\n\t\t//logWindow.println(\"Time taken: \"+getTimeString(endTime.getTime()-startTime.getTime()));\n\t}",
"public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void threadloader()\r\n\r\n\t{\r\n\t\tThread threadloadData = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadData(inputFile1);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading data: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tThread threadloadPattern = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadPattern(inputFile2);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading pattern: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthreadloadData.run();\r\n\t\tthreadloadPattern.run();\r\n\t}",
"public static void main(String[] args)\n\t{\n\t\tString fullFile = \"\";\n\t\tint lineAmount = 0;\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(\n\t\t\t\t\tnew FileReader(\"alice.txt\"));\n\t\t\t\n\t\t\tString st = br.readLine();\n\t\t\t//int counter = 0;\n\t\t while (st != null)\n\t\t {\n\t\t \t//fullFile[counter] = st;\n\t\t \tfullFile += st;\n\t\t \t//System.out.println(st);\n\t\t \tst = br.readLine();\n\t\t \tlineAmount++;\n\t\t \t//counter++;\n\t\t }\n\t\t br.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint processors = Runtime.getRuntime().availableProcessors();\n\t\tSystem.out.println(\"Num of processors: \" + processors);\n\t\t\n\t\tForkJoinPool forkJoinPool = new ForkJoinPool(processors);\n\t\t\n\t\tint x = fullFile.length() / processors;\n\t\t\n//\t\tint count = 0;\n//\t\tint stoppingPointForLastThread = 0;\n\t\t\n//\t\tfor(int i = 0; i < fullFile.length(); i++)\n//\t\t{\n//\t\t\tif(fullFile.charAt(i) == '\\n')\n//\t\t\t{\n//\t\t\t\tcount++;\n//\t\t\t}\n//\t\t\t\n//\t\t\tif(count >= processors)\n//\t\t\t{\n//\t\t\t\tThread t = new Thread( fullFile.substring(\n//\t\t\t\t\t\tstoppingPointForLastThread, i) );\n//\t\t\t\t\n//\t\t\t\tstoppingPointForLastThread = i;\n//\t\t\t\tcount = 0;\n//\t\t\t}\n//\t\t}\n\t\t\n\t\tint divisionOfWork = (lineAmount * 40) / processors;\n\t\t\n//\t\tThread t = new Thread( fullFile.substring(0, \n//\t\t\t\tdivisionOfWork) );\n//\t\tThread t = new Thread( \n//\t\t\t\tfullFile.substring(divisionOfWork, \n//\t\t\t\tdivisionOfWork * 2) );\n\t\t\n\t\t//FORKJOIN\n\t\tAtomicInteger wordCount = new AtomicInteger(0);\n\t\tfor(int i = 0; i < processors; i++)\n\t\t{\n\t\t\tDataParallelThread t = new DataParallelThread( \n\t\t\t\t\tfullFile.substring(divisionOfWork * i, \n\t\t\t\t\tdivisionOfWork + (divisionOfWork * i)) );\n\t\t\t\n\t\t\twordCount.getAndAdd(\n\t\t\t\t\tforkJoinPool.invoke(t).get()\n\t\t\t\t\t);\n\t\t}\n\t\tSystem.out.println(\"Word count of \\\"the\\\" is: \" + \n\t\t\t\twordCount);\n\t\t\n\t\t//THREAD\n\t\tMyThread[] threads = new MyThread[processors];\n\t\tfor(int i = 0; i < processors; i++)\n\t\t{\n\t\t\tMyThread t = new MyThread( \n\t\t\t\t\tfullFile.substring(divisionOfWork * i, \n\t\t\t\t\tdivisionOfWork + (divisionOfWork * i)) );\n\t\t\t\n\t\t\tt.run();\n\t\t\tthreads[i] = t;\n\t\t}\n\t\t\n\t\tint wordCount2 = 0;\n\t\tfor(int i = 0; i < processors; i++)\n\t\t{\n\t\t\twordCount2 += threads[i].WordCount();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Word count of \\\"the\\\" is: \" + \n\t\t\t\t\twordCount2);\n\t\t\n\t\t\n\t\t\n//\t\tint wordCount = 0;\n//\t\tfor(int i = 0; i < processors; i++)\n//\t\t{\n//\t\t\twordCount += forkJoinPool.\n//\t\t}\n\t}",
"public static void main(String args[]){\r\n Object objArray;\r\n \r\n \t Scanner input = new Scanner(System.in);\r\n \t // display on console enter file name\r\n \t System.out.println(\"Enter array list data separated by a comma - for example 1, 2, 3, 4 : \");\r\n\r\n \t input = new Scanner(System.in);\r\n Object arrayListInput = input.nextLine();\r\n \r\n // create instance of class ArrayList.java\r\n \t Arraylist arrayList = new Arraylist();\r\n\r\n \t // load input data into array list object\r\n \t arrayList.loadArrayList(arrayListInput);\r\n\r\n \t // determine if array list object is empty \t \r\n \t boolean arrayListEmpty = arrayList.isEmpty();\r\n \t \r\n \t System.out.println(\"Is the array list empty \" + arrayListEmpty);\r\n \r\n arrayList.add(\"10\"); \r\n \t System.out.println(\"Add object to array list\");\r\n \t \r\n objArray = arrayList.get(5);\r\n \t System.out.println(\"Get object from array list \");\r\n \r\n }",
"public static void main(String[] argv) throws Exception\n {\n String basePath = \"/data/TreeKernel/data/\";\n //basePath = \"/Users/u6042446/IdeaProjects/TreeKernels/data/\";\n\n //String readPath = basePath + argv[0];\n String index = argv[2];\n //String index = \"0\";\n int numThreads = Integer.parseInt(argv[0]);\n //int numThreads = 2;\n String readPath = argv[1];\n //String readPath = basePath + \"ANC_written_sentenceperline_v5.txt\";\n String writePath = basePath + \"stats\";\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(readPath),\"UTF-8\"));\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(writePath),\"UTF-8\"));\n\n String line;\n\n int counter = 0;\n LinkedList<Sentence> allRecords = new LinkedList<Sentence>();\n while ((line=reader.readLine())!=null)\n {\n String[] split = line.split(\"\\t\");\n String text = split[1];\n int Id = Integer.parseInt(split[0]);\n int sentLength = Integer.parseInt(split[2]);\n if (sentLength>=lowSentLengthThreshold && sentLength<=highSentLengthThreshold)\n {\n allRecords.add(new Sentence(text,sentLength,Id));\n }\n }\n reader.close();\n //slice data\n\n //ANCExperiment experiment = new ANCExperiment(allRecords,writePath+\"_\"+index+\".txt\",index);\n //experiment.run();\n\n ExecutorService pool = Executors.newFixedThreadPool(numThreads);\n List<List<Sentence>> slices = sliceList(allRecords,allRecords.size()/numThreads);\n //pool.execute(new ANCExperiment(slices.get(0),writePath+\"_\"+0+\".txt\",0));\n\n //Create a list of tasks\n //System.out.print(slices.get(1).size()+\"\\n\");\n //System.exit(0);\n int workerId = 0;\n for (List<Sentence> slice: slices)\n {\n Runnable worker = new ANCExperiment(slice,writePath+\"_\"+workerId+ \"_\" + index + \".txt\",workerId);\n workerId+=1;\n pool.execute(worker);\n }\n pool.shutdown();\n // Wait until all threads are finish\n pool.awaitTermination(100,TimeUnit.HOURS);\n writer.close();\n }",
"public CreateWorkers(FileProcessor f, TreeManager t, Results r1, int nt, String[] dltwords){\r\n\t\t//Output debug message\r\n\t\tr1.writeToScreen(\"CreateWorkers created\\n\", MyLogger.DebugLevel.CONSTRUCTOR);\r\n\t\t\r\n\t\t//Set values\r\n\t\tfp = f;\t\r\n\t\ttm = t;\r\n\t\tr = r1;\r\n\t\tpts = new PopulateThread[nt];\r\n\t\tdlts = new DeleteThread[nt];\r\n\t\tfor(int i = 0; i < nt; i++){\r\n\t\t\tpts[i] = new PopulateThread(fp, r, tm);\r\n\t\t\tdlts[i] = new DeleteThread(r, tm, dltwords[i]);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n String fermate = \"\";\r\n Scanner scanner = new Scanner(System.in);\r\n System.out.println(\"Inserisci le fermate:(ogni fermata deve essere diviso da una ,)\");\r\n fermate = scanner.nextLine();\r\n fermate+=\", \";\r\n String[] fermateBus = fermate.split(\",\");\r\n ArrayList<String[]> elencoCorse = new ArrayList<String[]>();\r\n elencoCorse.add (AddCorsa(1));\r\n elencoCorse.add (AddCorsa(2));\r\n elencoCorse.add (AddCorsa(3));\r\n elencoCorse.add (AddCorsa(4));\r\n elencoCorse.add (AddCorsa(5));\r\n String ComunePartenza = \"\";\r\n String ComuneArrivo = \"\";\r\n System.out.println(\"Inserisci il comune di partenza\");\r\n ComunePartenza = scanner.nextLine();\r\n System.out.println(\"Inserisci il comune di arrivo\");\r\n ComuneArrivo = scanner.nextLine();\r\n //Thread\r\n DatiCondivisi datiCon = new DatiCondivisi(ComunePartenza, ComuneArrivo, fermateBus, elencoCorse);\r\n CercaTh th1 = new CercaTh(datiCon, 0);\r\n CercaTh th2 = new CercaTh(datiCon, 1);\r\n CercaTh th3 = new CercaTh(datiCon, 2);\r\n CercaTh th4 = new CercaTh(datiCon, 3);\r\n CercaTh th5 = new CercaTh(datiCon, 4);\r\n th1.start();\r\n th2.start();\r\n th3.start();\r\n th4.start();\r\n th5.start();\r\n th1.join();\r\n th2.join();\r\n th3.join();\r\n th4.join();\r\n th5.join();\r\n //al termine il programma visualizzerà il numero di corse trovate e gli orari di ogni corsa\r\n if (datiCon.getCountCorseTrovate() > 0) {\r\n System.out.println(\"Corse trovate:\" + datiCon.getCountCorseTrovate());\r\n visualizza(datiCon.getOrePartArr());\r\n } else {\r\n System.out.println(\"Corse non trovate\");\r\n }\r\n }",
"public void run() throws Exception {\n\n\t\tYaml yaml = new Yaml();\n\t\tCollection<File> threadsInFolder = FileUtils.listFiles(new File(\"./runtime/\"), new String[] {\"yaml\"}, false);\n\t\tfinal List<Item> threadItems = new ArrayList<>();\n\t\t\n\t\tList<File> sortedList = new ArrayList<>(threadsInFolder);\n\t\tCollections.sort(sortedList);\n\t\t\n\t\tint index = 0;\n\t\tfor (File file : sortedList) {\n\t\t\tSystem.out.println(\"Loadling: \" + file.getName());\n\t\t\tList<String> list = (List<String>) yaml.load(new FileReader(file));\n\t\t\tString path = \"/data/thread/\"+index;\n\t\t\t//test\n\t\t\tfinal List<Item> items = toItems(list, path + \"_\");\n\n\t\t\tItem threadItem = new Item();\n\t\t\tString[] nameParts = file.getName().split(\"_thread_\");\n\t\t\tthreadItem.time = nameParts[0];\n\t\t\tthreadItem.thread = nameParts[1].replace(\".yaml\", \"\");\n\t\t\t\n\t\t\tif(true && items.size() == 0) {\n\t\t\t\tItem item = items.get(0);\n\t\t\t\tthreadItem.name = item.name;\n\t\t\t\tthreadItem.path = item.path;\n\t\t\t\tthreadItem.items = item.items;\n\t\t\t}else {\n\t\t\t\tthreadItem.items = items;\n\t\t\t\tthreadItem.name = \"Thread.run()\";\n\t\t\t\tthreadItem.path = path;\n\t\t\t}\n\t\t\t\n\t\t\tindex++;\n\t\t\tthreadItems.add(threadItem);\n\t\t}\n\n\t\tVertx vertx = Vertx.vertx();\n\t\tHttpServer server = vertx.createHttpServer();\n\n\t\tRouter router = Router.router(vertx);\n\n\t\trouter.route(\"/data\").handler(routingContext -> {\n\n\t\t\tJsonArray jsonArray = toJsonArray(threadItems);\n\n\t\t\tsendJsonResponseToClient(routingContext, jsonArray);\n\t\t});\n\n\t\trouter.route(\"/data/thread/:path\").handler(routingContext -> {\n\n\t\t\tString param = routingContext.request().getParam(\"path\");\n\n\t\t\tString[] pathIds = param.split(\"_\");\n\t\t\tList<Item> searchItems = threadItems;\n\t\t\tfor (int i = 0; i < pathIds.length; i++) {\n\t\t\t\tString s = pathIds[i];\n\t\t\t\tItem item = searchItems.get(Integer.parseInt(s));\n\t\t\t\tsearchItems = item.items;\n\t\t\t}\n\n\t\t\tJsonArray jsonArray = toJsonArray(searchItems);\n\n\t\t\tsendJsonResponseToClient(routingContext, jsonArray);\n\n\t\t});\n\n\t\trouter.route(\"/*\").handler(\n\t\t\t\tStaticHandler.create()\n\t\t\t\t\t.setCachingEnabled(false)\n\t\t\t\t\t.setMaxAgeSeconds(1));\n\t\t\n\n\t\tserver.requestHandler(router::accept).listen(8080);\n\n\t\tSystem.out.println(\"Server is running!\");\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\ttry {\n\t\t\t\t// TODO 载入文件\n\t\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\t\titemAdd(\"hehe\" + i, \"hehe\");\n\t\t\t\t}\n\t\t\t\thandler.sendEmptyMessage(0);\n\t\t\t\t// mSimpleAdapter.notifyDataSetChanged();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.i(\"错误显示\", e.getMessage());\n\t\t\t}\n\t\t}",
"private void start() {\n getLocationThread = new Thread() {\n @Override\n public void run() {\n while (!Thread.currentThread().isInterrupted()) {\n try {\n //Lock list data for add user location data\n synchronized (listData) {\n Location location = getCurrentLocation();\n UserLocation userLocation = new UserLocation(-1, -1);\n if(location != null){ //If get location success create new User location with latitude and longitude\n userLocation = new UserLocation(location.getLatitude(), location.getLongitude());\n }\n listData.add(userLocation);\n LogUtil.d(\"Location Collected\", listData.get(listData.size() - 1).toData());\n }\n sleep(TIME_WAIT_OF_LOCATION);\n } catch (InterruptedException e) {\n e.printStackTrace();\n Thread.currentThread().interrupt();\n }\n }\n }\n };\n getLocationThread.start();\n\n getBatteryThread = new Thread() {\n @Override\n public void run() {\n while (!Thread.currentThread().isInterrupted()) {\n try {\n //Lock list data for add battery data\n synchronized (listData) {\n listData.add(new BatteryInfo(batteryLevel));\n LogUtil.d(\"Battery Collected\", listData.get(listData.size() - 1).toData());\n }\n sleep(TIME_WAIT_OF_BATTERY);\n } catch (InterruptedException e) {\n e.printStackTrace();\n Thread.currentThread().interrupt();\n }\n }\n }\n };\n getBatteryThread.start();\n\n postDataThread = new Thread() {\n @Override\n public void run() {\n while (!Thread.currentThread().isInterrupted()) {\n if (listData.size() > lastDataSize && listData.size() % 5 == 0) {\n lastDataSize = listData.size();\n JSONArray ja = new JSONArray();\n for (Data data :\n listData) {\n if (data != null)\n ja.put(data.toData());\n }\n postData(API_TEST_URL, ja);\n LogUtil.d(\"PostData\", \"\" + listData.size());\n }\n }\n }\n };\n postDataThread.start();\n }",
"public void run() {\n\t\tSystem.out.println(\"fuseAdd\");\n\t\tAddConcurrent1 adder = new AddConcurrent1();\n\t\tValidateFusion validator = new ValidateFusion();\n\t\tint sum = adder.addConcurrent1(sortedSnapshot);\t\t\t \n\t\tvalidator.validate(sum, 2);\n\t\tGlobalInfo.completeThreads++;\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void run() {\n if (list != null) {\n for (int i = 0; i < list.size(); i++) {\n System.out.println(\" shuzi:\" + list.get(i));\n map.put(\" insert into testName (id,name) values('\" + list.get(i) + \"','\" + list.get(i) + \"')\", \"INSERT\");\n }\n }\n// mVDate.clear();\n// mVDate.add(map);\n// PubSubmit tSubmit = new PubSubmit();\n// tSubmit.submitData(mVDate, \"\");\n }",
"@Override\n\t\t\t\tpublic void run() \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"reading..\" +next.getFileName());\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t//ts1.finalWrite(next.getFileName(),(int)file.length());\n\t\t\t\t\t\t\tInputStream in = new FileInputStream(readFile);\n\t\t\t\t\t\t\tint i;\n\t\t\t\t\t\t\tint fileNameLength =readFile.length();\n\t\t\t\t\t\t\tlong fileLength = file.length();\n\t\t\t\t\t\t\tlong total = (2+fileNameLength+fileLength);\n\t\t\t\t\t\t\t//System.out.println(\"toal length\" +total);\n\t\t\t\t\t\t\tqu.put((byte)total);\n\t\t\t\t\t\t\tqu.put((byte)readFile.length()); // file name length\n\t\t\t\t\t\t\tqu.put((byte)file.length()); //file content length\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int j=0;j<readFile.length();j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)readFile.charAt(j)); //writing file Name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twhile((i=in.read())!=-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tqu.put((byte)i);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tin.close();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"public static void main(String[] args) {\n\t\tList<Integer> list1=new ArrayList<Integer>();\n\t\tlist1.add(1);\n\t\tlist1.add(2);\n\t\tlist1.add(3);\n\t\tlist1.add(4);\n\t\tnew MyThread(list1);\n\t}",
"public static void Reader(String fileName) throws FileNotFoundException{\n File filename=new File(fileName);\n Scanner sc=new Scanner(filename);\n row=sc.nextInt();\n col=sc.nextInt();\n arr=new float[row][col];\n\n // use US locale to be able to identify floats in the string\n sc.useLocale(Locale.US);\n \n for(int i=0;i<row;i++){\n for(int j=0; j<col; j++){\n arr[i][j]=sc.nextFloat();\n }\n }\n ArrayList<String> result=new ArrayList<String>();\n\n long tick=System.currentTimeMillis();\n DataThreadProcessor t=new DataThreadProcessor(arr,result, 1,row-1);\n long tock=System.currentTimeMillis()-tick;\n System.out.println(\"Time elapsed: \"+tock);\n ForkJoinPool.commonPool().invoke(t);\n\n for(String value: result){\n System.out.println(value);\n }\n }",
"public void uploadDataFromFile()\n {\n String jobSeekerFile = (\"JobSeeker.txt\");\n String jobRecruiterFile = (\"JobRecruiter.txt\");\n String jobFile = (\"Job.txt\");\n String notificationFile = (\"Notification.txt\");\n \n String jobSeekerLines = readFile(jobSeekerFile);\n String jobRecruiterLines = readFile(jobRecruiterFile);\n String jobLines = readFile(jobFile);\n String notificationLines = readFile(notificationFile);\n \n storeJobSeekersToJobSeekerList(jobSeekerLines);\n storeJobRecruitersToJobRecruiterList(jobRecruiterLines);\n storeJobsToJobList(jobLines);\n storeNotificationsToNotificationList(notificationLines);\n \n }",
"public static void main(String[] args) throws InterruptedException{\n\t\tint arraySize = 300;\n\t\t\t\t//Integer.parseInt(args[0]);\n\t\tint numberOfThreads = 25;\n\t\t\t\t//Integer.parseInt(args[1]);\n\t\t\n\t\t//Create IntList and sets the capacity to the first arguement\n\t\tIntList il = new IntList(arraySize);\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\t//Adds however many numbers specified to the IntList\n\t\tfor(int i = 0; i < arraySize - 1; i++){\n\t\t\til.add(r.nextInt(200));\n\t\t}\n\t\t\n\t\t//Creates number of threads specified and starts them all\n\t\tThread[] threads = new Thread[numberOfThreads];\n\t\tfor(int i = 0; i < threads.length; i++){\n\t\t\tthreads[i] = new Thread(new primeThread(il));\n\t\t\tthreads[i].start();\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tInptfilepath = args[0];\n\t\tblockName = args[1];\n\t\tnoOfFiles = Integer.parseInt(args[2]);\n\t\tthreadCount = Integer.parseInt(args[3]);\n\t\tOutputfilepath = args[4];\n\n\t\t\n\t\tSystem.out.println(\"Running Threads: \" + threadCount);\n\t\tSystem.out.println(\"Total Files: \" + noOfFiles);\n\t\t// System.out.println(\"File Name: \"+blockName);\n\t\tSystem.out.println(\"Input File Name: \" + Inptfilepath);\n\n\t\tdouble startTime = System.currentTimeMillis();\n\n\t\tfinal List<Integer> fileIndexes = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < noOfFiles; i++) {\n\t\t\tDividedfileList.add(\"/tmp/file-\" + String.format(\"%\" + blockName + \"d\", i) + \".txt\");\n\t\t\tfileIndexes.add(i);\n\t\t}\n\n\t\tFile file = new File(Inptfilepath);\n\t\ttotalLinesInMainFile = file.length();\n\t\tlinesPerFile = totalLinesInMainFile / noOfFiles / 100;\n\n\t\tThread[] mythread = new Thread[threadCount];\n\n\t\tfor (int count = 0; count < threadCount; count++) {\n\t\t\tmythread[count] = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor (int filePerThread = 0; filePerThread < noOfFiles / threadCount; filePerThread++) {\n\n\t\t\t\t\t\t\tint fileIndex = ((Integer.parseInt(Thread.currentThread().getName()) * noOfFiles)\n\t\t\t\t\t\t\t\t\t/ (threadCount)) + filePerThread;\n\t\t\t\t\t\t\tdoSort(fileIndexes.get(fileIndex));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmythread[count].setName(Integer.toString(count));\n\t\t\tmythread[count].start();\n\t\t}\n\n\t\tfor (int count = 0; count < threadCount; count++) {\n\t\t\tmythread[count].join();\n\t\t}\n\n\t\tSystem.out.println(\n\t\t\t\t\"Time taken in seconds to sort all files: \" + ((System.currentTimeMillis() - startTime) / 1000));\n\n\t\tSystem.out.println(\"Merging sorted files\");\n\n\t\tmergeSortedFiles();\n\n\t\tSystem.out.println(\"Total time taken in seconds to sort and merge single file: \"\n\t\t\t\t+ ((System.currentTimeMillis() - startTime) / 1000));\n\t}",
"public void run(){\n\tThreadGroup objThreadGroupUser = null;\n\tThread thUserInfo, thUserLoginInfo, thMergeInfo;\n\tUserInfo objUserInfo = null;\n\tUserLoginInfo objUserLoginInfo = null;\n\tMergeInfo objMergeInfo = null;\n\n\t\ttry{\n\t\t\tobjThreadGroupUser = new ThreadGroup(\"UserInfo\");\n\t\t\tobjThreadGroupUser.setMaxPriority(10);\n\n\t\t\t//creating thread to access the userInfo\n\t\t\tobjUserInfo = new UserInfo();\n\t\t\tthUserInfo = new Thread(objThreadGroupUser, (Runnable) objUserInfo, \"UserInfo\");\n\t\t\tthUserInfo.setPriority(MAX_PRIORITY);\n\t\t\tthUserInfo.start();\n\n\t\t\t//creating thread to access the userLoginINfo\n\t\t\tobjUserLoginInfo = new UserLoginInfo();\n\t\t\tthUserLoginInfo = new Thread(objThreadGroupUser, (Runnable) objUserLoginInfo, \"UsrLogInInfo\");\n\t\t\tthUserLoginInfo.setPriority(MAX_PRIORITY);\n\t\t\tthUserLoginInfo.start();\n\n\t\t\t//creating the thread for merge info class\n\t\t\tobjMergeInfo = new MergeInfo();\n\t\t\tthMergeInfo = new Thread(objThreadGroupUser, (Runnable) objMergeInfo, \"MeargeData\");\n\t\t\tthMergeInfo.setPriority(MAX_PRIORITY);\n\t\t\tThread.sleep(1000);\n\t\t\tthMergeInfo.start();\n\n\t\t\t//joining the threads\n\t\t\tthUserInfo.join();\n\t\t\tthUserLoginInfo.join();\n\t\t\tthMergeInfo.join();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfinally{\n\t\t\tobjUserInfo = null;\n\t\t\tobjUserLoginInfo = null;\n\t\t\tobjMergeInfo = null;\n\t\t}\n\t}",
"public static void main(String[] args) {\n \n FCrawler fc = new FCrawler();\n \n \n \n // now start all of the worker threads\n \n int N = 5;\n ArrayList<Thread> thread = new ArrayList<Thread>(N);\n for (int i = 0; i < N; i++) {\n Thread t = new Thread(fc.createWorker());\n thread.add(t);\n t.start();\n }\n \n// now place each directory into the workQ\n \n // fc.processDirectory(Args[0]);\n \n fc.processDirectory(\"D://\");\n// indicate that there are no more directories to add\n \n fc.workQ.finish();\n \n for (int i = 0; i < N; i++){\n try {\n thread.get(i).join();\n } catch (Exception e) {};\n }\n }",
"public static void SequentialExecution(String path) {\n\t\tFile folder = new File(path);\n\t\tFile[] listoffiles = folder.listFiles();\n\t\tString content;\n\t\tMyThread ob = new MyThread();\n\t\tfor (int i=0; i < listoffiles.length; i++) {\n\t\t\tGZIPInputStream gzip = null;\n\t\t\ttry {\n\t\t\t\t//System.out.println(\"file :\" +listoffiles[i]);\n\t\t\t\tgzip = new GZIPInputStream(new FileInputStream(listoffiles[i]));\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(gzip));\n\t\t\ttry {\n\t\t\t\twhile ((content = br.readLine()) != null){\n\t\t\t\t\t// perform sanity test\n\t\t\t\t\tcontent = content.replaceAll(\"\\\"\", \"\");\n\t\t\t\t\tString formatedData = content.replaceAll(\", \", \":\");\n\t\t\t\t\tString[] data = formatedData.split(\",\");\n\t\t\t\t\tif (data.length != 110) {\n\t\t\t\t\t\tfailure++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (ob.validData(data)) {\n\t\t\t\t\t\t\tsuccess++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfailure++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"valid : \" +success);\n\t\tSystem.out.println(\"Invalid : \" +failure);\n\t\t\n\t\tfor (Map.Entry<String, ArrayList<Float>> entry : MyThread.map_t.entrySet()) {\n\t\t\tArrayList<Float> list = entry.getValue();\n\t\t\tCollections.sort(list);\n\t\t\tif(list.size()%2 != 0) \n\t\t\t\tsol_median.put(entry.getKey(), list.get(list.size()/2)); \n\t else\n\t \tsol_median.put(entry.getKey(), (list.get(list.size()/2) + list.get(list.size()/2 - 1))/2);\n\t\t\tfloat sum = 0;\n\t\t\t\n\t\t\tint size = entry.getValue().size();\n\t\t\tfor (int i=0; i<size; i++) {\n\t\t\t\tsum += entry.getValue().get(i);\n\t\t\t}\n\t\t\tsolution.put(entry.getKey(), sum/size);\n\t\t}\n\t\t\n\t\tHashMap<String, Float> result = sortedMap(solution);\n\t\tfor (Map.Entry<String, Float> entry : result.entrySet()) {\n\t\t\tSystem.out.println(entry.getKey()+\" \"+entry.getValue() + \" \" +sol_median.get(entry.getKey()));\n\t\t}\n\t}",
"public void getFile(){\n\t\t\n\t\tParser parser = new Parser(f, this, taskPool);\n\t\tWorker w;\n\t\tfor (int i = 0; i < this.getTasks().getNumWorker(); i++){\n\t\t\t w = new Worker(position, this);\n\t\t\t w.setWorkerNum(i);\n\t\t\t workers.add(w);\n\t\t\t} \n\t\t\n\t\tworkPanel = new WorkPanel(tasks, this, workers);\n\t\tworkPanel.setBounds(0, 0, 600, 600);\n\t\tThread twp = new Thread(workPanel);\n\t\ttwp.start();\n\n\t\tmainPanel.add(workPanel);\n\t\t\n\t\t\tfor (int k = 0; k < workers.size(); k++){\n\t\t\t\tworkers.get(k).start();\n\t\t\t}\n\n\t}",
"@Test\n public void test1(){\n CDLListFineRW<String> list = new CDLListFineRW<String>(\"hi\");\n CDLListFineRW<String>.Element head = list.head();\n CDLListFineRW<String>.Cursor c = list.reader(list.head());\n \n for(int i = 74; i >= 65; i--) {\n char val = (char) i;\n c.writer().insertAfter(\"\" + val);\n }\n \n List<Thread> threadList = new ArrayList<Thread>();\n for (int i = 0; i < 50; i++) {\n NormalThreadrwf nt = new NormalThreadrwf(list, i);\n threadList.add(nt);\n }\n \n\tRandomThreadrwf rt = new RandomThreadrwf(list);\n\tthreadList.add(rt);\n\t\n try {\n for(Thread t : threadList){\n \tt.start();\n }\n for (Thread t : threadList) {\n \tt.join();\n }\n } catch(InterruptedException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n list.print();\n// YOU MAY WANT TO INCLUDE A PRINT METHOD TO VIEW ALL THE ELEMENTS\n// list.print();\n \n }",
"public void createT5(int rows) {\n\t\tExecutorService dataExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable worker1 = new RepeatDataThread(4, Application.THREAD_ONE_PATH\n\t\t\t\t+ \"t5\", 42);\n\t\tRunnable worker2 = new RepeatDataThread(4, Application.THREAD_TWO_PATH\n\t\t\t\t+ \"t5\", 42);\n\t\tRunnable worker3 = new RepeatDataThread(4,\n\t\t\t\tApplication.THREAD_THREE_PATH + \"t5\", 42);\n\t\tRunnable worker4 = new RepeatDataThread(4, Application.THREAD_FOUR_PATH\n\t\t\t\t+ \"t5\", 42);\n\t\tdataExecutor.execute(worker1);\n\t\tdataExecutor.execute(worker2);\n\t\tdataExecutor.execute(worker3);\n\t\tdataExecutor.execute(worker4);\n\t\tdataExecutor.shutdown();\n\t\ttry {\n\t\t\tdataExecutor.awaitTermination(1, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// find directory that contains data\n\t\tFile[] files = new File[4];\n\t\tfiles[0] = new File(Application.THREAD_ONE_PATH + \"t5\");\n\t\tfiles[1] = new File(Application.THREAD_TWO_PATH + \"t5\");\n\t\tfiles[2] = new File(Application.THREAD_THREE_PATH + \"t5\");\n\t\tfiles[3] = new File(Application.THREAD_FOUR_PATH + \"t5\");\n\t\tFile outputFile = null;\n\n\t\tfor (File f : files) {\n\t\t\tif (FileUtils.folderSize(f) > 0) {\n\t\t\t\toutputFile = new File(f.toString());\n\t\t\t}\n\t\t}\n\n\t\tif (outputFile == null) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"unable to avoid initialization exception for table 5.\");\n\t\t}\n\t\t\n\t\tExecutorService loadExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable loadWorker = new LoadThread(outputFile.toString());\n\t\tloadExecutor.execute(loadWorker);\n\t\tloadExecutor.shutdown();\n\t\ttry {\n\t\t\tloadExecutor.awaitTermination(10, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcleanDirs();\n\t}",
"public static void main(String[] args)\n throws InterruptedException\n {\n // Defining threads to accept the jobs\n // ----------------------------------------------------------\n Thread thread1 = new Intermediate(10, \"INT01\");// Instantiate thread1\n Thread thread2 = new Intermediate(50, \"INT02\");// Instantiate thread2\n Thread thread3 = new CPUBound(60, \"CPU01\");// Instantiate thread3\n Thread thread4 = new CPUBound(70, \"CPU02\");// Instantiate thread4\n Thread thread5 = new IOBound(System.in, \"IO01\");// Instantiate thread5\n Thread thread6 = new IOBound(System.in, \"IO02\");// Instantiate thread6\n Thread thread7 = new Intermediate(82, \"INT03\");// Instantiate thread7\n Thread thread8 = new CPUBound(80, \"CPU03\");// Instantiate thread8\n\n // Creating a ArrayList of threads and adding the jobs to the ArrayList\n // ----------------------------------------------------------\n ArrayList<Thread> threadList = new ArrayList<Thread>();\n threadList.add(thread1);\n threadList.add(thread2);\n threadList.add(thread3);\n threadList.add(thread4);\n threadList.add(thread5);\n threadList.add(thread6);\n threadList.add(thread7);\n threadList.add(thread8);\n\n // Creating a FCFS object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n FCFS fcfs = new FCFS(threadList);\n fcfs.run();\n\n // Displaying the results of the FCFS run\n // ----------------------------------------------------------\n\n System.out.println(\"----------------FCFS-----------------------------\");\n for (String key : fcfs.getRun_times().keySet())\n System.out.println(key + \" => \" + fcfs.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Defining a Hash Map with key Long and value Thread. To pair\n // each unique time with a process\n // ----------------------------------------------------------\n Map<Long, Thread> threadList2 = new HashMap<Long, Thread>();\n threadList2.put(fcfs.getRun_times().get(thread1.getName()), thread1);\n threadList2.put(fcfs.getRun_times().get(thread2.getName()), thread2);\n threadList2.put(fcfs.getRun_times().get(thread3.getName()), thread3);\n threadList2.put(fcfs.getRun_times().get(thread4.getName()), thread4);\n threadList2.put(fcfs.getRun_times().get(thread5.getName()), thread5);\n threadList2.put(fcfs.getRun_times().get(thread6.getName()), thread6);\n threadList2.put(fcfs.getRun_times().get(thread7.getName()), thread7);\n threadList2.put(fcfs.getRun_times().get(thread8.getName()), thread8);\n\n // Creating a SJF object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n SJF sjf = new SJF(threadList2);\n sjf.run();\n\n // Displaying the results of the SJF run\n // ----------------------------------------------------------\n System.out.println(\"-----------------SJF-----------------------------\");\n for (String key : sjf.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Creating a RoundRobin object and running it with the previously\n // created ArrayList object holding our processes.\n // ----------------------------------------------------------\n RoundRobin roundRobin = new RoundRobin(threadList);\n roundRobin.run();\n\n // Displaying the results of the RoundRobin run\n // ----------------------------------------------------------\n System.out.println(\"-----------------Round Robin---------------------\");\n for (String key : roundRobin.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n }",
"public void createT4(int rows) {\n\t\tExecutorService dataExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable worker1 = new RepeatDataThread(3, Application.THREAD_ONE_PATH\n\t\t\t\t+ \"t4\", 42);\n\t\tRunnable worker2 = new RepeatDataThread(3, Application.THREAD_TWO_PATH\n\t\t\t\t+ \"t4\", 42);\n\t\tRunnable worker3 = new RepeatDataThread(3,\n\t\t\t\tApplication.THREAD_THREE_PATH + \"t4\", 42);\n\t\tRunnable worker4 = new RepeatDataThread(3, Application.THREAD_FOUR_PATH\n\t\t\t\t+ \"t4\", 42);\n\t\tdataExecutor.execute(worker1);\n\t\tdataExecutor.execute(worker2);\n\t\tdataExecutor.execute(worker3);\n\t\tdataExecutor.execute(worker4);\n\t\tdataExecutor.shutdown();\n\t\ttry {\n\t\t\tdataExecutor.awaitTermination(1, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// find directory that contains data\n\t\tFile[] files = new File[4];\n\t\tfiles[0] = new File(Application.THREAD_ONE_PATH + \"t4\");\n\t\tfiles[1] = new File(Application.THREAD_TWO_PATH + \"t4\");\n\t\tfiles[2] = new File(Application.THREAD_THREE_PATH + \"t4\");\n\t\tfiles[3] = new File(Application.THREAD_FOUR_PATH + \"t4\");\n\t\tFile outputFile = null;\n\n\t\tfor (File f : files) {\n\t\t\tif (FileUtils.folderSize(f) > 0) {\n\t\t\t\toutputFile = new File(f.toString());\n\t\t\t}\n\t\t}\n\n\t\tif (outputFile == null) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"unable to avoid initialization exception for table 4.\");\n\t\t}\n\t\t\n\t\tExecutorService loadExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable loadWorker = new LoadThread(outputFile.toString());\n\t\tloadExecutor.execute(loadWorker);\n\t\tloadExecutor.shutdown();\n\t\ttry {\n\t\t\tloadExecutor.awaitTermination(10, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcleanDirs();\n\t}",
"public void run() {\n\t\tboolean flag = true;\n\t\t\n\t\t//Testing if all the threads are initialized with some random value.\n\t\twhile(flag) {\n\t\t\tflag = false;\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tif(GlobalInfo.inputs[i]==-1)\n\t\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] snapshot = new int[10];\n\t\tint[] sortedSnapshot;\n\t\t\t\t\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\t//Checking if queue is empty or not\n\t\t\tif(GlobalInfo.pipeLine.peek() != null)\n\t\t\t{\n\t\t\t\tsnapshot = GlobalInfo.pipeLine.poll();\n\t\t\t\t\n\t\t\t\t//printing snapshot\n\t\t\t\tSystem.out.format(\"The snapshot is: \");\n\t\t\t\tfor (int i = 0; i < snapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", snapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsortedSnapshot = Arrays.copyOf(snapshot, snapshot.length);\n\t\t\t\t\n\t\t\t\tSortHelper.sortForkAndJoin(sortedSnapshot);\n\t\t\t\t\n\t\t\t\t//printing sorted snapshot\n\t\t\t\tSystem.out.format(\"The sorted snapshot is: \");\n\t\t\t\tfor (int i = 0; i < sortedSnapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", sortedSnapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tGlobalInfo.completeThreads=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Performing fusion of data and validating results\n\t\t\t\tfuseAdd1 adder = new fuseAdd1(sortedSnapshot);\n\t\t\t\tThread adderThread = new Thread(adder);\n\t\t\t\tadderThread.start();\n\t\t\t\t\n\t\t\t\tfuseMultiply1 multiplier = new fuseMultiply1(sortedSnapshot);\n\t\t\t\tThread multiplierThread = new Thread(multiplier);\n\t\t\t\tmultiplierThread.start();\n\t\t\t\t\n\t\t\t\tfuseAverage1 averager = new fuseAverage1(sortedSnapshot);\n\t\t\t\tThread averagerThread = new Thread(averager);\n\t\t\t\taveragerThread.start();\n\t\t\t\t\n\t\t\t\twhile(GlobalInfo.completeThreads < 3){\n\t\t\t\t\t//wait for all three fusions to take place.\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException \n\t{\n\tFile file= new File(\"C:\\\\Users\\\\gurnoor.singh\\\\Downloads\\\\prob1.txt\");\n\tSystem.out.println(file);\n\tBufferedReader br = new BufferedReader(new FileReader(file));\n\n\t// making thread pool of 5 threads to perform execution\n\tExecutorService pool = Executors.newFixedThreadPool(5);\n\n\tString st;\n\t while ((st = br.readLine()) != null) \n\t {\n\t Runnable r=new newClass(st);\n\t pool.execute(r);\n\n\t }\n\n\n\tbr.close();\n\tpool.shutdown();\n\t}",
"public static void main(String[] args) throws IOException {\n Calculations calc = new Calculations(16, 1000);\n Keeper keeper = new Keeper(\"data.txt\");\n keeper.writeToFile(calc);\n //Read saved data as String value and turn it into 2D array\n calc.setCopiedArray(keeper.readFromFile());\n\n //Printing for testing purposes.\n// System.out.println(\"RandomArray\");\n// calc.printTarget2DArr(calc.getRandomArray());\n// System.out.println();\n//\n// System.out.println(\"Copied Array\");\n// calc.printTarget2DArr(calc.getCopiedArray());\n// System.out.println();\n\n\n //Sorting \"without\" threads\n System.out.println(\"\\nNO Threads:)\");\n long start = System.nanoTime();\n Contestant contestant = new Contestant(calc);\n contestant.run(calc);\n// calc.printTarget2DArr(contestant.getSorted2DArray());\n long finish = System.nanoTime();\n long timeElapsed = finish - start;\n\n System.out.println(\"Time of execution of Contestant 0 (no threads) is \" + timeElapsed / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 0 (no threads) is \" + timeElapsed + \" Nano sec\");\n\n //Thread 1\n System.out.println(\"\\n1 Threads\");\n Contestant1 contestant1 = new Contestant1(calc);\n Thread thread1 = new Thread(contestant1);\n long start1 = System.nanoTime();\n\n thread1.start();\n try {\n thread1.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n// calc.printTarget2DArr(contestant1.getSorted2DArray());\n long finish1 = System.nanoTime();\n long timeElapsed1 = finish1 - start1;\n System.out.println(\"Time of execution of Contestant 1 (\" + thread1.getName() + \") is \" + timeElapsed1 / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 1 (\" + thread1.getName() + \") is \" + timeElapsed1 + \" Nano sec\");\n\n\n //2 Threads\n System.out.println(\"\\n2 Threads\");\n Contestant2 contestant2 = new Contestant2(calc);\n Thread thread2 = new Thread(contestant2);\n long start2 = System.nanoTime();\n thread2.start();\n try {\n thread2.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n long finish2 = System.nanoTime();\n long timeElapsed2 = finish2 - start2;\n\n Thread thread21 = new Thread(new Contestant2(calc).mergeSortParallel2());\n long start21 = System.nanoTime();\n thread21.start();\n try {\n thread21.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n long finish21 = System.nanoTime();\n long timeElapsed21 = finish21 - start21;\n// calc.printTarget2DArr(contestant2.getSorted2DArray());\n System.out.println(\"Time of execution of Contestant 2 (\" + thread2.getName() + \") is \" + (timeElapsed2 + timeElapsed21) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 2 (\" + thread2.getName() + \") is \" + (timeElapsed2 + timeElapsed21) + \" Nano sec\");\n\n\n //Thread 4\n System.out.println(\"\\n4 Threads\");\n Contestant4 contestant4 = new Contestant4(calc);\n long totalExecutionTimeFor4Threads = 0;\n Thread[] threads = new Thread[4];\n long start4 = System.nanoTime();\n for (int i = 0; i < threads.length; i++) {\n threads[i] = new Thread(contestant4, \"thread [\" + i + \"]\");\n threads[i].start();\n long finish4 = System.nanoTime();\n long timeElapsed4 = finish4 - start4;\n System.out.println(\"Time of execution of Contestant 4 (\" + threads[i].getName() + \") is \" + (timeElapsed4) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 4 (\" + threads[i].getName() + \") is \" + (timeElapsed4) + \" Nano sec\");\n totalExecutionTimeFor4Threads += timeElapsed4;\n\n }\n System.out.println(\"Total time for 4 threads is \" + totalExecutionTimeFor4Threads / 1000000000 + \" sec\");\n System.out.println(\"Total time for 4 threads is \" + totalExecutionTimeFor4Threads + \" Nano sec\");\n// calc.printTarget2DArr(contestant4.getSorted2DArray());\n\n\n //Thread 8\n System.out.println(\"\\n8 Threads\");\n Contestant8 contestant8 = new Contestant8(calc);\n long totalExecutionTimeFor8Threads = 0;\n Thread[] threads8 = new Thread[8];\n long start8 = System.nanoTime();\n for (int i = 0; i < threads8.length; i++) {\n threads8[i] = new Thread(contestant8, \"thread [\" + i + \"]\");\n threads8[i].start();\n long finish8 = System.nanoTime();\n long timeElapsed8 = finish8 - start8;\n System.out.println(\"Time of execution of Contestant 8 (\" + threads8[i].getName() + \") is \" + (timeElapsed8) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 8 (\" + threads8[i].getName() + \") is \" + (timeElapsed8) + \" Nano sec\");\n totalExecutionTimeFor8Threads += timeElapsed8;\n }\n System.out.println(\"Total time for 8 threads is \" + totalExecutionTimeFor8Threads / 1000000000 + \" sec\");\n System.out.println(\"Total time for 8 threads is \" + totalExecutionTimeFor8Threads + \" Nano sec\");\n// calc.printTarget2DArr(contestant8.getSorted2DArray());\n\n\n //Thread 16\n System.out.println(\"\\n16 Threads\");\n Contestant16 contestant16 = new Contestant16(calc);\n long totalExecutionTimeFor16Threads = 0;\n Thread[] threads16 = new Thread[16];\n long start16 = System.nanoTime();\n for (int i = 0; i < threads16.length; i++) {\n threads16[i] = new Thread(contestant16, \"thread [\" + i + \"]\");\n threads16[i].start();\n long finish16 = System.nanoTime();\n long timeElapsed16 = finish16 - start16;\n System.out.println(\"Time of execution of Contestant 16 (\" + threads16[i].getName() + \") is \" + (timeElapsed16) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 16 (\" + threads16[i].getName() + \") is \" + (timeElapsed16) + \" Nano sec\");\n totalExecutionTimeFor16Threads += timeElapsed16;\n }\n System.out.println(\"Total time for 16 threads is \" + totalExecutionTimeFor16Threads / 1000000000 + \" sec\");\n System.out.println(\"Total time for 16 threads is \" + totalExecutionTimeFor16Threads + \" Nano sec\");\n// calc.printTarget2DArr(contestant16.getSorted2DArray());\n }",
"@Override\n\tpublic void insertBoard(HttpServletRequest request) throws Exception {\n \n List<Map<String,Object>> list = fileUtils.parseInsertFileInfo(request);\n for(int i=0, size=list.size(); i<size; i++){\n sampleDao.insertFile(list.get(i));\n }\n\t}",
"private void uploadToDb(final List<DBCardIngredient> list){\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n uploading = true;\n viewModel.insertIngredients(list, new TaskListener() {\n @Override\n public void onTaskCompleted(Object o) {\n viewModel.getAllIngredients().observe(getViewLifecycleOwner(),uploadObserver());\n }\n });\n }\n }).start();\n }",
"@Override\n public void run() {\n System.out.println(\"Starting producer\");\n File file = new File(dirPath + \"/studentVle.csv\");\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new FileReader(file));\n String tempString = null;\n tempString = reader.readLine();\n while ((tempString = reader.readLine()) != null) {\n this.buffer.put(tempString);\n }\n reader.close();\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n ArrayList<String> listUrl = new ArrayList<String>();\n listUrl.add(\"http://minionomaniya.ru/wp-content/uploads/2016/01/%D0%9A%D0%B5%D0%B2%D0%B8%D0%BD.jpg\");\n listUrl.add(\"http://minionomaniya.ru/wp-content/uploads/2016/01/%D0%9A%D0%B5%D0%B2%D0%B8%D0%BD.jpg\");\n listUrl.add(\"http://minionomaniya.ru/wp-content/uploads/2016/01/%D0%9A%D0%B5%D0%B2%D0%B8%D0%BD.jpg\");\n listUrl.add(\"http://minionomaniya.ru/wp-content/uploads/2016/01/%D0%9A%D0%B5%D0%B2%D0%B8%D0%BD.jpg\");\n listUrl.add(\"http://minionomaniya.ru/wp-content/uploads/2016/01/%D0%9A%D0%B5%D0%B2%D0%B8%D0%BD.jpg\");\n listUrl.add(\"http://minionomaniya.ru/wp-content/uploads/2016/01/%D0%9A%D0%B5%D0%B2%D0%B8%D0%BD.jpg\");\n listUrl.add(\"http://minionomaniya.ru/wp-content/uploads/2016/01/%D0%9A%D0%B5%D0%B2%D0%B8%D0%BD.jpg\");\n for (String url : listUrl) {\n Thread thread = new Thread(new LoadImage(url));\n thread.start();\n }\n }",
"public static void main(String[] args) {\n\t\tConcurrentLinkedList<Integer> l = new ConcurrentLinkedList<Integer>();\n\t\tRunnable r = new AddToList(l);\n\t\tfor(int i=0;i<20;i++) {\n\t\t\tThread t = new Thread(r);\n\t\t\tt.start();\n\t\t\ttry {\n\t\t\t\tt.join(2000);\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\tSystem.out.println(l.size());\n\t}",
"private synchronized void execute(TestRunnerThread testRunnerThread) {\n boolean hasSpace = false;\n while(!hasSpace) {\n threadLock.lock();\n try {\n hasSpace = currentThreads.size()<capacity;\n }\n finally {\n threadLock.unlock();\n }\n }\n \n //Adding thread to list and executing it\n threadLock.lock();\n try {\n currentThreads.add(testRunnerThread);\n testRunnerThread.setThreadPoolListener(this);\n Thread thread = new Thread(testRunnerThread);\n //System.out.println(\"Starting thread for \"+testRunnerThread.getTestRunner().getTestName());\n thread.start();\n }\n finally {\n threadLock.unlock();\n }\n }",
"public static void main(String[] args) throws IOException {\n Main test = new Main();\n File dir=new File(\"/home/victor/Desktop/icampus/corrected\");\n String a[]=dir.list();\n// Arrays.sort(a, String.CASE_INSENSITIVE_ORDER);\n int i;\n UploadMySQL q = new UploadMySQL();\n for( i=0;i<a.length;i++)\n {\n\t\ttest.setInputFile(\"/home/victor/Desktop/icampus/corrected/\"+a[i]);\n System.out.println(\"file no \"+ i + \"is\"+a[i]+\"\\n\");\n\t\ttest.read(q);\n }\n System.out.println(\"Total number of files processed is \"+i);\n q=null;\n\n }",
"public static void main(String[] args) {\n\t\tBlockingQueue queue = new LinkedBlockingQueue(4);\n\n\t\t// Thread factory below is used to create new threads\n\t\tThreadFactory thFactory = Executors.defaultThreadFactory();\n\n\t\t// Rejection handler in case the task get rejected\n\t\tRejectTaskHandler rth = new RejectTaskHandler();\n\t\t// ThreadPoolExecutor constructor to create its instance\n\t\t// public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long\n\t\t// keepAliveTime,\n\t\t// TimeUnit unit,BlockingQueue workQueue ,ThreadFactory\n\t\t// threadFactory,RejectedExecutionHandler handler) ;\n\t\tThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 2, 10L, TimeUnit.MILLISECONDS, queue,\n\t\t\t\tthFactory, rth);\n\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\tDataFileReader df = new DataFileReader(\"File \" + i);\n\t\t\tSystem.out.println(\"A new file has been added to read : \" + df.getFileName());\n\t\t\t// Submitting task to executor\n\t\t\tthreadPoolExecutor.execute(df);\n\t\t}\n\t\tthreadPoolExecutor.shutdown();\n\t}",
"public void start() {\n\t\tpcmList = Collections.synchronizedList(new LinkedList<PCMData>());\n\t\tencodedlist = Collections\n\t\t\t\t.synchronizedList(new LinkedList<EncodedData>());\n\t\taudioRecordThread = new AudioRecordThread(this);\n\t\taudioSpeexEncoderThread = new AudioSpeexEncoderThread(this);\n\t\tflvWriterThread = new AudioFlvWriterThread(this);\n\t\taudioRecordThread.start();\n\t\taudioSpeexEncoderThread.start();\n\t\tflvWriterThread.start();\n\t}",
"public void startThread() \n { \n ExecutorService taskList = \n Executors.newFixedThreadPool(2); \n for (int i = 0; i < 5; i++) \n { \n // Makes tasks available for execution. \n // At the appropriate time, calls run \n // method of runnable interface \n taskList.execute(new Counter(this, i + 1, \n \"task \" + (i + 1))); \n } \n \n // Shuts the thread that's watching to see if \n // you have added new tasks. \n taskList.shutdown(); \n }",
"public void indexFileOrDirectory(String fileName, String packageType) throws IOException {\n //===================================================\n //gets the list of files in a folder (if user has submitted\n //the name of a folder) or gets a single file name (is user\n //has submitted only the file name)\n //===================================================\n this.setThreadCount(this.queue.size());\n int originalNumDocs = writer.numDocs();\n startTime = System.currentTimeMillis();\n for (File f : queue) {\n LogReader lr = new LogReader(f.getAbsolutePath());\n \n Thread t = new Thread(new Runnable(){//Using thread \n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tcurrentThreadCount = currentThreadCount + 1;\n\t\t\t\t\tSystem.out.println(\"Number of thread: \" + currentThreadCount);\n\t\t\t\t\ttry {\n\t\t for (int cnt = 0; ; cnt++) {\n\t\t \tif(lr == null){\n\t\t \t\tSystem.out.println(\"hello\");\n\t\t \t}\n\t\t ArrayList<Package> list = lr.PackagesWrapper(2000);\n\t\t if (list == null || list.size() <= 0)\n\t\t {\n\t\t break;\n\t\t }\n\n\t\t int size = list.size();\n\t\t ArrayList<Document> docs = new ArrayList<Document>();\n\t\t for (int i = 0; i < size; i++)\n\t\t {\n\t\t Package p = list.get(i);\n\t\t Document doc = new Document();\n\t\t deWrapString(packageType, p, doc);\n\t\t \n\t\t docs.add(doc);\n\t\t }\n\n\t\t writer.addDocuments(docs);\n\n\t\t if (cnt != 0 && cnt % 10 == 0) {\n\t\t flush();\n\t\t currentTime = System.currentTimeMillis();\n\t\t \n\t\t System.out.println(\"Current document: \" + writer.numDocs() + \n\t\t \t\t\", current indexing rate: \" + (writer.numDocs()/ (currentTime - startTime)) * 1000);\n\t\t }\n\t\t }\n\t\t System.out.println(\"Added: \" + f);\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t System.out.println(\"Could not add: \" + f);\n\t\t } finally {\n\t\t \tthreadCount--;\n\t\t }\n\t\t\t\t}\n \t\n });\n t.start(); \n /*\n try {\n for (int cnt = 0; ; cnt++) {\n ArrayList<Package> list = lr.PackagesWrapper(2000);\n if (list == null || list.size() <= 0)\n {\n break;\n }\n\n int size = list.size();\n ArrayList<Document> docs = new ArrayList<Document>();\n for (int i = 0; i < size; i++)\n {\n Package p = list.get(i);\n Document doc = new Document();\n this.deWrapString(packageType, p, doc);\n \n docs.add(doc);\n }\n\n writer.addDocuments(docs);\n\n if (cnt % 10 == 0) {\n flush();\n System.out.println(\"bulk count: \" + cnt);\n }\n }\n System.out.println(\"Added: \" + f);\n } catch (Exception e) {\n System.out.println(\"Could not add: \" + f);\n } finally {\n\n }*/\n }\n \n /*\n int newNumDocs = writer.numDocs();\n System.out.println(\"\");\n System.out.println(\"************************\");\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\n System.out.println(\"************************\");\n queue.clear();\n */\n }",
"@Test\n public void insert() throws InterruptedException {\n List<PromotionVoucherInfoDTO> list = generatorProm(10);\n List<List<PromotionVoucherInfoDTO>> lists = cutList(list, 10);\n Long startTime = System.currentTimeMillis();\n\n ThreadPoolUtil instance = ThreadPoolUtil.getInstance();\n CountDownLatch countDownLatch = new CountDownLatch(lists.size());\n for (int i = 0; i < lists.size(); i++) {\n instance.execute(new executeInsert(lists, i, countDownLatch, instance));\n }\n countDownLatch.await();\n Long endTime = System.currentTimeMillis();\n System.out.println(\"插入数据用时:\" + (endTime - startTime));\n\n }",
"public void run(){\n isidle=false;\n Vector seqnamesvec=new Vector();\n try{\n BufferedReader inread=new BufferedReader(new FileReader(readfile));\n String inline=\"\";\n boolean doname=false;\n boolean readquery=false;\n String namestr=\"\";\n //String queryname=\"\";\n //boolean donereadquery=false;\n while((inline=inread.readLine())!=null){\n if(inline.indexOf(\"Query=\")>-1){\n readquery=true;\n }\n if(inline.indexOf(\"letters)\")>-1){\n //if(readquery){\n // donereadquery=true;\n //}\n readquery=false;\n //queryname=extractqueryname(queryname);\n continue;\n }\n if(readquery){\n //queryname+=\" \"+inline.trim();\n continue;\n }\n //if(inline.indexOf(\"><a name =\")>-1){\n if((inline.indexOf(\">gi|\")>-1)||(inline.indexOf(\">gt|\")>-1)){\n doname=true;\n namestr=\"\";\n }\n if(inline.indexOf(\"Length =\")>-1){\n doname=false;\n int begin;\n String currname=\"\";\n if((begin=namestr.indexOf(\"gi|\"))>-1){\n currname=namestr.substring(begin+3,namestr.indexOf(\"|\",begin+3));\n }// end if gi\n if((begin=namestr.indexOf(\"gt|\"))>-1){\n currname=\"t\"+namestr.substring(begin+3,namestr.indexOf(\"|\",begin+3));\n }// end if gi\n //String currname=extractname(queryname,namestr);\n if(currname.equals(\"\")==false){\n seqnamesvec.addElement(currname);\n synchronized (seqnames){\n if(seqnames.containsKey(currname)==false){\n seqnames.put(currname,new seqobj());\n }\n }//end synchronized seqnames\n }// end if name = \"\"\n }// end if length\n if(doname){\n namestr+=\" \"+inline.trim();\n }\n }// end while readline\n //remove identical elements from seqnamesvec\n seqsholder.seqnames=new String[seqnamesvec.size()];\n seqnamesvec.copyInto(seqsholder.seqnames);\n seqnamesvec.clear();\n for(int i=0;i<java.lang.reflect.Array.getLength(seqsholder.seqnames);i++){\n boolean hassame=false;\n for(int j=0;j<seqnamesvec.size();j++){\n if(seqsholder.seqnames[i].equals((String)seqnamesvec.elementAt(j))){\n hassame=true;\n break;\n }\n }// end for j\n if(hassame==false){\n seqnamesvec.addElement(seqsholder.seqnames[i]);\n }// end if hassame\n }// end for i\n seqsholder.seqnames=new String[seqnamesvec.size()];\n seqnamesvec.copyInto(seqsholder.seqnames);\n inread.close();\n }catch(IOException e){\n System.err.println(\"cannot read from \"+readfile.getName());\n e.printStackTrace();\n isidle=true;\n synchronized (parent){\n parent.notify();\n }\n return;\n }\n //System.out.println(\"done readthread\"+readfile.getName());\n //System.out.println(\"extracting \"+seqnamesvec.size()+\" sequences\");\n isidle=true;\n synchronized (parent){\n parent.notify();\n }\n }",
"int insertBatch(List<Basicinfo> list);",
"public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }",
"private FileLoader(){\n rows =new Vector<String>();\n //tsptwinstance= new TSPTWinstance();\n }",
"public static void main(String[] args) \r\n\t{\n\r\n\tReadThread r=new ReadThread(); //reation\r\n\tr.start();// geting to runnable and it will call automitacly it will run\r\n\t\r\n\tWriteThread wr=new WriteThread(); //reation\r\n\twr.start();// geting to runnable and it will call automitacly it will run\r\n\t\r\n\ttry\r\n\t{\r\n\t\tThread.sleep(1000);\r\n\tr.join();// not allwed to over Thread\r\n\t}catch(InterruptedException ie)\r\n\t{\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t// read thread to complete its 5 times iteration and\r\n\t//the give the actvity to writer thread\r\n\t\r\n\t/*try\r\n\t{\r\n\t\tThread.sleep(1000);\r\n\twr.join();\r\n\t}catch(InterruptedException ie)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t}\r\n\t*/\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t}",
"public static void main(String[] args) throws Exception {\n NumNode numNode = new NumNode();\n\n new Thread(new JiNum(numNode)).start();\n new Thread(new OuNum(numNode)).start();\n\n\n\n\n\n\n\n }",
"public void run(){\n\n File fileRoot = new File(path);\n root = new DefaultMutableTreeNode(new fileNode(fileRoot));\n treemodel = new DefaultTreeModel(root);\n\n tree = new JTree(treemodel);\n tree.setShowsRootHandles(true);\n JScrollPane scrollPane = new JScrollPane(tree);\n this.panel.add(scrollPane);\n //frame.setLocationByPlatform(true);\n this.panel.setSize(1000, 1000);\n this.panel.setVisible(true);\n /*\n this.panel.add(scrollPane);\n //frame.setLocationByPlatform(true);\n this.panel.setSize(1000, 1000);\n this.panel.setVisible(true);\n */\n\n createChildren cc = new createChildren(fileRoot, root);\n new Thread(cc).start();\n\n\n }",
"public RouteThread() throws FileNotFoundException {\r\n \t\tmessagesList = new ArrayList<Queue<MessageTable>>();\r\n \t\t\r\n \t\t//Init from \"init.txt\"\r\n \t\t//Skip these lines if you want to use Input object initial constructor for testing\r\n \t\tArrayList<InputCommand> alic = new ArrayList<InputCommand>();\r\n \t\tArrayList<InputNode> alin = new ArrayList<InputNode>();\r\n \t\tArrayList<InputLink> alil = new ArrayList<InputLink>();\r\n \t\t//Interprete file\r\n \t\tScanner sc = new Scanner(new File(\"init.txt\"));\r\n \t\twhile(sc.hasNextLine()){\r\n \t\t\tString line= sc.nextLine();\r\n \t\t\tScanner lineScanner = new Scanner(line);\r\n \t\t\tif(line.startsWith(\"node\")){\r\n \t\t\t\tlineScanner.next();\r\n \t\t\t\tString name=lineScanner.next();\r\n \t\t\t\tArrayList<Integer> ln = new ArrayList<Integer>();\r\n \t\t\t\twhile(lineScanner.hasNext()){\r\n \t\t\t\t\tln.add(Integer.parseInt(lineScanner.next()));\r\n \t\t\t\t}\r\n \t\t\t\tint intList[]=new int[ln.toArray().length];\r\n \t\t\t\tfor (int i=0;i<ln.size();i++) intList[i]=ln.get(i);\r\n \t\t\t\tInputNode in = new InputNode(name,intList);\r\n \t\t\t\talin.add(in);\r\n \t\t\t}\r\n \t\t\telse if(line.startsWith(\"link\")){\r\n \t\t\t\tlineScanner.next();\r\n \t\t\t\tInputLink iL = new InputLink(lineScanner.next(),lineScanner.next());\r\n \t\t\t\talil.add(iL);\r\n \t\t\t}\r\n \t\t\telse if(line.startsWith(\"send\")){\r\n \t\t\t\tlineScanner.next();\r\n \t\t\t\tInputCommand ic = new InputCommand(\"send\", lineScanner.next());\r\n \t\t\t\talic.add(ic);\r\n \t\t\t}\r\n \t\t}\r\n \t\t//End of scanning init.txt \r\n \t\t\r\n \t\t//REPLACE HERE FOR USE OF DEFAULT CONSTRUCTOR//\r\n \t\t\r\n \t\tInput input1 = new Input(alin,alil,alic);\r\n \r\n \t\t//REPLACE HERE FOR CORRECTION PURPOSE //\r\n \t\t\r\n \t\t//Use new objects so that there is no risk between reading the file or using the default constructor \r\n \t\tArrayList<InputNode> alin1 = new ArrayList<InputNode>();\r\n \t\talin1 =(ArrayList<InputNode>) input1.getInput_nodes();\r\n \t\tArrayList<InputCommand> alic1 = new ArrayList<InputCommand>();\r\n \t\talic1 = (ArrayList<InputCommand>) input1.getInput_commands();\r\n \t\tArrayList<InputLink> alil1 = new ArrayList<InputLink>();\r\n \t\talil1 = (ArrayList<InputLink>) input1.getInput_links();\r\n \t\tArrayList<ThreadTransfert> altt = new ArrayList<ThreadTransfert>();\r\n \t\t\r\n \t\t//Initiate table and Threads\r\n \t\tArrayList<String> listNameNodes= new ArrayList<String>();\r\n \t\t\r\n \t\t//Fill messagesList with empty queues\r\n \t\tfor(InputNode inputnode : alin1){\r\n \t\t\tlistNameNodes.add(inputnode.name);\r\n \t\t\tConcurrentLinkedQueue<MessageTable> qmt = new ConcurrentLinkedQueue<MessageTable>();\r\n \t\t\tmessagesList.add(qmt);\r\n \t\t}\r\n \t\t\r\n \t\t//Create Table for each node \r\n \t\tfor (InputNode inputnode : alin1) {\r\n\t\t\tTable currTable = new Table();\r\n\t\t\tArrayList<LineTable> alli = new ArrayList<LineTable>();\r\n\t\t\t//Add local row(s) for init\r\n\t\t\tfor (int adress : inputnode.local_addresses) {\r\n\t\t\t\tLineTable localLine = new LineTable(adress,new InputLink(\"local\", \"local\"), 0);\r\n\t\t\t\talli.add(localLine);\r\n\t\t\t}\r\n\t\t\tcurrTable.setRouteTable(alli);\r\n\t\t\tThreadTransfert tt = new ThreadTransfert(listNameNodes, messagesList, inputnode.name, currTable, alil1);\r\n\t\t\taltt.add(tt);\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t//transform a little bit the ArrayList of InputCommand ...\r\n \t\tArrayList<String> namesToSend = new ArrayList<String>();\r\n \t\tfor(InputCommand ic : alic1){\r\n \t\t\tnamesToSend.add(ic.process_name);\r\n \t\t}\r\n \t\t\r\n\r\n \t\t//Launch everything \r\n \t\t\r\n \t\t//1-Initiate sending commands\r\n for (ThreadTransfert threadTransfert : altt) {\r\n \tif(namesToSend.contains(threadTransfert.getIdd())){\r\n \t\tthreadTransfert.sendTableToAll();\r\n \t}\r\n }\r\n \r\n //2-Here we are\r\n for (ThreadTransfert threadTransfert : altt) {\r\n \tthreadTransfert.start();\r\n \t\r\n\t\t}\r\n //The job here is being done by the other threads\r\n \r\n return;\r\n \r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString filepath = args[0];\n\t\t\n\t\t// Creazione della coda per la comunicazione fra produttore e consumatori\n\t\tDirectoryQueue queue = new DirectoryQueue(); \n\t\t\n\t\t// Creazione e attivazione del Produttore\n\t\tnew Producer(queue, filepath).start();\n\t\t\n\t\t// Generatozione di un k random\n\t\tint k = (int)((Math.random() * 5) + 1);\n\t\tSystem.out.println(\"Avvio di \"+k+\" threads consumatori\");\n\t\t\n\t\t// Creazione e attivazione di k Consumatori\n\t\tfor (int i=0; i<k; i++)\n\t\t\tnew Consumer(queue,i).start(); \n\t}",
"public void generateData(String imageFile) throws Exception\r\n\t{\r\n\t\tboolean old = false;\r\n\t\tthis.loadImage(imageFile);\r\n\r\n\t\tthis.pixelLat = 180f / this.pixelHeight.floatValue();\r\n\t\tthis.pixelLon = 360f / this.pixelWidth.floatValue();\r\n\r\n\t\tThread convertImage = new Thread(new ConvertImage(this.pixelHeight,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.pixelWidth,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.image));\r\n\t\tThread convertRgb = new Thread(new ConvertRgb(pixelLon, pixelLat,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpalette));\r\n\r\n\t\tconvertImage.start();\r\n\t\tconvertRgb.start();\r\n\t\t\r\n\t\twhile (convertImage.isAlive() || convertRgb.isAlive())\r\n\t\t{\r\n\t\t\tif(!convertImage.isAlive()){\r\n\t\t\t\tConvertRgb.stopConvertRgb();\r\n\t\t\t\tlogger.info(\"Stop command sent\");\r\n\t\t\t}\r\n\t\t\tif(ImageStorage.heightRowIsFull()){\r\n\t\t\t\tImageStorage.heightRowRemove(0);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (old)\r\n\t\t{\r\n\t\t\tthis.createDirectories();\r\n\t\t\tthis.loadImage(imageFile);\r\n\t\t\t// this.convertImage();\r\n\t\t\tthis.loadConvertImage();\r\n\t\t\tthis.convertRgb();\r\n\r\n\t\t\tThread readFiles1 = new Thread(new ReadRowFilesThread());\r\n\t\t\tThread readFiles2 = new Thread(new ReadRowFilesThread());\r\n\t\t\tThread readFiles3 = new Thread(new ReadRowFilesThread());\r\n\t\t\tThread readFiles4 = new Thread(new ReadRowFilesThread());\r\n\r\n\t\t\tThread baseData1 = new Thread(new EnterBaseDataThread());\r\n\t\t\tThread baseData2 = new Thread(new EnterBaseDataThread());\r\n\t\t\tThread baseData3 = new Thread(new EnterBaseDataThread());\r\n\t\t\tThread baseData4 = new Thread(new EnterBaseDataThread());\r\n\r\n\t\t\treadFiles1.start();\r\n\t\t\treadFiles2.start();\r\n\t\t\treadFiles3.start();\r\n\t\t\treadFiles4.start();\r\n\r\n\t\t\tbaseData1.start();\r\n\t\t\tbaseData2.start();\r\n\t\t\tbaseData3.start();\r\n\t\t\tbaseData4.start();\r\n\r\n\t\t\twhile (readFiles1.isAlive() && readFiles2.isAlive()\r\n\t\t\t\t\t&& readFiles3.isAlive() && readFiles4.isAlive())\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t}\r\n\r\n\t\t\tImageStorage.setEndStatement(true);\r\n\r\n\t\t\twhile (baseData1.isAlive() && baseData2.isAlive()\r\n\t\t\t\t\t&& baseData3.isAlive() && baseData4.isAlive())\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Database Filled\");\r\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"main started...\");\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tGlobalInfo.inputs[i] = -1;\n\t\t}\n\t\t\n\t\tDataFusion processor = new DataFusion();\n\t\tThread processThread = new Thread(processor);\n\t\tprocessThread.start();\t\n\t\t\n\t\tfor (int threadNo = 0; threadNo < 10; threadNo++) {\n\t\t\tSensor obj = new Sensor(threadNo);\n\t\t\tThread t = new Thread(obj);\n\t\t\tt.start();\n\t\t}\n\n\t}",
"public ElevatorSimulation(){ \n for (int onFloor = 0; onFloor< 5; onFloor++){\n passengerArrivals.add(new ArrayList<PassengerArrival>());\n }\n \n parseFile();\n\n for (int i = 0; i < a; i++){\n elevatorArray[i] = new Elevator(i+1, aBuildingManager);\n threadArray[i] = new Thread(elevatorArray[i]);\n\n }\n writeToConsoleLock = new ReentrantLock();\n \n }",
"private void start()\n\tthrows FileNotFoundException\n\t{\n\t\t// Open the data file for reading\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(\"distance.in\")));\n\n\t\t// Read in the number of datasets.\n\t\ttry {\n \t\tline = in.readLine();\n\t\t\ttokenBuffer = new StringTokenizer(line);\n\t\t\tnumDatasets = Integer.parseInt(tokenBuffer.nextToken());\n\n \t} catch(IOException ioError) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Error occurred while reading in the first line of input.\");\n \t\tioError.printStackTrace();\n\t\t\t\tSystem.exit(1);\n \t}\n\n\t\t// While we have data to process...\n\t\tfor(int index = 0; index < numDatasets; index++) { \n\t\t\t// Grab a line of input \t\t\n\t\t\ttry {\n \t\tline = in.readLine();\n\n } catch(IOException ioError) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Error occurred while reading in the next line of input.\");\n \t\t\tioError.printStackTrace();\n\t\t\t\t\tSystem.exit(1);\n \t\t}\n\n\t\t\t// Popluate the unsorted list using this line of data\n\t\t\tbuildUnsortedList(line);\n\n\t\t\t// Sort the list using recursion\n\t\t\twhile(!sortList());\n\n\t\t\t// Print the mean variable between the sorted and unsorted list\n\t\t\tSystem.out.println(calcDistance());\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\n\t\t\t\ttry{\n\t\t\t\t\n\t\t\t\t\tint staging_status = 1;\n\t\t\t\t\tboolean hasFailed = false;\n\t\t\t\t\t\n\t\t\t\t\tLong id;\n\t\t\t\t\t\n\t\t\t\t\t//Annoying Bug\n\t\t\t\t\tif(arg0.getParameter(\"app_inst_id\") instanceof String)\n\t\t\t\t\t\tid = Long.valueOf((String) arg0.getParameter(\"app_inst_id\"));\n\t\t\t\t\telse\n\t\t\t\t\t\tid = (Long) arg0.getParameter(\"app_inst_id\");\n\t\t\t\t\t\n\t\t\t\t\t//AppInstance inst = AHEEngine.getAppInstanceEntity(id);\n\t\t\t\t\tFileStaging[] in = AHEEngine.getFileStageInByAppInstId(id);\n\t\t\t\t\t\n\t\t\t\t\t//Update AppInstance Status\n\t\t\t\t\tAHEEngine.setCurrentAppInstanceState(id, AppInstanceStates.Data_Staging.toString(),\"Staging Data\");\n\t\t\t\t\t\n\t\t\t\t\t//Sort FileStaging into groups\n\t\t\t\t\tHashMap<String, ArrayList<FileStaging>> map = new HashMap<String, ArrayList<FileStaging>>();\n\t\t\t\t\t\n\t\t\t\t\tfor(int i=0; i < in.length; i++){\n\t\t\t\t\t\t\n\t\t\t\t\t\tURI uri = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\turi = new URI(in[i].getTarget());\n\t\t\t\t\t\t} catch (URISyntaxException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\tlogger.error(\"Data Staging failed\",e);\n//\t\t\t\t\t\t\tstaging_status = -1;\n//\t\t\t\t\t\t\thasFailed = true;\n\t\t\t\t\t\t\tfailed(id, arg0, \"Data Staging failed\", e);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tResource res = ResourceRegisterAPI.getResourceByBestMatch(uri);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(map.containsKey(res.getResource_interface())){\n\t\t\t\t\t\t\tmap.get(res.getResource_interface()).add(in[i]);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tArrayList<FileStaging> array = new ArrayList<FileStaging>();\n\t\t\t\t\t\t\tarray.add(in[i]);\n\t\t\t\t\t\t\tmap.put(res.getResource_interface(), array);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\tString[] keyset = map.keySet().toArray(new String[map.size()]);\n\t\t\t\t\t\n\t\t\t\t\tString err = \"\";\n\t\t\t\t\t\n\t\t\t\t\tfor(int i=0; i < keyset.length; i++){\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\tArrayList<FileStaging> temp = map.get(keyset[i]);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tAHEMessage msg = TransferHandler.transfer(temp.toArray(new FileStaging[temp.size()]));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(AHEMessageUtility.hasException(msg)){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString er1 = \"\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(msg.getException() != null){\n\t\t\t\t\t\t\t\t\ter1 = msg.getException()[0];\n\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\tstaging_status = -1;\n//\t\t\t\t\t\t\t\thasFailed = true;\n//\t\t\t\t\t\t\t\tlogger.error(\"Data Staging failed. Transfer Module has returned an exception msg : \" + er1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfailed(id, arg0, \"Data Staging failed. Transfer Module has returned an exception msg : \" + er1,null);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\tif(msg.getInformation().length > 0){\n//\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t//Update FileStaging with uid\n//\t\t\t\t\t\t\t\t\tfor(int j=0; j < temp.size(); j++){\n//\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\ttemp.get(j).setIdentifier(msg.getInformation()[0]);\n//\t\t\t\t\t\t\t\t\t\tHibernateUtil.SaveOrUpdate(temp.get(j));\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t}catch(Exception e){\n//\t\t\t\t\t\t\tlogger.error(\"Data Staging failed\",e);\n//\t\t\t\t\t\t\tstaging_status = -1;\n//\t\t\t\t\t\t\thasFailed = true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfailed(id, arg0, \"Data Staging failed\",e);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\n\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(hasFailed) {\n\t\t\t\t\t\tAHEEngine.setCurrentAppInstanceState(id, AppInstanceStates.Error_DataStaging.toString(),\"Data Staging Information Error : \" + err);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tAHEEngine.setCurrentAppInstanceState(id, AppInstanceStates.Workflow_Running.toString(),\"Data Staging Information Submitted\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> result = new HashMap<String, Object>();\n\t\t\t\t\t\n\t\t\t\t\tif(hasFailed){\n\t\t\t\t\t\tstaging_status = -1;\n\t\t\t\t\t\tresult.put(notification_code, \"Data Staging failed for AppInst : \" + id);\n\t\t\t\t\t}\n\t\t\t\t\tresult.put(staging_status_code, staging_status);\n\t\t\n\t\t\t\t\tAHERuntime.getAHERuntime().getAhe_engine().getWorkflowHandler().getStatefulKnowledgeSession().getWorkItemManager().completeWorkItem(arg0.getId(), result);\n\t\t\t\t\t\n\t\t\t\t\t//arg1.completeWorkItem(arg0.getId(), result);\n\t\t\n\t\t\t\t\treturn;\n\t\t\t\t\t\n\t\t\n\t\t\t\t\t\n\t\t\t\t}catch(AHEException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tfailed(arg0, e.getMessage());\n\t\t\t\t}\n\n\t\t\t}",
"public static void main(String[] args) {\n\t\ttry{\n\t\t\tMyLogger d = MyLogger.getInstance();\n \t\tif(args.length != 4) {\n \t\t\t\tSystem.err.println(\"Less than Required length input, please enter three parameters for logger level,input file,output file\\n\");\n \t\t\t\tSystem.exit(1);\n \t\t\t}\n \t\t\tif(Integer.parseInt(args[2])>3 ||Integer.parseInt(args[2])<0)\n \t\t\t{\n \t\t\t\tSystem.err.println(\"Invalid Value\");\n \t\t\t\tSystem.exit(1);\n \t\t\t}\n \t\t\td.set(Integer.parseInt(args[2]),args[1]);\n\t \t\n\t\t\tint N=Integer.parseInt(args[3]);\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\t\n\t\t\tString str = \"\";\n\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<N;i++){\n\t\t\t\tFileProcessor fp = new FileProcessor(args[0], args[1]);\n\t\t\t\tTreeInfo tst = new TreeInfo();\n\t\t\t\tPopulateTreeVisitorInterface ptv = new PopulateTreeVisitor(fp);\n\t\t\t\ttst.accept(ptv);\n\t\t\t\twordCountVisitorInterface wcv = new WordCountVisitor(fp);\n\t\t\t\ttst.accept(wcv);\n\t\t\t}\n\t\t\t\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\tlong totalTime = (endTime- startTime)/1000;\n\t\t\tSystem.out.println(\"Total Time Insertion : \" + totalTime);\n\t\t}\n\t\tcatch(NumberFormatException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\t\n\t}",
"void startThread();",
"public static void main(String[] args) {\n DisplayUI ui = new DisplayUI();\n Storage storage = new Storage(FILE_PATH);\n TaskList taskList = new TaskList();\n Parser parser = new Parser();\n\n tasks = storage.importTaskFromFile();\n programStart(ui, storage, taskList);\n loopTillEnd(ui, storage, taskList, parser);\n }",
"private void mainTask(List<BoxLogFile> lstSimpleLogs) {\r\n\t\tint cntZipFiles = lstSimpleLogs.size();\r\n\t\tlog.setZipFileCount(cntZipFiles);\r\n\t\tint permits = poolSize;\r\n\t\tExecutorService exec = Executors.newFixedThreadPool(permits); // FixedThreadPool本身就会控制并发线程的数量\r\n\t\tlog.setScanZipFileCount(cntZipFiles);\r\n\t\tfor (int index = 0; index < cntZipFiles; index++) {\r\n\t\t\tfinal BoxLogFile logFile = lstSimpleLogs.get(index);\r\n\t\t\tif (log.getMinScanTime() == null) {\r\n\t\t\t\tlog.setMinScanTime(logFile.getScanTime());\r\n\t\t\t}\r\n\t\t\tRunnable run = new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tint cnt = parseLogFile(logFile); // 线程运行时再进行文件处理\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tlog.setMaxScanTime(logFile.getScanTime());\r\n\t\t\texec.execute(run);\r\n\t\t}\r\n\t\texec.shutdown();\r\n\t\ttry {\r\n\t\t\texec.awaitTermination(TASK_TIME_OUT, TimeUnit.HOURS); // 任务全部执行结束或者等待超时(5Hour)\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tLOGGER.error(\"mainTask exec.awaitTermination error\\n\" + e);\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String args[])\n{\n\n\n ArrayList al = adventLibrary.readData(\"day9.txt\");\n long data1[] = adventLibrary.longArray1CSV( al );\n\n System.out.print( \"part 1: \" );\n IntComputer amp1 = new IntComputer( data1 );\n amp1.process();\n //amp1.dataDump();\n\n}",
"@Override\n\tpublic void run() {\n\t\tIterable<Page> allPages = new Pages(this.numPages, this.fileName);\n\t\tfor (Page pg : allPages) {\n\t\t\ttry {\n\t\t\t\tqueue.put(pg);\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\t\n\t\tfor(int i=0;i<this.numThread;i++){\n\t\t\ttry {\n\t\t\t\tqueue.put(new PoisonPill());\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}",
"public FileUploadThreadHTTP(FileData[] filesDataParam,\n UploadPolicy uploadPolicy, JProgressBar progress) {\n super(filesDataParam, uploadPolicy, progress);\n uploadPolicy.displayDebug(\"Upload done by using the \"\n + getClass().getName() + \" class\", 40);\n // Name the thread (useful for debugging)\n setName(\"FileUploadThreadHTTP\");\n this.heads = new String[filesDataParam.length];\n this.tails = new String[filesDataParam.length];\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\tOpenFileRequest.Builder openFileReqObj = OpenFileRequest.newBuilder();\n\t\topenFileReqObj.setFileName(fileName);\t\t\n\t\topenFileReqObj.setForRead(true);\n\t\t\n\t\t\n\t\tFileWriterClass fileWriteObj = new FileWriterClass(localOutFile);\n\t\tfileWriteObj.createFile();\n\t\t\n\t\tbyte[] responseArray;\n\t\t\n\t\ttry {\n\t\t\tRegistry registry=LocateRegistry.getRegistry(Constants.NAME_NODE_IP,Registry.REGISTRY_PORT);\n\t\t\tINameNode nameStub;\n\t\t\tnameStub=(INameNode) registry.lookup(Constants.NAME_NODE);\n\t\t\tresponseArray = nameStub.openFile(openFileReqObj.build().toByteArray());\n\t\t\t\n\t\t\ttry {\n\t\t\t\tOpenFileResponse responseObj = OpenFileResponse.parseFrom(responseArray);\n\t\t\t\tif(responseObj.getStatus()==Constants.STATUS_NOT_FOUND)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"File not found fatal error\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tList<Integer> blockNums = responseObj.getBlockNumsList();\n\t\t\t\tBlockLocationRequest.Builder blockLocReqObj = BlockLocationRequest.newBuilder();\n\t\t\t\t\n//\t\t\t\tSystem.out.println(blockNums);\n\t\t\t\t/**Now perform Read Block Request from all the blockNums**/\n\t\t\t\tblockLocReqObj.addAllBlockNums(blockNums);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tresponseArray = nameStub.getBlockLocations(blockLocReqObj.build().toByteArray());\n\t\t\t\t} catch (RemoteException 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\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tBlockLocationResponse blockLocResObj = BlockLocationResponse.parseFrom(responseArray);\n//\t\t\t\tSystem.out.println(blockLocResObj.toString());\n\t\t\t\t\n\t\t\t\tif(blockLocResObj.getStatus()==Constants.STATUS_FAILED)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Fatal error!\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tList<BlockLocations> blockLocations = blockLocResObj.getBlockLocationsList();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<blockLocations.size();i++)\n\t\t\t\t{\n\t\t\t\t\tBlockLocations thisBlock = blockLocations.get(i);\n\t\t\t\t\t\n\t\t\t\t\tint blockNumber = thisBlock.getBlockNumber();\t\t\t\t\t\n\t\t\t\t\tList<DataNodeLocation> dataNodes = thisBlock.getLocationsList();\n\t\t\t\t\t\n\t\t\t\t\tif(dataNodes==null || dataNodes.size()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"All nodes are down :( \");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint dataNodeCounter=0;\n\t\t\t\t\t\n\t\t\t\t\tDataNodeLocation thisDataNode = null;//dataNodes.get(dataNodeCounter);\t\t\t\t\t\n\t\t\t\t\tString ip;// = thisDataNode.getIp();\n\t\t\t\t\tint port ; //= thisDataNode.getPort();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tIDataNode dataStub=null;\n\t\t\t\t\t\n\t\t\t\t\tboolean gotDataNodeFlag=false;\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthisDataNode = dataNodes.get(dataNodeCounter);\n\t\t\t\t\t\t\tip = thisDataNode.getIp();\n\t\t\t\t\t\t\tport = thisDataNode.getPort();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tRegistry registry2=LocateRegistry.getRegistry(ip,port);\t\t\t\t\t\n\t\t\t\t\t\t\tdataStub = (IDataNode) registry2.lookup(Constants.DATA_NODE_ID);\n\t\t\t\t\t\t\tgotDataNodeFlag=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (RemoteException e) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgotDataNodeFlag=false;\n//\t\t\t\t\t\t\tSystem.out.println(\"Remote Exception\");\n\t\t\t\t\t\t\tdataNodeCounter++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\twhile(gotDataNodeFlag==false && dataNodeCounter<dataNodes.size());\n\t\t\t\t\t\n\t\t\t\t\tif(dataNodeCounter == dataNodes.size())\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"All data nodes are down :( \");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\t/**Construct Read block request **/\n\t\t\t\t\tReadBlockRequest.Builder readBlockReqObj = ReadBlockRequest.newBuilder();\n\t\t\t\t\treadBlockReqObj.setBlockNumber(blockNumber);\n\t\t\t\t\t\n\t\t\t\t\t/**Read block request call **/\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tresponseArray = dataStub.readBlock(readBlockReqObj.build().toByteArray());\n\t\t\t\t\t\tReadBlockResponse readBlockResObj = ReadBlockResponse.parseFrom(responseArray);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(readBlockResObj.getStatus()==Constants.STATUS_FAILED)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"In method openFileGet(), readError\");\n\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tresponseArray = readBlockResObj.getData(0).toByteArray();\t\t\t\t\t\t\n\t\t\t\t\t\tString str = new String(responseArray, StandardCharsets.UTF_8);\t\t\t\t\t\t\n\t\t\t\t\t\tfileWriteObj.writeonly(str);\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (NotBoundException e) {\n\t\t\tSystem.out.println(\"Exception caught: NotBoundException \");\t\t\t\n\t\t} catch (RemoteException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\tfileWriteObj.closeFile();\n\t\t\n\t\t\n\t}",
"private void initThread() {\n\t\tarticleInqList = new ArrayList<ArticleInq>();\n\t\tarticleImageList = new ArrayList<ArticleImage>();\n\t\t// for hide display\n\t\tif (statusThread == null) {\n\t\t\tproductDetailsLayOut = (TableLayout) findViewById(R.id.tblProductDetails);\n\t\t\tmWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (isAnyProductDisplaying) {\n\t\t\t\t\t\tproductDetailsLayOut.startAnimation(animBottom);\n\t\t\t\t\t\tproductDetailsLayOut.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\tisAnyProductDisplaying = false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tstatusThread = new Thread(mWaitRunnable);\n\t\tstatusThread.start();\n\n\t\t// For adding only Article images\n\t\tif (productImageAddThread == null) {\n\t\t\tpIAWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (currentPoolEanForImage.equals(\"\")\n\t\t\t\t\t\t\t&& !sacannedItemListForImage.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcurrentPoolEanForImage = sacannedItemListForImage\n\t\t\t\t\t\t\t\t\t.get(0);\n\t\t\t\t\t\t\taddArticleImage();\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tcurrentPoolEanForImage = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpIAHandler.postDelayed(pIAWaitRunnable, 1);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tproductImageAddThread = new Thread(pIAWaitRunnable);\n\t\tproductImageAddThread.start();\n\n\t\t// For adding only Article informations\n\t\tif (productAddThread == null) {\n\n\t\t\tpAWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (currentPoolEanForArticle.equals(\"\")\n\t\t\t\t\t\t\t&& !sacannedItemListForArticle.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcurrentPoolEanForArticle = sacannedItemListForArticle\n\t\t\t\t\t\t\t\t\t.get(0);\n\t\t\t\t\t\t\taddArticle();\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tcurrentPoolEanForArticle = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpAHandler.postDelayed(pAWaitRunnable, 2);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tproductAddThread = new Thread(pAWaitRunnable);\n\t\tproductAddThread.start();\n\n\t\t// For showing display\n\t\tif (productDisplayThread == null) {\n\t\t\tpDWaitRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!isAnyProductDisplaying\n\t\t\t\t\t\t\t&& !displayArticleList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tisAnyProductDisplaying = true;\n\t\t\t\t\t\t\tint lastDisplayedItemIndex = displayArticleList\n\t\t\t\t\t\t\t\t\t.size();\n\t\t\t\t\t\t\taddProduct(displayArticleList\n\t\t\t\t\t\t\t\t\t.get(lastDisplayedItemIndex - 1));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdisplayRemovingStarted = true;\n\t\t\t\t\t\t\twhile (!displayAddingStarted) {\n\t\t\t\t\t\t\t\tfor (int i = 0; i < lastDisplayedItemIndex; i++) {\n\t\t\t\t\t\t\t\t\tdisplayArticleList.remove(0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// displayArticleList.removeAll(displayArticleList.subList(0,\n\t\t\t\t\t\t\t\t// lastDisplayedItemIndex-1));\n\t\t\t\t\t\t\t\tdisplayRemovingStarted = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tisAnyProductDisplaying = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpDHandler.postDelayed(pDWaitRunnable, 3);\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tproductDisplayThread = new Thread(pDWaitRunnable);\n\t\tproductDisplayThread.start();\n\n\t\t// For adding basket\n\t\tif (bThread == null) {\n\t\t\tbRunnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (isBasketAddingReady && basketArticleList.size() > 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tisBasketAddingReady = false;\n\t\t\t\t\t\t\taddBasket(basketArticleList.get(0));\n\t\t\t\t\t\t} catch (Exception oEx) {\n\t\t\t\t\t\t\tisBasketAddingReady = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbHandler.postDelayed(bRunnable, 4);\n\t\t\t\t}\n\t\t\t};\n\n\t\t}\n\t\tbThread = new Thread(bRunnable);\n\t\tbThread.start();\n\t}",
"public void run(){\r\n //print out what thread is running\r\n System.out.println(\"Thread: \" + k);\r\n //while the ant in the current thread hasnt seen all the nubmers\r\n while (SCPParallel.colony.get(k + SCPParallel.adjust).seenAll == false\r\n && SCPParallel.colony.get(k + SCPParallel.adjust).seenAllNumbers(SCPParallel.universe, SCPParallel.sets) == false){\r\n //get the ants next step\r\n SCPParallel.colony.get(k + SCPParallel.adjust).addToPath(SCPParallel.colony.get(k + SCPParallel.adjust).getNextStep(SCPParallel.sets, SCPParallel.pheremones));\r\n }\r\n //counts down the latch when the ant has seen all the numbers\r\n SCPParallel.latch.countDown();\r\n }",
"public static ArrayList<String> inputValidation(String[] myArgs){\n\t\t//Variables\n\t\tArrayList<String> filesInFolder = new ArrayList<>();\n\t\tFile file_DirectoryFromArgs = new File(myArgs[0]);\n\t\tFile[] files = file_DirectoryFromArgs.listFiles();\n\n\t\t//Error check the input\n\t\t//Check if number of arguments are as expected and if values of arguments are as expected\n\t\t//if < or > 3 arguments print error\n\t\tif(myArgs.length != 3){\n\t\t\tSystem.out.println(\"Usage: java WordCount <file|directory> <chunk size 10-5000> <num of threads 1-100>\");\n\t\t\t//System.out.println(\"Arguments are wrong!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//if chunkSize is too small or big print error\n\t\telse if(Integer.parseInt(myArgs[1]) < 10 || Integer.parseInt(myArgs[1]) > 5000){\n\t\t\tSystem.out.println(\"Usage: java WordCount <file|directory> <chunk size 10-5000> <num of threads 1-100>\");\n\t\t\t//System.out.println(\"Chunksize is wrong!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//if number of threads is too small or big print error\n\t\telse if(Integer.parseInt(myArgs[2]) < 1 || Integer.parseInt(myArgs[2]) > 100) {\n\t\t\tSystem.out.println(\"Usage: java WordCount <file|directory> <chunk size 10-5000> <num of threads 1-100>\");\n\t\t\t//System.out.println(\"Thread is wrong!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//Check if args[0] is a file\n\t\tif(file_DirectoryFromArgs.exists() && !file_DirectoryFromArgs.isDirectory()){\n\t\t\tdirectoryName = myArgs[0];\n\t\t\t//Save file name into arraylist.\n\t\t\tfilesInFolder.add(directoryName);\n\t\t}\n\t\t//Check if args[0] is a directory\n\t\telse if(file_DirectoryFromArgs.exists() && file_DirectoryFromArgs.isDirectory()){\n\t\t\tdirectoryName = myArgs[0];\n\t\t\t//Copy file names into arraylist\n\t\t\tfor (File f: files) {\n\t\t\t\t//Save file names into arraylist.\n\t\t\t\tfilesInFolder.add(f.getName());\n\t\t\t}\n\t\t}\n\t\t//if not a file or directory print error message\n\t\telse{\n\t\t\tSystem.out.println(\"No such file/directory: \" + file_DirectoryFromArgs);\n\t\t}\n\n\t\treturn filesInFolder;\n\t}",
"public void proccessLogFile() throws IOException {\n \n for(int i = 0; i < numberOfThreads; i++){\n Thread t = new LookupThread(entries, this);\n t.start();\n }//end for\n \n String entry = in.readLine();\n while(entry != null){\n if(entries.size() > numberOfThreads){\n try{\n Thread.sleep((long)1000.0 / numberOfThreads);\n }//end try \n catch(InterruptedException iex){\n continue;\n }//end catch\n \n synchronized(entries){\n entries.add(0, entry);\n entries.notifyAll();\n }//end synchronized\n \n entry = in.readLine();\n Thread.yield(); \n }//end if\n }//end while\n \n }",
"public void start() { \t\n try {\n \tTask task = new FileTask(fileScanner);\n \tTaskDescription taskDescription = new TaskDescription();\n \ttaskDescription.setName(name + \"-FILE-EP\");\n \ttaskDescription.setTaskGroup(\"FILE-EP\");\n \ttaskDescription.setInterval(interval);\n \ttaskDescription.setIntervalInMs(true);\n \ttaskDescription.addResource(TaskDescription.INSTANCE, task);\n \ttaskDescription.addResource(TaskDescription.CLASSNAME, task.getClass().getName());\n \tstartUpController = new StartUpController();\n \tstartUpController.setTaskDescription(taskDescription);\n \tstartUpController.init(synapseEnvironment);\n\n } catch (Exception e) {\n log.error(\"Could not start File Processor. Error starting up scheduler. Error: \" + e.getLocalizedMessage());\n }\n }",
"public void insert_task(int[] _row, int[] _col, int _row_num, int _col_num){\n ArrayList<Object> temp = new ArrayList<>();\n temp.add(_row);\n temp.add(_col);\n temp.add(_row_num);\n temp.add(_col_num);\n task_queue.add(temp);\n }",
"@Override\n public void run() {\n int queueSize = dataQueue.size();\n List<IData> allDataList = new ArrayList<>(queueSize);\n dataQueue.drainTo(allDataList, queueSize);\n\n // each data list\n List<MarketData> marketDatas = new ArrayList<>(queueSize);\n List<Order> orders = new ArrayList<>();\n List<Position> positions = new ArrayList<>();\n List<IndicatorInformation> indicatorInformations = new ArrayList<>();\n List<ModelInformation> modelInformations = new ArrayList<>();\n List<PLInformation> plInformations = new ArrayList<>();\n List<OptimizedExecution> executionInformations = new ArrayList<>();\n List<SystemInformation> systemInformations = new ArrayList<>();\n List<TimerInformation> timerInformations = new ArrayList<>();\n\n try {\n // Create List\n for (IData data : allDataList) {\n if (data instanceof MarketData) {\n marketDatas.add((MarketData) data);\n\n } else if (data instanceof Order) {\n orders.add((Order) data);\n\n } else if (data instanceof Position) {\n positions.add((Position) data);\n\n } else if (data instanceof IndicatorInformation) {\n indicatorInformations.add((IndicatorInformation) data);\n\n } else if (data instanceof ModelInformation) {\n modelInformations.add((ModelInformation) data);\n\n } else if (data instanceof PLInformation) {\n plInformations.add((PLInformation) data);\n\n } else if (data instanceof OptimizedExecution) {\n executionInformations.add((OptimizedExecution) data);\n\n } else if (data instanceof SystemInformation) {\n systemInformations.add((SystemInformation) data);\n\n } else if (data instanceof TimerInformation) {\n timerInformations.add((TimerInformation) data);\n\n } else {\n throw new UnExpectedDataException(data.getClass());\n }\n }\n\n // insert\n if (!marketDatas.isEmpty()) {\n // logger.debug(\"Insert List : MarketData - size = \" + marketDatas.size());\n eventDao.insert(MarketData.class, marketDatas);\n }\n if (!orders.isEmpty()) {\n // logger.debug(\"Insert List : Order - size = \" + orders.size());\n eventDao.insert(Order.class, orders);\n }\n if (!positions.isEmpty()) {\n // logger.debug(\"Insert List : Position - size = \" + positions.size());\n eventDao.insert(Position.class, positions);\n }\n if (!indicatorInformations.isEmpty()) {\n // logger.debug(\"Insert List : IndicatorInformation - size = \" + indicatorInformations.size());\n eventDao.insert(IndicatorInformation.class, indicatorInformations);\n }\n if (!modelInformations.isEmpty()) {\n // logger.debug(\"Insert List : ModelInformation - size = \" + modelInformations.size());\n eventDao.insert(ModelInformation.class, modelInformations);\n }\n if (!plInformations.isEmpty()) {\n // logger.debug(\"Insert List : PLInformation - size = \" + plInformations.size());\n eventDao.insert(PLInformation.class, plInformations);\n }\n if (!executionInformations.isEmpty()) {\n // logger.debug(\"Insert List : OptimizedExecution - size = \" + executionInformations.size());\n eventDao.insert(OptimizedExecution.class, executionInformations);\n }\n if (!systemInformations.isEmpty()) {\n // logger.debug(\"Insert List : SystemInformation - size = \" + systemInformations.size());\n eventDao.insert(SystemInformation.class, systemInformations);\n }\n if (!timerInformations.isEmpty()) {\n // logger.debug(\"Insert List : TimerInformation - size = \" + timerInformations.size());\n eventDao.insert(TimerInformation.class, timerInformations);\n }\n\n } catch (Exception e) {\n logger.error(\"Error in inserting data.\", e);\n }\n }",
"public static void main(String... args) {\n try{ //this makes it so that all the console output will be printed to a file\n //PrintStream out = new PrintStream(new FileOutputStream(WORD_COUNT_TABLE_FILE.toString()));\n //System.setOut(out);\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n long start = System.currentTimeMillis();\n\n\n\n Map<String, List<Integer>> allWords = new ConcurrentHashMap<>(); //the HashMap that will contain all the words and list of occurrences\n List<String> listOfFiles = getFilesFromDirectory(); //the list of files from the given folder\n List<Thread> threadList = new LinkedList<>();\n\n runWithThreads(allWords, listOfFiles, NUMBER_OF_THREADS);\n\n TreeMap<String, List<Integer>> sortedMap = new TreeMap<>(allWords);\n Set<Entry<String, List<Integer>>> sortedEntries = sortedMap.entrySet();\n\n long end = System.currentTimeMillis();\n\n System.out.print(Table.makeTable(sortedEntries, listOfFiles));\n System.out.println(\"\\nTime: \" + (end-start));\n\n\n\n }",
"void insertEpicsData(List<EpicsData> epicsDataList, int run);",
"public static void main(String[] args) {\n List<Thread> node_threads = new ArrayList();\r\n\r\n //Add the threads that will start the nodes\r\n node_threads.add(0, new Thread() {\r\n public void run() {\r\n new Node_A();\r\n return;\r\n }\r\n });\r\n\r\n node_threads.add(1, new Thread() {\r\n public void run() {\r\n new Node_B();\r\n return;\r\n }\r\n });\r\n\r\n node_threads.add(2, new Thread() {\r\n public void run() {\r\n new Node_C();\r\n return;\r\n }\r\n });\r\n\r\n //Shuffle the collection for random start\r\n Collections.shuffle(node_threads);\r\n\r\n //Start the shuffled threads\r\n for(int i = 0; i < node_threads.size(); i++){\r\n node_threads.get(i).start();\r\n\r\n }\r\n }",
"public void run() {\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tuser[i] = NamingService.assignGUID();\n\t\t\t\t// song[i] = NamingService.assignGUID();\n\t\t\t\taddUser(user[i]);\n\t\t\t}\n\n\t\t\t// Add songs to station\n\t\t\tGUID songID;\n\t\t\ttry {\n\n\t\t\t\tRandom generator = new Random();\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\n\t\t\t\t\tint x = generator.nextInt(10) + 1;\n\t\t\t\t\tsleep(x * 1000);\n\t\t\t\t\tsongID = NamingService.assignGUID();\n\t\t\t\t\tint songLength = generator.nextInt(30000) + 1000;\n\t\t\t\t\taddSong(user[x % 3], songID, songLength);\n\t\t\t\t}\n\t\t\t} catch (StationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.err.println(e.getMessage());\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\n\t\t\tsynchronized (userList) {\n\t\t\t\tif (!userList.isEmpty()) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsleep(1000); // 600000 for demo\n\t\t\t\t\t\tIterator<GUID> it = userList.iterator();\n\t\t\t\t\t\twhile (it.hasNext()) {\n\t\t\t\t\t\t\tit.next();\n\t\t\t\t\t\t\tit.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* Demo End */\n\t\t}",
"public void actionPerformed(ActionEvent ae) {\n\t\t\t\t\tThread runner = new Thread() {\n //private OpenFile opf;\n private OutputToFile otf;\n\n\t\t\t\t\t\t\tpublic void run() {\n \n otf = new OutputToFile();\n if(!otf.takeFilePath().trim().contentEquals(\"\")){\n System.out.println(\" Show File Path : \"+otf.takeFilePath()+\" >>>>\");\n centerPanel.setBorder(BorderFactory.createTitledBorder(\"Wrong Data :\"+otf.takeFilePath()));\n textArea.setText(\"\");\n datainFile=new File(otf.takeFilePath());\n \n\n try {\n fis = new FileInputStream(datainFile);\n reader = new BufferedReader(new InputStreamReader(fis));\n //StringBuilder out = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n //out.append(line);\n \n //textArea.setText(line+System.getProperty( \"line.separator\"));\n textArea.append(line+System.getProperty( \"line.separator\"));\n \n }\n //System.out.println(out.toString()); //Prints the string content read from input stream\n reader.close();\n \n \n\n \n \n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }else \n {\n JOptionPane.showMessageDialog(null, \"Əvvəlcədən [XML] uzantılı fayıl emal edilməlidir\", \"Xəbərdarlıq\", JOptionPane.WARNING_MESSAGE);\n }\nSystem.out.println(\" Button clicked\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\trunner.start();\n\t\t\t\t\t\n\t\t\t\t\t//JOptionPane.showMessageDialog(null, \"Please, complete the information\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}",
"public void createDataSet(){\n final Thread thread = new Thread(new Runnable() {\r\n public void run(){\r\n while(true){//we want this running always, it is ok running while robot is disabled.\r\n whileCount++;\r\n currentVoltage = angleMeter.getVoltage(); //gets the non-average voltage of the sensor\r\n runningTotalVoltage[currentIndex] = currentVoltage;//store the new data point\r\n currentIndex = (currentIndex + 1) % arraySize;//currentIndex is the index to be changed\r\n if (bufferCount < arraySize) {\r\n bufferCount++;//checks to see if the array is full of data points\r\n }\r\n }\r\n }\r\n });\r\n thread.start();\r\n }",
"@Override\n public void run(){\n try {\n // Instantiate file reader\n FileReader fr = new FileReader(f);\n @SuppressWarnings(\"resource\")\n BufferedReader br = new BufferedReader(fr);\n StringBuilder stream = new StringBuilder();\n String str = null;\n // Reads in and prints to console in put from read thread\n while ((str = br.readLine()) != null) {\n stream.append(str).append(\"\\n\");\n System.out.println(str);\n }\n // Prints the data received from main method\n System.out.println(line);\n // Closes file and buffer readers\n br.close();\n fr.close();\n // Catches input and output stream exceptions\n } catch (IOException ex){\n System.err.println(ex);\n }\n // Deletes file when finished\n if(f.exists()){\n f.delete();\n }\n }",
"@Override\n public void run()\n {\n logger.info(\"Starting the producer \" + Thread.currentThread().getName());\n /*\n * Process all files inside this directory\n */\n if (file.isDirectory())\n {\n logger.debug(file.getAbsolutePath() + \" is a directory. Processing directory files (one level only)\");\n\n File[] files = file.listFiles(new FilenameFilter()\n {\n @Override\n public boolean accept(File dir, String name)\n {\n if (name.startsWith(\".\"))\n return false;\n else\n return true;\n }\n });\n\n for (File f : files)\n {\n this.processFile(f);\n }\n }\n /*\n * Process the file\n */\n else\n {\n this.processFile(this.file);\n }\n\n try\n {\n // Sleep a second to wait other threads to finish their processes\n Thread.sleep(1000);\n }\n catch (InterruptedException e)\n {\n\n e.printStackTrace();\n }\n\n logger.info(\"Finishing producer \" + Thread.currentThread().getName());\n\n /*\n * Generates a dummy Entity to stop the consumers\n */\n Entity e = new Entity(ImporterConstants.CANCEL_ENTITY_URI, null);\n\n try\n {\n queue.put(e);\n }\n catch (InterruptedException e1)\n {\n e1.printStackTrace();\n }\n\n }",
"public void startDeleteWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < dlts.length; i++){\r\n\t\t\tthreads.add(new Thread(dlts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < dlts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tString[]array=new String[2];\n\t\tfor (int i = 0; i < Runtime.getRuntime().availableProcessors(); i++) {\n\t\t\tHiloHijo h=new HiloHijo(i,array);\n\t\t\tThread t=new Thread(h);\n\t\t\t//t.run(); si lo hacemos asi se hace secuencial 01,2,3\n\t\t\t//en paralelo\n\t\t\tt.start();//para empezar el hilo el so se encarga de saber como empezarlo\n\t\t\t\n\t\t\tSystem.out.println(\"Hilos vivos (aprox) :\"+Thread.activeCount());\n\t\t\tSystem.out.println(\"hilo \"+i+\" vivo? \"+t.isAlive()+\" estado: \"+t.getState());\n\t\t\t//Inicializamos otro hilo\n\t\t\tHijoTipo2 h2=new HijoTipo2(i);\n\t\t\th2.start();\n\t\t\t\n\t\t\t/*\n\t\t\t * String[]arr=new String[3];\n\t\t\n\t\tHiloHijo h=new HiloHijo(1,arr);\n\t\tfor (int i = 0; i < Runtime.getRuntime().availableProcessors(); i++) {\n\t\t\tnew Thread(h).start();\n\t\t\t\n\t\t\t */\n\t\t\t\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tSystem.out.println(\"Hilos vivos al final (aprox) :\"+Thread.activeCount());\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t};\n\t}",
"private void asynload() {\n\t\tfileManager=FileManager.getFileManager();//获取fileManager\n\t\tfileManager.setSearchListener(searchFileListener);//在主线程设置监听\n\t\t//启动工作线程进行文件搜索\n\t\tthread=new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n//相当于将需要在工作线程获得的数据直接封装成方法\n\t\t\t\tfileManager.searchCardFile();//将数据存储到文件集合和文件大小里\n\t\t\t\t\t\t\t\t\n//\t\t\t\trunOnUiThread(new Runnable() {\n//\t\t\t\t\t\n//\t\t\t\t\t@Override\n//\t\t\t\t\tpublic void run() {\n//\t\t\t\t\t\t//测试将所有文件大小显示\n//\t\t\t\t\t\ttv_all_size.setText(CommonUtil.getFileSize(fileManager.getAnyFileSize()));\n//\t\t\t\t\t\ttv_txt_size.setText(CommonUtil.getFileSize(fileManager.getTxtFileSize()));\n//\t\t\t\t\t\ttv_apk_size.setText(CommonUtil.getFileSize(fileManager.getApkFileSize()));\n//\t\t\t\t\t\ttv_audio_size.setText(CommonUtil.getFileSize(fileManager.getAudioFileSize()));\n//\t\t\t\t\t\ttv_image_size.setText(CommonUtil.getFileSize(fileManager.getImageFileSize()));\n//\t\t\t\t\t\ttv_video_size.setText(CommonUtil.getFileSize(fileManager.getVideoFileSize()));\n//\t\t\t\t\t\ttv_zip_size.setText(CommonUtil.getFileSize(fileManager.getZipFileSize()));\n//\t\t\t\t\t}\n//\t\t\t\t});\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tthread.start();\n\t}",
"private static void test() {\n\t\tVector<Object> list = new Vector<Object>();\n\t\tint threadNum = 1000;\n\t\tCountDownLatch countDownLatch = new CountDownLatch(threadNum);\n\t\t\n\t\t//启动threadNum个子线程\n\t\tfor(int i=0;i<threadNum;i++){\n\t\t\tThread thread = new Thread(new MyThread(list,countDownLatch));\n\t\t\tthread.start();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\t//主线程等待所有子线程执行完成,再向下执行\n\t\t\tcountDownLatch.await();;\n\t\t}catch(InterruptedException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(list.size());\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\twhile (put_flag) {\n\t\t\t\tString path;\n\t\t\t\tif (usbImagePathList.size() > 0) {\n\t\t\t\t\tif (currentImg >= usbImagePathList.size()) {\n\t\t\t\t\t\tcurrentImg = 0;\n\t\t\t\t\t}\n\t\t\t\t\tpath = usbImagePathList.get(currentImg++);\n\t\t\t\t\t//Log.d(TAG,\"the PutImageIntoSdcard thread is running--PutImageIntoSdcard_path---------:\" + path);\n\t\t\t\t\tsynchronizedImage.push(path);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep((int) (4 * ONE_SECOND));\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}",
"static void doThread() throws InterruptedException {\r\n\t\tthreadMessage(\"Starting MessageLoop thread\");\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t// int nthreads=2;\r\n\t\tint nthreads = numnodes;\r\n\t\tThread[] tList;\r\n\r\n\t\ttList = new Thread[nthreads];\r\n\t\tString driver = null;\r\n\t\tString host = null;\r\n\t\tString user = null;\r\n\t\tString pass = null;\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\tdriver = (nodeAL.get(i)).getDriver();\r\n\t\t\thost = (nodeAL.get(i)).getHostName();\r\n\t\t\tuser = (nodeAL.get(i)).getUserName();\r\n\t\t\tpass = (nodeAL.get(i)).getPassword();\r\n\t\t\t// tList[i]= new Thread( new MessageLoop() );\r\n\t\t\t// System.out.println(\"HN is: \" + host + i);\r\n\t\t\ttList[i] = new Thread(new MessageLoop(driver, host, user, pass));\r\n\t\t\ttList[i].start();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Waiting for all MessageLoop threads to finish\");\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\ttList[i].join();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Finally all done!\");\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tMultiThreading a1= new MultiThreading();\n\t\tMultiThreading2 a2= new MultiThreading2();\n\t\ta1.setName(\"Bhains\");// hamesa start se pahle likha hota hai \n\t\ta2.setName(\"Hero\");\n\t\ta1.start();// agar yaha run ko call kia to multi thread nahi hai\n\t\t\n\t\ta2.start();\n\t//\tThread.sleep(10000);// ek thread pe ek hi baar \n\t\tMultiThreading b1=new MultiThreading();\n\t\t\n\t\t\n\t\t//a1.start();// ek baar start hui use fir nahi initialize nahi kar sakte Run time pe aaega error\n\t\tb1.start();\n\t\t\n\t\t\t//a1.m1();\n\t\t\t//a2.m2();\t\t\t\n\t}",
"public static void main(String[] args) {\n\t\tprocess Processes[] = new process[6];\r\n\t\tfor (int i = 0; i < 6; i++)\r\n\t\t{\r\n\t\t\tProcesses[i] = new process(i, r1, r2); //creates new thread\r\n\t\t\tProcesses[i].start(); //executes the thread\r\n\t\t\tSystem.out.println(\"===== Thread for process_\" + i + \" created\");\r\n\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tif (args.length == 0) {\n\t\t\t System.err.println(\"Usage Error: the program expects a file name as an argument\");\n\t\t\t System.exit(-1);\n\t\t}\n\t\t\n\t\t// create a file with the entered file name\n\t\tFile file= new File(args[0]);\n\t\t\n\t\t// if the file does not exist inform the user and terminate the program\n\t\tif(file.exists()!=true){\n\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file cannot be read inform the user and terminate the program\n\t\telse if(file.canRead()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file is not a file inform the user and terminate the program\n\t\telse if(file.isFile()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\t\n\t\t// create a list of type TreeList that will contain all the tree objects \n\t\tTreeList list= new TreeList();\n\t\t\t\n\t\ttry{\n\t\t\t// send the file to the scanner\n\t\t\tScanner inputFile = new Scanner(file);\n\t\t\t\n\t\t\t// create a boolean variable that is initially equal to true. \n\t\t\t// Since the first line does not contain info that can be parsed use the \n\t\t\t// variable to ensure the first line is skipped\n\t\t\tboolean firstLine=true;\n\t\t\t\n\t\t\t// while there is another line in the file continue the loop\n\t\t\twhile (inputFile.hasNextLine())\t{\n\t\t\t\t\n\t\t\t\t// create a string that represents a single line from the file\n\t\t\t\tString line= inputFile.nextLine();\n\t\t\t\t\n\t\t\t\t// send the line to have its information separated and entered into an\n\t\t\t\t// arrayList of strings\n\t\t\t\tArrayList<String> splitLine= splitCSVLine(line);\n\t\t\t\t\n\t\t\t\t\t// ensure the splitLine contains 41 elements, if not, skip it\n\t\t\t\t\tif (splitLine.size()==41){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t// parse the information according to the needed information\n\t\t\t\t\t\t\t// about a tree that is sent to the tree class\n\t\t\t\t\t\t\tint id= Integer.parseInt(splitLine.get(0));\n\t\t\t\t\t\t\tint diam= Integer.parseInt(splitLine.get(3));\n\t\t\t\t\t\t\tString status= splitLine.get(6);\n\t\t\t\t\t\t\tString health= splitLine.get(7);\n\t\t\t\t\t\t\tString spc= splitLine.get(9);\n\t\t\t\t\t\t\tint zip= Integer.parseInt(splitLine.get(25));\n\t\t\t\t\t\t\tString boro= splitLine.get(29);\n\t\t\t\t\t\t\tdouble x= Double.parseDouble(splitLine.get(39));\n\t\t\t\t\t\t\tdouble y= Double.parseDouble(splitLine.get(40));\n\t\t\t\t\t\t\t// once information is parsed, use its information to create a \n\t\t\t\t\t\t\t// new tree\n\t\t\t\t\t\t\tTree tree= new Tree(id,diam,status,health,spc,zip,boro,x,y);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// ensure that the new tree does not have the same\n\t\t\t\t\t\t\t// ID, but a different species name from the other trees\n\t\t\t\t\t\t\t// in treeList\n\t\t\t\t\t\t\tfor (int i=0; i<list.size();i++){\n\t\t\t\t\t\t\t\ttree.equals(list.get(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// if the tree object is valid, add it to treeList list\n\t\t\t\t\t\t\tlist.add(tree);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// catch any invalid values sent to the constructor of the tree class\n\t\t\t\t\t\tcatch (IllegalArgumentException e){\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// throw a general exception in the case there is a parsing error\n\t\t\t\t\t\t// therefore the line will be ignored\n\t\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t//}\n\t\t\t\t// after the first line passes through the loop set it equal\n\t\t\t\t// to false so the following information can be parsed and \n\t\t\t\t// sent to the tree class\n\t\t\t\tfirstLine=false;\n\t\t\t\n\t\t\t}\n\t\t\t// close the scanner\n\t\t\tinputFile.close();\n\t\t }\n\t\t\n\t\t// catch if the file cannot be found and send a message describing what happened\n\t\t// to the user. Exit the program.\n\t\tcatch (FileNotFoundException e){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" does not exist.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// create an if statement to terminate the program if the file is empty or contains\n\t\t// no usable information\n\t\tif (list.size()==0){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" contains no usable information.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// this portion of the program will handle user input and print the correct\n\t\t// tree information according to the tree species the user enters \n\t\t\n\t \t// create an exit word that will terminate the loop\n\t\tString exitWord=\"quit\";\n\t\t\n\t\t// create a string variable that represents the user's answer\n\t\tString answer;\n\t\t \n\t\t// open the scanner \n\t\tScanner input= new Scanner(System.in);\n\t\t// print a statement informing the user what to do\n\t\tSystem.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t// set the answer equal to the user's response\n answer= input.nextLine();\n \n // while the answer is not quit, keep prompting the user for a tree species\n\t\twhile (!(answer.equalsIgnoreCase(exitWord))){\n\t\t\t// if the tree species exists within the list of trees, print its matching species\n\t\t\t// and how many of that species exists within NYC and its boroughs\n\t\t\tif ((list.getCountByTreeSpecies(answer))>0){\n\t\t\t\tSystem.out.println(getMatchingSpecies(list,answer)+\"\\n\");\n\t\t\t\tSystem.out.println(getSpeciesInfo(list,answer));\n\t\t\t}\n\t\t\t\n\t\t\t// if the tree species is not within the list of trees, print a statement to \n\t\t\t// the user explaining it does not exist in NYC\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.out.println(\"There are no records of \"+answer+\" on NYC streets\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\n\t\t// re-prompt the user to enter a tree species\n\t\t System.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t answer= input.nextLine();\n\t\t}\n\t\t\n\t\t//close the scanner\n\t\t input.close();\n\t\t \n\t\t \n\t}",
"public static void main(String[] args) {\n \r\n\t\t Thread_run th=new Thread_run();\r\n\t\t Thread_runnable th2=new Thread_runnable();\r\n\t\t Thread_run[] m=new Thread_run[10];\r\n\t\t Thread_runnable[] n=new Thread_runnable[10];\r\n\t\t th.start();\r\n\t\t th2.run();\r\n\t\t for(int i=0;i<10;i++) {\r\n\t\t\t m[i]=new Thread_run();\r\n\t\t\t n[i]=new Thread_runnable();\r\n\t\t\t m[i].start();\r\n\t\t\t n[i].run();\r\n\t\t }\r\n\t\t \r\n\t\t try {\r\n\t\t\tth.join();\r\n\t\t} catch (InterruptedException 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 for(int i=0;i < 10;i++) {\r\n\t\t\t\tSystem.out.println(\"mainから出力 : \"+i);\r\n\t\t\t}\r\n\t}"
] | [
"0.6484719",
"0.6368481",
"0.63244766",
"0.59507257",
"0.5894111",
"0.5881551",
"0.58792496",
"0.5875057",
"0.58317465",
"0.5810606",
"0.57440263",
"0.5711543",
"0.571103",
"0.56553555",
"0.56032205",
"0.55796653",
"0.55731803",
"0.55239254",
"0.55221474",
"0.5511618",
"0.5493534",
"0.54735273",
"0.545252",
"0.5445729",
"0.5409659",
"0.5383577",
"0.53810084",
"0.5378619",
"0.5363443",
"0.53615177",
"0.5343361",
"0.53334117",
"0.53301704",
"0.5316891",
"0.53024733",
"0.5291819",
"0.52903837",
"0.5282186",
"0.52754414",
"0.5272779",
"0.52706915",
"0.5267281",
"0.52630246",
"0.52480656",
"0.5244899",
"0.52434355",
"0.5237739",
"0.52375215",
"0.5230306",
"0.5219986",
"0.520115",
"0.5200447",
"0.5197879",
"0.519025",
"0.51868224",
"0.5174603",
"0.5170276",
"0.51693094",
"0.5165639",
"0.5159631",
"0.51594174",
"0.5155811",
"0.51177734",
"0.5109994",
"0.51081574",
"0.5108019",
"0.5082689",
"0.5075811",
"0.50645417",
"0.5063532",
"0.50621814",
"0.506085",
"0.50582373",
"0.5052607",
"0.50496733",
"0.50467765",
"0.5046311",
"0.50433505",
"0.5040799",
"0.50313705",
"0.5028379",
"0.50229913",
"0.5018316",
"0.5011728",
"0.50105363",
"0.5010062",
"0.5005318",
"0.5000295",
"0.50000703",
"0.49960667",
"0.49960405",
"0.49952966",
"0.4994465",
"0.49917495",
"0.4987569",
"0.49840403",
"0.49765018",
"0.4974736",
"0.4972947",
"0.49718702"
] | 0.69679356 | 0 |
This interface is for identifying plugins as plugins. | public interface Plugin
{
public String getPluginName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Plugin {\n\n\t/**\n\t * Returns a description of the plugin, to be shown as a tooltip and/or in the\n\t * help menu.\n\t * \n\t * @return\n\t */\n\tString getDescription();\n\n\t/**\n\t * A label for buttons and menu entries\n\t * \n\t * @return\n\t */\n\tString getName();\n\n\tIkon getIkon();\n\n}",
"public interface Plugin {\n\n /**************************************************************************\n * Method: starting\n * <p>\n * Starting a plugin requires this method.\n **************************************************************************/\n public void starting();\n\n /**************************************************************************\n * Method: stopping\n * <p>\n * Stopping a plugin will happen with this method. Be it an 'emergency-stopping'\n * or you just want to turn it off.\n **************************************************************************/\n public void stopping();\n\n /**************************************************************************\n * Method: setPluginManager\n * <p>\n * To let the Plugin interact with the program we need to give something\n * with what it can work. The PluginManager is the best 'something' because\n * it knows what kind of information the Plugins are allowed to get. And\n * with the plugin manager We have specified what information the plugins\n * are allowed to use.\n **************************************************************************/\n public void setPluginManager(PluginManager pluginManager);\n}",
"public interface Plugin<T> {\n\t/**\n\t * Method returns the hashmap with loaded plugins. </p> Hashmap is inside\n\t * PluginManager class.\n\t * \n\t * @return hashmap with loaded plugins\n\t */\n\tpublic HashMap<String, T> getStorage();\n\n\t/**\n\t * Method adds the plugin specified in pluginClass param into hashmap with\n\t * param key. </p> Hashmap is inside PluginManager class.\n\t * \n\t * @param key\n\t * to hashmap with added plugin\n\t * @param pluginClass\n\t * of type class to save into hashmap\n\t */\n\tpublic void addPlugin(String key, T pluginClass);\n\n\t/**\n\t * Name of the plugin.\n\t * \n\t * @return name of plugin\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Tests if the plugin has any error\n\t * \n\t * @return true if there is any error.\n\t */\n\tpublic boolean hasError();\n}",
"public interface IPluginManager {\n\tpublic BasePluginPackage initPlugin(String pluginPath);\n\n\tpublic BasePluginPackage getPluginPackage(String packageName);\n\n\tpublic Class loadPluginClass(BasePluginPackage basePluginPackage, String className);\n}",
"public interface Plugin {\n void doUsefil();\n}",
"public interface IPluginLibrary {\n \n /*\n * Initializes the library\n */\n public void initialize(DefaultPluginsCollector collector);\n \n /*\n * Start the module and initialize components\n */\n public void startLibrary();\n \n /*\n * Fetches all extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return The gathered plugins in a LinkedList\n */\n public void loadAllPlugins(final String extPointId);\n \n /*\n * Fetches new extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return A human readable string\n */\n public String loadNewPlugin(final String extPointId); \n \n /**\n * Checks a plugin for validity.\n * \n * @param plugin The plugin to check\n * @param The level to test against, this method will return true if the result is greater or\n * equal than the testLevel\n * @return true or false\n */\n public boolean isValidPlugin(MartinPlugin plugin, MartinAPITestResult testLevel);\n\n /**\n * Answer a request by searching plugin-library for function and executing\n * them.\n * \n * @param req The {@link ExtendedQequest} to answer.\n * \n * @return The generated {@link MResponse}.\n */\n public MResponse executeRequest(ExtendedRequest req);\n\n \n public List<PluginInformation> getPluginInformation();\n \n /**\n * Returns a list of example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of example calls\n */\n public List<MExampleCall> getExampleCalls();\n \n /**\n * Returns a list of 5 randomly choosen example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of 5 randomly choosen example calls\n */\n public List<MExampleCall> getRandomExampleCalls();\n \n public Map<String, Pair<Boolean, MartinPlugin> > getPluginExtentions();\n}",
"public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}",
"public interface IPlugin {\n void setParam(IParam param);\n\n IParam getParam();\n\n void setMonitor(IPluginMonitor monitor);\n\n IPluginMonitor getMonitor();\n\n void init();\n\n void connection();\n\n void finish();\n\n Map<String, String> getMonitorInfo();\n}",
"public interface QueryEnginePluginDescriptor extends PluginDescriptor {\n}",
"public void loadPluginsStartup();",
"@Override\r\n\tpublic void configPlugin(Plugins me) {\n\r\n\t}",
"Plugin getPlugin();",
"public interface Plugin {\n\n /**\n * Invoked when plugin is loaded\n */\n void Initialize();\n\n /**\n * Get plugin name\n * @return plugin name\n */\n String getName();\n\n /**\n * Show the issue management window\n * @param pmsIssue Notification for which the window should be displayed\n * @see PMSIssue\n * @param pmsUser User data\n * @see PMSUser\n *\n * @return window instance\n * @see Stage\n */\n Stage getIssueWindow(PMSIssue pmsIssue, PMSUser pmsUser);\n\n /**\n * Get a PMSManage object to control the project management system\n * @return PMSManage object\n */\n PMSManage getPMSManage();\n\n\n /**\n * When program is shutting down\n */\n void Free();\n}",
"protected abstract PluginManager<String, BaseType> getPluginManager();",
"public interface PluginManager<P extends REIPlugin<?>> extends ParentReloadable<P> {\n @Environment(EnvType.CLIENT)\n static PluginManager<REIClientPlugin> getClientInstance() {\n return ClientInternals.getPluginManager();\n }\n \n static PluginManager<REIPlugin<?>> getInstance() {\n return Internals.getPluginManager();\n }\n \n static PluginManager<REIServerPlugin> getServerInstance() {\n return Internals.getServerPluginManager();\n }\n \n static List<PluginManager<? extends REIPlugin<?>>> getActiveInstances() {\n return EnvExecutor.getEnvSpecific(() -> () -> Arrays.asList(getInstance(), getClientInstance(), getServerInstance()),\n () -> () -> Arrays.asList(getInstance(), getServerInstance()));\n }\n \n static boolean areAnyReloading() {\n return CollectionUtils.anyMatch(getActiveInstances(), PluginManager::isReloading);\n }\n \n boolean isReloading();\n \n <T extends Reloadable<? super P>> T get(Class<T> reloadableClass);\n \n List<REIPluginProvider<P>> getPluginProviders();\n \n Iterable<P> getPlugins();\n \n @ApiStatus.Internal\n PluginView<P> view();\n}",
"public interface PluginBase {\n void init();\n void run();\n}",
"public interface PluginProvider {\n\n /**\n * Returns an instance of the specified plugin by loading the plugin class through the specified class loader.\n *\n * @param type plugin type class\n * @param className plugin class name\n * @param classLoader class loader to be used to load the plugin class\n * @param <T> plugin type\n * @return instance of the plugin\n * @throws PluginLoadingException if en error occurred when loading or instantiation of the plugin\n */\n <T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;\n}",
"private List<IUserLoginPlugin> getLoginPlugins()\n/* */ {\n/* 341 */ if (this.plugins == null)\n/* 342 */ this.plugins = PluginManager.newIns().getExtInstances(\"loginplugin\", IUserLoginPlugin.class);\n/* 343 */ return this.plugins;\n/* */ }",
"Plugin getPlugin( );",
"public final static List<KaranteeniPlugin> getPluginInstances() {\r\n\t\treturn new ArrayList<KaranteeniPlugin>(kPluginInstances.values());\r\n\t}",
"private void loadPlugins(){\r\n\t\tKomorebiCoreConfig config = new KomorebiCoreConfig();\r\n\t\t\r\n\t\tif(config.getRootNode().getChildrenCount(\"plugins\") < 1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tList<ConfigurationNode> pluginNodes = config.getRootNode().getChildren(\"plugins\").get(0).getChildren(\"plugin\");\r\n\t\tfor(int pos=0; pos<pluginNodes.size(); ++pos){\r\n\t\t\tString name = config.getString(\"plugins.plugin(\"+pos+\")[@name]\");\r\n\t\t\tString version = config.getString(\"plugins.plugin(\"+pos+\")[@version]\");\r\n\t\t\tif(version == null || name == null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tloadPluginsJar(name+\"-\"+version); // check all classes in jar\r\n\t\t}\r\n\t}",
"public interface FJPluginInterface\r\n{\r\n\t/**\r\n\t * When the plugin is loaded, the pluin's implementation of this method\r\n\t * will be invoked. If nothing needs to be done on startup in a plugin,\r\n\t * keep the method empty. For instance you might do all the work in the\r\n\t * constructor, or you could wait for user input, which will make this\r\n\t * method unnecessary.\r\n\t */\r\n\tpublic void start();\r\n\t\r\n\t/**\r\n\t * Invoked when a plugin is unloaded and another plugin is loaded or when\r\n\t * Flask Jaws is terminated. Useful for shutting down sockets and readers\r\n\t * when you exit your plugin. If nothing needs to be done upon exit or no\r\n\t * cleaning needs to be done, this method may be left empty.\r\n\t * <p>\r\n\t * If a plugin supports networking of any kind, it should call\r\n\t * {@link se.mansehr.flaskjaws.pluginclasses.FJNetwork#close()} in this method.\r\n\t */\r\n\tpublic void stop();\r\n\t\r\n\t/**\r\n\t * Whenever there's a plugin loaded and you select a menu item from the\r\n\t * menu bar, this method will be called. It should pause the plugin\r\n\t * implementing this method. If no pausing is neccessary, it can be\r\n\t * implemented as an emtpy method.\r\n\t */\r\n\tpublic void pause();\r\n\t\r\n\t/**\r\n\t * Has the opposite function as {@link #pause()}, it resumes the plugin\r\n\t * once the actions invoked by selecting a menu item is done.\r\n\t */\r\n\tpublic void resume();\r\n}",
"protected abstract void onPluginEnable();",
"List<QuestionPlugin> getQuestionPlugins();",
"public interface MultiversePlugin {\n\n /**\n * Gets the reference to MultiverseCore.\n *\n * @return A valid {@link MultiverseCore}.\n */\n @NotNull\n MultiverseCore getMultiverseCore();\n\n /**\n * Allows Multiverse or a plugin to query another Multiverse plugin to see what version its protocol is.\n *\n * This number should change when something will break the code. Generally your plugin should be checking the\n * Multiverse-Core's protocol version to ensure compatibility.\n *\n * @return The protocol version.\n */\n int getProtocolVersion();\n\n /**\n * Returns the version string of this Multiverse Plugin.\n *\n * @return the version string of this Multiverse Plugin.\n */\n String getVersion();\n}",
"public static Set<String> getPluginNamesOfType(String interfaceName) { \n if (PLUGINS.get(interfaceName) != null) {\n return PLUGINS.get(interfaceName).keySet();\n }\n \n return null;\n }",
"public interface Plugin\n{\n /**\n * Initialize the plug-in. Plug-ins need to know the text area in order to provide only those feature that are\n * supported.\n * \n * @param textArea the text area of the editor\n * @param config the configuration object\n */\n void init(RichTextArea textArea, Config config);\n\n /**\n * @return all the user interface extensions that are provided by this plug-in\n */\n UIExtension[] getUIExtensions();\n\n /**\n * Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.\n */\n void destroy();\n}",
"private interface FakeVersionedPlugin extends VersionedPlugin, StoragePlugin {\n }",
"private PluginsInternal() {}",
"void bootPlugins() {\n\t\tList<List<String>>vals = (List<List<String>>)properties.get(\"PlugInConnectors\");\n\t\tif (vals != null && vals.size() > 0) {\n\t\t\tString name, path;\n\t\t\tIPluginConnector pc;\n\t\t\tList<String>cntr;\n\t\t\tIterator<List<String>>itr = vals.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tcntr = itr.next();\n\t\t\t\tname = cntr.get(0);\n\t\t\t\tpath = cntr.get(1);\n\t\t\t\ttry {\n\t\t\t\t\tpc = (IPluginConnector)Class.forName(path).newInstance();\n\t\t\t\t\tpc.init(this, name);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogError(e.getMessage(), e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}",
"@Override\n public PluginInformation getPluginInformation() {\n return super.getPluginInformation();\n }",
"private static void initPlugins() {\n \tJSPFProperties props = new JSPFProperties();\n PluginManager pm = PluginManagerFactory.createPluginManager(props);\n pm.addPluginsFrom(new File(\"plugins/\").toURI());\n JavaBot.plugins = new PluginManagerUtil(pm).getPlugins(javaBotPlugin.class);\n }",
"@Override\n public void initialize() {\n for (final PluginInfo<AbstractVolumeManagerPlugin> info : getPlugins()) {\n String name = info.getName();\n if (name == null || name.isEmpty()) {\n name = info.getClassName();\n }\n // Add the plugin to the list of known animals.\n plugins.put(name, info);\n }\n }",
"public void addPlugin(String key, T pluginClass);",
"@VisibleForTesting\n List<TimelineEntityGroupPlugin> getPlugins() {\n return cacheIdPlugins;\n }",
"public void registerEvents(Citizens plugin);",
"void registerQuestionPlugin(QuestionPlugin plugin);",
"public interface NamedListPlugin {\n\tpublic void init(NamedList<?> args) throws ErrorException;\n}",
"public interface PluginInterface {\n\n public void attach(Activity proxyActivity);\n\n public void onCreate(Bundle saveInstanceState);\n\n public void onStart();\n\n public void onResume();\n\n public void onPause();\n\n public void onStop();\n\n public void onDestroy();\n\n public void onSaveInstanceState(Bundle outSate);\n\n public boolean onTouchEvent(MotionEvent event);\n\n public void onBackPressed();\n\n\n}",
"public TagPluginManager getTagPluginManager();",
"public BuildAnalyzerPlugin() {\n\t\tsuper();\n\t\tmonitor.register();\n\t\tplugin = this;\n\t}",
"@Nonnull\n public List<Class<? extends PluginInterface>> loadPlugins(@Nonnull String pluginDirName) {\n\n List<Class<? extends PluginInterface>> plugins=new ArrayList<>();\n\n //Директория для просмотра файлов\n File pluginDirectory=new File(pluginDirName);\n File[] files=pluginDirectory.listFiles((dir, name) -> name.endsWith(PLUGIN_EXT));\n\n //Загрузка плагинов\n if(files!=null && files.length>0) {\n getPluginsClasses(files).forEach(className->{\n try {\n //Получим свой загрузчик файлов и загрузим с помощью него плагины\n Class cls=getClassLoaderByFilesURL(files)\n .loadClass(className\n .replaceAll(\"/\",\".\")\n .replace(\".class\",\"\"));\n\n //Если класс расширяет PluginInterface, то добавим этот класс в массив\n Class[] interfaces=cls.getInterfaces();\n for(Class intface:interfaces) {\n if(intface.equals(PluginInterface.class)) {\n plugins.add(cls);\n }\n }\n }\n catch (Exception e){\n e.printStackTrace();\n }\n });\n }\n\n return plugins;\n }",
"protected abstract String getPluginId();",
"public void startPlugin() {\n classesDisponibles = new HashMap[types.length];\n try { // enregistrer le service d'acces aux depot de jars\n ServicesRegisterManager.registerService(Parameters.JAR_REPOSITORY_MANAGER, this);\n rescanRepository(); // creer les listes de classes disponibles a partir du depot\n }\n catch (ServiceInUseException mbiue) {\n System.err.println(\"Jar Repository Manager service created twice\");\n }\n }",
"public interface AnalysisPluginInterface {\n\n\t/**\n\t * The framework will call this method to get the title of this analysis\n\t * plugin.\n\t * \n\t * @return The title.\n\t */\n\tString getTitle();\n\n\t/**\n\t * The framework will call this method to get the description of this\n\t * analysis plugin.\n\t * \n\t * @return The description.\n\t */\n\tString getDescription();\n\n\t/**\n\t * The framework will use the method to pass by a complete set of user's\n\t * data.\n\t * \n\t * @param data\n\t * A list of all person objects.\n\t */\n\tvoid setData(List<Person> data);\n\n\t/**\n\t * The framework will call this method to get the result. The result\n\t * should be presented in a JPanel.\n\t * \n\t * @return A JPanel the presents the result.\n\t */\n\tJPanel getPanel();\n\n}",
"public JSONObject getPlugins() {\r\n\t\tJSONObject plugins = (JSONObject) super.get(PLUGINS_FIELD_NAME);\r\n\t\tif (plugins == null) {\r\n\t\t\tplugins = new JSONObject();\r\n\t\t\tsuper.put(PLUGINS_FIELD_NAME, plugins);\r\n\t\t}\r\n\t\treturn plugins;\r\n\t}",
"public interface Renameable {\r\n\t/**\r\n\t * Gibt den Key des Plugin zurück. Den Klassenname.\r\n\t * \r\n\t * @return String den Key des Plugin, der Klassenname\r\n\t */\r\n\tString getPluginKey();\r\n\r\n\t/**\r\n\t * Gibt die Beschreibung des Rename Plugin zurück.\r\n\t * \r\n\t * @return String die Beschreibung des Plugin\r\n\t */\r\n\tString getPluginBeschreibung();\r\n\r\n\t/**\r\n\t * Setzt die Datei die geändert werden soll. Die Quelldatei.\r\n\t * \r\n\t * @param pvDatei\r\n\t * die Quelldatei Datei die geändert werden soll.\r\n\t */\r\n\tvoid setDateiname(File pvDatei);\r\n\r\n\t/**\r\n\t * Gibt den neuen Dateiname zurück. Der Zieldatei Name.\r\n\t * \r\n\t * @return String mit den neuen Zieldatei Name\r\n\t */\r\n\tString getZielDateiname();\r\n\r\n\t/**\r\n\t * Gibt das Zielverzeichnis zurück.\r\n\t * \r\n\t * @return gibt das Ziel Verzeichnis\r\n\t */\r\n\tString getZielPfad();\r\n\r\n\t/**\r\n\t * Gibt die Klasse zurück, die die Gui implementiert.\r\n\t * \r\n\t * @return String der Klasse die die Gui implementiert\r\n\t */\r\n\tString getGuiClass();\r\n\r\n\t/**\r\n\t * Gibt das Gui Panel Objekt zurück.\r\n\t * \r\n\t * @return das Gui Panel Object\r\n\t */\r\n\tOptionGuiable getGuiObject();\r\n}",
"public void loadPlugins()\n throws Exception\n {\n SecurityClassLoader securityClassLoader = new SecurityClassLoader(Plugin.class.getClassLoader(),\n ImmutableList.of(\"ideal.sylph.\", \"com.github.harbby.gadtry.\")); //raed only sylph-api deps\n this.loader = ModuleLoader.<Plugin>newScanner()\n .setPlugin(Plugin.class)\n .setScanDir(pluginDir)\n .setLoader(OperatorManager::serviceLoad)\n .setClassLoaderFactory(urls -> new VolatileClassLoader(urls, securityClassLoader)\n {\n @Override\n protected void finalize()\n throws Throwable\n {\n super.finalize();\n logger.warn(\"Jvm gc free ClassLoader: {}\", Arrays.toString(urls));\n }\n })\n .setLoadHandler(module -> {\n logger.info(\"loading module {} find {} Operator\", module.getName(), module.getPlugins().size());\n ModuleInfo moduleInfo = new ModuleInfo(module, new ArrayList<>());\n analyzeModulePlugins(moduleInfo);\n ModuleInfo old = userExtPlugins.put(module.getName(), moduleInfo);\n if (old != null) {\n Try.of(old::close).onFailure(e -> logger.warn(\"free old module failed\", e)).doTry();\n }\n }).load();\n }",
"public APlugin getPlugin() {\n return plugin;\n }",
"public Collection<Plugin> getPlugins()\n {\n final List<Plugin> plugins;\n synchronized ( this )\n {\n plugins = Arrays.asList(pluginsLoaded.values().toArray(new Plugin[0]));\n }\n return Collections.unmodifiableCollection( plugins );\n }",
"public interface PluginClient {\n\n /**\n * Retrieves all automator types readable by the user. If no automator types exist, returns an empty list.\n *\n * @return List of {@link co.cask.coopr.spec.plugin.AutomatorType} objects\n * @throws IOException in case of a problem or the connection was aborted\n */\n List<AutomatorType> getAllAutomatorTypes() throws IOException;\n\n /**\n * Retrieves a specific automator type if readable by the user.\n *\n * @return {@link co.cask.coopr.spec.plugin.AutomatorType} object\n * @throws IOException in case of a problem or the connection was aborted\n */\n AutomatorType getAutomatorType(String id) throws IOException;\n\n /**\n * Retrieves all provider types readable by the user. If no provider types exist, returns an empty list.\n *\n * @return List of {@link co.cask.coopr.spec.plugin.ProviderType} objects\n * @throws IOException in case of a problem or the connection was aborted\n */\n List<ProviderType> getAllProviderTypes() throws IOException;\n\n /**\n * Retrieves a specific provider type if readable by the user.\n *\n * @return {@link co.cask.coopr.spec.plugin.ProviderType} object\n * @throws IOException in case of a problem or the connection was aborted\n */\n ProviderType getProviderType(String id) throws IOException;\n\n /**\n * Retrieves a list of all versions of the given resource of the given type for the given automator type.\n * Method can optionally contain a 'status' parameter, whose value is one of 'active', 'inactive', 'staged', or\n * 'recalled' to filter the results to only contain resource that have the given status.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to get\n * @param status Status of the resources to get {@link co.cask.coopr.provisioner.plugin.ResourceStatus}.\n * Or null, for resources of any status are returned\n * @return Immutable map of resource name to resource metadata\n * @throws IOException in case of a problem or the connection was aborted\n */\n Map<String, Set<ResourceMeta>> getAutomatorTypeResources(String id, String resourceType, ResourceStatus status)\n throws IOException;\n\n /**\n * Retrieves a mapping of all resources of the given type for the given provider type.\n * Method can optionally contain a 'status' parameter, whose value is one of 'active', 'inactive', 'staged', or\n * 'recalled' to filter the results to only contain resource that have the given status.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to get\n * @param status Status of the resources to get {@link co.cask.coopr.provisioner.plugin.ResourceStatus}.\n * Or null, for resources of any status are returned\n * @return Immutable map of resource name to resource metadata\n * @throws IOException in case of a problem or the connection was aborted\n */\n Map<String, Set<ResourceMeta>> getProviderTypeResources(String id, String resourceType, ResourceStatus status)\n throws IOException;\n\n /**\n * Stage a particular resource version, which means that version of the resource will get pushed to provisioners\n * on the next sync call. Staging one version recalls other versions of the resource.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to stage\n * @param resourceName Name of the resource to stage\n * @param version Version of the resource to stage\n * @throws IOException in case of a problem or the connection was aborted\n */\n void stageAutomatorTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Stage a particular resource version, which means that version of the resource will get pushed to provisioners\n * on the next sync call. Staging one version recalls other versions of the resource.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to stage\n * @param resourceName Name of the resource to stage\n * @param version Version of the resource to stage\n * @throws IOException in case of a problem or the connection was aborted\n */\n void stageProviderTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Recall a particular resource version, which means that version of the resource will get removed from provisioners\n * on the next sync call.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to recall\n * @param resourceName Name of the resource to recall\n * @param version Version of the resource to recall\n * @throws IOException in case of a problem or the connection was aborted\n */\n void recallAutomatorTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Recall a particular resource version, which means that version of the resource will get removed from provisioners\n * on the next sync call.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to recall\n * @param resourceName Name of the resource to recall\n * @param version Version of the resource to recall\n * @throws IOException in case of a problem or the connection was aborted\n */\n void recallProviderTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Delete a specific version of the given resource.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to delete\n * @param resourceName Name of the resource to delete\n * @param version Version of the resource to delete\n * @throws IOException in case of a problem or the connection was aborted\n */\n void deleteAutomatorTypeResourceVersion(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Delete a specific version of the given resource.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to delete\n * @param resourceName Name of the resource to delete\n * @param version Version of the resource to delete\n * @throws IOException in case of a problem or the connection was aborted\n */\n void deleteProviderTypeResourceVersion(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Push staged resources to the provisioners, and remove recalled resources from the provisioners.\n *\n * @throws IOException in case of a problem or the connection was aborted\n */\n void syncPlugins() throws IOException;\n}",
"private String[] detectPlugins() {\n \t\t\tchangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tparent.changeStampIsValid = false;\n \t\t\tparent.pluginsChangeStampIsValid = false;\n \n \t\t\tplugins = new ArrayList();\n \n \t\t\tif (!supportsDetection(resolvedURL))\n \t\t\t\treturn new String[0];\n \n \t\t\t// locate plugin entries on site\n \t\t\tFile root = new File(resolvedURL.getFile().replace('/', File.separatorChar) + PLUGINS);\n \t\t\tString[] list = root.list();\n \t\t\tString path;\n \t\t\tFile plugin;\n \t\t\tfor (int i = 0; list != null && i < list.length; i++) {\n \t\t\t\tpath = list[i] + File.separator + PLUGIN_XML;\n \t\t\t\tplugin = new File(root, path);\n \t\t\t\tif (!plugin.exists()) {\n \t\t\t\t\tpath = list[i] + File.separator + FRAGMENT_XML;\n \t\t\t\t\tplugin = new File(root, path);\n \t\t\t\t\tif (!plugin.exists())\n \t\t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tplugins.add(PLUGINS + \"/\" + path.replace(File.separatorChar, '/')); //$NON-NLS-1$\n \t\t\t}\n \t\t\tif (DEBUG) {\n \t\t\t\tdebug(resolvedURL.toString() + \" located \" + plugins.size() + \" plugin(s)\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\t}\n \n \t\t\treturn (String[]) plugins.toArray(new String[0]);\n \t\t}",
"public interface GameHelperPlugin {\n\n public ScoreBoard getScoreBoard();\n\n public void getRules();\n\n public void displayMenu();\n\n\n}",
"@Override\n public String getPluginId() {\n return PLUGIN_ID;\n }",
"public interface GeoServerPluginConfigurator {\r\n \r\n /**\r\n * Get the list of Resources used by the plugin.\r\n * \r\n * @return\r\n * @throws IOException\r\n */\r\n public List<Resource> getFileLocations() throws IOException;\r\n \r\n /**\r\n * Allows the plugin to store its configuration on the target {@link GeoServerResourceLoader}.\r\n * This way we delegate the plugin to save its configuration since it is the only\r\n * on who knows how to do it better.\r\n * \r\n * @param resourceLoader\r\n * @throws IOException\r\n */\r\n public void saveConfiguration(GeoServerResourceLoader resourceLoader) throws IOException;\r\n \r\n /**\r\n * Allows the plugin to reload its configuration from the target {@link GeoServerResourceLoader}.\r\n * This way we delegate the plugin to load its configuration since it is the only\r\n * on who knows how to do it better.\r\n * \r\n * @param resourceLoader\r\n * @throws IOException\r\n */\r\n public void loadConfiguration(GeoServerResourceLoader resourceLoader) throws IOException;\r\n\r\n}",
"public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }",
"public void setPluginName(String pluginName);",
"public void enable(CommonPlugin plugin);",
"Set<DependencyDescriptor> getPluginDependencyDescriptors() {\n return pluginDependencyDescriptors;\n }",
"void addPlugin(BaseComponentPlugin baseComponent);",
"public interface Registries {\n\n /***/\n ElementHandlerRegistry getElementHandlerRegistry();\n\n /***/\n AnnotationRegistry getAnnotationHandlerRegistry();\n\n /***/\n PainterRegistry getPaintRegistry();\n\n /**\n * Bundles up extension of each registry.\n */\n Registries createExtension();\n}",
"public Type getPluginType()\r\n\t{\r\n\t\treturn _pluginType; \r\n\t}",
"private Map<String, IPlugin> toPlugins( Market market ) {\n Collection<Market.MarketEntry> marketEntries = market.getMarketEntry();\n Map<String, IPlugin> plugins = new HashMap<>( marketEntries.size() );\n\n int rank = 0;\n for ( Market.MarketEntry entry : marketEntries ) {\n plugins.put( entry.getId(), this.toPlugin( entry, rank++ ) );\n }\n\n return plugins;\n }",
"public Plugin getPlugin()\r\n\t{\r\n\t\treturn plugin;\r\n\t}",
"public static List<String> getPluginsByType(PluginType t){\r\n\t\tMap<String, Class<IKomorebiPlugin>> plugins = instance.pluginRegister.get(t);\r\n\t\tif(plugins == null){\r\n\t\t\treturn new ArrayList<String>();\r\n\t\t}\r\n\t\treturn new ArrayList<String>(plugins.keySet());\r\n\t}",
"public interface LessonPluginCallback {\n\n void initPlugin(PluginViewItem item);\n\n void initState(PluginViewItem item);\n\n boolean click(View view);\n}",
"public String getPluginClass() {\n return pluginClass;\n }",
"public interface IntroPlugin extends MMPlugin {\n /**\n * Provide a \"splash\" image to display at the top of the intro dialog. If\n * this method returns null, then the default Micro-Manager logo will be\n * used.\n *\n * @return The image to use at the top of the intro dialog, or null.\n */\n Icon getSplashImage();\n\n /**\n * Provide a list of paths to config files to include in the config file\n * dropdown menu. These will be provided in addition to any config files\n * the user has used in the past. This list may be null or empty.\n *\n * @return List of config files to show to the user, or null.\n */\n List<String> getConfigFilePaths();\n}",
"synchronized private void tryRegisterPlugin(String name, Class<IKomorebiPlugin> pluginClass){\r\n\t\t\r\n\t\t// check status\r\n\t\tKomorebiPluginStatus pStatus = pluginClass.getAnnotation(KomorebiPluginStatus.class);\r\n\t\tif(pStatus != null){\r\n\t\t\tif(pStatus.disabled()){\r\n\t\t\t\tLogger.getLogger(LOGGER_NAME).info(\"Plugin '\"+pluginClass.getName()+\"' is disabled.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check if configuration consumer is correctly implemented\r\n\t\ttry{\r\n\t\t\tConstructor<IKomorebiPlugin> c = pluginClass.getConstructor();\r\n\t\t\tIKomorebiPlugin pi = c.newInstance();\r\n\t\t\tif(pi.isConfigConsumer() && !IKomorebiConfigurationConsumer.class.isAssignableFrom(pluginClass)){\r\n\t\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' does not adhere to defined standards (configuration consumer) and will be omitted.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}catch(NoSuchMethodException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' does not adhere to defined standards (default constructor) and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(InvocationTargetException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(IllegalAccessException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(InstantiationException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(IKomorebiStorage.class.isAssignableFrom(pluginClass)){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).info(\"Registered storage PlugIn '\"+pluginClass.getName()+\"'\");\r\n\t\t\tif(!pluginRegister.containsKey(PluginType.STORAGE)){\r\n\t\t\t\t// if submap does not already exist it has to be created\r\n\t\t\t\tpluginRegister.put(PluginType.STORAGE, new HashMap<String, Class<IKomorebiPlugin>>());\r\n\t\t\t}\r\n\t\t\tpluginRegister.get(PluginType.STORAGE).put(name, pluginClass);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn;\r\n\t}",
"@Override\n public PluginDescription getPluginDetails() {\n return new PluginDescription(this);\n }",
"public interface PluginGateway {\r\n ExecutionResult runPlugin(Object... inputs) throws Exception;\r\n}",
"@Override\n\tpublic void addRolePlugin(ComponentPlugin plugin) throws Exception {\n\n\t}",
"public List<PluginInfo> getPluginsByType(String type) {\n List<PluginInfo> typeList = new ArrayList<PluginInfo>();\n for (int i = 0; i < pl.getPlugins().size(); i++) {\n PluginInfo pi = pl.getPlugins().get(i);\n if (type.endsWith(pi.getType())) {\n typeList.add(pi);\n }\n }\n return typeList;\n }",
"public List<String> getAllPluginNames() {\n\t\treturn allPluginNames;\n\t}",
"@Override\n public void register(PluginAPI api){\n if(api instanceof VPluginAPI){\n VPluginAPI vapi = (VPluginAPI) api;\n vapi.addComponent(ODECreator.class);\n vapi.addComponent(ODESolver.class);\n }\n }",
"public final KaranteeniPlugin getPluginInstance(String string) {\r\n\t\treturn (KaranteeniPlugin) kPluginInstances.get(string);\r\n\t}",
"public interface SysPluginService extends BaseService<Sys_plugin> {\n}",
"public static void setup()\n\t{\n\t\tregisterEvent(calico.plugins.events.clients.ClientConnect.class);\n\t\tregisterEvent(calico.plugins.events.clients.ClientDisconnect.class);\n\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapCreate.class);\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapDelete.class);\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapReload.class);\n\t\t\n\t\t\n\t\t//System.out.println(\"LOAD PLUGINS: \"+COptions.server.plugins);\n\t\t\n\t\tlogger.debug(\"Loading plugins\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tPluginFinder pluginFinder = new PluginFinder();\n\t\t\tpluginFinder.search(\"plugins/\");\n\t\t\tList<Class<?>> pluginCollection = pluginFinder.getPluginCollection();\n\t\t\tfor (Class<?> plugin: pluginCollection)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Loading \" + plugin.getName());\n\t\t\t\tregisterPlugin(plugin);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString[] pluginsToLoad = COptions.server.plugins.split(\",\");\n\t\t\n//\t\tif(pluginsToLoad.length>0)\n//\t\t{\n//\t\t\tfor(int i=0;i<pluginsToLoad.length;i++)\n//\t\t\t{\n//\t\t\t\ttry\n//\t\t\t\t{\n//\t\t\t\t\tClass<?> pluginClass = Class.forName(pluginsToLoad[i].trim());\n//\t\t\t\t\tregisterPlugin(pluginClass);\n//\t\t\t\t}\n//\t\t\t\tcatch(Exception e)\n//\t\t\t\t{\n//\t\t\t\t\tlogger.error(\"Could not load plugin \"+pluginsToLoad[i].trim());\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\t\n\t\n\t}",
"public Set<String> getPluginDependencyNames() { return pluginDependencyNames; }",
"protected void pluginInitialize() {}",
"@Override\n \tpublic void OnPluginEnabled()\n \t{\n \t\tfor (CustomJukebox jukebox : this.repository.getJukeboxes())\n \t\t\tthis.jukeboxes.add(jukebox);\n \t}",
"private void fillPluginList() {\n\t\tlesSitesPlugin = new ArrayList<HashMap<String, String>>();\n\t\tcategories = new ArrayList<String>();\n\t\tPackageManager packageManager = getPackageManager();\n\t\tIntent baseIntent = new Intent(ACTION_PICK_PLUGIN);\n\t\tbaseIntent.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION);\n\t\tList<ResolveInfo> list = packageManager.queryIntentServices(baseIntent, PackageManager.GET_RESOLVED_FILTER);\n\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\tResolveInfo info = list.get(i);\n\t\t\tServiceInfo sinfo = info.serviceInfo;\n\t\t\t IntentFilter filter = info.filter;\n\t\t\tNotification.log(tag, \"taille de la liste de Plugin: \" + i + 1 + \"; sinfo: \" + sinfo);\n\t\t\tif (sinfo != null) {\n\t\t\t\t HashMap<String, String> item = new HashMap<String, String>();\n\t\t\t\t item.put(KEY_PKG, sinfo.packageName); // nom du package\n//\t\t\t\t item.put(KEY_SERVICENAME, StringLt.lastSegment(sinfo.name, '.')); // nom du plugin\n\t\t\t\t item.put(KEY_SERVICENAME, sinfo.name);\n\t\t\t\t String firstCategory = null;\n\t\t\t\t if (filter != null) {\n\t\t\t\t StringBuilder actions = new StringBuilder();\n\t\t\t\t for (Iterator<String> actionIterator = filter.actionsIterator(); actionIterator.hasNext();) {\n\t\t\t\t String action = actionIterator.next();\n\t\t\t\t if (actions.length() > 0)\n\t\t\t\t actions.append(\",\");\n\t\t\t\t actions.append(action);\n\t\t\t\t }\n\t\t\t\t StringBuilder categories = new StringBuilder();\n\t\t\t\t for (Iterator<String> categoryIterator = filter.categoriesIterator(); categoryIterator.hasNext();) {\n\t\t\t\t String category = categoryIterator.next();\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = category;\n\t\t\t\t if (categories.length() > 0)\n\t\t\t\t categories.append(\",\");\n\t\t\t\t categories.append(category);\n\t\t\t\t }\n\t\t\t\t// item.put(KEY_ACTIONS, new\n\t\t\t\t// String(StringLt.lastSegment(actions.toString(), '.')));\n\t\t\t\t// item.put(KEY_CATEGORIES, new\n\t\t\t\t// String(StringLt.lastSegment(categories.toString(),\n\t\t\t\t// '.')));\n\t\t\t\t item.put(KEY_ACTIONS, new String(actions));\n\t\t\t\t item.put(KEY_CATEGORIES, new String(categories));\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t item.put(KEY_ACTIONS, \"<null>\");\n\t\t\t\t item.put(KEY_CATEGORIES, \"<null>\");\n\t\t\t\t }\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = \"\";\n\t\t\t\t categories.add(firstCategory);\n\t\t\t\t lesSitesPlugin.add(item);\n\t\t\t\t// lesSitesPlugin.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t\tlesSites.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t}\n\t\t}\n\t}",
"public interface MauModule {\r\n\t/**\r\n\t * Initializes the module and loads all the configurations and everything else that needs to be\r\n\t * loaded.\r\n\t * \r\n\t * @param plugin The hosting instance of Maussentials.\r\n\t */\r\n\tpublic void load(Maussentials plugin);\r\n\t\r\n\t/**\r\n\t * Unload the MauModule.\r\n\t */\r\n\tpublic void unload();\r\n\t\r\n\t/**\r\n\t * @return True, if the module is loaded. False otherwise.\r\n\t */\r\n\tpublic boolean isLoaded();\r\n\t\r\n\t/**\r\n\t * Get the list of module names that this module depends on.\r\n\t */\r\n\tpublic default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}\r\n}",
"public Map<String, String> getPluginIdentifierToNameMap() {\n\t\treturn pluginIdentifierToNameMap;\n\t}",
"public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}",
"QuestionPlugin getQuestionPlugin(String type);",
"public List<String> getPluginNames() {\n\t\tList<String> pluginNames = new ArrayList<String>();\n\t\tfor (Plugin plugin : pluginManager.getPlugins(Plugin.class)) {\n\t\t\tif (StringUtils.isEmpty(plugin.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpluginNames.add(plugin.getName().trim());\n\t\t}\n\t\treturn pluginNames;\n\t}",
"public String getPluginClass() {\n return pluginClass;\n }",
"@Override\n\tpublic void contribute(Builder builder) {\n\t\tMap<String, String> pluginDetails = new HashMap<>();\n\t\tList<Plugin> plugins = pluginManager.getPlugins(Plugin.class);\n\t\tpluginDetails.put(\"number of plugins\", plugins.size() + \"\");\n\t\tpluginDetails.put(\"plugins\", plugins.stream().map(p -> p.getName()).collect(Collectors.toList()).toString());\n\t\tbuilder.withDetail(\"plugin controller\", pluginDetails).build();\n\n\t}",
"@Override\n public int getPluginId() {\n return 10202;\n }",
"protected IAuthorizationPlugin getPlugin() {\n return plugin;\n }",
"public interface PluginAdapterBuild extends PluginAdapterBase {\n\n /**\n * Defines the project frontend directory from where resources should be\n * copied from for use with webpack.\n *\n * @return {@link File}\n */\n\n File frontendResourcesDirectory();\n\n /**\n * Whether to generate a bundle from the project frontend sources or not.\n *\n * @return boolean\n */\n\n boolean generateBundle();\n\n /**\n * Whether to generate embeddable web components from WebComponentExporter\n * inheritors.\n *\n * @return boolean\n */\n\n boolean generateEmbeddableWebComponents();\n\n /**\n * Whether to use byte code scanner strategy to discover frontend\n * components.\n *\n * @return boolean\n */\n boolean optimizeBundle();\n\n /**\n * Whether to run <code>npm install</code> after updating dependencies.\n *\n * @return boolean\n */\n boolean runNpmInstall();\n\n}",
"@Override\r\n public boolean isPluginEnabled()\r\n {\n return true;\r\n }",
"public void registerPlugin(final DajlabExtension plugin) {\r\n\r\n\t\tif (plugin != null) {\r\n\t\t\tif (plugin instanceof DajlabControllerExtensionInterface) {\r\n\t\t\t\tcontrollers.add((DajlabControllerExtensionInterface<DajlabModelInterface>) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof TabExtensionInterface) {\r\n\t\t\t\ttabPlugins.add((TabExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof MenuExtensionInterface) {\r\n\t\t\t\tmenuPlugins.add((MenuExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public interface TTSPlugin extends Plugin{\n\n\t/**\n\t * Synthesize the given text and play the result.\n\t * \n\t * @param msg The text to synthesize.\n\t */\n\tpublic void sayText(String msg);\n}",
"public String getPluginName(){\n\t\treturn pluginName;\n\t}",
"public void loadAllPlugins(final String extPointId);",
"@FromAnyThread\n public void handlePlugins(@NotNull Consumer<EditorPlugin> consumer) {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(consumer);\n }",
"public SARLEclipsePlugin() {\n\t\tsetDefault(this);\n\t}"
] | [
"0.7038869",
"0.7029099",
"0.68933165",
"0.6867795",
"0.68286264",
"0.6823002",
"0.68082786",
"0.6683148",
"0.65758944",
"0.6559817",
"0.65057504",
"0.6486556",
"0.6460932",
"0.63431656",
"0.6309507",
"0.63076395",
"0.6240808",
"0.61917853",
"0.6164851",
"0.6160387",
"0.6096236",
"0.60947824",
"0.60723466",
"0.6064953",
"0.6054965",
"0.60487163",
"0.6043857",
"0.60327876",
"0.60259765",
"0.6024957",
"0.59994674",
"0.59739983",
"0.59503525",
"0.5949096",
"0.591292",
"0.59058577",
"0.59005725",
"0.5897567",
"0.58828956",
"0.58790916",
"0.58730686",
"0.58482105",
"0.5832595",
"0.5817036",
"0.5795067",
"0.57702106",
"0.57684934",
"0.5754342",
"0.5753482",
"0.57451963",
"0.57392645",
"0.57299453",
"0.5722144",
"0.57170594",
"0.56706214",
"0.56540304",
"0.5638582",
"0.5634684",
"0.5631895",
"0.5617988",
"0.5592245",
"0.5581097",
"0.55755925",
"0.55659056",
"0.55639356",
"0.55630326",
"0.55562353",
"0.5553851",
"0.55527747",
"0.5546498",
"0.55446815",
"0.5542824",
"0.5534105",
"0.5532244",
"0.5526025",
"0.5516303",
"0.5506843",
"0.5505715",
"0.5493515",
"0.5492417",
"0.54891014",
"0.54733753",
"0.5472437",
"0.5465019",
"0.54632294",
"0.5459975",
"0.54494244",
"0.54491544",
"0.5427859",
"0.53990024",
"0.53953254",
"0.5395025",
"0.5389291",
"0.5377368",
"0.5367236",
"0.5361138",
"0.5335694",
"0.53343004",
"0.5333247",
"0.5327163"
] | 0.7467039 | 0 |
/< Plays when a button is pressed. Loads sound effects from the disk. | public static void Init() throws UnsupportedAudioFileException, IOException, LineUnavailableException {
enemyHurt = new SoundEffect("/sounds/enemy_hurt.wav");
dragonShoot = new SoundEffect("/sounds/dragon_shoot.wav");
enemySpawn = new SoundEffect("/sounds/enemy_spawn.wav");
fireShoot = new SoundEffect("/sounds/fire_shoot.wav");
frostShoot = new SoundEffect("/sounds/frost_shoot.wav");
arcaneShoot = new SoundEffect("/sounds/arcane_shoot.wav");
winSFX = new SoundEffect("/sounds/win_sfx.wav");
oof = new SoundEffect("/sounds/oof.wav");
buttonPress = new SoundEffect("/sounds/button_press.wav");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonSound()\n {\n InputStream pathSoundFile = getClass().getResourceAsStream(\"Button.wav\");\n playSound(pathSoundFile);\n }",
"public void diskAddedsound()\n {\n InputStream pathSoundFile = getClass().getResourceAsStream(\"diskplacement.wav\");\n playSound(pathSoundFile);\n }",
"public void soundPressed() {\n // display\n TextLCD.print(SOUND);\n // sound\n Sound.beep();\n }",
"public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}",
"public void startSound()\n \n {try\n { \n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Start 2.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n startClip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n startClip.open(audioIn); \n \n startClip.start();\n \n \n } \n catch (UnsupportedAudioFileException e)\n {\n e.printStackTrace();\n } \n catch (IOException e) \n {\n e.printStackTrace();\n } \n catch (LineUnavailableException e) \n {\n e.printStackTrace();\n } \n \n }",
"public void startSound() {\n\t\ttry {\n\t\t\t// Open an audio input stream.\n\t\t\tURL url = this.getClass().getResource(\"/\"+wavMusicFile);\n\t\t\t//System.out.println(\"url: \" + url);\n\t\t\tAudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\t\t\t// Get a sound clip resource.\n\t\t\tclip = AudioSystem.getClip();\n\t\t\t// Open audio clip and load samples from the audio input stream.\n\t\t\tclip.open(audioIn);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}",
"private void clickSound() {// this function Plays a sound when a button is clicked.\n\t\tif (mp != null) {\n\t\t\tmp.release();\n\t\t}\n\t\tmp = MediaPlayer.create(getApplicationContext(), R.raw.music2);\n\t\tmp.start();// media player is started\n\t}",
"public void playSound() {\n String path = \"Data\\\\\\\\Acceptance.wav\";\n InputStream success;\n try {\n success = new FileInputStream(new File(path));\n AudioStream audioStream = new AudioStream(success);\n AudioPlayer.player.start(audioStream);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error playing sounds\");\n }\n }",
"public void playSound(File soundFile);",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\nif(e.getSource().equals(buttonOne)){\n\t\tplaySound(\"27137__zippi1__fart4.wav\");\n\t\t\n}else if(e.getSource().equals(buttonTwo)){\n\tplaySound(\"61047__timtube__fart.wav\");\n\t\n}\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View v){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tm.setDataSource(outputFile);\n\t\t\t\t\tm.prepare();\n\t\t\t\t\tm.start();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Playing Audio\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\n\t\t\t\t\t// Making the notification pop up\n\t\t\t\t\tmBuilder.setSmallIcon(R.drawable.ic_launcher)\n\t\t\t\t\t\t\t.setContentTitle(\"Audio\")\n\t\t\t\t\t\t\t.setContentText(\"Audio is playing\");\n\t\t\t\t\tNotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\t\t\t\t\tnotificationManager.notify(1, mBuilder.build());\n\t\t\t\t\t\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public void update() {\n\n// If the button is clicked, call the click method and play sound effect\n if (isClicked()) {\n clickSound.play(Main.sfxVolume / 10f);\n click();\n }\n }",
"public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }",
"public void playClickSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, CLICK);\n\t}",
"public Sound loadSound(String file);",
"private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n \n //Make sure a track is loaded and it is at the start \n if (audioObject.isLoaded()) {\n jButton15.setEnabled(true);\n jButton14.setEnabled(false);\n audioObject.playAudio(); \n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void playSound(){\r\n try{\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(AudioSystem.getAudioInputStream(new File(\"Cheering.wav\")));\r\n clip.start();\r\n }\r\n catch (Exception exc){\r\n exc.printStackTrace(System.out);\r\n } \r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp3.play(sound_id3, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"public void playWinSounds(){\r\n try {\r\n File mFile = new File(Filepath3);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput4 = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip4 = AudioSystem.getClip();\r\n clip4.open(audioInput4);\r\n FloatControl gainControl4 = (FloatControl) clip4.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl4.setValue(-10.0f); //reduces the volume by 10 decibels\r\n clip4.start();\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp1.play(sound_id1, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"public void playDonkeySounds(){\r\n try {\r\n File mFile = new File(Filepath2);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput3 = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip3 = AudioSystem.getClip();\r\n clip3.open(audioInput3);\r\n FloatControl gainControl3 = (FloatControl) clip3.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl3.setValue(-10.0f); //reduces the volume by 10 decibels\r\n clip3.start();\r\n\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"void player(){\n InputStream in; ////apabila merah -> ALT+ENTER ->input stream ->TOP\n try { ////try {}catch(Exception e){}\n in = new FileInputStream(new File(vpath.getText()));\n AudioStream audios = new AudioStream(in);\n AudioPlayer.player.start(audios);\n } catch (Exception e) {\n e.printStackTrace();\n } \n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(1);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t\t\r\n\t\t\t}",
"public void play() {\n if (audio != null) {\n audio.play(sfxVolume);\n }\n }",
"public void run() \n {\n try\n {\n Clip clip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(getClass().getResource(sound));\n clip = AudioSystem.getClip();\n clip.open(inputStream);\n clip.start(); \n } catch (UnsupportedAudioFileException e) {\n \t\t\te.printStackTrace();\n } catch (IOException e) {\n \t\t\te.printStackTrace();\n } catch (LineUnavailableException e) {\n \t\t\te.printStackTrace();\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(3);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"private void soundClicked() {\n Sounds.setVolume(Sounds.getVolume() == 0 ? 1 : 0);\n setSoundButtonColor(Sounds.getVolume() == 0, sound);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(0);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(8);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void playMusic() {\r\n try {\r\n File mFile = new File(Filepath);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(audioInput);\r\n FloatControl gainControl = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl.setValue(-25.0f); //reduces the volume by 25 decibels\r\n clip.start();\r\n clip.loop(Clip.LOOP_CONTINUOUSLY);\r\n\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(7);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void play() {\n\t\ttry {\n\t\t\taudioInput = AudioSystem.getAudioInputStream(this.music);\n\t\t\tclip.open(audioInput);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public MainScreen() {\r\n\t\tthis.playSound(\"assets/audios/1.wav\");\r\n\t}",
"public static void playSoundEffect(String path) {\n Thread thread = new Thread(() -> {\n Player soundEffectPlayer = new Player();\n soundEffectPlayer.setSourceLocation(path);\n soundEffectPlayer.play();\n });\n thread.setDaemon(true);\n thread.start();\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(2);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void undertakerSounds()\n {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Test Sound Clip\");\n this.setSize(300, 200);\n this.setVisible(false);\n\n try {\n // Open an audio input stream.\n URL url= new URL(\"http://shortmp3.mobi/u/files/WAV/39633-Undertaker_(ShortMp3.com).wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn);\n clip.start();\n\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(4);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(bSound){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tms.prepare();\n\t\t\t\t\t} catch (IllegalStateException 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 (IOException 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\tms.start();\n\t\t\t\t\tbSound = true;\n\t\t\t\t}else{\n\t\t\t\t\tbSound = false;\n\t\t\t\t\tms.reset();\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(6);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(5);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"private void playSound(String fileName) {\n\t\tAudioClip sound = JApplet.newAudioClip(getClass().getResource(fileName));\n\t\tsound.play();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp8.play(sound_id8, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"private void playAudio() {\r\n Play.au(audioFileName, false);\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp7.play(sound_id7, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp9.play(sound_id9 , 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"@Override\npublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource()== button) {\n\t\tplayNoise(\"llama.wav\");\n\t}\n\telse if (e.getSource()== button1) {\n\t\tplayNoise(\"meow.wav\");\n\t}\n\telse if (e.getSource()== button2) {\n\t\tplayNoise(\"moo.wav\");\n\t}\n\telse if (e.getSource()== button3) {\n\t\tplayNoise(\"quack.wav\");\n\t}\n\telse if (e.getSource()== button4) {\n\t\tplayNoise(\"woof.wav\");\n\t}\n\n}",
"public static void SFX(String path){\r\n Main.soundSystem.playSFX(path);\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent myintent= new Intent(MainActivity2.this, MainActivity3.class);\n\t startActivity(myintent);\n\t \n\t playBeep(\"mlg.wav\");\n\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp10.play(sound_id10 , 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"static void PlaySound(File Sound)\n {\n try{\n Clip clip = AudioSystem.getClip();\n clip.open(AudioSystem.getAudioInputStream(Sound));\n clip.start();\n //BGM = new AudioStream(new FileInputStream(\"OST.WAV\"));\n //MD = BGM.getData();\n //loop = new ContinuousAudioDataStream(MD);\n }catch(Exception e) {}\n //MGP.start(loop); \n }",
"private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), controllerVars.getVolume(), controllerVars.getVolume(), 1, 0, 1f);\n\t\t\tcontrollerVars.COUNTER++;\n\t\t\t//Toast.makeText(act, \"Played sound\", Toast.LENGTH_SHORT).show();optional Playing message \n\t\t\tcontrollerVars.setPlays(true);\n\t\t\tonComplete(controllerVars.getMediaPlayer().getDuration());\n\t\t}\n\t\t//controllerVars.getMediaPlayer().start();\n\t\t//controllerVars.setPlays(true);\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp2.play(sound_id2, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"private void play() {\n /** Memanggil File MP3 \"indonesiaraya.mp3\" */\n try {\n mp.prepare();\n } catch (IllegalStateException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /** Menjalankan Audio */\n mp.start();\n\n /** Penanganan Ketika Suara Berakhir */\n mp.setOnCompletionListener(new OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n stateAwal();\n }\n });\n }",
"public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t //AudioInputStream inputStream = AudioSystem.getAudioInputStream(\n\t\t //Main.class.getResourceAsStream(\"/path/to/sounds/\" + url));\n\t\t //clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }",
"public static void loadSounds()\n {\n combust = new SoundLoader(\"explosion.wav\");\n zWalk = new SoundLoader(\"zWalk.wav\");\n bite = new SoundLoader(\"zBite.wav\");\n hitObst = new SoundLoader(\"zHitObst.wav\");\n runSound = new SoundLoader(\"pRunSound.wav\");\n walkSound = new SoundLoader(\"pWalkSound.wav\");\n scream = new SoundLoader(\"pScream.wav\");\n\n zWalk.makeBalanceControlled();\n hitObst.makeBalanceControlled();\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp12.play(sound_id12 , 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent myintent= new Intent(MainActivity2.this, MainActivity4.class);\n\t startActivity(myintent);\n\t \n\t playBeep(\"blitr.wav\");\n\n\t\t\t\t\n\t\t\t}",
"public static void playPickupSound(){\n String musicFile = \"Sounds\\\\Pickup.mp3\";\n Media sound = new Media(new File(musicFile).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(sound);\n mediaPlayer.setVolume(App.getVolume());\n mediaPlayer.play();\n }",
"public void actionPerformed(ActionEvent e){\n\t\tSystem.out.println(\"SOUND ON/OFF\");\n\t\tgame.toggleSound();\n\t}",
"public abstract SoundContainer loadSound( String filename ) throws IOException;",
"@Override\n\tpublic void loadSounds() {\n\t\ttry {\n\t\t\tSoundPlayer.load(\"bounce.wav\");\n\t\t\tSoundPlayer.load(\"laser1.wav\");\n\t\t\tSoundPlayer.load(\"hit1.wav\");\n\t\t\tSoundPlayer.load(\"speedup.wav\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void playcolorMod()\n {\n InputStream pathSoundFile = getClass().getResourceAsStream(\"colorChange.wav\");\n playSound(pathSoundFile);\n }",
"@Test\n public void testYesButtonSound()\n {\n // Initialising a mainMenuChecker class\n MainMenuChecker mainMenuChecker = new MainMenuChecker(mGame);\n mGame.getScreenManager().addScreen(mainMenuChecker);\n\n // Initialising the sound file\n Sound yesButtonSound = mGame.getAssetManager().getSound(\n \"sound/ButtonEffectSound.wav\");\n\n Assert.assertEquals(mainMenuChecker.playButtonSound(yesButtonSound), yesButtonSound);\n }",
"public void play() {\n\t\t\r\n\t}",
"public static void musicMainMenu(){\n\t\ttry {\r\n\t\t\tbgmusic = new Music(\"res/otherSounds/Menu.wav\");\r\n\t\t\tbgmusic.loop(1f, 0.2f);\r\n\t\t\t//System.out.println(bgmusic.getVolume()); \t\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp11.play(sound_id11 , 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"public void playAudio() {\n\n }",
"private void playSound(String sound) {\r\n try {\r\n BufferedInputStream soundFileStream = new BufferedInputStream(this\r\n .getClass().getResourceAsStream(sound));\r\n AudioInputStream audioInputStream = AudioSystem\r\n .getAudioInputStream(soundFileStream);\r\n AudioFormat audioFormat = audioInputStream.getFormat();\r\n DataLine.Info dataLineInfo = new DataLine.Info(Clip.class, audioFormat);\r\n Clip clip = (Clip) AudioSystem.getLine(dataLineInfo);\r\n clip.open(audioInputStream);\r\n clip.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public static void play(String filename) {\r\n javax.sound.sampled.Clip sonido;\r\n InputStream path=load(filename);\r\n \r\n try\r\n {\r\n sonido=AudioSystem.getClip();\r\n sonido.open(AudioSystem.getAudioInputStream(new BufferedInputStream(path)));\r\n sonido.start();\r\n\r\n }catch(Exception fallo)\r\n {\r\n \r\n }\r\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tif (button_BGM.getText().equals(\"배경음 : On\")){\n\t\t\t\tfor (int c1=0; c1<cliplist.size(); c1++){\n\t\t\t\t\tif (cliplist.get(c1).file_url.equals(\"ext/ChmpSlct_DraftMode(8bitS).wav\")){\n\t\t\t\t\t\tcliplist.get(c1).clip.stop();\n\t\t\t\t\t\tcliplist.get(c1).clip.close();\n\t\t\t\t\t\tcliplist.remove(c1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbutton_BGM.setText(\"배경음 : off\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tGameClient.playSound(\"ext/ChmpSlct_DraftMode(8bitS).wav\");\n\t\t\t\tbutton_BGM.setText(\"배경음 : On\");\n\t\t\t}\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp4.play(sound_id4, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"@Override\n public void action(HB hb) {\n\n // remove this code if you do not want other compositions to run at the same time as this one\n hb.reset();\n hb.setStatus(this.getClass().getSimpleName() + \" Loaded\");\n\n /**************************************************************\n * Load a sample and play it\n *\n * simply type samplePLayer-basic to generate this code and press <ENTER> for each parameter\n **************************************************************/\n final float INITIAL_VOLUME = 1f; // define how loud we want the sound\n Glide audioVolume = new Glide(INITIAL_VOLUME);\n\n // Define our sample name\n final String SAMPLE_NAME = \"data/audio/Roje/i-write.wav\";\n\n // create our actual sample\n Sample sample = SampleManager.sample(SAMPLE_NAME);\n\n // test if we opened the sample successfully\n if (sample != null) {\n // Create our sample player\n SamplePlayer samplePlayer = new SamplePlayer(sample);\n\n // Samples are killed by default at end. We will stop this default actions so our sample will stay alive\n samplePlayer.setKillOnEnd(false);\n\n // Connect our sample player to audio\n Gain gainAmplifier = new Gain(NUMBER_AUDIO_CHANNELS, audioVolume);\n gainAmplifier.addInput(samplePlayer);\n hb.ac.out.addInput(gainAmplifier);\n\n /******** Write your code below this line ********/\n\n // define our loop type. we will loop forwards\n samplePlayer.setLoopType(SamplePlayer.LoopType.LOOP_FORWARDS);\n // define our start and end loop points\n final float LOOP_START = 0;\n final float LOOP_END = 2000;\n\n // create our looping objects\n Glide loopStart = new Glide(LOOP_START);\n Glide loopEnd = new Glide(LOOP_END);\n\n // now set the loop start and end in the actual sample player\n samplePlayer.setLoopStart(loopStart);\n samplePlayer.setLoopEnd(loopEnd);\n\n /******** Write your code above this line ********/\n } else {\n hb.setStatus(\"Failed sample \" + SAMPLE_NAME);\n }\n /*** End samplePlayer code ***/\n }",
"public Sound createSound(String file);",
"public void btnPlaySong() {\n\t\tMusicApp.getAudioPlayer().playSong(track);\n\t}",
"public void playSound() {\n\t\tmediaPlayer.play();\n\t}",
"public void startWave() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canStartWave()) {\n Logger.info(\"HUD Presenter: starting wave\");\n levelStateManager.setState(LevelState.WAVE_IN_PROGRESS);\n uiStateManager.setState(GameUIState.WAVE_IN_PROGRESS);\n }\n }",
"public void playThemeSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, THEME);\n\t}",
"@FXML protected void VolumeButtonClicked(ActionEvent event) {\n if (music.getShouldPlaySFX()){\r\n MusicPlayer music2 = new MusicPlayer();\r\n music2.playSFX(MusicPlayer.Track.adjustSound);\r\n }\r\n\r\n music.setShouldPlay(!music.getShouldPlay());\r\n }",
"@Override\n public void makeSound() {\n\n }",
"@Override\n public void makeSound() {\n\n }",
"public void theRockSounds()\n {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Test Sound Clip\");\n this.setSize(300, 200);\n this.setVisible(false);\n\n try {\n // Open an audio input stream.\n URL url= new URL(\"http://shortmp3.mobi/u/files/WAV/39627-The_Rock_(ShortMp3.com).wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn);\n clip.start();\n\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n\n }",
"public static void playShootingSound(){\n String musicFile = \"Sounds\\\\Shoot.mp3\";\n Media sound = new Media(new File(musicFile).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(sound);\n mediaPlayer.setVolume(App.getVolume());\n mediaPlayer.play();\n }",
"public void play() {\n\t\tplay(true, true);\n\t}",
"public void cenaSounds()\n {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Test Sound Clip\");\n this.setSize(300, 200);\n this.setVisible(false);\n\n try {\n // Open an audio input stream.\n //URL url = this.getClass().getClassLoader().getResource(\"gameover.wav\");\n //AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\n URL url= new URL(\"http://shortmp3.mobi/u/files/WAV/39603-John_Cena_Msg_Alert_(ShortMp3.com).wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n \n //You can change this URL to be whatever .wav file you want\n\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn);\n clip.start();\n\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp5.play(sound_id5, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"public static void loadAudio()\n\t{\n\t\ttry\n\t\t{\n\t\t\tmusic = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/Pamgaea.wav\"));\n\t\t\tlaser = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/laser.wav\"));\n\t\t\tlaserContinuous = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/laser_continuous.wav\"));\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void menu(){\n menuMusic.loop(pitch, volume);\n }",
"@Override\n public void action(HB hb) {\n hb.reset();\n hb.setStatus(this.getClass().getSimpleName() + \" Loaded\");\n\n final float MAX_PLAYBACK_RATE = 2;\n final float START_PLAY_RATE = 1;\n\n\n // define the duration of our sample. We will set this when the sample is loaded\n float sampleDuration = 0;\n /**************************************************************\n * Load a sample and play it\n *\n * simply type samplePLayer-basic to generate this code and press <ENTER> for each parameter\n **************************************************************/\n\n final float INITIAL_VOLUME = 1; // define how loud we want the sound\n Glide audioVolume = new Glide(INITIAL_VOLUME);\n\n // Define our sample name\n final String SAMPLE_NAME = \"data/audio/long/1979.wav\";\n\n // create our actual sample\n Sample sample = SampleManager.sample(SAMPLE_NAME);\n\n // test if we opened the sample successfully\n if (sample != null) {\n // Create our sample player\n SamplePlayer samplePlayer = new SamplePlayer(sample);\n // Samples are killed by default at end. We will stop this default actions so our sample will stay alive\n samplePlayer.setKillOnEnd(false);\n\n // Connect our sample player to audio\n Gain gainAmplifier = new Gain(HB.getNumOutChannels(), audioVolume);\n gainAmplifier.addInput(samplePlayer);\n HB.getAudioOutput().addInput(gainAmplifier);\n\n /******** Write your code below this line ********/\n\n // we need to assign this new samplePlayer to our class samplePlayer\n this.samplePlayer = samplePlayer;\n\n // Create an on Off Control\n\n // type booleanControl to generate this code \n BooleanControl stopPlayControl = new BooleanControl(this, \"Play\", true) {\n @Override\n public void valueChanged(Boolean control_val) {// Write your DynamicControl code below this line \n // if true, we will play\n samplePlayer.pause(!control_val);\n\n // if we are going to play, we will create the updateThread, otherwise we will kill it\n\n if (control_val){\n // create a new thread if one does not exists\n if (updateThread == null) {\n updateThread = createUpdateThread();\n }\n }\n else\n {\n // if we have a thread, kill it\n if (updateThread != null)\n {\n updateThread.interrupt();\n updateThread = null;\n }\n }\n\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl stopPlayControl code \n\n\n // get our sample duration\n sampleDuration = (float)sample.getLength();\n\n // make our sampleplay a looping type\n samplePlayer.setLoopType(SamplePlayer.LoopType.LOOP_FORWARDS);\n\n // Define what our directions are\n final int PLAY_FORWARD = 1;\n final int PLAY_REVERSE = -1;\n\n // define our playbackRate control\n Glide playbackRate = new Glide(START_PLAY_RATE);\n // define our sample rate\n Glide playbackDirection = new Glide(PLAY_FORWARD); // We will control this with yaw\n\n // This function will be used to set the playback rate of the samplePlayer\n // The playbackDirection will have a value of -1 when it is in reverse, and 1 in forward\n // This is multiplied by the playbackRate to get an absolute value\n Function calculatedRate = new Function(playbackRate, playbackDirection) {\n @Override\n public float calculate() {\n return x[0] * x[1];\n }\n };\n\n // now set the rate to the samplePlayer\n samplePlayer.setRate(calculatedRate);\n\n // Use a Buddy control to change the PlaybackRate\n // Simply type floatBuddyControl to generate this code\n FloatControl playbackRateControl = new FloatControl(this, \"Playback Rate\", START_PLAY_RATE) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line\n playbackRate.setValue((float)control_val);\n // Write your DynamicControl code above this line\n }\n }.setDisplayRange(0, MAX_PLAYBACK_RATE, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl playbackRateControl code\n\n\n // create a checkbox to make it play forward or reverse\n // type booleanControl to generate this code\n BooleanControl directionControl = new BooleanControl(this, \"Reverse\", false) {\n @Override\n public void valueChanged(Boolean control_val) {// Write your DynamicControl code below this line\n if (!control_val){\n playbackDirection.setValue(PLAY_FORWARD);\n }\n else{\n playbackDirection.setValue(PLAY_REVERSE);\n }\n // Write your DynamicControl code above this line\n }\n };// End DynamicControl directionControl code\n\n\n\n // display a slider for position\n // Type floatSliderControl to generate this code \n FloatControl audioPosition = new FloatControl(this, \"Audio Position\", 0) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n samplePlayer.setPosition(control_val);\n setAudioTextPosition(control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_DEFAULT);// End DynamicControl audioPosition code\n\n\n // set our newly created control to the class reference\n audioSliderPosition = audioPosition;\n\n // Type textControl to generate this code \n TextControl audioPositionText = new TextControl(this, \"Audio Position\", \"\") {\n @Override\n public void valueChanged(String control_val) {// Write your DynamicControl code below this line \n // we will decode our string value to audio position\n\n // we only want to do this if we are stopped\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl audioPositionText code \n\n\n\n // set newly create DynamicControl to our class variable\n\n audioTextPosition = audioPositionText;\n // create a thread to update our position while we are playing\n // This is done in a function\n updateThread = createUpdateThread();\n\n // We will set sample Start and End points\n // define our start and end points\n Glide loop_start = new Glide(0);\n Glide loop_end = new Glide(sampleDuration);\n\n samplePlayer.setLoopStart(loop_start);\n samplePlayer.setLoopEnd(loop_end);\n\n // Simply type floatBuddyControl to generate this code \n FloatControl loopStartControl = new FloatControl(this, \"Loop start\", 0) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n float current_audio_position = (float)samplePlayer.getPosition();\n\n if (current_audio_position < control_val){\n samplePlayer.setPosition(control_val);\n }\n loop_start.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl loopStartControl code\n\n\n\n // Simply type floatBuddyControl to generate this code \n FloatControl loopEndControl = new FloatControl(this, \"Loop End\", sampleDuration) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n loop_end.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl loopEndControl code\n\n\n // Add a control to make sample player start at loop start position\n\n // Type triggerControl to generate this code \n TriggerControl startLoop = new TriggerControl(this, \"Start Loop\") {\n @Override\n public void triggerEvent() {// Write your DynamicControl code below this line \n samplePlayer.setPosition(loop_start.getCurrentValue());\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl startLoop code \n\n\n /******** Write your code above this line ********/\n } else {\n HB.HBInstance.setStatus(\"Failed sample \" + SAMPLE_NAME);\n }\n /*** End samplePlayer code ***/\n\n }",
"private void playYouWinSound()\n {\n try\n {\n java.io.File soundFile = new java.io.File(\n \"C:\\\\Windows\\\\Media\\\\tada.wav\");\n javax.sound.sampled.AudioInputStream audioIn =\n javax.sound.sampled.AudioSystem.getAudioInputStream(\n soundFile);\n javax.sound.sampled.Clip clip =\n javax.sound.sampled.AudioSystem.getClip();\n\n clip.open(audioIn);\n clip.start();\n }\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }",
"@FXML\n\tpublic void handleAudioManipulatorPlayButton() {\n\t\tcontroller.audioManipulatorPlayAudio();\n\t\tbuttonPlay.setDisable(true);\n\t\tbuttonPause.setDisable(false);\n\t\tbuttonStop.setDisable(false);\n\t\tpaneMixerMainControls.setDisable(true);\n\t\tsliderLowPass.setDisable(true);\n\t\ttextFieldLowPass.setDisable(true);\n\t}",
"public void backgroundMusic(String path) {\n if (Objects.equals(playingFile, path)) return;\n playingFile = path;\n\n\n // stop if playing\n stop();\n\n if (path == null) {\n // nothing to play\n playingClip = null;\n return;\n }\n\n try {\n\n // find file\n final AudioInputStream stream = AudioSystem.getAudioInputStream(new File(path));\n\n // create player\n playingClip = AudioSystem.getClip();\n playingClip.open(stream);\n playingClip.loop(playingClip.LOOP_CONTINUOUSLY);\n\n // play\n playingClip.start();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void playLocal(String audiofile);",
"public static void music (String fileName)\r\n {\r\n\tAudioPlayer MGP = AudioPlayer.player;\r\n\tAudioStream BGM;\r\n\tAudioData MD;\r\n\r\n\tContinuousAudioDataStream loop = null;\r\n\r\n\ttry\r\n\t{\r\n\t InputStream test = new FileInputStream (\"lamarBackgroundMusic.wav\");\r\n\t BGM = new AudioStream (test);\r\n\t AudioPlayer.player.start (BGM);\r\n\r\n\t}\r\n\tcatch (FileNotFoundException e)\r\n\t{\r\n\t System.out.print (e.toString ());\r\n\t}\r\n\tcatch (IOException error)\r\n\t{\r\n\t System.out.print (error.toString ());\r\n\t}\r\n\tMGP.start (loop);\r\n }",
"public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}",
"PlaySound getSound();"
] | [
"0.78662676",
"0.7198018",
"0.7180301",
"0.7007018",
"0.70015514",
"0.6992867",
"0.6988715",
"0.6936079",
"0.6899201",
"0.6871077",
"0.6830184",
"0.68272644",
"0.68267226",
"0.682074",
"0.68185675",
"0.6774049",
"0.67464733",
"0.67328227",
"0.6682588",
"0.66746527",
"0.664703",
"0.664224",
"0.66269463",
"0.6618601",
"0.661568",
"0.66079926",
"0.6598193",
"0.65945363",
"0.65928805",
"0.6590535",
"0.6590459",
"0.6589883",
"0.6589481",
"0.6586272",
"0.65773505",
"0.65695226",
"0.6566072",
"0.65608466",
"0.6556316",
"0.6553127",
"0.65530896",
"0.6535726",
"0.6533445",
"0.6531849",
"0.6523008",
"0.65221536",
"0.65221536",
"0.65221536",
"0.65221536",
"0.65221536",
"0.652013",
"0.6512388",
"0.6512235",
"0.64946026",
"0.64877295",
"0.6484309",
"0.6472183",
"0.64581215",
"0.6445452",
"0.6444294",
"0.6428786",
"0.6421507",
"0.6421413",
"0.6412558",
"0.640439",
"0.6400714",
"0.6385211",
"0.6381249",
"0.6380106",
"0.63743573",
"0.63696647",
"0.6358252",
"0.63539356",
"0.635094",
"0.6342554",
"0.6340417",
"0.63351786",
"0.6333008",
"0.6332348",
"0.6324938",
"0.6323894",
"0.63108385",
"0.6307751",
"0.6304406",
"0.62971824",
"0.62971824",
"0.6291537",
"0.6289496",
"0.6284147",
"0.62757254",
"0.6274128",
"0.62695396",
"0.62650526",
"0.6258308",
"0.6256904",
"0.6255422",
"0.6255055",
"0.62514365",
"0.6248186",
"0.6246982",
"0.6246861"
] | 0.0 | -1 |
Series for visualisation (only lat&long 2D Scatter Plot) POINTS | public void getSeriesForPoints(){
int lenght = cluster_polygon_coordinates.length;
x_latitude = new Number[lenght];
y_longitude = new Number[lenght];
//x_latitude[lenght-1] = cluster_polygon_coordinates[0].x;
//y_longitude[lenght-1] = cluster_polygon_coordinates[0].y;
for (int i=0;i<lenght;i++) {
x_latitude[i] = cluster_polygon_coordinates[i].x;
y_longitude[i] = cluster_polygon_coordinates[i].y;
// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].x));
// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].y));
// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].z));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XYSeries getXYSeries(String serie_name){ \n XYSeries serie = new XYSeries(serie_name); \n Point2D[] points_bezier = getPoint2DArray(); \n for(int j = 0 ; j < points_bezier.length; j++){ \n \n serie.add(points_bezier[j].getX(),points_bezier[j].getY()); \n } \n return serie; \n}",
"public interface Series {\n\n\t/**\n\t * @return the number of points in the series\n\t */\n\tint size();\n\n\t/**\n\t * @param i index of the point\n\t * @return the x coordinate of the i'th point\n\t */\n\tdouble x(int i);\n\n\t/**\n\t * @param i index of the point.\n\t * @return the y coordinate of the i'th point\n\t */\n\tdouble y(int i);\n\n\t/**\n\t * @return an Interval object representing the minimum and maximum x-values.\n\t */\n\tInterval xRange();\n\n\t/**\n\t * @return an Interval object representing the minimum and maximum y-values.\n\t */\n\tInterval yRange();\n\n\t/**\n\t * @return an Interval2D object representing the minimum and maximum x and y\n\t * values.\n\t */\n\tInterval2D range();\n}",
"public abstract List<Point2D> getInterpolatedPoints();",
"void drawMyPoint(double x, double y, MapContent map, String nombre) { \n// SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n// builder.setName(\"MyFeatureType\");\n// builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs \n// builder.add(\"location\", Point.class); // add geometry\n//\n// // build the type\n// SimpleFeatureType TYPE = builder.buildFeatureType();\n//\n// // create features using the type defined\n// SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(TYPE);\n// org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n// org.locationtech.jts.geom.Point point = geometryFactory.createPoint(new Coordinate(x, y));\n// //\n// \n// //\n// featureBuilder.add(point);\n// SimpleFeature feature = featureBuilder.buildFeature(\"FeaturePoint\");\n// DefaultFeatureCollection featureCollection = new DefaultFeatureCollection(\"internal\", TYPE);\n// featureCollection.add(feature); // Add feature 1, 2, 3, etc\n//\n// Style style = SLD.createPointStyle(\"Star\", Color.BLUE, Color.BLUE, 0.3f, 200);\n// Layer layer = new FeatureLayer(featureCollection, style);\n// layer.setTitle(\"NewPointLayer\");\n// map.addLayer(layer);\n// //mapFrame.getMapPane().repaint();// MapPane.repaint();\n//}\n\tSimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n builder.setName(\"MyFeatureType\"); // \n builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs // Definimos las caracteristicas de tipo del punto q vamos a crear\n builder.add(\"location\", Point.class); // add geometry //\n org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); //objeto q usaremos para crear el punto\n Coordinate coord = new Coordinate( x,y ); //creamos la coordenada con los puntos pasados como parametros\n org.locationtech.jts.geom.Point point = geometryFactory.createPoint(coord); // Creamos el punto geometrico\n\nSimpleFeatureType pointtype = null; //definimos el typo de punto que necesitamos apra agregarlo a la capa del mapa\n try {\n pointtype = DataUtilities.createType(\"POINT\", \"geom:Point,name:String\");\n } catch (SchemaException ex) {\n Logger.getLogger(SelectionLab.class.getName()).log(Level.SEVERE, null, ex);\n }\nSimpleFeatureBuilder featureBuilderPoints = new SimpleFeatureBuilder(pointtype); //creamos el constructor de lo que agregaremos\nDefaultFeatureCollection collectionPoints = new DefaultFeatureCollection(\"internal\", pointtype); //creamos el contenedor donde pondremos lo que agregaremos\n//PointString Point=builder.createPointString(Point);\n//LineString Point = builder.createLineString(Point);\nfeatureBuilderPoints.add(point); //agregamos el punto en el constructor\nSimpleFeature featureLine = featureBuilderPoints.buildFeature(null); \n((DefaultFeatureCollection)collectionPoints).add(featureLine); \nStyle PointStyle = SLD.createPointStyle(\"circle\", Color.RED, Color.RED,(float) 0.5,(float) 10); //definimos el estilo del punto (icono, color contorno, color, opacidad y tamaño)\n//Obserervacion: el dibujo del punto siempre se mantiene del mismo tamaño por mas que se use el zoom\nmap.addLayer(new FeatureLayer(collectionPoints, PointStyle)); //agregamos el punto a la capa\n\nguardarCoordenadas(nombre,x,y);\n}",
"private void showPoints() {\n\t\tMarkerOptions options = new MarkerOptions();\n\n\t\tfor (Integer i = 0; i < markerPoints.size(); i++) {\n\t\t\tLatLng point = markerPoints.get(i);\n\n\t\t\t// Setting the position of the marker\n\t\t\toptions.position(point);\n\n\t\t\t// Setting title for the MarkerOptions\n\t\t\toptions.title(names.get(i));\n\t\t\t// Setting snippet for the MarkerOptions\n\t\t\toptions.snippet(\"Latitude:\" + point.latitude + \",Longitude: \"\n\t\t\t\t\t+ point.longitude);\n\n\t\t\tif (statusVal == 0) {\n\n\t\t\t\toptions.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));\n\n\t\t\t} else {\n\t\t\t\toptions.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n\n\t\t\t}\n\n\t\t\t// Add new marker to the Google Map Android API V2\n\t\t\tgMmap.addMarker(options);\n\n\t\t\t// Creating CameraUpdate object for position\n\t\t\tCameraUpdate updatePosition = CameraUpdateFactory.newLatLngZoom(\n\t\t\t\t\tpoint, 15);\n\n\t\t\t// Applying zoom to the marker position\n\t\t\tgMmap.animateCamera(updatePosition);\n\t\t}\n\n\t}",
"public ScatterPlot(HighlightManager highlightManager, \r\n GeoData xGeoData, \r\n GeoData yGeoData,\r\n String xLabel,\r\n String yLabel)\r\n {\r\n xData_ = xGeoData;\r\n yData_ = yGeoData;\r\n highlightManager_ = highlightManager;\r\n xLabel_ = xLabel;\r\n yLabel_ = yLabel;\r\n\r\n\r\n highlightManager_.addHighlightChangedListener(this);\r\n\r\n\r\n // Set up the mouse motion listener\r\n addMouseMotionListener(this);\r\n\r\n\r\n // Get the size of the GeoData (assuming the size of the xGeoData\r\n // equals the size of the yGeoData\r\n xSize_ = xData_.getSize(); \r\n\r\n\r\n fillVector();\r\n }",
"public String getPoints();",
"synchronized public void plotXY(Vector<double[]> position, double[] currentPosition){\n try {\n //xySeries = new PointsGraphSeries<>();\n\n // xySeries = new LineGraphSeries<>();\n xySeries.resetData(new DataPoint[] {});\n currentPoint.resetData(new DataPoint[] {});\n\n for (int i = 0; i < position.size(); i++) {\n try {\n double x = position.get(i)[0];\n double y = position.get(i)[1];\n xySeries.appendData(new DataPoint(x, y), true, position.size());\n } catch (IllegalArgumentException e) {\n Log.e(TAG, \"createScatterPlot: IllegalArgumentException: \" + e.getMessage());\n e.printStackTrace();\n }\n }\n\n currentPoint.appendData(new DataPoint(currentPosition[0], currentPosition[1]), true, 1);\n\n //set some properties\n // xySeries.setShape(PointsGraphSeries.Shape.POINT);\n xySeries.setColor(Color.BLUE);\n // xySeries.setAnimated(true);\n xySeries.setSize(7f);\n //xySeries.setDrawDataPoints(true);\n //xySeries.setDataPointsRadius(6f);\n\n // xySeries.setSize(7f);\n\n //set some properties\n currentPoint.setShape(PointsGraphSeries.Shape.RECTANGLE);\n currentPoint.setColor(Color.RED);\n currentPoint.setSize(9f);\n\n SettingsHandler();\n\n //addSeries(xySeries);\n }\n catch (ConcurrentModificationException e){\n System.out.println(\"Ece\");\n }\n }",
"private void DrawDots(List<HashMap<String, String>> result,ArrayList point2) {\n map.clear();\n MarkerOptions options = new MarkerOptions();\n\n // this is the start location marker in green\n options.position(origin);\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n // the is the end location marker in red\n map.addMarker(options);\n options.position(dest);\n\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));\n\n map.addMarker(options);\n ArrayList points = null;\n\n PolylineOptions lineOptions = null;\n\n MarkerOptions markerOptions = new MarkerOptions();\n points = new ArrayList();\n\n\n lineOptions = new PolylineOptions();\n List<HashMap<String, String>> path = result;\n\n for (int j = 1; j < path.size(); j++) {\n HashMap<String, String> point = path.get(j);\n\n double lat = Double.parseDouble(point.get(\"lat\"));\n double lng = Double.parseDouble(point.get(\"lng\"));\n LatLng position = new LatLng(lat, lng);\n points.add(position);\n\n }\n\n lineOptions.addAll(points);\n lineOptions.width(12);\n\n lineOptions.color(Color.RED);\n\n lineOptions.geodesic(true);\n map.addPolyline(lineOptions);\n\n for (Object k : points2) {\n map.addCircle(new CircleOptions()\n .center((LatLng) k)\n .radius(3)\n .strokeColor(Color.BLUE)\n .fillColor(Color.BLUE));\n }\n }",
"private void plottingMarkers(){\r\n if (nameList.size()==0) {\r\n }\r\n else {\r\n for (int i = 0; i < nameList.size(); i++) {\r\n Loc2LatLng = new LatLng(Double.parseDouble(latList.get(i)), Double.parseDouble(lngList.get(i)));\r\n MarkerOptions markerSavedLocations = new MarkerOptions();\r\n markerSavedLocations.title(nameList.get(i));\r\n markerSavedLocations.position(Loc2LatLng);\r\n map.addMarker(markerSavedLocations);\r\n }\r\n }\r\n }",
"public LineStrip2D(List<Point2D> points) {\n this.points = new ArrayList<Point2D>(points);\n }",
"public Point2D getLocation();",
"private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }",
"private void fillVector()\r\n {\r\n // The x and y coordinates of a point\r\n int xPoint;\r\n int yPoint;\r\n \r\n // The x and y coordinates of a point with the displacement of the plot \r\n // origin from the component origin taken into consideration\r\n int xPointOffset, yPointOffset;\r\n \r\n // The point to be stored in the vector\r\n SPlotPoint plotPoint;\r\n\r\n\r\n // Get the max of the data types to figure out how to scale plot\r\n maxX_ = (new Double(xData_.getMax())).intValue();\r\n maxY_ = (new Double(yData_.getMax())).intValue();\r\n \r\n // Want max axes to be max of 200. Need to calculate the scaling factor\r\n xFactor_ = maxX_/MAX_AXIS_LENGTH;\r\n yFactor_ = maxY_/MAX_AXIS_LENGTH;\r\n \r\n // Extract x and y values, generate SPlotPoints and store in vector\r\n for (int i = 0; i < xSize_; i++)\r\n {\r\n xPoint = (int)(xData_.getValue(i) / xFactor_);\r\n yPoint = (int)(yData_.getValue(i) / yFactor_); \r\n\r\n\r\n // The xy coordinates where to plot the point (after taking the \r\n // offset btn the plot origin and the component origin into account\r\n xPointOffset = xPoint+OFFSET;\r\n yPointOffset = yPoint+OFFSET;\r\n \r\n // Generate SPlotPoints and store in vector\r\n plotPoint = new SPlotPoint(xPointOffset,\r\n yPointOffset);\r\n \r\n // Set the id of the scatter plot point (corresponds to the row\r\n // number in the .dbf\r\n // Must add one to compensate for geodata starting at 1 and vector\r\n // index starting at 0\r\n plotPoint.setId(i+1);\r\n \r\n pointVector_.addElement(plotPoint);\r\n }\r\n }",
"protected abstract void plot2d( int px, int py, double z, int istyle );",
"public void setPoints(List<GeoPoint> points){\n\t\tclearPath();\n\t\tint size = points.size();\n\t\tmOriginalPoints = new int[size][2];\n\t\tfor (int i=0; i<size; i++){\n\t\t\tGeoPoint p = points.get(i);\n\t\t\tmOriginalPoints[i][0] = p.getLatitudeE6();\n\t\t\tmOriginalPoints[i][1] = p.getLongitudeE6();\n\t\t\tif (!mGeodesic){\n\t\t\t\taddPoint(p);\n\t\t\t} else {\n\t\t\t\tif (i>0){\n\t\t\t\t\t//add potential intermediate points:\n\t\t\t\t\tGeoPoint prev = points.get(i-1);\n\t\t\t\t\tfinal int greatCircleLength = prev.distanceTo(p);\n\t\t\t\t\t//add one point for every 100kms of the great circle path\n\t\t\t\t\tfinal int numberOfPoints = greatCircleLength/100000;\n\t\t\t\t\taddGreatCircle(prev, p, numberOfPoints);\n\t\t\t\t}\n\t\t\t\taddPoint(p);\n\t\t\t}\n\t\t}\n\t}",
"public void toChartData() {\n //this.chart = chart;\n chart.getData().clear();\n Set<String> labels = new HashSet<>(getLabels().values());\n Object[] names = getLocations().keySet().toArray();\n \n for (String label : labels) \n {\n XYChart.Series<Number, Number> series = new XYChart.Series<>();\n series.setName(label);\n getLabels().entrySet().stream().filter(entry -> entry.getValue().equals(label)).forEach(entry -> {\n Point2D point = getLocations().get(entry.getKey());\n \n XYChart.Data data = new XYChart.Data<>(point.getX(), point.getY()); \n series.getData().add(data);\n \n \n });\n\n getChart().getData().add(series);\n for (XYChart.Series<Number, Number> s : getChart().getData()) {\n s.getNode().setStyle(\"-fx-stroke-width: 0; \");\n s.getNode().setStyle(\"-fx-stroke: transparent; \");\n\n } \n\n\n }\n getChart().setAnimated(false);\n getChart().getData().add(new XYChart.Series<Number,Number>());\n \n for (XYChart.Series<Number, Number> s : getChart().getData()) {\n for (XYChart.Data<Number, Number> d : s.getData()) {\n\n for(Object name: names)\n {\n if(getLocations().get((String)name).getX()==d.getXValue().doubleValue()\n && getLocations().get((String)name).getY()==d.getYValue().doubleValue())\n {\n Tooltip.install(d.getNode(),new Tooltip((String)name));\n }\n \n \n }\n d.getNode().setCursor(Cursor.CROSSHAIR);\n \n \n }\n \n }\n \n\n \n /* getChart().getXAxis().setAutoRanging(false);\n getChart().getYAxis().setAutoRanging(false);\n //System.out.print(minX+\" \"+maxX+\" \"+minY+\" \"+maxY);\n double deltaX = maxX-minX;\n double deltaY = maxY-minY;\n double lowerY = deltaY>1?minY-deltaY*0.05:minY*0.1;\n double upperY = deltaY>1?maxY+deltaY*0.05:maxY*0.1;\n if(deltaY==0)\n {\n lowerY = -0.5;\n upperY = 0.5;\n }\n double lowerX = deltaX>1?minX-deltaX*0.05:minX*0.1;\n double upperX = deltaX>1?minX+deltaX*0.05:maxX*0.1;\n if(deltaX == 0)\n {\n lowerX = -0.5;\n upperX = 0.5;\n }\n \n ((NumberAxis)getChart().getXAxis()).setLowerBound(lowerX);\n ((NumberAxis)getChart().getXAxis()).setUpperBound(upperX);\n ((NumberAxis)getChart().getYAxis()).setLowerBound(lowerY);\n ((NumberAxis)getChart().getYAxis()).setUpperBound(upperY);\n */\n getChart().getXAxis().setAutoRanging(false);\n getChart().getYAxis().setAutoRanging(false);\n \n double deltaY = getMaxY()-getMinY();\n double deltaX = getMaxX()-getMinX();\n if(deltaX==0) \n {\n deltaX = 1;\n setMinX(getMinX()-getMinX()*0.1-1);\n setMaxX(getMaxX()+getMaxX()*0.1+1);\n }\n if(deltaY==0)\n {\n deltaY = 1;\n setMinY(getMinY()-getMinY()*0.1-1);\n setMaxY(getMaxY()+getMaxY()*0.1+1);\n }\n\n getChart().getXAxis().setAutoRanging(false);\n getChart().getYAxis().setAutoRanging(false);\n ((NumberAxis)getChart().getXAxis()).setLowerBound(getMinX()-Math.abs(deltaX/10));\n ((NumberAxis)getChart().getXAxis()).setUpperBound(getMaxX()+Math.abs(deltaX/10));\n ((NumberAxis)getChart().getYAxis()).setLowerBound(getMinY()-Math.abs(deltaY/10));\n ((NumberAxis)getChart().getYAxis()).setUpperBound(getMaxY()+Math.abs(deltaY/10));\n\n \n }",
"public SmoothLine(Point2D[] points){ \n this.points = points; \n }",
"@Override\n public Point2D.Double point(int i, double t, double[] xpoints, double[] ypoints) {\n double px = 0;\n double py = 0;\n for (int j = 0; j <= 3; j++) {\n px += b(j, t) * xpoints[i + j];\n py += b(j, t) * ypoints[i + j];\n }\n return new Point2D.Double(px, py);\n }",
"public void afficherPoints(){\n for(Point point : pointArrayList){\n getMapPane().getChildren().add(point.getImageView());\n visualObjects.add(point);\n }\n }",
"public void addPoints(List<Point2D> points);",
"public Point2D[] getGivenPoints(){ \n return this.points; \n }",
"private void paintPoint(int x, int y, Color c) {\n\t\traster.setDataElements(x, y, model.getDataElements(c.getRGB(), null));\t\t\n\t}",
"public PointSetOverlay createPointSetOverlay();",
"public double[] getHitGeoCoord();",
"private void paintPoint(int x, int y) {\n\t\traster.setDataElements(x, y, model.getDataElements(Color.BLACK.getRGB(), null));\t\t\n\t}",
"public Point getPanelPoint(double lat, double lng) {\r\n Point pt = null;\r\n adjustBoundaries();\r\n if (_north != _south && _east != _west) {\r\n double gAmpl; // = Math.abs(_east - _west);\r\n for (gAmpl = _east - _west; gAmpl < 0D; gAmpl += 360D) ;\r\n double graph2chartRatio = (double) w / gAmpl;\r\n double _lng = lng;\r\n if (Math.abs(_west) > 180D && sign(_lng) != sign(_west) && sign(_lng) > 0)\r\n _lng -= 360D;\r\n if (gAmpl > 180D && _lng < 0D && _west > 0D)\r\n _lng += 360D;\r\n if (gAmpl > 180D && _lng >= 0D && _west > 0D && _lng < _east)\r\n _lng += (_west + (gAmpl - _east));\r\n int x = 0;\r\n double[] xy = null;\r\n switch (projection) {\r\n case ChartPanelInterface.ANAXIMANDRE:\r\n case ChartPanelInterface.MERCATOR:\r\n// x = (int)(Math.abs(_lng - _west) * graph2chartRatio);\r\n x = (int) ((_lng - _west) * graph2chartRatio);\r\n break;\r\n case ChartPanelInterface.LAMBERT:\r\n x = (int) Math.round(conic_ratio * calculateLambertXCoordinates(Math.toRadians(lat), Math.toRadians(_lng), Math.toRadians(contactParallel)));\r\n x = conicOffset_X + x;\r\n break;\r\n case ChartPanelInterface.CONIC_EQUIDISTANT:\r\n double[] ald = calculateCECoordinates(Math.toRadians(lat), Math.toRadians(_lng), Math.toRadians(contactParallel));\r\n x = conicOffset_X + (int) Math.round(conic_ratio * ald[0]);\r\n break;\r\n case ChartPanelInterface.GLOBE_VIEW:\r\n x = (int) Math.round(globeView_ratio * calculateGlobeViewXCoordinates(Math.toRadians(lat), Math.toRadians(_lng - globeViewLngOffset)));\r\n x += globeViewOffset_X;\r\n break;\r\n case ChartPanelInterface.SATELLITE_VIEW:\r\n xy = getSatelliteViewXY(lat, lng);\r\n x = (int) Math.round(globeView_ratio * xy[0]);\r\n x += globeViewOffset_X;\r\n// x = (int)xy[0];\r\n break;\r\n case ChartPanelInterface.STEREOGRAPHIC:\r\n xy = calculateStereoGraphicXYCoordinates(lat, lng);\r\n x = (int) Math.round(stereoView_ratio * xy[0]);\r\n x += stereoViewOffset_X;\r\n break;\r\n case ChartPanelInterface.POLAR_STEREOGRAPHIC:\r\n xy = calculatePolarStereoGraphicXYCoordinates(lat, lng);\r\n x = (int) Math.round(stereoView_ratio * xy[0]);\r\n x += stereoViewOffset_X;\r\n if (south < 0) // Southern hemisphere\r\n x = w - x;\r\n break;\r\n }\r\n double incSouth = 0.0D;\r\n switch (projection) {\r\n case ChartPanelInterface.ANAXIMANDRE:\r\n incSouth = _south;\r\n break;\r\n case ChartPanelInterface.MERCATOR:\r\n incSouth = MercatorUtil.getIncLat(_south);\r\n break;\r\n case ChartPanelInterface.LAMBERT:\r\n incSouth = (int) Math.round(conic_ratio * calculateLambertYCoordinates(Math.toRadians(_south), Math.toRadians(_lng), Math.toRadians(contactParallel)));\r\n break;\r\n case ChartPanelInterface.CONIC_EQUIDISTANT:\r\n double[] ald = calculateCECoordinates(Math.toRadians(_south), Math.toRadians(_lng), Math.toRadians(contactParallel));\r\n incSouth = (int) Math.round(conic_ratio * ald[1]);\r\n break;\r\n case ChartPanelInterface.GLOBE_VIEW:\r\n incSouth = (int) Math.round(globeView_ratio * calculateGlobeViewYCoordinates(Math.toRadians(lat), Math.toRadians(_lng - globeViewLngOffset)));\r\n break;\r\n case ChartPanelInterface.SATELLITE_VIEW:\r\n incSouth = (int) Math.round(globeView_ratio * xy[1]);\r\n// incSouth = xy[1];\r\n break;\r\n case ChartPanelInterface.STEREOGRAPHIC:\r\n xy = calculateStereoGraphicXYCoordinates(lat, lng);\r\n incSouth = (int) Math.round(stereoView_ratio * xy[1]);\r\n break;\r\n case ChartPanelInterface.POLAR_STEREOGRAPHIC:\r\n xy = calculatePolarStereoGraphicXYCoordinates(lat, lng);\r\n incSouth = (int) Math.round(stereoView_ratio * xy[1]);\r\n break;\r\n }\r\n double incLat = 0.0D;\r\n int y = 0;\r\n switch (projection) {\r\n case ChartPanelInterface.ANAXIMANDRE:\r\n incLat = lat;\r\n y = h - (int) ((incLat - incSouth) * ((double) h / (north - south)));\r\n break;\r\n case ChartPanelInterface.MERCATOR:\r\n incLat = MercatorUtil.getIncLat(lat);\r\n y = h - (int) ((incLat - incSouth) * graph2chartRatio);\r\n break;\r\n case ChartPanelInterface.LAMBERT:\r\n incLat = conic_ratio * calculateLambertYCoordinates(Math.toRadians(lat), Math.toRadians(_lng), Math.toRadians(contactParallel));\r\n y = (int) Math.round(incLat) + conicOffset_Y;\r\n break;\r\n case ChartPanelInterface.CONIC_EQUIDISTANT:\r\n double[] ald = calculateCECoordinates(Math.toRadians(lat), Math.toRadians(_lng), Math.toRadians(contactParallel));\r\n y = (int) Math.round(conic_ratio * ald[1]) + conicOffset_Y;\r\n break;\r\n case ChartPanelInterface.GLOBE_VIEW:\r\n y = (int) Math.round(globeView_ratio * calculateGlobeViewYCoordinates(Math.toRadians(lat), Math.toRadians(_lng - globeViewLngOffset)));\r\n y = globeViewOffset_Y - y;\r\n break;\r\n case ChartPanelInterface.SATELLITE_VIEW:\r\n// y = h - (int)(globeViewOffset_Y - (int)incSouth);\r\n y = (int) (globeViewOffset_Y - (int) incSouth);\r\n break;\r\n case ChartPanelInterface.STEREOGRAPHIC:\r\n incLat = lat;\r\n y = (int) (stereoViewOffset_Y - (int) incSouth);\r\n break;\r\n case ChartPanelInterface.POLAR_STEREOGRAPHIC:\r\n incLat = lat;\r\n y = (int) (stereoViewOffset_Y - (int) incSouth);\r\n if (south < 0) // Southern hemisphere\r\n y = h + y;\r\n break;\r\n }\r\n pt = new Point(x, y);\r\n if (projection != ChartPanelInterface.GLOBE_VIEW &&\r\n projection != ChartPanelInterface.SATELLITE_VIEW)\r\n pt = rotate(pt);\r\n }\r\n return pt;\r\n }",
"public void resultsToMaple(PrintStream ps) {\n double[] y;\n ps.println(\"with(plots):\");\n ps.println(\"points := [\");\n\n for (int i = 0; i < getNumPoints(); i++) {\n y = getPoint(i).getVector();\n ps.println(\"[\" + y[0] + \",\" + y[1] + \"],\");\n }\n\n ps.println(\"]:\");\n ps.println(\"plotsetup(ps,plotoutput=`plot.ps`,\"\n + \"plotoptions=`portrait,noborder,width=6.0in,height=6.0in`):\");\n ps.println(\"plot(points, style=POINT,symbol=CIRCLE);\");\n }",
"Collection<Point> getAllCoordinates();",
"private void smooth_plot(Bundle bundle, boolean spliceCurve, String suffix) {\n\n int[] xdata = bundle.getIntArray(\"xdata\" + suffix);\n float[] ydata = bundle.getFloatArray(\"ydata\" + suffix);\n\n // create a list of the points\n int totalPoints = xdata.length;\n ArrayList<UtilsMisc.XYPoint> details = new ArrayList<>();\n for (int i = 0; i < totalPoints; i++)\n details.add(new UtilsMisc.XYPoint(xdata[i], ydata[i]));\n\n // break up the list into chunks of NUM_POINTS based on the number of curves\n List<List<UtilsMisc.XYPoint>> partitions = new ArrayList<>();\n int NUM_CURVES = (int) Math.round(Math.log10(totalPoints)) * 2;\n int NUM_POINTS = (NUM_CURVES == 0) ? 1 : totalPoints / NUM_CURVES;\n for (int i = 0; i < totalPoints; i += NUM_POINTS)\n partitions.add(details.subList(i, Math.min(i + NUM_POINTS, totalPoints)));\n\n // for each partition, get 4 control points\n ArrayList<UtilsMisc.XYPoint> fourPoints = new ArrayList<>();\n int color = 0;\n for (int i = 0; i < partitions.size(); i++) {\n // verify that there are at least four points\n if (partitions.get(i).size() < 4) continue;\n\n // get the subset of details\n List<UtilsMisc.XYPoint> subDetails = partitions.get(i);\n UtilsMisc.XYPoint[] p = new UtilsMisc.XYPoint[4];\n\n // set the first and last control points\n double x, y;\n int first = (i == 0) ? 1 : 0;\n //x = (subDetails.get(first).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, first, dataIndex);\n x = subDetails.get(first).getX();\n y = subDetails.get(first).getY();\n p[0] = new UtilsMisc.XYPoint(x, y, color);\n\n int last = subDetails.size() - 1;\n //x = (subDetails.get(last).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, last, dataIndex);\n x = subDetails.get(last).getX();\n y = subDetails.get(last).getY();\n p[3] = new UtilsMisc.XYPoint(x, y, color);\n\n // find the min. and max values for the second and third control points\n // in between the first and last control points\n int min_index = 0;\n int max_index = 0;\n float max_sub_value = 0.0f;\n float min_sub_value = Constants.LARGE_FLOAT;\n for (int j = 1; j < subDetails.size() - 1; j++) {\n // float value = getYCoordinate(subDetails, j, dataIndex);\n float value = (float) subDetails.get(j).getY();\n if (value < min_sub_value) {\n min_index = j;\n min_sub_value = value;\n }\n if (value > max_sub_value) {\n max_index = j;\n max_sub_value = value;\n }\n }\n\n double xmin = subDetails.get(min_index).getX();\n double ymin = subDetails.get(min_index).getY();\n double xmax = subDetails.get(max_index).getX();\n double ymax = subDetails.get(max_index).getY();\n\n if (max_index > min_index) {\n p[1] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[2] = new UtilsMisc.XYPoint(xmax, ymax, color);\n } else {\n p[2] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[1] = new UtilsMisc.XYPoint(xmax, ymax, color);\n }\n\n fourPoints.addAll(Arrays.asList(p)); // build the list of main points\n }\n\n // build the list of control points,\n ArrayList<UtilsMisc.XYPoint> controlPoints = new ArrayList<>();\n for (int i = 0; i < fourPoints.size(); i++) {\n controlPoints.add(fourPoints.get(i));\n // in a spliced curve, add a center control point for every alternate pair of points\n if (spliceCurve && (i % 2 == 0) && (i > 0) && (i + 3) < fourPoints.size()) {\n controlPoints.add(UtilsMisc.center(fourPoints.get(i), fourPoints.get(i + 1)));\n }\n }\n\n // for a spliced curve do the 4 point bezier interpolation from 0..3, 3..6, 6..9\n // otherwise, do the 4 point bezier interpolation from 0..3, 4..7, 8..11\n UtilsMisc.XYPoint p1, p2, p3, p4;\n ArrayList<UtilsMisc.XYPoint> allPoints = new ArrayList<>();\n int INCREMENT = spliceCurve ? 3 : 4;\n for (int i = 0; i < controlPoints.size(); i += INCREMENT) {\n if ((i + 3) < controlPoints.size()) {\n p1 = controlPoints.get(i);\n p2 = controlPoints.get(i + 1);\n p3 = controlPoints.get(i + 2);\n p4 = controlPoints.get(i + 3);\n allPoints.addAll(UtilsMisc.BezierInterpolate(p1, p2, p3, p4));\n }\n }\n\n // remove duplicate x coordinates\n ArrayList<Integer> times_list = new ArrayList<>();\n ArrayList<Float> values_list = new ArrayList<>();\n Hashtable<Integer, Boolean> seenInt = new Hashtable<>();\n for (int i = 0; i < allPoints.size(); i++) {\n int xloc = (int) Math.round(allPoints.get(i).getX());\n if (seenInt.containsKey(xloc)) continue;\n seenInt.put(xloc, true);\n times_list.add(xloc);\n values_list.add((float) allPoints.get(i).getY());\n }\n\n // convert array list to array\n int[] smooth_times = UtilsMisc.convertIntegers(times_list);\n float[] smooth_values = UtilsMisc.convertFloats(values_list);\n\n bundle.putIntArray(\"xdata\" + suffix, smooth_times);\n bundle.putFloatArray(\"ydata\" + suffix, smooth_values);\n }",
"public String getPointsData() {\n\t\t\tStringBuilder pointsString = new StringBuilder(\"[\");\n\n\t\t\ttry {\n\t\t\t\tCursor pointsCursor = dbHandler\n\t\t\t\t\t\t.getEveryLatLong(Main.logged_user);\n\n\t\t\t\tif (pointsCursor != null) {\n\n\t\t\t\t\tif (pointsCursor.moveToFirst()) {\n\t\t\t\t\t\twhile (!pointsCursor.isAfterLast()) {\n\t\t\t\t\t\t\tpointsString.append(String.format(GOOGLE_MAP_POINT,\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LATITUDE),\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LONGITUDE)));\n\n\t\t\t\t\t\t\tpointsCursor.moveToNext();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tpointsCursor.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLog.e(LOG_TAB, ex.getMessage());\n\t\t\t\tpointsString.append(\"ERROR_\");\n\t\t\t}\n\n\t\t\tif(pointsString.length() > GOOGLE_MAP_POINT.length())\n\t\t\t\treturn pointsString.substring(0, pointsString.length() - 1) + \"]\";\n\t\t\telse\n\t\t\t\treturn \"NODATA\";\n\t\t}",
"PlotPoints(double[] xdata, double[] ydata,\n double xMn, double xMx, double yMn, double yMx) {\n nPts = xdata.length;\n x = new double[nPts];\n y = new double[nPts];\n err = new double[nPts];\n for(int i=0; i<nPts; i++){\n x[i] = xdata[i];\n y[i] = ydata[i];\n }\n xMin = xMn;\n xMax = xMx;\n yMin = yMn;\n yMax = yMx;\n }",
"public interface PointsGenerator {\r\n\t/**\r\n\t * Creates a <code>Series</code> object, which supplies the points.\r\n\t * \r\n\t * @param dimension dimension of the unit cube from which the points are selected\r\n\t * @return <code>Series</code> iterator\r\n\t * @see de.torstennahm.series.Series\r\n\t */\r\n\tSeries<double[]> makeSeries(int dimension);\r\n}",
"public SeriesSelection getSeriesAndPointForScreenCoordinate(Point screenPoint) {\r\n return null;\r\n }",
"public XYSeries(String name) {\n\t\tthis.name = name;\n\t\tpointList = new ArrayList<Point2D>(1024);\n\t}",
"@Override\n\tpublic TreeMap<Double, Double> getDatapointSeries(int index) {\n\t\treturn null;\n\t}",
"public int[] addToOverlay(String seriesKey, double x, double y) {\n //check to see if either seriesKey or map is null- this indicates that either no crosshair is set\n //or that this is not a line ROI graph\n if (seriesKey != null && map != null) {\n Pair tuple = map.get(seriesKey);\n MimsPlus finalImage = (MimsPlus) tuple.First;\n Roi roi = (Roi) tuple.Second;\n pointX = -1;\n pointY = -1;\n //check that this a line ROI graph\n if (roi.isLine()) {\n if (roi.getType() == Roi.LINE) {\n Line line = (Line) roi;\n //convert from series coordinate system to image coordinate system\n double ratio = x / line.getLength();\n Polygon points = line.getPoints();\n int[] xpoints = points.xpoints;\n int[] ypoints = points.ypoints;\n double xvec = (xpoints[0] - xpoints[1]) * ratio;\n double yvec = (ypoints[0] - ypoints[1]) * ratio;\n pointX = (int) (xpoints[0] - xvec);\n pointY = (int) (ypoints[0] - yvec);\n //add the roi to the overlay, and set it \n /*Overlay overlay = finalImage.getGraphOverlay();\n overlay.add(shaperoi);\n overlay.setFillColor(java.awt.Color.yellow);\n finalImage.setOverlay(overlay);*/\n } else if (roi.getType() == Roi.FREELINE || roi.getType() == Roi.POLYLINE) {\n Polygon points = roi.getPolygon();\n int[] xpoints = points.xpoints;\n int[] ypoints = points.ypoints;\n double distanceTraveled = 0;\n //loop through all segments and figure out which one the point lies on\n for (int i = 0; i < xpoints.length - 1; i++) {\n //calculate length of current segment\n double distance = Math.pow((Math.pow((double) (xpoints[i] - xpoints[i + 1]), 2) + Math.pow((double) (ypoints[i] - ypoints[i + 1]), 2)), 0.5);\n if (distanceTraveled + distance > x) {\n //figure out where the point lies on desired segment\n double needToTravel = x - distanceTraveled;\n double ratio = needToTravel / distance;\n double xvec = (xpoints[i] - xpoints[i + 1]) * ratio;\n double yvec = (ypoints[i] - ypoints[i + 1]) * ratio;\n pointX = (int) (xpoints[i] - xvec);\n pointY = (int) (ypoints[i] - yvec);\n i = xpoints.length;\n } else {\n //continue along line if not desired segment\n distanceTraveled += distance;\n }\n }\n }\n int[] coords = {pointX, pointY};\n Ellipse2D shape = new Ellipse2D.Float(pointX - 2, pointY - 2, 4, 4);\n Roi shaperoi = new ShapeRoi(shape);\n shaperoi.setName(roi.getName() + graphID);\n //remove any previous crosshair ROIs that originated from this graph\n //this is why we set and remove based on the unique global graphID\n MimsPlus[] openImages = ui.getAllOpenImages();\n //originally coordinate was only displayed on relveant image/roi pair\n //switch out the next two lines to restore this functionality\n //for (MimsPlus image : images) {\n for (MimsPlus image : openImages) {\n Overlay overlay = image.getGraphOverlay();\n //remove all coordinate displays from this graph from all images\n for (Roi roim : rois) {\n int indexm = overlay.getIndex(roim.getName() + graphID);\n if (indexm > -1) {\n overlay.remove(indexm);\n }\n }\n //add new coordinate\n overlay.add(shaperoi);\n overlay.setFillColor(java.awt.Color.yellow);\n image.setOverlay(overlay);\n }\n return coords;\n }\n }\n return null;\n }",
"public synchronized BufferedImage getStationPlot(PlotData stationData,\n double latitude, double longitude) {\n double[] stationLocation = { longitude, latitude };\n double[] stationPixelLocation = this.mapDescriptor\n .worldToPixel(stationLocation);\n\n if (stationPixelLocation != null) {\n stationPixelLocation[1]--;\n double[] newWorldLocation = this.mapDescriptor\n .pixelToWorld(stationPixelLocation);\n this.gc.setStartingGeographicPoint(stationLocation[0],\n stationLocation[1]);\n this.gc.setDestinationGeographicPoint(newWorldLocation[0],\n newWorldLocation[1]);\n }\n\n try {\n boolean discard = false;\n if (python != null) {\n Boolean result = false;\n CheckPlotValidityExecutor task = new CheckPlotValidityExecutor(\n stationData);\n try {\n result = python.submitSyncJob(task);\n } catch (Exception e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Error checking if plot is valid for plot model \"\n + getPlotModelFilename(), e);\n } finally {\n if (result.booleanValue() == false) {\n return null;\n }\n }\n }\n\n StringBuilder imageId = new StringBuilder();\n\n for (PlotModelElement element : this.plotFields) {\n boolean valid = true;\n boolean required = element.required;\n switch (element.mode) {\n case TEXT:\n this.processTextDirective(stationData, element);\n addToImageId(stationData, element.parameter, imageId);\n break;\n case BARB:\n element.plotElement.setAttribute(\"style\", currentStyleStr);\n valid = this.processBarbDirective(stationData, element);\n // normalize speed before adding to id so all identical\n // barbs will share plots\n String[] windParams = element.parameter.split(\",\");\n double speed = stationData.getNumber(windParams[0])\n .doubleValue();\n double dir = stationData.getNumber(windParams[1])\n .doubleValue();\n if (element.converter != null) {\n speed = element.converter.convert(speed);\n }\n imageId.append(windNormalizer(speed));\n // Accurate to a fourth a degree.\n imageId.append((int) (dir - gc.getAzimuth()) * 4);\n if (windParams.length == 3) {\n imageId.append(stationData.getNumber(windParams[2]));\n }\n addToImageId(stationData,\n element.parameter.split(\",\", 2)[1], imageId);\n break;\n case ARROW:\n element.plotElement.setAttribute(\"style\", currentStyleStr);\n addToImageId(stationData, element.parameter, imageId);\n this.processArrowDirective(stationData, element);\n break;\n case TABLE:\n this.processTableDirective(stationData, element);\n addToImageId(stationData, element.parameter, imageId);\n break;\n case AVAIL:\n this.processAvailDirective(element);\n break;\n case RANGE:\n valid = this.processRangeDirective(stationData, element);\n addToImageId(stationData, element.parameter, imageId);\n break;\n case NULL:\n this.processNullDirective(element);\n break;\n }\n if (!valid && required) {\n discard = true;\n }\n }\n\n if (discard) {\n return null;\n }\n\n if (imageCache != null\n && imageCache.containsKey(imageId.toString())) {\n return imageCache.get(imageId.toString());\n }\n\n BufferedImage bufferedImage = new BufferedImage(\n this.plotModelWidth, this.plotModelHeight,\n BufferedImage.TYPE_BYTE_INDEXED, tm);\n\n // long t0 = System.currentTimeMillis();\n GraphicsNode graphicsNode = builder.build(this.bridgeContext,\n this.document);\n Graphics2D g2d = null;\n try {\n g2d = bufferedImage.createGraphics();\n graphicsNode.primitivePaint(g2d);\n } finally {\n if (g2d != null) {\n g2d.dispose();\n }\n }\n // System.out.println(\"Time building and creating graphics: \"\n // + (System.currentTimeMillis() - t0));\n if (imageCache != null) {\n imageCache.put(imageId.toString(), bufferedImage);\n }\n return bufferedImage;\n\n } catch (Exception e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Error:\" + e.getLocalizedMessage(), e);\n }\n\n return null;\n }",
"@Override\n public List<XYCoords> interpolate(XYSeries series, Params params) {\n if (params.getPointPerSegment() < 2) {\n throw new IllegalArgumentException(\n \"pointsPerSegment must be greater than 2, since 2 points is just the linear segment.\");\n }\n\n // Cannot interpolate curves given only two points. Two points\n // is best represented as a simple line segment.\n if (series.size() < 3) {\n throw new IllegalArgumentException(\"Cannot interpolate a series with fewer than 3 vertices.\");\n }\n\n // Get the change in x and y between the first and second coordinates.\n double dx = series.getX(1).doubleValue() - series.getX(0).doubleValue();\n double dy = series.getY(1).doubleValue() - series.getY(0).doubleValue();\n\n // Then using the change, extrapolate backwards to find a control point.\n double x1 = series.getX(0).doubleValue() - dx;\n double y1 = series.getY(0).doubleValue() - dy;\n\n // Actually create the start point from the extrapolated values.\n XYCoords start = new XYCoords(x1, y1);\n\n // Repeat for the end control point.\n int n = series.size() -1;\n dx = series.getX(n).doubleValue() - series.getX(n-1).doubleValue();\n dy = series.getY(n).doubleValue() - series.getY(n - 1).doubleValue();\n double xn = series.getX(n).doubleValue() + dx;\n double yn = series.getY(n).doubleValue() + dy;\n XYCoords end = new XYCoords(xn, yn);\n\n // TODO: figure out whether this extra control-point synthesis is\n // TODO: really necessary and either remove the above or fix the below.\n // insert the start control point at the start of the vertices list.\n // TODO vertices.add(0, start);\n\n // append the end control ponit to the end of the vertices list.\n // TODO vertices.add(end);\n //}\n\n ExtrapolatedXYSeries extrapolatedXYSeries = new ExtrapolatedXYSeries(series, start, end);\n\n // Dimension a result list of coordinates.\n List<XYCoords> result = new ArrayList<>();\n\n // When looping, remember that each cycle requires 4 points, starting\n // with i and ending with i+3. So we don't loop through all the points.\n for (int i = 0; i < extrapolatedXYSeries.size() - 3; i++) {\n\n // Actually calculate the Catmull-Rom curve for one segment.\n List<XYCoords> points = interpolate(extrapolatedXYSeries, i, params);\n\n // Since the middle points are added twice, once for each bordering\n // segment, we only add the 0 index result point for the first\n // segment. Otherwise we will have duplicate points.\n if (result.size() > 0) {\n points.remove(0);\n }\n\n // Add the coordinates for the segment to the result list.\n result.addAll(points);\n }\n return result;\n\n }",
"public String toString() {\n return(\"[\"+point1+\",\"+point2+\"]\");\n }",
"void drawPointArr(Graphics2D g2d, ArrayList<Point2D.Double> l){\r\n\t\tfor(int i=0; i<l.size()-1; i++){\r\n\t\t\tLine2D.Double line=new Line2D.Double(l.get(i), l.get(i+1));\r\n\t\t\tg2d.draw(line);\r\n\t\t}\r\n\r\n\t}",
"private void paintPointInColor(int x, int y) {\n\t\traster.setDataElements(x, y, model.getDataElements(c.getRGB(), null));\t\t\n\t}",
"public boolean onSingleTap(MotionEvent point) {\n\t\t\tif (active\n\t\t\t\t\t&& (drawType == POLYGON || drawType == POLYLINE || drawType == MULTI_POINT)) {\n\t\t\t\tif (ptStart == null)\n\t\t\t\t\tdrawLayer.removeAll();// 第一次开始前,清空全部graphic\n\n\t\t\t\tPoint ptCurrent = mapView.toMapPoint(new Point(point.getX(),\n\t\t\t\t\t\tpoint.getY()));\n\t\t\t\tpoints.add(ptCurrent);// 将当前点加入点集合中\n\t\t\t\tif (drawType == MULTI_POINT) {\n\t\t\t\t\t// 多选\n\t\t\t\t\t// Log.d(\"map\",\n\t\t\t\t\t// \"------点选-多选 ------SingleTap--x:\"+point.getX()+\" y: \"+point.getY());\n\t\t\t\t\tptOnly = null;\n\t\t\t\t\tptOnly = mapView.toMapPoint(point.getX(), point.getY());\n\n\t\t\t\t\tdrawLayer.removeAll();\n\t\t\t\t\tqueryAttribute4OnlyOnePonit(ptOnly);\n\t\t\t\t} else {\n\t\t\t\t\tif (ptStart == null) {// 画线或多边形的第一个点\n\t\t\t\t\t\tptStart = ptCurrent;\n\n\t\t\t\t\t\tmarkerSymbol = new SimpleMarkerSymbol(Color.BLUE, 10,\n\t\t\t\t\t\t\t\tSimpleMarkerSymbol.STYLE.CIRCLE);\n\t\t\t\t\t\t// 绘制第一个点\n\t\t\t\t\t\tGraphic graphic = new Graphic(ptStart, markerSymbol);\n\t\t\t\t\t\tdrawLayer.addGraphic(graphic);\n\t\t\t\t\t} else {// 画线或多边形的其他点\n\t\t\t\t\t\t// 绘制其他点\n\t\t\t\t\t\tmarkerSymbol = new SimpleMarkerSymbol(Color.BLUE, 15,\n\t\t\t\t\t\t\t\tSimpleMarkerSymbol.STYLE.DIAMOND);\n\t\t\t\t\t\tGraphic graphic = new Graphic(ptCurrent, markerSymbol);\n\t\t\t\t\t\tdrawLayer.addGraphic(graphic);\n\n\t\t\t\t\t\t// 生成当前线段(由当前点和上一个点构成)\n\t\t\t\t\t\tLine line = new Line();\n\t\t\t\t\t\tline.setStart(ptPrevious);\n\t\t\t\t\t\tline.setEnd(ptCurrent);\n\n\t\t\t\t\t\tif (drawType == DrawTool.POLYLINE) {\n\t\t\t\t\t\t\t// 绘制当前线段\n\t\t\t\t\t\t\tPolyline polyline = new Polyline();\n\t\t\t\t\t\t\tpolyline.addSegment(line, true);\n\t\t\t\t\t\t\tGraphic g = new Graphic(polyline, lineSymbol);\n\t\t\t\t\t\t\tdrawLayer.addGraphic(g);\n\n\t\t\t\t\t\t\tdouble len = GeometryEngine.geodesicLength(\n\t\t\t\t\t\t\t\t\tpolyline, mapView.getSpatialReference(),\n\t\t\t\t\t\t\t\t\tnull);\n\t\t\t\t\t\t\tString length = \"\";\n\t\t\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.00\");\n\t\t\t\t\t\t\tdouble temp = BigDecimal.valueOf(len)\n\t\t\t\t\t\t\t\t\t.divide(new BigDecimal(1000)).doubleValue();\n\t\t\t\t\t\t\tlength = df.format(temp) + \" 千米\";\n\t\t\t\t\t\t\tToast.makeText(mapView.getContext(),\n\t\t\t\t\t\t\t\t\t\"长度: \" + length, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tif (tempPolygon == null)\n\t\t\t\t\t\t\t\ttempPolygon = new Polygon();\n\n\t\t\t\t\t\t\tif (uid == -1) {\n\t\t\t\t\t\t\t\ttempPolygon.addSegment(line, false);\n\t\t\t\t\t\t\t\tGraphic g = new Graphic(tempPolygon, fillSymbol);\n\t\t\t\t\t\t\t\tuid = drawLayer.addGraphic(g);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttempPolygon.addSegment(line, false);\n\t\t\t\t\t\t\t\tdrawLayer.updateGraphic(uid, tempPolygon);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlines.add(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tptPrevious = ptCurrent;\n\t\t\t\t// tempLayer.postInvalidate();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"@Override\n public void onLocationChanged(Location location) {\n //update current lacation when the GPS changed\n c = new LatLng(location.getLatitude(), location.getLongitude());\n updateCameraBearing(map, location.getBearing());\n nearestPointIndex = findNearestPoint(c,points2);\n if(nearestPointIndex>0){\n ArrayList p3 = new ArrayList();\n for (int j = nearestPointIndex; j < points2.size(); j++) {\n LatLng point = (LatLng) points2.get(j);\n p3.add(point);\n }\n points2 = p3;\n DrawDots(listResult,points2);\n }\n }",
"public GridPoint digitise() {\n\n Location myLocation = myLocation();\n GridPoint myGP = myGridPoint();\n //myLocationClick();\n points.add(myGridPoint());\n if (points.size() > 2) {\n\n\n mFinishButton.setVisibility(View.VISIBLE);\n\n }\n double latitude = myGridPoint().x;\n double longitude = myGridPoint().y;\n String stringLat = Double.toString(latitude);\n String stringLong = Double.toString(longitude);\n String coordPair = \" \" + stringLat + \",\" + stringLong;\n collectedPoints.add(coordPair);\n locations.add(myLocation);\n\n return myGP;\n\n }",
"public static void drawMapPoints(ArrayList<PointOfInterest> points) {\n\t\t// Use a label to display the image\n\t\tJFrame frame = new JFrame();\n\t\tframe.setSize(1080, 540);\n\t\tMap map = new Map(null, (ArrayList<PointOfInterest>)(points), null, 2, 0, 0);\n\t\tframe.add(map);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setVisible(true);\n\t}",
"public void addDataPoint2( DataPoint dataPoint ) {\n\t\tif ( dataPoint.x < 50.0 ){\n\t\t\tsumX1 += dataPoint.x;\n\t\t\tsumX1X1 += dataPoint.x*dataPoint.x;\n\t\t\tsumX1Y += dataPoint.x*dataPoint.z;\n\t\t\tsumY += dataPoint.z;\n\t\t\tsumYY += dataPoint.z*dataPoint.z;\n\n\t\t\tif ( dataPoint.x > X1Max ) {\n\t\t\t\tX1Max = (int)dataPoint.x;\n\t\t\t}\n\t\t\tif ( dataPoint.z > YMax ) {\n\t\t\t\tYMax = (int)dataPoint.z;\n\t\t\t}\n\n\t\t\t// 把每個點的具體座標存入 ArrayList中,備用。\n\t\t\txyz[0] = (int)dataPoint.x+ \"\";\n\t\t\txyz[2] = (int)dataPoint.z+ \"\";\n\t\t\tif ( dataPoint.x !=0 && dataPoint.z != 0 ) {\n\t\t\t\ttry {\n\t\t\t\t\tlistX.add( numPoint, xyz[0] );\n\t\t\t\t\tlistZ.add( numPoint, xyz[2] );\n\t\t\t\t} \n\t\t\t\tcatch ( Exception e ) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t++numPoint;\n\t\t}\n\t\telse {\n\t\t\t sumX50 += dataPoint.x;\n\t\t \t sumX50X50 += dataPoint.x*dataPoint.x;\n\t\t\t sumX50Y50 += dataPoint.x*dataPoint.z;\n\t\t\t sumY50 += dataPoint.z;\n\t\t\t sumY50Y50 += dataPoint.z*dataPoint.z;\n\n\t\t\t if ( dataPoint.x > X50Max ) {\n\t\t\t\t X50Max = (int)dataPoint.x;\n\t\t\t }\n\t\t\t if ( dataPoint.z > Y50Max ) {\n\t\t\t\t Y50Max = (int)dataPoint.z;\n\t\t\t }\n\n\t\t\t // 把每個點的具體座標存入 ArrayList中,備用。\n\t\t\t xyz50[0] = (int)dataPoint.x+ \"\";\n\t\t\t xyz50[2] = (int)dataPoint.z+ \"\";\n\t\t\t if ( dataPoint.x !=0 && dataPoint.z != 0 ) {\n\t\t\t\t try {\n\t\t\t\t\t listX50.add( numPoint50, xyz50[0] );\n\t\t\t\t\t listZ50.add( numPoint50, xyz50[2] );\n\t\t\t\t } \n\t\t\t\t catch ( Exception e ) {\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t }\n\t\t\t\n\t\t\t ++numPoint50;\n\t\t}\n\t\tcoefsValid = false;\n\t}",
"public void setPoints(String points);",
"public String toString()\n\t{\n\t\tString data = \"(\" + x + \", \" + y + \")\";\n\t\treturn data;\t\t\t\t\t\t\t\t\t\t\t// Return point's data \n\t}",
"@Override\n public String toString()\n {\n return TAG + \"[x:\" + x + \",y:\" + y + \"]\";\n }",
"public void setData(double[] points)\r\n/* 39: */ {\r\n/* 40: 29 */ if ((this.data.length != 0) && (this.data.length != points.length)) {\r\n/* 41: 30 */ System.err.println(\"setData in Spider got wrong number of data points\");\r\n/* 42: */ }\r\n/* 43: 32 */ this.data = points;\r\n/* 44: 33 */ repaint();\r\n/* 45: */ }",
"@Override\n public void renderChart(ChartData data) {\n markers.clear();\n mMap.clear();\n ArrayList<MapSet> sets= ((MapChartDataImpl)data).getData();\n for(int i=0;i<sets.size();i++){\n BitmapDescriptor setmarkerico=null;\n ArrayList<MapPoint> set=sets.get(i).getData();\n if(sets.get(i).getMarker().equals(\"\")||sets.get(i).getMarker().equals(\"standard\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.standard);\n else if(sets.get(i).getMarker().equals(\"custom\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.custom);\n else if(sets.get(i).getMarker().equals(\"plane\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.plane);\n else if(sets.get(i).getMarker().equals(\"flag\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.flag);\n else if(sets.get(i).getMarker().equals(\"bus\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.bus);\n //TODO more...\n for(int j = 0;j<set.size();j++){\n LatLng coord = new LatLng(set.get(j).getLatitude(),set.get(j).getLongitude());\n\n MarkerOptions mo=new MarkerOptions()\n .position(coord)\n .snippet(\"\" + coord.toString())\n .icon(setmarkerico);\n if(set.get(j).getId()!=null)\n mo.title(\"\" + j + \"/\" + sets.get(i).getName()+ \" (id: \"+ set.get(j).getId()+\")\");\n else\n mo.title(\"\" + j + \"/\" + sets.get(i).getName());\n\n markers.add(mMap.addMarker(mo));\n\n /*if(j!=0)\n mMap.addPolyline(new PolylineOptions()\n .color(Color.parseColor(sets.get(i).getColor()))\n .add(new LatLng(set.get(j - 1).getLatitude(), set.get(j - 1).getLongitude()))\n .add(coord));*/\n }\n }\n }",
"@Override\n\tpublic Map getPointsForHotArea(String terminalId) {\n\t\tMap map = new HashMap();\n\t\tString lngs = \"\";\n\t\tString lats = \"\";\n\t\ttry {\n\t\t\tList<PositionData> info_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc limit 2000\");\n\t\t\tfor(int i=0;i<info_list.size();i++){\n\t\t\t\tif(info_list.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\tinfo_list.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<(info_list.size()>2000?2000:info_list.size());i++){\n\t\t\t\tposition_list.add(info_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tString point_latitude = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\tpoint_latitude = point_latitude.substring(0,point_latitude.indexOf(\";\"));\n\t\t\t\tpoint_latitude = point_latitude.split(\":\")[1];\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart1 = point_latitude.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\tpoint_latitude = Integer.parseInt(point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\tlats += point_latitude + \",\";\n\t\t\t\t\n\t\t\t\tString point_longitute = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\tpoint_longitute = point_longitute.substring(0,point_longitute.indexOf(\";\"));\n\t\t\t\tpoint_longitute = point_longitute.split(\":\")[1];\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart2 = point_longitute.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart2 = \"0.\" + tempStrPart2;\n\t\t\t\tdouble tempD2 = Double.parseDouble(tempStrPart2)/60*100;\n\t\t\t\tpoint_longitute = Integer.parseInt(point_longitute.split(\"\\\\.\")[0]) + tempD2 + \"\";\n\t\t\t\tlngs += point_longitute + \",\";\n\t\t\t}\n\t\t\tmap.put(\"lngs\",lngs.subSequence(0, lngs.lastIndexOf(\",\")));\n\t\t\tmap.put(\"lats\",lats.subSequence(0, lats.lastIndexOf(\",\")));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}",
"public List<Point2D> getControlPoints();",
"public void addPoints(int i, List<Point2D> points);",
"private ArrayList<Vector2f> drawRasterLine(Graphics g, Vector2f p0, Vector2f p1) {\r\n g.setColor(Color.BLUE);\r\n // Storage for drawn points\r\n ArrayList<Vector2f> vertices = new ArrayList<>();\r\n // Get pixels on the canvas\r\n int x0 = (int) world2Pixel(p0).x;\r\n int y0 = (int) world2Pixel(p0).y;\r\n int x1 = (int) world2Pixel(p1).x;\r\n int y1 = (int) world2Pixel(p1).y;\r\n // Delta x\r\n float dx = Math.abs(x1 - x0);\r\n // Step for x-value\r\n int sx = x0 < x1 ? 1 : -1;\r\n // Delta y\r\n float dy = -Math.abs(y1 - y0);\r\n // Step for y-value\r\n int sy = y0 < y1 ? 1 : -1;\r\n // Error values to determine with step to take\r\n float err = dx + dy, e2;\r\n // Loop until algorithm has finished\r\n while(true) {\r\n // Draw point on current coordinates\r\n g.drawArc(x0, y0, 1, 1, 0, 360);\r\n // Add point to drawn points list\r\n vertices.add(new Vector2f(x0, y0));\r\n // Loop condition\r\n if (x0==x1 && y0==y1) break;\r\n // Check which step to take for next point to draw\r\n e2 = 2 * err;\r\n if (e2 > dy) {\r\n err += dy;\r\n x0 += sx;\r\n }\r\n if (e2 < dx) {\r\n err += dx;\r\n y0 += sy;\r\n }\r\n }\r\n // Return all drawn points\r\n return vertices;\r\n }",
"public TimeSeries getTimeSeries(String serie_name){ \n //First, we create the TimeSeries to return \n TimeSeries time_serie= new TimeSeries(serie_name,Second.class); \n \n //Gets the Bezier curves \n Point2D[] points_bezier = getPoint2DArray(); \n \n for(int j = 0 ; j < points_bezier.length; j++){ \n //System.out.println(j + \" X --> \" + points_bezier[j].getX()); \n //time_serie.add(RegularTimePeriod.createInstance(Second.class,new Date((long)points_bezier[j].getX()),RegularTimePeriod.DEFAULT_TIME_ZONE),points_bezier[j].getY()); \n time_serie.add(new Second(new Date((long)points_bezier[j].getX())),points_bezier[j].getY()); \n } \n \n \n return time_serie; \n}",
"protected List<XYCoords> interpolate(XYSeries series, int index, Params params) {\n List<XYCoords> result = new ArrayList<>();\n double[] x = new double[4];\n double[] y = new double[4];\n double[] time = new double[4];\n for (int i = 0; i < 4; i++) {\n x[i] = series.getX(index + i).doubleValue();\n y[i] = series.getY(index + i).doubleValue();\n time[i] = i;\n }\n\n double tstart = 1;\n double tend = 2;\n if (params.getType() != Type.Uniform) {\n double total = 0;\n for (int i = 1; i < 4; i++) {\n double dx = x[i] - x[i - 1];\n double dy = y[i] - y[i - 1];\n if (params.getType() == Type.Centripetal) {\n total += Math.pow(dx * dx + dy * dy, .25);\n } else {\n total += Math.pow(dx * dx + dy * dy, .5);\n }\n time[i] = total;\n }\n tstart = time[1];\n tend = time[2];\n }\n\n int segments = params.getPointPerSegment() - 1;\n result.add(new XYCoords(series.getX(index + 1), series.getY(index + 1)));\n for (int i = 1; i < segments; i++) {\n double xi = interpolate(x, time, tstart + (i * (tend - tstart)) / segments);\n double yi = interpolate(y, time, tstart + (i * (tend - tstart)) / segments);\n result.add(new XYCoords(xi, yi));\n }\n result.add(new XYCoords(series.getX(index + 2), series.getY(index + 2)));\n return result;\n }",
"@Test\n public void test41() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(407.99, (-371.62), (-371.62), 0.0);\n line2D_Double0.x1 = 0.0;\n line2D_Double0.setLine((-371.62), 3820.38477815176, 0.0, 3820.38477815176);\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(0.0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n combinedRangeCategoryPlot0.setRangeCrosshairValue((-371.62));\n CategoryPointerAnnotation categoryPointerAnnotation0 = new CategoryPointerAnnotation(\"K(Jj1`SZJ!y81S;n?%Y\", (Comparable) (-371.62), 1834.808976, (-371.62));\n combinedRangeCategoryPlot0.addAnnotation(categoryPointerAnnotation0);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n float[][] floatArray0 = new float[9][0];\n float[] floatArray1 = new float[0];\n floatArray0[0] = floatArray1;\n float[] floatArray2 = new float[6];\n floatArray2[0] = Float.NEGATIVE_INFINITY;\n floatArray2[1] = 8.0F;\n floatArray2[2] = (-970.0398F);\n floatArray2[3] = (-2174.3F);\n floatArray2[4] = 0.0F;\n floatArray2[5] = 2953.279F;\n floatArray0[1] = floatArray2;\n float[] floatArray3 = new float[9];\n floatArray3[0] = 2953.279F;\n floatArray3[1] = (-970.0398F);\n floatArray3[2] = (-2174.3F);\n floatArray3[3] = (-970.0398F);\n floatArray3[4] = (-970.0398F);\n floatArray3[5] = 0.0F;\n floatArray3[6] = (-2174.3F);\n floatArray3[7] = 0.0F;\n floatArray3[8] = Float.NEGATIVE_INFINITY;\n floatArray0[2] = floatArray3;\n float[] floatArray4 = new float[0];\n floatArray0[3] = floatArray4;\n float[] floatArray5 = new float[7];\n floatArray5[0] = 8.0F;\n floatArray5[1] = 2953.279F;\n floatArray5[2] = (-966.2956F);\n floatArray5[3] = 8.0F;\n floatArray5[4] = 8.0F;\n floatArray5[5] = (-2174.3F);\n floatArray5[6] = (-2174.3F);\n floatArray0[4] = floatArray5;\n float[] floatArray6 = new float[6];\n floatArray6[0] = 0.0F;\n floatArray6[1] = Float.NEGATIVE_INFINITY;\n floatArray6[2] = (-966.2956F);\n floatArray6[3] = (-1797.876F);\n floatArray6[4] = (-966.2956F);\n floatArray6[5] = (-2174.3F);\n floatArray0[5] = floatArray6;\n float[] floatArray7 = new float[8];\n floatArray7[0] = 0.0F;\n floatArray7[1] = (-966.2956F);\n floatArray7[2] = 0.0F;\n floatArray7[3] = Float.NEGATIVE_INFINITY;\n floatArray7[4] = (-970.0398F);\n floatArray7[5] = (-970.0398F);\n floatArray7[6] = 0.0F;\n floatArray7[7] = (-970.0398F);\n floatArray0[6] = floatArray7;\n float[] floatArray8 = new float[3];\n floatArray8[0] = Float.NEGATIVE_INFINITY;\n floatArray8[1] = Float.NEGATIVE_INFINITY;\n floatArray8[2] = (-1797.876F);\n floatArray0[7] = floatArray8;\n float[] floatArray9 = new float[8];\n floatArray9[0] = 8.0F;\n floatArray9[1] = (-2209.7039F);\n floatArray9[2] = 0.0F;\n floatArray9[3] = (-2174.3F);\n floatArray9[4] = (-2174.3F);\n floatArray9[5] = Float.NEGATIVE_INFINITY;\n floatArray9[6] = 0.0F;\n floatArray9[7] = 2953.279F;\n floatArray0[8] = floatArray9;\n FastScatterPlot fastScatterPlot0 = new FastScatterPlot(floatArray0, (ValueAxis) numberAxis0, (ValueAxis) numberAxis0);\n BasicStroke basicStroke0 = (BasicStroke)fastScatterPlot0.getDomainGridlineStroke();\n combinedRangeCategoryPlot0.setRangeCrosshairStroke(basicStroke0);\n }",
"public List<String> getDataPoints() {\n Object[] dataPoints = (Object[])configMap.get(DATA_POINT);\n List<String> dps = Utility.downcast( dataPoints );\n return dps;\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tint i;\n\t\tString out = \"\";\n\t\tfor (i = 0; i < points.length; i++) {\n\t\t\tout = out + points[i].getX() + \" \" + points[i].getY();\n\t\t}\n\t\t\treturn out + \"\\n\";\n\t}",
"public GLGraphics drawPoints(Iterable<Vec2f> points) {\n\t\treturn render(GL.GL_POINTS, points);\n\t}",
"public Paint getSeriesPaint() {\n return this.seriesPaint;\n}",
"public PointDisplay(Point[] points) {\n\t\tthis(points, 10, true, 0);\n\t}",
"public Point2D setPoint(int i, double x, double y);",
"private XYSeries createSeries() {\r\n return createSeries(0);\r\n }",
"public Short2DPoint(int x, int y) {\n this((short) x,(short) y);\n }",
"protected void plotScatterDiagram(){\n double xmax = a + 5. * gamma;\r\n double xmin = a - 5. * gamma;\r\n DatanGraphics.openWorkstation(getClass().getName(), \"\");\r\n DatanGraphics.setFormat(0., 0.);\r\n DatanGraphics.setWindowInComputingCoordinates(xmin, xmax, 0., .5);\r\n DatanGraphics.setViewportInWorldCoordinates(-.15, .9, .16, .86);\r\n DatanGraphics.setWindowInWorldCoordinates(-.414, 1., 0., 1.);\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawFrame();\r\n DatanGraphics.drawScaleX(\"y\");\r\n DatanGraphics.drawScaleY(\"f(y)\");\r\n DatanGraphics.drawBoundary();\r\n double xpl[] = new double[2];\r\n double ypl[] = new double[2];\r\n// plot scatter diagram\r\n DatanGraphics.chooseColor(1);\r\n for(int i = 0; i < y.length; i++){\r\n xpl[0] = y[i];\r\n xpl[1] = y[i];\r\n ypl[0] = 0.;\r\n ypl[0] = .1;\r\n DatanGraphics.drawPolyline(xpl, ypl); \r\n }\r\n// draw Breit-Wigner corresponding to solution\r\n int npl = 100;\r\n xpl = new double[npl];\r\n ypl = new double[npl];\r\n double dpl = (xmax - xmin) / (double)(npl - 1);\r\n for(int i = 0; i < npl; i++){\r\n xpl[i] = xmin + (double)i * dpl;\r\n ypl[i] = breitWigner(xpl[i], x.getElement(0), x.getElement(1));\r\n }\r\n DatanGraphics.chooseColor(5);\r\n DatanGraphics.drawPolyline(xpl, ypl);\r\n// draw caption\r\n String sn = \"N = \" + nny;\r\n\t numForm.setMaximumFractionDigits(3);\r\n \t numForm.setMinimumFractionDigits(3);\r\n String sx1 = \", x_1# = \" + numForm.format(x.getElement(0));\r\n String sx2 = \", x_2# = \" + numForm.format(x.getElement(1));\r\n String sdx1 = \", &D@x_1# = \" + numForm.format(Math.sqrt(cx.getElement(0,0)));\r\n String sdx2 = \", &D@x_2# = \" + numForm.format(Math.sqrt(cx.getElement(1,1)));\r\n caption = sn + sx1 + sx2 + sdx1 + sdx2;\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawCaption(1., caption);\r\n DatanGraphics.closeWorkstation();\r\n\r\n }",
"public Point2D(double x, double y){\n this.x = x;\n this.y = y;\n }",
"public PointsInfo[] getPointsInfo() {\n return pointsInfo;\n }",
"private static List<Point> createLinearDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 100);\r\n add(data, 5, 200);\r\n add(data, 10, 300);\r\n add(data, 15, 400);\r\n return data;\r\n }",
"public StsPoint2D()\n\t{\n\t}",
"public String getDetails()\n\t{\n\t return \"Point (\"+x+\",\"+y+\")\";\n\t}",
"@Override\n public String getDisplayString(String[] arg0) {\n return new String(\"geo_points\");\n }",
"@Test\n public void test27() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(0.0, 0.0);\n String string0 = point2D_Double0.toString();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n SortOrder sortOrder0 = combinedDomainCategoryPlot0.getRowRenderingOrder();\n combinedDomainCategoryPlot0.setRowRenderingOrder(sortOrder0);\n CategoryItemRenderer categoryItemRenderer0 = combinedDomainCategoryPlot0.getRenderer(2);\n combinedDomainCategoryPlot0.mapDatasetToRangeAxis(2, 0);\n Layer layer0 = Layer.FOREGROUND;\n Collection collection0 = combinedDomainCategoryPlot0.getDomainMarkers(0, layer0);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeCrosshairVisible();\n combinedDomainCategoryPlot0.mapDatasetToRangeAxis(0, 3);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n combinedDomainCategoryPlot0.zoomRangeAxes(4.0, plotRenderingInfo0, (Point2D) point2D_Double0, true);\n StandardXYZURLGenerator standardXYZURLGenerator0 = new StandardXYZURLGenerator();\n XYStepRenderer xYStepRenderer0 = new XYStepRenderer((XYToolTipGenerator) null, (XYURLGenerator) standardXYZURLGenerator0);\n XYPlot xYPlot0 = xYStepRenderer0.getPlot();\n }",
"String getSensorDataPoint();",
"@Override\n public void onDirectionSuccess(List<Points> point) {\n for (Points points:point){\n PolylineOptions polyLineOptions = new PolylineOptions().geodesic(true).color(Color.BLUE\n ).width(15);\n for (int i = 0; i < points.points.size(); i++)\n polyLineOptions.add(points.points.get(i));\n\n polylinePaths.add(mMap.addPolyline(polyLineOptions));\n\n }\n\n }",
"public ScatterChart(@NamedArg(\"xAxis\") Axis<X> xAxis, @NamedArg(\"yAxis\") Axis<Y> yAxis, @NamedArg(\"data\") ObservableList<Series<X,Y>> data) {\n super(xAxis,yAxis);\n setLegend(legend);\n setData(data);\n }",
"private void drawDataPoint(Graphics g, int radius, int x, int y)\r\n/* 123: */ {\r\n/* 124: 99 */ g.fillOval(x - radius, y - radius, 2 * radius, 2 * radius);\r\n/* 125: */ }",
"public Point2Dd (double x, double y){\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void addPoint(double[] point);",
"private void updatePointsPosition() {\n\t\tfor (DataFromPointInfo dataFromPointInfo : fromPoints) {\n\t\t\tDataFromPoint fromPoint = dataFromPointInfo.fromPoint;\n\t\t\tfromPoint.setX((int) (getX() + this.getBounds().getWidth()\n\t\t\t\t\t+ HORIZONTAL_OFFSET));\n\t\t\tfromPoint.setY((int) (getY() + this.getRowHeight() / 2\n\t\t\t\t\t+ this.getRowHeight() * dataFromPointInfo.yShift));\n\t\t}\n\t\tfor (DataToPointInfo dataToPointInfo : toPoints) {\n\t\t\tDataToPoint toPoint = dataToPointInfo.toPoint;\n\t\t\ttoPoint.setX((int) (getX() - HORIZONTAL_OFFSET));\n\t\t\ttoPoint.setY((int) (getY() + this.getRowHeight() / 2\n\t\t\t\t\t+ this.getRowHeight() * dataToPointInfo.yShift));\n\t\t}\n\t}",
"void mo5802a(LatLng latLng);",
"public ArrayList<T> getElements(Point2D point);",
"private BufferedImage createPlotImage() {\r\n final BufferedImage img = new BufferedImage(getWidth(), getHeight(), \r\n Transparency.BITMASK);\r\n final Graphics g = img.getGraphics();\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n \r\n g.setColor(GUIConstants.color6);\r\n for(int i = 0; i < scatterData.size; i++) {\r\n drawItem(g, scatterData.xAxis.co[i], \r\n scatterData.yAxis.co[i], false, false);\r\n }\r\n return img;\r\n }",
"private void plotGPS(LineChart lineChart, GPS gps)\n {\n Description desc = new Description();\n\n if(gps.getTime() != null && gps.getElevation() != null)\n {\n final long refTimestamp = gps.getTime().get(0).toDate().getTime();\n\n // X-Axis //\n XAxis xAxis = lineChart.getXAxis();\n xAxis.setValueFormatter(new IAxisValueFormatter()\n {\n @Override\n public String getFormattedValue(float value, AxisBase axis)\n {\n SimpleDateFormat sdf_mmss = new SimpleDateFormat(getString(R.string.sdf_hhmmss));\n sdf_mmss.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n return sdf_mmss.format(new Date((long) (value + refTimestamp)));\n }\n });\n\n lineChart.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);\n\n desc.setText(getString(R.string.axisTime));\n\n // Y-Axis //\n lineChart.getAxisLeft().setEnabled(true);\n lineChart.getAxisRight().setEnabled(true);\n\n // Data //\n // Elevation //\n ArrayList<Entry> xy1Vals = new ArrayList<Entry>();\n for (int i = 0; i < gps.getElevation().size(); i++)\n {\n xy1Vals.add(new Entry(new Long(gps.getTime().get(i).toDate().getTime()-refTimestamp).floatValue(), new Double(gps.getElevation().get(i)).floatValue()));\n }\n\n LineDataSet dataSet1 = new LineDataSet(xy1Vals, getString(R.string.axisElevation));\n dataSet1.setLineWidth(2f);\n dataSet1.setDrawCircleHole(false);\n dataSet1.setCircleRadius(3f);\n dataSet1.setColor(Color.BLUE);\n dataSet1.setCircleColor(Color.BLUE);\n dataSet1.setDrawVerticalHighlightIndicator(true);\n dataSet1.setAxisDependency(lineChart.getAxisLeft().getAxisDependency());\n\n // HeartRate //\n ArrayList<Entry> xy2Vals = new ArrayList<Entry>();\n for (int i = 0; i < gps.getHeartRate().size(); i++)\n {\n xy2Vals.add(new Entry(new Long(gps.getTime().get(i).toDate().getTime()-refTimestamp).floatValue(), new Double(gps.getHeartRate().get(i)).floatValue()));\n }\n\n LineDataSet dataSet2 = new LineDataSet(xy2Vals, getString(R.string.axisHeartRate));\n dataSet2.setLineWidth(2f);\n dataSet2.setDrawCircleHole(false);\n dataSet2.setCircleRadius(3f);\n dataSet2.setColor(Color.GREEN);\n dataSet2.setCircleColor(Color.GREEN);\n dataSet2.setDrawVerticalHighlightIndicator(true);\n dataSet2.setAxisDependency(lineChart.getAxisRight().getAxisDependency());\n\n ArrayList<ILineDataSet> dataSets = new ArrayList<ILineDataSet>();\n dataSets.add(dataSet1);\n dataSets.add(dataSet2);\n\n LineData data = new LineData(dataSets);\n\n // Loading of data //\n lineChart.setData(data);\n lineChart.invalidate();\n }\n else\n {\n lineChart.setNoDataText(getString(R.string.noDataGPS));\n desc.setText(\"\");\n }\n\n lineChart.setDescription(desc);\n }",
"public Point scaleToGraphCanvasCoords(double x, double y);",
"private double[] getSatelliteViewXY(double lat, double lng) {\n double latitude = Math.toRadians(satLat);\r\n double longitude = Math.toRadians(-thetaP);\r\n\r\n double _lng = lng - thetaP;\r\n\r\n double _x = Math.cos(Math.toRadians(lat)) * Math.sin(Math.toRadians(_lng));\r\n double _y = Math.sin(Math.toRadians(lat));\r\n double _z = Math.cos(Math.toRadians(lat)) * Math.cos(Math.toRadians(_lng));\r\n /*\r\n * | 1 0 0 | b > 0 : towards user\r\n * Rotation plan y, z: | 0 cos b -sin b |\r\n * | 0 sin b cos b |\r\n *\r\n * | cos t 0 -sin t | t > 0 : counterclockwise\r\n * Rotation plan x, z: | 0 1 0 |\r\n * | sin t 0 cos t |\r\n *\r\n */\r\n double[] rotated = null;\r\n double newX = _x;\r\n double newY = _y;\r\n double newZ = _z;\r\n\r\n // rotation yz (for stellite latitude)\r\n if (true) {\r\n rotated = rotation(new double[]{newX, newY, newZ},\r\n new double[][]{{1D, 0D, 0D},\r\n {0D, Math.cos(latitude), -Math.sin(latitude)},\r\n {0D, Math.sin(latitude), Math.cos(latitude)}});\r\n newX = rotated[0];\r\n newY = rotated[1];\r\n newZ = rotated[2];\r\n }\r\n // rotation xz (for satellite longitude)\r\n if (false) {\r\n rotated = rotation(new double[]{newX, newY, newZ},\r\n new double[][]{{Math.cos(longitude), 0D, -Math.sin(longitude)},\r\n {0D, 1D, 0D},\r\n {Math.sin(longitude), 0D, Math.cos(longitude)}});\r\n newX = rotated[0];\r\n newY = rotated[1];\r\n newZ = rotated[2];\r\n }\r\n\r\n double newL = Math.toDegrees(Math.asin(newY));\r\n double newG = 0D;\r\n if (newZ == 0D)\r\n newG = 0D;\r\n else\r\n newG = Math.toDegrees(Math.atan(newX / newZ));\r\n\r\n if ((newZ < 0D)) // && newX > 0D) || (newZ > 0D && newX < 0D))\r\n {\r\n while (_lng < -180D) _lng += 360D;\r\n while (_lng > 180D) _lng -= 360D;\r\n if (_lng < 0D) {\r\n if (newG > 0D) newG -= 180D;\r\n else newG = -180D - newG;\r\n }\r\n if (_lng > 0D) {\r\n if (newG > 0D) newG = 180D - newG;\r\n else newG += 180D;\r\n }\r\n }\r\n newG += thetaP;\r\n// newL = lat;\r\n// newG = lng;\r\n\r\n // Begin here\r\n double alfa = (newL);\r\n double f = Math.cos(Math.toRadians(alfa)) * Math.cos(Math.toRadians(newG - thetaP));\r\n// double r = rhoE / rhoS; // Unused\r\n double c = rhoS - (rhoE * f);\r\n double x = rhoS * rhoE * Math.sin(Math.toRadians(newG - thetaP)) * Math.cos(Math.toRadians(alfa)) / c;\r\n double y = rhoS * rhoE * Math.sin(Math.toRadians(alfa)) / c;\r\n\r\n return new double[]{x, y};\r\n }",
"public void addPoint(Integer x, Float y, String showValue) {\n\t\tCoordinate coordinate = new Coordinate(x, y);\n\t\tcoordinate.setShowValue(showValue);\n\t\tcoordinates.add(coordinate);\n\t}",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"protected ArrayList<DataToPoint> getToPoints() {\n\t\treturn toPoints.stream().map(e -> e.toPoint)\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\n\t}",
"public void plotCoordinatesFromText(String text){\n String[] coords = text.split(\",\");\r\n float lat = Float.parseFloat(coords[1]);\r\n float lng = Float.parseFloat(coords[0]);\r\n float ticks = Float.parseFloat(coords[2]);\r\n\r\n double total = (4400.0 - 0.1707*ticks)/44.00;//computers battery life\r\n int total_ = (int)(total + 0.5);\r\n\r\n VariablesSingleton.getInstance().setBATTERY(Double.toString(total_));\r\n TextView t = (TextView)findViewById(R.id.textView2);\r\n t.setText(VariablesSingleton.getInstance().getBATTERY()+\"%\");//displays battery life\r\n\r\n LatLng pos = new LatLng(lat,lng);//\r\n points.add(pos);//adds the point on the google maps\r\n //BikePath = mMap.addPolyline(new PolylineOptions());\r\n BikePath.setPoints(points);//adds the line connecting the markers\r\n\r\n mMap.addMarker(new MarkerOptions()//displays the marker on google map\r\n .title(\"Position\")\r\n .position(pos)\r\n );\r\n Log.d(TAG,coords[0]);\r\n Log.d(TAG,coords[1]);\r\n }",
"private Collection<Point2D> loadAllPoints(Node seriesNode) {\n\t\tlong allPointsCount = 0;\n\t\tCollection<Point2D> allPoints = new LinkedList<Point2D>();\n\t\t\n if (seriesNode.getNodeName().equalsIgnoreCase(SERIES_TAG)) {\n \tNode allPtsNode = seriesNode.getFirstChild();\n \twhile (allPtsNode != null) {\n \t\tif (allPtsNode.getNodeName().equals(ALL_POINTS_TAG)) {\n \t\t\tallPointsCount = Util.getLong(allPtsNode, POSITION_COUNT_TAG);\n \t\t\t\n \t\t\tSystem.out.println(\"Preaparing to load \" + allPointsCount + \" points from the XML node structure.\");\n \t\t\tNode pointNode = allPtsNode.getFirstChild();\n \t\t\twhile (pointNode != null) {\n \t\t\t\tif (pointNode.getNodeName().equals(POSITION_TAG)) {\n \t\t\t\t\tallPoints.add(new Position(pointNode));\n \t\t\t\t}\n \t\t\t\tpointNode = pointNode.getNextSibling();\n \t\t\t} // end while\n \t\t}\n \t\t\tallPtsNode = allPtsNode.getNextSibling();\n \t} // end while\n }\n return allPoints;\n\t}",
"public void mouseMoved(MouseEvent mouseEvent)\r\n { \r\n // Holder in loop for points\r\n SPlotPoint currPoint;\r\n \r\n SPlotPoint closestPoint = findClosestPoint(mouseEvent.getPoint());\r\n\r\n\r\n SPlotPoint currHilitePoint = getCurrentHighlight();\r\n\r\n\r\n currHilitePoint_ = currHilitePoint;\r\n \r\n // Mouse is not on a point, but there is a currently highlighted point\r\n // Repaint, setting color of all points to non-highlighted\r\n if ((closestPoint == null) && (currHilitePoint != null))\r\n {\r\n for (int i = 0; i<pointVector_.size(); i++)\r\n {\r\n currPoint = (SPlotPoint)pointVector_.elementAt(i);\r\n currPoint.setIsHilited(false);\r\n }\r\n repaint( ((int)currHilitePoint.x - (OVAL_RADIUS)), \r\n ((int)currHilitePoint.y - (OVAL_RADIUS)), \r\n OVAL_REPAINT_SIZE, \r\n OVAL_REPAINT_SIZE );\r\n\r\n\r\n // remove the highlighting from the map\r\n highlightManager_.setHighlight(0);\r\n\r\n\r\n }\r\n // If there is a closest point that should be highlighted, paint it as \r\n // highlited\r\n else if ( (closestPoint != null) && (currHilitePoint == null))\r\n {\r\n closestPoint.setIsHilited(true);\r\n\r\n\r\n repaint( ((int)(closestPoint.x) - (OVAL_RADIUS)), \r\n ((int)(closestPoint.y) - (OVAL_RADIUS)), \r\n OVAL_REPAINT_SIZE, \r\n OVAL_REPAINT_SIZE );\r\n\r\n\r\n // highlight the corresponding state on the map\r\n //problem...must unhighlight state when mouse moves off closestPoint \r\n highlightManager_.setHighlight(closestPoint.getId());\r\n }\r\n\r\n\r\n // if previous highlighted point exists, then color that \r\n // back to blue\r\n if ((prevHilitePoint_ != null) \r\n && \r\n (prevHilitePoint_ != currHilitePoint_))\r\n {\r\n repaint( (int)(prevHilitePoint_.x - (OVAL_RADIUS)), \r\n (int)(prevHilitePoint_.y - (OVAL_RADIUS)), \r\n OVAL_REPAINT_SIZE, \r\n OVAL_REPAINT_SIZE );\r\n }\r\n\r\n\r\n // Store the currently highlighted point as the previous \r\n // highlighted point\r\n prevHilitePoint_ = currHilitePoint_;\r\n\r\n\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Point x=\"+x+\" y=\"+y;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}",
"public abstract ArrayList<STTPoint> getWrappedData();",
"public abstract int[] getCoords();",
"public Short2DPoint(short x, short y) {\n this.x = x;\n this.y = y;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"(%d, %d)\", x, y);\n\t}"
] | [
"0.6393003",
"0.6036836",
"0.592148",
"0.5650995",
"0.5593211",
"0.55713373",
"0.5561947",
"0.5518392",
"0.5517831",
"0.55050576",
"0.5495884",
"0.5485288",
"0.5445124",
"0.54425013",
"0.53804374",
"0.5374413",
"0.5333265",
"0.53056794",
"0.529893",
"0.5291384",
"0.52797776",
"0.52670145",
"0.5264567",
"0.5253708",
"0.52528125",
"0.5229203",
"0.52252555",
"0.5209838",
"0.51859915",
"0.51830745",
"0.517538",
"0.5159617",
"0.5157781",
"0.5152515",
"0.5151325",
"0.5115977",
"0.51132804",
"0.5109603",
"0.5109597",
"0.5095521",
"0.50938624",
"0.5090018",
"0.5089182",
"0.50744855",
"0.507358",
"0.5073256",
"0.5055058",
"0.50523394",
"0.504438",
"0.5033699",
"0.5026623",
"0.50113004",
"0.5011286",
"0.50107646",
"0.50092787",
"0.5001098",
"0.4996036",
"0.4995466",
"0.4991422",
"0.49890956",
"0.49853802",
"0.4977397",
"0.49706605",
"0.49677604",
"0.496139",
"0.495642",
"0.49556935",
"0.49502683",
"0.49473646",
"0.4945554",
"0.49451387",
"0.49359384",
"0.49311346",
"0.49252704",
"0.49156773",
"0.49134496",
"0.49122122",
"0.490871",
"0.4903196",
"0.49023044",
"0.4899094",
"0.4895076",
"0.48900738",
"0.4880263",
"0.48799092",
"0.48786658",
"0.48773384",
"0.48705515",
"0.48681238",
"0.4862392",
"0.48586157",
"0.4850594",
"0.48489103",
"0.48483923",
"0.48482704",
"0.48447183",
"0.4843982",
"0.48434463",
"0.4841469",
"0.48335674"
] | 0.7067637 | 0 |
Total application or root or jvm level context | private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {
AnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();
//rootContext.register(ApplicationConfig.class);
rootContext.register(new Class[] {ApplicationConfig.class});
return rootContext;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getCurrentContext();",
"Map<String, Object> getContext();",
"public abstract ApplicationLoader.Context context();",
"public static Context getContext(){\n return appContext;\n }",
"Context getContext();",
"static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }",
"public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }",
"ApplicationContext getAppCtx();",
"public Context getContext() {\n return contextMain;\n }",
"public Context getApplicationContext();",
"public abstract Context context();",
"public String getContext() { return context; }",
"java.lang.String getContext();",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"public URI getCurrentContext();",
"Context context();",
"Context context();",
"String getApplicationContextPhyPath()\n {\n return configfile.application_context_phy_path;\n }",
"public org.apache.axis2.context.xsd.ConfigurationContext getRootContext(){\n return localRootContext;\n }",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public String getContext() {\n\t\treturn context;\n\t}",
"String getContextPath();",
"String getContextPath();",
"String getContextPath();",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"CTX_Context getContext();",
"public static String getContext(HttpServletRequest request) {\n\t\tString context = request.getParameter(CONTEXT_KEY);\n\t\tif (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {\n\t\t\tcontext = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();\n\t\t}\n\t\t// If no or invalid context, display a list of available WebApps\n\t\tif (context == null || Server.getInstance().getApplication(context) == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn context;\n\t\t}\n\t}",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }",
"public interface StandardContext extends Context\n{\n public static final String NAME_KEY = \"urn:avalon:name\";\n public static final String PARTITION_KEY = \"urn:avalon:partition\";\n public static final String WORKING_KEY = \"urn:avalon:temp\";\n public static final String HOME_KEY = \"urn:avalon:home\";\n\n /**\n * Return the name assigned to the component\n * @return the name\n */\n String getName();\n\n /**\n * Return the partition name assigned to the component\n * @return the partition name\n */\n String getPartitionName();\n\n /**\n * @return a file representing the home directory\n */\n File getHomeDirectory();\n\n /**\n * @return a file representing the temporary working directory\n */\n File getWorkingDirectory();\n\n}",
"public UserContext getUserContext();",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"public RuntimeContext getRuntimeContext() {\n return runtimeContext;\n }",
"public StaticContext getUnderlyingStaticContext() {\n return env;\n }",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"public static String getFrameworkContext() {\r\n if (frameworkContext == null) {\r\n frameworkContext = PropertiesProvider.getInstance().getProperty(\"server.context\", \"/escidoc\");\r\n if (!frameworkContext.startsWith(\"/\")) {\r\n frameworkContext = \"/\" + frameworkContext;\r\n }\r\n }\r\n return frameworkContext;\r\n }",
"public String getContextString();",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"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 }",
"@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\n */\r\n int getMin( int min );\r\n \r\n /**\r\n * Return maximum thread level.\r\n *\r\n * @param max the default maximum value\r\n * @return the maximum thread level\r\n */\r\n int getMax( int max );\r\n \r\n /**\r\n * Return the deamon flag.\r\n *\r\n * @param flag true if a damon thread \r\n * @return the deamon thread policy\r\n */\r\n boolean getDaemon( boolean flag );\r\n \r\n /**\r\n * Get the thread pool name.\r\n *\r\n * @param name the pool name\r\n * @return the name\r\n */\r\n String getName( String name );\r\n \r\n /**\r\n * Get the thread pool priority.\r\n *\r\n * @param priority the thread pool priority\r\n * @return the priority\r\n */\r\n int getPriority( int priority );\r\n \r\n /**\r\n * Get the maximum idle time.\r\n *\r\n * @param idle the default maximum idle time\r\n * @return the maximum idle time in milliseconds\r\n */\r\n int getIdle( int idle );\r\n \r\n}",
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}",
"RenderingContext getContext();",
"public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }",
"public cl_context getContext() {\r\n return context;\r\n }",
"@Override\n public VelocityContext getContextBase() {\n VelocityContext context = new VelocityContext();\n\n if (null != testPlan) {\n context.put(\"testPlan\", testPlan);\n context.put(\"util\", TS.util());\n\n context = getContext(context);\n }\n\n return context;\n }",
"protected RuntimeContext getRuntimeContext() {\r\n return parentAction.getRuntimeContext();\r\n }",
"public final Node getRootContext() {\n return rootContext;\n }",
"@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 abstract IContext getUnresolvedContext(IContext totalContext);",
"private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"IServiceContext getRoot();",
"protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}",
"public static Context getApplicationContext() { return mApplicationContext; }",
"public static Object getRoot(Map context) {\n return context.get(OgnlContext.ROOT_CONTEXT_KEY);\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"boolean inStaticContext();",
"public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }",
"private Context genereateContext() {\n Context newContext = new Context();\n String path = \"\"; // NOI18N\n newContext.setAttributeValue(ATTR_PATH, path);\n\n // if tomcat 5.0.x generate a logger\n if (tomcatVersion == TomcatVersion.TOMCAT_50) {\n // generate default logger\n newContext.setLogger(true);\n newContext.setLoggerClassName(\"org.apache.catalina.logger.FileLogger\"); // NOI18N\n newContext.setLoggerPrefix(computeLoggerPrefix(path));\n newContext.setLoggerSuffix(\".log\"); // NOI18N\n newContext.setLoggerTimestamp(\"true\"); // NOI18N\n } else if (tomcatVersion == TomcatVersion.TOMCAT_55\n || tomcatVersion == TomcatVersion.TOMCAT_60\n || tomcatVersion == TomcatVersion.TOMCAT_70){\n // tomcat 5.5, 6.0 and 7.0\n newContext.setAntiJARLocking(\"true\"); // NOI18N\n }\n return newContext;\n }",
"public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }",
"public static String getTestdataContext() {\r\n if (testdataContext == null) {\r\n testdataContext = PropertiesProvider.getInstance().getProperty(\"testdata.context\", \"/testdata\");\r\n }\r\n return testdataContext;\r\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public static String getSrwContext() {\r\n if (srwContext == null) {\r\n srwContext = PropertiesProvider.getInstance().getProperty(\"srw.context\", \"/srw\");\r\n }\r\n return srwContext;\r\n }",
"protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n // This should come from the deployment unit\n processContextConfig(context.getConfigFile(), true);\n }",
"@Override\n\t\tpublic String getContextPath() {\n\t\t\treturn null;\n\t\t}",
"public final Object getContextInfo() {\n return this.info;\n }",
"public Handle<GameAppContext> getParentContext();",
"public Context getContext() {\n return this.mService.mContext;\n }",
"String getEnvironment();",
"com.google.protobuf.ByteString getContext();",
"public static String getContainerKey() {\r\n\t\treturn ContainerRegistryBuilder.APPLICATION_CONTEXT_ATTRIBUTE_NAME;\r\n\t}",
"com.google.protobuf.ByteString\n getContextBytes();",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public boolean supportsSeparateContextFiles();",
"@Override\n\tpublic int catalyst() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void contextInitialized(ServletContextEvent env) {\n\t\t String path=env.getServletContext().getContextPath();\r\n\t System.out.println(path+\"项目启动了\");\r\n\t int n=dao.selectNum();\r\n\t env.getServletContext().setAttribute(\"num\", n);\r\n\t}",
"String getContextPath() {\n return contextPath;\n }",
"String getApplicationContextPath();",
"static public RenderingContext getCurrentInstance()\r\n {\r\n return _CURRENT_CONTEXT.get();\r\n }",
"@Override\n\tpublic String getContextPath() {\n\t\treturn contextPath;\n\t}",
"String getContextId();",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public interface Application {\n /**\n * Initializes resources used by the Application.\n *\n * @param config the application's configuration object\n */\n public void init(ApplicationConfig config) throws ServletException;\n \n /**\n * Called by the TeaServlet when the application is no longer needed.\n */\n public void destroy();\n\n /**\n * Creates a context, which defines functions that are callable by\n * templates. Any public method in the context is a callable function,\n * except methods defined in Object. A context may receive a request and\n * response, but it doesn't need to use any of them. They are provided only\n * in the event that a function needs access to these objects.\n * <p>\n * Unless the getContextType method returns null, the createContext method\n * is called once for every request to the TeaServlet, so context creation\n * should have a fairly quick initialization. One way of accomplishing this\n * is to return the same context instance each time. The drawback to this\n * technique is that functions will not be able to access the current\n * request and response.\n * <p>\n * The recommended technique is to construct a new context that simply\n * references this Application and any of the passed in parameters. This\n * way, the Application contains all the resources and \"business logic\",\n * and the context just provides templates access to it.\n *\n * @param request the client's HTTP request\n * @param response the client's HTTP response\n * @return an object context for the templates\n */\n public Object createContext(ApplicationRequest request,\n ApplicationResponse response);\n\n /**\n * The class of the object that the createContext method will return, which\n * does not need to implement any special interface or extend any special\n * class. Returning null indicates that this Application defines no\n * context, and createContext will never be called.\n *\n * @return the class that the createContext method will return\n */\n public Class getContextType();\n}",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public interface SystemContext {\n\n public Bukkit getBukkit();\n\n public DatabaseManager getDatabaseManager();\n}",
"public Context getContext() {\n return context;\n }",
"public interface SipContext extends Context {\n\n\tpublic static final String APPLICATION_SIP_XML = \"WEB-INF/sip.xml\";\n\t\n\tpublic static final String LOAD_BALANCER = \"org.mobicents.servlet.sip.LoadBalancer\";\t\n\t\n\tString getApplicationName();\n\tString getApplicationNameHashed();\n\n\tboolean hasDistributableManager();\n\t\n\tvoid setApplicationName(String applicationName);\n\n\tString getDescription();\n\t\n\tvoid setDescription(String description);\n\t\n\tString getLargeIcon();\n\n\tvoid setLargeIcon(String largeIcon);\n\n\tSipListenersHolder getListeners();\n\n\tvoid setListeners(SipListenersHolder listeners);\n\n\tboolean isMainServlet();\n\t\n\tString getMainServlet();\n\n\tvoid setMainServlet(String mainServlet);\n\t\n\tvoid setServletHandler(String servletHandler);\n\tString getServletHandler();\n\n\tint getProxyTimeout();\n\t\n\tvoid setProxyTimeout(int proxyTimeout);\n\t\n\tint getSipApplicationSessionTimeout();\n\t\n\tvoid setSipApplicationSessionTimeout(int proxyTimeout);\n\n\tvoid addConstraint(org.apache.catalina.deploy.SecurityConstraint securityConstraint);\n\t\n\tvoid removeConstraint(org.apache.catalina.deploy.SecurityConstraint securityConstraint);\n\t\n\tString getSmallIcon();\n\n\tvoid setSmallIcon(String smallIcon);\n\n\tvoid addSipApplicationListener(String listener);\n\t\n\tvoid removeSipApplicationListener(String listener);\n\t\n\tString[] findSipApplicationListeners();\n\t\n\tMethod getSipApplicationKeyMethod();\n\t\n\tvoid setSipApplicationKeyMethod(Method sipApplicationKeyMethod);\n\t\n\tvoid setSipLoginConfig(SipLoginConfig config);\n\t\n\tSipLoginConfig getSipLoginConfig();\n\t\n\tvoid addSipServletMapping(SipServletMapping sipServletMapping);\n\t\n\tvoid removeSipServletMapping(SipServletMapping sipServletMapping);\n\t\n\tList<SipServletMapping> findSipServletMappings();\n\t\n\tSipServletMapping findSipServletMappings(SipServletRequest sipServletRequest);\n\t\n\tMap<String, Container> getChildrenMap();\n\tpublic Container findChildrenByName(String name);\t\n\tContainer findChildrenByClassName(String className);\n\t\n\tvoid addChild(SipServletImpl child);\n\t\n\tvoid removeChild(SipServletImpl child);\n\t\n\tSipManager getSipManager();\n\t\n\tSipApplicationDispatcher getSipApplicationDispatcher();\n\n//\tAnnotationProcessor getAnnotationProcessor();\n\t\n//\tInstanceManager getInstanceManager();\n\n\tSipInstanceManager getSipInstanceManager();\n\t\n\tString getEngineName();\n\n\tString getBasePath();\n\t\n\tboolean notifySipContextListeners(SipContextEvent event);\n\t\n//\tvoid enterSipApp(SipServletRequestImpl request, SipServletResponseImpl response);\n//\tvoid exitSipApp(SipServletRequestImpl request, SipServletResponseImpl response);\n\t\n\tvoid enterSipApp(MobicentsSipApplicationSession sipApplicationSession, MobicentsSipSession sipSession);\n\tvoid exitSipApp(MobicentsSipApplicationSession sipApplicationSession, MobicentsSipSession sipSession);\n\t\n//\tvoid enterSipAppHa(MobicentsSipApplicationSession sipApplicationSession, boolean startCacheActivity, boolean bindSessions);\n\tvoid enterSipAppHa(boolean startCacheActivity);\n//\tvoid enterSipAppHa(SipServletRequestImpl request, SipServletResponseImpl response, boolean startCacheActivity, boolean bindSessions);\n\tvoid exitSipAppHa(SipServletRequestImpl request, SipServletResponseImpl response);\n\t\n\tSipFactoryFacade getSipFactoryFacade();\n\t\n\tSipSessionsUtilImpl getSipSessionsUtil();\n\t\n\tTimerService getTimerService();\t\n\tProxyTimerService getProxyTimerService();\n\tSipApplicationSessionTimerService getSipApplicationSessionTimerService();\n\n\tvoid setConcurrencyControlMode(ConcurrencyControlMode mode);\n\tConcurrencyControlMode getConcurrencyControlMode();\n\n\tvoid setSipRubyController(SipRubyController rubyController);\n\tSipRubyController getSipRubyController();\n}"
] | [
"0.6951382",
"0.65442526",
"0.6481428",
"0.64752465",
"0.641292",
"0.6387319",
"0.63658655",
"0.6360548",
"0.6314254",
"0.62616223",
"0.62307817",
"0.6210119",
"0.6207331",
"0.6198087",
"0.61224407",
"0.61043245",
"0.61043245",
"0.60857195",
"0.6057339",
"0.60325485",
"0.6024856",
"0.60216475",
"0.60216475",
"0.60216475",
"0.6007883",
"0.59749293",
"0.5954594",
"0.5951475",
"0.5951475",
"0.5951475",
"0.59195733",
"0.5895836",
"0.5859956",
"0.58583695",
"0.58562505",
"0.5855843",
"0.5830074",
"0.58272934",
"0.58197796",
"0.5813123",
"0.5813123",
"0.5805766",
"0.5795378",
"0.57935476",
"0.5783395",
"0.57816905",
"0.5746012",
"0.5723707",
"0.57127607",
"0.56960976",
"0.56916195",
"0.56864554",
"0.5673387",
"0.56690586",
"0.5667272",
"0.5657765",
"0.56422526",
"0.56280905",
"0.56201285",
"0.5607197",
"0.55993724",
"0.55796045",
"0.5575998",
"0.5573247",
"0.55408823",
"0.55382085",
"0.55354697",
"0.5524096",
"0.5503846",
"0.55032635",
"0.54928184",
"0.5491757",
"0.54879916",
"0.5486974",
"0.54855686",
"0.5480068",
"0.5476257",
"0.5474061",
"0.546363",
"0.5459974",
"0.54548746",
"0.5454683",
"0.5454099",
"0.5450009",
"0.5446723",
"0.5440682",
"0.54235595",
"0.5418697",
"0.541575",
"0.54104805",
"0.54064333",
"0.54064333",
"0.5405796",
"0.5405796",
"0.5405796",
"0.5405796",
"0.53895617",
"0.53869337",
"0.5379807",
"0.53788406",
"0.53671443"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<State> getState(String id) {
Session currentSession = sessionFactory.getCurrentSession();
// create a query ... sort by last name
Query<State> theQuery =
currentSession.createQuery("from State order where countryid=:c",
State.class);
theQuery.setParameter("c", id);
// execute query and get result list
List<State> customers = theQuery.getResultList();
// return the results
return customers;
} | {
"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 |
The engine to execute scripts | public final String getScriptEngine() {
return properties.get(SCRIPT_ENGINE_PROPERTY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}",
"public abstract void runScript() throws Exception;",
"@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}",
"private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }",
"public interface Engine {\n\n String run();\n\n}",
"public abstract void execute(GameEngine pGameEngine);",
"public void exec();",
"public DefaultScriptExecutor(String language) {\n\t\tScriptEngineManager manager = new ScriptEngineManager();\n\t\tif (log.isDebugEnabled()){\n\t\t\tfor (ScriptEngineFactory factory: manager.getEngineFactories()) {\n\t\t\t\tlog.debug(factory.getNames());\n\t\t\t}\n\t\t}\n\t\t\n\t\tscriptEngine = manager.getEngineByName(language);\n\t\tAssert.notNull(scriptEngine,\"JVM cannot create a script engine for name [\" + language + \"]\"); \n\t\t\n\t}",
"abstract void exec();",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public interface Scripting {\n\n String NAME = \"cuba_Scripting\";\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param policies policies for script execution {@link ScriptExecutionPolicy}\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding, ScriptExecutionPolicy... policies);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param context map of parameters to pass to the expression, same as Binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Map<String, Object> context);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Binding binding);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param context map of parameters to pass to the script, same as Binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Map<String, Object> context);\n\n /**\n * Returns the dynamic classloader.\n * <p>Actually it is the GroovyClassLoader which parent is {@link com.haulmont.cuba.core.sys.javacl.JavaClassLoader}.\n * For explanation on class loading sequence see {@link #loadClass(String)}\n * </p>\n * @return dynamic classloader\n */\n ClassLoader getClassLoader();\n\n /**\n * Loads class by name using the following sequence:\n * <ul>\n * <li>Search for a Groovy source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a Java source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a class in classpath</li>\n * </ul>\n * It is possible to change sources in <em>conf</em> directory at run time, affecting the returning class,\n * with the following restrictions:\n * <ul>\n * <li>You can not change source from Groovy to Java</li>\n * <li>If you had Groovy source and than removed it, you'll still get the class compiled from those sources\n * and not from classpath</li>\n * </ul>\n * You can bypass these restrictions if you invoke {@link #clearCache()} method, e.g. through JMX interface\n * CachingFacadeMBean.\n * @param name fully qualified class name\n * @return class or null if not found\n */\n @Nullable\n Class<?> loadClass(String name);\n\n /**\n * Loads a class by name using the sequence described in {@link #loadClass(String)}.\n *\n * @param name fully qualified class name\n * @return class\n * @throws IllegalStateException if the class is not found\n */\n Class<?> loadClassNN(String name);\n\n /**\n * Remove compiled class from cache\n * @return true if class removed from cache\n */\n boolean removeClass(String name);\n\n /**\n * Clears compiled classes cache\n */\n void clearCache();\n\n}",
"public Object executeScript(String command);",
"public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void engine() {\n\t\tSystem.out.println(\"Follow engine guidelines\");\n\t}",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public void Execute() {\n\n }",
"public void setEngine(Engine engine);",
"public void execute() {\n\t\t\n\t}",
"public void setEngine(String engine) {\n this.engine = engine;\n }",
"public void execute() {\r\n\t\r\n\t}",
"void start() throws EngineException;",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute(){\n\t\t\n\t}",
"Script createScript();",
"public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }",
"@Override\n public Data run(Data data) throws EngineException { \n Data res;\n if (getLoop() > 0){\n res = loop(data);\n }\n else {\n res = exec(data);\n }\n return res;\n }",
"@Override\n public void initEngine() {\n \n }",
"@Override\n public void initEngine() {\n \n }",
"public boolean execute(Engine engine) {\r\n\t\t\t\r\n\t\treturn engine.executeEnd();\r\n\t}",
"protected void execute() {\n\t\t\n\t}",
"public void execute() {\n\n\t}",
"public void run() {\n if (!script.compile()) {\n Program.stop(\"ERROR: There was an error while compiling your script.\"\n + \"\\nPlease check your syntax!\", false);\n return;\n }\n commandCounter = script.input.split(\";\").length - 1;\n if (!writeMemory()) {\n Program.stop(\"ERROR: There was a fatal error while \"\n + \"writing the script into the memory!\", false);\n return;\n }\n try {\n startProcessor();\n } catch (NumberFormatException n) {\n Program.stop(\"ERROR: There was a runtime error while executing the script!\", false);\n }\n Program.stop(\"\", true);\n }",
"public void setEngine(Engine engine) {\n this.engine = engine;\n }",
"protected void execute() {}",
"public abstract void engineWork() throws Exception;",
"@Override\n\tpublic void execute(Engine engine) {\n\t\tengine.executeHelp();\n\t}",
"R execute();",
"@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }",
"@Override\n public void Execute() {\n\n }",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public abstract void execute();",
"public abstract void execute();",
"public abstract void execute();",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"@Test\r\n public void testCodeExamples() throws SecurityException, NoSuchMethodException, ScriptException\r\n {\n \t// http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/\r\n \t\r\n \t// Code Example 1: Create a ScriptEngine object using the engine name.\r\n \t//\r\n \tScriptEngineManager mgr = new ScriptEngineManager();\r\n \tScriptEngine jsEngine = mgr.getEngineByName(\"jav8\");\r\n \t\r\n \tjsEngine.put(\"print\", this.getClass().getMethod(\"print\", String.class));\r\n \tjsEngine.put(\"println\", this.getClass().getMethod(\"println\", String.class));\r\n \r\n \tjsEngine.eval(\"print('Hello, world!')\");\r\n \t\r\n \t// Code Example 2: You can retrieve a list of all engines installed to your Java platform.\r\n \t//\r\n \tList<ScriptEngineFactory> factories = mgr.getEngineFactories();\r\n \t\r\n \tassertFalse(factories.isEmpty());\r\n \t\r\n \t// Code Example 3: A ScriptEngineFactory object provides detailed information about the engine it provides.\r\n \t//\r\n \tfor (ScriptEngineFactory factory: factories) {\r\n \t System.out.println(\"ScriptEngineFactory Info\");\r\n \t \r\n \t String engName = factory.getEngineName();\r\n \t String engVersion = factory.getEngineVersion();\r\n \t String langName = factory.getLanguageName();\r\n \t String langVersion = factory.getLanguageVersion();\r\n \t System.out.printf(\"\\tScript Engine: %s (%s)\\n\", engName, engVersion);\r\n \t \r\n \t List<String> engNames = factory.getNames();\r\n \t for(String name: engNames) {\r\n \t System.out.printf(\"\\tEngine Alias: %s\\n\", name);\r\n \t }\r\n \t System.out.printf(\"\\tLanguage: %s (%s)\\n\", langName, langVersion);\r\n \t}\r\n \t \t\r\n \t// Code Example 6: The eval method can read script files.\r\n \t//\r\n \tInputStream is = this.getClass().getResourceAsStream(\"/scripts/F1.js\");\r\n \t/*\r\n \ttry {\r\n \t Reader reader = new InputStreamReader(is);\r\n \t engine.eval(reader);\r\n \t} catch (ScriptException ex) {\r\n \t ex.printStackTrace();\r\n \t}\r\n \t*/\r\n \t// Code Example 7: You can use the Invocable interface to call specific methods in a script.\r\n \t//\r\n \tjsEngine.eval(\"function sayHello() {\" +\r\n \t \" println('Hello, world!');\" +\r\n \t \"}\");\r\n \tInvocable invocableEngine = (Invocable) jsEngine;\r\n \tinvocableEngine.invokeFunction(\"sayHello\");\r\n \t\r\n \t// Code Example 8: Java programming language code adds names to a list.\r\n \t//\r\n \tList<String> namesList = new ArrayList<String>();\r\n \t\r\n \tnamesList.add(\"Jill\");\r\n \tnamesList.add(\"Bob\");\r\n \tnamesList.add(\"Laureen\");\r\n \tnamesList.add(\"Ed\");\r\n \t\r\n \t// Code Example 9: Script code can both access and modify native Java objects.\r\n \t//\r\n \tjsEngine.put(\"namesListKey\", namesList);\r\n \t \r\n \tSystem.out.println(\"Executing in script environment...\");\r\n \t\r\n \tjsEngine.eval(\"var x;\" +\r\n \t \"var names = namesListKey.toArray();\" +\r\n \t \"for(x in names) {\" +\r\n \t //\" println(names[x]);\" +\r\n \t \"}\" +\r\n \t \"namesListKey.add('Dana');\");\r\n \t\r\n \tSystem.out.println(\"Executing in Java environment...\");\r\n \t\r\n \tfor (String name: namesList) {\r\n \t System.out.println(name);\r\n \t} \r\n \t\r\n \t// Code Example 10: Applications can pass values to script using the Invocable interface.\r\n \t// \t \t\r\n \t jsEngine.eval(\"function printNames1(namesList) {\" +\r\n \t \" var x;\" +\r\n \t \" var names = namesList.toArray();\" +\r\n \t \" for(x in names) {\" +\r\n \t \" println(names[x]);\" +\r\n \t \" }\" +\r\n \t \"}\" +\r\n \r\n \t \"function addName(namesList, name) {\" +\r\n \t \" namesList.add(name);\" +\r\n \t \"}\");\r\n \t invocableEngine.invokeFunction(\"printNames1\", namesList);\r\n \t invocableEngine.invokeFunction(\"addName\", namesList, \"Dana\");\r\n }",
"protected void execute() {\n\n\t}",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"void executeScript(Readable script) throws IOException;",
"public String getEngine() {\n return this.engine;\n }",
"protected TKExecutable(Engine pEngine) {\n\t\tsuper(pEngine);\n\t}",
"protected abstract void execute();",
"public void execute(Engine controlador) throws StackException, DivisionByZero, ArrayException {\n\t\tcontrolador.ejecutaRUN();\n\t}",
"public T execute() {\n return GraalCompiler.compile(this);\n }",
"public interface EngineInterface<T> {\n\tpublic T run (Mower mower);\n}",
"void execute(Executable executable);",
"public void execute() {\n }",
"protected void execute() {\n\t}",
"public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}",
"protected void execute() {\n \t\n }",
"protected void execute() {\n \t\n }",
"public abstract String initExecute() throws Exception;",
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"Interpreter getInterpreter();",
"public interface IScript {\n\n}",
"abstract protected void execute();",
"public Engine getEngine() {\n return engine;\n }",
"protected void execute() {\r\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute()\n\t{\n\t}",
"@SuppressWarnings(\"unchecked\")\n @CompileStatic\n public <T> T execute(String scriptName) throws NyException {\n return (T) execute(scriptName, EMPTY_MAP);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"ScriptEvaluator createScriptEvaluator();",
"@Override\n public void execute(String[] args) {\n\n }",
"<T> T runGroovyScript(String name, Map<String, Object> context);",
"public RepositorioPalestraScript(Context ctx) {\n\t\t// Criar utilizando um script SQL\n\t\tdbHelper = new SQLiteHelper(ctx, RepositorioPalestraScript.NOME_BANCO, RepositorioPalestraScript.VERSAO_BANCO,\n\t\t\t\tRepositorioPalestraScript.SCRIPT_DATABASE_CREATE, RepositorioPalestraScript.SCRIPT_DATABASE_DELETE);\n\n\t\t// abre o banco no modo escrita para poder alterar tamb�m\n\t\tdb = dbHelper.getWritableDatabase();\n\t}",
"public interface Engine {\n public void fire();\n}"
] | [
"0.69706094",
"0.6700225",
"0.66125095",
"0.65568787",
"0.65334004",
"0.6447555",
"0.6407615",
"0.6350872",
"0.62715036",
"0.62430227",
"0.62242156",
"0.619106",
"0.61752295",
"0.61421937",
"0.60729176",
"0.604275",
"0.60153294",
"0.6001313",
"0.5977819",
"0.59716266",
"0.5964663",
"0.5953191",
"0.59457606",
"0.59457606",
"0.59457606",
"0.59457606",
"0.59263945",
"0.59088945",
"0.5903361",
"0.5882684",
"0.58810437",
"0.58810437",
"0.5874991",
"0.58717054",
"0.5863275",
"0.58576167",
"0.5803547",
"0.5796181",
"0.57866484",
"0.5784074",
"0.57838523",
"0.57761794",
"0.57719535",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.57623696",
"0.57623696",
"0.57623696",
"0.57476014",
"0.57476014",
"0.57476014",
"0.5746671",
"0.57401973",
"0.5735196",
"0.57311237",
"0.5729178",
"0.5727275",
"0.568933",
"0.5685426",
"0.56753945",
"0.567234",
"0.5622901",
"0.56124043",
"0.56035507",
"0.5598751",
"0.5584439",
"0.55796045",
"0.55796045",
"0.55721366",
"0.5567847",
"0.55671453",
"0.556173",
"0.5553498",
"0.5550749",
"0.55461204",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.55089927",
"0.54944927",
"0.5490416",
"0.5488466",
"0.5476866",
"0.54648376",
"0.5448428",
"0.5434336"
] | 0.5910657 | 27 |
The engine to execute scripts | public final InvokeScriptedProcessor setScriptEngine(final String scriptEngine) {
properties.put(SCRIPT_ENGINE_PROPERTY, scriptEngine);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}",
"public abstract void runScript() throws Exception;",
"@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}",
"private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }",
"public interface Engine {\n\n String run();\n\n}",
"public abstract void execute(GameEngine pGameEngine);",
"public void exec();",
"public DefaultScriptExecutor(String language) {\n\t\tScriptEngineManager manager = new ScriptEngineManager();\n\t\tif (log.isDebugEnabled()){\n\t\t\tfor (ScriptEngineFactory factory: manager.getEngineFactories()) {\n\t\t\t\tlog.debug(factory.getNames());\n\t\t\t}\n\t\t}\n\t\t\n\t\tscriptEngine = manager.getEngineByName(language);\n\t\tAssert.notNull(scriptEngine,\"JVM cannot create a script engine for name [\" + language + \"]\"); \n\t\t\n\t}",
"abstract void exec();",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public interface Scripting {\n\n String NAME = \"cuba_Scripting\";\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param policies policies for script execution {@link ScriptExecutionPolicy}\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding, ScriptExecutionPolicy... policies);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param context map of parameters to pass to the expression, same as Binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Map<String, Object> context);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Binding binding);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param context map of parameters to pass to the script, same as Binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Map<String, Object> context);\n\n /**\n * Returns the dynamic classloader.\n * <p>Actually it is the GroovyClassLoader which parent is {@link com.haulmont.cuba.core.sys.javacl.JavaClassLoader}.\n * For explanation on class loading sequence see {@link #loadClass(String)}\n * </p>\n * @return dynamic classloader\n */\n ClassLoader getClassLoader();\n\n /**\n * Loads class by name using the following sequence:\n * <ul>\n * <li>Search for a Groovy source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a Java source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a class in classpath</li>\n * </ul>\n * It is possible to change sources in <em>conf</em> directory at run time, affecting the returning class,\n * with the following restrictions:\n * <ul>\n * <li>You can not change source from Groovy to Java</li>\n * <li>If you had Groovy source and than removed it, you'll still get the class compiled from those sources\n * and not from classpath</li>\n * </ul>\n * You can bypass these restrictions if you invoke {@link #clearCache()} method, e.g. through JMX interface\n * CachingFacadeMBean.\n * @param name fully qualified class name\n * @return class or null if not found\n */\n @Nullable\n Class<?> loadClass(String name);\n\n /**\n * Loads a class by name using the sequence described in {@link #loadClass(String)}.\n *\n * @param name fully qualified class name\n * @return class\n * @throws IllegalStateException if the class is not found\n */\n Class<?> loadClassNN(String name);\n\n /**\n * Remove compiled class from cache\n * @return true if class removed from cache\n */\n boolean removeClass(String name);\n\n /**\n * Clears compiled classes cache\n */\n void clearCache();\n\n}",
"public Object executeScript(String command);",
"public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void engine() {\n\t\tSystem.out.println(\"Follow engine guidelines\");\n\t}",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public void Execute() {\n\n }",
"public void setEngine(Engine engine);",
"public void execute() {\n\t\t\n\t}",
"public void setEngine(String engine) {\n this.engine = engine;\n }",
"public void execute() {\r\n\t\r\n\t}",
"void start() throws EngineException;",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute(){\n\t\t\n\t}",
"public final String getScriptEngine() {\n return properties.get(SCRIPT_ENGINE_PROPERTY);\n }",
"Script createScript();",
"public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }",
"@Override\n public Data run(Data data) throws EngineException { \n Data res;\n if (getLoop() > 0){\n res = loop(data);\n }\n else {\n res = exec(data);\n }\n return res;\n }",
"@Override\n public void initEngine() {\n \n }",
"@Override\n public void initEngine() {\n \n }",
"public boolean execute(Engine engine) {\r\n\t\t\t\r\n\t\treturn engine.executeEnd();\r\n\t}",
"protected void execute() {\n\t\t\n\t}",
"public void execute() {\n\n\t}",
"public void run() {\n if (!script.compile()) {\n Program.stop(\"ERROR: There was an error while compiling your script.\"\n + \"\\nPlease check your syntax!\", false);\n return;\n }\n commandCounter = script.input.split(\";\").length - 1;\n if (!writeMemory()) {\n Program.stop(\"ERROR: There was a fatal error while \"\n + \"writing the script into the memory!\", false);\n return;\n }\n try {\n startProcessor();\n } catch (NumberFormatException n) {\n Program.stop(\"ERROR: There was a runtime error while executing the script!\", false);\n }\n Program.stop(\"\", true);\n }",
"public void setEngine(Engine engine) {\n this.engine = engine;\n }",
"protected void execute() {}",
"public abstract void engineWork() throws Exception;",
"@Override\n\tpublic void execute(Engine engine) {\n\t\tengine.executeHelp();\n\t}",
"R execute();",
"@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }",
"@Override\n public void Execute() {\n\n }",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public abstract void execute();",
"public abstract void execute();",
"public abstract void execute();",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"@Test\r\n public void testCodeExamples() throws SecurityException, NoSuchMethodException, ScriptException\r\n {\n \t// http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/\r\n \t\r\n \t// Code Example 1: Create a ScriptEngine object using the engine name.\r\n \t//\r\n \tScriptEngineManager mgr = new ScriptEngineManager();\r\n \tScriptEngine jsEngine = mgr.getEngineByName(\"jav8\");\r\n \t\r\n \tjsEngine.put(\"print\", this.getClass().getMethod(\"print\", String.class));\r\n \tjsEngine.put(\"println\", this.getClass().getMethod(\"println\", String.class));\r\n \r\n \tjsEngine.eval(\"print('Hello, world!')\");\r\n \t\r\n \t// Code Example 2: You can retrieve a list of all engines installed to your Java platform.\r\n \t//\r\n \tList<ScriptEngineFactory> factories = mgr.getEngineFactories();\r\n \t\r\n \tassertFalse(factories.isEmpty());\r\n \t\r\n \t// Code Example 3: A ScriptEngineFactory object provides detailed information about the engine it provides.\r\n \t//\r\n \tfor (ScriptEngineFactory factory: factories) {\r\n \t System.out.println(\"ScriptEngineFactory Info\");\r\n \t \r\n \t String engName = factory.getEngineName();\r\n \t String engVersion = factory.getEngineVersion();\r\n \t String langName = factory.getLanguageName();\r\n \t String langVersion = factory.getLanguageVersion();\r\n \t System.out.printf(\"\\tScript Engine: %s (%s)\\n\", engName, engVersion);\r\n \t \r\n \t List<String> engNames = factory.getNames();\r\n \t for(String name: engNames) {\r\n \t System.out.printf(\"\\tEngine Alias: %s\\n\", name);\r\n \t }\r\n \t System.out.printf(\"\\tLanguage: %s (%s)\\n\", langName, langVersion);\r\n \t}\r\n \t \t\r\n \t// Code Example 6: The eval method can read script files.\r\n \t//\r\n \tInputStream is = this.getClass().getResourceAsStream(\"/scripts/F1.js\");\r\n \t/*\r\n \ttry {\r\n \t Reader reader = new InputStreamReader(is);\r\n \t engine.eval(reader);\r\n \t} catch (ScriptException ex) {\r\n \t ex.printStackTrace();\r\n \t}\r\n \t*/\r\n \t// Code Example 7: You can use the Invocable interface to call specific methods in a script.\r\n \t//\r\n \tjsEngine.eval(\"function sayHello() {\" +\r\n \t \" println('Hello, world!');\" +\r\n \t \"}\");\r\n \tInvocable invocableEngine = (Invocable) jsEngine;\r\n \tinvocableEngine.invokeFunction(\"sayHello\");\r\n \t\r\n \t// Code Example 8: Java programming language code adds names to a list.\r\n \t//\r\n \tList<String> namesList = new ArrayList<String>();\r\n \t\r\n \tnamesList.add(\"Jill\");\r\n \tnamesList.add(\"Bob\");\r\n \tnamesList.add(\"Laureen\");\r\n \tnamesList.add(\"Ed\");\r\n \t\r\n \t// Code Example 9: Script code can both access and modify native Java objects.\r\n \t//\r\n \tjsEngine.put(\"namesListKey\", namesList);\r\n \t \r\n \tSystem.out.println(\"Executing in script environment...\");\r\n \t\r\n \tjsEngine.eval(\"var x;\" +\r\n \t \"var names = namesListKey.toArray();\" +\r\n \t \"for(x in names) {\" +\r\n \t //\" println(names[x]);\" +\r\n \t \"}\" +\r\n \t \"namesListKey.add('Dana');\");\r\n \t\r\n \tSystem.out.println(\"Executing in Java environment...\");\r\n \t\r\n \tfor (String name: namesList) {\r\n \t System.out.println(name);\r\n \t} \r\n \t\r\n \t// Code Example 10: Applications can pass values to script using the Invocable interface.\r\n \t// \t \t\r\n \t jsEngine.eval(\"function printNames1(namesList) {\" +\r\n \t \" var x;\" +\r\n \t \" var names = namesList.toArray();\" +\r\n \t \" for(x in names) {\" +\r\n \t \" println(names[x]);\" +\r\n \t \" }\" +\r\n \t \"}\" +\r\n \r\n \t \"function addName(namesList, name) {\" +\r\n \t \" namesList.add(name);\" +\r\n \t \"}\");\r\n \t invocableEngine.invokeFunction(\"printNames1\", namesList);\r\n \t invocableEngine.invokeFunction(\"addName\", namesList, \"Dana\");\r\n }",
"protected void execute() {\n\n\t}",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"void executeScript(Readable script) throws IOException;",
"public String getEngine() {\n return this.engine;\n }",
"protected TKExecutable(Engine pEngine) {\n\t\tsuper(pEngine);\n\t}",
"protected abstract void execute();",
"public void execute(Engine controlador) throws StackException, DivisionByZero, ArrayException {\n\t\tcontrolador.ejecutaRUN();\n\t}",
"public T execute() {\n return GraalCompiler.compile(this);\n }",
"public interface EngineInterface<T> {\n\tpublic T run (Mower mower);\n}",
"void execute(Executable executable);",
"public void execute() {\n }",
"protected void execute() {\n\t}",
"public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}",
"protected void execute() {\n \t\n }",
"protected void execute() {\n \t\n }",
"public abstract String initExecute() throws Exception;",
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"Interpreter getInterpreter();",
"public interface IScript {\n\n}",
"abstract protected void execute();",
"public Engine getEngine() {\n return engine;\n }",
"protected void execute() {\r\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute()\n\t{\n\t}",
"@SuppressWarnings(\"unchecked\")\n @CompileStatic\n public <T> T execute(String scriptName) throws NyException {\n return (T) execute(scriptName, EMPTY_MAP);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"ScriptEvaluator createScriptEvaluator();",
"@Override\n public void execute(String[] args) {\n\n }",
"<T> T runGroovyScript(String name, Map<String, Object> context);",
"public RepositorioPalestraScript(Context ctx) {\n\t\t// Criar utilizando um script SQL\n\t\tdbHelper = new SQLiteHelper(ctx, RepositorioPalestraScript.NOME_BANCO, RepositorioPalestraScript.VERSAO_BANCO,\n\t\t\t\tRepositorioPalestraScript.SCRIPT_DATABASE_CREATE, RepositorioPalestraScript.SCRIPT_DATABASE_DELETE);\n\n\t\t// abre o banco no modo escrita para poder alterar tamb�m\n\t\tdb = dbHelper.getWritableDatabase();\n\t}",
"public interface Engine {\n public void fire();\n}"
] | [
"0.69718087",
"0.67011654",
"0.661368",
"0.6557616",
"0.6534842",
"0.6449291",
"0.64083606",
"0.6351418",
"0.6272789",
"0.624383",
"0.6224946",
"0.6191307",
"0.6175238",
"0.614327",
"0.6074573",
"0.6041964",
"0.6016883",
"0.60023165",
"0.59792906",
"0.59728926",
"0.59663254",
"0.5954835",
"0.59471196",
"0.59471196",
"0.59471196",
"0.59471196",
"0.59277713",
"0.5911064",
"0.5908739",
"0.5904852",
"0.5883802",
"0.5882625",
"0.5882625",
"0.58759505",
"0.5873507",
"0.5864792",
"0.5858887",
"0.58049095",
"0.57983637",
"0.5788227",
"0.57855254",
"0.57844883",
"0.5776964",
"0.57736516",
"0.5771308",
"0.5771308",
"0.5771308",
"0.5771308",
"0.5771308",
"0.5771308",
"0.5771308",
"0.5763871",
"0.5763871",
"0.5763871",
"0.5749164",
"0.5749164",
"0.5749164",
"0.5746389",
"0.57400256",
"0.5737003",
"0.5731896",
"0.5729548",
"0.5728626",
"0.56910884",
"0.5687246",
"0.5676463",
"0.5672729",
"0.5623943",
"0.5613525",
"0.5604956",
"0.56004906",
"0.5586282",
"0.55813634",
"0.55813634",
"0.55739",
"0.55693907",
"0.5567354",
"0.55621076",
"0.5555195",
"0.5551875",
"0.55480134",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5524037",
"0.5510745",
"0.54947567",
"0.5492081",
"0.54875076",
"0.5478327",
"0.54644936",
"0.54488075",
"0.54356664"
] | 0.0 | -1 |
The engine to execute scripts | public final InvokeScriptedProcessor removeScriptEngine() {
properties.remove(SCRIPT_ENGINE_PROPERTY);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}",
"public abstract void runScript() throws Exception;",
"@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}",
"private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }",
"public interface Engine {\n\n String run();\n\n}",
"public abstract void execute(GameEngine pGameEngine);",
"public void exec();",
"public DefaultScriptExecutor(String language) {\n\t\tScriptEngineManager manager = new ScriptEngineManager();\n\t\tif (log.isDebugEnabled()){\n\t\t\tfor (ScriptEngineFactory factory: manager.getEngineFactories()) {\n\t\t\t\tlog.debug(factory.getNames());\n\t\t\t}\n\t\t}\n\t\t\n\t\tscriptEngine = manager.getEngineByName(language);\n\t\tAssert.notNull(scriptEngine,\"JVM cannot create a script engine for name [\" + language + \"]\"); \n\t\t\n\t}",
"abstract void exec();",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public interface Scripting {\n\n String NAME = \"cuba_Scripting\";\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param policies policies for script execution {@link ScriptExecutionPolicy}\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding, ScriptExecutionPolicy... policies);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Binding binding);\n\n /**\n * Evaluates Groovy expression.\n * @param text expression text\n * @param context map of parameters to pass to the expression, same as Binding\n * @param <T> result type\n * @return result of expression\n */\n <T> T evaluateGroovy(String text, Map<String, Object> context);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param binding Groovy binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Binding binding);\n\n /**\n * Runs Groovy script.\n * The script must be located as file under <em>conf</em> directory, or as a classpath resource.\n * @param name path to the script relative to <em>conf</em> dir or to the classpath root\n * @param context map of parameters to pass to the script, same as Binding\n * @param <T> result type\n * @return result of the script execution\n */\n <T> T runGroovyScript(String name, Map<String, Object> context);\n\n /**\n * Returns the dynamic classloader.\n * <p>Actually it is the GroovyClassLoader which parent is {@link com.haulmont.cuba.core.sys.javacl.JavaClassLoader}.\n * For explanation on class loading sequence see {@link #loadClass(String)}\n * </p>\n * @return dynamic classloader\n */\n ClassLoader getClassLoader();\n\n /**\n * Loads class by name using the following sequence:\n * <ul>\n * <li>Search for a Groovy source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a Java source in the <em>conf</em> directory. If found, compile it and return</li>\n * <li>Search for a class in classpath</li>\n * </ul>\n * It is possible to change sources in <em>conf</em> directory at run time, affecting the returning class,\n * with the following restrictions:\n * <ul>\n * <li>You can not change source from Groovy to Java</li>\n * <li>If you had Groovy source and than removed it, you'll still get the class compiled from those sources\n * and not from classpath</li>\n * </ul>\n * You can bypass these restrictions if you invoke {@link #clearCache()} method, e.g. through JMX interface\n * CachingFacadeMBean.\n * @param name fully qualified class name\n * @return class or null if not found\n */\n @Nullable\n Class<?> loadClass(String name);\n\n /**\n * Loads a class by name using the sequence described in {@link #loadClass(String)}.\n *\n * @param name fully qualified class name\n * @return class\n * @throws IllegalStateException if the class is not found\n */\n Class<?> loadClassNN(String name);\n\n /**\n * Remove compiled class from cache\n * @return true if class removed from cache\n */\n boolean removeClass(String name);\n\n /**\n * Clears compiled classes cache\n */\n void clearCache();\n\n}",
"public Object executeScript(String command);",
"public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void engine() {\n\t\tSystem.out.println(\"Follow engine guidelines\");\n\t}",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public void Execute() {\n\n }",
"public void setEngine(Engine engine);",
"public void execute() {\n\t\t\n\t}",
"public void setEngine(String engine) {\n this.engine = engine;\n }",
"public void execute() {\r\n\t\r\n\t}",
"void start() throws EngineException;",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute(){\n\t\t\n\t}",
"public final String getScriptEngine() {\n return properties.get(SCRIPT_ENGINE_PROPERTY);\n }",
"Script createScript();",
"public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }",
"@Override\n public Data run(Data data) throws EngineException { \n Data res;\n if (getLoop() > 0){\n res = loop(data);\n }\n else {\n res = exec(data);\n }\n return res;\n }",
"@Override\n public void initEngine() {\n \n }",
"@Override\n public void initEngine() {\n \n }",
"public boolean execute(Engine engine) {\r\n\t\t\t\r\n\t\treturn engine.executeEnd();\r\n\t}",
"protected void execute() {\n\t\t\n\t}",
"public void execute() {\n\n\t}",
"public void run() {\n if (!script.compile()) {\n Program.stop(\"ERROR: There was an error while compiling your script.\"\n + \"\\nPlease check your syntax!\", false);\n return;\n }\n commandCounter = script.input.split(\";\").length - 1;\n if (!writeMemory()) {\n Program.stop(\"ERROR: There was a fatal error while \"\n + \"writing the script into the memory!\", false);\n return;\n }\n try {\n startProcessor();\n } catch (NumberFormatException n) {\n Program.stop(\"ERROR: There was a runtime error while executing the script!\", false);\n }\n Program.stop(\"\", true);\n }",
"public void setEngine(Engine engine) {\n this.engine = engine;\n }",
"protected void execute() {}",
"public abstract void engineWork() throws Exception;",
"@Override\n\tpublic void execute(Engine engine) {\n\t\tengine.executeHelp();\n\t}",
"R execute();",
"@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }",
"@Override\n public void Execute() {\n\n }",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public abstract void execute();",
"public abstract void execute();",
"public abstract void execute();",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"@Test\r\n public void testCodeExamples() throws SecurityException, NoSuchMethodException, ScriptException\r\n {\n \t// http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/\r\n \t\r\n \t// Code Example 1: Create a ScriptEngine object using the engine name.\r\n \t//\r\n \tScriptEngineManager mgr = new ScriptEngineManager();\r\n \tScriptEngine jsEngine = mgr.getEngineByName(\"jav8\");\r\n \t\r\n \tjsEngine.put(\"print\", this.getClass().getMethod(\"print\", String.class));\r\n \tjsEngine.put(\"println\", this.getClass().getMethod(\"println\", String.class));\r\n \r\n \tjsEngine.eval(\"print('Hello, world!')\");\r\n \t\r\n \t// Code Example 2: You can retrieve a list of all engines installed to your Java platform.\r\n \t//\r\n \tList<ScriptEngineFactory> factories = mgr.getEngineFactories();\r\n \t\r\n \tassertFalse(factories.isEmpty());\r\n \t\r\n \t// Code Example 3: A ScriptEngineFactory object provides detailed information about the engine it provides.\r\n \t//\r\n \tfor (ScriptEngineFactory factory: factories) {\r\n \t System.out.println(\"ScriptEngineFactory Info\");\r\n \t \r\n \t String engName = factory.getEngineName();\r\n \t String engVersion = factory.getEngineVersion();\r\n \t String langName = factory.getLanguageName();\r\n \t String langVersion = factory.getLanguageVersion();\r\n \t System.out.printf(\"\\tScript Engine: %s (%s)\\n\", engName, engVersion);\r\n \t \r\n \t List<String> engNames = factory.getNames();\r\n \t for(String name: engNames) {\r\n \t System.out.printf(\"\\tEngine Alias: %s\\n\", name);\r\n \t }\r\n \t System.out.printf(\"\\tLanguage: %s (%s)\\n\", langName, langVersion);\r\n \t}\r\n \t \t\r\n \t// Code Example 6: The eval method can read script files.\r\n \t//\r\n \tInputStream is = this.getClass().getResourceAsStream(\"/scripts/F1.js\");\r\n \t/*\r\n \ttry {\r\n \t Reader reader = new InputStreamReader(is);\r\n \t engine.eval(reader);\r\n \t} catch (ScriptException ex) {\r\n \t ex.printStackTrace();\r\n \t}\r\n \t*/\r\n \t// Code Example 7: You can use the Invocable interface to call specific methods in a script.\r\n \t//\r\n \tjsEngine.eval(\"function sayHello() {\" +\r\n \t \" println('Hello, world!');\" +\r\n \t \"}\");\r\n \tInvocable invocableEngine = (Invocable) jsEngine;\r\n \tinvocableEngine.invokeFunction(\"sayHello\");\r\n \t\r\n \t// Code Example 8: Java programming language code adds names to a list.\r\n \t//\r\n \tList<String> namesList = new ArrayList<String>();\r\n \t\r\n \tnamesList.add(\"Jill\");\r\n \tnamesList.add(\"Bob\");\r\n \tnamesList.add(\"Laureen\");\r\n \tnamesList.add(\"Ed\");\r\n \t\r\n \t// Code Example 9: Script code can both access and modify native Java objects.\r\n \t//\r\n \tjsEngine.put(\"namesListKey\", namesList);\r\n \t \r\n \tSystem.out.println(\"Executing in script environment...\");\r\n \t\r\n \tjsEngine.eval(\"var x;\" +\r\n \t \"var names = namesListKey.toArray();\" +\r\n \t \"for(x in names) {\" +\r\n \t //\" println(names[x]);\" +\r\n \t \"}\" +\r\n \t \"namesListKey.add('Dana');\");\r\n \t\r\n \tSystem.out.println(\"Executing in Java environment...\");\r\n \t\r\n \tfor (String name: namesList) {\r\n \t System.out.println(name);\r\n \t} \r\n \t\r\n \t// Code Example 10: Applications can pass values to script using the Invocable interface.\r\n \t// \t \t\r\n \t jsEngine.eval(\"function printNames1(namesList) {\" +\r\n \t \" var x;\" +\r\n \t \" var names = namesList.toArray();\" +\r\n \t \" for(x in names) {\" +\r\n \t \" println(names[x]);\" +\r\n \t \" }\" +\r\n \t \"}\" +\r\n \r\n \t \"function addName(namesList, name) {\" +\r\n \t \" namesList.add(name);\" +\r\n \t \"}\");\r\n \t invocableEngine.invokeFunction(\"printNames1\", namesList);\r\n \t invocableEngine.invokeFunction(\"addName\", namesList, \"Dana\");\r\n }",
"protected void execute() {\n\n\t}",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"void executeScript(Readable script) throws IOException;",
"public String getEngine() {\n return this.engine;\n }",
"protected TKExecutable(Engine pEngine) {\n\t\tsuper(pEngine);\n\t}",
"protected abstract void execute();",
"public void execute(Engine controlador) throws StackException, DivisionByZero, ArrayException {\n\t\tcontrolador.ejecutaRUN();\n\t}",
"public T execute() {\n return GraalCompiler.compile(this);\n }",
"public interface EngineInterface<T> {\n\tpublic T run (Mower mower);\n}",
"void execute(Executable executable);",
"public void execute() {\n }",
"protected void execute() {\n\t}",
"public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}",
"protected void execute() {\n \t\n }",
"protected void execute() {\n \t\n }",
"public abstract String initExecute() throws Exception;",
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"Interpreter getInterpreter();",
"public interface IScript {\n\n}",
"abstract protected void execute();",
"public Engine getEngine() {\n return engine;\n }",
"protected void execute() {\r\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute()\n\t{\n\t}",
"@SuppressWarnings(\"unchecked\")\n @CompileStatic\n public <T> T execute(String scriptName) throws NyException {\n return (T) execute(scriptName, EMPTY_MAP);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"ScriptEvaluator createScriptEvaluator();",
"@Override\n public void execute(String[] args) {\n\n }",
"<T> T runGroovyScript(String name, Map<String, Object> context);",
"public RepositorioPalestraScript(Context ctx) {\n\t\t// Criar utilizando um script SQL\n\t\tdbHelper = new SQLiteHelper(ctx, RepositorioPalestraScript.NOME_BANCO, RepositorioPalestraScript.VERSAO_BANCO,\n\t\t\t\tRepositorioPalestraScript.SCRIPT_DATABASE_CREATE, RepositorioPalestraScript.SCRIPT_DATABASE_DELETE);\n\n\t\t// abre o banco no modo escrita para poder alterar tamb�m\n\t\tdb = dbHelper.getWritableDatabase();\n\t}",
"public interface Engine {\n public void fire();\n}"
] | [
"0.69706094",
"0.6700225",
"0.66125095",
"0.65568787",
"0.65334004",
"0.6447555",
"0.6407615",
"0.6350872",
"0.62715036",
"0.62430227",
"0.62242156",
"0.619106",
"0.61752295",
"0.61421937",
"0.60729176",
"0.604275",
"0.60153294",
"0.6001313",
"0.5977819",
"0.59716266",
"0.5964663",
"0.5953191",
"0.59457606",
"0.59457606",
"0.59457606",
"0.59457606",
"0.59263945",
"0.5910657",
"0.59088945",
"0.5903361",
"0.5882684",
"0.58810437",
"0.58810437",
"0.5874991",
"0.58717054",
"0.5863275",
"0.58576167",
"0.5803547",
"0.5796181",
"0.57866484",
"0.5784074",
"0.57838523",
"0.57761794",
"0.57719535",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.5769915",
"0.57623696",
"0.57623696",
"0.57623696",
"0.57476014",
"0.57476014",
"0.57476014",
"0.5746671",
"0.57401973",
"0.5735196",
"0.57311237",
"0.5729178",
"0.5727275",
"0.568933",
"0.5685426",
"0.56753945",
"0.567234",
"0.5622901",
"0.56124043",
"0.56035507",
"0.5598751",
"0.5584439",
"0.55796045",
"0.55796045",
"0.55721366",
"0.5567847",
"0.55671453",
"0.556173",
"0.5553498",
"0.5550749",
"0.55461204",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.5522253",
"0.55089927",
"0.54944927",
"0.5490416",
"0.5488466",
"0.5476866",
"0.54648376",
"0.5448428",
"0.5434336"
] | 0.0 | -1 |
Path to script file to execute. Only one of Script File or Script Body may be used | public final String getScriptFile() {
return properties.get(SCRIPT_FILE_PROPERTY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Path getScriptLocation() {\n return getSimulationLocation().resolve(FileManager.SCRIPT_FOLDER_NAME);\n }",
"public String getScriptName() {\n if (scriptName != null) {\n return scriptName;\n }\n\n String contextPath = getContextPath();\n if (contextPath == null) contextPath = \"\";\n return scriptName = contextPath.equals(\"/\") ? \"\" : contextPath;\n }",
"public String getScriptFilePath() {\n return (scriptHistory != null) ? scriptHistory.getFilename() : null;\n }",
"public String getScript() {\n return script;\n }",
"public String getScript() { \n\t\treturn null;\n\t}",
"public String getScriptingFileName() {\n\t\treturn scriptingFileName;\n\t}",
"String getSingleLinkerScriptFile();",
"public String getScriptAsString() {\n return this.script;\n }",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"private void getScript() {\n\t\tif ((scriptFile != null) && scriptFile.exists()) {\n\t\t\tlong lm = scriptFile.lastModified();\n\t\t\tif (lm > lastModified) {\n\t\t\t\tscript = new PixelScript(scriptFile);\n\t\t\t\tlastModified = lm;\n\t\t\t}\n\t\t}\n\t\telse script = null;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return script_;\n }",
"public final InvokeScriptedProcessor setScriptFile(final String scriptFile) {\n properties.put(SCRIPT_FILE_PROPERTY, scriptFile);\n return this;\n }",
"public static File getScriptDirectory() {\n \t\treturn new File(getScriptlerHomeDirectory(), \"scripts\");\n \t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return instance.getScript();\n }",
"public static String getScriptName(final File file)\n\t{\n\t\treturn file.getName().replace(SCRIPT_EXTENSION, \"\");\n\t}",
"public String getScriptName() {\n\t\treturn scriptName;\n\t}",
"com.google.protobuf.ByteString getScript();",
"void executeScript(Readable script) throws IOException;",
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"public File[] getScriptFiles() {\n\t\treturn new File[] { scriptFile };\n\t}",
"public StaticScript script(String script) {\n this.script = script;\n return this;\n }",
"public void runScriptFileWithReceivedMessage(final String scriptFile, final IBaseMessage receivedMessage)\n\t{\n\t\tfinal Script script = getScriptObjectFromName(scriptFile);\n\t\t\n\t\tif (script != null)\n\t\t{\n\t\t\trunScriptFileParameter(script, BaseScriptManager.RECEIVED_MESSAGE_PARAMETER, receivedMessage, false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlogger.warn(\"No script file found at {}. Please check if this location is correct.\", scriptFile);\n\t\t}\n\t}",
"public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }",
"byte[] get_destination_script();",
"public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public abstract void runScript() throws Exception;",
"public void doEditScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\treq.getView(this, \"edit.jelly\").forward(req, rsp);\n \t}",
"public void runScriptFileWithMessage(final Script script, final IBaseMessage message)\n\t{\t\t\t\t\n\t\trunScriptFileParameter(script, BaseScriptManager.MESSAGE_PARAMETER, message, true);\n\t}",
"public static void createCommandScript(Path scriptPath, String command) throws CWLException {\r\n if (scriptPath != null) {\r\n File scriptFile = scriptPath.toFile();\r\n if (scriptFile.setExecutable(true)) {\r\n logger.trace(\"Set file executable attribute.\");\r\n }\r\n if (scriptFile.setReadable(true)) {\r\n logger.trace(\"Set file readable attribute.\");\r\n }\r\n if (scriptFile.setWritable(true)) {\r\n logger.trace(\"Set file writable attribute.\");\r\n }\r\n if (command != null) {\r\n write(scriptFile, command);\r\n } else {\r\n write(scriptFile, \"#!/bin/bash\");\r\n }\r\n }\r\n }",
"@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }",
"public Script getScriptObjectFromName(final String scriptFile)\n\t{\n\t\treturn scripts.get(scriptFile);\n\t}",
"public void setScriptName(String name) {\n\t\tthis.scriptName = name;\n\t}",
"protected Script getScript(String scriptName, boolean withSrc) {\n \t\tScript s = getConfiguration().getScriptByName(scriptName);\n \t\tFile scriptSrc = new File(getScriptDirectory(), scriptName);\n \t\tif (withSrc) {\n \t\t\ttry {\n \t\t\t\tReader reader = new FileReader(scriptSrc);\n \t\t\t\tString src = IOUtils.toString(reader);\n \t\t\t\ts.setScript(src);\n \t\t\t} catch (IOException e) {\n \t\t\t\tLOGGER.log(Level.SEVERE, \"not able to load sources for script [\" + scriptName + \"]\", e);\n \t\t\t}\n \t\t}\n \t\treturn s;\n \t}",
"private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"private boolean isScript( String URI ) {\r\n\t\tFile file = new File( URI );\r\n\t\treturn SCRIPT_PATTERN.matcher( file.getName() ).matches();\r\n\t}",
"public void doTriggerScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"scriptName\") String scriptName,\n \t\t\t@QueryParameter(\"script\") String script, @QueryParameter(\"node\") String node) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\t// set the script info back to the request, to display it together with\n \t\t// the output.\n \t\tScript tempScript = getScript(scriptName, false);\n \t\ttempScript.setScript(script);\n \t\treq.setAttribute(\"script\", tempScript);\n \t\treq.setAttribute(\"currentNode\", node);\n \n \t\tString output = doScript(node, script);\n \t\treq.setAttribute(\"output\", output);\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"@Pure\n\tpublic String getScriptFileExtension() {\n\t\treturn this.fileExtension;\n\t}",
"Script createScript();",
"String getConstantClientScript()\n {\n if (getASPManager().isLogonPage()) return \"\";\n\n if (configfile.debug_send_js)\n return configfile.constant_client_script;\n else\n return ASPPage.SRC_SCRIPT_TAG_LEFT + getScriptsLocation(false) + configfile.clientscript_file_name + ASPPage.SRC_SCRIPT_TAG_RIGHT;\n }",
"protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}",
"private File scanForScript(final File scriptPath, final RequestMethod verb) {\n File folder = scriptPath;\n File scriptFile = null;\n while(!folder.equals(scriptRoot)) {\n if(folder.exists() && folder.isDirectory()) {\n LOGGER.info(\"Scanning {} for script with verb {}\", scriptPath, verb);\n IOFileFilter fileFileFilter = FileFilterUtils.fileFileFilter();\n IOFileFilter prefixFileFilter = FileFilterUtils.prefixFileFilter(verb.name());\n File[] matchingFiles = folder.listFiles((FilenameFilter) FileFilterUtils.and(fileFileFilter, prefixFileFilter));\n if(matchingFiles != null && matchingFiles.length >= 1) {\n scriptFile = matchingFiles[0];\n break;\n }\n }\n folder = folder.getParentFile();\n }\n if(scriptFile == null) {\n LOGGER.error(\"Could not find script for verb {} on path {}\", verb.name(), scriptPath.getAbsolutePath());\n }\n return scriptFile;\n }",
"boolean supportsScripts();",
"public void addScriptPath(String path) throws IOException {\r\n File file = new File(path);\r\n if (file.isDirectory()) {\r\n loader = new DirectoryScriptLoader(loader, file);\r\n } else if (file.isFile()) {\r\n String lowercase = path.toLowerCase();\r\n if (lowercase.endsWith(\".jar\") || lowercase.endsWith(\".zip\")) \r\n loader = new JarScriptLoader(loader, file);\r\n } else {\r\n throw new IOException(\"Cannot add scriptpath : \"+path);\r\n }\r\n }",
"protected SiteWhereScript getK8sScript(IFunctionIdentifier identifier, String tenantId, String scriptId)\n\t throws SiteWhereException {\n\tString namespace = getMicroservice().getInstanceSettings().getKubernetesNamespace();\n\tMap<String, String> labels = new HashMap<>();\n\tlabels.put(ResourceLabels.LABEL_SITEWHERE_FUNCTIONAL_AREA, identifier.getPath());\n\tlabels.put(ResourceLabels.LABEL_SITEWHERE_TENANT, tenantId);\n\tlabels.put(ResourceLabels.LABEL_SCRIPTING_SCRIPT_ID, scriptId);\n\tSiteWhereScriptList list = getMicroservice().getSiteWhereKubernetesClient().getScripts().inNamespace(namespace)\n\t\t.withLabels(labels).list();\n\tif (list.getItems().size() > 1) {\n\t throw new SiteWhereException(\"Multiple scripts found matching criteria.\");\n\t}\n\tif (list.getItems().size() == 0) {\n\t return null;\n\t}\n\treturn list.getItems().get(0);\n }",
"public final void mT__144() throws RecognitionException {\n try {\n int _type = T__144;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:144:8: ( 'scriptPath' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:144:10: 'scriptPath'\n {\n match(\"scriptPath\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public final InvokeScriptedProcessor setScriptBody(final String scriptBody) {\n properties.put(SCRIPT_BODY_PROPERTY, scriptBody);\n return this;\n }",
"public void setScriptLocations(String scriptLocations) {\r\n this.scriptLocations = scriptLocations;\r\n }",
"public void loadScript(File scriptFile) throws ScriptException, SimulationException{ \n \n try {\n theCoorInt.loadScriptFile(scriptFile);\n \n tick(0);\n theSimManagerView.resetIncidentTabs();\n theSimManagerView.resetIncidents();\n theSimManagerView.resetDiversions();\n \n loadIncidents();\n } \n catch(ScriptException se) {\n theSimManagerView.resetIncidentTabs();\n theSimManagerView.resetIncidents();\n theSimManagerView.resetDiversions();\n throw se;\n }\n catch (RemoteException re) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"loadScript\", \"Unable to communicate with the \" +\n \"CAD Simulator.\", re);\n \n throw new SimulationException(SimulationException.CAD_SIM_COMM, re);\n } \n }",
"File getExecutable();",
"private static RubyFile findRubyScript(RubyProject rubyProject, String rubyScriptName) {\r\n \t\tfor (RubyProjectElement rubyElement : rubyProject.getRubyElementsInternal()) {\r\n \t\t\tif (rubyElement.getFileExtension().equals(\"urf\")) {\r\n \t\t\t\tif (rubyElement.getName().equals(rubyScriptName)) {\r\n \t\t\t\t\treturn (RubyFile)rubyElement;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }",
"public void includeScript(String command, Vector args) throws Throwable {\n String scriptUrl = (String)args.elementAt(0);\n checkArgument(scriptUrl, \"Missing script url in \" + command);\n \n if (!scriptUrl.startsWith(\"http:\") && !scriptUrl.startsWith(\"file:\")) {\n int upCount = 0;\n while(scriptUrl.startsWith(\"..\")) {\n scriptUrl = scriptUrl.substring(\"../\".length());\n upCount++;\n }\n if (baseUrl != null) {\n String newBaseUrl = baseUrl;\n for(int i=0; i<upCount; i++) {\n int index = newBaseUrl.lastIndexOf('/');\n newBaseUrl = newBaseUrl.substring(0, index);\n }\n scriptUrl = newBaseUrl + \"/\" + scriptUrl;\n }\n }\n String tmpBaseUrl = baseUrl;\n runScriptFileI(scriptUrl, false);\n baseUrl = tmpBaseUrl;\n }",
"public void execfile(String filename) {\n }",
"public final String getScriptEngine() {\n return properties.get(SCRIPT_ENGINE_PROPERTY);\n }",
"public Object executeScript(String command);",
"public String getScriptExecution() {\n StringBuffer script = new StringBuffer(\"#!/bin/bash\\n\");\n script.append(\"if [ $# -ne \" + workflowInputTypeStates.size() + \" ]\\n\\tthen\\n\");\n script\n .append(\"\\t\\techo \\\"\" + workflowInputTypeStates.size() + \" argument(s) expected.\\\"\\n\\t\\texit\\nfi\\n\");\n int in = 1;\n for (TypeNode input : workflowInputTypeStates) {\n script.append(input.getShortNodeID() + \"=$\" + (in++) + \"\\n\");\n }\n script.append(\"\\n\");\n for (ModuleNode operation : moduleNodes) {\n String code = operation.getUsedModule().getExecutionCode();\n if (code == null || code.equals(\"\")) {\n script.append(\"\\\"Error. Tool '\" + operation.getNodeLabel() + \"' is missing the execution code.\\\"\")\n .append(\"\\n\");\n } else {\n for (int i = 0; i < operation.getInputTypes().size(); i++) {\n code = code.replace(\"@input[\" + i + \"]\", operation.getInputTypes().get(i).getShortNodeID());\n }\n for (int i = 0; i < operation.getOutputTypes().size(); i++) {\n code = code.replace(\"@output[\" + i + \"]\", operation.getOutputTypes().get(i).getShortNodeID());\n }\n script.append(code).append(\"\\n\");\n }\n }\n int out = 1;\n for (TypeNode output : workflowOutputTypeStates) {\n script.append(\"echo \\\"\" + (out++) + \". output is: $\" + output.getShortNodeID() + \"\\\"\");\n }\n\n return script.toString();\n }",
"public String getMainFilePath() {\n return primaryFile.getAbsolutePath();\n //return code[0].file.getAbsolutePath();\n }",
"@Test\n public void testGetScript_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getScript();\n\n assertEquals(\"\", result);\n }",
"public Script addScript(final ScriptDetails scriptDetails)\n\t{\n\t\tfinal File scriptFile = new File(scriptDetails.getFile());\n\t\t\n\t\tfinal Script script = new Script();\n\t\t\t\t\n\t\tcreateFileBasedScript(script, scriptFile, scriptDetails);\n\t\t\n\t\tlogger.info(\"Adding script {} at {}\", script.getName(), scriptFile.getAbsolutePath());\n\t\tscripts.put(scriptFile.getAbsolutePath(), script);\n\t\t\n\t\treturn script;\n\t}",
"public final InvokeScriptedProcessor removeScriptFile() {\n properties.remove(SCRIPT_FILE_PROPERTY);\n return this;\n }",
"static void executeShellScript(String scriptName, String value1, String value2,\n File workDirectory) throws IOSException {\n try {\n File tempFile = createTempFile(scriptName);\n\n if (value1 == null) {\n value1 = \"\";\n }\n\n if (value2 == null) {\n value2 = \"\";\n }\n\n ProcessBuilder processBuilder = new ProcessBuilder(\"sh\", tempFile.getAbsoluteFile().toString(), value1,\n value2);\n\n processBuilder.directory(workDirectory);\n CommandHelper.performCommand(processBuilder);\n } catch (IOException e) {\n e.printStackTrace();\n throw new IOSException(e);\n }\n }",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public void setScriptFileExtensions(String scriptFileExtensions) {\r\n this.scriptFileExtensions = scriptFileExtensions;\r\n }",
"public StaticScript(String name, String type, String script) {\n this.name = name;\n this.type = type;\n this.script = script;\n }",
"@Override\n\tpublic String getShinyStringServerScript() {\n\t\treturn null;\n\t}",
"public String getLogoffScript()\n {\n return configfile.logoff_script;\n }",
"java.lang.String getSourceFile();",
"public String getScriptText() {\n return scriptText;\n }",
"private void editScriptButtonActionPerformed() {\n // DEBUG CODE load the test script script\n String script = \"\";\n\n try {\n script = ScriptsDAO.getTextForBuiltInScript(\"utils/aspace/\", \"mapper.bsh\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // if we running in standalone mode in pre update 15\n if (mainFrame == null || mainFrame.getAtVersionNumber().contains(\"15\") || mainFrame.getAtVersionNumber().contains(\"16\")) {\n if (cvd == null) {\n cvd = new CodeViewerDialog(this, SyntaxConstants.SYNTAX_STYLE_JAVA, script, true, false);\n }\n\n cvd.setTitle(\"Mapper Script Editor\");\n cvd.pack();\n cvd.setVisible(true);\n } else {\n // check to see if we have a viewer dialog, if not initialize one\n if (svd == null) {\n svd = new ScriptViewerDialog(this, \"Mapper Script Editor\");\n }\n\n svd.setCurrentScript(script);\n svd.pack();\n svd.setVisible(true);\n }\n }",
"public Script(String name, String description, String path){\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.path = path + \"/\" + name + \".sh\";\n\t\t\n\t\t//TODO set image icon\n\t}",
"private void runScriptShell(Interpreter interpreter, String filePath) {\r\n\r\n\t\tint lineNumber = 1;\r\n\r\n\t\tFile file = new File(filePath);\r\n\r\n\t\tSet<String> errorMessages = new HashSet<String>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.statementScanner = new Scanner(file);\r\n\r\n\t\t\tthis.statementScanner.useDelimiter(\"(?<!\\\\\\\\);\");\r\n\r\n\t\t\twhile (this.statementScanner.hasNext()) {\r\n\r\n\t\t\t\tthis.input = this.statementScanner.next();\r\n\r\n\t\t\t\tthis.statement.parseStatement(this.input);\r\n\r\n\t\t\t\terrorMessages = statement.getErrorMessages();\r\n\r\n\t\t\t\tif (errorMessages.size() > 0) {\r\n\t\t\t\t\tSystem.out.println(\" Error on line number \" + lineNumber + \": \");\r\n\t\t\t\t\tfor (String errorMessage : errorMessages) {\r\n\r\n\t\t\t\t\t\tSystem.out.println(\" \" + errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tinterpreter.processStatement(this.statement);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlineNumber++;\r\n\t\t\t}\r\n\r\n\t\t\tstatementScanner.close();\r\n\t\t\t/*\r\n\t\t\t * For script input, the file is written to and saved after the script's\r\n\t\t\t * execution is complete.\r\n\t\t\t */\r\n\t\t\tinterpreter.getDisk().writeDataMapToDisk(interpreter.getMemory().getDataMap());\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\tSystem.out.println(\"Could not access the script file: \" + filePath + \"...no changes were made.\");\r\n\t\t}\r\n\r\n\t}",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"public HttpResponse doUploadScript(StaplerRequest req) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \t\ttry {\n \t\t\tFile rootDir = getScriptDirectory();\n \n \t\t\tServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory());\n \n \t\t\tFileItem fileItem = (FileItem) upload.parseRequest(req).get(0);\n \t\t\tString fileName = Util.getFileName(fileItem.getName());\n \t\t\tif (StringUtils.isEmpty(fileName)) {\n \t\t\t\treturn new HttpRedirect(\".\");\n \t\t\t}\n \t\t\tfileName = fixFileName(fileName);\n \n \t\t\tfileItem.write(new File(rootDir, fileName));\n \n \t\t\tScript script = getScript(fileName, false);\n \t\t\tif (script == null) {\n \t\t\t\tscript = new Script(fileName, \"uploaded\");\n \t\t\t}\n \n \t\t\tScriptlerConfiguration config = getConfiguration();\n \t\t\tconfig.addOrReplace(script);\n \n \t\t\treturn new HttpRedirect(\"index\");\n \t\t} catch (IOException e) {\n \t\t\tthrow e;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ServletException(e);\n \t\t}\n \t}",
"private String doScript(String node, String scriptTxt) throws IOException, ServletException {\n \n \t\tString output = \"[no output]\";\n \t\tif (node != null && scriptTxt != null) {\n \n \t\t\ttry {\n \n \t\t\t\tComputer comp = Hudson.getInstance().getComputer(node);\n\t\t\t\tif (comp == null) {\n \t\t\t\t\toutput = Messages.node_not_found(node);\n \t\t\t\t} else {\n \t\t\t\t\tif (comp.getChannel() == null) {\n \t\t\t\t\t\toutput = Messages.node_not_online(node);\n\t\t\t\t\t} else {\n \t\t\t\t\t\toutput = RemotingDiagnostics.executeGroovy(scriptTxt, comp.getChannel());\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tthrow new ServletException(e);\n \t\t\t}\n \t\t}\n \t\treturn output;\n \n \t}",
"String getExecutable();",
"@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}",
"void loadScript(URL url) throws IOException, ScriptRunnerException;",
"private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}",
"private void setScript(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n script_ = value;\n }",
"public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }",
"boolean hasScript();",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"String getScript() throws Exception {\n StringBuilder script = new StringBuilder();\n script.append(\"node('\" + remote.getNodeName() + \"') {\\n\");\n script.append(String.format(\"currentBuild.result = '%s'\\n\", this.result));\n script.append(\"step ([$class: 'CoberturaPublisher', \");\n script.append(\"coberturaReportFile: '**/coverage.xml', \");\n script.append(String.format(\"onlyStable: %s, \", this.onlyStable.toString()));\n script.append(String.format(\"failUnhealthy: %s, \", this.failUnhealthy.toString()));\n script.append(String.format(\"failUnstable: %s, \", this.failUnstable.toString()));\n if (this.lineCoverage != null) {\n script.append(String.format(\"lineCoverageTargets: '%s', \", this.lineCoverage));\n }\n if (this.branchCoverage != null) {\n script.append(String.format(\"conditionalCoverageTargets: '%s', \", this.branchCoverage));\n }\n if (this.fileCoverage != null) {\n script.append(String.format(\"fileCoverageTargets: '%s', \", this.fileCoverage));\t\t\t\t\n }\n if (this.packageCoverage != null) {\n script.append(String.format(\"packageCoverageTargets: '%s', \", this.packageCoverage));\t\t\t\t\n }\n if (this.classCoverage != null) {\n script.append(String.format(\"classCoverageTargets: '%s', \", this.classCoverage));\t\t\t\t\n }\n if (this.methodCoverage != null) {\n script.append(String.format(\"methodCoverageTargets: '%s', \", this.methodCoverage));\t\t\t\t\n }\n script.append(\"sourceEncoding: 'ASCII'])\\n\");\n script.append(\"}\");\n return script.toString();\n }",
"@Test\n public void runScript() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"runScript\", \"alert('test')\");\n }",
"static String checkJavaScriptFile(String path) throws IOException {\n\t\tProcess process = new ProcessBuilder(\"lib/jsl/jsl.exe\", \"-process\",\n\t\t\t\tpath).start();\n\n\t\t// get output from JSL\n\t\tString title = \"Checking JavaScriptFile: \" + path + \"\\n\";\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tprocess.getInputStream()));\n\n\t\tString lines = \"\";\n\t\tString line;\n\t\twhile ((line = input.readLine()) != null) {\n\t\t\tlines += line + \"\\n\";\n\t\t}\n\t\tinput.close();\n\n\t\treturn title + lines;\n\t}",
"@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n @Override\n public LuaValue call(LuaValue arg) {\n String path = arg.checkjstring();\n\n // It's fine to append your path with .lua as it follows Lua standards.\n if (path.startsWith(\"/\")) path.replaceFirst(\"/\", \"\");\n if (!path.endsWith(\".lua\")) path = path + \".lua\";\n\n // Load the script if it's already in memory for this plugin.\n LuaValue possiblyLoadedScript = g.get(\"__lukkitpackages__\").checktable().get(path);\n if (possiblyLoadedScript != null) return possiblyLoadedScript;\n\n // Get the resource as an InputStream from the plugin's resource getter\n InputStream is = plugin.getResource(path);\n if (is != null) {\n try {\n LuaValue calledScript = g.load(new InputStreamReader(is, \"UTF-8\"), path.replace(\"/\", \".\")).call();\n g.get(\"__lukkitpackages__\").checktable().set(path, calledScript);\n return calledScript;\n } catch (LukkitPluginException e) {\n e.printStackTrace();\n addError(e);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n\n throw new LukkitPluginException(\"Requested Lua file at \" + path + \" but it does not exist.\");\n }",
"public void runScript(String script, String scriptUrl) throws Throwable {\n \n int idx = 0;\n int lineNumber = 0;\n boolean onExecuted = false;\n \n //If an exception is catched the remaining lines of this script are\n //ignored\n boolean ignoreCurrentScript = false;\n \n String syntaxError = null;\n \n boolean eol;\n do {\n try {\n // The end of the command is recognized with the following\n // sequence ;( *)\\n\n StringBuffer l = new StringBuffer();\n eol = false;\n String line = null;\n while(idx<script.length()) {\n char ch = script.charAt(idx);\n l.append(ch);\n if (ch == ';') {\n eol = true;\n if (idx < script.length() - 1) {\n // This may be the end of line\n while(idx<script.length()) {\n char nextCh = script.charAt(++idx);\n if (nextCh == '\\n') {\n break;\n } else if (nextCh == ' ' || nextCh == '\\r') {\n // Keep searching\n l.append(nextCh);\n } else {\n // This is not the end of line\n l.append(nextCh);\n eol = false;\n break;\n }\n }\n } else {\n // This is the last char\n ++idx;\n }\n } else if (ch == '#' && l.length() == 1) {\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Found a comment, consuming line\");\n }\n // This line is a comment, skip everything until an EOL\n // is found\n ++idx;\n for(;idx<script.length();++idx) {\n char nextChar = script.charAt(idx);\n if (nextChar == '\\n') {\n break;\n } else {\n l.append(nextChar);\n }\n }\n eol = true;\n } else if (ch == '\\n') {\n // We found a EOL without the ;\n // This maybe an empty line that we just ignore\n String currentLine = l.toString().trim();\n if (currentLine.length() == 0) {\n l = new StringBuffer();\n } else {\n // If otherwise this is an EOL in the middle of a\n // command, we just ignore it (EOL shall be represented\n // as \\n)\n l.deleteCharAt(l.length() - 1);\n }\n }\n if (eol) {\n // Remove trailing end of line (everything after the ;)\n while(l.length() > 0 && l.charAt(l.length() - 1) != ';') {\n l.deleteCharAt(l.length() - 1);\n }\n line = l.toString();\n break;\n }\n ++idx;\n }\n \n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Executing line: \" + line);\n }\n \n if (line == null) {\n return;\n }\n \n lineNumber++;\n \n syntaxError = null;\n \n line = line.trim();\n if (line.length() > 0 && !line.startsWith(\"#\")) {\n if (line.startsWith(ON_COMMAND + \" \")) {\n // This is a conditional statement. Check if it must be\n // executed\n boolean exec = false;\n try {\n exec = checkCandidateStatement(line, onExecuted);\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n exec = false;\n }\n if (exec) {\n onExecuted = true;\n // Get the real command\n int colPos = line.indexOf(\":\");\n if (colPos == -1) {\n String msg = \"Syntax error in script, missing ':' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n if (colPos + 1 >= line.length()) {\n String msg = \"Syntax error in script, missing command in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n line = line.substring(colPos + 1);\n line = line.trim();\n } else {\n // skip the rest\n if (Log.isLoggable(Log.INFO)) {\n Log.info(TAG_LOG, \"Skipping conditional statement\");\n }\n continue;\n }\n } else {\n // Reset the conditional statement status\n onExecuted = false;\n }\n \n int parPos = line.indexOf('(');\n if (parPos == -1) {\n syntaxError = \"Syntax error in script \"\n + scriptUrl\n + \"\\nmissing '(' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(syntaxError);\n \n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n // Force this script to be terminated\n idx = script.length();\n }\n \n String command = line.substring(0, parPos);\n command = command.trim();\n String pars;\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"line=\" + line);\n }\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"parPos = \" + parPos);\n }\n if (line.endsWith(\";\")) {\n pars = line.substring(parPos, line.length() - 1);\n } else {\n pars = line.substring(parPos);\n }\n \n //Increments the test counter to\n if (BasicCommandRunner.BEGIN_TEST_COMMAND.equals(command)) {\n chainedTestsCounter++;\n if (chainedTestsCounter == 1) {\n mainTestName = pars;\n }\n } else if (BasicCommandRunner.END_TEST_COMMAND.equals(command)) {\n chainedTestsCounter--;\n if (chainedTestsCounter == 0) {\n ignoreCurrentScript = false;\n }\n }\n \n if (!ignoreCurrentScript) {\n // Extract parameters and put them into a vector\n Vector args = new Vector();\n int i = 0;\n String arg;\n do {\n arg = getParameter(pars, i++);\n if (arg != null) {\n args.addElement(arg);\n }\n } while(arg != null);\n runCommand(command, args);\n }\n }\n } catch (IgnoreScriptException ise) {\n ignoreCurrentScript = true;\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n \n StringBuffer msg = new StringBuffer();\n msg.append(\"\\nTEST FAILED: \").append(mainTestName);\n msg.append(\"\\n\\tException: \").append(t);\n msg.append(syntaxError != null ? \"\\n\\t\" + syntaxError : \"\");\n msg.append(\"\\n\\t(\").append(scriptUrl).append(\": \")\n .append(lineNumber).append(\")\");\n \n Log.error(msg.toString());\n Log.error(TAG_LOG, \"Exception details\", t);\n \n //tell the scriptrunner to ignore all of the chained tests\n //commands\n ignoreCurrentScript = true;\n \n if(stopOnFailure) {\n throw new ClientTestException(\"TEST FAILED\");\n }\n }\n } while (true);\n }",
"public static String[] getRunScriptCommand(File script) {\n\t\tString absolutePath = script.getAbsolutePath();\n\t\treturn WINDOWS ? new String[] { \"cmd\", \"/c\", absolutePath } : new String[] { \"/bin/bash\", absolutePath };\n\t}",
"public static String buildScriptResource(ResourceAttribute tsa) {\n String scriptResourceName = SysConf.getSysConf().getString(\n \"system.directory.user_workspace_dir\")\n + \"/\"\n + \"targets_scripts\"\n + \"/\"\n + tsa.getResource().getUniqueName().toLowerCase()\n + \"/\"\n + \"converters\" + \"/\" + tsa.getConverterClassName();\n return scriptResourceName;\n }",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public void addScript(String scriptFilename) {\n scriptHistory = new ScriptHistory(scriptFilename);\n }",
"private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String getBuildScriptPath() {\n\t\treturn fBuildPath;\n\t}",
"public ProcessBuilder buildCommand(File scriptFile) {\n return null;\n }",
"public void createScript(final Script script, final String scriptName)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName(\"nashorn\");\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (scriptEngine != null)\n\t\t\t{\n\t\t\t\tscript.setName(scriptName);\t\t\t\n\t\t\t\tscript.setStatusAndNotify(ScriptRunningState.NOT_STARTED);\n\t\t\t\tscript.setScriptEngine(scriptEngine);\t\t\n\t\t\t\t\n\t\t\t\tpopulateEngineVariables(script);\n\t\t\t\n//\t\t\tfinal MqttScriptIO scriptIO = new MqttScriptIO(connection, eventManager, script, executor); \n//\t\t\t//script.setScriptIO(scriptIO);\n//\t\t\t\n//\t\t\tfinal Map<String, Object> scriptVariables = new HashMap<String, Object>();\n//\t\t\t\n//\t\t\t// This should be considered deprecated\n//\t\t\tscriptVariables.put(\"mqttspy\", scriptIO);\n//\t\t\t// This should be used for general script-related actions\n//\t\t\tscriptVariables.put(\"spy\", scriptIO);\n//\t\t\t// Going forward, this should only have mqtt-specific elements, e.g. pub/sub\n//\t\t\tscriptVariables.put(\"mqtt\", scriptIO);\n//\t\t\t\n//\t\t\tscriptVariables.put(\"logger\", LoggerFactory.getLogger(ScriptRunner.class));\n//\t\t\t\n//\t\t\tfinal IMqttMessageLogIO mqttMessageLog = new MqttMessageLogIO();\n//\t\t\t// Add it to the script IO so that it gets stopped when requested\n//\t\t\tscript.addTask(mqttMessageLog);\t\t\t\n//\t\t\tscriptVariables.put(\"messageLog\", mqttMessageLog);\n//\t\t\t\n//\t\t\tputJavaVariablesIntoEngine(scriptEngine, scriptVariables);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new CriticalException(\"Cannot instantiate the nashorn javascript engine - most likely you don't have Java 8 installed. \"\n\t\t\t\t\t\t+ \"Please either disable scripts in your configuration file or install the appropriate JRE/JDK.\");\n\t\t\t}\n\t\t}\n\t\tcatch (SpyException e)\n\t\t{\n\t\t\tthrow new CriticalException(\"Cannot initialise the script objects\");\n\t\t}\n\t}",
"public String getExecutable();",
"public String getScriptID(String scriptName) throws MDSException {\r\n\r\n\t\tString scriptID = null;\r\n\t\tString key = scriptName.toUpperCase();\r\n\t\tscriptID = (String) scriptMap.get(key);\r\n\t\tif (scriptID == null || scriptID == \"\") {\r\n\t\t\tscriptID = \"\";\r\n\t\t\t//logger.warn(\"script : \" + scriptName + \" is not loaded !\");\r\n\t\t}\r\n\t\treturn scriptID;\r\n\t}",
"protected abstract String getScriptKey();"
] | [
"0.6544007",
"0.6334659",
"0.62932223",
"0.6172698",
"0.61282367",
"0.6017682",
"0.5923177",
"0.59183156",
"0.590894",
"0.57795775",
"0.57642365",
"0.57007676",
"0.5690674",
"0.5656967",
"0.5638658",
"0.56156355",
"0.5614491",
"0.55563587",
"0.5478444",
"0.5461413",
"0.5442793",
"0.5365887",
"0.53613216",
"0.5354619",
"0.53190315",
"0.5314722",
"0.52969325",
"0.5296427",
"0.52854323",
"0.52749187",
"0.526831",
"0.5259563",
"0.52592874",
"0.52402395",
"0.5220554",
"0.5220495",
"0.5213195",
"0.5203073",
"0.5193034",
"0.51835316",
"0.51819694",
"0.51748157",
"0.5165413",
"0.5155532",
"0.5145625",
"0.5129903",
"0.50893354",
"0.50806904",
"0.5064346",
"0.50503117",
"0.50452447",
"0.5029534",
"0.50223815",
"0.5019128",
"0.5007874",
"0.50015444",
"0.49823198",
"0.496533",
"0.49510837",
"0.4941576",
"0.49342155",
"0.4924733",
"0.49154118",
"0.48661044",
"0.48586228",
"0.48564556",
"0.48537654",
"0.4843175",
"0.48332465",
"0.48325303",
"0.48187184",
"0.48118454",
"0.48105118",
"0.48068056",
"0.480413",
"0.4791915",
"0.47873846",
"0.47855383",
"0.47854716",
"0.47760174",
"0.4774128",
"0.47540355",
"0.4750834",
"0.47505972",
"0.47459167",
"0.4738906",
"0.47194636",
"0.47159472",
"0.47120923",
"0.4695586",
"0.46921012",
"0.46905798",
"0.46841654",
"0.46685943",
"0.4665773",
"0.46608216",
"0.4660405",
"0.46517578",
"0.46434844",
"0.4641393"
] | 0.70754874 | 0 |
Path to script file to execute. Only one of Script File or Script Body may be used | public final InvokeScriptedProcessor setScriptFile(final String scriptFile) {
properties.put(SCRIPT_FILE_PROPERTY, scriptFile);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getScriptFile() {\n return properties.get(SCRIPT_FILE_PROPERTY);\n }",
"public Path getScriptLocation() {\n return getSimulationLocation().resolve(FileManager.SCRIPT_FOLDER_NAME);\n }",
"public String getScriptName() {\n if (scriptName != null) {\n return scriptName;\n }\n\n String contextPath = getContextPath();\n if (contextPath == null) contextPath = \"\";\n return scriptName = contextPath.equals(\"/\") ? \"\" : contextPath;\n }",
"public String getScriptFilePath() {\n return (scriptHistory != null) ? scriptHistory.getFilename() : null;\n }",
"public String getScript() {\n return script;\n }",
"public String getScript() { \n\t\treturn null;\n\t}",
"public String getScriptingFileName() {\n\t\treturn scriptingFileName;\n\t}",
"String getSingleLinkerScriptFile();",
"public String getScriptAsString() {\n return this.script;\n }",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"private void getScript() {\n\t\tif ((scriptFile != null) && scriptFile.exists()) {\n\t\t\tlong lm = scriptFile.lastModified();\n\t\t\tif (lm > lastModified) {\n\t\t\t\tscript = new PixelScript(scriptFile);\n\t\t\t\tlastModified = lm;\n\t\t\t}\n\t\t}\n\t\telse script = null;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return script_;\n }",
"public static File getScriptDirectory() {\n \t\treturn new File(getScriptlerHomeDirectory(), \"scripts\");\n \t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return instance.getScript();\n }",
"public static String getScriptName(final File file)\n\t{\n\t\treturn file.getName().replace(SCRIPT_EXTENSION, \"\");\n\t}",
"public String getScriptName() {\n\t\treturn scriptName;\n\t}",
"com.google.protobuf.ByteString getScript();",
"void executeScript(Readable script) throws IOException;",
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"public File[] getScriptFiles() {\n\t\treturn new File[] { scriptFile };\n\t}",
"public StaticScript script(String script) {\n this.script = script;\n return this;\n }",
"public void runScriptFileWithReceivedMessage(final String scriptFile, final IBaseMessage receivedMessage)\n\t{\n\t\tfinal Script script = getScriptObjectFromName(scriptFile);\n\t\t\n\t\tif (script != null)\n\t\t{\n\t\t\trunScriptFileParameter(script, BaseScriptManager.RECEIVED_MESSAGE_PARAMETER, receivedMessage, false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlogger.warn(\"No script file found at {}. Please check if this location is correct.\", scriptFile);\n\t\t}\n\t}",
"public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }",
"byte[] get_destination_script();",
"public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public abstract void runScript() throws Exception;",
"public void doEditScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\treq.getView(this, \"edit.jelly\").forward(req, rsp);\n \t}",
"public void runScriptFileWithMessage(final Script script, final IBaseMessage message)\n\t{\t\t\t\t\n\t\trunScriptFileParameter(script, BaseScriptManager.MESSAGE_PARAMETER, message, true);\n\t}",
"public static void createCommandScript(Path scriptPath, String command) throws CWLException {\r\n if (scriptPath != null) {\r\n File scriptFile = scriptPath.toFile();\r\n if (scriptFile.setExecutable(true)) {\r\n logger.trace(\"Set file executable attribute.\");\r\n }\r\n if (scriptFile.setReadable(true)) {\r\n logger.trace(\"Set file readable attribute.\");\r\n }\r\n if (scriptFile.setWritable(true)) {\r\n logger.trace(\"Set file writable attribute.\");\r\n }\r\n if (command != null) {\r\n write(scriptFile, command);\r\n } else {\r\n write(scriptFile, \"#!/bin/bash\");\r\n }\r\n }\r\n }",
"@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }",
"public Script getScriptObjectFromName(final String scriptFile)\n\t{\n\t\treturn scripts.get(scriptFile);\n\t}",
"public void setScriptName(String name) {\n\t\tthis.scriptName = name;\n\t}",
"protected Script getScript(String scriptName, boolean withSrc) {\n \t\tScript s = getConfiguration().getScriptByName(scriptName);\n \t\tFile scriptSrc = new File(getScriptDirectory(), scriptName);\n \t\tif (withSrc) {\n \t\t\ttry {\n \t\t\t\tReader reader = new FileReader(scriptSrc);\n \t\t\t\tString src = IOUtils.toString(reader);\n \t\t\t\ts.setScript(src);\n \t\t\t} catch (IOException e) {\n \t\t\t\tLOGGER.log(Level.SEVERE, \"not able to load sources for script [\" + scriptName + \"]\", e);\n \t\t\t}\n \t\t}\n \t\treturn s;\n \t}",
"private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }",
"private boolean isScript( String URI ) {\r\n\t\tFile file = new File( URI );\r\n\t\treturn SCRIPT_PATTERN.matcher( file.getName() ).matches();\r\n\t}",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"public void doTriggerScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"scriptName\") String scriptName,\n \t\t\t@QueryParameter(\"script\") String script, @QueryParameter(\"node\") String node) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\t// set the script info back to the request, to display it together with\n \t\t// the output.\n \t\tScript tempScript = getScript(scriptName, false);\n \t\ttempScript.setScript(script);\n \t\treq.setAttribute(\"script\", tempScript);\n \t\treq.setAttribute(\"currentNode\", node);\n \n \t\tString output = doScript(node, script);\n \t\treq.setAttribute(\"output\", output);\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"@Pure\n\tpublic String getScriptFileExtension() {\n\t\treturn this.fileExtension;\n\t}",
"Script createScript();",
"String getConstantClientScript()\n {\n if (getASPManager().isLogonPage()) return \"\";\n\n if (configfile.debug_send_js)\n return configfile.constant_client_script;\n else\n return ASPPage.SRC_SCRIPT_TAG_LEFT + getScriptsLocation(false) + configfile.clientscript_file_name + ASPPage.SRC_SCRIPT_TAG_RIGHT;\n }",
"protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}",
"private File scanForScript(final File scriptPath, final RequestMethod verb) {\n File folder = scriptPath;\n File scriptFile = null;\n while(!folder.equals(scriptRoot)) {\n if(folder.exists() && folder.isDirectory()) {\n LOGGER.info(\"Scanning {} for script with verb {}\", scriptPath, verb);\n IOFileFilter fileFileFilter = FileFilterUtils.fileFileFilter();\n IOFileFilter prefixFileFilter = FileFilterUtils.prefixFileFilter(verb.name());\n File[] matchingFiles = folder.listFiles((FilenameFilter) FileFilterUtils.and(fileFileFilter, prefixFileFilter));\n if(matchingFiles != null && matchingFiles.length >= 1) {\n scriptFile = matchingFiles[0];\n break;\n }\n }\n folder = folder.getParentFile();\n }\n if(scriptFile == null) {\n LOGGER.error(\"Could not find script for verb {} on path {}\", verb.name(), scriptPath.getAbsolutePath());\n }\n return scriptFile;\n }",
"boolean supportsScripts();",
"public void addScriptPath(String path) throws IOException {\r\n File file = new File(path);\r\n if (file.isDirectory()) {\r\n loader = new DirectoryScriptLoader(loader, file);\r\n } else if (file.isFile()) {\r\n String lowercase = path.toLowerCase();\r\n if (lowercase.endsWith(\".jar\") || lowercase.endsWith(\".zip\")) \r\n loader = new JarScriptLoader(loader, file);\r\n } else {\r\n throw new IOException(\"Cannot add scriptpath : \"+path);\r\n }\r\n }",
"protected SiteWhereScript getK8sScript(IFunctionIdentifier identifier, String tenantId, String scriptId)\n\t throws SiteWhereException {\n\tString namespace = getMicroservice().getInstanceSettings().getKubernetesNamespace();\n\tMap<String, String> labels = new HashMap<>();\n\tlabels.put(ResourceLabels.LABEL_SITEWHERE_FUNCTIONAL_AREA, identifier.getPath());\n\tlabels.put(ResourceLabels.LABEL_SITEWHERE_TENANT, tenantId);\n\tlabels.put(ResourceLabels.LABEL_SCRIPTING_SCRIPT_ID, scriptId);\n\tSiteWhereScriptList list = getMicroservice().getSiteWhereKubernetesClient().getScripts().inNamespace(namespace)\n\t\t.withLabels(labels).list();\n\tif (list.getItems().size() > 1) {\n\t throw new SiteWhereException(\"Multiple scripts found matching criteria.\");\n\t}\n\tif (list.getItems().size() == 0) {\n\t return null;\n\t}\n\treturn list.getItems().get(0);\n }",
"public final void mT__144() throws RecognitionException {\n try {\n int _type = T__144;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:144:8: ( 'scriptPath' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:144:10: 'scriptPath'\n {\n match(\"scriptPath\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public final InvokeScriptedProcessor setScriptBody(final String scriptBody) {\n properties.put(SCRIPT_BODY_PROPERTY, scriptBody);\n return this;\n }",
"public void setScriptLocations(String scriptLocations) {\r\n this.scriptLocations = scriptLocations;\r\n }",
"public void loadScript(File scriptFile) throws ScriptException, SimulationException{ \n \n try {\n theCoorInt.loadScriptFile(scriptFile);\n \n tick(0);\n theSimManagerView.resetIncidentTabs();\n theSimManagerView.resetIncidents();\n theSimManagerView.resetDiversions();\n \n loadIncidents();\n } \n catch(ScriptException se) {\n theSimManagerView.resetIncidentTabs();\n theSimManagerView.resetIncidents();\n theSimManagerView.resetDiversions();\n throw se;\n }\n catch (RemoteException re) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"loadScript\", \"Unable to communicate with the \" +\n \"CAD Simulator.\", re);\n \n throw new SimulationException(SimulationException.CAD_SIM_COMM, re);\n } \n }",
"File getExecutable();",
"private static RubyFile findRubyScript(RubyProject rubyProject, String rubyScriptName) {\r\n \t\tfor (RubyProjectElement rubyElement : rubyProject.getRubyElementsInternal()) {\r\n \t\t\tif (rubyElement.getFileExtension().equals(\"urf\")) {\r\n \t\t\t\tif (rubyElement.getName().equals(rubyScriptName)) {\r\n \t\t\t\t\treturn (RubyFile)rubyElement;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }",
"public void includeScript(String command, Vector args) throws Throwable {\n String scriptUrl = (String)args.elementAt(0);\n checkArgument(scriptUrl, \"Missing script url in \" + command);\n \n if (!scriptUrl.startsWith(\"http:\") && !scriptUrl.startsWith(\"file:\")) {\n int upCount = 0;\n while(scriptUrl.startsWith(\"..\")) {\n scriptUrl = scriptUrl.substring(\"../\".length());\n upCount++;\n }\n if (baseUrl != null) {\n String newBaseUrl = baseUrl;\n for(int i=0; i<upCount; i++) {\n int index = newBaseUrl.lastIndexOf('/');\n newBaseUrl = newBaseUrl.substring(0, index);\n }\n scriptUrl = newBaseUrl + \"/\" + scriptUrl;\n }\n }\n String tmpBaseUrl = baseUrl;\n runScriptFileI(scriptUrl, false);\n baseUrl = tmpBaseUrl;\n }",
"public void execfile(String filename) {\n }",
"public final String getScriptEngine() {\n return properties.get(SCRIPT_ENGINE_PROPERTY);\n }",
"public Object executeScript(String command);",
"public String getScriptExecution() {\n StringBuffer script = new StringBuffer(\"#!/bin/bash\\n\");\n script.append(\"if [ $# -ne \" + workflowInputTypeStates.size() + \" ]\\n\\tthen\\n\");\n script\n .append(\"\\t\\techo \\\"\" + workflowInputTypeStates.size() + \" argument(s) expected.\\\"\\n\\t\\texit\\nfi\\n\");\n int in = 1;\n for (TypeNode input : workflowInputTypeStates) {\n script.append(input.getShortNodeID() + \"=$\" + (in++) + \"\\n\");\n }\n script.append(\"\\n\");\n for (ModuleNode operation : moduleNodes) {\n String code = operation.getUsedModule().getExecutionCode();\n if (code == null || code.equals(\"\")) {\n script.append(\"\\\"Error. Tool '\" + operation.getNodeLabel() + \"' is missing the execution code.\\\"\")\n .append(\"\\n\");\n } else {\n for (int i = 0; i < operation.getInputTypes().size(); i++) {\n code = code.replace(\"@input[\" + i + \"]\", operation.getInputTypes().get(i).getShortNodeID());\n }\n for (int i = 0; i < operation.getOutputTypes().size(); i++) {\n code = code.replace(\"@output[\" + i + \"]\", operation.getOutputTypes().get(i).getShortNodeID());\n }\n script.append(code).append(\"\\n\");\n }\n }\n int out = 1;\n for (TypeNode output : workflowOutputTypeStates) {\n script.append(\"echo \\\"\" + (out++) + \". output is: $\" + output.getShortNodeID() + \"\\\"\");\n }\n\n return script.toString();\n }",
"public String getMainFilePath() {\n return primaryFile.getAbsolutePath();\n //return code[0].file.getAbsolutePath();\n }",
"@Test\n public void testGetScript_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getScript();\n\n assertEquals(\"\", result);\n }",
"public Script addScript(final ScriptDetails scriptDetails)\n\t{\n\t\tfinal File scriptFile = new File(scriptDetails.getFile());\n\t\t\n\t\tfinal Script script = new Script();\n\t\t\t\t\n\t\tcreateFileBasedScript(script, scriptFile, scriptDetails);\n\t\t\n\t\tlogger.info(\"Adding script {} at {}\", script.getName(), scriptFile.getAbsolutePath());\n\t\tscripts.put(scriptFile.getAbsolutePath(), script);\n\t\t\n\t\treturn script;\n\t}",
"public final InvokeScriptedProcessor removeScriptFile() {\n properties.remove(SCRIPT_FILE_PROPERTY);\n return this;\n }",
"static void executeShellScript(String scriptName, String value1, String value2,\n File workDirectory) throws IOSException {\n try {\n File tempFile = createTempFile(scriptName);\n\n if (value1 == null) {\n value1 = \"\";\n }\n\n if (value2 == null) {\n value2 = \"\";\n }\n\n ProcessBuilder processBuilder = new ProcessBuilder(\"sh\", tempFile.getAbsoluteFile().toString(), value1,\n value2);\n\n processBuilder.directory(workDirectory);\n CommandHelper.performCommand(processBuilder);\n } catch (IOException e) {\n e.printStackTrace();\n throw new IOSException(e);\n }\n }",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public void setScriptFileExtensions(String scriptFileExtensions) {\r\n this.scriptFileExtensions = scriptFileExtensions;\r\n }",
"public StaticScript(String name, String type, String script) {\n this.name = name;\n this.type = type;\n this.script = script;\n }",
"@Override\n\tpublic String getShinyStringServerScript() {\n\t\treturn null;\n\t}",
"public String getLogoffScript()\n {\n return configfile.logoff_script;\n }",
"public String getScriptText() {\n return scriptText;\n }",
"java.lang.String getSourceFile();",
"private void editScriptButtonActionPerformed() {\n // DEBUG CODE load the test script script\n String script = \"\";\n\n try {\n script = ScriptsDAO.getTextForBuiltInScript(\"utils/aspace/\", \"mapper.bsh\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // if we running in standalone mode in pre update 15\n if (mainFrame == null || mainFrame.getAtVersionNumber().contains(\"15\") || mainFrame.getAtVersionNumber().contains(\"16\")) {\n if (cvd == null) {\n cvd = new CodeViewerDialog(this, SyntaxConstants.SYNTAX_STYLE_JAVA, script, true, false);\n }\n\n cvd.setTitle(\"Mapper Script Editor\");\n cvd.pack();\n cvd.setVisible(true);\n } else {\n // check to see if we have a viewer dialog, if not initialize one\n if (svd == null) {\n svd = new ScriptViewerDialog(this, \"Mapper Script Editor\");\n }\n\n svd.setCurrentScript(script);\n svd.pack();\n svd.setVisible(true);\n }\n }",
"public Script(String name, String description, String path){\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.path = path + \"/\" + name + \".sh\";\n\t\t\n\t\t//TODO set image icon\n\t}",
"private void runScriptShell(Interpreter interpreter, String filePath) {\r\n\r\n\t\tint lineNumber = 1;\r\n\r\n\t\tFile file = new File(filePath);\r\n\r\n\t\tSet<String> errorMessages = new HashSet<String>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.statementScanner = new Scanner(file);\r\n\r\n\t\t\tthis.statementScanner.useDelimiter(\"(?<!\\\\\\\\);\");\r\n\r\n\t\t\twhile (this.statementScanner.hasNext()) {\r\n\r\n\t\t\t\tthis.input = this.statementScanner.next();\r\n\r\n\t\t\t\tthis.statement.parseStatement(this.input);\r\n\r\n\t\t\t\terrorMessages = statement.getErrorMessages();\r\n\r\n\t\t\t\tif (errorMessages.size() > 0) {\r\n\t\t\t\t\tSystem.out.println(\" Error on line number \" + lineNumber + \": \");\r\n\t\t\t\t\tfor (String errorMessage : errorMessages) {\r\n\r\n\t\t\t\t\t\tSystem.out.println(\" \" + errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tinterpreter.processStatement(this.statement);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlineNumber++;\r\n\t\t\t}\r\n\r\n\t\t\tstatementScanner.close();\r\n\t\t\t/*\r\n\t\t\t * For script input, the file is written to and saved after the script's\r\n\t\t\t * execution is complete.\r\n\t\t\t */\r\n\t\t\tinterpreter.getDisk().writeDataMapToDisk(interpreter.getMemory().getDataMap());\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\tSystem.out.println(\"Could not access the script file: \" + filePath + \"...no changes were made.\");\r\n\t\t}\r\n\r\n\t}",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"public HttpResponse doUploadScript(StaplerRequest req) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \t\ttry {\n \t\t\tFile rootDir = getScriptDirectory();\n \n \t\t\tServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory());\n \n \t\t\tFileItem fileItem = (FileItem) upload.parseRequest(req).get(0);\n \t\t\tString fileName = Util.getFileName(fileItem.getName());\n \t\t\tif (StringUtils.isEmpty(fileName)) {\n \t\t\t\treturn new HttpRedirect(\".\");\n \t\t\t}\n \t\t\tfileName = fixFileName(fileName);\n \n \t\t\tfileItem.write(new File(rootDir, fileName));\n \n \t\t\tScript script = getScript(fileName, false);\n \t\t\tif (script == null) {\n \t\t\t\tscript = new Script(fileName, \"uploaded\");\n \t\t\t}\n \n \t\t\tScriptlerConfiguration config = getConfiguration();\n \t\t\tconfig.addOrReplace(script);\n \n \t\t\treturn new HttpRedirect(\"index\");\n \t\t} catch (IOException e) {\n \t\t\tthrow e;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ServletException(e);\n \t\t}\n \t}",
"private String doScript(String node, String scriptTxt) throws IOException, ServletException {\n \n \t\tString output = \"[no output]\";\n \t\tif (node != null && scriptTxt != null) {\n \n \t\t\ttry {\n \n \t\t\t\tComputer comp = Hudson.getInstance().getComputer(node);\n\t\t\t\tif (comp == null) {\n \t\t\t\t\toutput = Messages.node_not_found(node);\n \t\t\t\t} else {\n \t\t\t\t\tif (comp.getChannel() == null) {\n \t\t\t\t\t\toutput = Messages.node_not_online(node);\n\t\t\t\t\t} else {\n \t\t\t\t\t\toutput = RemotingDiagnostics.executeGroovy(scriptTxt, comp.getChannel());\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tthrow new ServletException(e);\n \t\t\t}\n \t\t}\n \t\treturn output;\n \n \t}",
"void loadScript(URL url) throws IOException, ScriptRunnerException;",
"String getExecutable();",
"@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}",
"private void setScript(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n script_ = value;\n }",
"private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}",
"public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }",
"boolean hasScript();",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"String getScript() throws Exception {\n StringBuilder script = new StringBuilder();\n script.append(\"node('\" + remote.getNodeName() + \"') {\\n\");\n script.append(String.format(\"currentBuild.result = '%s'\\n\", this.result));\n script.append(\"step ([$class: 'CoberturaPublisher', \");\n script.append(\"coberturaReportFile: '**/coverage.xml', \");\n script.append(String.format(\"onlyStable: %s, \", this.onlyStable.toString()));\n script.append(String.format(\"failUnhealthy: %s, \", this.failUnhealthy.toString()));\n script.append(String.format(\"failUnstable: %s, \", this.failUnstable.toString()));\n if (this.lineCoverage != null) {\n script.append(String.format(\"lineCoverageTargets: '%s', \", this.lineCoverage));\n }\n if (this.branchCoverage != null) {\n script.append(String.format(\"conditionalCoverageTargets: '%s', \", this.branchCoverage));\n }\n if (this.fileCoverage != null) {\n script.append(String.format(\"fileCoverageTargets: '%s', \", this.fileCoverage));\t\t\t\t\n }\n if (this.packageCoverage != null) {\n script.append(String.format(\"packageCoverageTargets: '%s', \", this.packageCoverage));\t\t\t\t\n }\n if (this.classCoverage != null) {\n script.append(String.format(\"classCoverageTargets: '%s', \", this.classCoverage));\t\t\t\t\n }\n if (this.methodCoverage != null) {\n script.append(String.format(\"methodCoverageTargets: '%s', \", this.methodCoverage));\t\t\t\t\n }\n script.append(\"sourceEncoding: 'ASCII'])\\n\");\n script.append(\"}\");\n return script.toString();\n }",
"@Test\n public void runScript() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"runScript\", \"alert('test')\");\n }",
"static String checkJavaScriptFile(String path) throws IOException {\n\t\tProcess process = new ProcessBuilder(\"lib/jsl/jsl.exe\", \"-process\",\n\t\t\t\tpath).start();\n\n\t\t// get output from JSL\n\t\tString title = \"Checking JavaScriptFile: \" + path + \"\\n\";\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tprocess.getInputStream()));\n\n\t\tString lines = \"\";\n\t\tString line;\n\t\twhile ((line = input.readLine()) != null) {\n\t\t\tlines += line + \"\\n\";\n\t\t}\n\t\tinput.close();\n\n\t\treturn title + lines;\n\t}",
"@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n @Override\n public LuaValue call(LuaValue arg) {\n String path = arg.checkjstring();\n\n // It's fine to append your path with .lua as it follows Lua standards.\n if (path.startsWith(\"/\")) path.replaceFirst(\"/\", \"\");\n if (!path.endsWith(\".lua\")) path = path + \".lua\";\n\n // Load the script if it's already in memory for this plugin.\n LuaValue possiblyLoadedScript = g.get(\"__lukkitpackages__\").checktable().get(path);\n if (possiblyLoadedScript != null) return possiblyLoadedScript;\n\n // Get the resource as an InputStream from the plugin's resource getter\n InputStream is = plugin.getResource(path);\n if (is != null) {\n try {\n LuaValue calledScript = g.load(new InputStreamReader(is, \"UTF-8\"), path.replace(\"/\", \".\")).call();\n g.get(\"__lukkitpackages__\").checktable().set(path, calledScript);\n return calledScript;\n } catch (LukkitPluginException e) {\n e.printStackTrace();\n addError(e);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n\n throw new LukkitPluginException(\"Requested Lua file at \" + path + \" but it does not exist.\");\n }",
"public void runScript(String script, String scriptUrl) throws Throwable {\n \n int idx = 0;\n int lineNumber = 0;\n boolean onExecuted = false;\n \n //If an exception is catched the remaining lines of this script are\n //ignored\n boolean ignoreCurrentScript = false;\n \n String syntaxError = null;\n \n boolean eol;\n do {\n try {\n // The end of the command is recognized with the following\n // sequence ;( *)\\n\n StringBuffer l = new StringBuffer();\n eol = false;\n String line = null;\n while(idx<script.length()) {\n char ch = script.charAt(idx);\n l.append(ch);\n if (ch == ';') {\n eol = true;\n if (idx < script.length() - 1) {\n // This may be the end of line\n while(idx<script.length()) {\n char nextCh = script.charAt(++idx);\n if (nextCh == '\\n') {\n break;\n } else if (nextCh == ' ' || nextCh == '\\r') {\n // Keep searching\n l.append(nextCh);\n } else {\n // This is not the end of line\n l.append(nextCh);\n eol = false;\n break;\n }\n }\n } else {\n // This is the last char\n ++idx;\n }\n } else if (ch == '#' && l.length() == 1) {\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Found a comment, consuming line\");\n }\n // This line is a comment, skip everything until an EOL\n // is found\n ++idx;\n for(;idx<script.length();++idx) {\n char nextChar = script.charAt(idx);\n if (nextChar == '\\n') {\n break;\n } else {\n l.append(nextChar);\n }\n }\n eol = true;\n } else if (ch == '\\n') {\n // We found a EOL without the ;\n // This maybe an empty line that we just ignore\n String currentLine = l.toString().trim();\n if (currentLine.length() == 0) {\n l = new StringBuffer();\n } else {\n // If otherwise this is an EOL in the middle of a\n // command, we just ignore it (EOL shall be represented\n // as \\n)\n l.deleteCharAt(l.length() - 1);\n }\n }\n if (eol) {\n // Remove trailing end of line (everything after the ;)\n while(l.length() > 0 && l.charAt(l.length() - 1) != ';') {\n l.deleteCharAt(l.length() - 1);\n }\n line = l.toString();\n break;\n }\n ++idx;\n }\n \n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Executing line: \" + line);\n }\n \n if (line == null) {\n return;\n }\n \n lineNumber++;\n \n syntaxError = null;\n \n line = line.trim();\n if (line.length() > 0 && !line.startsWith(\"#\")) {\n if (line.startsWith(ON_COMMAND + \" \")) {\n // This is a conditional statement. Check if it must be\n // executed\n boolean exec = false;\n try {\n exec = checkCandidateStatement(line, onExecuted);\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n exec = false;\n }\n if (exec) {\n onExecuted = true;\n // Get the real command\n int colPos = line.indexOf(\":\");\n if (colPos == -1) {\n String msg = \"Syntax error in script, missing ':' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n if (colPos + 1 >= line.length()) {\n String msg = \"Syntax error in script, missing command in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n line = line.substring(colPos + 1);\n line = line.trim();\n } else {\n // skip the rest\n if (Log.isLoggable(Log.INFO)) {\n Log.info(TAG_LOG, \"Skipping conditional statement\");\n }\n continue;\n }\n } else {\n // Reset the conditional statement status\n onExecuted = false;\n }\n \n int parPos = line.indexOf('(');\n if (parPos == -1) {\n syntaxError = \"Syntax error in script \"\n + scriptUrl\n + \"\\nmissing '(' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(syntaxError);\n \n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n // Force this script to be terminated\n idx = script.length();\n }\n \n String command = line.substring(0, parPos);\n command = command.trim();\n String pars;\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"line=\" + line);\n }\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"parPos = \" + parPos);\n }\n if (line.endsWith(\";\")) {\n pars = line.substring(parPos, line.length() - 1);\n } else {\n pars = line.substring(parPos);\n }\n \n //Increments the test counter to\n if (BasicCommandRunner.BEGIN_TEST_COMMAND.equals(command)) {\n chainedTestsCounter++;\n if (chainedTestsCounter == 1) {\n mainTestName = pars;\n }\n } else if (BasicCommandRunner.END_TEST_COMMAND.equals(command)) {\n chainedTestsCounter--;\n if (chainedTestsCounter == 0) {\n ignoreCurrentScript = false;\n }\n }\n \n if (!ignoreCurrentScript) {\n // Extract parameters and put them into a vector\n Vector args = new Vector();\n int i = 0;\n String arg;\n do {\n arg = getParameter(pars, i++);\n if (arg != null) {\n args.addElement(arg);\n }\n } while(arg != null);\n runCommand(command, args);\n }\n }\n } catch (IgnoreScriptException ise) {\n ignoreCurrentScript = true;\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n \n StringBuffer msg = new StringBuffer();\n msg.append(\"\\nTEST FAILED: \").append(mainTestName);\n msg.append(\"\\n\\tException: \").append(t);\n msg.append(syntaxError != null ? \"\\n\\t\" + syntaxError : \"\");\n msg.append(\"\\n\\t(\").append(scriptUrl).append(\": \")\n .append(lineNumber).append(\")\");\n \n Log.error(msg.toString());\n Log.error(TAG_LOG, \"Exception details\", t);\n \n //tell the scriptrunner to ignore all of the chained tests\n //commands\n ignoreCurrentScript = true;\n \n if(stopOnFailure) {\n throw new ClientTestException(\"TEST FAILED\");\n }\n }\n } while (true);\n }",
"public static String[] getRunScriptCommand(File script) {\n\t\tString absolutePath = script.getAbsolutePath();\n\t\treturn WINDOWS ? new String[] { \"cmd\", \"/c\", absolutePath } : new String[] { \"/bin/bash\", absolutePath };\n\t}",
"public static String buildScriptResource(ResourceAttribute tsa) {\n String scriptResourceName = SysConf.getSysConf().getString(\n \"system.directory.user_workspace_dir\")\n + \"/\"\n + \"targets_scripts\"\n + \"/\"\n + tsa.getResource().getUniqueName().toLowerCase()\n + \"/\"\n + \"converters\" + \"/\" + tsa.getConverterClassName();\n return scriptResourceName;\n }",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public void addScript(String scriptFilename) {\n scriptHistory = new ScriptHistory(scriptFilename);\n }",
"private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String getBuildScriptPath() {\n\t\treturn fBuildPath;\n\t}",
"public void createScript(final Script script, final String scriptName)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName(\"nashorn\");\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (scriptEngine != null)\n\t\t\t{\n\t\t\t\tscript.setName(scriptName);\t\t\t\n\t\t\t\tscript.setStatusAndNotify(ScriptRunningState.NOT_STARTED);\n\t\t\t\tscript.setScriptEngine(scriptEngine);\t\t\n\t\t\t\t\n\t\t\t\tpopulateEngineVariables(script);\n\t\t\t\n//\t\t\tfinal MqttScriptIO scriptIO = new MqttScriptIO(connection, eventManager, script, executor); \n//\t\t\t//script.setScriptIO(scriptIO);\n//\t\t\t\n//\t\t\tfinal Map<String, Object> scriptVariables = new HashMap<String, Object>();\n//\t\t\t\n//\t\t\t// This should be considered deprecated\n//\t\t\tscriptVariables.put(\"mqttspy\", scriptIO);\n//\t\t\t// This should be used for general script-related actions\n//\t\t\tscriptVariables.put(\"spy\", scriptIO);\n//\t\t\t// Going forward, this should only have mqtt-specific elements, e.g. pub/sub\n//\t\t\tscriptVariables.put(\"mqtt\", scriptIO);\n//\t\t\t\n//\t\t\tscriptVariables.put(\"logger\", LoggerFactory.getLogger(ScriptRunner.class));\n//\t\t\t\n//\t\t\tfinal IMqttMessageLogIO mqttMessageLog = new MqttMessageLogIO();\n//\t\t\t// Add it to the script IO so that it gets stopped when requested\n//\t\t\tscript.addTask(mqttMessageLog);\t\t\t\n//\t\t\tscriptVariables.put(\"messageLog\", mqttMessageLog);\n//\t\t\t\n//\t\t\tputJavaVariablesIntoEngine(scriptEngine, scriptVariables);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new CriticalException(\"Cannot instantiate the nashorn javascript engine - most likely you don't have Java 8 installed. \"\n\t\t\t\t\t\t+ \"Please either disable scripts in your configuration file or install the appropriate JRE/JDK.\");\n\t\t\t}\n\t\t}\n\t\tcatch (SpyException e)\n\t\t{\n\t\t\tthrow new CriticalException(\"Cannot initialise the script objects\");\n\t\t}\n\t}",
"public ProcessBuilder buildCommand(File scriptFile) {\n return null;\n }",
"public String getExecutable();",
"public String getScriptID(String scriptName) throws MDSException {\r\n\r\n\t\tString scriptID = null;\r\n\t\tString key = scriptName.toUpperCase();\r\n\t\tscriptID = (String) scriptMap.get(key);\r\n\t\tif (scriptID == null || scriptID == \"\") {\r\n\t\t\tscriptID = \"\";\r\n\t\t\t//logger.warn(\"script : \" + scriptName + \" is not loaded !\");\r\n\t\t}\r\n\t\treturn scriptID;\r\n\t}",
"protected abstract String getScriptKey();"
] | [
"0.7076175",
"0.6544856",
"0.6336625",
"0.62943655",
"0.61738706",
"0.61298245",
"0.60194683",
"0.5924107",
"0.5919534",
"0.5909094",
"0.5780981",
"0.5765823",
"0.5691527",
"0.5658195",
"0.5640391",
"0.56185323",
"0.5615466",
"0.5555859",
"0.548035",
"0.5461602",
"0.5443634",
"0.5365801",
"0.5361658",
"0.5354693",
"0.53207034",
"0.5315698",
"0.5298264",
"0.5296564",
"0.52850103",
"0.5274999",
"0.52692604",
"0.5262811",
"0.52605635",
"0.52392244",
"0.5221735",
"0.5221322",
"0.5214036",
"0.52048117",
"0.51934856",
"0.51854444",
"0.5182538",
"0.5175167",
"0.5166496",
"0.5156354",
"0.5145929",
"0.51296",
"0.5088969",
"0.5081993",
"0.50644237",
"0.5051924",
"0.5043691",
"0.5029933",
"0.5022631",
"0.50192916",
"0.5005447",
"0.50023735",
"0.49812886",
"0.4965025",
"0.49510416",
"0.49430823",
"0.49355915",
"0.49261174",
"0.49150336",
"0.4865827",
"0.48594585",
"0.4858212",
"0.4855111",
"0.4844216",
"0.48334244",
"0.4832446",
"0.48190516",
"0.4811801",
"0.48093733",
"0.48071647",
"0.48051906",
"0.47919583",
"0.4786669",
"0.47861964",
"0.47849885",
"0.4775851",
"0.47755623",
"0.47533628",
"0.47524297",
"0.47495878",
"0.4745607",
"0.47385523",
"0.47192156",
"0.47162127",
"0.47117463",
"0.46937293",
"0.46921545",
"0.4690501",
"0.46864635",
"0.46699026",
"0.46661842",
"0.46616444",
"0.46597365",
"0.4650544",
"0.46458402",
"0.4642216"
] | 0.5700774 | 12 |
Path to script file to execute. Only one of Script File or Script Body may be used | public final InvokeScriptedProcessor removeScriptFile() {
properties.remove(SCRIPT_FILE_PROPERTY);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getScriptFile() {\n return properties.get(SCRIPT_FILE_PROPERTY);\n }",
"public Path getScriptLocation() {\n return getSimulationLocation().resolve(FileManager.SCRIPT_FOLDER_NAME);\n }",
"public String getScriptName() {\n if (scriptName != null) {\n return scriptName;\n }\n\n String contextPath = getContextPath();\n if (contextPath == null) contextPath = \"\";\n return scriptName = contextPath.equals(\"/\") ? \"\" : contextPath;\n }",
"public String getScriptFilePath() {\n return (scriptHistory != null) ? scriptHistory.getFilename() : null;\n }",
"public String getScript() {\n return script;\n }",
"public String getScript() { \n\t\treturn null;\n\t}",
"public String getScriptingFileName() {\n\t\treturn scriptingFileName;\n\t}",
"String getSingleLinkerScriptFile();",
"public String getScriptAsString() {\n return this.script;\n }",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"private void getScript() {\n\t\tif ((scriptFile != null) && scriptFile.exists()) {\n\t\t\tlong lm = scriptFile.lastModified();\n\t\t\tif (lm > lastModified) {\n\t\t\t\tscript = new PixelScript(scriptFile);\n\t\t\t\tlastModified = lm;\n\t\t\t}\n\t\t}\n\t\telse script = null;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return script_;\n }",
"public final InvokeScriptedProcessor setScriptFile(final String scriptFile) {\n properties.put(SCRIPT_FILE_PROPERTY, scriptFile);\n return this;\n }",
"public static File getScriptDirectory() {\n \t\treturn new File(getScriptlerHomeDirectory(), \"scripts\");\n \t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return instance.getScript();\n }",
"public static String getScriptName(final File file)\n\t{\n\t\treturn file.getName().replace(SCRIPT_EXTENSION, \"\");\n\t}",
"public String getScriptName() {\n\t\treturn scriptName;\n\t}",
"com.google.protobuf.ByteString getScript();",
"void executeScript(Readable script) throws IOException;",
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"public File[] getScriptFiles() {\n\t\treturn new File[] { scriptFile };\n\t}",
"public StaticScript script(String script) {\n this.script = script;\n return this;\n }",
"public void runScriptFileWithReceivedMessage(final String scriptFile, final IBaseMessage receivedMessage)\n\t{\n\t\tfinal Script script = getScriptObjectFromName(scriptFile);\n\t\t\n\t\tif (script != null)\n\t\t{\n\t\t\trunScriptFileParameter(script, BaseScriptManager.RECEIVED_MESSAGE_PARAMETER, receivedMessage, false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlogger.warn(\"No script file found at {}. Please check if this location is correct.\", scriptFile);\n\t\t}\n\t}",
"public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }",
"byte[] get_destination_script();",
"public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public abstract void runScript() throws Exception;",
"public void doEditScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\treq.getView(this, \"edit.jelly\").forward(req, rsp);\n \t}",
"public void runScriptFileWithMessage(final Script script, final IBaseMessage message)\n\t{\t\t\t\t\n\t\trunScriptFileParameter(script, BaseScriptManager.MESSAGE_PARAMETER, message, true);\n\t}",
"public static void createCommandScript(Path scriptPath, String command) throws CWLException {\r\n if (scriptPath != null) {\r\n File scriptFile = scriptPath.toFile();\r\n if (scriptFile.setExecutable(true)) {\r\n logger.trace(\"Set file executable attribute.\");\r\n }\r\n if (scriptFile.setReadable(true)) {\r\n logger.trace(\"Set file readable attribute.\");\r\n }\r\n if (scriptFile.setWritable(true)) {\r\n logger.trace(\"Set file writable attribute.\");\r\n }\r\n if (command != null) {\r\n write(scriptFile, command);\r\n } else {\r\n write(scriptFile, \"#!/bin/bash\");\r\n }\r\n }\r\n }",
"@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }",
"public Script getScriptObjectFromName(final String scriptFile)\n\t{\n\t\treturn scripts.get(scriptFile);\n\t}",
"public void setScriptName(String name) {\n\t\tthis.scriptName = name;\n\t}",
"protected Script getScript(String scriptName, boolean withSrc) {\n \t\tScript s = getConfiguration().getScriptByName(scriptName);\n \t\tFile scriptSrc = new File(getScriptDirectory(), scriptName);\n \t\tif (withSrc) {\n \t\t\ttry {\n \t\t\t\tReader reader = new FileReader(scriptSrc);\n \t\t\t\tString src = IOUtils.toString(reader);\n \t\t\t\ts.setScript(src);\n \t\t\t} catch (IOException e) {\n \t\t\t\tLOGGER.log(Level.SEVERE, \"not able to load sources for script [\" + scriptName + \"]\", e);\n \t\t\t}\n \t\t}\n \t\treturn s;\n \t}",
"private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }",
"private boolean isScript( String URI ) {\r\n\t\tFile file = new File( URI );\r\n\t\treturn SCRIPT_PATTERN.matcher( file.getName() ).matches();\r\n\t}",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"public void doTriggerScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"scriptName\") String scriptName,\n \t\t\t@QueryParameter(\"script\") String script, @QueryParameter(\"node\") String node) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\t// set the script info back to the request, to display it together with\n \t\t// the output.\n \t\tScript tempScript = getScript(scriptName, false);\n \t\ttempScript.setScript(script);\n \t\treq.setAttribute(\"script\", tempScript);\n \t\treq.setAttribute(\"currentNode\", node);\n \n \t\tString output = doScript(node, script);\n \t\treq.setAttribute(\"output\", output);\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"@Pure\n\tpublic String getScriptFileExtension() {\n\t\treturn this.fileExtension;\n\t}",
"Script createScript();",
"String getConstantClientScript()\n {\n if (getASPManager().isLogonPage()) return \"\";\n\n if (configfile.debug_send_js)\n return configfile.constant_client_script;\n else\n return ASPPage.SRC_SCRIPT_TAG_LEFT + getScriptsLocation(false) + configfile.clientscript_file_name + ASPPage.SRC_SCRIPT_TAG_RIGHT;\n }",
"protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}",
"private File scanForScript(final File scriptPath, final RequestMethod verb) {\n File folder = scriptPath;\n File scriptFile = null;\n while(!folder.equals(scriptRoot)) {\n if(folder.exists() && folder.isDirectory()) {\n LOGGER.info(\"Scanning {} for script with verb {}\", scriptPath, verb);\n IOFileFilter fileFileFilter = FileFilterUtils.fileFileFilter();\n IOFileFilter prefixFileFilter = FileFilterUtils.prefixFileFilter(verb.name());\n File[] matchingFiles = folder.listFiles((FilenameFilter) FileFilterUtils.and(fileFileFilter, prefixFileFilter));\n if(matchingFiles != null && matchingFiles.length >= 1) {\n scriptFile = matchingFiles[0];\n break;\n }\n }\n folder = folder.getParentFile();\n }\n if(scriptFile == null) {\n LOGGER.error(\"Could not find script for verb {} on path {}\", verb.name(), scriptPath.getAbsolutePath());\n }\n return scriptFile;\n }",
"boolean supportsScripts();",
"public void addScriptPath(String path) throws IOException {\r\n File file = new File(path);\r\n if (file.isDirectory()) {\r\n loader = new DirectoryScriptLoader(loader, file);\r\n } else if (file.isFile()) {\r\n String lowercase = path.toLowerCase();\r\n if (lowercase.endsWith(\".jar\") || lowercase.endsWith(\".zip\")) \r\n loader = new JarScriptLoader(loader, file);\r\n } else {\r\n throw new IOException(\"Cannot add scriptpath : \"+path);\r\n }\r\n }",
"protected SiteWhereScript getK8sScript(IFunctionIdentifier identifier, String tenantId, String scriptId)\n\t throws SiteWhereException {\n\tString namespace = getMicroservice().getInstanceSettings().getKubernetesNamespace();\n\tMap<String, String> labels = new HashMap<>();\n\tlabels.put(ResourceLabels.LABEL_SITEWHERE_FUNCTIONAL_AREA, identifier.getPath());\n\tlabels.put(ResourceLabels.LABEL_SITEWHERE_TENANT, tenantId);\n\tlabels.put(ResourceLabels.LABEL_SCRIPTING_SCRIPT_ID, scriptId);\n\tSiteWhereScriptList list = getMicroservice().getSiteWhereKubernetesClient().getScripts().inNamespace(namespace)\n\t\t.withLabels(labels).list();\n\tif (list.getItems().size() > 1) {\n\t throw new SiteWhereException(\"Multiple scripts found matching criteria.\");\n\t}\n\tif (list.getItems().size() == 0) {\n\t return null;\n\t}\n\treturn list.getItems().get(0);\n }",
"public final void mT__144() throws RecognitionException {\n try {\n int _type = T__144;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:144:8: ( 'scriptPath' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:144:10: 'scriptPath'\n {\n match(\"scriptPath\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public final InvokeScriptedProcessor setScriptBody(final String scriptBody) {\n properties.put(SCRIPT_BODY_PROPERTY, scriptBody);\n return this;\n }",
"public void setScriptLocations(String scriptLocations) {\r\n this.scriptLocations = scriptLocations;\r\n }",
"public void loadScript(File scriptFile) throws ScriptException, SimulationException{ \n \n try {\n theCoorInt.loadScriptFile(scriptFile);\n \n tick(0);\n theSimManagerView.resetIncidentTabs();\n theSimManagerView.resetIncidents();\n theSimManagerView.resetDiversions();\n \n loadIncidents();\n } \n catch(ScriptException se) {\n theSimManagerView.resetIncidentTabs();\n theSimManagerView.resetIncidents();\n theSimManagerView.resetDiversions();\n throw se;\n }\n catch (RemoteException re) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"loadScript\", \"Unable to communicate with the \" +\n \"CAD Simulator.\", re);\n \n throw new SimulationException(SimulationException.CAD_SIM_COMM, re);\n } \n }",
"File getExecutable();",
"private static RubyFile findRubyScript(RubyProject rubyProject, String rubyScriptName) {\r\n \t\tfor (RubyProjectElement rubyElement : rubyProject.getRubyElementsInternal()) {\r\n \t\t\tif (rubyElement.getFileExtension().equals(\"urf\")) {\r\n \t\t\t\tif (rubyElement.getName().equals(rubyScriptName)) {\r\n \t\t\t\t\treturn (RubyFile)rubyElement;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }",
"public void includeScript(String command, Vector args) throws Throwable {\n String scriptUrl = (String)args.elementAt(0);\n checkArgument(scriptUrl, \"Missing script url in \" + command);\n \n if (!scriptUrl.startsWith(\"http:\") && !scriptUrl.startsWith(\"file:\")) {\n int upCount = 0;\n while(scriptUrl.startsWith(\"..\")) {\n scriptUrl = scriptUrl.substring(\"../\".length());\n upCount++;\n }\n if (baseUrl != null) {\n String newBaseUrl = baseUrl;\n for(int i=0; i<upCount; i++) {\n int index = newBaseUrl.lastIndexOf('/');\n newBaseUrl = newBaseUrl.substring(0, index);\n }\n scriptUrl = newBaseUrl + \"/\" + scriptUrl;\n }\n }\n String tmpBaseUrl = baseUrl;\n runScriptFileI(scriptUrl, false);\n baseUrl = tmpBaseUrl;\n }",
"public void execfile(String filename) {\n }",
"public final String getScriptEngine() {\n return properties.get(SCRIPT_ENGINE_PROPERTY);\n }",
"public Object executeScript(String command);",
"public String getScriptExecution() {\n StringBuffer script = new StringBuffer(\"#!/bin/bash\\n\");\n script.append(\"if [ $# -ne \" + workflowInputTypeStates.size() + \" ]\\n\\tthen\\n\");\n script\n .append(\"\\t\\techo \\\"\" + workflowInputTypeStates.size() + \" argument(s) expected.\\\"\\n\\t\\texit\\nfi\\n\");\n int in = 1;\n for (TypeNode input : workflowInputTypeStates) {\n script.append(input.getShortNodeID() + \"=$\" + (in++) + \"\\n\");\n }\n script.append(\"\\n\");\n for (ModuleNode operation : moduleNodes) {\n String code = operation.getUsedModule().getExecutionCode();\n if (code == null || code.equals(\"\")) {\n script.append(\"\\\"Error. Tool '\" + operation.getNodeLabel() + \"' is missing the execution code.\\\"\")\n .append(\"\\n\");\n } else {\n for (int i = 0; i < operation.getInputTypes().size(); i++) {\n code = code.replace(\"@input[\" + i + \"]\", operation.getInputTypes().get(i).getShortNodeID());\n }\n for (int i = 0; i < operation.getOutputTypes().size(); i++) {\n code = code.replace(\"@output[\" + i + \"]\", operation.getOutputTypes().get(i).getShortNodeID());\n }\n script.append(code).append(\"\\n\");\n }\n }\n int out = 1;\n for (TypeNode output : workflowOutputTypeStates) {\n script.append(\"echo \\\"\" + (out++) + \". output is: $\" + output.getShortNodeID() + \"\\\"\");\n }\n\n return script.toString();\n }",
"public String getMainFilePath() {\n return primaryFile.getAbsolutePath();\n //return code[0].file.getAbsolutePath();\n }",
"@Test\n public void testGetScript_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getScript();\n\n assertEquals(\"\", result);\n }",
"public Script addScript(final ScriptDetails scriptDetails)\n\t{\n\t\tfinal File scriptFile = new File(scriptDetails.getFile());\n\t\t\n\t\tfinal Script script = new Script();\n\t\t\t\t\n\t\tcreateFileBasedScript(script, scriptFile, scriptDetails);\n\t\t\n\t\tlogger.info(\"Adding script {} at {}\", script.getName(), scriptFile.getAbsolutePath());\n\t\tscripts.put(scriptFile.getAbsolutePath(), script);\n\t\t\n\t\treturn script;\n\t}",
"static void executeShellScript(String scriptName, String value1, String value2,\n File workDirectory) throws IOSException {\n try {\n File tempFile = createTempFile(scriptName);\n\n if (value1 == null) {\n value1 = \"\";\n }\n\n if (value2 == null) {\n value2 = \"\";\n }\n\n ProcessBuilder processBuilder = new ProcessBuilder(\"sh\", tempFile.getAbsoluteFile().toString(), value1,\n value2);\n\n processBuilder.directory(workDirectory);\n CommandHelper.performCommand(processBuilder);\n } catch (IOException e) {\n e.printStackTrace();\n throw new IOSException(e);\n }\n }",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public void setScriptFileExtensions(String scriptFileExtensions) {\r\n this.scriptFileExtensions = scriptFileExtensions;\r\n }",
"public StaticScript(String name, String type, String script) {\n this.name = name;\n this.type = type;\n this.script = script;\n }",
"@Override\n\tpublic String getShinyStringServerScript() {\n\t\treturn null;\n\t}",
"public String getLogoffScript()\n {\n return configfile.logoff_script;\n }",
"java.lang.String getSourceFile();",
"public String getScriptText() {\n return scriptText;\n }",
"private void editScriptButtonActionPerformed() {\n // DEBUG CODE load the test script script\n String script = \"\";\n\n try {\n script = ScriptsDAO.getTextForBuiltInScript(\"utils/aspace/\", \"mapper.bsh\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // if we running in standalone mode in pre update 15\n if (mainFrame == null || mainFrame.getAtVersionNumber().contains(\"15\") || mainFrame.getAtVersionNumber().contains(\"16\")) {\n if (cvd == null) {\n cvd = new CodeViewerDialog(this, SyntaxConstants.SYNTAX_STYLE_JAVA, script, true, false);\n }\n\n cvd.setTitle(\"Mapper Script Editor\");\n cvd.pack();\n cvd.setVisible(true);\n } else {\n // check to see if we have a viewer dialog, if not initialize one\n if (svd == null) {\n svd = new ScriptViewerDialog(this, \"Mapper Script Editor\");\n }\n\n svd.setCurrentScript(script);\n svd.pack();\n svd.setVisible(true);\n }\n }",
"public Script(String name, String description, String path){\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.path = path + \"/\" + name + \".sh\";\n\t\t\n\t\t//TODO set image icon\n\t}",
"private void runScriptShell(Interpreter interpreter, String filePath) {\r\n\r\n\t\tint lineNumber = 1;\r\n\r\n\t\tFile file = new File(filePath);\r\n\r\n\t\tSet<String> errorMessages = new HashSet<String>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.statementScanner = new Scanner(file);\r\n\r\n\t\t\tthis.statementScanner.useDelimiter(\"(?<!\\\\\\\\);\");\r\n\r\n\t\t\twhile (this.statementScanner.hasNext()) {\r\n\r\n\t\t\t\tthis.input = this.statementScanner.next();\r\n\r\n\t\t\t\tthis.statement.parseStatement(this.input);\r\n\r\n\t\t\t\terrorMessages = statement.getErrorMessages();\r\n\r\n\t\t\t\tif (errorMessages.size() > 0) {\r\n\t\t\t\t\tSystem.out.println(\" Error on line number \" + lineNumber + \": \");\r\n\t\t\t\t\tfor (String errorMessage : errorMessages) {\r\n\r\n\t\t\t\t\t\tSystem.out.println(\" \" + errorMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tinterpreter.processStatement(this.statement);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlineNumber++;\r\n\t\t\t}\r\n\r\n\t\t\tstatementScanner.close();\r\n\t\t\t/*\r\n\t\t\t * For script input, the file is written to and saved after the script's\r\n\t\t\t * execution is complete.\r\n\t\t\t */\r\n\t\t\tinterpreter.getDisk().writeDataMapToDisk(interpreter.getMemory().getDataMap());\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\tSystem.out.println(\"Could not access the script file: \" + filePath + \"...no changes were made.\");\r\n\t\t}\r\n\r\n\t}",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"public HttpResponse doUploadScript(StaplerRequest req) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \t\ttry {\n \t\t\tFile rootDir = getScriptDirectory();\n \n \t\t\tServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory());\n \n \t\t\tFileItem fileItem = (FileItem) upload.parseRequest(req).get(0);\n \t\t\tString fileName = Util.getFileName(fileItem.getName());\n \t\t\tif (StringUtils.isEmpty(fileName)) {\n \t\t\t\treturn new HttpRedirect(\".\");\n \t\t\t}\n \t\t\tfileName = fixFileName(fileName);\n \n \t\t\tfileItem.write(new File(rootDir, fileName));\n \n \t\t\tScript script = getScript(fileName, false);\n \t\t\tif (script == null) {\n \t\t\t\tscript = new Script(fileName, \"uploaded\");\n \t\t\t}\n \n \t\t\tScriptlerConfiguration config = getConfiguration();\n \t\t\tconfig.addOrReplace(script);\n \n \t\t\treturn new HttpRedirect(\"index\");\n \t\t} catch (IOException e) {\n \t\t\tthrow e;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ServletException(e);\n \t\t}\n \t}",
"private String doScript(String node, String scriptTxt) throws IOException, ServletException {\n \n \t\tString output = \"[no output]\";\n \t\tif (node != null && scriptTxt != null) {\n \n \t\t\ttry {\n \n \t\t\t\tComputer comp = Hudson.getInstance().getComputer(node);\n\t\t\t\tif (comp == null) {\n \t\t\t\t\toutput = Messages.node_not_found(node);\n \t\t\t\t} else {\n \t\t\t\t\tif (comp.getChannel() == null) {\n \t\t\t\t\t\toutput = Messages.node_not_online(node);\n\t\t\t\t\t} else {\n \t\t\t\t\t\toutput = RemotingDiagnostics.executeGroovy(scriptTxt, comp.getChannel());\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tthrow new ServletException(e);\n \t\t\t}\n \t\t}\n \t\treturn output;\n \n \t}",
"String getExecutable();",
"void loadScript(URL url) throws IOException, ScriptRunnerException;",
"@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}",
"private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}",
"private void setScript(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n script_ = value;\n }",
"public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }",
"boolean hasScript();",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"String getScript() throws Exception {\n StringBuilder script = new StringBuilder();\n script.append(\"node('\" + remote.getNodeName() + \"') {\\n\");\n script.append(String.format(\"currentBuild.result = '%s'\\n\", this.result));\n script.append(\"step ([$class: 'CoberturaPublisher', \");\n script.append(\"coberturaReportFile: '**/coverage.xml', \");\n script.append(String.format(\"onlyStable: %s, \", this.onlyStable.toString()));\n script.append(String.format(\"failUnhealthy: %s, \", this.failUnhealthy.toString()));\n script.append(String.format(\"failUnstable: %s, \", this.failUnstable.toString()));\n if (this.lineCoverage != null) {\n script.append(String.format(\"lineCoverageTargets: '%s', \", this.lineCoverage));\n }\n if (this.branchCoverage != null) {\n script.append(String.format(\"conditionalCoverageTargets: '%s', \", this.branchCoverage));\n }\n if (this.fileCoverage != null) {\n script.append(String.format(\"fileCoverageTargets: '%s', \", this.fileCoverage));\t\t\t\t\n }\n if (this.packageCoverage != null) {\n script.append(String.format(\"packageCoverageTargets: '%s', \", this.packageCoverage));\t\t\t\t\n }\n if (this.classCoverage != null) {\n script.append(String.format(\"classCoverageTargets: '%s', \", this.classCoverage));\t\t\t\t\n }\n if (this.methodCoverage != null) {\n script.append(String.format(\"methodCoverageTargets: '%s', \", this.methodCoverage));\t\t\t\t\n }\n script.append(\"sourceEncoding: 'ASCII'])\\n\");\n script.append(\"}\");\n return script.toString();\n }",
"@Test\n public void runScript() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"runScript\", \"alert('test')\");\n }",
"static String checkJavaScriptFile(String path) throws IOException {\n\t\tProcess process = new ProcessBuilder(\"lib/jsl/jsl.exe\", \"-process\",\n\t\t\t\tpath).start();\n\n\t\t// get output from JSL\n\t\tString title = \"Checking JavaScriptFile: \" + path + \"\\n\";\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tprocess.getInputStream()));\n\n\t\tString lines = \"\";\n\t\tString line;\n\t\twhile ((line = input.readLine()) != null) {\n\t\t\tlines += line + \"\\n\";\n\t\t}\n\t\tinput.close();\n\n\t\treturn title + lines;\n\t}",
"@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n @Override\n public LuaValue call(LuaValue arg) {\n String path = arg.checkjstring();\n\n // It's fine to append your path with .lua as it follows Lua standards.\n if (path.startsWith(\"/\")) path.replaceFirst(\"/\", \"\");\n if (!path.endsWith(\".lua\")) path = path + \".lua\";\n\n // Load the script if it's already in memory for this plugin.\n LuaValue possiblyLoadedScript = g.get(\"__lukkitpackages__\").checktable().get(path);\n if (possiblyLoadedScript != null) return possiblyLoadedScript;\n\n // Get the resource as an InputStream from the plugin's resource getter\n InputStream is = plugin.getResource(path);\n if (is != null) {\n try {\n LuaValue calledScript = g.load(new InputStreamReader(is, \"UTF-8\"), path.replace(\"/\", \".\")).call();\n g.get(\"__lukkitpackages__\").checktable().set(path, calledScript);\n return calledScript;\n } catch (LukkitPluginException e) {\n e.printStackTrace();\n addError(e);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n\n throw new LukkitPluginException(\"Requested Lua file at \" + path + \" but it does not exist.\");\n }",
"public void runScript(String script, String scriptUrl) throws Throwable {\n \n int idx = 0;\n int lineNumber = 0;\n boolean onExecuted = false;\n \n //If an exception is catched the remaining lines of this script are\n //ignored\n boolean ignoreCurrentScript = false;\n \n String syntaxError = null;\n \n boolean eol;\n do {\n try {\n // The end of the command is recognized with the following\n // sequence ;( *)\\n\n StringBuffer l = new StringBuffer();\n eol = false;\n String line = null;\n while(idx<script.length()) {\n char ch = script.charAt(idx);\n l.append(ch);\n if (ch == ';') {\n eol = true;\n if (idx < script.length() - 1) {\n // This may be the end of line\n while(idx<script.length()) {\n char nextCh = script.charAt(++idx);\n if (nextCh == '\\n') {\n break;\n } else if (nextCh == ' ' || nextCh == '\\r') {\n // Keep searching\n l.append(nextCh);\n } else {\n // This is not the end of line\n l.append(nextCh);\n eol = false;\n break;\n }\n }\n } else {\n // This is the last char\n ++idx;\n }\n } else if (ch == '#' && l.length() == 1) {\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Found a comment, consuming line\");\n }\n // This line is a comment, skip everything until an EOL\n // is found\n ++idx;\n for(;idx<script.length();++idx) {\n char nextChar = script.charAt(idx);\n if (nextChar == '\\n') {\n break;\n } else {\n l.append(nextChar);\n }\n }\n eol = true;\n } else if (ch == '\\n') {\n // We found a EOL without the ;\n // This maybe an empty line that we just ignore\n String currentLine = l.toString().trim();\n if (currentLine.length() == 0) {\n l = new StringBuffer();\n } else {\n // If otherwise this is an EOL in the middle of a\n // command, we just ignore it (EOL shall be represented\n // as \\n)\n l.deleteCharAt(l.length() - 1);\n }\n }\n if (eol) {\n // Remove trailing end of line (everything after the ;)\n while(l.length() > 0 && l.charAt(l.length() - 1) != ';') {\n l.deleteCharAt(l.length() - 1);\n }\n line = l.toString();\n break;\n }\n ++idx;\n }\n \n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Executing line: \" + line);\n }\n \n if (line == null) {\n return;\n }\n \n lineNumber++;\n \n syntaxError = null;\n \n line = line.trim();\n if (line.length() > 0 && !line.startsWith(\"#\")) {\n if (line.startsWith(ON_COMMAND + \" \")) {\n // This is a conditional statement. Check if it must be\n // executed\n boolean exec = false;\n try {\n exec = checkCandidateStatement(line, onExecuted);\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n exec = false;\n }\n if (exec) {\n onExecuted = true;\n // Get the real command\n int colPos = line.indexOf(\":\");\n if (colPos == -1) {\n String msg = \"Syntax error in script, missing ':' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n if (colPos + 1 >= line.length()) {\n String msg = \"Syntax error in script, missing command in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n line = line.substring(colPos + 1);\n line = line.trim();\n } else {\n // skip the rest\n if (Log.isLoggable(Log.INFO)) {\n Log.info(TAG_LOG, \"Skipping conditional statement\");\n }\n continue;\n }\n } else {\n // Reset the conditional statement status\n onExecuted = false;\n }\n \n int parPos = line.indexOf('(');\n if (parPos == -1) {\n syntaxError = \"Syntax error in script \"\n + scriptUrl\n + \"\\nmissing '(' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(syntaxError);\n \n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n // Force this script to be terminated\n idx = script.length();\n }\n \n String command = line.substring(0, parPos);\n command = command.trim();\n String pars;\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"line=\" + line);\n }\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"parPos = \" + parPos);\n }\n if (line.endsWith(\";\")) {\n pars = line.substring(parPos, line.length() - 1);\n } else {\n pars = line.substring(parPos);\n }\n \n //Increments the test counter to\n if (BasicCommandRunner.BEGIN_TEST_COMMAND.equals(command)) {\n chainedTestsCounter++;\n if (chainedTestsCounter == 1) {\n mainTestName = pars;\n }\n } else if (BasicCommandRunner.END_TEST_COMMAND.equals(command)) {\n chainedTestsCounter--;\n if (chainedTestsCounter == 0) {\n ignoreCurrentScript = false;\n }\n }\n \n if (!ignoreCurrentScript) {\n // Extract parameters and put them into a vector\n Vector args = new Vector();\n int i = 0;\n String arg;\n do {\n arg = getParameter(pars, i++);\n if (arg != null) {\n args.addElement(arg);\n }\n } while(arg != null);\n runCommand(command, args);\n }\n }\n } catch (IgnoreScriptException ise) {\n ignoreCurrentScript = true;\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n \n StringBuffer msg = new StringBuffer();\n msg.append(\"\\nTEST FAILED: \").append(mainTestName);\n msg.append(\"\\n\\tException: \").append(t);\n msg.append(syntaxError != null ? \"\\n\\t\" + syntaxError : \"\");\n msg.append(\"\\n\\t(\").append(scriptUrl).append(\": \")\n .append(lineNumber).append(\")\");\n \n Log.error(msg.toString());\n Log.error(TAG_LOG, \"Exception details\", t);\n \n //tell the scriptrunner to ignore all of the chained tests\n //commands\n ignoreCurrentScript = true;\n \n if(stopOnFailure) {\n throw new ClientTestException(\"TEST FAILED\");\n }\n }\n } while (true);\n }",
"public static String[] getRunScriptCommand(File script) {\n\t\tString absolutePath = script.getAbsolutePath();\n\t\treturn WINDOWS ? new String[] { \"cmd\", \"/c\", absolutePath } : new String[] { \"/bin/bash\", absolutePath };\n\t}",
"public static String buildScriptResource(ResourceAttribute tsa) {\n String scriptResourceName = SysConf.getSysConf().getString(\n \"system.directory.user_workspace_dir\")\n + \"/\"\n + \"targets_scripts\"\n + \"/\"\n + tsa.getResource().getUniqueName().toLowerCase()\n + \"/\"\n + \"converters\" + \"/\" + tsa.getConverterClassName();\n return scriptResourceName;\n }",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public void addScript(String scriptFilename) {\n scriptHistory = new ScriptHistory(scriptFilename);\n }",
"private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String getBuildScriptPath() {\n\t\treturn fBuildPath;\n\t}",
"public ProcessBuilder buildCommand(File scriptFile) {\n return null;\n }",
"public void createScript(final Script script, final String scriptName)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName(\"nashorn\");\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (scriptEngine != null)\n\t\t\t{\n\t\t\t\tscript.setName(scriptName);\t\t\t\n\t\t\t\tscript.setStatusAndNotify(ScriptRunningState.NOT_STARTED);\n\t\t\t\tscript.setScriptEngine(scriptEngine);\t\t\n\t\t\t\t\n\t\t\t\tpopulateEngineVariables(script);\n\t\t\t\n//\t\t\tfinal MqttScriptIO scriptIO = new MqttScriptIO(connection, eventManager, script, executor); \n//\t\t\t//script.setScriptIO(scriptIO);\n//\t\t\t\n//\t\t\tfinal Map<String, Object> scriptVariables = new HashMap<String, Object>();\n//\t\t\t\n//\t\t\t// This should be considered deprecated\n//\t\t\tscriptVariables.put(\"mqttspy\", scriptIO);\n//\t\t\t// This should be used for general script-related actions\n//\t\t\tscriptVariables.put(\"spy\", scriptIO);\n//\t\t\t// Going forward, this should only have mqtt-specific elements, e.g. pub/sub\n//\t\t\tscriptVariables.put(\"mqtt\", scriptIO);\n//\t\t\t\n//\t\t\tscriptVariables.put(\"logger\", LoggerFactory.getLogger(ScriptRunner.class));\n//\t\t\t\n//\t\t\tfinal IMqttMessageLogIO mqttMessageLog = new MqttMessageLogIO();\n//\t\t\t// Add it to the script IO so that it gets stopped when requested\n//\t\t\tscript.addTask(mqttMessageLog);\t\t\t\n//\t\t\tscriptVariables.put(\"messageLog\", mqttMessageLog);\n//\t\t\t\n//\t\t\tputJavaVariablesIntoEngine(scriptEngine, scriptVariables);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new CriticalException(\"Cannot instantiate the nashorn javascript engine - most likely you don't have Java 8 installed. \"\n\t\t\t\t\t\t+ \"Please either disable scripts in your configuration file or install the appropriate JRE/JDK.\");\n\t\t\t}\n\t\t}\n\t\tcatch (SpyException e)\n\t\t{\n\t\t\tthrow new CriticalException(\"Cannot initialise the script objects\");\n\t\t}\n\t}",
"public String getExecutable();",
"public String getScriptID(String scriptName) throws MDSException {\r\n\r\n\t\tString scriptID = null;\r\n\t\tString key = scriptName.toUpperCase();\r\n\t\tscriptID = (String) scriptMap.get(key);\r\n\t\tif (scriptID == null || scriptID == \"\") {\r\n\t\t\tscriptID = \"\";\r\n\t\t\t//logger.warn(\"script : \" + scriptName + \" is not loaded !\");\r\n\t\t}\r\n\t\treturn scriptID;\r\n\t}",
"protected abstract String getScriptKey();"
] | [
"0.70761955",
"0.65462554",
"0.63372374",
"0.6294678",
"0.617368",
"0.612971",
"0.6019006",
"0.5924021",
"0.59196734",
"0.5908619",
"0.5778788",
"0.5765104",
"0.5699807",
"0.5692961",
"0.5657465",
"0.564017",
"0.5617648",
"0.56151503",
"0.555492",
"0.54792637",
"0.546214",
"0.5442567",
"0.53648794",
"0.53597796",
"0.53554165",
"0.5319279",
"0.5315206",
"0.5296543",
"0.52960527",
"0.5285808",
"0.52749944",
"0.5267326",
"0.5261031",
"0.5259352",
"0.5239552",
"0.5221128",
"0.5220443",
"0.521259",
"0.5204457",
"0.5193149",
"0.5184142",
"0.5180777",
"0.51740646",
"0.51657695",
"0.5157359",
"0.51446503",
"0.5131526",
"0.5090464",
"0.508099",
"0.50647044",
"0.5049302",
"0.5046929",
"0.5029277",
"0.50227",
"0.50195116",
"0.50076544",
"0.5002621",
"0.49816617",
"0.4966201",
"0.49527374",
"0.49426866",
"0.4934406",
"0.49150923",
"0.48657224",
"0.4858806",
"0.4857226",
"0.48557383",
"0.4844334",
"0.4834247",
"0.48336452",
"0.48173204",
"0.48133728",
"0.4808967",
"0.48057777",
"0.4804974",
"0.47924405",
"0.4789625",
"0.4785653",
"0.4785226",
"0.47777385",
"0.47732663",
"0.47558114",
"0.47507572",
"0.47498617",
"0.4747368",
"0.4738874",
"0.47203726",
"0.47160226",
"0.47117013",
"0.46958974",
"0.46939448",
"0.46908453",
"0.46840516",
"0.46681663",
"0.46674463",
"0.4660735",
"0.46606144",
"0.4654043",
"0.46449006",
"0.46419615"
] | 0.49249247 | 62 |
Body of script to execute. Only one of Script File or Script Body may be used | public final String getScriptBody() {
return properties.get(SCRIPT_BODY_PROPERTY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final InvokeScriptedProcessor setScriptBody(final String scriptBody) {\n properties.put(SCRIPT_BODY_PROPERTY, scriptBody);\n return this;\n }",
"public IRubyObject runScriptBody(Script script) {\n ThreadContext context = getCurrentContext();\n \n try {\n return script.__file__(context, getTopSelf(), Block.NULL_BLOCK);\n } catch (JumpException.ReturnJump rj) {\n return (IRubyObject) rj.getValue();\n }\n }",
"com.google.protobuf.ByteString getScript();",
"private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public IRubyObject runInterpreterBody(Node scriptNode) {\n assert scriptNode != null : \"scriptNode is not null\";\n assert scriptNode instanceof RootNode : \"scriptNode is not a RootNode\";\n \n return runInterpreter(((RootNode) scriptNode).getBodyNode());\n }",
"public String getScript() {\n return script;\n }",
"public String getScript() { \n\t\treturn null;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return script_;\n }",
"@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public String getScriptAsString() {\n return this.script;\n }",
"public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }",
"private TemplateBasedScriptBuilder(String scriptTemplate) {\n if (!scriptTemplate.contains(BODY_PLACEHOLDER)) {\n throw new CitrusRuntimeException(\"Invalid script template - please define '\" + \n BODY_PLACEHOLDER + \"' placeholder where your code comes in\");\n }\n \n scriptHead = scriptTemplate.substring(0, scriptTemplate.indexOf(BODY_PLACEHOLDER));\n scriptTail = scriptTemplate.substring((scriptTemplate.indexOf(BODY_PLACEHOLDER) + BODY_PLACEHOLDER.length()));\n }",
"void executeScript(Readable script) throws IOException;",
"public String getScriptText() {\n return scriptText;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return instance.getScript();\n }",
"String getScript() throws Exception {\n StringBuilder script = new StringBuilder();\n script.append(\"node('\" + remote.getNodeName() + \"') {\\n\");\n script.append(String.format(\"currentBuild.result = '%s'\\n\", this.result));\n script.append(\"step ([$class: 'CoberturaPublisher', \");\n script.append(\"coberturaReportFile: '**/coverage.xml', \");\n script.append(String.format(\"onlyStable: %s, \", this.onlyStable.toString()));\n script.append(String.format(\"failUnhealthy: %s, \", this.failUnhealthy.toString()));\n script.append(String.format(\"failUnstable: %s, \", this.failUnstable.toString()));\n if (this.lineCoverage != null) {\n script.append(String.format(\"lineCoverageTargets: '%s', \", this.lineCoverage));\n }\n if (this.branchCoverage != null) {\n script.append(String.format(\"conditionalCoverageTargets: '%s', \", this.branchCoverage));\n }\n if (this.fileCoverage != null) {\n script.append(String.format(\"fileCoverageTargets: '%s', \", this.fileCoverage));\t\t\t\t\n }\n if (this.packageCoverage != null) {\n script.append(String.format(\"packageCoverageTargets: '%s', \", this.packageCoverage));\t\t\t\t\n }\n if (this.classCoverage != null) {\n script.append(String.format(\"classCoverageTargets: '%s', \", this.classCoverage));\t\t\t\t\n }\n if (this.methodCoverage != null) {\n script.append(String.format(\"methodCoverageTargets: '%s', \", this.methodCoverage));\t\t\t\t\n }\n script.append(\"sourceEncoding: 'ASCII'])\\n\");\n script.append(\"}\");\n return script.toString();\n }",
"public abstract void runScript() throws Exception;",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"public String getScriptExecution() {\n StringBuffer script = new StringBuffer(\"#!/bin/bash\\n\");\n script.append(\"if [ $# -ne \" + workflowInputTypeStates.size() + \" ]\\n\\tthen\\n\");\n script\n .append(\"\\t\\techo \\\"\" + workflowInputTypeStates.size() + \" argument(s) expected.\\\"\\n\\t\\texit\\nfi\\n\");\n int in = 1;\n for (TypeNode input : workflowInputTypeStates) {\n script.append(input.getShortNodeID() + \"=$\" + (in++) + \"\\n\");\n }\n script.append(\"\\n\");\n for (ModuleNode operation : moduleNodes) {\n String code = operation.getUsedModule().getExecutionCode();\n if (code == null || code.equals(\"\")) {\n script.append(\"\\\"Error. Tool '\" + operation.getNodeLabel() + \"' is missing the execution code.\\\"\")\n .append(\"\\n\");\n } else {\n for (int i = 0; i < operation.getInputTypes().size(); i++) {\n code = code.replace(\"@input[\" + i + \"]\", operation.getInputTypes().get(i).getShortNodeID());\n }\n for (int i = 0; i < operation.getOutputTypes().size(); i++) {\n code = code.replace(\"@output[\" + i + \"]\", operation.getOutputTypes().get(i).getShortNodeID());\n }\n script.append(code).append(\"\\n\");\n }\n }\n int out = 1;\n for (TypeNode output : workflowOutputTypeStates) {\n script.append(\"echo \\\"\" + (out++) + \". output is: $\" + output.getShortNodeID() + \"\\\"\");\n }\n\n return script.toString();\n }",
"public static String getPostScriptHeaderContent() throws AlgorithmExecutionException { \t\r\n\t\tInputStream inStream = null;\r\n \tBufferedReader input = null;\r\n \tString line;\r\n \tString psHeaderContentinString = \"\";\r\n \r\n \ttry {\r\n URLConnection connection = PostScriptOperations.postScriptHeaderFile.openConnection();\r\n connection.setDoInput(true);\r\n inStream = connection.getInputStream();\r\n input = new BufferedReader(new InputStreamReader(inStream, \"UTF-8\"));\r\n \t\t \t\t\r\n \t while (null != (line = input.readLine())) {\r\n \t \tpsHeaderContentinString = psHeaderContentinString.concat(line).concat(\"\\n\");\r\n \t}\r\n \t} catch (IOException e) {\r\n \t\tthrow new AlgorithmExecutionException(e.getMessage(), e);\r\n \t} finally {\r\n \t\ttry {\r\n \t\t\tif (input != null) {\r\n \t\t\t\tinput.close();\r\n \t\t\t}\r\n \t if (inStream != null) { \r\n \t \tinStream.close();\r\n \t }\r\n \t } catch (IOException e) {\r\n \t e.printStackTrace();\r\n \t }\r\n \t}\r\n \t\r\n\t\treturn psHeaderContentinString;\r\n\t}",
"public final InvokeScriptedProcessor removeScriptBody() {\n properties.remove(SCRIPT_BODY_PROPERTY);\n return this;\n }",
"byte[] get_destination_script();",
"public Script build() {\n return new Script(scriptLanguage, scriptText);\n }",
"public Object executeScript(String command);",
"public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public void runScriptFileWithMessage(final Script script, final IBaseMessage message)\n\t{\t\t\t\t\n\t\trunScriptFileParameter(script, BaseScriptManager.MESSAGE_PARAMETER, message, true);\n\t}",
"private void setScript(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n script_ = value;\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"Script createScript();",
"protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}",
"@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }",
"public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }",
"public VerificationScript(byte[] script) {\n this.script = script;\n }",
"public abstract void body();",
"protected void runXmlScript(String script, String scriptUrl) throws Throwable {\n XmlPullParser parser = new KXmlParser();\n \n try {\n ByteArrayInputStream is = new ByteArrayInputStream(script.getBytes(\"UTF-8\"));\n parser.setInput(is, \"UTF-8\");\n \n // Begin parsing\n nextSkipSpaces(parser);\n // If the first tag is not the SyncML start tag, then this is an\n // invalid message\n require(parser, parser.START_TAG, null, \"Script\");\n nextSkipSpaces(parser);\n // Keep track of the nesting level depth\n nestingDepth++;\n \n String currentCommand = null;\n boolean condition = false;\n boolean evaluatedCondition = false;\n Vector args = null;\n \n boolean ignoreCurrentScript = false;\n boolean ignoreCurrentBranch = false;\n \n while (parser.getEventType() != parser.END_DOCUMENT) {\n \n // Each tag here is a command. All commands have the same\n // format:\n // <Command>\n // <Arg>arg1</Arg>\n // <Arg>arg2</Arg>\n // </Command>\n //\n // The only exception is for conditional statements\n // <Condition>\n // <If>condition</If>\n // <Then><command>...</command></Then>\n // <Else><command>...</command>/Else>\n // </Condition>\n \n if (parser.getEventType() == parser.START_TAG) {\n String tagName = parser.getName();\n \n if (\"Condition\".equals(tagName)) {\n condition = true;\n } else if (\"If\".equals(tagName)) {\n // We just read the \"<If>\" tag, now we read the rest of the condition\n // until the </If>\n nextSkipSpaces(parser);\n evaluatedCondition = evaluateCondition(parser);\n nextSkipSpaces(parser);\n require(parser, parser.END_TAG, null, \"If\");\n } else if (\"Then\".equals(tagName)) {\n if (!condition) {\n throw new ClientTestException(\"Syntax error: found Then tag without Condition\");\n }\n if (!evaluatedCondition) {\n ignoreCurrentBranch = true;\n }\n } else if (\"Else\".equals(tagName)) {\n if (!condition) {\n throw new ClientTestException(\"Syntax error: found Then tag without Condition\");\n }\n if (evaluatedCondition) {\n ignoreCurrentBranch = true;\n }\n } else {\n if (currentCommand == null) {\n currentCommand = tagName;\n args = new Vector();\n Log.trace(TAG_LOG, \"Found command \" + currentCommand);\n } else {\n // This can only be an <arg> tag\n if (\"Arg\".equals(tagName)) {\n parser.next();\n \n // Concatenate all the text tags until the end\n // of the argument\n StringBuffer arg = new StringBuffer();\n while(parser.getEventType() == parser.TEXT) {\n arg.append(parser.getText());\n parser.next();\n }\n String a = arg.toString().trim();\n Log.trace(TAG_LOG, \"Found argument \" + a);\n a = processArg(a);\n args.addElement(a);\n require(parser, parser.END_TAG, null, \"Arg\");\n }\n }\n }\n } else if (parser.getEventType() == parser.END_TAG) {\n String tagName = parser.getName();\n if (\"Condition\".equals(tagName)) {\n condition = false;\n currentCommand = null;\n ignoreCurrentBranch = false;\n } else if (tagName.equals(currentCommand)) {\n try {\n Log.trace(TAG_LOG, \"Executing accumulated command: \" + currentCommand + \",\" + ignoreCurrentScript + \",\" + ignoreCurrentBranch);\n if ((!ignoreCurrentScript && !ignoreCurrentBranch) || \"EndTest\".equals(currentCommand)) {\n runCommand(currentCommand, args);\n }\n } catch (IgnoreScriptException ise) {\n // This script must be ignored\n ignoreCurrentScript = true;\n nestingDepth = 0;\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.SKIPPED);\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n } catch (Throwable t) {\n \n Log.error(TAG_LOG, \"Error running command\", t);\n \n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.FAILURE);\n status.setDetailedError(\"Error \" + t.toString() + \" at line \" + parser.getLineNumber());\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n \n if (stopOnFailure) {\n throw t;\n } else {\n ignoreCurrentScript = true;\n nestingDepth = 0;\n }\n }\n currentCommand = null;\n } else if (\"Script\".equals(tagName)) {\n // end script found\n \n \n // If we get here and the current script is not being\n // ignored, then the execution has been successful\n if (!ignoreCurrentScript) {\n if (testKeys.get(scriptUrl) == null) {\n // This test is not a utility test, save its\n // status\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.SUCCESS);\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n }\n }\n \n if (nestingDepth == 0 && ignoreCurrentScript) {\n // The script to be ignored is completed. Start\n // execution again\n ignoreCurrentScript = false;\n }\n }\n }\n nextSkipSpaces(parser);\n }\n } catch (Exception e) {\n // This will block the entire execution\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.FAILURE);\n status.setDetailedError(\"Syntax error in file \" + scriptUrl + \" at line \" + parser.getLineNumber());\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n Log.error(TAG_LOG, \"Error parsing command\", e);\n throw new ClientTestException(\"Script syntax error\");\n }\n }",
"java.lang.String getBody();",
"private String doScript(String node, String scriptTxt) throws IOException, ServletException {\n \n \t\tString output = \"[no output]\";\n \t\tif (node != null && scriptTxt != null) {\n \n \t\t\ttry {\n \n \t\t\t\tComputer comp = Hudson.getInstance().getComputer(node);\n\t\t\t\tif (comp == null) {\n \t\t\t\t\toutput = Messages.node_not_found(node);\n \t\t\t\t} else {\n \t\t\t\t\tif (comp.getChannel() == null) {\n \t\t\t\t\t\toutput = Messages.node_not_online(node);\n\t\t\t\t\t} else {\n \t\t\t\t\t\toutput = RemotingDiagnostics.executeGroovy(scriptTxt, comp.getChannel());\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tthrow new ServletException(e);\n \t\t\t}\n \t\t}\n \t\treturn output;\n \n \t}",
"private void getScript() {\n\t\tif ((scriptFile != null) && scriptFile.exists()) {\n\t\t\tlong lm = scriptFile.lastModified();\n\t\t\tif (lm > lastModified) {\n\t\t\t\tscript = new PixelScript(scriptFile);\n\t\t\t\tlastModified = lm;\n\t\t\t}\n\t\t}\n\t\telse script = null;\n\t}",
"public static void main(String[] args) {\n\t\tString docBody = null;\n\t\tMap<String,String> parameters = new HashMap<String, String>();\n\t\tMap<String,String> persistentParameters = new HashMap<String, String>();\n\t\tList<RCCookie> cookies = new ArrayList<RequestContext.RCCookie>();\n\t\t\n\t\ttry {\n\t\t\tdocBody = new String(Files.readAllBytes(Paths.get(\"examples/zbrajanje.smscr\")), StandardCharsets.UTF_8);\n\t\t} catch (IOException e1) {\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tSmartScriptParser parser = null;\n\n\t\ttry {\n\t\t\tparser = new SmartScriptParser(docBody);\n\t\t} catch (SmartScriptParserException e) {\n\t\t\tSystem.out.println(\"Unable to parse document!\");\n\t\t\tSystem.exit(-1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"If this line ever executes, you have failed this class!\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tDocumentNode document = parser.getDocumentNode();\n\t\tparameters.put(\"a\", \"4\");\n\t\tparameters.put(\"b\", \"2\");\n\t\t\n\t\tnew SmartScriptEngine(document, new RequestContext(System.out, parameters, persistentParameters, cookies)).execute();\n\t}",
"public void doTriggerScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"scriptName\") String scriptName,\n \t\t\t@QueryParameter(\"script\") String script, @QueryParameter(\"node\") String node) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\t// set the script info back to the request, to display it together with\n \t\t// the output.\n \t\tScript tempScript = getScript(scriptName, false);\n \t\ttempScript.setScript(script);\n \t\treq.setAttribute(\"script\", tempScript);\n \t\treq.setAttribute(\"currentNode\", node);\n \n \t\tString output = doScript(node, script);\n \t\treq.setAttribute(\"output\", output);\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public void handleScript(HtmlObjects.Script t)\n {\n }",
"private String extractBodyAndScriptsFromTemplate(String html) {\n \n // Replace UID:s\n html = html.replaceAll(\"_UID_\", pid + \"__\");\n \n // Exctract script-tags\n scripts = \"\";\n int endOfPrevScript = 0;\n int nextPosToCheck = 0;\n String lc = html.toLowerCase();\n String res = \"\";\n int scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n while (scriptStart > 0) {\n res += html.substring(endOfPrevScript, scriptStart);\n scriptStart = lc.indexOf(\">\", scriptStart);\n int j = lc.indexOf(\"</script>\", scriptStart);\n scripts += html.substring(scriptStart + 1, j) + \";\";\n nextPosToCheck = endOfPrevScript = j + \"</script>\".length();\n scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n }\n res += html.substring(endOfPrevScript);\n \n // Extract body\n html = res;\n lc = html.toLowerCase();\n int startOfBody = lc.indexOf(\"<body\");\n if (startOfBody < 0) {\n res = html;\n } else {\n res = \"\";\n startOfBody = lc.indexOf(\">\", startOfBody) + 1;\n int endOfBody = lc.indexOf(\"</body>\", startOfBody);\n if (endOfBody > startOfBody) {\n res = html.substring(startOfBody, endOfBody);\n } else {\n res = html.substring(startOfBody);\n }\n }\n \n return res;\n }",
"public void createScript(final Script script, final String scriptName)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName(\"nashorn\");\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (scriptEngine != null)\n\t\t\t{\n\t\t\t\tscript.setName(scriptName);\t\t\t\n\t\t\t\tscript.setStatusAndNotify(ScriptRunningState.NOT_STARTED);\n\t\t\t\tscript.setScriptEngine(scriptEngine);\t\t\n\t\t\t\t\n\t\t\t\tpopulateEngineVariables(script);\n\t\t\t\n//\t\t\tfinal MqttScriptIO scriptIO = new MqttScriptIO(connection, eventManager, script, executor); \n//\t\t\t//script.setScriptIO(scriptIO);\n//\t\t\t\n//\t\t\tfinal Map<String, Object> scriptVariables = new HashMap<String, Object>();\n//\t\t\t\n//\t\t\t// This should be considered deprecated\n//\t\t\tscriptVariables.put(\"mqttspy\", scriptIO);\n//\t\t\t// This should be used for general script-related actions\n//\t\t\tscriptVariables.put(\"spy\", scriptIO);\n//\t\t\t// Going forward, this should only have mqtt-specific elements, e.g. pub/sub\n//\t\t\tscriptVariables.put(\"mqtt\", scriptIO);\n//\t\t\t\n//\t\t\tscriptVariables.put(\"logger\", LoggerFactory.getLogger(ScriptRunner.class));\n//\t\t\t\n//\t\t\tfinal IMqttMessageLogIO mqttMessageLog = new MqttMessageLogIO();\n//\t\t\t// Add it to the script IO so that it gets stopped when requested\n//\t\t\tscript.addTask(mqttMessageLog);\t\t\t\n//\t\t\tscriptVariables.put(\"messageLog\", mqttMessageLog);\n//\t\t\t\n//\t\t\tputJavaVariablesIntoEngine(scriptEngine, scriptVariables);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new CriticalException(\"Cannot instantiate the nashorn javascript engine - most likely you don't have Java 8 installed. \"\n\t\t\t\t\t\t+ \"Please either disable scripts in your configuration file or install the appropriate JRE/JDK.\");\n\t\t\t}\n\t\t}\n\t\tcatch (SpyException e)\n\t\t{\n\t\t\tthrow new CriticalException(\"Cannot initialise the script objects\");\n\t\t}\n\t}",
"public interface ExecuteScriptCallback extends CallbackBase {\n\n /**\n * Override this method with the code you want to run after executing script service\n *\n * @param data Result to script\n * @param e NCMBException from NIFTY Cloud mobile backend\n */\n void done(byte[] data, NCMBException e);\n}",
"public String makeVerificationScript()\n {\n return weaveFreemarker(verificationTemplate, scriptParameters);\n }",
"public void runScript(String script, String scriptUrl) throws Throwable {\n \n int idx = 0;\n int lineNumber = 0;\n boolean onExecuted = false;\n \n //If an exception is catched the remaining lines of this script are\n //ignored\n boolean ignoreCurrentScript = false;\n \n String syntaxError = null;\n \n boolean eol;\n do {\n try {\n // The end of the command is recognized with the following\n // sequence ;( *)\\n\n StringBuffer l = new StringBuffer();\n eol = false;\n String line = null;\n while(idx<script.length()) {\n char ch = script.charAt(idx);\n l.append(ch);\n if (ch == ';') {\n eol = true;\n if (idx < script.length() - 1) {\n // This may be the end of line\n while(idx<script.length()) {\n char nextCh = script.charAt(++idx);\n if (nextCh == '\\n') {\n break;\n } else if (nextCh == ' ' || nextCh == '\\r') {\n // Keep searching\n l.append(nextCh);\n } else {\n // This is not the end of line\n l.append(nextCh);\n eol = false;\n break;\n }\n }\n } else {\n // This is the last char\n ++idx;\n }\n } else if (ch == '#' && l.length() == 1) {\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Found a comment, consuming line\");\n }\n // This line is a comment, skip everything until an EOL\n // is found\n ++idx;\n for(;idx<script.length();++idx) {\n char nextChar = script.charAt(idx);\n if (nextChar == '\\n') {\n break;\n } else {\n l.append(nextChar);\n }\n }\n eol = true;\n } else if (ch == '\\n') {\n // We found a EOL without the ;\n // This maybe an empty line that we just ignore\n String currentLine = l.toString().trim();\n if (currentLine.length() == 0) {\n l = new StringBuffer();\n } else {\n // If otherwise this is an EOL in the middle of a\n // command, we just ignore it (EOL shall be represented\n // as \\n)\n l.deleteCharAt(l.length() - 1);\n }\n }\n if (eol) {\n // Remove trailing end of line (everything after the ;)\n while(l.length() > 0 && l.charAt(l.length() - 1) != ';') {\n l.deleteCharAt(l.length() - 1);\n }\n line = l.toString();\n break;\n }\n ++idx;\n }\n \n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Executing line: \" + line);\n }\n \n if (line == null) {\n return;\n }\n \n lineNumber++;\n \n syntaxError = null;\n \n line = line.trim();\n if (line.length() > 0 && !line.startsWith(\"#\")) {\n if (line.startsWith(ON_COMMAND + \" \")) {\n // This is a conditional statement. Check if it must be\n // executed\n boolean exec = false;\n try {\n exec = checkCandidateStatement(line, onExecuted);\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n exec = false;\n }\n if (exec) {\n onExecuted = true;\n // Get the real command\n int colPos = line.indexOf(\":\");\n if (colPos == -1) {\n String msg = \"Syntax error in script, missing ':' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n if (colPos + 1 >= line.length()) {\n String msg = \"Syntax error in script, missing command in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n line = line.substring(colPos + 1);\n line = line.trim();\n } else {\n // skip the rest\n if (Log.isLoggable(Log.INFO)) {\n Log.info(TAG_LOG, \"Skipping conditional statement\");\n }\n continue;\n }\n } else {\n // Reset the conditional statement status\n onExecuted = false;\n }\n \n int parPos = line.indexOf('(');\n if (parPos == -1) {\n syntaxError = \"Syntax error in script \"\n + scriptUrl\n + \"\\nmissing '(' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(syntaxError);\n \n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n // Force this script to be terminated\n idx = script.length();\n }\n \n String command = line.substring(0, parPos);\n command = command.trim();\n String pars;\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"line=\" + line);\n }\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"parPos = \" + parPos);\n }\n if (line.endsWith(\";\")) {\n pars = line.substring(parPos, line.length() - 1);\n } else {\n pars = line.substring(parPos);\n }\n \n //Increments the test counter to\n if (BasicCommandRunner.BEGIN_TEST_COMMAND.equals(command)) {\n chainedTestsCounter++;\n if (chainedTestsCounter == 1) {\n mainTestName = pars;\n }\n } else if (BasicCommandRunner.END_TEST_COMMAND.equals(command)) {\n chainedTestsCounter--;\n if (chainedTestsCounter == 0) {\n ignoreCurrentScript = false;\n }\n }\n \n if (!ignoreCurrentScript) {\n // Extract parameters and put them into a vector\n Vector args = new Vector();\n int i = 0;\n String arg;\n do {\n arg = getParameter(pars, i++);\n if (arg != null) {\n args.addElement(arg);\n }\n } while(arg != null);\n runCommand(command, args);\n }\n }\n } catch (IgnoreScriptException ise) {\n ignoreCurrentScript = true;\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n \n StringBuffer msg = new StringBuffer();\n msg.append(\"\\nTEST FAILED: \").append(mainTestName);\n msg.append(\"\\n\\tException: \").append(t);\n msg.append(syntaxError != null ? \"\\n\\t\" + syntaxError : \"\");\n msg.append(\"\\n\\t(\").append(scriptUrl).append(\": \")\n .append(lineNumber).append(\")\");\n \n Log.error(msg.toString());\n Log.error(TAG_LOG, \"Exception details\", t);\n \n //tell the scriptrunner to ignore all of the chained tests\n //commands\n ignoreCurrentScript = true;\n \n if(stopOnFailure) {\n throw new ClientTestException(\"TEST FAILED\");\n }\n }\n } while (true);\n }",
"public StaticScript script(String script) {\n this.script = script;\n return this;\n }",
"public interface Script {\n\n /**\n * @return true if the game is over\n */\n boolean isFinished();\n\n /**\n * Perform according to the event.\n * @param event interpreter output event.\n * @return result of perform.\n */\n Answer perform(final String event);\n}",
"private String extractBodyAndScriptsFromTemplate(String html) {\n \t\t\n \t\t// Exctract script-tags\n \t\tscripts =\"\";\n \t\tint endOfPrevScript = 0;\n \t\tint nextPosToCheck = 0;\n \t\tString lc = html.toLowerCase();\n \t\tString res = \"\";\n \t\tint scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n \t\twhile (scriptStart > 0) {\n \t\t\tres += html.substring(endOfPrevScript, scriptStart);\n \t\t\tscriptStart = lc.indexOf(\">\", scriptStart);\n \t\t\tint j = lc.indexOf(\"</script>\",scriptStart);\n \t\t\tscripts += html.substring(scriptStart+1,j) + \";\";\n \t\t\tnextPosToCheck = endOfPrevScript = j + \"</script>\".length();\n \t\t\tscriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n \t\t}\n \t\tres += html.substring(endOfPrevScript);\n \t\t\n \t\t// Extract body\n \t\thtml = res;\n \t\tlc = html.toLowerCase();\n \t\tint startOfBody = lc.indexOf(\"<body\");\n \t\tif (startOfBody < 0) {\n \t\t\tres = html;\n \t\t} else {\n \t\t\tres = \"\";\n \t\t\tstartOfBody = lc.indexOf(\">\",startOfBody)+1;\n \t\t\tint endOfBody = lc.indexOf(\"</body>\",startOfBody);\n \t\t\tif (endOfBody > startOfBody)\n \t\t\t\tres = html.substring(startOfBody,endOfBody);\n \t\t\telse \n \t\t\t\tres = html.substring(startOfBody);\n\t\t}\n \t\t\n \t\treturn res;\n \t}",
"public String getBody() {\r\n return body;\r\n }",
"@Override\n\tpublic void doFunction(String[] zInput) throws Exception {\n\t\tMessage msg = getResponseMessage(ConsensusTxn.CONSENSUS_TXNSCRIPT);\n\t\tmsg.addInteger(\"transaction\", Integer.parseInt(zInput[1]));\n\t\tmsg.addString(\"script\", zInput[2]);\n\t\tmsg.addString(\"proof\", zInput[3]);\n\t\t\t\t\n\t\tgetMainHandler().getConsensusHandler().PostMessage(msg);\n\t}",
"private String js() throws IOException {\n String outputLine;\n File path = new File(\"src/main/resources/app.js\");\n FileReader fileReader = new FileReader(path);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n outputLine = \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/javascript \\r\\n\"\n + \"\\r\\n\";\n String inputLine;\n while ((inputLine=bufferedReader.readLine()) != null){\n outputLine += inputLine + \"\\n\";\n }\n return outputLine;\n }",
"public VerificationScript() {\n script = new byte[0];\n }",
"public ScriptBuilder setScriptText(String scriptText) {\n this.scriptText = scriptText;\n return this;\n }",
"private void sendLoadScript(String script, boolean partial) {\n String request;\n String response;\n\n synchronized(this) {\n request = globalApi.openDoc(appName);\n System.out.println(\"OpenDoc request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"OpenDoc response: \" + response);\n JsonResponse jsonResponse = new JsonResponse(response);\n int qHandle;\n if (jsonResponse.isError()) {\n System.out.println(jsonResponse.getError());\n } else {\n qHandle = jsonResponse.getqHandle();\n request = docApi.setScript(qHandle, script);\n System.out.println(String.format(\"SetScript request: Length(%d) %s\",\n request.length(), request.substring(1, min(request.length(), 256))));\n response = qlikSocket.sendMessage(request);\n System.out.println(\"SetScript response: \" + response);\n if (jsonResponse.isError()) {\n System.out.println(jsonResponse.getError());\n } else {\n request = docApi.doReload(qHandle, 0, partial, false);\n System.out.println(\"DoReload request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"DoReload response: \" + response);\n request = docApi.doSave(qHandle);\n System.out.println(\"DoSave request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"DoSave response: \" + response);\n }\n\n }\n }\n }",
"boolean supportsScripts();",
"public void setBody(String body) {\r\n this.body = body;\r\n }",
"public StaticScript(String name, String type, String script) {\n this.name = name;\n this.type = type;\n this.script = script;\n }",
"InternalResponseBehavior executeScript(ResourceConfig config, Map<String, Object> bindings);",
"@Override\r\n public String evaluateScriptOutput() throws IOException {\r\n return getPythonHandler().getPythonOutput();\r\n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"public void setBody(String body)\n {\n this.body = body;\n }",
"private Result processScript() throws IOException, HsqlException {\n\n String token = tokenizer.getString();\n ScriptWriterText dsw = null;\n\n session.checkAdmin();\n\n try {\n if (tokenizer.wasValue()) {\n if (tokenizer.getType() != Types.VARCHAR) {\n throw Trace.error(Trace.INVALID_IDENTIFIER);\n }\n\n dsw = new ScriptWriterText(database, token, true, true, true);\n\n dsw.writeAll();\n\n return new Result(ResultConstants.UPDATECOUNT);\n } else {\n tokenizer.back();\n\n return DatabaseScript.getScript(database, false);\n }\n } finally {\n if (dsw != null) {\n dsw.close();\n }\n }\n }",
"public interface IScript {\n\n}",
"public String getBody_() {\n return body_;\n }",
"private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }",
"ScriptImpl(ScriptFragmentImpl sigScript, ScriptFragmentImpl pubScript, KeyFactory keyFactory)\n {\n // Copy together the two scripts creating the combined script\n this(mergeArrays(sigScript.toByteArray(), pubScript.toByteArray()), keyFactory, sigScript.toByteArray().length);\n \n // Save the script fragments to be able to detect special transaction types like P2SH (BIP0016)\n this.sigScript = sigScript;\n this.pubScript = pubScript;\n }",
"@Override\n\tpublic ArrayList<String> exe(String cmdBody) throws Exception {\n\t\treturn null;\n\t}",
"public static Script parse(String scriptText) {\n Parse scriptBuilder = create(scriptText);\n scriptBuilder.throwIfError();\n return scriptBuilder.script;\n }",
"public void doEditScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\treq.getView(this, \"edit.jelly\").forward(req, rsp);\n \t}",
"@Override\n public String runOperation(CallingContext context, RaptureScript script, String ctx, Map<String, Object> params) {\n try {\n ScriptEngine engine = engineRef.get();\n CompiledScript cScript = getOperationScript(engine, script);\n addStandardContext(context, engine);\n engine.put(PARAMS, params);\n engine.put(CTX, ctx);\n Kernel.getKernel().getStat().registerRunScript();\n return JacksonUtil.jsonFromObject(cScript.eval());\n } catch (ScriptException e) {\n Kernel.writeAuditEntry(EXCEPTION, 2, e.getMessage());\n throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, \"Error running script \" + script.getName(), e);\n }\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"public void setBody(String body) {\n this.body = body;\n }",
"@Test\n public void testGetScript_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getScript();\n\n assertEquals(\"\", result);\n }",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"private native void eval(String script) /*-{\n \t try {\n \t eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n \t } catch (e) {\n \t }\n \t }-*/;",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"public String getBodySql(String table)\r\n \t{\r\n \t\treturn \"select BODY from \" + table + \" where ( RESOURCE_ID = ? )\";\r\n \t}",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public static void main(String[] args) {\n\t\tif (args.length != 1) {\n\t\t\tSystem.err.println(\n\t\t\t\t\"Please provide only one argument (document filepath).\"\n\t\t\t);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString docBody = null;\n\t\ttry {\n\t\t\tdocBody = new String(\n\t\t\t\tFiles.readAllBytes(Paths.get(args[0]))\n\t\t\t);\n\t\t} catch (IOException e1) {\n\t\t\tSystem.err.println(\"Invalid document filepath.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tSmartScriptParser parser = null;\n\t\t\n\t\ttry {\n\t\t\tparser = new SmartScriptParser(docBody);\n\t\t} catch (SmartScriptParserException e) {\n\t\t\tSystem.out.println(\"Unable to parse document!\");\n\t\t\tSystem.exit(-1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\"If this line ever executes, you have failed this class!\"\n\t\t\t);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\tDocumentNode document = parser.getDocumentNode();\n\t\tString originalDocumentBody = createOriginalDocumentBody(document);\n\t\t\n\t\t// should write something like original content of docBody\n\t\tSystem.out.println(originalDocumentBody);\n\t}",
"private static native void eval(String script)\n /*-{\n try {\n \t if (script != null) \n eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n } catch (e) {\n }\n }-*/;",
"public String getBody(){\n return bodiesText;\n }",
"public String getBody()\n {\n return body;\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected void execute()\n {\n // Display the dialog and wait for the close action (the user\n // selects the Okay button or the script execution completes\n // and a Cancel button is issued)\n int option = cancelDialog.showMessageDialog(dialog,\n \"<html><b>Script execution in progress...<br><br>\"\n + CcddUtilities.colorHTMLText(\"*** Press </i>Halt<i> \"\n + \"to terminate script execution ***\",\n Color.RED),\n \"Script Executing\",\n JOptionPane.ERROR_MESSAGE,\n DialogOption.HALT_OPTION);\n\n // Check if the script execution was terminated by the user and\n // that the script is still executing\n if (option == OK_BUTTON && scriptThread.isAlive())\n {\n // Forcibly stop script execution. Note: this method is\n // deprecated due to inherent issues that can occur when a\n // thread is abruptly stopped. However, the stop method is\n // the only manner in which the script can be terminated\n // (without additional code within the script itself, which\n // cannot be assumed since the scripts are user-generated).\n // There shouldn't be a potential for object corruption in\n // the application since it doesn't reference any objects\n // created by a script\n scriptThread.stop();\n\n // Set the execution status(es) to indicate the scripts\n // didn't complete\n isBad = new boolean[associations.size()];\n Arrays.fill(isBad, true);\n }\n }",
"public void executeScript() throws Exception {\n\n nav.ChangeCountry(\"India\");\n nav.SearchFor(\"\");\n pdp.AddToBag();\n pdp.EnterBag();\n bag.CheckOut();\n lgn.LoginWith(\"user@s5a.com\");\n\n\n\n }",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"private void addGroovyScriptMultiJob() {\r\n\t\tString html_text = \"\";\r\n\t\tString html_newline = \"\";\r\n\r\n if (getOptionHTMLBuildDesc().equalsIgnoreCase(\"HTML\")) {\r\n html_text = \".html\";\r\n html_newline = \"<br>\";\r\n } else {\r\n html_text = \".txt\";\r\n html_newline = \"\\\\n\";\r\n }\r\n String script =\r\n\"import hudson.FilePath\\n\" +\r\n\"\\n\" +\r\n\"FilePath fp_c = new FilePath(manager.build.getWorkspace(),'CombinedReport\" + html_text + \"')\\n\" +\r\n\"FilePath fp_f = new FilePath(manager.build.getWorkspace(),'@PROJECT_BASE@_full_report\" + html_text + \"')\\n\" +\r\n\"\\n\" +\r\n\"if (fp_c.exists() && fp_f.exists())\\n\" +\r\n// Must put HTML in createSummary and not description. Description will be truncated\r\n// and shown in Build history on left and cause corruption in the display, particularly\r\n// if using 'anything-goes-formatter'\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"monitor.png\\\").appendText(fp_c.readToString() + \\\"\" + html_newline + \"\\\" + fp_f.readToString(), false)\\n\" +\r\n\"}\\n\" +\r\n\"else\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"General Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\" manager.build.description = \\\"General Failure, Incremental Build Report or Full Report Not Present. Please see the console for more information\\\"\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"General Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n script = StringUtils.replace(script, \"@PROJECT_BASE@\", getBaseName());\r\n\r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n getTopProject().getPublishersList().add(groovy);\r\n }",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"protected boolean isScriptBlock() {\n return this.scriptBlock;\n }",
"public void executeScript() throws Exception {\n\t\tnav.SearchFor(\"\");\n\t\tnav.ClickNavigationLinks(TopNavLinks.WOMENSAPPAREL);\n\t\tprp.RefineByColor(\"Black\");\n\t\tprp.RefineBySize(\"Medium\");\n\t\tprp.ClickFirstItem();\n\t}",
"private static native void eval(String script)\n /*-{\n try {\n if (script == null) return;\n $wnd.eval(script);\n } catch (e) {\n }\n }-*/;"
] | [
"0.65525055",
"0.6478562",
"0.62831044",
"0.6273895",
"0.6208288",
"0.6099896",
"0.6096918",
"0.60275626",
"0.6022763",
"0.60172325",
"0.59947765",
"0.5955805",
"0.5898999",
"0.5896719",
"0.5855685",
"0.5806623",
"0.57761276",
"0.56336886",
"0.5532999",
"0.55222714",
"0.55183053",
"0.5506749",
"0.5478051",
"0.54764557",
"0.54733366",
"0.5368814",
"0.5345444",
"0.53085995",
"0.5305956",
"0.5304459",
"0.5304459",
"0.5304459",
"0.5304459",
"0.52730006",
"0.52372605",
"0.5226655",
"0.52184373",
"0.52131695",
"0.520589",
"0.5201454",
"0.5188524",
"0.5185905",
"0.5182167",
"0.5146864",
"0.514678",
"0.51444876",
"0.5140441",
"0.5127789",
"0.51069456",
"0.5104696",
"0.507687",
"0.50764275",
"0.50639695",
"0.5050468",
"0.5050236",
"0.5036415",
"0.50354975",
"0.5032715",
"0.5019049",
"0.5006902",
"0.50026166",
"0.4996972",
"0.49902698",
"0.4988525",
"0.4984555",
"0.49833092",
"0.49797082",
"0.49718463",
"0.49689505",
"0.49650598",
"0.49635062",
"0.4962836",
"0.49612862",
"0.49598944",
"0.49579537",
"0.49570116",
"0.49557006",
"0.49544778",
"0.49518967",
"0.4950128",
"0.49450898",
"0.49410948",
"0.49266696",
"0.4919327",
"0.4917468",
"0.49133062",
"0.49133062",
"0.49133062",
"0.490701",
"0.4876639",
"0.4848875",
"0.48430425",
"0.48425257",
"0.48386312",
"0.4837678",
"0.48368543",
"0.48364845",
"0.4836235",
"0.48339316",
"0.48192474"
] | 0.72340816 | 0 |
Body of script to execute. Only one of Script File or Script Body may be used | public final InvokeScriptedProcessor setScriptBody(final String scriptBody) {
properties.put(SCRIPT_BODY_PROPERTY, scriptBody);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"public IRubyObject runScriptBody(Script script) {\n ThreadContext context = getCurrentContext();\n \n try {\n return script.__file__(context, getTopSelf(), Block.NULL_BLOCK);\n } catch (JumpException.ReturnJump rj) {\n return (IRubyObject) rj.getValue();\n }\n }",
"com.google.protobuf.ByteString getScript();",
"private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public IRubyObject runInterpreterBody(Node scriptNode) {\n assert scriptNode != null : \"scriptNode is not null\";\n assert scriptNode instanceof RootNode : \"scriptNode is not a RootNode\";\n \n return runInterpreter(((RootNode) scriptNode).getBodyNode());\n }",
"public String getScript() {\n return script;\n }",
"public String getScript() { \n\t\treturn null;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return script_;\n }",
"@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public String getScriptAsString() {\n return this.script;\n }",
"public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }",
"private TemplateBasedScriptBuilder(String scriptTemplate) {\n if (!scriptTemplate.contains(BODY_PLACEHOLDER)) {\n throw new CitrusRuntimeException(\"Invalid script template - please define '\" + \n BODY_PLACEHOLDER + \"' placeholder where your code comes in\");\n }\n \n scriptHead = scriptTemplate.substring(0, scriptTemplate.indexOf(BODY_PLACEHOLDER));\n scriptTail = scriptTemplate.substring((scriptTemplate.indexOf(BODY_PLACEHOLDER) + BODY_PLACEHOLDER.length()));\n }",
"void executeScript(Readable script) throws IOException;",
"public String getScriptText() {\n return scriptText;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return instance.getScript();\n }",
"String getScript() throws Exception {\n StringBuilder script = new StringBuilder();\n script.append(\"node('\" + remote.getNodeName() + \"') {\\n\");\n script.append(String.format(\"currentBuild.result = '%s'\\n\", this.result));\n script.append(\"step ([$class: 'CoberturaPublisher', \");\n script.append(\"coberturaReportFile: '**/coverage.xml', \");\n script.append(String.format(\"onlyStable: %s, \", this.onlyStable.toString()));\n script.append(String.format(\"failUnhealthy: %s, \", this.failUnhealthy.toString()));\n script.append(String.format(\"failUnstable: %s, \", this.failUnstable.toString()));\n if (this.lineCoverage != null) {\n script.append(String.format(\"lineCoverageTargets: '%s', \", this.lineCoverage));\n }\n if (this.branchCoverage != null) {\n script.append(String.format(\"conditionalCoverageTargets: '%s', \", this.branchCoverage));\n }\n if (this.fileCoverage != null) {\n script.append(String.format(\"fileCoverageTargets: '%s', \", this.fileCoverage));\t\t\t\t\n }\n if (this.packageCoverage != null) {\n script.append(String.format(\"packageCoverageTargets: '%s', \", this.packageCoverage));\t\t\t\t\n }\n if (this.classCoverage != null) {\n script.append(String.format(\"classCoverageTargets: '%s', \", this.classCoverage));\t\t\t\t\n }\n if (this.methodCoverage != null) {\n script.append(String.format(\"methodCoverageTargets: '%s', \", this.methodCoverage));\t\t\t\t\n }\n script.append(\"sourceEncoding: 'ASCII'])\\n\");\n script.append(\"}\");\n return script.toString();\n }",
"public abstract void runScript() throws Exception;",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"public String getScriptExecution() {\n StringBuffer script = new StringBuffer(\"#!/bin/bash\\n\");\n script.append(\"if [ $# -ne \" + workflowInputTypeStates.size() + \" ]\\n\\tthen\\n\");\n script\n .append(\"\\t\\techo \\\"\" + workflowInputTypeStates.size() + \" argument(s) expected.\\\"\\n\\t\\texit\\nfi\\n\");\n int in = 1;\n for (TypeNode input : workflowInputTypeStates) {\n script.append(input.getShortNodeID() + \"=$\" + (in++) + \"\\n\");\n }\n script.append(\"\\n\");\n for (ModuleNode operation : moduleNodes) {\n String code = operation.getUsedModule().getExecutionCode();\n if (code == null || code.equals(\"\")) {\n script.append(\"\\\"Error. Tool '\" + operation.getNodeLabel() + \"' is missing the execution code.\\\"\")\n .append(\"\\n\");\n } else {\n for (int i = 0; i < operation.getInputTypes().size(); i++) {\n code = code.replace(\"@input[\" + i + \"]\", operation.getInputTypes().get(i).getShortNodeID());\n }\n for (int i = 0; i < operation.getOutputTypes().size(); i++) {\n code = code.replace(\"@output[\" + i + \"]\", operation.getOutputTypes().get(i).getShortNodeID());\n }\n script.append(code).append(\"\\n\");\n }\n }\n int out = 1;\n for (TypeNode output : workflowOutputTypeStates) {\n script.append(\"echo \\\"\" + (out++) + \". output is: $\" + output.getShortNodeID() + \"\\\"\");\n }\n\n return script.toString();\n }",
"public static String getPostScriptHeaderContent() throws AlgorithmExecutionException { \t\r\n\t\tInputStream inStream = null;\r\n \tBufferedReader input = null;\r\n \tString line;\r\n \tString psHeaderContentinString = \"\";\r\n \r\n \ttry {\r\n URLConnection connection = PostScriptOperations.postScriptHeaderFile.openConnection();\r\n connection.setDoInput(true);\r\n inStream = connection.getInputStream();\r\n input = new BufferedReader(new InputStreamReader(inStream, \"UTF-8\"));\r\n \t\t \t\t\r\n \t while (null != (line = input.readLine())) {\r\n \t \tpsHeaderContentinString = psHeaderContentinString.concat(line).concat(\"\\n\");\r\n \t}\r\n \t} catch (IOException e) {\r\n \t\tthrow new AlgorithmExecutionException(e.getMessage(), e);\r\n \t} finally {\r\n \t\ttry {\r\n \t\t\tif (input != null) {\r\n \t\t\t\tinput.close();\r\n \t\t\t}\r\n \t if (inStream != null) { \r\n \t \tinStream.close();\r\n \t }\r\n \t } catch (IOException e) {\r\n \t e.printStackTrace();\r\n \t }\r\n \t}\r\n \t\r\n\t\treturn psHeaderContentinString;\r\n\t}",
"byte[] get_destination_script();",
"public final InvokeScriptedProcessor removeScriptBody() {\n properties.remove(SCRIPT_BODY_PROPERTY);\n return this;\n }",
"public Script build() {\n return new Script(scriptLanguage, scriptText);\n }",
"public Object executeScript(String command);",
"public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public void runScriptFileWithMessage(final Script script, final IBaseMessage message)\n\t{\t\t\t\t\n\t\trunScriptFileParameter(script, BaseScriptManager.MESSAGE_PARAMETER, message, true);\n\t}",
"private void setScript(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n script_ = value;\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"Script createScript();",
"protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}",
"@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }",
"public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }",
"public VerificationScript(byte[] script) {\n this.script = script;\n }",
"public abstract void body();",
"protected void runXmlScript(String script, String scriptUrl) throws Throwable {\n XmlPullParser parser = new KXmlParser();\n \n try {\n ByteArrayInputStream is = new ByteArrayInputStream(script.getBytes(\"UTF-8\"));\n parser.setInput(is, \"UTF-8\");\n \n // Begin parsing\n nextSkipSpaces(parser);\n // If the first tag is not the SyncML start tag, then this is an\n // invalid message\n require(parser, parser.START_TAG, null, \"Script\");\n nextSkipSpaces(parser);\n // Keep track of the nesting level depth\n nestingDepth++;\n \n String currentCommand = null;\n boolean condition = false;\n boolean evaluatedCondition = false;\n Vector args = null;\n \n boolean ignoreCurrentScript = false;\n boolean ignoreCurrentBranch = false;\n \n while (parser.getEventType() != parser.END_DOCUMENT) {\n \n // Each tag here is a command. All commands have the same\n // format:\n // <Command>\n // <Arg>arg1</Arg>\n // <Arg>arg2</Arg>\n // </Command>\n //\n // The only exception is for conditional statements\n // <Condition>\n // <If>condition</If>\n // <Then><command>...</command></Then>\n // <Else><command>...</command>/Else>\n // </Condition>\n \n if (parser.getEventType() == parser.START_TAG) {\n String tagName = parser.getName();\n \n if (\"Condition\".equals(tagName)) {\n condition = true;\n } else if (\"If\".equals(tagName)) {\n // We just read the \"<If>\" tag, now we read the rest of the condition\n // until the </If>\n nextSkipSpaces(parser);\n evaluatedCondition = evaluateCondition(parser);\n nextSkipSpaces(parser);\n require(parser, parser.END_TAG, null, \"If\");\n } else if (\"Then\".equals(tagName)) {\n if (!condition) {\n throw new ClientTestException(\"Syntax error: found Then tag without Condition\");\n }\n if (!evaluatedCondition) {\n ignoreCurrentBranch = true;\n }\n } else if (\"Else\".equals(tagName)) {\n if (!condition) {\n throw new ClientTestException(\"Syntax error: found Then tag without Condition\");\n }\n if (evaluatedCondition) {\n ignoreCurrentBranch = true;\n }\n } else {\n if (currentCommand == null) {\n currentCommand = tagName;\n args = new Vector();\n Log.trace(TAG_LOG, \"Found command \" + currentCommand);\n } else {\n // This can only be an <arg> tag\n if (\"Arg\".equals(tagName)) {\n parser.next();\n \n // Concatenate all the text tags until the end\n // of the argument\n StringBuffer arg = new StringBuffer();\n while(parser.getEventType() == parser.TEXT) {\n arg.append(parser.getText());\n parser.next();\n }\n String a = arg.toString().trim();\n Log.trace(TAG_LOG, \"Found argument \" + a);\n a = processArg(a);\n args.addElement(a);\n require(parser, parser.END_TAG, null, \"Arg\");\n }\n }\n }\n } else if (parser.getEventType() == parser.END_TAG) {\n String tagName = parser.getName();\n if (\"Condition\".equals(tagName)) {\n condition = false;\n currentCommand = null;\n ignoreCurrentBranch = false;\n } else if (tagName.equals(currentCommand)) {\n try {\n Log.trace(TAG_LOG, \"Executing accumulated command: \" + currentCommand + \",\" + ignoreCurrentScript + \",\" + ignoreCurrentBranch);\n if ((!ignoreCurrentScript && !ignoreCurrentBranch) || \"EndTest\".equals(currentCommand)) {\n runCommand(currentCommand, args);\n }\n } catch (IgnoreScriptException ise) {\n // This script must be ignored\n ignoreCurrentScript = true;\n nestingDepth = 0;\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.SKIPPED);\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n } catch (Throwable t) {\n \n Log.error(TAG_LOG, \"Error running command\", t);\n \n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.FAILURE);\n status.setDetailedError(\"Error \" + t.toString() + \" at line \" + parser.getLineNumber());\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n \n if (stopOnFailure) {\n throw t;\n } else {\n ignoreCurrentScript = true;\n nestingDepth = 0;\n }\n }\n currentCommand = null;\n } else if (\"Script\".equals(tagName)) {\n // end script found\n \n \n // If we get here and the current script is not being\n // ignored, then the execution has been successful\n if (!ignoreCurrentScript) {\n if (testKeys.get(scriptUrl) == null) {\n // This test is not a utility test, save its\n // status\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.SUCCESS);\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n }\n }\n \n if (nestingDepth == 0 && ignoreCurrentScript) {\n // The script to be ignored is completed. Start\n // execution again\n ignoreCurrentScript = false;\n }\n }\n }\n nextSkipSpaces(parser);\n }\n } catch (Exception e) {\n // This will block the entire execution\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.FAILURE);\n status.setDetailedError(\"Syntax error in file \" + scriptUrl + \" at line \" + parser.getLineNumber());\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n Log.error(TAG_LOG, \"Error parsing command\", e);\n throw new ClientTestException(\"Script syntax error\");\n }\n }",
"private String doScript(String node, String scriptTxt) throws IOException, ServletException {\n \n \t\tString output = \"[no output]\";\n \t\tif (node != null && scriptTxt != null) {\n \n \t\t\ttry {\n \n \t\t\t\tComputer comp = Hudson.getInstance().getComputer(node);\n\t\t\t\tif (comp == null) {\n \t\t\t\t\toutput = Messages.node_not_found(node);\n \t\t\t\t} else {\n \t\t\t\t\tif (comp.getChannel() == null) {\n \t\t\t\t\t\toutput = Messages.node_not_online(node);\n\t\t\t\t\t} else {\n \t\t\t\t\t\toutput = RemotingDiagnostics.executeGroovy(scriptTxt, comp.getChannel());\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tthrow new ServletException(e);\n \t\t\t}\n \t\t}\n \t\treturn output;\n \n \t}",
"java.lang.String getBody();",
"private void getScript() {\n\t\tif ((scriptFile != null) && scriptFile.exists()) {\n\t\t\tlong lm = scriptFile.lastModified();\n\t\t\tif (lm > lastModified) {\n\t\t\t\tscript = new PixelScript(scriptFile);\n\t\t\t\tlastModified = lm;\n\t\t\t}\n\t\t}\n\t\telse script = null;\n\t}",
"public void doTriggerScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"scriptName\") String scriptName,\n \t\t\t@QueryParameter(\"script\") String script, @QueryParameter(\"node\") String node) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\t// set the script info back to the request, to display it together with\n \t\t// the output.\n \t\tScript tempScript = getScript(scriptName, false);\n \t\ttempScript.setScript(script);\n \t\treq.setAttribute(\"script\", tempScript);\n \t\treq.setAttribute(\"currentNode\", node);\n \n \t\tString output = doScript(node, script);\n \t\treq.setAttribute(\"output\", output);\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public static void main(String[] args) {\n\t\tString docBody = null;\n\t\tMap<String,String> parameters = new HashMap<String, String>();\n\t\tMap<String,String> persistentParameters = new HashMap<String, String>();\n\t\tList<RCCookie> cookies = new ArrayList<RequestContext.RCCookie>();\n\t\t\n\t\ttry {\n\t\t\tdocBody = new String(Files.readAllBytes(Paths.get(\"examples/zbrajanje.smscr\")), StandardCharsets.UTF_8);\n\t\t} catch (IOException e1) {\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tSmartScriptParser parser = null;\n\n\t\ttry {\n\t\t\tparser = new SmartScriptParser(docBody);\n\t\t} catch (SmartScriptParserException e) {\n\t\t\tSystem.out.println(\"Unable to parse document!\");\n\t\t\tSystem.exit(-1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"If this line ever executes, you have failed this class!\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tDocumentNode document = parser.getDocumentNode();\n\t\tparameters.put(\"a\", \"4\");\n\t\tparameters.put(\"b\", \"2\");\n\t\t\n\t\tnew SmartScriptEngine(document, new RequestContext(System.out, parameters, persistentParameters, cookies)).execute();\n\t}",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public void handleScript(HtmlObjects.Script t)\n {\n }",
"private String extractBodyAndScriptsFromTemplate(String html) {\n \n // Replace UID:s\n html = html.replaceAll(\"_UID_\", pid + \"__\");\n \n // Exctract script-tags\n scripts = \"\";\n int endOfPrevScript = 0;\n int nextPosToCheck = 0;\n String lc = html.toLowerCase();\n String res = \"\";\n int scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n while (scriptStart > 0) {\n res += html.substring(endOfPrevScript, scriptStart);\n scriptStart = lc.indexOf(\">\", scriptStart);\n int j = lc.indexOf(\"</script>\", scriptStart);\n scripts += html.substring(scriptStart + 1, j) + \";\";\n nextPosToCheck = endOfPrevScript = j + \"</script>\".length();\n scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n }\n res += html.substring(endOfPrevScript);\n \n // Extract body\n html = res;\n lc = html.toLowerCase();\n int startOfBody = lc.indexOf(\"<body\");\n if (startOfBody < 0) {\n res = html;\n } else {\n res = \"\";\n startOfBody = lc.indexOf(\">\", startOfBody) + 1;\n int endOfBody = lc.indexOf(\"</body>\", startOfBody);\n if (endOfBody > startOfBody) {\n res = html.substring(startOfBody, endOfBody);\n } else {\n res = html.substring(startOfBody);\n }\n }\n \n return res;\n }",
"public void createScript(final Script script, final String scriptName)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName(\"nashorn\");\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (scriptEngine != null)\n\t\t\t{\n\t\t\t\tscript.setName(scriptName);\t\t\t\n\t\t\t\tscript.setStatusAndNotify(ScriptRunningState.NOT_STARTED);\n\t\t\t\tscript.setScriptEngine(scriptEngine);\t\t\n\t\t\t\t\n\t\t\t\tpopulateEngineVariables(script);\n\t\t\t\n//\t\t\tfinal MqttScriptIO scriptIO = new MqttScriptIO(connection, eventManager, script, executor); \n//\t\t\t//script.setScriptIO(scriptIO);\n//\t\t\t\n//\t\t\tfinal Map<String, Object> scriptVariables = new HashMap<String, Object>();\n//\t\t\t\n//\t\t\t// This should be considered deprecated\n//\t\t\tscriptVariables.put(\"mqttspy\", scriptIO);\n//\t\t\t// This should be used for general script-related actions\n//\t\t\tscriptVariables.put(\"spy\", scriptIO);\n//\t\t\t// Going forward, this should only have mqtt-specific elements, e.g. pub/sub\n//\t\t\tscriptVariables.put(\"mqtt\", scriptIO);\n//\t\t\t\n//\t\t\tscriptVariables.put(\"logger\", LoggerFactory.getLogger(ScriptRunner.class));\n//\t\t\t\n//\t\t\tfinal IMqttMessageLogIO mqttMessageLog = new MqttMessageLogIO();\n//\t\t\t// Add it to the script IO so that it gets stopped when requested\n//\t\t\tscript.addTask(mqttMessageLog);\t\t\t\n//\t\t\tscriptVariables.put(\"messageLog\", mqttMessageLog);\n//\t\t\t\n//\t\t\tputJavaVariablesIntoEngine(scriptEngine, scriptVariables);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new CriticalException(\"Cannot instantiate the nashorn javascript engine - most likely you don't have Java 8 installed. \"\n\t\t\t\t\t\t+ \"Please either disable scripts in your configuration file or install the appropriate JRE/JDK.\");\n\t\t\t}\n\t\t}\n\t\tcatch (SpyException e)\n\t\t{\n\t\t\tthrow new CriticalException(\"Cannot initialise the script objects\");\n\t\t}\n\t}",
"public interface ExecuteScriptCallback extends CallbackBase {\n\n /**\n * Override this method with the code you want to run after executing script service\n *\n * @param data Result to script\n * @param e NCMBException from NIFTY Cloud mobile backend\n */\n void done(byte[] data, NCMBException e);\n}",
"public String makeVerificationScript()\n {\n return weaveFreemarker(verificationTemplate, scriptParameters);\n }",
"public void runScript(String script, String scriptUrl) throws Throwable {\n \n int idx = 0;\n int lineNumber = 0;\n boolean onExecuted = false;\n \n //If an exception is catched the remaining lines of this script are\n //ignored\n boolean ignoreCurrentScript = false;\n \n String syntaxError = null;\n \n boolean eol;\n do {\n try {\n // The end of the command is recognized with the following\n // sequence ;( *)\\n\n StringBuffer l = new StringBuffer();\n eol = false;\n String line = null;\n while(idx<script.length()) {\n char ch = script.charAt(idx);\n l.append(ch);\n if (ch == ';') {\n eol = true;\n if (idx < script.length() - 1) {\n // This may be the end of line\n while(idx<script.length()) {\n char nextCh = script.charAt(++idx);\n if (nextCh == '\\n') {\n break;\n } else if (nextCh == ' ' || nextCh == '\\r') {\n // Keep searching\n l.append(nextCh);\n } else {\n // This is not the end of line\n l.append(nextCh);\n eol = false;\n break;\n }\n }\n } else {\n // This is the last char\n ++idx;\n }\n } else if (ch == '#' && l.length() == 1) {\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Found a comment, consuming line\");\n }\n // This line is a comment, skip everything until an EOL\n // is found\n ++idx;\n for(;idx<script.length();++idx) {\n char nextChar = script.charAt(idx);\n if (nextChar == '\\n') {\n break;\n } else {\n l.append(nextChar);\n }\n }\n eol = true;\n } else if (ch == '\\n') {\n // We found a EOL without the ;\n // This maybe an empty line that we just ignore\n String currentLine = l.toString().trim();\n if (currentLine.length() == 0) {\n l = new StringBuffer();\n } else {\n // If otherwise this is an EOL in the middle of a\n // command, we just ignore it (EOL shall be represented\n // as \\n)\n l.deleteCharAt(l.length() - 1);\n }\n }\n if (eol) {\n // Remove trailing end of line (everything after the ;)\n while(l.length() > 0 && l.charAt(l.length() - 1) != ';') {\n l.deleteCharAt(l.length() - 1);\n }\n line = l.toString();\n break;\n }\n ++idx;\n }\n \n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Executing line: \" + line);\n }\n \n if (line == null) {\n return;\n }\n \n lineNumber++;\n \n syntaxError = null;\n \n line = line.trim();\n if (line.length() > 0 && !line.startsWith(\"#\")) {\n if (line.startsWith(ON_COMMAND + \" \")) {\n // This is a conditional statement. Check if it must be\n // executed\n boolean exec = false;\n try {\n exec = checkCandidateStatement(line, onExecuted);\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n exec = false;\n }\n if (exec) {\n onExecuted = true;\n // Get the real command\n int colPos = line.indexOf(\":\");\n if (colPos == -1) {\n String msg = \"Syntax error in script, missing ':' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n if (colPos + 1 >= line.length()) {\n String msg = \"Syntax error in script, missing command in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n line = line.substring(colPos + 1);\n line = line.trim();\n } else {\n // skip the rest\n if (Log.isLoggable(Log.INFO)) {\n Log.info(TAG_LOG, \"Skipping conditional statement\");\n }\n continue;\n }\n } else {\n // Reset the conditional statement status\n onExecuted = false;\n }\n \n int parPos = line.indexOf('(');\n if (parPos == -1) {\n syntaxError = \"Syntax error in script \"\n + scriptUrl\n + \"\\nmissing '(' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(syntaxError);\n \n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n // Force this script to be terminated\n idx = script.length();\n }\n \n String command = line.substring(0, parPos);\n command = command.trim();\n String pars;\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"line=\" + line);\n }\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"parPos = \" + parPos);\n }\n if (line.endsWith(\";\")) {\n pars = line.substring(parPos, line.length() - 1);\n } else {\n pars = line.substring(parPos);\n }\n \n //Increments the test counter to\n if (BasicCommandRunner.BEGIN_TEST_COMMAND.equals(command)) {\n chainedTestsCounter++;\n if (chainedTestsCounter == 1) {\n mainTestName = pars;\n }\n } else if (BasicCommandRunner.END_TEST_COMMAND.equals(command)) {\n chainedTestsCounter--;\n if (chainedTestsCounter == 0) {\n ignoreCurrentScript = false;\n }\n }\n \n if (!ignoreCurrentScript) {\n // Extract parameters and put them into a vector\n Vector args = new Vector();\n int i = 0;\n String arg;\n do {\n arg = getParameter(pars, i++);\n if (arg != null) {\n args.addElement(arg);\n }\n } while(arg != null);\n runCommand(command, args);\n }\n }\n } catch (IgnoreScriptException ise) {\n ignoreCurrentScript = true;\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n \n StringBuffer msg = new StringBuffer();\n msg.append(\"\\nTEST FAILED: \").append(mainTestName);\n msg.append(\"\\n\\tException: \").append(t);\n msg.append(syntaxError != null ? \"\\n\\t\" + syntaxError : \"\");\n msg.append(\"\\n\\t(\").append(scriptUrl).append(\": \")\n .append(lineNumber).append(\")\");\n \n Log.error(msg.toString());\n Log.error(TAG_LOG, \"Exception details\", t);\n \n //tell the scriptrunner to ignore all of the chained tests\n //commands\n ignoreCurrentScript = true;\n \n if(stopOnFailure) {\n throw new ClientTestException(\"TEST FAILED\");\n }\n }\n } while (true);\n }",
"public StaticScript script(String script) {\n this.script = script;\n return this;\n }",
"public interface Script {\n\n /**\n * @return true if the game is over\n */\n boolean isFinished();\n\n /**\n * Perform according to the event.\n * @param event interpreter output event.\n * @return result of perform.\n */\n Answer perform(final String event);\n}",
"private String extractBodyAndScriptsFromTemplate(String html) {\n \t\t\n \t\t// Exctract script-tags\n \t\tscripts =\"\";\n \t\tint endOfPrevScript = 0;\n \t\tint nextPosToCheck = 0;\n \t\tString lc = html.toLowerCase();\n \t\tString res = \"\";\n \t\tint scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n \t\twhile (scriptStart > 0) {\n \t\t\tres += html.substring(endOfPrevScript, scriptStart);\n \t\t\tscriptStart = lc.indexOf(\">\", scriptStart);\n \t\t\tint j = lc.indexOf(\"</script>\",scriptStart);\n \t\t\tscripts += html.substring(scriptStart+1,j) + \";\";\n \t\t\tnextPosToCheck = endOfPrevScript = j + \"</script>\".length();\n \t\t\tscriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n \t\t}\n \t\tres += html.substring(endOfPrevScript);\n \t\t\n \t\t// Extract body\n \t\thtml = res;\n \t\tlc = html.toLowerCase();\n \t\tint startOfBody = lc.indexOf(\"<body\");\n \t\tif (startOfBody < 0) {\n \t\t\tres = html;\n \t\t} else {\n \t\t\tres = \"\";\n \t\t\tstartOfBody = lc.indexOf(\">\",startOfBody)+1;\n \t\t\tint endOfBody = lc.indexOf(\"</body>\",startOfBody);\n \t\t\tif (endOfBody > startOfBody)\n \t\t\t\tres = html.substring(startOfBody,endOfBody);\n \t\t\telse \n \t\t\t\tres = html.substring(startOfBody);\n\t\t}\n \t\t\n \t\treturn res;\n \t}",
"@Override\n\tpublic void doFunction(String[] zInput) throws Exception {\n\t\tMessage msg = getResponseMessage(ConsensusTxn.CONSENSUS_TXNSCRIPT);\n\t\tmsg.addInteger(\"transaction\", Integer.parseInt(zInput[1]));\n\t\tmsg.addString(\"script\", zInput[2]);\n\t\tmsg.addString(\"proof\", zInput[3]);\n\t\t\t\t\n\t\tgetMainHandler().getConsensusHandler().PostMessage(msg);\n\t}",
"public String getBody() {\r\n return body;\r\n }",
"private String js() throws IOException {\n String outputLine;\n File path = new File(\"src/main/resources/app.js\");\n FileReader fileReader = new FileReader(path);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n outputLine = \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/javascript \\r\\n\"\n + \"\\r\\n\";\n String inputLine;\n while ((inputLine=bufferedReader.readLine()) != null){\n outputLine += inputLine + \"\\n\";\n }\n return outputLine;\n }",
"public VerificationScript() {\n script = new byte[0];\n }",
"public ScriptBuilder setScriptText(String scriptText) {\n this.scriptText = scriptText;\n return this;\n }",
"private void sendLoadScript(String script, boolean partial) {\n String request;\n String response;\n\n synchronized(this) {\n request = globalApi.openDoc(appName);\n System.out.println(\"OpenDoc request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"OpenDoc response: \" + response);\n JsonResponse jsonResponse = new JsonResponse(response);\n int qHandle;\n if (jsonResponse.isError()) {\n System.out.println(jsonResponse.getError());\n } else {\n qHandle = jsonResponse.getqHandle();\n request = docApi.setScript(qHandle, script);\n System.out.println(String.format(\"SetScript request: Length(%d) %s\",\n request.length(), request.substring(1, min(request.length(), 256))));\n response = qlikSocket.sendMessage(request);\n System.out.println(\"SetScript response: \" + response);\n if (jsonResponse.isError()) {\n System.out.println(jsonResponse.getError());\n } else {\n request = docApi.doReload(qHandle, 0, partial, false);\n System.out.println(\"DoReload request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"DoReload response: \" + response);\n request = docApi.doSave(qHandle);\n System.out.println(\"DoSave request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"DoSave response: \" + response);\n }\n\n }\n }\n }",
"boolean supportsScripts();",
"public StaticScript(String name, String type, String script) {\n this.name = name;\n this.type = type;\n this.script = script;\n }",
"public void setBody(String body) {\r\n this.body = body;\r\n }",
"InternalResponseBehavior executeScript(ResourceConfig config, Map<String, Object> bindings);",
"@Override\r\n public String evaluateScriptOutput() throws IOException {\r\n return getPythonHandler().getPythonOutput();\r\n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"private Result processScript() throws IOException, HsqlException {\n\n String token = tokenizer.getString();\n ScriptWriterText dsw = null;\n\n session.checkAdmin();\n\n try {\n if (tokenizer.wasValue()) {\n if (tokenizer.getType() != Types.VARCHAR) {\n throw Trace.error(Trace.INVALID_IDENTIFIER);\n }\n\n dsw = new ScriptWriterText(database, token, true, true, true);\n\n dsw.writeAll();\n\n return new Result(ResultConstants.UPDATECOUNT);\n } else {\n tokenizer.back();\n\n return DatabaseScript.getScript(database, false);\n }\n } finally {\n if (dsw != null) {\n dsw.close();\n }\n }\n }",
"public void setBody(String body)\n {\n this.body = body;\n }",
"public interface IScript {\n\n}",
"private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }",
"public String getBody_() {\n return body_;\n }",
"@Override\n\tpublic ArrayList<String> exe(String cmdBody) throws Exception {\n\t\treturn null;\n\t}",
"ScriptImpl(ScriptFragmentImpl sigScript, ScriptFragmentImpl pubScript, KeyFactory keyFactory)\n {\n // Copy together the two scripts creating the combined script\n this(mergeArrays(sigScript.toByteArray(), pubScript.toByteArray()), keyFactory, sigScript.toByteArray().length);\n \n // Save the script fragments to be able to detect special transaction types like P2SH (BIP0016)\n this.sigScript = sigScript;\n this.pubScript = pubScript;\n }",
"public static Script parse(String scriptText) {\n Parse scriptBuilder = create(scriptText);\n scriptBuilder.throwIfError();\n return scriptBuilder.script;\n }",
"public void doEditScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\treq.getView(this, \"edit.jelly\").forward(req, rsp);\n \t}",
"@Override\n public String runOperation(CallingContext context, RaptureScript script, String ctx, Map<String, Object> params) {\n try {\n ScriptEngine engine = engineRef.get();\n CompiledScript cScript = getOperationScript(engine, script);\n addStandardContext(context, engine);\n engine.put(PARAMS, params);\n engine.put(CTX, ctx);\n Kernel.getKernel().getStat().registerRunScript();\n return JacksonUtil.jsonFromObject(cScript.eval());\n } catch (ScriptException e) {\n Kernel.writeAuditEntry(EXCEPTION, 2, e.getMessage());\n throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, \"Error running script \" + script.getName(), e);\n }\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"@Test\n public void testGetScript_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getScript();\n\n assertEquals(\"\", result);\n }",
"public void setBody(String body) {\n this.body = body;\n }",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"private native void eval(String script) /*-{\n \t try {\n \t eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n \t } catch (e) {\n \t }\n \t }-*/;",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"public String getBodySql(String table)\r\n \t{\r\n \t\treturn \"select BODY from \" + table + \" where ( RESOURCE_ID = ? )\";\r\n \t}",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public static void main(String[] args) {\n\t\tif (args.length != 1) {\n\t\t\tSystem.err.println(\n\t\t\t\t\"Please provide only one argument (document filepath).\"\n\t\t\t);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString docBody = null;\n\t\ttry {\n\t\t\tdocBody = new String(\n\t\t\t\tFiles.readAllBytes(Paths.get(args[0]))\n\t\t\t);\n\t\t} catch (IOException e1) {\n\t\t\tSystem.err.println(\"Invalid document filepath.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tSmartScriptParser parser = null;\n\t\t\n\t\ttry {\n\t\t\tparser = new SmartScriptParser(docBody);\n\t\t} catch (SmartScriptParserException e) {\n\t\t\tSystem.out.println(\"Unable to parse document!\");\n\t\t\tSystem.exit(-1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\"If this line ever executes, you have failed this class!\"\n\t\t\t);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\tDocumentNode document = parser.getDocumentNode();\n\t\tString originalDocumentBody = createOriginalDocumentBody(document);\n\t\t\n\t\t// should write something like original content of docBody\n\t\tSystem.out.println(originalDocumentBody);\n\t}",
"private static native void eval(String script)\n /*-{\n try {\n \t if (script != null) \n eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n } catch (e) {\n }\n }-*/;",
"public String getBody(){\n return bodiesText;\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected void execute()\n {\n // Display the dialog and wait for the close action (the user\n // selects the Okay button or the script execution completes\n // and a Cancel button is issued)\n int option = cancelDialog.showMessageDialog(dialog,\n \"<html><b>Script execution in progress...<br><br>\"\n + CcddUtilities.colorHTMLText(\"*** Press </i>Halt<i> \"\n + \"to terminate script execution ***\",\n Color.RED),\n \"Script Executing\",\n JOptionPane.ERROR_MESSAGE,\n DialogOption.HALT_OPTION);\n\n // Check if the script execution was terminated by the user and\n // that the script is still executing\n if (option == OK_BUTTON && scriptThread.isAlive())\n {\n // Forcibly stop script execution. Note: this method is\n // deprecated due to inherent issues that can occur when a\n // thread is abruptly stopped. However, the stop method is\n // the only manner in which the script can be terminated\n // (without additional code within the script itself, which\n // cannot be assumed since the scripts are user-generated).\n // There shouldn't be a potential for object corruption in\n // the application since it doesn't reference any objects\n // created by a script\n scriptThread.stop();\n\n // Set the execution status(es) to indicate the scripts\n // didn't complete\n isBad = new boolean[associations.size()];\n Arrays.fill(isBad, true);\n }\n }",
"public String getBody()\n {\n return body;\n }",
"public void executeScript() throws Exception {\n\n nav.ChangeCountry(\"India\");\n nav.SearchFor(\"\");\n pdp.AddToBag();\n pdp.EnterBag();\n bag.CheckOut();\n lgn.LoginWith(\"user@s5a.com\");\n\n\n\n }",
"private void addGroovyScriptMultiJob() {\r\n\t\tString html_text = \"\";\r\n\t\tString html_newline = \"\";\r\n\r\n if (getOptionHTMLBuildDesc().equalsIgnoreCase(\"HTML\")) {\r\n html_text = \".html\";\r\n html_newline = \"<br>\";\r\n } else {\r\n html_text = \".txt\";\r\n html_newline = \"\\\\n\";\r\n }\r\n String script =\r\n\"import hudson.FilePath\\n\" +\r\n\"\\n\" +\r\n\"FilePath fp_c = new FilePath(manager.build.getWorkspace(),'CombinedReport\" + html_text + \"')\\n\" +\r\n\"FilePath fp_f = new FilePath(manager.build.getWorkspace(),'@PROJECT_BASE@_full_report\" + html_text + \"')\\n\" +\r\n\"\\n\" +\r\n\"if (fp_c.exists() && fp_f.exists())\\n\" +\r\n// Must put HTML in createSummary and not description. Description will be truncated\r\n// and shown in Build history on left and cause corruption in the display, particularly\r\n// if using 'anything-goes-formatter'\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"monitor.png\\\").appendText(fp_c.readToString() + \\\"\" + html_newline + \"\\\" + fp_f.readToString(), false)\\n\" +\r\n\"}\\n\" +\r\n\"else\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"General Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\" manager.build.description = \\\"General Failure, Incremental Build Report or Full Report Not Present. Please see the console for more information\\\"\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"General Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n script = StringUtils.replace(script, \"@PROJECT_BASE@\", getBaseName());\r\n\r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n getTopProject().getPublishersList().add(groovy);\r\n }",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"protected boolean isScriptBlock() {\n return this.scriptBlock;\n }",
"public void executeScript() throws Exception {\n\t\tnav.SearchFor(\"\");\n\t\tnav.ClickNavigationLinks(TopNavLinks.WOMENSAPPAREL);\n\t\tprp.RefineByColor(\"Black\");\n\t\tprp.RefineBySize(\"Medium\");\n\t\tprp.ClickFirstItem();\n\t}",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"@EventListener\n public void scriptResultWriting(ScriptLaunched scriptLaunched){\n Long id = scriptLaunched.getEventData();\n logger.info(\"script with id: \" + id + \" launched\");\n // run task for script with id\n }"
] | [
"0.7233719",
"0.64769834",
"0.6284261",
"0.6273364",
"0.6206147",
"0.610175",
"0.6098698",
"0.60288936",
"0.60232717",
"0.60170656",
"0.5996842",
"0.59557164",
"0.5897306",
"0.5897257",
"0.5856728",
"0.58080924",
"0.5777763",
"0.5634165",
"0.55324465",
"0.5524103",
"0.55213565",
"0.5507105",
"0.54782754",
"0.5475924",
"0.54733837",
"0.53708535",
"0.53468174",
"0.53089786",
"0.5305437",
"0.5302849",
"0.5302849",
"0.5302849",
"0.5302849",
"0.52738494",
"0.5238102",
"0.52270937",
"0.52190083",
"0.5212688",
"0.52033544",
"0.52016777",
"0.5187769",
"0.5187024",
"0.5184222",
"0.5148115",
"0.51468796",
"0.51460624",
"0.5140406",
"0.5127415",
"0.51073766",
"0.5104636",
"0.5077235",
"0.5077053",
"0.5065119",
"0.5050477",
"0.5049962",
"0.5035349",
"0.5034477",
"0.50324833",
"0.50184256",
"0.50068825",
"0.50012887",
"0.49969804",
"0.4990133",
"0.4987765",
"0.49847087",
"0.4983911",
"0.49781007",
"0.49696633",
"0.49693462",
"0.49654576",
"0.49639753",
"0.49617276",
"0.49612412",
"0.49608424",
"0.4958453",
"0.49583685",
"0.49566033",
"0.495277",
"0.49519902",
"0.49493945",
"0.4945255",
"0.49394664",
"0.49250618",
"0.49195144",
"0.49172744",
"0.49113357",
"0.49113357",
"0.49113357",
"0.49066672",
"0.48746946",
"0.48474526",
"0.48428398",
"0.4841091",
"0.48394907",
"0.48375762",
"0.48364213",
"0.48348263",
"0.48347825",
"0.48346752",
"0.48191702"
] | 0.6550877 | 1 |
Body of script to execute. Only one of Script File or Script Body may be used | public final InvokeScriptedProcessor removeScriptBody() {
properties.remove(SCRIPT_BODY_PROPERTY);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"public final InvokeScriptedProcessor setScriptBody(final String scriptBody) {\n properties.put(SCRIPT_BODY_PROPERTY, scriptBody);\n return this;\n }",
"public IRubyObject runScriptBody(Script script) {\n ThreadContext context = getCurrentContext();\n \n try {\n return script.__file__(context, getTopSelf(), Block.NULL_BLOCK);\n } catch (JumpException.ReturnJump rj) {\n return (IRubyObject) rj.getValue();\n }\n }",
"com.google.protobuf.ByteString getScript();",
"private int executeScript() throws ServerException {\r\n\t\tCGIOutputStreamReader cin = new CGIHandler().sendScript( request );\r\n\t\tBufferedOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tint headerStringLen = cin.getHeaderStringSize();\r\n\t\t\tbyte[] content = cin.readBodyContent();\r\n\t\t\tint contentLength = content.length - headerStringLen;\r\n\t\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.OK ).buildContentLength(\r\n\t\t\t\t\tcontentLength ).toString();\r\n\r\n\t\t\tout = new BufferedOutputStream( outStream );\r\n\t\t\tout.write( headerMessage.getBytes( \"UTF-8\" ) );\r\n\t\t\tout.write( content );\r\n\t\t\tout.flush();\r\n\t\t\treturn ResponseTable.OK;\r\n\r\n\t\t} catch ( IOException ioe ) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tcin.close();\r\n\t\t\t} catch ( Exception ioe ) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public IRubyObject runInterpreterBody(Node scriptNode) {\n assert scriptNode != null : \"scriptNode is not null\";\n assert scriptNode instanceof RootNode : \"scriptNode is not a RootNode\";\n \n return runInterpreter(((RootNode) scriptNode).getBodyNode());\n }",
"public String getScript() {\n return script;\n }",
"public String getScript() { \n\t\treturn null;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return script_;\n }",
"@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}",
"Value eval(String script, String name, String contentType, boolean interactive) throws Exception;",
"public String getScriptAsString() {\n return this.script;\n }",
"public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }",
"void executeScript(Readable script) throws IOException;",
"private TemplateBasedScriptBuilder(String scriptTemplate) {\n if (!scriptTemplate.contains(BODY_PLACEHOLDER)) {\n throw new CitrusRuntimeException(\"Invalid script template - please define '\" + \n BODY_PLACEHOLDER + \"' placeholder where your code comes in\");\n }\n \n scriptHead = scriptTemplate.substring(0, scriptTemplate.indexOf(BODY_PLACEHOLDER));\n scriptTail = scriptTemplate.substring((scriptTemplate.indexOf(BODY_PLACEHOLDER) + BODY_PLACEHOLDER.length()));\n }",
"public String getScriptText() {\n return scriptText;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getScript() {\n return instance.getScript();\n }",
"String getScript() throws Exception {\n StringBuilder script = new StringBuilder();\n script.append(\"node('\" + remote.getNodeName() + \"') {\\n\");\n script.append(String.format(\"currentBuild.result = '%s'\\n\", this.result));\n script.append(\"step ([$class: 'CoberturaPublisher', \");\n script.append(\"coberturaReportFile: '**/coverage.xml', \");\n script.append(String.format(\"onlyStable: %s, \", this.onlyStable.toString()));\n script.append(String.format(\"failUnhealthy: %s, \", this.failUnhealthy.toString()));\n script.append(String.format(\"failUnstable: %s, \", this.failUnstable.toString()));\n if (this.lineCoverage != null) {\n script.append(String.format(\"lineCoverageTargets: '%s', \", this.lineCoverage));\n }\n if (this.branchCoverage != null) {\n script.append(String.format(\"conditionalCoverageTargets: '%s', \", this.branchCoverage));\n }\n if (this.fileCoverage != null) {\n script.append(String.format(\"fileCoverageTargets: '%s', \", this.fileCoverage));\t\t\t\t\n }\n if (this.packageCoverage != null) {\n script.append(String.format(\"packageCoverageTargets: '%s', \", this.packageCoverage));\t\t\t\t\n }\n if (this.classCoverage != null) {\n script.append(String.format(\"classCoverageTargets: '%s', \", this.classCoverage));\t\t\t\t\n }\n if (this.methodCoverage != null) {\n script.append(String.format(\"methodCoverageTargets: '%s', \", this.methodCoverage));\t\t\t\t\n }\n script.append(\"sourceEncoding: 'ASCII'])\\n\");\n script.append(\"}\");\n return script.toString();\n }",
"public abstract void runScript() throws Exception;",
"@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"public String getScriptExecution() {\n StringBuffer script = new StringBuffer(\"#!/bin/bash\\n\");\n script.append(\"if [ $# -ne \" + workflowInputTypeStates.size() + \" ]\\n\\tthen\\n\");\n script\n .append(\"\\t\\techo \\\"\" + workflowInputTypeStates.size() + \" argument(s) expected.\\\"\\n\\t\\texit\\nfi\\n\");\n int in = 1;\n for (TypeNode input : workflowInputTypeStates) {\n script.append(input.getShortNodeID() + \"=$\" + (in++) + \"\\n\");\n }\n script.append(\"\\n\");\n for (ModuleNode operation : moduleNodes) {\n String code = operation.getUsedModule().getExecutionCode();\n if (code == null || code.equals(\"\")) {\n script.append(\"\\\"Error. Tool '\" + operation.getNodeLabel() + \"' is missing the execution code.\\\"\")\n .append(\"\\n\");\n } else {\n for (int i = 0; i < operation.getInputTypes().size(); i++) {\n code = code.replace(\"@input[\" + i + \"]\", operation.getInputTypes().get(i).getShortNodeID());\n }\n for (int i = 0; i < operation.getOutputTypes().size(); i++) {\n code = code.replace(\"@output[\" + i + \"]\", operation.getOutputTypes().get(i).getShortNodeID());\n }\n script.append(code).append(\"\\n\");\n }\n }\n int out = 1;\n for (TypeNode output : workflowOutputTypeStates) {\n script.append(\"echo \\\"\" + (out++) + \". output is: $\" + output.getShortNodeID() + \"\\\"\");\n }\n\n return script.toString();\n }",
"public static String getPostScriptHeaderContent() throws AlgorithmExecutionException { \t\r\n\t\tInputStream inStream = null;\r\n \tBufferedReader input = null;\r\n \tString line;\r\n \tString psHeaderContentinString = \"\";\r\n \r\n \ttry {\r\n URLConnection connection = PostScriptOperations.postScriptHeaderFile.openConnection();\r\n connection.setDoInput(true);\r\n inStream = connection.getInputStream();\r\n input = new BufferedReader(new InputStreamReader(inStream, \"UTF-8\"));\r\n \t\t \t\t\r\n \t while (null != (line = input.readLine())) {\r\n \t \tpsHeaderContentinString = psHeaderContentinString.concat(line).concat(\"\\n\");\r\n \t}\r\n \t} catch (IOException e) {\r\n \t\tthrow new AlgorithmExecutionException(e.getMessage(), e);\r\n \t} finally {\r\n \t\ttry {\r\n \t\t\tif (input != null) {\r\n \t\t\t\tinput.close();\r\n \t\t\t}\r\n \t if (inStream != null) { \r\n \t \tinStream.close();\r\n \t }\r\n \t } catch (IOException e) {\r\n \t e.printStackTrace();\r\n \t }\r\n \t}\r\n \t\r\n\t\treturn psHeaderContentinString;\r\n\t}",
"byte[] get_destination_script();",
"public Script build() {\n return new Script(scriptLanguage, scriptText);\n }",
"public Object executeScript(String command);",
"public void doRunScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\t// set default selection\n \t\treq.setAttribute(\"currentNode\", \"(master)\");\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public void runScriptFileWithMessage(final Script script, final IBaseMessage message)\n\t{\t\t\t\t\n\t\trunScriptFileParameter(script, BaseScriptManager.MESSAGE_PARAMETER, message, true);\n\t}",
"private void setScript(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n script_ = value;\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"Script createScript();",
"protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}",
"@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }",
"public void runScript(File script) throws DataAccessLayerException {\n byte[] bytes = null;\n try {\n bytes = FileUtil.file2bytes(script);\n } catch (FileNotFoundException e) {\n throw new DataAccessLayerException(\n \"Unable to open input stream to sql script: \" + script);\n } catch (IOException e) {\n throw new DataAccessLayerException(\n \"Unable to read script contents for script: \" + script);\n }\n runScript(new StringBuffer().append(new String(bytes)));\n }",
"public VerificationScript(byte[] script) {\n this.script = script;\n }",
"public abstract void body();",
"protected void runXmlScript(String script, String scriptUrl) throws Throwable {\n XmlPullParser parser = new KXmlParser();\n \n try {\n ByteArrayInputStream is = new ByteArrayInputStream(script.getBytes(\"UTF-8\"));\n parser.setInput(is, \"UTF-8\");\n \n // Begin parsing\n nextSkipSpaces(parser);\n // If the first tag is not the SyncML start tag, then this is an\n // invalid message\n require(parser, parser.START_TAG, null, \"Script\");\n nextSkipSpaces(parser);\n // Keep track of the nesting level depth\n nestingDepth++;\n \n String currentCommand = null;\n boolean condition = false;\n boolean evaluatedCondition = false;\n Vector args = null;\n \n boolean ignoreCurrentScript = false;\n boolean ignoreCurrentBranch = false;\n \n while (parser.getEventType() != parser.END_DOCUMENT) {\n \n // Each tag here is a command. All commands have the same\n // format:\n // <Command>\n // <Arg>arg1</Arg>\n // <Arg>arg2</Arg>\n // </Command>\n //\n // The only exception is for conditional statements\n // <Condition>\n // <If>condition</If>\n // <Then><command>...</command></Then>\n // <Else><command>...</command>/Else>\n // </Condition>\n \n if (parser.getEventType() == parser.START_TAG) {\n String tagName = parser.getName();\n \n if (\"Condition\".equals(tagName)) {\n condition = true;\n } else if (\"If\".equals(tagName)) {\n // We just read the \"<If>\" tag, now we read the rest of the condition\n // until the </If>\n nextSkipSpaces(parser);\n evaluatedCondition = evaluateCondition(parser);\n nextSkipSpaces(parser);\n require(parser, parser.END_TAG, null, \"If\");\n } else if (\"Then\".equals(tagName)) {\n if (!condition) {\n throw new ClientTestException(\"Syntax error: found Then tag without Condition\");\n }\n if (!evaluatedCondition) {\n ignoreCurrentBranch = true;\n }\n } else if (\"Else\".equals(tagName)) {\n if (!condition) {\n throw new ClientTestException(\"Syntax error: found Then tag without Condition\");\n }\n if (evaluatedCondition) {\n ignoreCurrentBranch = true;\n }\n } else {\n if (currentCommand == null) {\n currentCommand = tagName;\n args = new Vector();\n Log.trace(TAG_LOG, \"Found command \" + currentCommand);\n } else {\n // This can only be an <arg> tag\n if (\"Arg\".equals(tagName)) {\n parser.next();\n \n // Concatenate all the text tags until the end\n // of the argument\n StringBuffer arg = new StringBuffer();\n while(parser.getEventType() == parser.TEXT) {\n arg.append(parser.getText());\n parser.next();\n }\n String a = arg.toString().trim();\n Log.trace(TAG_LOG, \"Found argument \" + a);\n a = processArg(a);\n args.addElement(a);\n require(parser, parser.END_TAG, null, \"Arg\");\n }\n }\n }\n } else if (parser.getEventType() == parser.END_TAG) {\n String tagName = parser.getName();\n if (\"Condition\".equals(tagName)) {\n condition = false;\n currentCommand = null;\n ignoreCurrentBranch = false;\n } else if (tagName.equals(currentCommand)) {\n try {\n Log.trace(TAG_LOG, \"Executing accumulated command: \" + currentCommand + \",\" + ignoreCurrentScript + \",\" + ignoreCurrentBranch);\n if ((!ignoreCurrentScript && !ignoreCurrentBranch) || \"EndTest\".equals(currentCommand)) {\n runCommand(currentCommand, args);\n }\n } catch (IgnoreScriptException ise) {\n // This script must be ignored\n ignoreCurrentScript = true;\n nestingDepth = 0;\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.SKIPPED);\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n } catch (Throwable t) {\n \n Log.error(TAG_LOG, \"Error running command\", t);\n \n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.FAILURE);\n status.setDetailedError(\"Error \" + t.toString() + \" at line \" + parser.getLineNumber());\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n \n if (stopOnFailure) {\n throw t;\n } else {\n ignoreCurrentScript = true;\n nestingDepth = 0;\n }\n }\n currentCommand = null;\n } else if (\"Script\".equals(tagName)) {\n // end script found\n \n \n // If we get here and the current script is not being\n // ignored, then the execution has been successful\n if (!ignoreCurrentScript) {\n if (testKeys.get(scriptUrl) == null) {\n // This test is not a utility test, save its\n // status\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.SUCCESS);\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n }\n }\n \n if (nestingDepth == 0 && ignoreCurrentScript) {\n // The script to be ignored is completed. Start\n // execution again\n ignoreCurrentScript = false;\n }\n }\n }\n nextSkipSpaces(parser);\n }\n } catch (Exception e) {\n // This will block the entire execution\n TestStatus status = new TestStatus(scriptUrl);\n status.setStatus(TestStatus.FAILURE);\n status.setDetailedError(\"Syntax error in file \" + scriptUrl + \" at line \" + parser.getLineNumber());\n testResults.addElement(status);\n testKeys.put(scriptUrl, status);\n Log.error(TAG_LOG, \"Error parsing command\", e);\n throw new ClientTestException(\"Script syntax error\");\n }\n }",
"private String doScript(String node, String scriptTxt) throws IOException, ServletException {\n \n \t\tString output = \"[no output]\";\n \t\tif (node != null && scriptTxt != null) {\n \n \t\t\ttry {\n \n \t\t\t\tComputer comp = Hudson.getInstance().getComputer(node);\n\t\t\t\tif (comp == null) {\n \t\t\t\t\toutput = Messages.node_not_found(node);\n \t\t\t\t} else {\n \t\t\t\t\tif (comp.getChannel() == null) {\n \t\t\t\t\t\toutput = Messages.node_not_online(node);\n\t\t\t\t\t} else {\n \t\t\t\t\t\toutput = RemotingDiagnostics.executeGroovy(scriptTxt, comp.getChannel());\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tthrow new ServletException(e);\n \t\t\t}\n \t\t}\n \t\treturn output;\n \n \t}",
"java.lang.String getBody();",
"private void getScript() {\n\t\tif ((scriptFile != null) && scriptFile.exists()) {\n\t\t\tlong lm = scriptFile.lastModified();\n\t\t\tif (lm > lastModified) {\n\t\t\t\tscript = new PixelScript(scriptFile);\n\t\t\t\tlastModified = lm;\n\t\t\t}\n\t\t}\n\t\telse script = null;\n\t}",
"public void doTriggerScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"scriptName\") String scriptName,\n \t\t\t@QueryParameter(\"script\") String script, @QueryParameter(\"node\") String node) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\t// set the script info back to the request, to display it together with\n \t\t// the output.\n \t\tScript tempScript = getScript(scriptName, false);\n \t\ttempScript.setScript(script);\n \t\treq.setAttribute(\"script\", tempScript);\n \t\treq.setAttribute(\"currentNode\", node);\n \n \t\tString output = doScript(node, script);\n \t\treq.setAttribute(\"output\", output);\n \t\treq.getView(this, \"runscript.jelly\").forward(req, rsp);\n \t}",
"public static void main(String[] args) {\n\t\tString docBody = null;\n\t\tMap<String,String> parameters = new HashMap<String, String>();\n\t\tMap<String,String> persistentParameters = new HashMap<String, String>();\n\t\tList<RCCookie> cookies = new ArrayList<RequestContext.RCCookie>();\n\t\t\n\t\ttry {\n\t\t\tdocBody = new String(Files.readAllBytes(Paths.get(\"examples/zbrajanje.smscr\")), StandardCharsets.UTF_8);\n\t\t} catch (IOException e1) {\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tSmartScriptParser parser = null;\n\n\t\ttry {\n\t\t\tparser = new SmartScriptParser(docBody);\n\t\t} catch (SmartScriptParserException e) {\n\t\t\tSystem.out.println(\"Unable to parse document!\");\n\t\t\tSystem.exit(-1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"If this line ever executes, you have failed this class!\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tDocumentNode document = parser.getDocumentNode();\n\t\tparameters.put(\"a\", \"4\");\n\t\tparameters.put(\"b\", \"2\");\n\t\t\n\t\tnew SmartScriptEngine(document, new RequestContext(System.out, parameters, persistentParameters, cookies)).execute();\n\t}",
"@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }",
"public void handleScript(HtmlObjects.Script t)\n {\n }",
"private String extractBodyAndScriptsFromTemplate(String html) {\n \n // Replace UID:s\n html = html.replaceAll(\"_UID_\", pid + \"__\");\n \n // Exctract script-tags\n scripts = \"\";\n int endOfPrevScript = 0;\n int nextPosToCheck = 0;\n String lc = html.toLowerCase();\n String res = \"\";\n int scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n while (scriptStart > 0) {\n res += html.substring(endOfPrevScript, scriptStart);\n scriptStart = lc.indexOf(\">\", scriptStart);\n int j = lc.indexOf(\"</script>\", scriptStart);\n scripts += html.substring(scriptStart + 1, j) + \";\";\n nextPosToCheck = endOfPrevScript = j + \"</script>\".length();\n scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n }\n res += html.substring(endOfPrevScript);\n \n // Extract body\n html = res;\n lc = html.toLowerCase();\n int startOfBody = lc.indexOf(\"<body\");\n if (startOfBody < 0) {\n res = html;\n } else {\n res = \"\";\n startOfBody = lc.indexOf(\">\", startOfBody) + 1;\n int endOfBody = lc.indexOf(\"</body>\", startOfBody);\n if (endOfBody > startOfBody) {\n res = html.substring(startOfBody, endOfBody);\n } else {\n res = html.substring(startOfBody);\n }\n }\n \n return res;\n }",
"public void createScript(final Script script, final String scriptName)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName(\"nashorn\");\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (scriptEngine != null)\n\t\t\t{\n\t\t\t\tscript.setName(scriptName);\t\t\t\n\t\t\t\tscript.setStatusAndNotify(ScriptRunningState.NOT_STARTED);\n\t\t\t\tscript.setScriptEngine(scriptEngine);\t\t\n\t\t\t\t\n\t\t\t\tpopulateEngineVariables(script);\n\t\t\t\n//\t\t\tfinal MqttScriptIO scriptIO = new MqttScriptIO(connection, eventManager, script, executor); \n//\t\t\t//script.setScriptIO(scriptIO);\n//\t\t\t\n//\t\t\tfinal Map<String, Object> scriptVariables = new HashMap<String, Object>();\n//\t\t\t\n//\t\t\t// This should be considered deprecated\n//\t\t\tscriptVariables.put(\"mqttspy\", scriptIO);\n//\t\t\t// This should be used for general script-related actions\n//\t\t\tscriptVariables.put(\"spy\", scriptIO);\n//\t\t\t// Going forward, this should only have mqtt-specific elements, e.g. pub/sub\n//\t\t\tscriptVariables.put(\"mqtt\", scriptIO);\n//\t\t\t\n//\t\t\tscriptVariables.put(\"logger\", LoggerFactory.getLogger(ScriptRunner.class));\n//\t\t\t\n//\t\t\tfinal IMqttMessageLogIO mqttMessageLog = new MqttMessageLogIO();\n//\t\t\t// Add it to the script IO so that it gets stopped when requested\n//\t\t\tscript.addTask(mqttMessageLog);\t\t\t\n//\t\t\tscriptVariables.put(\"messageLog\", mqttMessageLog);\n//\t\t\t\n//\t\t\tputJavaVariablesIntoEngine(scriptEngine, scriptVariables);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new CriticalException(\"Cannot instantiate the nashorn javascript engine - most likely you don't have Java 8 installed. \"\n\t\t\t\t\t\t+ \"Please either disable scripts in your configuration file or install the appropriate JRE/JDK.\");\n\t\t\t}\n\t\t}\n\t\tcatch (SpyException e)\n\t\t{\n\t\t\tthrow new CriticalException(\"Cannot initialise the script objects\");\n\t\t}\n\t}",
"public interface ExecuteScriptCallback extends CallbackBase {\n\n /**\n * Override this method with the code you want to run after executing script service\n *\n * @param data Result to script\n * @param e NCMBException from NIFTY Cloud mobile backend\n */\n void done(byte[] data, NCMBException e);\n}",
"public void runScript(String script, String scriptUrl) throws Throwable {\n \n int idx = 0;\n int lineNumber = 0;\n boolean onExecuted = false;\n \n //If an exception is catched the remaining lines of this script are\n //ignored\n boolean ignoreCurrentScript = false;\n \n String syntaxError = null;\n \n boolean eol;\n do {\n try {\n // The end of the command is recognized with the following\n // sequence ;( *)\\n\n StringBuffer l = new StringBuffer();\n eol = false;\n String line = null;\n while(idx<script.length()) {\n char ch = script.charAt(idx);\n l.append(ch);\n if (ch == ';') {\n eol = true;\n if (idx < script.length() - 1) {\n // This may be the end of line\n while(idx<script.length()) {\n char nextCh = script.charAt(++idx);\n if (nextCh == '\\n') {\n break;\n } else if (nextCh == ' ' || nextCh == '\\r') {\n // Keep searching\n l.append(nextCh);\n } else {\n // This is not the end of line\n l.append(nextCh);\n eol = false;\n break;\n }\n }\n } else {\n // This is the last char\n ++idx;\n }\n } else if (ch == '#' && l.length() == 1) {\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Found a comment, consuming line\");\n }\n // This line is a comment, skip everything until an EOL\n // is found\n ++idx;\n for(;idx<script.length();++idx) {\n char nextChar = script.charAt(idx);\n if (nextChar == '\\n') {\n break;\n } else {\n l.append(nextChar);\n }\n }\n eol = true;\n } else if (ch == '\\n') {\n // We found a EOL without the ;\n // This maybe an empty line that we just ignore\n String currentLine = l.toString().trim();\n if (currentLine.length() == 0) {\n l = new StringBuffer();\n } else {\n // If otherwise this is an EOL in the middle of a\n // command, we just ignore it (EOL shall be represented\n // as \\n)\n l.deleteCharAt(l.length() - 1);\n }\n }\n if (eol) {\n // Remove trailing end of line (everything after the ;)\n while(l.length() > 0 && l.charAt(l.length() - 1) != ';') {\n l.deleteCharAt(l.length() - 1);\n }\n line = l.toString();\n break;\n }\n ++idx;\n }\n \n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"Executing line: \" + line);\n }\n \n if (line == null) {\n return;\n }\n \n lineNumber++;\n \n syntaxError = null;\n \n line = line.trim();\n if (line.length() > 0 && !line.startsWith(\"#\")) {\n if (line.startsWith(ON_COMMAND + \" \")) {\n // This is a conditional statement. Check if it must be\n // executed\n boolean exec = false;\n try {\n exec = checkCandidateStatement(line, onExecuted);\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n exec = false;\n }\n if (exec) {\n onExecuted = true;\n // Get the real command\n int colPos = line.indexOf(\":\");\n if (colPos == -1) {\n String msg = \"Syntax error in script, missing ':' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n if (colPos + 1 >= line.length()) {\n String msg = \"Syntax error in script, missing command in: \"\n + line + \" at line \" + lineNumber;\n Log.error(TAG_LOG, msg);\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n //throw new ClientTestException(\"Script syntax error\");\n }\n line = line.substring(colPos + 1);\n line = line.trim();\n } else {\n // skip the rest\n if (Log.isLoggable(Log.INFO)) {\n Log.info(TAG_LOG, \"Skipping conditional statement\");\n }\n continue;\n }\n } else {\n // Reset the conditional statement status\n onExecuted = false;\n }\n \n int parPos = line.indexOf('(');\n if (parPos == -1) {\n syntaxError = \"Syntax error in script \"\n + scriptUrl\n + \"\\nmissing '(' in: \"\n + line + \" at line \" + lineNumber;\n Log.error(syntaxError);\n \n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n ignoreCurrentScript = true;\n // Force this script to be terminated\n idx = script.length();\n }\n \n String command = line.substring(0, parPos);\n command = command.trim();\n String pars;\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"line=\" + line);\n }\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"parPos = \" + parPos);\n }\n if (line.endsWith(\";\")) {\n pars = line.substring(parPos, line.length() - 1);\n } else {\n pars = line.substring(parPos);\n }\n \n //Increments the test counter to\n if (BasicCommandRunner.BEGIN_TEST_COMMAND.equals(command)) {\n chainedTestsCounter++;\n if (chainedTestsCounter == 1) {\n mainTestName = pars;\n }\n } else if (BasicCommandRunner.END_TEST_COMMAND.equals(command)) {\n chainedTestsCounter--;\n if (chainedTestsCounter == 0) {\n ignoreCurrentScript = false;\n }\n }\n \n if (!ignoreCurrentScript) {\n // Extract parameters and put them into a vector\n Vector args = new Vector();\n int i = 0;\n String arg;\n do {\n arg = getParameter(pars, i++);\n if (arg != null) {\n args.addElement(arg);\n }\n } while(arg != null);\n runCommand(command, args);\n }\n }\n } catch (IgnoreScriptException ise) {\n ignoreCurrentScript = true;\n } catch (Throwable t) {\n errorCode = CLIENT_TEST_EXCEPTION_STATUS;\n \n StringBuffer msg = new StringBuffer();\n msg.append(\"\\nTEST FAILED: \").append(mainTestName);\n msg.append(\"\\n\\tException: \").append(t);\n msg.append(syntaxError != null ? \"\\n\\t\" + syntaxError : \"\");\n msg.append(\"\\n\\t(\").append(scriptUrl).append(\": \")\n .append(lineNumber).append(\")\");\n \n Log.error(msg.toString());\n Log.error(TAG_LOG, \"Exception details\", t);\n \n //tell the scriptrunner to ignore all of the chained tests\n //commands\n ignoreCurrentScript = true;\n \n if(stopOnFailure) {\n throw new ClientTestException(\"TEST FAILED\");\n }\n }\n } while (true);\n }",
"public String makeVerificationScript()\n {\n return weaveFreemarker(verificationTemplate, scriptParameters);\n }",
"public StaticScript script(String script) {\n this.script = script;\n return this;\n }",
"private String extractBodyAndScriptsFromTemplate(String html) {\n \t\t\n \t\t// Exctract script-tags\n \t\tscripts =\"\";\n \t\tint endOfPrevScript = 0;\n \t\tint nextPosToCheck = 0;\n \t\tString lc = html.toLowerCase();\n \t\tString res = \"\";\n \t\tint scriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n \t\twhile (scriptStart > 0) {\n \t\t\tres += html.substring(endOfPrevScript, scriptStart);\n \t\t\tscriptStart = lc.indexOf(\">\", scriptStart);\n \t\t\tint j = lc.indexOf(\"</script>\",scriptStart);\n \t\t\tscripts += html.substring(scriptStart+1,j) + \";\";\n \t\t\tnextPosToCheck = endOfPrevScript = j + \"</script>\".length();\n \t\t\tscriptStart = lc.indexOf(\"<script\", nextPosToCheck);\n \t\t}\n \t\tres += html.substring(endOfPrevScript);\n \t\t\n \t\t// Extract body\n \t\thtml = res;\n \t\tlc = html.toLowerCase();\n \t\tint startOfBody = lc.indexOf(\"<body\");\n \t\tif (startOfBody < 0) {\n \t\t\tres = html;\n \t\t} else {\n \t\t\tres = \"\";\n \t\t\tstartOfBody = lc.indexOf(\">\",startOfBody)+1;\n \t\t\tint endOfBody = lc.indexOf(\"</body>\",startOfBody);\n \t\t\tif (endOfBody > startOfBody)\n \t\t\t\tres = html.substring(startOfBody,endOfBody);\n \t\t\telse \n \t\t\t\tres = html.substring(startOfBody);\n\t\t}\n \t\t\n \t\treturn res;\n \t}",
"public interface Script {\n\n /**\n * @return true if the game is over\n */\n boolean isFinished();\n\n /**\n * Perform according to the event.\n * @param event interpreter output event.\n * @return result of perform.\n */\n Answer perform(final String event);\n}",
"@Override\n\tpublic void doFunction(String[] zInput) throws Exception {\n\t\tMessage msg = getResponseMessage(ConsensusTxn.CONSENSUS_TXNSCRIPT);\n\t\tmsg.addInteger(\"transaction\", Integer.parseInt(zInput[1]));\n\t\tmsg.addString(\"script\", zInput[2]);\n\t\tmsg.addString(\"proof\", zInput[3]);\n\t\t\t\t\n\t\tgetMainHandler().getConsensusHandler().PostMessage(msg);\n\t}",
"public String getBody() {\r\n return body;\r\n }",
"private String js() throws IOException {\n String outputLine;\n File path = new File(\"src/main/resources/app.js\");\n FileReader fileReader = new FileReader(path);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n outputLine = \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/javascript \\r\\n\"\n + \"\\r\\n\";\n String inputLine;\n while ((inputLine=bufferedReader.readLine()) != null){\n outputLine += inputLine + \"\\n\";\n }\n return outputLine;\n }",
"public VerificationScript() {\n script = new byte[0];\n }",
"public ScriptBuilder setScriptText(String scriptText) {\n this.scriptText = scriptText;\n return this;\n }",
"private void sendLoadScript(String script, boolean partial) {\n String request;\n String response;\n\n synchronized(this) {\n request = globalApi.openDoc(appName);\n System.out.println(\"OpenDoc request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"OpenDoc response: \" + response);\n JsonResponse jsonResponse = new JsonResponse(response);\n int qHandle;\n if (jsonResponse.isError()) {\n System.out.println(jsonResponse.getError());\n } else {\n qHandle = jsonResponse.getqHandle();\n request = docApi.setScript(qHandle, script);\n System.out.println(String.format(\"SetScript request: Length(%d) %s\",\n request.length(), request.substring(1, min(request.length(), 256))));\n response = qlikSocket.sendMessage(request);\n System.out.println(\"SetScript response: \" + response);\n if (jsonResponse.isError()) {\n System.out.println(jsonResponse.getError());\n } else {\n request = docApi.doReload(qHandle, 0, partial, false);\n System.out.println(\"DoReload request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"DoReload response: \" + response);\n request = docApi.doSave(qHandle);\n System.out.println(\"DoSave request: \" + request);\n response = qlikSocket.sendMessage(request);\n System.out.println(\"DoSave response: \" + response);\n }\n\n }\n }\n }",
"boolean supportsScripts();",
"public StaticScript(String name, String type, String script) {\n this.name = name;\n this.type = type;\n this.script = script;\n }",
"public void setBody(String body) {\r\n this.body = body;\r\n }",
"InternalResponseBehavior executeScript(ResourceConfig config, Map<String, Object> bindings);",
"@Override\r\n public String evaluateScriptOutput() throws IOException {\r\n return getPythonHandler().getPythonOutput();\r\n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"private Result processScript() throws IOException, HsqlException {\n\n String token = tokenizer.getString();\n ScriptWriterText dsw = null;\n\n session.checkAdmin();\n\n try {\n if (tokenizer.wasValue()) {\n if (tokenizer.getType() != Types.VARCHAR) {\n throw Trace.error(Trace.INVALID_IDENTIFIER);\n }\n\n dsw = new ScriptWriterText(database, token, true, true, true);\n\n dsw.writeAll();\n\n return new Result(ResultConstants.UPDATECOUNT);\n } else {\n tokenizer.back();\n\n return DatabaseScript.getScript(database, false);\n }\n } finally {\n if (dsw != null) {\n dsw.close();\n }\n }\n }",
"public void setBody(String body)\n {\n this.body = body;\n }",
"private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }",
"public interface IScript {\n\n}",
"ScriptImpl(ScriptFragmentImpl sigScript, ScriptFragmentImpl pubScript, KeyFactory keyFactory)\n {\n // Copy together the two scripts creating the combined script\n this(mergeArrays(sigScript.toByteArray(), pubScript.toByteArray()), keyFactory, sigScript.toByteArray().length);\n \n // Save the script fragments to be able to detect special transaction types like P2SH (BIP0016)\n this.sigScript = sigScript;\n this.pubScript = pubScript;\n }",
"public String getBody_() {\n return body_;\n }",
"@Override\n\tpublic ArrayList<String> exe(String cmdBody) throws Exception {\n\t\treturn null;\n\t}",
"public static Script parse(String scriptText) {\n Parse scriptBuilder = create(scriptText);\n scriptBuilder.throwIfError();\n return scriptBuilder.script;\n }",
"public void doEditScript(StaplerRequest req, StaplerResponse rsp, @QueryParameter(\"name\") String scriptName) throws IOException, ServletException {\n \t\tcheckPermission(Hudson.ADMINISTER);\n \n \t\tScript script = getScript(scriptName, true);\n \t\treq.setAttribute(\"script\", script);\n \t\treq.getView(this, \"edit.jelly\").forward(req, rsp);\n \t}",
"@Override\n public String runOperation(CallingContext context, RaptureScript script, String ctx, Map<String, Object> params) {\n try {\n ScriptEngine engine = engineRef.get();\n CompiledScript cScript = getOperationScript(engine, script);\n addStandardContext(context, engine);\n engine.put(PARAMS, params);\n engine.put(CTX, ctx);\n Kernel.getKernel().getStat().registerRunScript();\n return JacksonUtil.jsonFromObject(cScript.eval());\n } catch (ScriptException e) {\n Kernel.writeAuditEntry(EXCEPTION, 2, e.getMessage());\n throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, \"Error running script \" + script.getName(), e);\n }\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"@Test\n public void testGetScript_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getScript();\n\n assertEquals(\"\", result);\n }",
"public void setBody(String body) {\n this.body = body;\n }",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"private native void eval(String script) /*-{\n \t try {\n \t eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n \t } catch (e) {\n \t }\n \t }-*/;",
"void createNewScriptFile(String scriptContent) {\n String fileName = prop.getProperty(\"FileName\");\n try {\n // Assume default encoding.\n FileWriter fileWriter = new FileWriter(fileName);\n // Always wrap FileWriter in BufferedWriter.\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n // Note that write() does not automatically append a newline character.\n bufferedWriter.write(scriptContent);\n // Always close files.\n bufferedWriter.close();\n } catch (IOException ex) {\n System.out.println(\"Error writing to file '\" + fileName + \"'\");\n }\n }",
"public String getBodySql(String table)\r\n \t{\r\n \t\treturn \"select BODY from \" + table + \" where ( RESOURCE_ID = ? )\";\r\n \t}",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public static void main(String[] args) {\n\t\tif (args.length != 1) {\n\t\t\tSystem.err.println(\n\t\t\t\t\"Please provide only one argument (document filepath).\"\n\t\t\t);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString docBody = null;\n\t\ttry {\n\t\t\tdocBody = new String(\n\t\t\t\tFiles.readAllBytes(Paths.get(args[0]))\n\t\t\t);\n\t\t} catch (IOException e1) {\n\t\t\tSystem.err.println(\"Invalid document filepath.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tSmartScriptParser parser = null;\n\t\t\n\t\ttry {\n\t\t\tparser = new SmartScriptParser(docBody);\n\t\t} catch (SmartScriptParserException e) {\n\t\t\tSystem.out.println(\"Unable to parse document!\");\n\t\t\tSystem.exit(-1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\"If this line ever executes, you have failed this class!\"\n\t\t\t);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\tDocumentNode document = parser.getDocumentNode();\n\t\tString originalDocumentBody = createOriginalDocumentBody(document);\n\t\t\n\t\t// should write something like original content of docBody\n\t\tSystem.out.println(originalDocumentBody);\n\t}",
"private static native void eval(String script)\n /*-{\n try {\n \t if (script != null) \n eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n } catch (e) {\n }\n }-*/;",
"public String getBody(){\n return bodiesText;\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected void execute()\n {\n // Display the dialog and wait for the close action (the user\n // selects the Okay button or the script execution completes\n // and a Cancel button is issued)\n int option = cancelDialog.showMessageDialog(dialog,\n \"<html><b>Script execution in progress...<br><br>\"\n + CcddUtilities.colorHTMLText(\"*** Press </i>Halt<i> \"\n + \"to terminate script execution ***\",\n Color.RED),\n \"Script Executing\",\n JOptionPane.ERROR_MESSAGE,\n DialogOption.HALT_OPTION);\n\n // Check if the script execution was terminated by the user and\n // that the script is still executing\n if (option == OK_BUTTON && scriptThread.isAlive())\n {\n // Forcibly stop script execution. Note: this method is\n // deprecated due to inherent issues that can occur when a\n // thread is abruptly stopped. However, the stop method is\n // the only manner in which the script can be terminated\n // (without additional code within the script itself, which\n // cannot be assumed since the scripts are user-generated).\n // There shouldn't be a potential for object corruption in\n // the application since it doesn't reference any objects\n // created by a script\n scriptThread.stop();\n\n // Set the execution status(es) to indicate the scripts\n // didn't complete\n isBad = new boolean[associations.size()];\n Arrays.fill(isBad, true);\n }\n }",
"public String getBody()\n {\n return body;\n }",
"public void executeScript() throws Exception {\n\n nav.ChangeCountry(\"India\");\n nav.SearchFor(\"\");\n pdp.AddToBag();\n pdp.EnterBag();\n bag.CheckOut();\n lgn.LoginWith(\"user@s5a.com\");\n\n\n\n }",
"private void addGroovyScriptMultiJob() {\r\n\t\tString html_text = \"\";\r\n\t\tString html_newline = \"\";\r\n\r\n if (getOptionHTMLBuildDesc().equalsIgnoreCase(\"HTML\")) {\r\n html_text = \".html\";\r\n html_newline = \"<br>\";\r\n } else {\r\n html_text = \".txt\";\r\n html_newline = \"\\\\n\";\r\n }\r\n String script =\r\n\"import hudson.FilePath\\n\" +\r\n\"\\n\" +\r\n\"FilePath fp_c = new FilePath(manager.build.getWorkspace(),'CombinedReport\" + html_text + \"')\\n\" +\r\n\"FilePath fp_f = new FilePath(manager.build.getWorkspace(),'@PROJECT_BASE@_full_report\" + html_text + \"')\\n\" +\r\n\"\\n\" +\r\n\"if (fp_c.exists() && fp_f.exists())\\n\" +\r\n// Must put HTML in createSummary and not description. Description will be truncated\r\n// and shown in Build history on left and cause corruption in the display, particularly\r\n// if using 'anything-goes-formatter'\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"monitor.png\\\").appendText(fp_c.readToString() + \\\"\" + html_newline + \"\\\" + fp_f.readToString(), false)\\n\" +\r\n\"}\\n\" +\r\n\"else\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"General Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\" manager.build.description = \\\"General Failure, Incremental Build Report or Full Report Not Present. Please see the console for more information\\\"\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"General Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n script = StringUtils.replace(script, \"@PROJECT_BASE@\", getBaseName());\r\n\r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n getTopProject().getPublishersList().add(groovy);\r\n }",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"protected boolean isScriptBlock() {\n return this.scriptBlock;\n }",
"public void executeScript() throws Exception {\n\t\tnav.SearchFor(\"\");\n\t\tnav.ClickNavigationLinks(TopNavLinks.WOMENSAPPAREL);\n\t\tprp.RefineByColor(\"Black\");\n\t\tprp.RefineBySize(\"Medium\");\n\t\tprp.ClickFirstItem();\n\t}",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"private static native void eval(String script)\n /*-{\n try {\n if (script == null) return;\n $wnd.eval(script);\n } catch (e) {\n }\n }-*/;"
] | [
"0.72329074",
"0.6550383",
"0.64784944",
"0.62844443",
"0.6274568",
"0.62082964",
"0.60999376",
"0.6096578",
"0.6027835",
"0.602354",
"0.6018839",
"0.59948695",
"0.5956114",
"0.5898459",
"0.58980787",
"0.58559",
"0.5806935",
"0.5777201",
"0.563542",
"0.55336875",
"0.55223715",
"0.551984",
"0.5507586",
"0.5477668",
"0.5473762",
"0.5371969",
"0.5346682",
"0.5309353",
"0.53057367",
"0.53030425",
"0.53030425",
"0.53030425",
"0.53030425",
"0.52739435",
"0.5237733",
"0.52277046",
"0.5220495",
"0.52135086",
"0.52036446",
"0.5203456",
"0.51877314",
"0.5187174",
"0.51833916",
"0.51482195",
"0.51479715",
"0.5145715",
"0.5140766",
"0.51286834",
"0.5107949",
"0.5105301",
"0.5078317",
"0.507693",
"0.506392",
"0.50512296",
"0.5051127",
"0.5036554",
"0.50340474",
"0.50323045",
"0.5019147",
"0.5006711",
"0.50035083",
"0.4997557",
"0.49885562",
"0.49867743",
"0.49851534",
"0.49836633",
"0.49775997",
"0.49700648",
"0.4968334",
"0.49653107",
"0.49652135",
"0.49616674",
"0.49609286",
"0.49601752",
"0.49597105",
"0.4957054",
"0.49568984",
"0.49521026",
"0.49515453",
"0.49483818",
"0.49469233",
"0.49388644",
"0.49267703",
"0.49200237",
"0.49167666",
"0.49109071",
"0.49109071",
"0.49109071",
"0.49076736",
"0.48764497",
"0.48471558",
"0.4843718",
"0.48406893",
"0.48390016",
"0.48386374",
"0.48359656",
"0.4835003",
"0.4834579",
"0.48344243",
"0.4819425"
] | 0.54756975 | 24 |
Commaseparated list of paths to files and/or directories which contain modules required by the script. | public final String getModuleDirectory() {
return properties.get(MODULE_DIRECTORY_PROPERTY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List getRuntimeClasspath(IPath installPath, IPath configPath);",
"private void getModules() throws BuildException {\n FilenameFilter fltr = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n return name.endsWith(\".war\");\n }\n };\n\n if (warDir == null) {\n throw new BuildException(\"No wardir supplied\");\n }\n\n String[] warnames = warDir.list(fltr);\n\n if (warnames == null) {\n throw new BuildException(\"No wars found at \" + warDir);\n }\n\n for (int wi = 0; wi < warnames.length; wi++) {\n wars.add(warnames[wi]);\n }\n\n for (FileSet fs: filesets) {\n DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n String[] dsFiles = ds.getIncludedFiles();\n\n for (int dsi = 0; dsi < dsFiles.length; dsi++) {\n String fname = dsFiles[dsi];\n\n if (fname.endsWith(\".jar\")) {\n jars.add(fname);\n } else if (fname.endsWith(\".war\")) {\n wars.add(fname);\n }\n }\n }\n }",
"List<IDirectory> getSourcePath();",
"Set<File> getModules();",
"Set<Path> getDependencies();",
"public IPath[] getAdditionalDependencies();",
"public List<String> getCompleteProjectPythonPath(PybaseInterpreter interpreter,\n\t\t\t\t\t\t\t AbstractInterpreterManager manager)\n{\n ModulesManager projectModulesManager = getProjectModulesManager();\n if (projectModulesManager == null) return null;\n return projectModulesManager.getCompletePythonPath(interpreter, manager);\n}",
"java.util.List<java.lang.String>\n getClasspathList();",
"java.util.List<java.lang.String>\n getClasspathList();",
"static List getCommonClasspath(BaseManager mgr) throws IOException {\n\n InstanceEnvironment env = mgr.getInstanceEnvironment();\n String dir = env.getLibClassesPath();\n String jarDir = env.getLibPath();\n\n return ClassLoaderUtils.getUrlList(new File[] {new File(dir)}, \n new File[] {new File(jarDir)});\n }",
"java.util.List<java.lang.String>\n getSourcepathList();",
"java.util.List<java.lang.String>\n getProcessorpathList();",
"java.util.List<java.lang.String>\n getSourcepathList();",
"java.util.List<java.lang.String>\n getSourceFileList();",
"@NotNull\n public List<String> extractPotentialPaths(@NotNull PsiElement element) {\n List<String> qualifiedNames = new ArrayList<>();\n\n String path = extractPathName(element, OclTypes.INSTANCE);\n if (!path.isEmpty()) {\n PsiQualifiedNamedElement moduleAlias = PsiFinder.getInstance().findModuleAlias(element.getProject(), path);\n String modulePath = moduleAlias == null ? path : moduleAlias.getQualifiedName();\n qualifiedNames.add(modulePath);\n qualifiedNames.add(((FileBase) element.getContainingFile()).asModuleName() + \".\" + modulePath);\n }\n\n // Walk backward until top of the file is reached, trying to find local opens and opens/includes\n PsiElement item = element;\n while (item != null) {\n if (100 < qualifiedNames.size()) {\n break; // There must be a problem with the parser\n }\n\n if (item instanceof FileBase) {\n qualifiedNames.add(((FileBase) item).asModuleName());\n break;\n } else if (item instanceof PsiOpen || item instanceof PsiInclude) {\n String openName = ((PsiNamedElement) item).getName();\n // Add open value to all previous elements\n List<String> withOpenQualifier = qualifiedNames.stream().map(name -> openName + \".\" + name).collect(Collectors.toList());\n qualifiedNames.addAll(withOpenQualifier);\n\n qualifiedNames.add(openName);\n } else if (item instanceof PsiModule) {\n PsiModule module = (PsiModule) item;\n String moduleName = module.getName();\n String moduleAlias = findModuleAlias(element.getProject(), module.getAlias());\n\n if (moduleAlias != null && !moduleAlias.equals(moduleName)) {\n // Replace module name in resolved paths with the module alias\n qualifiedNames = qualifiedNames.stream().map(name -> {\n if (name.equals(moduleName)) {\n return moduleAlias;\n } else if (name.startsWith(moduleName + \".\")) {\n int length = moduleAlias.length();\n if (length <= moduleName.length()) {\n return moduleAlias + \".\" + moduleName.substring(length);\n }\n } else if (name.endsWith(\".\" + moduleName)) {\n return name.replace(\".\" + moduleName, \".\" + moduleAlias);\n }\n return name;\n }).collect(Collectors.toList());\n }\n }\n\n PsiElement prevItem = item.getPrevSibling();\n if (prevItem == null) {\n PsiElement parent = item.getParent();\n if (parent instanceof PsiLocalOpen) {\n String localOpenName = ((PsiLocalOpen) parent).getName();\n String localOpenAlias = findModuleAlias(element.getProject(), localOpenName);\n qualifiedNames.add(localOpenAlias == null || localOpenAlias.equals(localOpenName) ? localOpenName : localOpenAlias);\n }\n item = parent;\n } else {\n item = prevItem;\n }\n }\n\n qualifiedNames.add(\"Pervasives\");\n return qualifiedNames;\n }",
"public String searchExportedPlugins()\n\t{\n\t\tFile parent = null;\n\t\tif (System.getProperty(\"eclipse.home.location\") != null)\n\t\t\tparent = new File(URI.create(System.getProperty(\"eclipse.home.location\").replaceAll(\" \", \"%20\")));\n\t\telse parent = new File(System.getProperty(\"user.dir\"));\n\n\t\tList<String> pluginLocations = exportModel.getPluginLocations();\n\t\tfor (String libName : NG_LIBS)\n\t\t{\n\t\t\tint i = 0;\n\t\t\tboolean found = false;\n\t\t\twhile (!found && i < pluginLocations.size())\n\t\t\t{\n\t\t\t\tFile pluginLocation = new File(pluginLocations.get(i));\n\t\t\t\tif (!pluginLocation.isAbsolute())\n\t\t\t\t{\n\t\t\t\t\tpluginLocation = new File(parent, pluginLocations.get(i));\n\t\t\t\t}\n\t\t\t\tFileFilter filter = new WildcardFileFilter(libName);\n\t\t\t\tFile[] libs = pluginLocation.listFiles(filter);\n\t\t\t\tif (libs != null && libs.length > 0)\n\t\t\t\t{\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (!found) return libName;\n\t\t}\n\t\treturn null;\n\t}",
"private static File[] listScripts(File baseDir) {\n\n return baseDir.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n boolean hasJsonFileExtension = \"json\".equals(Files.getFileExtension(name));\n if (!(hasJsonFileExtension || new File(dir, name).isDirectory())) {\n System.err.println(\"Ignoring script \" + name + \". File name must be have .json extension.\");\n return false;\n }\n Integer index = getIndex(name);\n if (index == null) {\n System.err.println(\"Ignoring script \" + name + \". File name must start with an index number followed by an underscore and a description.\");\n return false;\n }\n return true;\n }\n });\n }",
"public String[] getIncludedDirectories()\n {\n int count = dirsIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsIncluded.get( i );\n }\n return directories;\n }",
"protected List getDependenciesIncludeList()\n throws MojoExecutionException\n {\n List includes = new ArrayList();\n\n for ( Iterator i = getDependencies().iterator(); i.hasNext(); )\n {\n Artifact a = (Artifact) i.next();\n\n if ( project.getGroupId().equals( a.getGroupId() ) && project.getArtifactId().equals( a.getArtifactId() ))\n {\n continue;\n }\n\n includes.add( a.getGroupId() + \":\" + a.getArtifactId() );\n }\n\n return includes;\n }",
"public String[] getIncludedFiles()\n {\n int count = filesIncluded.size();\n String[] files = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n files[ i ] = (String)filesIncluded.get( i );\n }\n return files;\n }",
"List<String> getConfigFilePaths();",
"ImportOption[] getImports();",
"public List<File> getClasspathElements() {\n\t\tthis.parseSystemClasspath();\n\t return classpathElements;\n\t}",
"public List<String> getCompilerExternalLibraryPath(Configuration config)\n {\n \tList<String> list = config.getCompilerSwfExternalLibraryPath();\n if (list != null && list.size() > 0)\n \treturn list;\n return config.getCompilerExternalLibraryPath();\n }",
"private List<RubyModule> gatherModules(RubyModule baseModule) {\n // build a list of all modules to consider for inclusion\n List<RubyModule> modulesToInclude = new ArrayList<RubyModule>();\n while (baseModule != null) {\n modulesToInclude.add(baseModule);\n baseModule = baseModule.getSuperClass();\n }\n \n return modulesToInclude;\n }",
"public String[] getClasspaths(IJavaProgramPrepareResult result) {\n\t\tString[] classpath = new String[0];\n\t\t\n\t\treturn classpath;\n\t}",
"ModulePath getModulePath();",
"public String[] getClasspathLibNames()\n {\n String libStr = getProperty(KEY_CP_LIBS, \"\");\n return StringUtil.split(libStr, \",\");\n }",
"private String getRequireBundle() {\n StringBuilder requires = new StringBuilder();\n if (!isLanguageModule()) {\n for (ModuleImport anImport : module.getImports()) {\n Module m = anImport.getModule();\n if (!m.isJava() && !m.equals(module)) {\n if (requires.length() > 0) {\n requires.append(\",\");\n }\n \n requires.append(m.getNameAsString())\n .append(\";bundle-version=\").append(m.getVersion());\n \n if (anImport.isExport()) {\n requires.append(\";visibility:=reexport\");\n }\n if (anImport.isOptional()) {\n requires.append(\";resolution:=optional\");\n }\n }\n }\n }\n return requires.toString();\n }",
"java.util.List<java.lang.String>\n getBootclasspathList();",
"public String getEndorsedDirectories(IPath installPath);",
"public java.util.List getImportedJarPaths() {\n \t\treturn importedJarPaths;\n \t}",
"java.util.List<java.lang.String>\n getBootclasspathList();",
"public List<String> getCompilerLibraryPath(Configuration config)\n {\n \tList<String> list = config.getCompilerSwfLibraryPath();\n if (list != null && list.size() > 0)\n \treturn list;\n return config.getCompilerLibraryPath();\n }",
"Set<String> getDependencies();",
"public String[] requires() { return new String[0]; }",
"private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }",
"java.util.List<java.lang.String>\n getPathsList();",
"private Path[] getPathArray(List<String> commandLineArgs) {\n int numOfFiles = commandLineArgs.size();\n Path[] filePathArray = new Path[numOfFiles];\n Path currentDir = Paths.get(Jsh.getCurrentDirectory());\n for (int i = 0; i < numOfFiles; i++) {\n filePathArray[i] = currentDir.resolve(commandLineArgs.get(i));\n }\n return filePathArray;\n }",
"List<String> getListPaths();",
"public String[] getResolvedDependencies();",
"String getApplicationDependencies();",
"java.util.List<com.google.wireless.android.sdk.stats.CriticalPathAnalyzerData.PluginBuildData>\n getPluginsCriticalPathList();",
"private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}",
"public List<Antfile> getImports()\n {\n return imports;\n }",
"public Vector<YANG_Specification> getImportedModules(String[] paths) {\n\t\tVector<YANG_Specification> im = new Vector<YANG_Specification>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Import) {\n\t\t\t\tYANG_Import imported = (YANG_Import) linkage;\n\t\t\t\tString importedspecname = imported.getImportedModule();\n\t\t\t\tYANG_Specification importedspec = getExternal(paths,\n\t\t\t\t\t\timportedspecname, imported.getLine(), imported.getCol());\n\t\t\t\tim.add(importedspec);\n\n\t\t\t}\n\t\t}\n\t\treturn im;\n\t}",
"private static CcToolchainVariables calculateModuleVariable(\n NestedSet<Artifact> potentialModules) {\n ImmutableList.Builder<String> usedModulePaths = ImmutableList.builder();\n for (Artifact input : potentialModules.toList()) {\n if (input.isFileType(CppFileTypes.CPP_MODULE)) {\n usedModulePaths.add(input.getExecPathString());\n }\n }\n CcToolchainVariables.Builder variableBuilder = CcToolchainVariables.builder();\n variableBuilder.addStringSequenceVariable(\n CompileBuildVariables.MODULE_FILES.getVariableName(), usedModulePaths.build());\n return variableBuilder.build();\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}",
"private ArrayList<String> getJARList() {\n String[] jars = getJARNames();\n return new ArrayList<>(Arrays.asList(jars));\n }",
"public IAstPreprocessorIncludeDirective[] getIncludeFiles();",
"@Override\n public FileCollection getCompileIncludePath() {\n return super.getCompileIncludePath().plus(getProjectLayout().files(new Callable<FileCollection>() {\n @Override\n public FileCollection call() {\n CppComponent tested = testedComponent.getOrNull();\n if (tested == null) {\n return getProjectLayout().files();\n }\n return ((DefaultCppComponent) tested).getAllHeaderDirs();\n }\n }));\n }",
"public String[] getImports() {\n\t\treturn (this.Imports.length == 0)?this.Imports:this.Imports.clone();\n\t}",
"private static Extension[] getExtensions( final ArrayList librarys )\n throws TaskException\n {\n final ArrayList extensions = new ArrayList();\n final Iterator iterator = librarys.iterator();\n while( iterator.hasNext() )\n {\n final LibFileSet fileSet = (LibFileSet)iterator.next();\n final DirectoryScanner scanner = ScannerUtil.getDirectoryScanner( fileSet );\n final File basedir = scanner.getBasedir();\n final String[] files = scanner.getIncludedFiles();\n for( int i = 0; i < files.length; i++ )\n {\n final File file = new File( basedir, files[ i ] );\n loadExtensions( file, extensions );\n }\n }\n return (Extension[])extensions.toArray( new Extension[ extensions.size() ] );\n }",
"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 default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}",
"public static List<Path> getRequestedFiles(\n String[] givenPaths, Map<String, Documentation> pkgDocs)\n throws IOException, ShadowException, ConfigurationException {\n List<Path> sourceFiles = new ArrayList<>();\n Map<Path, Path> imports = Configuration.getConfiguration().getImport();\n Path current = null;\n for (String path : givenPaths) {\n\n for (Path _import : imports.keySet()) {\n Path candidate = _import.resolve(Paths.get(path));\n if (Files.exists(candidate)) current = candidate.toAbsolutePath().normalize();\n break;\n }\n\n // Ensure that the source file exists\n if (current == null) throw new FileNotFoundException(\"File at \" + path + \" not found\");\n\n // If the file is a directory, process it as a package\n if (Files.isDirectory(current)) sourceFiles.addAll(getPackageFiles(current, true, pkgDocs));\n else if (current.toString().endsWith(SRC_EXTENSION)) sourceFiles.add(current);\n else if (current.getFileName().toString().equals(PKG_INFO_FILE))\n processPackageInfo(current, pkgDocs);\n else\n // Only do this for explicitly requested files\n throw new DocumentationException(\n \"File at \"\n + current\n + \" is not a package \"\n + \"directory, \"\n + PKG_INFO_FILE\n + \" file, or a source \"\n + \"file ending in \"\n + SRC_EXTENSION);\n }\n return sourceFiles;\n }",
"public Vector<YANG_Specification> getIncludedSubModules(String[] paths) {\n\n\t\tVector<YANG_Specification> is = new Vector<YANG_Specification>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Include) {\n\t\t\t\tYANG_Include included = (YANG_Include) linkage;\n\t\t\t\tString includedspecname = included.getIncludedModule();\n\t\t\t\tYANG_Revision revision = included.getRevision();\n\t\t\t\tYANG_Specification includedspec = null;\n\t\t\t\tif (revision != null) {\n\t\t\t\t\tString incname = includedspecname;\n\t\t\t\t\tincludedspecname += \".\" + revision.getDate();\n\t\t\t\t\tincludedspec = getExternal(paths, includedspecname,\n\t\t\t\t\t\t\tincname, included.getLine(), included.getCol());\n\t\t\t\t} else\n\t\t\t\t\tincludedspec = getExternal(paths, includedspecname,\n\t\t\t\t\t\t\tincluded.getLine(), included.getCol());\n\n\t\t\t\tif (includedspec != null) {\n\t\t\t\t\tincluded.setIncludedsubmodule(includedspec);\n\t\t\t\t\tis.add(includedspec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn is;\n\n\t}",
"public abstract List<String> getDirs( );",
"Requires getRequires();",
"public File[] getScriptFiles() {\n\t\treturn new File[] { scriptFile };\n\t}",
"Iterable<String> getModuleNames();",
"@Classpath\n public FileCollection getJdependClasspath() {\n return jdependClasspath;\n }",
"public String[] getClassesToCompile();",
"public static List<String> getAllModules()\n {\n List<String> list = new ArrayList<String>();\n for (Map.Entry<String, String> listItem: mapper.entrySet()) {\n list.add(listItem.getValue());\n }\n return list;\n }",
"@Nonnull\r\n public List<String> getSystemIncludePath() {\r\n return sysincludepath;\r\n }",
"public List<ApexPath> getPaths() {\n TestUtil.Config config = TestUtil.Config.Builder.get(g, sourceCode).build();\n return TestUtil.getApexPaths(config, apexPathExpanderConfig, methodName);\n }",
"public String getSystemClassPath();",
"static URL[] getClassPath() throws MalformedURLException {\n List<URL> classPaths = new ArrayList<>();\n\n classPaths.add(new File(\"target/test-classes\").toURI().toURL());\n\n // Add this test jar which has some frontend resources used in tests\n URL jar = getTestResource(\"jar-with-frontend-resources.jar\");\n classPaths.add(jar);\n\n // Add other paths already present in the system classpath\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL[] urls = URLClassLoader.newInstance(new URL[] {}, classLoader)\n .getURLs();\n for (URL url : urls) {\n classPaths.add(url);\n }\n return classPaths.toArray(new URL[0]);\n }",
"public com.google.protobuf.ProtocolStringList\n getClasspathList() {\n return classpath_.getUnmodifiableView();\n }",
"public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }",
"public com.google.protobuf.ProtocolStringList\n getClasspathList() {\n return classpath_;\n }",
"public List getListOfExtendedModules(String rootModule)\r\n {\r\n Vector dependantModules = null;\r\n if (rootModule == null) \r\n {\r\n dependantModules = new Vector();\r\n return dependantModules;\r\n }\r\n dependantModules = (Vector) moduleStore.getValues(rootModule);\r\n if (dependantModules == null)\r\n {\r\n dependantModules = new Vector();\r\n }\r\n return dependantModules;\r\n }",
"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 String[] getAllDependencyExtensions();",
"FileCollection getGeneratedSourcesDirs();",
"public List<String> getDependencies() throws IOException {\n\t\tPackageJSON packageJSON = new ObjectMapper()\n\t\t\t\t.readValue(this.getClass().getClassLoader().getResourceAsStream(\"package.json\"), PackageJSON.class);\n\t\treturn packageJSON.getDependencies();\n\t}",
"private HashSet<String> refreshLinterFromGoPath() {\n String goPath = System.getenv(\"GOPATH\");\n HashSet<String> rst = new HashSet<>();\n\n if (goPath != null) {\n for (String path: goPath.split(File.pathSeparator)) {\n Path fullPath = Paths.get(path, \"bin\", PlatformSettings.INSTANCE.getLinterExecutableName());\n if (fullPath.toFile().canExecute()) {\n rst.add(fullPath.toString());\n }\n }\n }\n return rst;\n }",
"public static List<Module> getExtraDependencyModules() {\r\n\t\treturn Arrays.asList((Module)new TitanGraphModule());\r\n\t}",
"private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\"\\\\r?\\\\n\");\n for (String entry : dependenciesGraph) {\n String moduleToAdd = entry.split(\" \")[1];\n addModuleDependencies(moduleToAdd, cachePath);\n }\n restoreModAnsSumFiles();\n }",
"private String[] buildClassPath( final File systemFile,\n final List<LocalSystemFile> systemFiles,\n final Configuration configuration )\n {\n final StringBuilder prepend = new StringBuilder();\n final StringBuilder append = new StringBuilder();\n for( LocalSystemFile ref : systemFiles )\n {\n if( ref.getSystemFileReference().shouldPrepend() )\n {\n if( prepend.length() != 0 )\n {\n prepend.append( File.pathSeparator );\n }\n prepend.append( ref.getFile().getAbsolutePath() );\n }\n else\n {\n if( append.length() != 0 )\n {\n append.append( File.pathSeparator );\n }\n append.append( ref.getFile().getAbsolutePath() );\n }\n }\n if( prepend.length() != 0 )\n {\n prepend.append( File.pathSeparator );\n }\n if( append.length() != 0 )\n {\n append.insert( 0, File.pathSeparator );\n }\n final StringBuilder classPath = new StringBuilder();\n classPath.append( prepend );\n classPath.append( systemFile.getAbsolutePath() );\n classPath.append( append );\n classPath.append( configuration.getClasspath() );\n \n return classPath.toString().split( File.pathSeparator );\n }",
"private ArrayList<String> getFullDir() {\r\n\t\tArrayList<String> fullDir = new ArrayList<String>();\r\n\r\n\t\t// We go through all the modules in the model and connect the selDir and full\r\n\t\t// top module together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tPanelInstMod panel = helperInstMod.model.getElementAt(i);\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\t// We add one more as a buffer for the top module when configuring the modules\r\n\t\t\t\t// (DialogWire).\r\n\t\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t\t}\r\n\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t}\r\n\t\treturn fullDir;\r\n\t}",
"public String[] getNotIncludedDirectories()\n throws TaskException\n {\n slowScan();\n int count = dirsNotIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsNotIncluded.get( i );\n }\n return directories;\n }",
"List<Path> getFiles();",
"public static ClassPath[] probeForClassPath(File startNode){\n // thread safing the list, because we are only adding this isnt strictly neccecery\n List<ClassPath> retunlist = (Collections.synchronizedList(new ArrayList<>()));\n if (startNode.isDirectory()){\n Meta.recursiveProbe(startNode, retunlist);\n }\n\n return retunlist.toArray(new ClassPath[0]);\n }",
"public String[] getUnresolvedDependencies();",
"public List<Executable> listExecutables() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Executable.class);\n\t}",
"private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}",
"public List<String> paths(String path) throws SystemException;",
"public PluginLocation[] getBuiltinPluginLocations()\r\n {\r\n java.lang.String conf = \"/net/sf/xpontus/plugins/plugins.txt\";\r\n\r\n InputStream is = null;\r\n LineIterator it = null;\r\n\r\n List<PluginLocation> locations = new ArrayList<PluginLocation>();\r\n\r\n try\r\n {\r\n is = getClass().getResourceAsStream(conf);\r\n it = IOUtils.lineIterator(is, \"UTF-8\");\r\n\r\n while (it.hasNext())\r\n {\r\n String line = it.nextLine();\r\n\r\n PluginLocation loc = getPluginLocation(line);\r\n locations.add(loc);\r\n }\r\n }\r\n catch (IOException ex)\r\n {\r\n LOG.error(ex.getMessage(), ex);\r\n }\r\n finally\r\n {\r\n if (is != null)\r\n {\r\n IOUtils.closeQuietly(is);\r\n }\r\n\r\n if (it != null)\r\n {\r\n LineIterator.closeQuietly(it);\r\n }\r\n }\r\n\r\n return (PluginLocation[]) locations.toArray(new PluginLocation[0]);\r\n }",
"private static String getTestModulesListContents(ImmutableSet<String> modules) {\n StringBuilder contents = new StringBuilder(\"TEST_MODULES = [\\n\");\n for (String module : modules) {\n contents.append(String.format(\" \\\"%s\\\",\\n\", module));\n }\n contents.append(\"]\");\n return contents.toString();\n }",
"private static URL[] expandWildcardClasspath() {\n List<URL> ret = new ArrayList<URL>();\n int numBaseXJars = 0;\n String classpath = System.getProperty(\"java.class.path\");\n String[] classpathEntries = classpath.split(System.getProperty(\"path.separator\"));\n for( String currCP : classpathEntries ) {\n File classpathFile = new File(currCP);\n URI uri = classpathFile.toURI();\n URL currURL = null;\n try {\n currURL = uri.toURL();\n } catch (MalformedURLException e) {\n System.out.println(\"Ignoring classpath entry: \" + currCP);\n }\n if( currCP.endsWith( \"*\" ) ) {\n // This URL needs to be expanded\n try {\n File currFile = new File( URLDecoder.decode( currURL.getFile(), \"UTF-8\" ) );\n // Search the parent path for any files that end in .jar\n File[] expandedJars = currFile.getParentFile().listFiles(\n new FilenameFilter() {\n public boolean accept( File aDir, String aName ) {\n return aName.endsWith( \".jar\" );\n }\n } );\n // Add the additional jars to the new search path\n if( expandedJars != null ) {\n for( File currJar : expandedJars ) {\n ret.add( currJar.toURI().toURL() );\n if( currJar.getName().matches(BASEX_LIB_MATCH) ) {\n ++numBaseXJars;\n }\n }\n } else {\n // could not expand due to some error, we can try to\n // proceed with out these jars\n System.out.println( \"WARNING: could not expand classpath at: \"+currFile.toString() );\n }\n } catch( Exception e ) {\n // could not expand due to some error, we can try to\n // proceed with out these jars\n e.printStackTrace();\n }\n }\n else {\n // Just use this unmodified\n ret.add( currURL );\n if( currURL.getFile().matches(BASEX_LIB_MATCH) ) {\n ++numBaseXJars;\n }\n }\n }\n // we've had trouble finding multiple jars of the BaseX of different versions\n // so if we find more than we will accept the one that matches the \"prefered\" version\n // which is hard coded to the version used when this workspace was created\n if( numBaseXJars > 1 ) {\n for( Iterator<URL> it = ret.iterator(); it.hasNext(); ) {\n URL currURL = it.next();\n if( currURL.getFile().matches(BASEX_LIB_MATCH) && !currURL.getFile().matches(PREFERED_BASEX_VER) ) {\n it.remove();\n --numBaseXJars;\n }\n }\n }\n if( numBaseXJars == 0 ) {\n System.out.println( \"WARNING: did not recongnize any BaseX jars in classpath. This may indicate missing jars or duplicate version mismatch.\");\n }\n return ret.toArray( new URL[ 0 ] );\n }",
"@Override\n public Set<String> getLibraryClassPath() {\n return Collections.emptySet();\n }",
"protected void getRequires() {\n System.out.println(\"\\nRequires: \");\n /******************************************/\n myIterator.next();\n myRequires = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }",
"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}",
"private String[] addJarsInPath(List<String> paths) {\r\n\t\tSet fullList = new HashSet();\r\n\t\tfor (String path : paths) {\r\n\t\t\tfullList.add(path);\r\n\t\t\tif (!path.endsWith(\".jar\")) {\r\n\t\t\t\tFile dir = new File(path);\r\n\t\t\t\tif (dir.exists() && dir.isDirectory()) {\r\n\t\t\t\t\tString[] jars = dir.list(new FilenameFilter() {\r\n\t\t\t\t\t\tpublic boolean accept(File f, String name) {\r\n\t\t\t\t\t\t\tif (name.endsWith(\".jar\")) {\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tfor (int x = 0; x < jars.length; x++) {\r\n\t\t\t\t\t\tfullList.add(jars[x]);\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\treturn (String[]) fullList.toArray(new String[0]);\r\n\t}",
"public static String getPathProgramsFiles(){\r\n\t\treturn System.getenv(\"ProgramFiles\");\r\n\t}",
"public List<String> getManualClassPath() {\n return classPath;\n }",
"public static ArrayList<String> getAvailableParts() {\n ArrayList<String> allParts = new ArrayList<String>();\n String pattern = \"_db.dat\";\n File dir = new File(getRapidSmithPath() + File.separator + \"devices\");\n if (!dir.exists()) {\n MessageGenerator.briefErrorAndExit(\"ERROR: No part files exist. Please run \" +\n Installer.class.getCanonicalName() + \" to create part files.\");\n }\n for (String partFamily : dir.list()) {\n File partDir = new File(dir.getAbsolutePath() + File.separator + partFamily);\n for (String part : partDir.list()) {\n if (part.endsWith(pattern)) {\n allParts.add(part.replace(pattern, \"\"));\n }\n }\n }\n return allParts;\n }",
"public List<String> getDependencies() {\n return new ArrayList<>(mDependencies);\n }",
"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 }",
"public abstract List<String> path();"
] | [
"0.6145622",
"0.6051846",
"0.60474974",
"0.6041861",
"0.6028914",
"0.60175645",
"0.5993094",
"0.598802",
"0.5902304",
"0.5832094",
"0.579541",
"0.57720506",
"0.5757617",
"0.57287806",
"0.56745833",
"0.5664358",
"0.56330997",
"0.560282",
"0.5570216",
"0.556494",
"0.55415726",
"0.5518597",
"0.55023986",
"0.54699045",
"0.5456178",
"0.5447567",
"0.544664",
"0.5444734",
"0.5409099",
"0.5401524",
"0.53936213",
"0.5389797",
"0.5387307",
"0.53844744",
"0.53724474",
"0.53439236",
"0.5337567",
"0.53331625",
"0.53143936",
"0.53127015",
"0.53117335",
"0.5303568",
"0.5298208",
"0.5265367",
"0.5248486",
"0.5222409",
"0.5217746",
"0.5207512",
"0.51962507",
"0.519573",
"0.5183618",
"0.51656294",
"0.515725",
"0.51553553",
"0.515258",
"0.5136537",
"0.5136503",
"0.51203865",
"0.5119791",
"0.5117772",
"0.51147896",
"0.5103707",
"0.51026195",
"0.5090059",
"0.50873333",
"0.5083878",
"0.5081886",
"0.507177",
"0.50639087",
"0.50585085",
"0.5057609",
"0.5056404",
"0.5054522",
"0.5052907",
"0.5046701",
"0.50452346",
"0.50408936",
"0.5039237",
"0.50381166",
"0.50367016",
"0.5026079",
"0.5025963",
"0.50146127",
"0.5007352",
"0.49971026",
"0.4993236",
"0.4989183",
"0.4985261",
"0.4985109",
"0.49810386",
"0.49787197",
"0.49786928",
"0.49720812",
"0.49697623",
"0.49567878",
"0.4941025",
"0.49396035",
"0.4928128",
"0.4927385",
"0.4918823",
"0.49103382"
] | 0.0 | -1 |
Commaseparated list of paths to files and/or directories which contain modules required by the script. | public final InvokeScriptedProcessor setModuleDirectory(final String moduleDirectory) {
properties.put(MODULE_DIRECTORY_PROPERTY, moduleDirectory);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List getRuntimeClasspath(IPath installPath, IPath configPath);",
"private void getModules() throws BuildException {\n FilenameFilter fltr = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n return name.endsWith(\".war\");\n }\n };\n\n if (warDir == null) {\n throw new BuildException(\"No wardir supplied\");\n }\n\n String[] warnames = warDir.list(fltr);\n\n if (warnames == null) {\n throw new BuildException(\"No wars found at \" + warDir);\n }\n\n for (int wi = 0; wi < warnames.length; wi++) {\n wars.add(warnames[wi]);\n }\n\n for (FileSet fs: filesets) {\n DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n String[] dsFiles = ds.getIncludedFiles();\n\n for (int dsi = 0; dsi < dsFiles.length; dsi++) {\n String fname = dsFiles[dsi];\n\n if (fname.endsWith(\".jar\")) {\n jars.add(fname);\n } else if (fname.endsWith(\".war\")) {\n wars.add(fname);\n }\n }\n }\n }",
"List<IDirectory> getSourcePath();",
"Set<File> getModules();",
"Set<Path> getDependencies();",
"public IPath[] getAdditionalDependencies();",
"public List<String> getCompleteProjectPythonPath(PybaseInterpreter interpreter,\n\t\t\t\t\t\t\t AbstractInterpreterManager manager)\n{\n ModulesManager projectModulesManager = getProjectModulesManager();\n if (projectModulesManager == null) return null;\n return projectModulesManager.getCompletePythonPath(interpreter, manager);\n}",
"java.util.List<java.lang.String>\n getClasspathList();",
"java.util.List<java.lang.String>\n getClasspathList();",
"static List getCommonClasspath(BaseManager mgr) throws IOException {\n\n InstanceEnvironment env = mgr.getInstanceEnvironment();\n String dir = env.getLibClassesPath();\n String jarDir = env.getLibPath();\n\n return ClassLoaderUtils.getUrlList(new File[] {new File(dir)}, \n new File[] {new File(jarDir)});\n }",
"java.util.List<java.lang.String>\n getSourcepathList();",
"java.util.List<java.lang.String>\n getProcessorpathList();",
"java.util.List<java.lang.String>\n getSourcepathList();",
"java.util.List<java.lang.String>\n getSourceFileList();",
"@NotNull\n public List<String> extractPotentialPaths(@NotNull PsiElement element) {\n List<String> qualifiedNames = new ArrayList<>();\n\n String path = extractPathName(element, OclTypes.INSTANCE);\n if (!path.isEmpty()) {\n PsiQualifiedNamedElement moduleAlias = PsiFinder.getInstance().findModuleAlias(element.getProject(), path);\n String modulePath = moduleAlias == null ? path : moduleAlias.getQualifiedName();\n qualifiedNames.add(modulePath);\n qualifiedNames.add(((FileBase) element.getContainingFile()).asModuleName() + \".\" + modulePath);\n }\n\n // Walk backward until top of the file is reached, trying to find local opens and opens/includes\n PsiElement item = element;\n while (item != null) {\n if (100 < qualifiedNames.size()) {\n break; // There must be a problem with the parser\n }\n\n if (item instanceof FileBase) {\n qualifiedNames.add(((FileBase) item).asModuleName());\n break;\n } else if (item instanceof PsiOpen || item instanceof PsiInclude) {\n String openName = ((PsiNamedElement) item).getName();\n // Add open value to all previous elements\n List<String> withOpenQualifier = qualifiedNames.stream().map(name -> openName + \".\" + name).collect(Collectors.toList());\n qualifiedNames.addAll(withOpenQualifier);\n\n qualifiedNames.add(openName);\n } else if (item instanceof PsiModule) {\n PsiModule module = (PsiModule) item;\n String moduleName = module.getName();\n String moduleAlias = findModuleAlias(element.getProject(), module.getAlias());\n\n if (moduleAlias != null && !moduleAlias.equals(moduleName)) {\n // Replace module name in resolved paths with the module alias\n qualifiedNames = qualifiedNames.stream().map(name -> {\n if (name.equals(moduleName)) {\n return moduleAlias;\n } else if (name.startsWith(moduleName + \".\")) {\n int length = moduleAlias.length();\n if (length <= moduleName.length()) {\n return moduleAlias + \".\" + moduleName.substring(length);\n }\n } else if (name.endsWith(\".\" + moduleName)) {\n return name.replace(\".\" + moduleName, \".\" + moduleAlias);\n }\n return name;\n }).collect(Collectors.toList());\n }\n }\n\n PsiElement prevItem = item.getPrevSibling();\n if (prevItem == null) {\n PsiElement parent = item.getParent();\n if (parent instanceof PsiLocalOpen) {\n String localOpenName = ((PsiLocalOpen) parent).getName();\n String localOpenAlias = findModuleAlias(element.getProject(), localOpenName);\n qualifiedNames.add(localOpenAlias == null || localOpenAlias.equals(localOpenName) ? localOpenName : localOpenAlias);\n }\n item = parent;\n } else {\n item = prevItem;\n }\n }\n\n qualifiedNames.add(\"Pervasives\");\n return qualifiedNames;\n }",
"public String searchExportedPlugins()\n\t{\n\t\tFile parent = null;\n\t\tif (System.getProperty(\"eclipse.home.location\") != null)\n\t\t\tparent = new File(URI.create(System.getProperty(\"eclipse.home.location\").replaceAll(\" \", \"%20\")));\n\t\telse parent = new File(System.getProperty(\"user.dir\"));\n\n\t\tList<String> pluginLocations = exportModel.getPluginLocations();\n\t\tfor (String libName : NG_LIBS)\n\t\t{\n\t\t\tint i = 0;\n\t\t\tboolean found = false;\n\t\t\twhile (!found && i < pluginLocations.size())\n\t\t\t{\n\t\t\t\tFile pluginLocation = new File(pluginLocations.get(i));\n\t\t\t\tif (!pluginLocation.isAbsolute())\n\t\t\t\t{\n\t\t\t\t\tpluginLocation = new File(parent, pluginLocations.get(i));\n\t\t\t\t}\n\t\t\t\tFileFilter filter = new WildcardFileFilter(libName);\n\t\t\t\tFile[] libs = pluginLocation.listFiles(filter);\n\t\t\t\tif (libs != null && libs.length > 0)\n\t\t\t\t{\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (!found) return libName;\n\t\t}\n\t\treturn null;\n\t}",
"private static File[] listScripts(File baseDir) {\n\n return baseDir.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n boolean hasJsonFileExtension = \"json\".equals(Files.getFileExtension(name));\n if (!(hasJsonFileExtension || new File(dir, name).isDirectory())) {\n System.err.println(\"Ignoring script \" + name + \". File name must be have .json extension.\");\n return false;\n }\n Integer index = getIndex(name);\n if (index == null) {\n System.err.println(\"Ignoring script \" + name + \". File name must start with an index number followed by an underscore and a description.\");\n return false;\n }\n return true;\n }\n });\n }",
"public String[] getIncludedDirectories()\n {\n int count = dirsIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsIncluded.get( i );\n }\n return directories;\n }",
"protected List getDependenciesIncludeList()\n throws MojoExecutionException\n {\n List includes = new ArrayList();\n\n for ( Iterator i = getDependencies().iterator(); i.hasNext(); )\n {\n Artifact a = (Artifact) i.next();\n\n if ( project.getGroupId().equals( a.getGroupId() ) && project.getArtifactId().equals( a.getArtifactId() ))\n {\n continue;\n }\n\n includes.add( a.getGroupId() + \":\" + a.getArtifactId() );\n }\n\n return includes;\n }",
"public String[] getIncludedFiles()\n {\n int count = filesIncluded.size();\n String[] files = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n files[ i ] = (String)filesIncluded.get( i );\n }\n return files;\n }",
"List<String> getConfigFilePaths();",
"ImportOption[] getImports();",
"public List<File> getClasspathElements() {\n\t\tthis.parseSystemClasspath();\n\t return classpathElements;\n\t}",
"public List<String> getCompilerExternalLibraryPath(Configuration config)\n {\n \tList<String> list = config.getCompilerSwfExternalLibraryPath();\n if (list != null && list.size() > 0)\n \treturn list;\n return config.getCompilerExternalLibraryPath();\n }",
"private List<RubyModule> gatherModules(RubyModule baseModule) {\n // build a list of all modules to consider for inclusion\n List<RubyModule> modulesToInclude = new ArrayList<RubyModule>();\n while (baseModule != null) {\n modulesToInclude.add(baseModule);\n baseModule = baseModule.getSuperClass();\n }\n \n return modulesToInclude;\n }",
"public String[] getClasspaths(IJavaProgramPrepareResult result) {\n\t\tString[] classpath = new String[0];\n\t\t\n\t\treturn classpath;\n\t}",
"ModulePath getModulePath();",
"public String[] getClasspathLibNames()\n {\n String libStr = getProperty(KEY_CP_LIBS, \"\");\n return StringUtil.split(libStr, \",\");\n }",
"private String getRequireBundle() {\n StringBuilder requires = new StringBuilder();\n if (!isLanguageModule()) {\n for (ModuleImport anImport : module.getImports()) {\n Module m = anImport.getModule();\n if (!m.isJava() && !m.equals(module)) {\n if (requires.length() > 0) {\n requires.append(\",\");\n }\n \n requires.append(m.getNameAsString())\n .append(\";bundle-version=\").append(m.getVersion());\n \n if (anImport.isExport()) {\n requires.append(\";visibility:=reexport\");\n }\n if (anImport.isOptional()) {\n requires.append(\";resolution:=optional\");\n }\n }\n }\n }\n return requires.toString();\n }",
"java.util.List<java.lang.String>\n getBootclasspathList();",
"public String getEndorsedDirectories(IPath installPath);",
"public java.util.List getImportedJarPaths() {\n \t\treturn importedJarPaths;\n \t}",
"java.util.List<java.lang.String>\n getBootclasspathList();",
"public List<String> getCompilerLibraryPath(Configuration config)\n {\n \tList<String> list = config.getCompilerSwfLibraryPath();\n if (list != null && list.size() > 0)\n \treturn list;\n return config.getCompilerLibraryPath();\n }",
"Set<String> getDependencies();",
"public String[] requires() { return new String[0]; }",
"private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }",
"java.util.List<java.lang.String>\n getPathsList();",
"private Path[] getPathArray(List<String> commandLineArgs) {\n int numOfFiles = commandLineArgs.size();\n Path[] filePathArray = new Path[numOfFiles];\n Path currentDir = Paths.get(Jsh.getCurrentDirectory());\n for (int i = 0; i < numOfFiles; i++) {\n filePathArray[i] = currentDir.resolve(commandLineArgs.get(i));\n }\n return filePathArray;\n }",
"List<String> getListPaths();",
"public String[] getResolvedDependencies();",
"String getApplicationDependencies();",
"java.util.List<com.google.wireless.android.sdk.stats.CriticalPathAnalyzerData.PluginBuildData>\n getPluginsCriticalPathList();",
"private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}",
"public List<Antfile> getImports()\n {\n return imports;\n }",
"public Vector<YANG_Specification> getImportedModules(String[] paths) {\n\t\tVector<YANG_Specification> im = new Vector<YANG_Specification>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Import) {\n\t\t\t\tYANG_Import imported = (YANG_Import) linkage;\n\t\t\t\tString importedspecname = imported.getImportedModule();\n\t\t\t\tYANG_Specification importedspec = getExternal(paths,\n\t\t\t\t\t\timportedspecname, imported.getLine(), imported.getCol());\n\t\t\t\tim.add(importedspec);\n\n\t\t\t}\n\t\t}\n\t\treturn im;\n\t}",
"private static CcToolchainVariables calculateModuleVariable(\n NestedSet<Artifact> potentialModules) {\n ImmutableList.Builder<String> usedModulePaths = ImmutableList.builder();\n for (Artifact input : potentialModules.toList()) {\n if (input.isFileType(CppFileTypes.CPP_MODULE)) {\n usedModulePaths.add(input.getExecPathString());\n }\n }\n CcToolchainVariables.Builder variableBuilder = CcToolchainVariables.builder();\n variableBuilder.addStringSequenceVariable(\n CompileBuildVariables.MODULE_FILES.getVariableName(), usedModulePaths.build());\n return variableBuilder.build();\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}",
"public IAstPreprocessorIncludeDirective[] getIncludeFiles();",
"private ArrayList<String> getJARList() {\n String[] jars = getJARNames();\n return new ArrayList<>(Arrays.asList(jars));\n }",
"@Override\n public FileCollection getCompileIncludePath() {\n return super.getCompileIncludePath().plus(getProjectLayout().files(new Callable<FileCollection>() {\n @Override\n public FileCollection call() {\n CppComponent tested = testedComponent.getOrNull();\n if (tested == null) {\n return getProjectLayout().files();\n }\n return ((DefaultCppComponent) tested).getAllHeaderDirs();\n }\n }));\n }",
"public String[] getImports() {\n\t\treturn (this.Imports.length == 0)?this.Imports:this.Imports.clone();\n\t}",
"private static Extension[] getExtensions( final ArrayList librarys )\n throws TaskException\n {\n final ArrayList extensions = new ArrayList();\n final Iterator iterator = librarys.iterator();\n while( iterator.hasNext() )\n {\n final LibFileSet fileSet = (LibFileSet)iterator.next();\n final DirectoryScanner scanner = ScannerUtil.getDirectoryScanner( fileSet );\n final File basedir = scanner.getBasedir();\n final String[] files = scanner.getIncludedFiles();\n for( int i = 0; i < files.length; i++ )\n {\n final File file = new File( basedir, files[ i ] );\n loadExtensions( file, extensions );\n }\n }\n return (Extension[])extensions.toArray( new Extension[ extensions.size() ] );\n }",
"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 default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}",
"public Vector<YANG_Specification> getIncludedSubModules(String[] paths) {\n\n\t\tVector<YANG_Specification> is = new Vector<YANG_Specification>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Include) {\n\t\t\t\tYANG_Include included = (YANG_Include) linkage;\n\t\t\t\tString includedspecname = included.getIncludedModule();\n\t\t\t\tYANG_Revision revision = included.getRevision();\n\t\t\t\tYANG_Specification includedspec = null;\n\t\t\t\tif (revision != null) {\n\t\t\t\t\tString incname = includedspecname;\n\t\t\t\t\tincludedspecname += \".\" + revision.getDate();\n\t\t\t\t\tincludedspec = getExternal(paths, includedspecname,\n\t\t\t\t\t\t\tincname, included.getLine(), included.getCol());\n\t\t\t\t} else\n\t\t\t\t\tincludedspec = getExternal(paths, includedspecname,\n\t\t\t\t\t\t\tincluded.getLine(), included.getCol());\n\n\t\t\t\tif (includedspec != null) {\n\t\t\t\t\tincluded.setIncludedsubmodule(includedspec);\n\t\t\t\t\tis.add(includedspec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn is;\n\n\t}",
"public static List<Path> getRequestedFiles(\n String[] givenPaths, Map<String, Documentation> pkgDocs)\n throws IOException, ShadowException, ConfigurationException {\n List<Path> sourceFiles = new ArrayList<>();\n Map<Path, Path> imports = Configuration.getConfiguration().getImport();\n Path current = null;\n for (String path : givenPaths) {\n\n for (Path _import : imports.keySet()) {\n Path candidate = _import.resolve(Paths.get(path));\n if (Files.exists(candidate)) current = candidate.toAbsolutePath().normalize();\n break;\n }\n\n // Ensure that the source file exists\n if (current == null) throw new FileNotFoundException(\"File at \" + path + \" not found\");\n\n // If the file is a directory, process it as a package\n if (Files.isDirectory(current)) sourceFiles.addAll(getPackageFiles(current, true, pkgDocs));\n else if (current.toString().endsWith(SRC_EXTENSION)) sourceFiles.add(current);\n else if (current.getFileName().toString().equals(PKG_INFO_FILE))\n processPackageInfo(current, pkgDocs);\n else\n // Only do this for explicitly requested files\n throw new DocumentationException(\n \"File at \"\n + current\n + \" is not a package \"\n + \"directory, \"\n + PKG_INFO_FILE\n + \" file, or a source \"\n + \"file ending in \"\n + SRC_EXTENSION);\n }\n return sourceFiles;\n }",
"Requires getRequires();",
"public File[] getScriptFiles() {\n\t\treturn new File[] { scriptFile };\n\t}",
"public abstract List<String> getDirs( );",
"Iterable<String> getModuleNames();",
"@Classpath\n public FileCollection getJdependClasspath() {\n return jdependClasspath;\n }",
"public String[] getClassesToCompile();",
"@Nonnull\r\n public List<String> getSystemIncludePath() {\r\n return sysincludepath;\r\n }",
"public static List<String> getAllModules()\n {\n List<String> list = new ArrayList<String>();\n for (Map.Entry<String, String> listItem: mapper.entrySet()) {\n list.add(listItem.getValue());\n }\n return list;\n }",
"public List<ApexPath> getPaths() {\n TestUtil.Config config = TestUtil.Config.Builder.get(g, sourceCode).build();\n return TestUtil.getApexPaths(config, apexPathExpanderConfig, methodName);\n }",
"public String getSystemClassPath();",
"static URL[] getClassPath() throws MalformedURLException {\n List<URL> classPaths = new ArrayList<>();\n\n classPaths.add(new File(\"target/test-classes\").toURI().toURL());\n\n // Add this test jar which has some frontend resources used in tests\n URL jar = getTestResource(\"jar-with-frontend-resources.jar\");\n classPaths.add(jar);\n\n // Add other paths already present in the system classpath\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL[] urls = URLClassLoader.newInstance(new URL[] {}, classLoader)\n .getURLs();\n for (URL url : urls) {\n classPaths.add(url);\n }\n return classPaths.toArray(new URL[0]);\n }",
"public com.google.protobuf.ProtocolStringList\n getClasspathList() {\n return classpath_.getUnmodifiableView();\n }",
"public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }",
"public com.google.protobuf.ProtocolStringList\n getClasspathList() {\n return classpath_;\n }",
"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 List getListOfExtendedModules(String rootModule)\r\n {\r\n Vector dependantModules = null;\r\n if (rootModule == null) \r\n {\r\n dependantModules = new Vector();\r\n return dependantModules;\r\n }\r\n dependantModules = (Vector) moduleStore.getValues(rootModule);\r\n if (dependantModules == null)\r\n {\r\n dependantModules = new Vector();\r\n }\r\n return dependantModules;\r\n }",
"public String[] getAllDependencyExtensions();",
"FileCollection getGeneratedSourcesDirs();",
"public List<String> getDependencies() throws IOException {\n\t\tPackageJSON packageJSON = new ObjectMapper()\n\t\t\t\t.readValue(this.getClass().getClassLoader().getResourceAsStream(\"package.json\"), PackageJSON.class);\n\t\treturn packageJSON.getDependencies();\n\t}",
"private HashSet<String> refreshLinterFromGoPath() {\n String goPath = System.getenv(\"GOPATH\");\n HashSet<String> rst = new HashSet<>();\n\n if (goPath != null) {\n for (String path: goPath.split(File.pathSeparator)) {\n Path fullPath = Paths.get(path, \"bin\", PlatformSettings.INSTANCE.getLinterExecutableName());\n if (fullPath.toFile().canExecute()) {\n rst.add(fullPath.toString());\n }\n }\n }\n return rst;\n }",
"public static List<Module> getExtraDependencyModules() {\r\n\t\treturn Arrays.asList((Module)new TitanGraphModule());\r\n\t}",
"private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\"\\\\r?\\\\n\");\n for (String entry : dependenciesGraph) {\n String moduleToAdd = entry.split(\" \")[1];\n addModuleDependencies(moduleToAdd, cachePath);\n }\n restoreModAnsSumFiles();\n }",
"private String[] buildClassPath( final File systemFile,\n final List<LocalSystemFile> systemFiles,\n final Configuration configuration )\n {\n final StringBuilder prepend = new StringBuilder();\n final StringBuilder append = new StringBuilder();\n for( LocalSystemFile ref : systemFiles )\n {\n if( ref.getSystemFileReference().shouldPrepend() )\n {\n if( prepend.length() != 0 )\n {\n prepend.append( File.pathSeparator );\n }\n prepend.append( ref.getFile().getAbsolutePath() );\n }\n else\n {\n if( append.length() != 0 )\n {\n append.append( File.pathSeparator );\n }\n append.append( ref.getFile().getAbsolutePath() );\n }\n }\n if( prepend.length() != 0 )\n {\n prepend.append( File.pathSeparator );\n }\n if( append.length() != 0 )\n {\n append.insert( 0, File.pathSeparator );\n }\n final StringBuilder classPath = new StringBuilder();\n classPath.append( prepend );\n classPath.append( systemFile.getAbsolutePath() );\n classPath.append( append );\n classPath.append( configuration.getClasspath() );\n \n return classPath.toString().split( File.pathSeparator );\n }",
"public String[] getNotIncludedDirectories()\n throws TaskException\n {\n slowScan();\n int count = dirsNotIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsNotIncluded.get( i );\n }\n return directories;\n }",
"private ArrayList<String> getFullDir() {\r\n\t\tArrayList<String> fullDir = new ArrayList<String>();\r\n\r\n\t\t// We go through all the modules in the model and connect the selDir and full\r\n\t\t// top module together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tPanelInstMod panel = helperInstMod.model.getElementAt(i);\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\t// We add one more as a buffer for the top module when configuring the modules\r\n\t\t\t\t// (DialogWire).\r\n\t\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t\t}\r\n\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t}\r\n\t\treturn fullDir;\r\n\t}",
"List<Path> getFiles();",
"public static ClassPath[] probeForClassPath(File startNode){\n // thread safing the list, because we are only adding this isnt strictly neccecery\n List<ClassPath> retunlist = (Collections.synchronizedList(new ArrayList<>()));\n if (startNode.isDirectory()){\n Meta.recursiveProbe(startNode, retunlist);\n }\n\n return retunlist.toArray(new ClassPath[0]);\n }",
"public String[] getUnresolvedDependencies();",
"public List<Executable> listExecutables() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Executable.class);\n\t}",
"private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}",
"public PluginLocation[] getBuiltinPluginLocations()\r\n {\r\n java.lang.String conf = \"/net/sf/xpontus/plugins/plugins.txt\";\r\n\r\n InputStream is = null;\r\n LineIterator it = null;\r\n\r\n List<PluginLocation> locations = new ArrayList<PluginLocation>();\r\n\r\n try\r\n {\r\n is = getClass().getResourceAsStream(conf);\r\n it = IOUtils.lineIterator(is, \"UTF-8\");\r\n\r\n while (it.hasNext())\r\n {\r\n String line = it.nextLine();\r\n\r\n PluginLocation loc = getPluginLocation(line);\r\n locations.add(loc);\r\n }\r\n }\r\n catch (IOException ex)\r\n {\r\n LOG.error(ex.getMessage(), ex);\r\n }\r\n finally\r\n {\r\n if (is != null)\r\n {\r\n IOUtils.closeQuietly(is);\r\n }\r\n\r\n if (it != null)\r\n {\r\n LineIterator.closeQuietly(it);\r\n }\r\n }\r\n\r\n return (PluginLocation[]) locations.toArray(new PluginLocation[0]);\r\n }",
"public List<String> paths(String path) throws SystemException;",
"private static String getTestModulesListContents(ImmutableSet<String> modules) {\n StringBuilder contents = new StringBuilder(\"TEST_MODULES = [\\n\");\n for (String module : modules) {\n contents.append(String.format(\" \\\"%s\\\",\\n\", module));\n }\n contents.append(\"]\");\n return contents.toString();\n }",
"@Override\n public Set<String> getLibraryClassPath() {\n return Collections.emptySet();\n }",
"private static URL[] expandWildcardClasspath() {\n List<URL> ret = new ArrayList<URL>();\n int numBaseXJars = 0;\n String classpath = System.getProperty(\"java.class.path\");\n String[] classpathEntries = classpath.split(System.getProperty(\"path.separator\"));\n for( String currCP : classpathEntries ) {\n File classpathFile = new File(currCP);\n URI uri = classpathFile.toURI();\n URL currURL = null;\n try {\n currURL = uri.toURL();\n } catch (MalformedURLException e) {\n System.out.println(\"Ignoring classpath entry: \" + currCP);\n }\n if( currCP.endsWith( \"*\" ) ) {\n // This URL needs to be expanded\n try {\n File currFile = new File( URLDecoder.decode( currURL.getFile(), \"UTF-8\" ) );\n // Search the parent path for any files that end in .jar\n File[] expandedJars = currFile.getParentFile().listFiles(\n new FilenameFilter() {\n public boolean accept( File aDir, String aName ) {\n return aName.endsWith( \".jar\" );\n }\n } );\n // Add the additional jars to the new search path\n if( expandedJars != null ) {\n for( File currJar : expandedJars ) {\n ret.add( currJar.toURI().toURL() );\n if( currJar.getName().matches(BASEX_LIB_MATCH) ) {\n ++numBaseXJars;\n }\n }\n } else {\n // could not expand due to some error, we can try to\n // proceed with out these jars\n System.out.println( \"WARNING: could not expand classpath at: \"+currFile.toString() );\n }\n } catch( Exception e ) {\n // could not expand due to some error, we can try to\n // proceed with out these jars\n e.printStackTrace();\n }\n }\n else {\n // Just use this unmodified\n ret.add( currURL );\n if( currURL.getFile().matches(BASEX_LIB_MATCH) ) {\n ++numBaseXJars;\n }\n }\n }\n // we've had trouble finding multiple jars of the BaseX of different versions\n // so if we find more than we will accept the one that matches the \"prefered\" version\n // which is hard coded to the version used when this workspace was created\n if( numBaseXJars > 1 ) {\n for( Iterator<URL> it = ret.iterator(); it.hasNext(); ) {\n URL currURL = it.next();\n if( currURL.getFile().matches(BASEX_LIB_MATCH) && !currURL.getFile().matches(PREFERED_BASEX_VER) ) {\n it.remove();\n --numBaseXJars;\n }\n }\n }\n if( numBaseXJars == 0 ) {\n System.out.println( \"WARNING: did not recongnize any BaseX jars in classpath. This may indicate missing jars or duplicate version mismatch.\");\n }\n return ret.toArray( new URL[ 0 ] );\n }",
"protected void getRequires() {\n System.out.println(\"\\nRequires: \");\n /******************************************/\n myIterator.next();\n myRequires = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }",
"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}",
"private String[] addJarsInPath(List<String> paths) {\r\n\t\tSet fullList = new HashSet();\r\n\t\tfor (String path : paths) {\r\n\t\t\tfullList.add(path);\r\n\t\t\tif (!path.endsWith(\".jar\")) {\r\n\t\t\t\tFile dir = new File(path);\r\n\t\t\t\tif (dir.exists() && dir.isDirectory()) {\r\n\t\t\t\t\tString[] jars = dir.list(new FilenameFilter() {\r\n\t\t\t\t\t\tpublic boolean accept(File f, String name) {\r\n\t\t\t\t\t\t\tif (name.endsWith(\".jar\")) {\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tfor (int x = 0; x < jars.length; x++) {\r\n\t\t\t\t\t\tfullList.add(jars[x]);\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\treturn (String[]) fullList.toArray(new String[0]);\r\n\t}",
"public static String getPathProgramsFiles(){\r\n\t\treturn System.getenv(\"ProgramFiles\");\r\n\t}",
"public List<String> getManualClassPath() {\n return classPath;\n }",
"public static ArrayList<String> getAvailableParts() {\n ArrayList<String> allParts = new ArrayList<String>();\n String pattern = \"_db.dat\";\n File dir = new File(getRapidSmithPath() + File.separator + \"devices\");\n if (!dir.exists()) {\n MessageGenerator.briefErrorAndExit(\"ERROR: No part files exist. Please run \" +\n Installer.class.getCanonicalName() + \" to create part files.\");\n }\n for (String partFamily : dir.list()) {\n File partDir = new File(dir.getAbsolutePath() + File.separator + partFamily);\n for (String part : partDir.list()) {\n if (part.endsWith(pattern)) {\n allParts.add(part.replace(pattern, \"\"));\n }\n }\n }\n return allParts;\n }",
"public List<String> getDependencies() {\n return new ArrayList<>(mDependencies);\n }",
"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 }",
"public abstract List<String> path();"
] | [
"0.61449385",
"0.60513484",
"0.60469466",
"0.6041112",
"0.60289204",
"0.6017834",
"0.5993458",
"0.59869385",
"0.59012276",
"0.583173",
"0.57945424",
"0.5770718",
"0.5756803",
"0.5728566",
"0.5674003",
"0.56647456",
"0.56342536",
"0.56031215",
"0.5569897",
"0.5566752",
"0.55419487",
"0.5518818",
"0.5502301",
"0.5470799",
"0.54546815",
"0.5448421",
"0.5445094",
"0.54440993",
"0.5408737",
"0.5401211",
"0.5393857",
"0.53892106",
"0.5387041",
"0.53846353",
"0.5372341",
"0.5343661",
"0.5336912",
"0.53327626",
"0.531556",
"0.5312195",
"0.53111434",
"0.5303298",
"0.52973175",
"0.52630466",
"0.5248624",
"0.52221966",
"0.5218245",
"0.5208224",
"0.5196437",
"0.5195136",
"0.5185786",
"0.5165439",
"0.5157975",
"0.51546806",
"0.51526165",
"0.5138002",
"0.5137591",
"0.51199925",
"0.5119823",
"0.5119449",
"0.51131904",
"0.51042557",
"0.51033974",
"0.5089059",
"0.5087855",
"0.5084261",
"0.50822294",
"0.5071754",
"0.50629157",
"0.50579065",
"0.5056794",
"0.50540316",
"0.5053791",
"0.505348",
"0.5047133",
"0.50438875",
"0.5041387",
"0.5037648",
"0.5036603",
"0.5035881",
"0.502587",
"0.50250155",
"0.5014932",
"0.5006861",
"0.49964786",
"0.4993521",
"0.49896333",
"0.49857524",
"0.4984619",
"0.4979917",
"0.49782827",
"0.49782613",
"0.49724367",
"0.49691555",
"0.49570647",
"0.49429345",
"0.49388838",
"0.49279618",
"0.49269673",
"0.49186784",
"0.4909636"
] | 0.0 | -1 |
Commaseparated list of paths to files and/or directories which contain modules required by the script. | public final InvokeScriptedProcessor removeModuleDirectory() {
properties.remove(MODULE_DIRECTORY_PROPERTY);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List getRuntimeClasspath(IPath installPath, IPath configPath);",
"private void getModules() throws BuildException {\n FilenameFilter fltr = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n return name.endsWith(\".war\");\n }\n };\n\n if (warDir == null) {\n throw new BuildException(\"No wardir supplied\");\n }\n\n String[] warnames = warDir.list(fltr);\n\n if (warnames == null) {\n throw new BuildException(\"No wars found at \" + warDir);\n }\n\n for (int wi = 0; wi < warnames.length; wi++) {\n wars.add(warnames[wi]);\n }\n\n for (FileSet fs: filesets) {\n DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n String[] dsFiles = ds.getIncludedFiles();\n\n for (int dsi = 0; dsi < dsFiles.length; dsi++) {\n String fname = dsFiles[dsi];\n\n if (fname.endsWith(\".jar\")) {\n jars.add(fname);\n } else if (fname.endsWith(\".war\")) {\n wars.add(fname);\n }\n }\n }\n }",
"List<IDirectory> getSourcePath();",
"Set<File> getModules();",
"Set<Path> getDependencies();",
"public IPath[] getAdditionalDependencies();",
"public List<String> getCompleteProjectPythonPath(PybaseInterpreter interpreter,\n\t\t\t\t\t\t\t AbstractInterpreterManager manager)\n{\n ModulesManager projectModulesManager = getProjectModulesManager();\n if (projectModulesManager == null) return null;\n return projectModulesManager.getCompletePythonPath(interpreter, manager);\n}",
"java.util.List<java.lang.String>\n getClasspathList();",
"java.util.List<java.lang.String>\n getClasspathList();",
"static List getCommonClasspath(BaseManager mgr) throws IOException {\n\n InstanceEnvironment env = mgr.getInstanceEnvironment();\n String dir = env.getLibClassesPath();\n String jarDir = env.getLibPath();\n\n return ClassLoaderUtils.getUrlList(new File[] {new File(dir)}, \n new File[] {new File(jarDir)});\n }",
"java.util.List<java.lang.String>\n getSourcepathList();",
"java.util.List<java.lang.String>\n getProcessorpathList();",
"java.util.List<java.lang.String>\n getSourcepathList();",
"java.util.List<java.lang.String>\n getSourceFileList();",
"@NotNull\n public List<String> extractPotentialPaths(@NotNull PsiElement element) {\n List<String> qualifiedNames = new ArrayList<>();\n\n String path = extractPathName(element, OclTypes.INSTANCE);\n if (!path.isEmpty()) {\n PsiQualifiedNamedElement moduleAlias = PsiFinder.getInstance().findModuleAlias(element.getProject(), path);\n String modulePath = moduleAlias == null ? path : moduleAlias.getQualifiedName();\n qualifiedNames.add(modulePath);\n qualifiedNames.add(((FileBase) element.getContainingFile()).asModuleName() + \".\" + modulePath);\n }\n\n // Walk backward until top of the file is reached, trying to find local opens and opens/includes\n PsiElement item = element;\n while (item != null) {\n if (100 < qualifiedNames.size()) {\n break; // There must be a problem with the parser\n }\n\n if (item instanceof FileBase) {\n qualifiedNames.add(((FileBase) item).asModuleName());\n break;\n } else if (item instanceof PsiOpen || item instanceof PsiInclude) {\n String openName = ((PsiNamedElement) item).getName();\n // Add open value to all previous elements\n List<String> withOpenQualifier = qualifiedNames.stream().map(name -> openName + \".\" + name).collect(Collectors.toList());\n qualifiedNames.addAll(withOpenQualifier);\n\n qualifiedNames.add(openName);\n } else if (item instanceof PsiModule) {\n PsiModule module = (PsiModule) item;\n String moduleName = module.getName();\n String moduleAlias = findModuleAlias(element.getProject(), module.getAlias());\n\n if (moduleAlias != null && !moduleAlias.equals(moduleName)) {\n // Replace module name in resolved paths with the module alias\n qualifiedNames = qualifiedNames.stream().map(name -> {\n if (name.equals(moduleName)) {\n return moduleAlias;\n } else if (name.startsWith(moduleName + \".\")) {\n int length = moduleAlias.length();\n if (length <= moduleName.length()) {\n return moduleAlias + \".\" + moduleName.substring(length);\n }\n } else if (name.endsWith(\".\" + moduleName)) {\n return name.replace(\".\" + moduleName, \".\" + moduleAlias);\n }\n return name;\n }).collect(Collectors.toList());\n }\n }\n\n PsiElement prevItem = item.getPrevSibling();\n if (prevItem == null) {\n PsiElement parent = item.getParent();\n if (parent instanceof PsiLocalOpen) {\n String localOpenName = ((PsiLocalOpen) parent).getName();\n String localOpenAlias = findModuleAlias(element.getProject(), localOpenName);\n qualifiedNames.add(localOpenAlias == null || localOpenAlias.equals(localOpenName) ? localOpenName : localOpenAlias);\n }\n item = parent;\n } else {\n item = prevItem;\n }\n }\n\n qualifiedNames.add(\"Pervasives\");\n return qualifiedNames;\n }",
"public String searchExportedPlugins()\n\t{\n\t\tFile parent = null;\n\t\tif (System.getProperty(\"eclipse.home.location\") != null)\n\t\t\tparent = new File(URI.create(System.getProperty(\"eclipse.home.location\").replaceAll(\" \", \"%20\")));\n\t\telse parent = new File(System.getProperty(\"user.dir\"));\n\n\t\tList<String> pluginLocations = exportModel.getPluginLocations();\n\t\tfor (String libName : NG_LIBS)\n\t\t{\n\t\t\tint i = 0;\n\t\t\tboolean found = false;\n\t\t\twhile (!found && i < pluginLocations.size())\n\t\t\t{\n\t\t\t\tFile pluginLocation = new File(pluginLocations.get(i));\n\t\t\t\tif (!pluginLocation.isAbsolute())\n\t\t\t\t{\n\t\t\t\t\tpluginLocation = new File(parent, pluginLocations.get(i));\n\t\t\t\t}\n\t\t\t\tFileFilter filter = new WildcardFileFilter(libName);\n\t\t\t\tFile[] libs = pluginLocation.listFiles(filter);\n\t\t\t\tif (libs != null && libs.length > 0)\n\t\t\t\t{\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (!found) return libName;\n\t\t}\n\t\treturn null;\n\t}",
"private static File[] listScripts(File baseDir) {\n\n return baseDir.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n boolean hasJsonFileExtension = \"json\".equals(Files.getFileExtension(name));\n if (!(hasJsonFileExtension || new File(dir, name).isDirectory())) {\n System.err.println(\"Ignoring script \" + name + \". File name must be have .json extension.\");\n return false;\n }\n Integer index = getIndex(name);\n if (index == null) {\n System.err.println(\"Ignoring script \" + name + \". File name must start with an index number followed by an underscore and a description.\");\n return false;\n }\n return true;\n }\n });\n }",
"public String[] getIncludedDirectories()\n {\n int count = dirsIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsIncluded.get( i );\n }\n return directories;\n }",
"protected List getDependenciesIncludeList()\n throws MojoExecutionException\n {\n List includes = new ArrayList();\n\n for ( Iterator i = getDependencies().iterator(); i.hasNext(); )\n {\n Artifact a = (Artifact) i.next();\n\n if ( project.getGroupId().equals( a.getGroupId() ) && project.getArtifactId().equals( a.getArtifactId() ))\n {\n continue;\n }\n\n includes.add( a.getGroupId() + \":\" + a.getArtifactId() );\n }\n\n return includes;\n }",
"public String[] getIncludedFiles()\n {\n int count = filesIncluded.size();\n String[] files = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n files[ i ] = (String)filesIncluded.get( i );\n }\n return files;\n }",
"List<String> getConfigFilePaths();",
"ImportOption[] getImports();",
"public List<File> getClasspathElements() {\n\t\tthis.parseSystemClasspath();\n\t return classpathElements;\n\t}",
"public List<String> getCompilerExternalLibraryPath(Configuration config)\n {\n \tList<String> list = config.getCompilerSwfExternalLibraryPath();\n if (list != null && list.size() > 0)\n \treturn list;\n return config.getCompilerExternalLibraryPath();\n }",
"private List<RubyModule> gatherModules(RubyModule baseModule) {\n // build a list of all modules to consider for inclusion\n List<RubyModule> modulesToInclude = new ArrayList<RubyModule>();\n while (baseModule != null) {\n modulesToInclude.add(baseModule);\n baseModule = baseModule.getSuperClass();\n }\n \n return modulesToInclude;\n }",
"public String[] getClasspaths(IJavaProgramPrepareResult result) {\n\t\tString[] classpath = new String[0];\n\t\t\n\t\treturn classpath;\n\t}",
"ModulePath getModulePath();",
"public String[] getClasspathLibNames()\n {\n String libStr = getProperty(KEY_CP_LIBS, \"\");\n return StringUtil.split(libStr, \",\");\n }",
"private String getRequireBundle() {\n StringBuilder requires = new StringBuilder();\n if (!isLanguageModule()) {\n for (ModuleImport anImport : module.getImports()) {\n Module m = anImport.getModule();\n if (!m.isJava() && !m.equals(module)) {\n if (requires.length() > 0) {\n requires.append(\",\");\n }\n \n requires.append(m.getNameAsString())\n .append(\";bundle-version=\").append(m.getVersion());\n \n if (anImport.isExport()) {\n requires.append(\";visibility:=reexport\");\n }\n if (anImport.isOptional()) {\n requires.append(\";resolution:=optional\");\n }\n }\n }\n }\n return requires.toString();\n }",
"java.util.List<java.lang.String>\n getBootclasspathList();",
"public String getEndorsedDirectories(IPath installPath);",
"public java.util.List getImportedJarPaths() {\n \t\treturn importedJarPaths;\n \t}",
"java.util.List<java.lang.String>\n getBootclasspathList();",
"public List<String> getCompilerLibraryPath(Configuration config)\n {\n \tList<String> list = config.getCompilerSwfLibraryPath();\n if (list != null && list.size() > 0)\n \treturn list;\n return config.getCompilerLibraryPath();\n }",
"Set<String> getDependencies();",
"public String[] requires() { return new String[0]; }",
"private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }",
"java.util.List<java.lang.String>\n getPathsList();",
"private Path[] getPathArray(List<String> commandLineArgs) {\n int numOfFiles = commandLineArgs.size();\n Path[] filePathArray = new Path[numOfFiles];\n Path currentDir = Paths.get(Jsh.getCurrentDirectory());\n for (int i = 0; i < numOfFiles; i++) {\n filePathArray[i] = currentDir.resolve(commandLineArgs.get(i));\n }\n return filePathArray;\n }",
"List<String> getListPaths();",
"public String[] getResolvedDependencies();",
"String getApplicationDependencies();",
"java.util.List<com.google.wireless.android.sdk.stats.CriticalPathAnalyzerData.PluginBuildData>\n getPluginsCriticalPathList();",
"private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}",
"public List<Antfile> getImports()\n {\n return imports;\n }",
"public Vector<YANG_Specification> getImportedModules(String[] paths) {\n\t\tVector<YANG_Specification> im = new Vector<YANG_Specification>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Import) {\n\t\t\t\tYANG_Import imported = (YANG_Import) linkage;\n\t\t\t\tString importedspecname = imported.getImportedModule();\n\t\t\t\tYANG_Specification importedspec = getExternal(paths,\n\t\t\t\t\t\timportedspecname, imported.getLine(), imported.getCol());\n\t\t\t\tim.add(importedspec);\n\n\t\t\t}\n\t\t}\n\t\treturn im;\n\t}",
"private static CcToolchainVariables calculateModuleVariable(\n NestedSet<Artifact> potentialModules) {\n ImmutableList.Builder<String> usedModulePaths = ImmutableList.builder();\n for (Artifact input : potentialModules.toList()) {\n if (input.isFileType(CppFileTypes.CPP_MODULE)) {\n usedModulePaths.add(input.getExecPathString());\n }\n }\n CcToolchainVariables.Builder variableBuilder = CcToolchainVariables.builder();\n variableBuilder.addStringSequenceVariable(\n CompileBuildVariables.MODULE_FILES.getVariableName(), usedModulePaths.build());\n return variableBuilder.build();\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}",
"public IAstPreprocessorIncludeDirective[] getIncludeFiles();",
"private ArrayList<String> getJARList() {\n String[] jars = getJARNames();\n return new ArrayList<>(Arrays.asList(jars));\n }",
"@Override\n public FileCollection getCompileIncludePath() {\n return super.getCompileIncludePath().plus(getProjectLayout().files(new Callable<FileCollection>() {\n @Override\n public FileCollection call() {\n CppComponent tested = testedComponent.getOrNull();\n if (tested == null) {\n return getProjectLayout().files();\n }\n return ((DefaultCppComponent) tested).getAllHeaderDirs();\n }\n }));\n }",
"public String[] getImports() {\n\t\treturn (this.Imports.length == 0)?this.Imports:this.Imports.clone();\n\t}",
"private static Extension[] getExtensions( final ArrayList librarys )\n throws TaskException\n {\n final ArrayList extensions = new ArrayList();\n final Iterator iterator = librarys.iterator();\n while( iterator.hasNext() )\n {\n final LibFileSet fileSet = (LibFileSet)iterator.next();\n final DirectoryScanner scanner = ScannerUtil.getDirectoryScanner( fileSet );\n final File basedir = scanner.getBasedir();\n final String[] files = scanner.getIncludedFiles();\n for( int i = 0; i < files.length; i++ )\n {\n final File file = new File( basedir, files[ i ] );\n loadExtensions( file, extensions );\n }\n }\n return (Extension[])extensions.toArray( new Extension[ extensions.size() ] );\n }",
"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 default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}",
"public static List<Path> getRequestedFiles(\n String[] givenPaths, Map<String, Documentation> pkgDocs)\n throws IOException, ShadowException, ConfigurationException {\n List<Path> sourceFiles = new ArrayList<>();\n Map<Path, Path> imports = Configuration.getConfiguration().getImport();\n Path current = null;\n for (String path : givenPaths) {\n\n for (Path _import : imports.keySet()) {\n Path candidate = _import.resolve(Paths.get(path));\n if (Files.exists(candidate)) current = candidate.toAbsolutePath().normalize();\n break;\n }\n\n // Ensure that the source file exists\n if (current == null) throw new FileNotFoundException(\"File at \" + path + \" not found\");\n\n // If the file is a directory, process it as a package\n if (Files.isDirectory(current)) sourceFiles.addAll(getPackageFiles(current, true, pkgDocs));\n else if (current.toString().endsWith(SRC_EXTENSION)) sourceFiles.add(current);\n else if (current.getFileName().toString().equals(PKG_INFO_FILE))\n processPackageInfo(current, pkgDocs);\n else\n // Only do this for explicitly requested files\n throw new DocumentationException(\n \"File at \"\n + current\n + \" is not a package \"\n + \"directory, \"\n + PKG_INFO_FILE\n + \" file, or a source \"\n + \"file ending in \"\n + SRC_EXTENSION);\n }\n return sourceFiles;\n }",
"public Vector<YANG_Specification> getIncludedSubModules(String[] paths) {\n\n\t\tVector<YANG_Specification> is = new Vector<YANG_Specification>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Include) {\n\t\t\t\tYANG_Include included = (YANG_Include) linkage;\n\t\t\t\tString includedspecname = included.getIncludedModule();\n\t\t\t\tYANG_Revision revision = included.getRevision();\n\t\t\t\tYANG_Specification includedspec = null;\n\t\t\t\tif (revision != null) {\n\t\t\t\t\tString incname = includedspecname;\n\t\t\t\t\tincludedspecname += \".\" + revision.getDate();\n\t\t\t\t\tincludedspec = getExternal(paths, includedspecname,\n\t\t\t\t\t\t\tincname, included.getLine(), included.getCol());\n\t\t\t\t} else\n\t\t\t\t\tincludedspec = getExternal(paths, includedspecname,\n\t\t\t\t\t\t\tincluded.getLine(), included.getCol());\n\n\t\t\t\tif (includedspec != null) {\n\t\t\t\t\tincluded.setIncludedsubmodule(includedspec);\n\t\t\t\t\tis.add(includedspec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn is;\n\n\t}",
"public abstract List<String> getDirs( );",
"Requires getRequires();",
"public File[] getScriptFiles() {\n\t\treturn new File[] { scriptFile };\n\t}",
"Iterable<String> getModuleNames();",
"@Classpath\n public FileCollection getJdependClasspath() {\n return jdependClasspath;\n }",
"public String[] getClassesToCompile();",
"public static List<String> getAllModules()\n {\n List<String> list = new ArrayList<String>();\n for (Map.Entry<String, String> listItem: mapper.entrySet()) {\n list.add(listItem.getValue());\n }\n return list;\n }",
"@Nonnull\r\n public List<String> getSystemIncludePath() {\r\n return sysincludepath;\r\n }",
"public List<ApexPath> getPaths() {\n TestUtil.Config config = TestUtil.Config.Builder.get(g, sourceCode).build();\n return TestUtil.getApexPaths(config, apexPathExpanderConfig, methodName);\n }",
"public String getSystemClassPath();",
"static URL[] getClassPath() throws MalformedURLException {\n List<URL> classPaths = new ArrayList<>();\n\n classPaths.add(new File(\"target/test-classes\").toURI().toURL());\n\n // Add this test jar which has some frontend resources used in tests\n URL jar = getTestResource(\"jar-with-frontend-resources.jar\");\n classPaths.add(jar);\n\n // Add other paths already present in the system classpath\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL[] urls = URLClassLoader.newInstance(new URL[] {}, classLoader)\n .getURLs();\n for (URL url : urls) {\n classPaths.add(url);\n }\n return classPaths.toArray(new URL[0]);\n }",
"public com.google.protobuf.ProtocolStringList\n getClasspathList() {\n return classpath_.getUnmodifiableView();\n }",
"public com.google.protobuf.ProtocolStringList\n getClasspathList() {\n return classpath_;\n }",
"public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }",
"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 List getListOfExtendedModules(String rootModule)\r\n {\r\n Vector dependantModules = null;\r\n if (rootModule == null) \r\n {\r\n dependantModules = new Vector();\r\n return dependantModules;\r\n }\r\n dependantModules = (Vector) moduleStore.getValues(rootModule);\r\n if (dependantModules == null)\r\n {\r\n dependantModules = new Vector();\r\n }\r\n return dependantModules;\r\n }",
"public String[] getAllDependencyExtensions();",
"FileCollection getGeneratedSourcesDirs();",
"public List<String> getDependencies() throws IOException {\n\t\tPackageJSON packageJSON = new ObjectMapper()\n\t\t\t\t.readValue(this.getClass().getClassLoader().getResourceAsStream(\"package.json\"), PackageJSON.class);\n\t\treturn packageJSON.getDependencies();\n\t}",
"private HashSet<String> refreshLinterFromGoPath() {\n String goPath = System.getenv(\"GOPATH\");\n HashSet<String> rst = new HashSet<>();\n\n if (goPath != null) {\n for (String path: goPath.split(File.pathSeparator)) {\n Path fullPath = Paths.get(path, \"bin\", PlatformSettings.INSTANCE.getLinterExecutableName());\n if (fullPath.toFile().canExecute()) {\n rst.add(fullPath.toString());\n }\n }\n }\n return rst;\n }",
"private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\"\\\\r?\\\\n\");\n for (String entry : dependenciesGraph) {\n String moduleToAdd = entry.split(\" \")[1];\n addModuleDependencies(moduleToAdd, cachePath);\n }\n restoreModAnsSumFiles();\n }",
"public static List<Module> getExtraDependencyModules() {\r\n\t\treturn Arrays.asList((Module)new TitanGraphModule());\r\n\t}",
"private String[] buildClassPath( final File systemFile,\n final List<LocalSystemFile> systemFiles,\n final Configuration configuration )\n {\n final StringBuilder prepend = new StringBuilder();\n final StringBuilder append = new StringBuilder();\n for( LocalSystemFile ref : systemFiles )\n {\n if( ref.getSystemFileReference().shouldPrepend() )\n {\n if( prepend.length() != 0 )\n {\n prepend.append( File.pathSeparator );\n }\n prepend.append( ref.getFile().getAbsolutePath() );\n }\n else\n {\n if( append.length() != 0 )\n {\n append.append( File.pathSeparator );\n }\n append.append( ref.getFile().getAbsolutePath() );\n }\n }\n if( prepend.length() != 0 )\n {\n prepend.append( File.pathSeparator );\n }\n if( append.length() != 0 )\n {\n append.insert( 0, File.pathSeparator );\n }\n final StringBuilder classPath = new StringBuilder();\n classPath.append( prepend );\n classPath.append( systemFile.getAbsolutePath() );\n classPath.append( append );\n classPath.append( configuration.getClasspath() );\n \n return classPath.toString().split( File.pathSeparator );\n }",
"private ArrayList<String> getFullDir() {\r\n\t\tArrayList<String> fullDir = new ArrayList<String>();\r\n\r\n\t\t// We go through all the modules in the model and connect the selDir and full\r\n\t\t// top module together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tPanelInstMod panel = helperInstMod.model.getElementAt(i);\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\t// We add one more as a buffer for the top module when configuring the modules\r\n\t\t\t\t// (DialogWire).\r\n\t\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t\t}\r\n\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t}\r\n\t\treturn fullDir;\r\n\t}",
"public String[] getNotIncludedDirectories()\n throws TaskException\n {\n slowScan();\n int count = dirsNotIncluded.size();\n String[] directories = new String[ count ];\n for( int i = 0; i < count; i++ )\n {\n directories[ i ] = (String)dirsNotIncluded.get( i );\n }\n return directories;\n }",
"List<Path> getFiles();",
"public static ClassPath[] probeForClassPath(File startNode){\n // thread safing the list, because we are only adding this isnt strictly neccecery\n List<ClassPath> retunlist = (Collections.synchronizedList(new ArrayList<>()));\n if (startNode.isDirectory()){\n Meta.recursiveProbe(startNode, retunlist);\n }\n\n return retunlist.toArray(new ClassPath[0]);\n }",
"public String[] getUnresolvedDependencies();",
"public List<Executable> listExecutables() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Executable.class);\n\t}",
"private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}",
"public PluginLocation[] getBuiltinPluginLocations()\r\n {\r\n java.lang.String conf = \"/net/sf/xpontus/plugins/plugins.txt\";\r\n\r\n InputStream is = null;\r\n LineIterator it = null;\r\n\r\n List<PluginLocation> locations = new ArrayList<PluginLocation>();\r\n\r\n try\r\n {\r\n is = getClass().getResourceAsStream(conf);\r\n it = IOUtils.lineIterator(is, \"UTF-8\");\r\n\r\n while (it.hasNext())\r\n {\r\n String line = it.nextLine();\r\n\r\n PluginLocation loc = getPluginLocation(line);\r\n locations.add(loc);\r\n }\r\n }\r\n catch (IOException ex)\r\n {\r\n LOG.error(ex.getMessage(), ex);\r\n }\r\n finally\r\n {\r\n if (is != null)\r\n {\r\n IOUtils.closeQuietly(is);\r\n }\r\n\r\n if (it != null)\r\n {\r\n LineIterator.closeQuietly(it);\r\n }\r\n }\r\n\r\n return (PluginLocation[]) locations.toArray(new PluginLocation[0]);\r\n }",
"public List<String> paths(String path) throws SystemException;",
"private static String getTestModulesListContents(ImmutableSet<String> modules) {\n StringBuilder contents = new StringBuilder(\"TEST_MODULES = [\\n\");\n for (String module : modules) {\n contents.append(String.format(\" \\\"%s\\\",\\n\", module));\n }\n contents.append(\"]\");\n return contents.toString();\n }",
"@Override\n public Set<String> getLibraryClassPath() {\n return Collections.emptySet();\n }",
"private static URL[] expandWildcardClasspath() {\n List<URL> ret = new ArrayList<URL>();\n int numBaseXJars = 0;\n String classpath = System.getProperty(\"java.class.path\");\n String[] classpathEntries = classpath.split(System.getProperty(\"path.separator\"));\n for( String currCP : classpathEntries ) {\n File classpathFile = new File(currCP);\n URI uri = classpathFile.toURI();\n URL currURL = null;\n try {\n currURL = uri.toURL();\n } catch (MalformedURLException e) {\n System.out.println(\"Ignoring classpath entry: \" + currCP);\n }\n if( currCP.endsWith( \"*\" ) ) {\n // This URL needs to be expanded\n try {\n File currFile = new File( URLDecoder.decode( currURL.getFile(), \"UTF-8\" ) );\n // Search the parent path for any files that end in .jar\n File[] expandedJars = currFile.getParentFile().listFiles(\n new FilenameFilter() {\n public boolean accept( File aDir, String aName ) {\n return aName.endsWith( \".jar\" );\n }\n } );\n // Add the additional jars to the new search path\n if( expandedJars != null ) {\n for( File currJar : expandedJars ) {\n ret.add( currJar.toURI().toURL() );\n if( currJar.getName().matches(BASEX_LIB_MATCH) ) {\n ++numBaseXJars;\n }\n }\n } else {\n // could not expand due to some error, we can try to\n // proceed with out these jars\n System.out.println( \"WARNING: could not expand classpath at: \"+currFile.toString() );\n }\n } catch( Exception e ) {\n // could not expand due to some error, we can try to\n // proceed with out these jars\n e.printStackTrace();\n }\n }\n else {\n // Just use this unmodified\n ret.add( currURL );\n if( currURL.getFile().matches(BASEX_LIB_MATCH) ) {\n ++numBaseXJars;\n }\n }\n }\n // we've had trouble finding multiple jars of the BaseX of different versions\n // so if we find more than we will accept the one that matches the \"prefered\" version\n // which is hard coded to the version used when this workspace was created\n if( numBaseXJars > 1 ) {\n for( Iterator<URL> it = ret.iterator(); it.hasNext(); ) {\n URL currURL = it.next();\n if( currURL.getFile().matches(BASEX_LIB_MATCH) && !currURL.getFile().matches(PREFERED_BASEX_VER) ) {\n it.remove();\n --numBaseXJars;\n }\n }\n }\n if( numBaseXJars == 0 ) {\n System.out.println( \"WARNING: did not recongnize any BaseX jars in classpath. This may indicate missing jars or duplicate version mismatch.\");\n }\n return ret.toArray( new URL[ 0 ] );\n }",
"protected void getRequires() {\n System.out.println(\"\\nRequires: \");\n /******************************************/\n myIterator.next();\n myRequires = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }",
"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}",
"private String[] addJarsInPath(List<String> paths) {\r\n\t\tSet fullList = new HashSet();\r\n\t\tfor (String path : paths) {\r\n\t\t\tfullList.add(path);\r\n\t\t\tif (!path.endsWith(\".jar\")) {\r\n\t\t\t\tFile dir = new File(path);\r\n\t\t\t\tif (dir.exists() && dir.isDirectory()) {\r\n\t\t\t\t\tString[] jars = dir.list(new FilenameFilter() {\r\n\t\t\t\t\t\tpublic boolean accept(File f, String name) {\r\n\t\t\t\t\t\t\tif (name.endsWith(\".jar\")) {\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tfor (int x = 0; x < jars.length; x++) {\r\n\t\t\t\t\t\tfullList.add(jars[x]);\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\treturn (String[]) fullList.toArray(new String[0]);\r\n\t}",
"public static String getPathProgramsFiles(){\r\n\t\treturn System.getenv(\"ProgramFiles\");\r\n\t}",
"public List<String> getManualClassPath() {\n return classPath;\n }",
"public static ArrayList<String> getAvailableParts() {\n ArrayList<String> allParts = new ArrayList<String>();\n String pattern = \"_db.dat\";\n File dir = new File(getRapidSmithPath() + File.separator + \"devices\");\n if (!dir.exists()) {\n MessageGenerator.briefErrorAndExit(\"ERROR: No part files exist. Please run \" +\n Installer.class.getCanonicalName() + \" to create part files.\");\n }\n for (String partFamily : dir.list()) {\n File partDir = new File(dir.getAbsolutePath() + File.separator + partFamily);\n for (String part : partDir.list()) {\n if (part.endsWith(pattern)) {\n allParts.add(part.replace(pattern, \"\"));\n }\n }\n }\n return allParts;\n }",
"public List<String> getDependencies() {\n return new ArrayList<>(mDependencies);\n }",
"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 }",
"public abstract List<String> path();"
] | [
"0.6146064",
"0.60520405",
"0.6048684",
"0.6040753",
"0.60295844",
"0.6018999",
"0.59947634",
"0.5988814",
"0.5903099",
"0.58326554",
"0.57961917",
"0.57719386",
"0.5758393",
"0.572936",
"0.5675863",
"0.56654775",
"0.5633999",
"0.56034267",
"0.557057",
"0.55657876",
"0.5541993",
"0.5519166",
"0.5503315",
"0.5471181",
"0.5455202",
"0.5449589",
"0.54467505",
"0.5444975",
"0.5408857",
"0.5402193",
"0.5394464",
"0.53899175",
"0.538792",
"0.538544",
"0.53727293",
"0.53440326",
"0.5337901",
"0.5333993",
"0.53156537",
"0.5313916",
"0.531214",
"0.53041965",
"0.52978253",
"0.5264688",
"0.5248832",
"0.5222095",
"0.52183515",
"0.520911",
"0.5196263",
"0.5195116",
"0.5185884",
"0.5166119",
"0.5157162",
"0.51542604",
"0.5153309",
"0.5138295",
"0.5137334",
"0.5121183",
"0.51198775",
"0.5118296",
"0.5114539",
"0.5105349",
"0.510475",
"0.5088537",
"0.50883985",
"0.50848585",
"0.5083224",
"0.50725794",
"0.5064495",
"0.50581896",
"0.50577986",
"0.50549155",
"0.50542575",
"0.5053811",
"0.5049573",
"0.50441265",
"0.5042107",
"0.5038239",
"0.5037722",
"0.50375015",
"0.5026804",
"0.5026283",
"0.5014828",
"0.5007919",
"0.49979788",
"0.49933127",
"0.49902856",
"0.4985739",
"0.49856895",
"0.49799573",
"0.49792483",
"0.49790877",
"0.4971946",
"0.49705973",
"0.4957084",
"0.49422947",
"0.49399558",
"0.4928266",
"0.4927491",
"0.49195957",
"0.491153"
] | 0.0 | -1 |
To set the default value while creating tables in database. | @PrePersist
void preInsert() {
this.isActive = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTable(DefaultTable table) {\n\t\t\r\n\t}",
"public void setDatabaseDefaultValue(String v) { // #LGU 10/08/2011\n\t\t_sDatabaseDefaultValue = v;\n\t}",
"public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }",
"public void initDefaultValues() {\n }",
"protected void setToDefault(){\n\n\t}",
"public void setToDefault();",
"private void updateDefaultValues(DefaultValues defValue) throws NbaDataAccessException {\n setDefValuesKeys(defValue); //SPR2741\n nbaAcdb.updateDefaultValues(defValue);\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"XSRSH.S\", (DBTable) null, (-2837), \"qfck0HL\");\n defaultDBColumn0.setDefaultValue(\"2GY_\");\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"XSRSH.S QFCK0HL DEFAULT 2GY_ NULL\", string0);\n }",
"private void setDefaultDBValues() {\r\n this.rhostfield.setText(hostnameString_default);\r\n this.rportfield.setText((new Integer(portNr_default)).toString());\r\n this.rdatabasefield.setText(databaseString_default);\r\n this.ruserfield.setText(rusernameString_default);\r\n this.rpasswdfield.setText(\"\");\r\n this.rtablename1efield.setText(nodeList_DBtable_default);\r\n this.colnodeIdfield.setText(node_ids_DBcol_default);\r\n this.colnodeLabelfield.setText(node_labels_DBcol_default);\r\n this.rtablename2efield.setText(edgeList_DBtable_default);\r\n this.coledge1field.setText(edgeList_DBcol1_default);\r\n this.coledge2field.setText(edgeList_DBcol2_default);\r\n this.colweightfield.setText(edgeList_DBcolweight_default);\r\n this.otablenamefield.setText(result_DBtable_default);\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }",
"public void setTableToDefault() {\n TableColumnModel tcm = table.getColumnModel();\n\n for (int i = 0; i < msbQTM.getColumnCount(); i++) {\n tcm.getColumn(i).setPreferredWidth(-1);\n }\n\n table.setColumnModel(tcm);\n }",
"@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}",
"public void initDefaultValues(BinaryContent t)\r\n\t{\n\r\n\t}",
"public void setDefaultValue() throws Exception {\n\t\tString columns[] = CommonUtil.split(getFrwVarDefaultColumn(), \",\");\n\t\tString values[] = CommonUtil.split(getFrwVarDefaultValue(), \",\");\n\n\t\tif (CommonUtil.isNotEmpty(columns)) {\n\t\t\tfor (int i=0; i<columns.length; i++) {\n\t\t\t\tsetValue(columns[i], values[i]);\n\t\t\t}\n\t\t}\n\t}",
"protected abstract void initialiseTable();",
"@objid (\"e6f7930d-e513-40f5-a7a6-044fb7df6be5\")\n void setDefinedTable(PropertyTableDefinition value);",
"private static synchronized void loadDefaults(String inTableName) \n\t\tthrows CoreServerException\n\t{\n\t\t// Do a quick check if the table has already been loaded\n\t\tMap<String, Object> defaults = allDefaultValues.get(inTableName);\n\t\t\n\t\tif (defaults != null)\n\t\t\treturn;\n\n\t\t// The defaults have not been loaded for this table yet...so load them\n\t\t(Configurator.getMainLogger()).trace(\"Entered loadDefaults for \" + inTableName);\n\n\t\tConnection connection = null;\n\t\tPreparedStatement pstmt = null;\n\t\t// Prepare an empty placeholder row\n\t\tdefaults = new Hashtable<String, Object>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tconnection = DatabaseWrapper.getConnection();\n\n\t\t\tpstmt = connection.prepareStatement(\"select * from \" + inTableName + \" where idk = \" +\n\t\t\t\tKEY_DEFAULT_VALUES_RECORD);\n\n\t\t\tResultSet rs = pstmt.executeQuery();\n\t\t\tResultSetMetaData rsmd = rs.getMetaData();\n\t\t\tint columnCount = rsmd.getColumnCount();\n\t\t\tString columnName = null;\n\t\t\tif (rs.next())\n\t\t\t{\n\t\t\t\tint i=1;\n\n\t\t\t\t// load the row with the result set's current row's names/values\n\t\t\t\twhile (i<=columnCount)\n\t\t\t\t{\n\t\t\t\t\tcolumnName = rsmd.getColumnName(i);\n\t\t\t\t\t/*\n\t\t\t\t\t * THIS COMMENT BLOCKS OUT SCRAMBLING AT THE DEFAULTS LEVEL.\n\t\t\t\t\t// the following is a little hack... see createDatabase.sql for reasoning\n\t\t\t\t\tif (columnName.endsWith(\"idk\")) // we do this to select what to scramble or not\n\t\t\t\t\t\t\t\t\t\t\t\t // ...see the PrimaryKeyHolder class for details.\n\t\t\t\t\t\tdefaults.put(columnName, simpleScramble(rs.getLong(columnName)));\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tdefaults.put(columnName, getObject(rs, rsmd, i));\n\t\t\t\t\t\t// defaults.put(columnName, rs.getObject(columnName));\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"Defaults: columnName: \" + columnName + \n\t\t\t\t\t\t//\t\"<-->\" + rs.getObject(columnName).getClass() + \n\t\t\t\t\t\t//\t\"<-->\" + rs.getObject(columnName));\n\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t\t\n\t\t\t\t\tif (columnName.equals(\"idk\") ||\n\t\t\t\t\t\tcolumnName.equals(\"lockingversion\") ||\n\t\t\t\t\t\tcolumnName.equals(\"timecreated\") ||\n\t\t\t\t\t\tcolumnName.equals(\"timelastmodified\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t// don't add these fields: they should never have defaults\n\t\t\t\t\t}\n\t\t\t\t\telse if (rs.getObject(columnName) != null)\n\t\t\t\t\t\tdefaults.put(columnName, getObject(rs, rsmd, i));\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\t// place the defaults into the hashtable of all bean defaults keyed to the table name\n\t\t\t\tallDefaultValues.put(inTableName, defaults);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t(Configurator.getMainLogger()).error(\"database.NoDefaultValues\");\n\t\t\t\tthrow new CoreServerException(\"database.NoDefaultValues\");\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tallDefaultValues.remove(inTableName);\n\t\t\tif (e.getClass().equals(CoreServerException.class))\n\t\t\t\tthrow (CoreServerException) e;\n\t\t\tthrow new CoreServerException(\"defaultValues.UnableToLoadDefaults\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry { if (pstmt != null) pstmt.close(); }\n\t\t\tcatch (Exception e) {}\n\t\t\ttry { if (connection != null) connection.close(); }\n\t\t\tcatch (Exception e) {}\t\t\t\n\t\t}\n\t}",
"public void loadDefaultValues() {\r\n\t}",
"PreferenceDefaultValueAttribute getDefaultValue();",
"private void initDefaultTableModel() {\n defaultTableModel = new DefaultTableModel();\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"name\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"sex\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"age\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"position\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"address\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"phone\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"email\"));\n defaultTableModel.addColumn(\"Tên tài khoản\");\n }",
"public void setDefaultNumber(Integer defaultNumber) {\n this.defaultNumber = defaultNumber;\n }",
"private T setDefaultValue(T t) {\n\t\tif(t.getStatus() == null) {\n\t\t\tt.setStatus(1);\n\t\t}\n\t\tif(t.getCreateTime() == null) {\n\t\t\tt.setCreateTime(new Date());\n\t\t}\n\t\tif(t.getUpdateTime() == null) {\n\t\t\tt.setUpdateTime(new Date());\n\t\t}\n\t\treturn t;\n\t}",
"void setInitSql(String value);",
"@Override\n\tpublic void setDefaultData(java.lang.String defaultData) {\n\t\t_expandoColumn.setDefaultData(defaultData);\n\t}",
"String getDefaultValue();",
"String getDefaultValue();",
"@PrePersist\n void beforeInsert() {\n System.out.println(\"SETTING DEFAULT VALUES FOR USER\");\n emailConfirmed = false;\n deleted = false;\n _2FaEnabled = false;\n verificationToken = VerificationTokenGenerator.generateVerificationToken();\n }",
"public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}",
"public void setDefaultTableModel(DefaultTableModel defaultTableModel) {\n this.defaultTableModel = defaultTableModel;\n }",
"public void setDefault(String key){\n _default = key;\n }",
"public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _placeholder_DefaultValue_xjal();\n/* 68: */ }",
"public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }",
"public void setDbTable(String v) {this.dbTable = v;}",
"public String getTableGenerationCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_CREATE_ACTION;\n }",
"public void initTable();",
"public void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);",
"public Builder setBaseTable(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n baseTable_ = value;\n onChanged();\n return this;\n }",
"protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder);",
"private void setDefaults(Connection conn) throws SQLException {\r\n conn.setAutoCommit(false);\r\n }",
"private DefaultSchema() {\n super(\"\", null);\n }",
"public Object getDefaultValue();",
"public Object getDefaultValue();",
"public void setDefault(T value) {\n Objects.requireNonNull(value, \"value\");\n synchronized (mutationLock) {\n defaultValues.set(defaultValues.size() - 1, value);\n }\n }",
"public void setDefault(String defaultValue) {\n this.defaultValue = defaultValue;\n }",
"protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}",
"public void setColDefault(String colDefault) {\r\n\t\tthis.colDefault = colDefault == null ? null : colDefault.trim();\r\n\t}",
"public void setDefaultValue(final Object defaultValue);",
"public void fillDefaultValues() {\n checkUsingAdaptation();\n tfSemiSaturation.setText(Double.toString(prototypeRule\n .getSemiSaturationConstant()));\n tfSteepness.setText(Double.toString(prototypeRule.getSteepness()));\n tfTimeConstant\n .setText(Double.toString(prototypeRule.getTimeConstant()));\n tsNoise.setSelected(prototypeRule.getAddNoise());\n tsUseAdaptation.setSelected(prototypeRule.getUseAdaptation());\n tfAdaptationTime.setText(Double.toString(prototypeRule\n .getAdaptationTimeConstant()));\n tfAdaptationParam.setText(Double.toString(prototypeRule\n .getAdaptationParameter()));\n randTab.fillDefaultValues();\n }",
"public ElementDefinitionDt setDefaultValue(IDatatype theValue) {\n\t\tmyDefaultValue = theValue;\n\t\treturn this;\n\t}",
"protected Collection<TableInSchema> initialTables() {\n return Collections.emptyList();\n }",
"@AnyLogicInternalCodegenAPI\n public int _InitPopulation_DefaultValue_xjal() {\n final Main self = this;\n return \n1000 \n;\n }",
"@Test(timeout = 4000)\n public void test117() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(33554432, \" zELECT l `kROM&\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\" zELECT l `kROM&\", (DBTable) null, dBDataType0);\n defaultDBColumn0.setDefaultValue(\" NULL\");\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\" zELECT l `kROM& ZELECT L `KROM& DEFAULT NULL NULL\", string0);\n }",
"protected String getDefaultColumnName(int col)\r\n {\n return \"\";\r\n }",
"public DefaultAttribute( String upId )\n {\n setUpId( upId );\n }",
"static public void setDefaultInt (int newMissingInt) {\n defaultInt = newMissingInt;\n }",
"@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }",
"void generateDefaultValue(Builder methodBuilder);",
"public void populateEntityModelDefaultValues() throws DeploymentException {\n LogHelperDeployment.getLogger().fine(\n i18NHelper.msg(\"MSG_PopulatingDefaultsForEntityModel\")); // NOI18N\n du.getPersistenceJar().accept(new TreeWalker(this));\n }",
"public void setDefaultLong1(java.lang.Long value) {\n this.defaultLong1 = value;\n setDirty(0);\n }",
"@AnyLogicInternalCodegenAPI\n public int _InitInfected_DefaultValue_xjal() {\n final Main self = this;\n return \n1 \n;\n }",
"public void initialProductTable() {\r\n\t\tString sqlCommand = \"CREATE TABLE IF NOT EXISTS ProductTable (\\n\" + \"Barcode integer PRIMARY KEY,\\n\"\r\n\t\t\t\t+ \"Product_Name VARCHAR(30) NOT Null,\\n\" + \"Delivery_Time integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"Quantity_In_Store integer NOT NULL,\\n\" + \"Quantity_In_storeroom integer NOT NULL,\\n\"\r\n\t\t\t\t+ \"Supplier_Name VARCHAR(30) NOT NUll,\\n\" + \"Average_Sales_Per_Day integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \"Location_In_Store VARCHAR(30) NOT NULL,\\n\" + \"Location_In_Storeroom VARCHAR(30) NOT NULL,\\n\"\r\n\t\t\t\t+ \"Faulty_Product_In_Store integer DEFAULT 0,\\n\" + \"Faulty_Product_In_Storeroom integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \"Category integer DEFAULT 0,\\n\"\r\n\t\t\t\t+ \" FOREIGN KEY (Category) REFERENCES CategoryTable(CategoryID) ON UPDATE CASCADE ON DELETE CASCADE\"\r\n\t\t\t\t+ \");\";// create the fields of the table\r\n\t\ttry (Connection conn = DriverManager.getConnection(dataBase); Statement stmt = conn.createStatement()) {\r\n\t\t\tstmt.execute(sqlCommand);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"initialProductTable: \"+ e.getMessage());\r\n\t\t}\r\n\t}",
"public ReqTable withDefaults() {\n return this;\n }",
"public void setTableName(String value) {\n setAttributeInternal(TABLENAME, value);\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}",
"public void setDefaultTemp(Integer defaultTemp) {\n this.defaultTemp = defaultTemp;\n }",
"public void setDefaultValue(String value) {\n decorator.setDefaultValue(value);\n }",
"public LogicalModelDefaultValueSupplier(DeploymentUnit du) {\n this.du = du;\n }",
"public void setDefault(boolean value) {\n this._default = value;\n }",
"public void init() {\r\n\t\tdbVersion = new DBVersion( getDefaultDatabase(), progress, upgradeFile.versionTableName, upgradeFile.logTableName );\r\n\t}",
"private static String getDefaultDatabaseName(Context context) {\n\t\treturn context.getClass().getSimpleName();\n\t}",
"@Test(timeout = 4000)\n public void test004() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String string0 = SQLUtil.renderValue(defaultDBTable0);\n assertNull(string0);\n }",
"public void setOverrideTableType(int value) {\n\t\tthis.overrideTableType = value;\n\t}",
"@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }",
"public void setDefaultValue(String defaultValue){\n m_defaultValue = defaultValue;\n }",
"void initTable();",
"public final void setDefautlVals() {\n this.createTime = this.writeTime = GlobalMethods.getTimeStamp(null);\n this.createId = this.writeId = PackagingVars.context.getUser().getId();\n }",
"public void setDefaultValue(String defaultValue) {\n this.defaultValue = defaultValue;\n }",
"private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}",
"public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}",
"private DefaultSetting getSampleDefaultSetting() {\n DefaultSetting setting = new DefaultSetting(\"\",\n \"\",\n 5,\n Token.DIGIT,\n \"d\",\n 1,\n true,\n true,\n true);\n\n return setting;\n }",
"protected void performDefaults() {\r\n\t}",
"public void initDefaultValues() {\n setOrderActive(1);\n setProductQuantity(1);\n setBillingPhone1Blocked(0);\n setBillingPhone2Blocked(0);\n setOrderAvailabilityStatus(1);\n setDeliveryStatus(1);\n setMailedReminderToVendorStatus(0);\n setOrderCancelRequestStatus(0);\n setOrderCancellationToVendorStatus(0);\n setDisputeRaisedStatus(0);\n setOrderAcceptNewsletter(1);\n setOrderAcceptPromotionalMaterial(1);\n setBillingAdvanceAmount(0);\n setBillingBalanceAmount(0);\n setBillingGrossAmount(0f);\n setBillingMarginAmount(0f);\n setBillingNettCost(0f);\n setBillingPaymentGatewayRate(0f);\n setBillingStateId(0);\n setBillingTaxrate(0f);\n setBillingTotalAmount(0f);\n setCarYear(0);\n setCustomint1(0);\n setCustomint2(0);\n setCustPaymentMode(0);\n setCustPaymentStatus(0);\n setInvoiceId(0);\n setVendorPaymentMode(0);\n setShipmentRate(0);\n setShipmentCountryId(0);\n setShipmentCityId(0);\n setOrderType(0);\n setOrderStatus(0);\n setOrderRefundType(0);\n setOrderPriority(0);\n setOrderBulkType(0);\n setOrderCorporateType(0);\n setShipmentCityId(0);\n setShipmentCountryId(0);\n setShipmentRate(0f);\n setShipmentStateId(0);\n setOrderCancellationType(0);\n }",
"public String getTableGenerationDropCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_DROP_AND_CREATE_ACTION;\n }",
"public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }",
"public String getDefault();",
"private void setDefaultValues() {\r\n this.nodeDegreeSpinner.setValue(display_node_degree_default);\r\n this.displayEdgesSpinner.setValue(display_edges_default);\r\n this.scaleSpinner.setValue(scale_default);\r\n this.minweightSpinner.setValue(minweight_edges_default);\r\n this.iterationsSpinner.setValue(iterations_default);\r\n this.vote_value.setValue(vote_value_default);\r\n this.mut_value.setValue(mut_value_default);\r\n this.keep_value.setValue(keepclass_value_default);\r\n\r\n this.only_sub.setSelected(display_sub_default);\r\n this.top.setSelected(true);\r\n this.continuous.setSelected(true);\r\n this.dec.setSelected(true);\r\n this.vote_value.setEnabled(false);\r\n this.is_alg_started = false;\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 updateDefaultValue(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\t\t\n\t\t((QuestionDef)propertiesObj).setDefaultValue(txtDefaultValue.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}",
"public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }",
"public void createTable() {\r\n\t\tclient.createTable();\r\n\t}",
"public void initDefaultValues(SurgicalPathologyReport t)\r\n\t{\n\r\n\t}",
"public void initialDatabaseAutomatikFunctionInformation () {\n Calendar calendar = Calendar.getInstance();\n Integer currentYear = calendar.get(Calendar.YEAR);\n Integer month = calendar.get(Calendar.MONTH); //Januar wird als \"0\" übergeben.\n Integer currentMonth = month + 1;\n\n String initialDateName = \"AutoDBFunction\" + currentYear.toString() + currentMonth.toString();\n\n //erstelle Speicherdatei und anlegen von Eintrag\n SharedPreferences sharedPreferences = getSharedPreferences(\"SP_DBFunction\", 0);\n SharedPreferences.Editor editor = sharedPreferences.edit(); //Editorklasse initialisieren (um zu schreiben)\n editor.putBoolean(initialDateName, true); //Inhalt übergeben (Key, Value)\n editor.commit();\n }",
"@Inject\r\n\tpublic void setDefaultStepColumns(@Named(ServerConstants.KEY_DEFAULT_STEP_COLS) String defaults) {\n\t\tList<String> keyList = splitCommaSeparatedString(defaults);\r\n\t\t// Add this list to the map\r\n\t\tdefaultColumns.put(ObjectType.step.name(), keyList);\r\n\t}",
"public static void invalidateDefaults(String inTableName)\n\t{\n\t\tallDefaultValues.remove(inTableName);\n\t}",
"public void setDefaultValue (String defaultValue) {\n this.defaultValue = defaultValue;\n }",
"private void autoPopulateDB() {\r\n User newUser = new User(\"din_djarin\", \"baby_yoda_ftw\");\r\n User secondNew = new User(\"csumb\", \"otters_woo\");\r\n User lastNew = new User(\"username\", \"password\");\r\n\r\n mUserDAO.insert(newUser);\r\n mUserDAO.insert(secondNew);\r\n mUserDAO.insert(lastNew);\r\n }",
"public void setTableName(String newVal) {\n if ((newVal != null && this.tableName != null && (newVal.compareTo(this.tableName) == 0)) || \n (newVal == null && this.tableName == null && tableName_is_initialized)) {\n return; \n } \n this.tableName = newVal; \n\n tableName_is_modified = true; \n tableName_is_initialized = true; \n }",
"protected Document createDefaultModel()\n\t{\n\t\treturn new IntegerDocument();\n\t}",
"public void setIsDefault(Integer isDefault) {\n this.isDefault = isDefault;\n }",
"public void setIsDefault(Integer isDefault) {\n this.isDefault = isDefault;\n }",
"public void setDefaultFlag(Integer defaultFlag) {\n this.defaultFlag = defaultFlag;\n }",
"public void setInital_value(int inital_value){\n this.inital_value= inital_value;\n }"
] | [
"0.7185981",
"0.6690488",
"0.6548699",
"0.6410893",
"0.64045554",
"0.63199115",
"0.6247534",
"0.6234628",
"0.6190046",
"0.6094713",
"0.59927046",
"0.5991147",
"0.59053403",
"0.5877871",
"0.58576477",
"0.58191246",
"0.5813224",
"0.5796656",
"0.5785917",
"0.57730746",
"0.57635695",
"0.5760731",
"0.5756523",
"0.57473326",
"0.57473326",
"0.57365453",
"0.57139486",
"0.5703947",
"0.5701129",
"0.5700712",
"0.56339747",
"0.5624322",
"0.56097776",
"0.560353",
"0.55910766",
"0.55830675",
"0.557741",
"0.55377066",
"0.5520938",
"0.5518981",
"0.5518981",
"0.5509167",
"0.55067855",
"0.54824376",
"0.54811954",
"0.54500806",
"0.5448629",
"0.54462034",
"0.54419196",
"0.543974",
"0.5437027",
"0.543228",
"0.5421234",
"0.54192245",
"0.5418108",
"0.5413978",
"0.5413912",
"0.5401534",
"0.53946865",
"0.5391577",
"0.539154",
"0.5384407",
"0.53836554",
"0.5366084",
"0.53645015",
"0.5353443",
"0.5343756",
"0.53407604",
"0.53379005",
"0.5334688",
"0.5330976",
"0.5319022",
"0.5317002",
"0.5315646",
"0.5312957",
"0.531265",
"0.5301057",
"0.52935815",
"0.52928984",
"0.52625334",
"0.52555656",
"0.5255125",
"0.52527",
"0.52500314",
"0.52480924",
"0.5244588",
"0.52422357",
"0.52315545",
"0.52264464",
"0.52262086",
"0.522605",
"0.5224374",
"0.52232665",
"0.522237",
"0.52219975",
"0.5215543",
"0.52070105",
"0.52031964",
"0.52031964",
"0.520123",
"0.51996434"
] | 0.0 | -1 |
Get the id of the role. | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getIdRole() {\n\t\treturn idRole;\n\t}",
"public Long getRoleid() {\n return roleid;\n }",
"public Integer getRoleid() {\r\n return roleid;\r\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\r\n return roleId;\r\n }",
"public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}",
"public Integer getRoleId() {\n\t\treturn roleId;\n\t}",
"public Long getRoleId() {\n\t\treturn roleId;\n\t}",
"public int getRoleId() {\r\n\t\treturn roleId;\r\n\t}",
"public Integer getRolePid() {\n return rolePid;\n }",
"public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }",
"public BigDecimal getRoleId() {\r\n return roleId;\r\n }",
"public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }",
"public Integer getRole() {\n\t\treturn role;\n\t}",
"public Role getRoleById(int id);",
"public SecRole getRoleById(Long role_Id);",
"@Override\n\tpublic int getIDByName(String rolename) {\n\t\treturn this.RoleDao.getIDByName(rolename);\n\t}",
"public Long getRolemenuid() {\n return rolemenuid;\n }",
"public Role getByRoleId(long roleId);",
"public java.lang.String getRole() {\n return role;\n }",
"public java.lang.String getRole() {\n return role;\n }",
"public String getRole() {\r\n return role;\r\n }",
"String getRole();",
"String getRole();",
"public String getRole()\n\t{\n\t\treturn role;\n\t}",
"public String getRole() {\n return this.role;\n }",
"public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }",
"public String getRole() {\r\n\t\treturn role;\r\n\t}",
"public int getRolesRolId(int row) throws DataStoreException {\r\n return getInt(row,ROLES_ROL_ID);\r\n }",
"public String getRole() {\n\t\t\treturn role;\n\t\t}",
"public String getrole(String id){\n User user = getById(id);\n return user.getRole();\n }",
"public Byte getRole() {\n return role;\n }",
"public java.lang.Long getId();",
"Integer getRealmId();",
"@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}",
"@Override\r\n\tpublic Role getRoleById(int id) {\n\t\treturn getHibernateTemplate().get(Role.class, id);\r\n\t}",
"public Integer RoleByUser(Integer id) {\n\t\treturn userDao.RoleByUser(id);\r\n\t}",
"public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}",
"public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}",
"public Long getId() {\n return this.id.get();\n }",
"@Override\n\tpublic Role findTheRole(Integer id) {\n\t\treturn mapper.findTheRole(id);\n\t}",
"public java.lang.Long getId () {\r\n\t\treturn id;\r\n\t}",
"public java.lang.Long getId () {\r\n\t\treturn id;\r\n\t}",
"public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}",
"public String getRoleCode() {\n return roleCode;\n }",
"public String getRole() { return this.role; }",
"Role findById(int id);",
"@Override\n\tpublic String getRole() {\n\t\treturn role;\n\t}",
"public java.lang.Long getId()\n\t{\n\t\treturn id;\n\t}",
"public java.lang.Long getId()\n\t{\n\t\treturn id;\n\t}",
"public com.message.MessageInfo.RoleVO getRole() {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }",
"com.message.MessageInfo.RoleVO getRole();",
"public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}",
"public java.lang.Long getId() {\n return id;\n }",
"public java.lang.Long getId() {\n return id;\n }",
"public Integer getId() {\n return id.get();\n }",
"public java.lang.Long getId() {\n return id;\n }",
"public static String getRole(int id) throws SQLException {\n boolean cdt1 = Checker.checkValidRolesId(id);\n // if it is a valid role id, establish a connection\n if (cdt1) {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n String role = DatabaseSelector.getRole(id, connection);\n connection.close();\n return role;\n }\n return null;\n }",
"public String getRolecode() {\n return rolecode;\n }",
"@GetMapping(\"/role/{id}\")\n\t@ApiOperation(value = \"Get role\", notes = \"Pass id of the user whose role is to be retrieved\")\n\tpublic String getRole(@ApiParam(value = \"id of user\", required = true) @PathVariable(\"id\") String id) {\n\t\treturn userRepository.findById(id).get().getRole();\n\t}",
"SecurityRole getRole();",
"public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}",
"@Override\n public String getRoleProperty() {\n return \"visibleAtRole.id\";\n }",
"@Override\n\tpublic Role findById(Integer id) {\n\t\treturn roleDao.findById(id);\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public Role getRole()\n {\n return role;\n }",
"public int getUserIdFromAccountId(int id, UserRole role){\n EntityManager em = emf.createEntityManager();\n try{\n String sql;\n if(role == UserRole.CUSTOMER){\n sql = \"SELECT id FROM customers WHERE account_id = :id\";\n }else{\n sql = \"SELECT id FROM retailers WHERE account_id = :id\";\n }\n Query query = em.createNativeQuery(sql);\n query.setParameter(\"id\", id);\n var result = query.getResultList();\n return (int) result.get(0);\n }finally {\n em.close();\n }\n }",
"String getRoleName();",
"public long getId() {\n\t\treturn(id);\n\t}",
"public String roleName() {\n return this.roleName;\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n if (roleBuilder_ == null) {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n } else {\n return roleBuilder_.getMessage();\n }\n }",
"public java.lang.Integer getId () {\r\n return id;\r\n }",
"public java.lang.Integer getId () {\n\t\treturn _id;\n\t}"
] | [
"0.7940396",
"0.77104735",
"0.7686986",
"0.76595986",
"0.76595986",
"0.76595986",
"0.75529766",
"0.75529766",
"0.75529766",
"0.75529766",
"0.75529766",
"0.75529766",
"0.75529766",
"0.75529766",
"0.75383186",
"0.75383186",
"0.75383186",
"0.75366133",
"0.7534368",
"0.7534368",
"0.7534368",
"0.7534368",
"0.7517576",
"0.75119245",
"0.7502225",
"0.74425966",
"0.74293405",
"0.7231625",
"0.72188723",
"0.7017461",
"0.6962509",
"0.6949892",
"0.6928119",
"0.6874459",
"0.6830293",
"0.6763137",
"0.6732318",
"0.66726416",
"0.6649433",
"0.66443276",
"0.6629063",
"0.6629063",
"0.66213465",
"0.6564177",
"0.656373",
"0.65604603",
"0.6499364",
"0.6492196",
"0.6477508",
"0.64647245",
"0.645448",
"0.644349",
"0.64165634",
"0.6403437",
"0.64029944",
"0.6391169",
"0.6366028",
"0.63624656",
"0.6361781",
"0.6360656",
"0.6360656",
"0.63499147",
"0.6345193",
"0.6338336",
"0.63330215",
"0.63189983",
"0.6308022",
"0.6308022",
"0.6303198",
"0.6293314",
"0.6271064",
"0.6267941",
"0.6266529",
"0.62540174",
"0.6252479",
"0.6248457",
"0.62439615",
"0.6243377",
"0.62413716",
"0.62393755",
"0.6230201",
"0.6228696",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.6227987",
"0.62256193",
"0.62174994",
"0.6214733",
"0.62140626",
"0.62021154",
"0.61977434",
"0.6195674",
"0.61954284"
] | 0.0 | -1 |
Set the id of the role. | public void setId(Long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoleId(Integer roleId) {\r\n this.roleId = roleId;\r\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleid(Integer roleid) {\r\n this.roleid = roleid;\r\n }",
"public void setRoleId(Long roleId) {\r\n this.roleId = roleId;\r\n }",
"public void setRoleId(int roleId) {\r\n\t\tthis.roleId = roleId;\r\n\t}",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n\t\tthis.roleId = roleId;\n\t}",
"public void setRoleid(Long roleid) {\n this.roleid = roleid;\n }",
"public void setRoleId(String roleId) {\n this.roleId = roleId;\n }",
"public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}",
"public void setRoleId(String roleId)\r\n\t{\r\n\t\tthis.roleId = roleId;\r\n\t}",
"public void setRoleId(String roleId) {\n this.roleId = roleId == null ? null : roleId.trim();\n }",
"public void setRoleId(String roleId) {\n this.roleId = roleId == null ? null : roleId.trim();\n }",
"public void setId(long id){\n\t\tthis.id = id;\n\t}",
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"public void setRoleId(Long roleId) {\n\t\tthis.roleId = roleId;\n\t}",
"public void setId(Long id) {\n this.id.set(id);\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\r\n this.id = id;\r\n }",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"protected void setId(long id) {\n\t\tthis.id = id;\n\t}",
"protected void setId(long id) {\n if (this.id == -1)\n this.id = id;\n }",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(java.lang.Long newId);",
"public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }",
"public void setId (java.lang.Integer id) {\r\n this.id = id;\r\n }",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}",
"@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public Integer getIdRole() {\n\t\treturn idRole;\n\t}",
"public void setRoleid(String roleid) {\n this.roleid = roleid == null ? null : roleid.trim();\n }",
"public void setRoleid(String roleid) {\n this.roleid = roleid == null ? null : roleid.trim();\n }",
"public void setRoleid(String roleid) {\n this.roleid = roleid == null ? null : roleid.trim();\n }",
"public void setId(int value) {\r\n this.id = value;\r\n }",
"public void setId(final long id) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(final Long id) {\n this.id = id;\n }",
"public void setId(final Long id) {\n this.id = id;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public void setId(int id){\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tgetTo(false).setId(id);\n\t}",
"public void setId(int id)\r\n {\r\n this.mId = id;\r\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(final Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId (int id) {\r\n\t\tthis.id=id;\r\n\t}",
"public void setId(long id) {\n\tthis.id = id;\n }",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(final int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\n \t\tthis.id = id;\n \t}",
"public void setId(final int id) {\n mId = id;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(java.lang.Integer _id)\n {\n id = _id;\n }",
"public void setId(final Long id) {\n this.id = id;\n }"
] | [
"0.7257421",
"0.71694595",
"0.71694595",
"0.71694595",
"0.71694595",
"0.71694595",
"0.71694595",
"0.71694595",
"0.71694595",
"0.70934016",
"0.7033634",
"0.6937411",
"0.69365627",
"0.69365627",
"0.69365627",
"0.69365627",
"0.6877837",
"0.6796066",
"0.6785192",
"0.6742135",
"0.67084605",
"0.6704136",
"0.6704136",
"0.66601765",
"0.6656063",
"0.6655585",
"0.6646875",
"0.66379654",
"0.66379654",
"0.6625451",
"0.6625451",
"0.66245574",
"0.6622533",
"0.6622533",
"0.6622533",
"0.66206807",
"0.6601575",
"0.6592278",
"0.6592099",
"0.6592099",
"0.6592099",
"0.6592099",
"0.6592099",
"0.658243",
"0.65772384",
"0.65734583",
"0.6563009",
"0.6563009",
"0.6563009",
"0.6563009",
"0.6562963",
"0.6562963",
"0.6555609",
"0.65548277",
"0.65548277",
"0.65548277",
"0.6553184",
"0.6552765",
"0.6551437",
"0.6551437",
"0.65459824",
"0.65459824",
"0.6544945",
"0.6544945",
"0.6544945",
"0.6544779",
"0.65399957",
"0.6539491",
"0.65340024",
"0.65326124",
"0.65326124",
"0.65326124",
"0.65310943",
"0.65310943",
"0.65310943",
"0.65310943",
"0.65310943",
"0.65310943",
"0.65310943",
"0.65310943",
"0.65310943",
"0.65295804",
"0.6528998",
"0.6525652",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6523322",
"0.6522478",
"0.65206784",
"0.6520184",
"0.65191615",
"0.6517583",
"0.6514775"
] | 0.0 | -1 |
Get the name of the role. | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRoleName();",
"@Override\n public String getName() {\n return this.role.getName();\n }",
"public String roleName() {\n return this.roleName;\n }",
"public java.lang.String getRoleName()\n {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\n return roleName;\n }",
"public String getRoleName() {\r\n return roleName;\r\n }",
"public String getRoleName() {\r\n return roleName;\r\n }",
"String roleName();",
"public String getRoleName() {\n return this.roleName;\n }",
"public String getRoleName() {\n return this.roleName;\n }",
"public String getRole_name() {\n return role_name;\n }",
"public String getRoleName() {\n\t\treturn roleName;\n\t}",
"public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }",
"public String getRoleName() {\n\treturn strRoleName;\n }",
"public java.lang.String getRole() {\n return role;\n }",
"public java.lang.String getRole() {\n return role;\n }",
"String getRole();",
"String getRole();",
"public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Role : \"+name().toLowerCase();\n\t}",
"public String getRole() {\r\n return role;\r\n }",
"public String getRole() {\n return this.state.getRole();\n }",
"public String getRole() {\n\t\t\treturn role;\n\t\t}",
"public String getRole()\n\t{\n\t\treturn role;\n\t}",
"@Transient\n public String getCurrentRole() {\n \tString currentRole = \"\";\n \tif (this.roles != null) {\n \t\tIterator<Role> it = roles.iterator();\n \t\tcurrentRole = it.next().getName().substring(5);\n \t\twhile (it.hasNext()) {\n \t\t\tRole role = it.next();\n \t\t\tcurrentRole += \"/\" + role.getName().substring(5);\n \t\t}\n \t}\n \treturn currentRole;\n }",
"public String getRole() {\r\n\t\treturn role;\r\n\t}",
"public String getRole() {\n return this.role;\n }",
"public String getRolelabel() {\n return rolelabel;\n }",
"@Override\n\tpublic String getRole() {\n\t\treturn role;\n\t}",
"public String getRolename() {\n return rolename;\n }",
"public String getRolename() {\n return rolename;\n }",
"public Optional<String> getRole() {\n return Optional.ofNullable(properties.getProperty(MESOS_ROLE));\n }",
"public String getCurrentRole() {\r\n return currentRole;\r\n }",
"public String getRole() { return this.role; }",
"protected String getRoleFileName() \n\t{\n\t\treturn roleFileName;\n\t}",
"public java.lang.String getUserRole() {\r\n return userRole;\r\n }",
"public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}",
"public Integer getRole() {\n\t\treturn role;\n\t}",
"@Override\n public String toString(){\n return role;\n }",
"@Override\n\tpublic String getRoleString() {\n\t\treturn \"Trainee\";\n\t}",
"public com.message.MessageInfo.RoleVO getRole() {\n if (roleBuilder_ == null) {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n } else {\n return roleBuilder_.getMessage();\n }\n }",
"public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }",
"public String getRoleDesc() {\n return roleDesc;\n }",
"public String getRoleDesc() {\n return roleDesc;\n }",
"public String getRoleDesc() {\r\n return roleDesc;\r\n }",
"public final String getName() {\n\treturn name.getName();\n }",
"String computeRole();",
"public String getName() {\n if(name == null)\n return \"\"; \n return name;\n }",
"public String getName() {\n return name.get();\n }",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"public String getStringForRole(RoleEnum role) {\r\n\t\tswitch (role) {\r\n\t\tcase ADMIN_ROLE:\r\n\t\t\treturn ROLE_ADMINISTRATOR;\r\n\t\tcase EDITOR_ROLE:\r\n\t\t\treturn ROLE_REGIONSADMINISTRATOR;\r\n\t\tcase EVENTRESPONSIBLE_ROLE:\r\n\t\t\treturn ROLE_MOTEADMINISTRATOR;\r\n\t\tcase READER_ROLE:\r\n\t\t\treturn ROLE_LESEBRUKER;\r\n\t\tcase EMPLOYEE:\r\n\t\t\treturn \"Ansatt\";\r\n\t\tcase ANONYMOUS:\r\n\t\t\treturn \"Anonymous\";\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String getRoledescription() {\n return roledescription;\n }",
"public AXValue getRole() {\n return role;\n }",
"SecurityRole getRole();",
"public java.lang.String getNameAsString()\n {\n return getName().toString();\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }",
"public String getName() {\r\n assert name != null;\r\n return name;\r\n }",
"public String getName()\n {\n return name.toUpperCase();\n }",
"@Nullable\r\n String getName();",
"@Override\n\tpublic String toString() {\n\t\treturn wcRole.toString();\n\t}",
"@Override\n\tpublic String getAuthority() {\n\t\treturn role;\n\t}",
"public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}",
"public String getName() {\n\t\t\treturn this.getIdentity();\n\t\t}",
"public String getName() {\n\t\t\treturn this.getIdentity();\n\t\t}",
"public Byte getRole() {\n return role;\n }",
"public java.lang.String getName();",
"@Override\n\tpublic String getName() {\n\t\tfinal PsiElement nameIdentifier = getNameIdentifier();\n\t\treturn nameIdentifier != null ? nameIdentifier.getText() : getText();\n\t}",
"public Role getRole()\n {\n return role;\n }",
"@Nonnull\n String getName();",
"public final String getName() {\n\t\treturn this.name;\n\t}",
"public String getProjectRole() {\n return this.projectRole;\n }",
"public String getName() {\n return name + \"\";\n }",
"public static String roleToString(@RoleName int role) {\n switch (role) {\n case ROLE_NONE:\n return \"ROLE_NONE\";\n case ROLE_BUTTON:\n return \"ROLE_BUTTON\";\n case ROLE_CHECK_BOX:\n return \"ROLE_CHECK_BOX\";\n case ROLE_DROP_DOWN_LIST:\n return \"ROLE_DROP_DOWN_LIST\";\n case ROLE_EDIT_TEXT:\n return \"ROLE_EDIT_TEXT\";\n case ROLE_GRID:\n return \"ROLE_GRID\";\n case ROLE_IMAGE:\n return \"ROLE_IMAGE\";\n case ROLE_IMAGE_BUTTON:\n return \"ROLE_IMAGE_BUTTON\";\n case ROLE_LIST:\n return \"ROLE_LIST\";\n case ROLE_RADIO_BUTTON:\n return \"ROLE_RADIO_BUTTON\";\n case ROLE_SEEK_CONTROL:\n return \"ROLE_SEEK_CONTROL\";\n case ROLE_SWITCH:\n return \"ROLE_SWITCH\";\n case ROLE_TAB_BAR:\n return \"ROLE_TAB_BAR\";\n case ROLE_TOGGLE_BUTTON:\n return \"ROLE_TOGGLE_BUTTON\";\n case ROLE_VIEW_GROUP:\n return \"ROLE_VIEW_GROUP\";\n case ROLE_WEB_VIEW:\n return \"ROLE_WEB_VIEW\";\n case ROLE_PAGER:\n return \"ROLE_PAGER\";\n case ROLE_CHECKED_TEXT_VIEW:\n return \"ROLE_CHECKED_TEXT_VIEW\";\n case ROLE_PROGRESS_BAR:\n return \"ROLE_PROGRESS_BAR\";\n case ROLE_ACTION_BAR_TAB:\n return \"ROLE_ACTION_BAR_TAB\";\n case ROLE_DRAWER_LAYOUT:\n return \"ROLE_DRAWER_LAYOUT\";\n case ROLE_SLIDING_DRAWER:\n return \"ROLE_SLIDING_DRAWER\";\n case ROLE_ICON_MENU:\n return \"ROLE_ICON_MENU\";\n case ROLE_TOAST:\n return \"ROLE_TOAST\";\n case ROLE_ALERT_DIALOG:\n return \"ROLE_ALERT_DIALOG\";\n case ROLE_DATE_PICKER_DIALOG:\n return \"ROLE_DATE_PICKER_DIALOG\";\n case ROLE_TIME_PICKER_DIALOG:\n return \"ROLE_TIME_PICKER_DIALOG\";\n case ROLE_DATE_PICKER:\n return \"ROLE_DATE_PICKER\";\n case ROLE_TIME_PICKER:\n return \"ROLE_TIME_PICKER\";\n case ROLE_NUMBER_PICKER:\n return \"ROLE_NUMBER_PICKER\";\n case ROLE_SCROLL_VIEW:\n return \"ROLE_SCROLL_VIEW\";\n case ROLE_HORIZONTAL_SCROLL_VIEW:\n return \"ROLE_HORIZONTAL_SCROLL_VIEW\";\n case ROLE_KEYBOARD_KEY:\n return \"ROLE_KEYBOARD_KEY\";\n case ROLE_TALKBACK_EDIT_TEXT_OVERLAY:\n return \"ROLE_TALKBACK_EDIT_TEXT_OVERLAY\";\n case ROLE_TEXT_ENTRY_KEY:\n return \"ROLE_TEXT_ENTRY_KEY\";\n default:\n return \"(unknown role \" + role + \")\";\n }\n }",
"@NonNull\n String getName();",
"@XmlAttribute\r\n public String getRole() {\r\n return role;\r\n }",
"@JsonIgnore\n public String getRolesString() {\n return roles.stream()\n .map(Role::getDisplayName)\n .collect(joining(\", \"));\n }",
"public String getRoleDesc() {\n return (String) getAttributeInternal(ROLEDESC);\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleCode() {\n return roleCode;\n }",
"public String getRolesNombre() throws DataStoreException {\r\n return getString(ROLES_NOMBRE);\r\n }",
"public final Identifier getName() {\n return getMemberImpl().getName();\n }",
"public String getRoleType() {\n return roleType;\n }",
"public String getRoleType() {\n return roleType;\n }",
"public TradingRoleCodeType getRole() {\n\t return this.role;\n\t}",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
] | [
"0.85234106",
"0.83634037",
"0.83195955",
"0.8295546",
"0.82651603",
"0.82651603",
"0.82651603",
"0.82651603",
"0.82651603",
"0.82651603",
"0.8250314",
"0.8250314",
"0.8249176",
"0.81991106",
"0.81991106",
"0.8155397",
"0.8110839",
"0.8101123",
"0.7993963",
"0.75380665",
"0.75184405",
"0.73436975",
"0.73436975",
"0.7233254",
"0.72067755",
"0.71627635",
"0.71403223",
"0.7106832",
"0.7104092",
"0.7101101",
"0.70740134",
"0.70615596",
"0.70452774",
"0.70353884",
"0.69768363",
"0.69768363",
"0.68580323",
"0.6740818",
"0.671361",
"0.67030823",
"0.66570544",
"0.6586885",
"0.65573275",
"0.654318",
"0.6513257",
"0.6477846",
"0.64509577",
"0.6446731",
"0.6446731",
"0.643815",
"0.6437075",
"0.6425295",
"0.64248",
"0.64242256",
"0.6423475",
"0.64185673",
"0.641112",
"0.64096177",
"0.64056396",
"0.6405213",
"0.6389675",
"0.6388559",
"0.6388559",
"0.6388559",
"0.6382278",
"0.6365583",
"0.6342783",
"0.6342362",
"0.63382834",
"0.63382727",
"0.63330215",
"0.6332154",
"0.6332154",
"0.6326617",
"0.63063633",
"0.63015676",
"0.63004214",
"0.6289955",
"0.6289886",
"0.6286286",
"0.6283388",
"0.6282257",
"0.6281342",
"0.6275719",
"0.62675107",
"0.62605125",
"0.62560755",
"0.62560755",
"0.62560755",
"0.6254643",
"0.62490034",
"0.6240322",
"0.6238628",
"0.6238628",
"0.62204546",
"0.62113875",
"0.62113875",
"0.62113875",
"0.62113875",
"0.62113875",
"0.62113875"
] | 0.0 | -1 |
Set the name of the role. | public void setName(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoleName(String value) {\n setAttributeInternal(ROLENAME, value);\n }",
"public void setRoleName(String paramRole) {\n\tstrRoleName = paramRole;\n }",
"@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }",
"public void setRoleName(java.lang.String _roleName)\n {\n roleName = _roleName;\n }",
"public RunAsType<T> setRoleName(String roleName)\n {\n childNode.getOrCreate(\"role-name\").text(roleName);\n return this;\n }",
"public void setRole_name(String role_name) {\n this.role_name = role_name;\n }",
"public void setRoleName(String roleName) {\n this.roleName = roleName;\n }",
"public void setRoleName(final String roleNameValue) {\n this.roleName = roleNameValue;\n }",
"public void setRoleName(final String roleNameValue) {\n this.roleName = roleNameValue;\n }",
"public void setRoleName(String roleName) {\r\n this.roleName = roleName == null ? null : roleName.trim();\r\n }",
"public void setRoleName(String roleName) {\r\n this.roleName = roleName == null ? null : roleName.trim();\r\n }",
"public void setRoleName(String roleName) {\n this.roleName = roleName == null ? null : roleName.trim();\n }",
"public void setRoleName(String roleName) {\n this.roleName = roleName == null ? null : roleName.trim();\n }",
"public void setRoleName(String roleName) {\n this.roleName = roleName == null ? null : roleName.trim();\n }",
"public void setRoleName(String roleName) {\n this.roleName = roleName == null ? null : roleName.trim();\n }",
"public void setRoleName(String roleName) {\n this.roleName = roleName == null ? null : roleName.trim();\n }",
"public void setRoleName(String roleName) {\n\t\tthis.roleName = roleName;\n\t}",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName( final String name )\n\t{\n\t\tthis.name = name;\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName( final String name )\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(String name) {\n _name = name;\n }",
"public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}",
"@Override\n public String getName() {\n return this.role.getName();\n }",
"public void setName(String name) {\r\r\n\t\tthis.name = name;\r\r\n\t}",
"public void setName(final String name) {\n mName = name;\n }",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName( String name ) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName(String newname)\n {\n name = newname;\n \n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n\n this.name = name;\n }",
"public void setName( String name )\n {\n this.name = name;\n }",
"public void setName( String name )\n {\n this.name = name;\n }",
"public void setName(String name)\n\t{\n\t\tthis.name = name;\n\t}",
"public void setName(String name)\n\t{\n\t\tthis.name = name;\n\t}",
"public void setName(String name)\n\t{\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tName = name;\n\t}"
] | [
"0.82352805",
"0.7892343",
"0.78625",
"0.78183013",
"0.74544585",
"0.74123764",
"0.73221356",
"0.721439",
"0.721439",
"0.7141098",
"0.7141098",
"0.71222234",
"0.71222234",
"0.71222234",
"0.71222234",
"0.71222234",
"0.703414",
"0.70307225",
"0.6954089",
"0.6919827",
"0.6907966",
"0.6907966",
"0.6906593",
"0.6895843",
"0.6889505",
"0.68888915",
"0.68878347",
"0.68878347",
"0.68878347",
"0.68878347",
"0.68818593",
"0.68818593",
"0.68818593",
"0.68818593",
"0.68757904",
"0.68753725",
"0.68750066",
"0.68735725",
"0.6870333",
"0.6870333",
"0.6869919",
"0.68612856",
"0.6843666",
"0.68367136",
"0.68340516",
"0.6831521",
"0.6831211",
"0.6831211",
"0.6828614",
"0.6828614",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.68235826",
"0.682308",
"0.6821622",
"0.68214947",
"0.68214947",
"0.68214947",
"0.68182594",
"0.6817213",
"0.6817213",
"0.6817213",
"0.68157065",
"0.6813977",
"0.6813977",
"0.6813977",
"0.68095607",
"0.68064237",
"0.68064237",
"0.6804666",
"0.6804666",
"0.6804666",
"0.6802503"
] | 0.0 | -1 |
Get the domain of the Role. | public Domain getDomain() {
return domain;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getDomain()\n\t{\n\t\treturn domain;\n\t}",
"public String getDomain() {\n return getProperty(DOMAIN);\n }",
"public Domain getDomain() {\n return this.domain;\n }",
"@Override\n public String getDomain() {\n // return this.userDomain;\n return null; // to support create principal for different domains\n }",
"public Object getDomain ();",
"public String getDomain() {\n\t\treturn domain;\n\t}",
"public String getDomain() {\n return domain;\n }",
"public String getDomain() {\n return domain;\n }",
"public String getDomain() {\r\n return domain;\r\n }",
"public Concept getDomain() { return domain; }",
"public String getDomainId() {\n return domain;\n }",
"String getDomain();",
"public List<String> getDomain() {\n\t\treturn null;\n\t}",
"public Long getDomainId() {\n return domainId;\n }",
"public Long getDomainId() {\n return domainId;\n }",
"public String domainId() {\n return this.domainId;\n }",
"public String getDomainId() {\n return this.domainId;\n }",
"public Domain getPreferenceDomain() {\n return getPreferenceService().getDomain(getName(), true);\n }",
"public String getDomainNm() {\n return this.domainNm;\n }",
"public ArrayList<Domain> GetDomain()\r\n\t\t{\r\n\t\t\tArrayList<Domain> res = null;\r\n query.settype(MsgId.GET_DOMAIN);\r\n query.setdomlist(null);\r\n query.setrettype(RetID.INVALID);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t scon.sendmsg(query);\r\n\t\t\t MessageObject result = (MessageObject) scon.getmsg(query);\r\n\t\t\t \r\n\t\t\t if (result.getrettype() == RetID.DOMAIN_LIST) {\r\n\t\t\t \t res = result.getdomlist();\r\n\t\t\t }\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tHandleException(e, MsgId.GET_DOMAIN);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn res;\r\n\t\t}",
"public String getServiceDomain() {\r\n\t\treturn getTextValue(this.serviceDomainList);\r\n\t}",
"com.google.ads.googleads.v6.resources.DomainCategory getDomainCategory();",
"public java.lang.String getDomainName() {\r\n return domainName;\r\n }",
"public java.lang.String getDomainName() {\n return domainName;\n }",
"public String getDomainName() {\n return domainName;\n }",
"public static synchronized ServiceDomain getDomain() {\n if (!domains.containsKey(ROOT_DOMAIN)) {\n createDomain(ROOT_DOMAIN);\n }\n\n return getDomain(ROOT_DOMAIN);\n }",
"@Override\n\tpublic final native String getDomain() /*-{\n return this.domain;\n\t}-*/;",
"@Override\n public String domain() {\n return null;\n }",
"@JsonProperty(\"domain\")\n public String getDomain() {\n return domain;\n }",
"public String getDomainName(){\n return this.domainName;\n }",
"protected String getDomain() {\n return \"\";\n }",
"public String getDomainCd() {\n return this.domainCd;\n }",
"public Optional<String> getRole() {\n return Optional.ofNullable(properties.getProperty(MESOS_ROLE));\n }",
"@ZAttr(id=19)\n public String getDomainName() {\n return getAttr(Provisioning.A_zimbraDomainName, null);\n }",
"public YangString getDomainNameValue() throws JNCException {\n return (YangString)getValue(\"domain-name\");\n }",
"@ZAttr(id=212)\n public ZAttrProvisioning.DomainType getDomainType() {\n try { String v = getAttr(Provisioning.A_zimbraDomainType); return v == null ? null : ZAttrProvisioning.DomainType.fromString(v); } catch(com.zimbra.common.service.ServiceException e) { return null; }\n }",
"SecurityRole getRole();",
"@Override\n\tpublic String getAuthority() {\n\t\treturn role;\n\t}",
"List<AdminDomain> getDomains();",
"String getRole();",
"String getRole();",
"public RepositoryDomainType getRepositoryDomain(String domainName) {\n \t\treturn domains.get(domainName.trim());\n \t}",
"public String getAcsDomain() {\n return acsDomain;\n }",
"public String getDomainLabel() {\n return domainLabel;\n }",
"com.google.ads.googleads.v6.resources.DomainCategoryOrBuilder getDomainCategoryOrBuilder();",
"public ServiceDomain getServiceDomain() {\n return _serviceDomain;\n }",
"public Long getDomainObjectId()\r\n\t{\r\n\t\treturn this.domainObjectId;\r\n\t}",
"@ZAttr(id=535)\n public ZAttrProvisioning.DomainStatus getDomainStatus() {\n try { String v = getAttr(Provisioning.A_zimbraDomainStatus); return v == null ? null : ZAttrProvisioning.DomainStatus.fromString(v); } catch(com.zimbra.common.service.ServiceException e) { return null; }\n }",
"com.message.MessageInfo.RoleVO getRole();",
"@NonNull\n public AuthenticationDomain getAuthenticationDomain() {\n return new AuthenticationDomain(mProto.authDomain);\n }",
"@XmlElement(name = \"domain\")\n public String getDomainId() {\n return domainId;\n }",
"RoleType getRoleType();",
"public DomainEntryPoint getDomainEntryPoint() {\n return this.domainEntryPoint;\n }",
"public String getmChatbotDomain() {\n return mChatbotDomain;\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }",
"public static String get() {\n\t\treturn \"ldapntlmdomain get\" + delimiter + \"ldapntlmdomain get \";\n\t}",
"String getRoleName();",
"public java.lang.String getRole() {\n return role;\n }",
"protected static ARTResource getPropertyDomain(SKOSXLModel skosXLModel, ARTURIResource prop)\r\n\t\t\tthrows ModelAccessException {\r\n\t\tARTResource result = null;\r\n\t\tARTResourceIterator innerIT;\r\n\t\tinnerIT = skosXLModel.getOWLModel().listPropertyDomains(prop, true, NodeFilters.MAINGRAPH);\r\n\t\tif (innerIT.streamOpen())\r\n\t\t\tresult = innerIT.getNext();\r\n\t\tinnerIT.close();\r\n\t\tif (result != null)\r\n\t\t\treturn result;\r\n\t\telse {\r\n\t\t\t// System.out.println(\"trying to get property domain from superproperties\");\r\n\t\t\tARTURIResourceIterator innerURIIT = ((DirectReasoning) skosXLModel.getOWLModel())\r\n\t\t\t\t\t.listDirectSuperProperties(prop, NodeFilters.MAINGRAPH);\r\n\t\t\tARTURIResource superProp = null;\r\n\r\n\t\t\tif (innerURIIT.streamOpen())\r\n\t\t\t\tsuperProp = innerURIIT.getNext();\r\n\t\t\tinnerURIIT.close();\r\n\t\t\tif (superProp != null && (!superProp.equals(prop))) {\r\n\t\t\t\t// System.out.println(\"trying to get property domain for property: \" + prop\r\n\t\t\t\t// + \" from superproperties: \" + superProp);\r\n\t\t\t\treturn getPropertyDomain(skosXLModel, superProp);\r\n\t\t\t} else\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t}",
"GetDomainType createGetDomainType();",
"public com.a9.spec.opensearch.x11.QueryType.Role.Enum getRole()\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(ROLE$0);\n if (target == null)\n {\n return null;\n }\n return (com.a9.spec.opensearch.x11.QueryType.Role.Enum)target.getEnumValue();\n }\n }",
"public java.lang.String getRole() {\n return role;\n }",
"public IDomain[] getDomainComponents();",
"DomainStatus getDomainStatus();",
"public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}",
"public void getDomain(){\n String requestDomain = IPAddressTextField.getText();\n Connection conn = new Connection();\n\n String ip = conn.getDomain(requestDomain);\n\n output.writeln(requestDomain + \" --> \" + ip);\n }",
"@iri(\"http://persistent.name/rdf/2010/purl#domainOf\")\n\tSet<Domain> getPurlDomainOf();",
"public Role getRole()\n {\n return role;\n }",
"public String getJid()\n {\n return _domain;\n }",
"public BamService getDomainService()\n {\n return _domainService;\n }",
"public EnumRoleEmploye getRole() {\r\n return role;\r\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n if (roleBuilder_ == null) {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n } else {\n return roleBuilder_.getMessage();\n }\n }",
"public String getDomainRegEx() {\n return domainRegEx;\n }",
"java.lang.String getAuthority();",
"@Override\n public String getIsimDomain() {\n return mIsimDomain;\n }",
"public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}",
"public static String getEngineDomainId() {\n\t return null;\r\n }",
"ObjectType getProtoRole();",
"@Override\n\tpublic String getAuthority() {\n\t\treturn this.name();\n\t}",
"public org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights[] getDomainRightsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DOMAINRIGHTS$0, targetList);\n org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights[] result = new org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public AXValue getRole() {\n return role;\n }",
"public String getRole() {\r\n return role;\r\n }",
"public String[] domain(Vec modelResp) {\n return domain(_N, modelResp, _data.vecs()[_classcol], _model_classes_mapping, _data_classes_mapping);\n }",
"public QName getMyRolePortType() {\r\n QName portType = null;\r\n if (getPartnerLinkType() != null) {\r\n portType = getDef().getMyRolePortType();\r\n }\r\n return portType;\r\n }",
"@Override\n\tpublic List<Map<String, Object>> getRole() {\n\t\treturn this.RoleDao.getRole();\n\t}",
"@ZAttr(id=212)\n public String getDomainTypeAsString() {\n return getAttr(Provisioning.A_zimbraDomainType, null);\n }",
"public String getRole()\n\t{\n\t\treturn role;\n\t}",
"public String getDomainClassifier() {\r\n\t\treturn getTextValue(this.domainClassifierList);\r\n\t}",
"public String getRole() {\n return this.role;\n }",
"public ManagedHsmSecurityDomainProperties securityDomainProperties() {\n return this.securityDomainProperties;\n }",
"public String getApplicationDomain()\n {\n ASPManager mgr = getASPManager();\n String curr_host = mgr.getCurrentHost();\n if(mgr.isDifferentApplicationPath())\n {\n int host_no = mgr.getCurrentHostIndex()+1;\n String[] data =Str.split((String)configfile.hosts.get(host_no+\"\"),\",\");\n \n if(!\"NONE\".equals(data[1]))\n curr_host = data[1];\n }\n\n return curr_host;\n }",
"public RepositoryDomainType getRepositoryDomain(String tenantId, String serviceName) {\n \t\tServiceBindingType serviceBinding = getServiceBinding(tenantId, serviceName);\n \t\tif (serviceBinding == null) {\n \t\t\tthrow new IllegalArgumentException(\"no service binding found for \" + serviceName + \" of tenant with id=\"\n \t\t\t\t\t+ tenantId);\n \t\t}\n \t\tString repoDomain = serviceBinding.getRepositoryDomain();\n \t\tif (repoDomain == null) {\n \t\t\tif (logger.isTraceEnabled()) {\n \t\t\t\tlogger.trace(\"No repository domain configured for \" + serviceName + \" of tenant with id=\" + tenantId);\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tString key = this.getTenantQualifiedIdentifier(tenantId, repoDomain.trim());\n \t\treturn domains.get(key);\n \t}",
"public ContractModelDomain getContractModelDomain() {\n\t\treturn ContractModelDomain;\n\t}",
"@Transient\n public String getCurrentRole() {\n \tString currentRole = \"\";\n \tif (this.roles != null) {\n \t\tIterator<Role> it = roles.iterator();\n \t\tcurrentRole = it.next().getName().substring(5);\n \t\twhile (it.hasNext()) {\n \t\t\tRole role = it.next();\n \t\t\tcurrentRole += \"/\" + role.getName().substring(5);\n \t\t}\n \t}\n \treturn currentRole;\n }",
"public String getAuthority() {\n return this.authority;\n }",
"DomainPackage getDomainPackage();",
"public String l3IsolationDomainId() {\n return this.innerProperties() == null ? null : this.innerProperties().l3IsolationDomainId();\n }",
"public Userrole getUserrole() {\n return getEntity();\n }",
"public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }",
"public ASPBuffer getLogonDomainList()\n {\n return configfile.domain_list;\n }"
] | [
"0.7274553",
"0.72175056",
"0.70266426",
"0.69875145",
"0.69739586",
"0.6823342",
"0.67929167",
"0.67929167",
"0.6770708",
"0.6671676",
"0.6594126",
"0.65879744",
"0.6470886",
"0.6349427",
"0.6349427",
"0.6289853",
"0.6268891",
"0.6267343",
"0.6253204",
"0.62460095",
"0.62034804",
"0.61360365",
"0.5998529",
"0.5989716",
"0.59783125",
"0.59766513",
"0.5909341",
"0.5891109",
"0.58676034",
"0.58460015",
"0.58146274",
"0.5791762",
"0.57509834",
"0.57449436",
"0.5740542",
"0.57199097",
"0.5715413",
"0.57129014",
"0.5710881",
"0.5693978",
"0.5693978",
"0.562305",
"0.56209165",
"0.56168467",
"0.55873656",
"0.55516666",
"0.5539078",
"0.5530662",
"0.5530465",
"0.55185825",
"0.5491928",
"0.54859304",
"0.5472631",
"0.54715264",
"0.54520327",
"0.5451038",
"0.5421737",
"0.541561",
"0.5407415",
"0.53989106",
"0.5389863",
"0.53814757",
"0.5377498",
"0.5370279",
"0.5341136",
"0.53406674",
"0.5322854",
"0.5314454",
"0.530389",
"0.530289",
"0.53016204",
"0.53004736",
"0.528777",
"0.52829576",
"0.5264977",
"0.52519387",
"0.5245435",
"0.52441525",
"0.52332526",
"0.5232973",
"0.52242374",
"0.52160484",
"0.5203732",
"0.5186853",
"0.5183812",
"0.51763237",
"0.517537",
"0.5154946",
"0.5149855",
"0.5140602",
"0.51391506",
"0.51385754",
"0.5134545",
"0.5133042",
"0.51298296",
"0.51234764",
"0.5114709",
"0.51096046",
"0.5107477",
"0.50965977"
] | 0.69032955 | 5 |
Set the domain of the Role. | public void setDomain(Domain domain) {
this.domain = domain;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDomain(Concept _domain) { domain = _domain; }",
"protected void setDomain(String domain) {\n this.domain = domain;\n }",
"public void setDomain(String domain) {\r\n this.domain = domain;\r\n }",
"public void setDomain(String domain) {\n setProperty(DOMAIN, domain);\n }",
"public final void setDomain(String domain) {\n Validate.notNull(domain, \"domain can't be NULL\");\n this.domain = domain;\n }",
"public void changeDomain(String newDomain);",
"public Target setDomainId(String domain) {\n if (Strings.isValid(domain)) {\n this.domain = domain;\n }\n logger.trace(\"target '{}' is under domain '{}'\", id, this.domain);\n return this;\n }",
"public void setDomain(String domain) {\n this.domain = domain == null ? null : domain.trim();\n }",
"public void setDomain(String value) {\n\t\tapp.setSetting(\"domain\", value);\n\t}",
"public void setDomain(String domain) {\n\t\tdomain = domain == null ? null : domain.trim();\n\n\t\tsetField(\"domain\", domain);\n\t}",
"@JsonProperty(\"domain\")\n public void setDomain(String domain) {\n this.domain = domain;\n }",
"public Long getDomain()\n\t{\n\t\treturn domain;\n\t}",
"public String getDomain() {\r\n return domain;\r\n }",
"public String getDomain() {\n\t\treturn domain;\n\t}",
"public Domain getDomain() {\n return domain;\n }",
"public String getDomain() {\n return domain;\n }",
"public String getDomain() {\n return domain;\n }",
"public Domain getDomain() {\n return this.domain;\n }",
"public NcrackClient onDomain(String domain) {\n this.domain = Optional.of(domain);\n return this;\n }",
"@ZAttr(id=19)\n public void setDomainName(String zimbraDomainName) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainName, zimbraDomainName);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public Concept getDomain() { return domain; }",
"public void xsetRole(com.a9.spec.opensearch.x11.QueryType.Role role)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Role target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().find_attribute_user(ROLE$0);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().add_attribute_user(ROLE$0);\n }\n target.set(role);\n }\n }",
"public void setAuthority(final String authority) throws EpDomainException {\n\t\tif (authority == null) {\n\t\t\t//throw new EpDomainException(\"CustomerRole authority can not be null.\");\n\t\t\treturn;\n\t\t}\n\t\tif (authority.trim().length() == 0) {\n\t\t\tthrow new EpDomainException(\"Empty String is not allowed as CustomerRole authority.\");\n\t\t}\n\t\tthis.authority = authority;\n\t}",
"@Override\n public String getDomain() {\n // return this.userDomain;\n return null; // to support create principal for different domains\n }",
"void setRole(final SecurityRole role);",
"public void setSecurityDomain(final java.lang.String securityDomain)\n {\n this.securityDomain = securityDomain;\n }",
"public String getDomainId() {\n return domain;\n }",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRole(java.lang.String value) {\n validate(fields()[6], value);\n this.role = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public void setDomainNameValue(YangString domainNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n domainNameValue,\n childrenNames());\n }",
"public void setRole(com.a9.spec.opensearch.x11.QueryType.Role.Enum role)\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(ROLE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROLE$0);\n }\n target.setEnumValue(role);\n }\n }",
"public void setDomainEntryPoint(DomainEntryPoint domainEntryPoint) {\n this.domainEntryPoint = domainEntryPoint;\n }",
"@ZAttr(id=212)\n public void setDomainType(ZAttrProvisioning.DomainType zimbraDomainType) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainType, zimbraDomainType.toString());\n getProvisioning().modifyAttrs(this, attrs);\n }",
"@Autowired\n public void setDomainRepository(DomainRepository domainRepo) \n {\n this.domainRepo = domainRepo;\n }",
"public void setDomainId(String domainId) {\n this.domainId = domainId;\n }",
"public void setDomainName(java.lang.String domainName) {\r\n this.domainName = domainName;\r\n }",
"public String getDomain() {\n return getProperty(DOMAIN);\n }",
"public void setDomainId(Long domainId) {\n this.domainId = domainId;\n }",
"public void setDomainId(Long domainId) {\n this.domainId = domainId;\n }",
"@Override\n\tpublic void setPattern(String domain) {\n\t\t\n\t}",
"protected void setManagementControllerDomain() {\n \tmanagementCurrent = managementDomain;\n }",
"@JsonProperty(\"domain\")\n public String getDomain() {\n return domain;\n }",
"public Long getDomainId() {\n return domainId;\n }",
"public Long getDomainId() {\n return domainId;\n }",
"public void setAllValues(AbstractDomainObject abstractDomain)\r\n\t{\r\n\t}",
"public void setDomainName(java.lang.String domainName) {\n this.domainName = domainName;\n }",
"public void setRole(String role)\n {\n _role=role;\n }",
"@NonNull\n public Builder setAuthenticationDomain(@NonNull AuthenticationDomain domain) {\n require(domain, notNullValue());\n mProtoBuilder.authDomain = extractString(domain);\n return this;\n }",
"@iri(\"http://persistent.name/rdf/2010/purl#domainOf\")\n\tvoid setPurlDomainOf(Set<? extends Domain> purlDomainOf);",
"void setRole(String roles);",
"public void setDomainId(String domainId) {\n this.domainId = domainId;\n }",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public LoginDomain(ValidatorDomain validatorDomain) {\r\n\t\tthis.validatorDomain = validatorDomain;\r\n\t}",
"public Object getDomain ();",
"public void setRole(String strRole) {\n\t\tif (\"ADMIN\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.ADMIN);\n\t\t}else if (\"DEVELOPER\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.DEVELOPER);\n\t\t}else if (\"SUPPORT\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.SUPPORT);\n\t\t}\n\t}",
"public void setDomainNameValue(String domainNameValue) throws JNCException {\n setDomainNameValue(new YangString(domainNameValue));\n }",
"@Override\r\n\tpublic void setRole(Long accountId, List<Role> roles) throws ServiceException {\n\r\n\t}",
"@Override\n public String domain() {\n return null;\n }",
"public String getDomainId() {\n return this.domainId;\n }",
"@ZAttr(id=19)\n public Map<String,Object> setDomainName(String zimbraDomainName, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainName, zimbraDomainName);\n return attrs;\n }",
"@ZAttr(id=535)\n public void setDomainStatus(ZAttrProvisioning.DomainStatus zimbraDomainStatus) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainStatus, zimbraDomainStatus.toString());\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public void setAcsDomain(String acsDomain) {\n this.acsDomain = acsDomain;\n }",
"void setRoleDao(final RoleDao roleDao);",
"public void setDomainTargets(DomainTarget[] domainTargets) {\n this.domainTargets = domainTargets;\n }",
"public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }",
"public void unsetDomain() {\n bean = null;\n domain = null;\n }",
"public void setDomainName(String domainName) {\n this.domainName = domainName == null ? null : domainName.trim();\n }",
"public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }",
"@Override\n\tpublic final native String getDomain() /*-{\n return this.domain;\n\t}-*/;",
"public String getDomainName(){\n return this.domainName;\n }",
"public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }",
"public void setRole(Map<String, Object> role) {\n //First create a dummy Repo class object for customer.\n RoleRepository roleRepository = new RoleRepository();\n Role role1 = roleRepository.createObject(role);\n setRole(role1);\n }",
"public void setDomainRightsArray(org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights[] domainRightsArray)\n {\n check_orphaned();\n arraySetterHelper(domainRightsArray, DOMAINRIGHTS$0);\n }",
"String getDomain();",
"protected String getDomain() {\n return \"\";\n }",
"public void addDomainName() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n null,\n childrenNames());\n }",
"@ZAttr(id=212)\n public void setDomainTypeAsString(String zimbraDomainType) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainType, zimbraDomainType);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public String getDomainNm() {\n return this.domainNm;\n }",
"public void setReplyToDomain(String domain) {\n m_ReplyToDomain = domain;\n }",
"public String domainId() {\n return this.domainId;\n }",
"public void setDomainRightsArray(int i, org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights domainRights)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights target = null;\n target = (org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights)get_store().find_element_user(DOMAINRIGHTS$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(domainRights);\n }\n }",
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"public abstract void setRoleManager(OwRoleManager roleManager_p);",
"public void setAdminRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_adminRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeAdminRole();\r\n }\r\n }",
"public List<String> getDomain() {\n\t\treturn null;\n\t}",
"public String getDomainName() {\n return domainName;\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"public void setDomainNm(String domainNm) {\n this.domainNm = domainNm;\n }",
"public void setDomainUserId(String domainUserId) {\n this.standardPairs.put(Parameters.DOMAIN_UID, domainUserId);\n }",
"public void setRole( String role )\n {\n if ( roles == null )\n {\n roles = new TreeSet<>( String.CASE_INSENSITIVE_ORDER );\n }\n\n this.roles.add( role );\n }",
"public Builder setRole(com.message.MessageInfo.RoleVO value) {\n if (roleBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n role_ = value;\n onChanged();\n } else {\n roleBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;",
"@Override\r\n public void addDomainClass(AgeClass dmCls)\r\n {\n\r\n domain.add(dmCls);\r\n }",
"@Override\n public void setRole(User u) {\n loginTrue(u.getName());\n uRole = u.getUserRole();\n switch (uRole) {\n case 1:\n nhanvien.setEnabled(true);\n break;\n case 2:\n quanly.setEnabled(false);\n break;\n case 3:\n break;\n case 4:\n dathang.setEnabled(false);\n break;\n case 5:\n baocao.setEnabled(false);\n break;\n }\n }",
"public static void processDomain(Domain fieldDomain, Class<?> clazz_type) {\n\t\tif (clazz_type == Boolean.TYPE || clazz_type == Boolean.class)\t{\t/* set discrete*/\n//\t\t\tfieldDomain.setCategorical(true);\t// BY DEFAULT it is categorical\n\t\t\tfieldDomain.addCategory(Boolean.TRUE);\n\t\t\tfieldDomain.addCategory(Boolean.FALSE);\n\t\t\tfieldDomain.setFixed(true);\n\t\t} else if (clazz_type.isEnum()) {//f.isEnumConstant()) {\n\t\t\tClass<?> enum_f = clazz_type;\n\t\t\t//for (E e:enum_f.getEnumConstants())\n\t\t\t//fieldDomain.setFixed(true);\n\t\t} else if (clazz_type == String.class) {\t\n\t\t\t/* BY DEFAULT it is categorical*/\n\t\t} \n\t\t\n\t}",
"public void setDirAddress(String dirAddress) {\n String oDirAddress = getDirAddress();\n this.dirAddress = dirAddress;\n firePropertyChange(PROPNAME_DIRADDRESS, oDirAddress, this.dirAddress);\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"public MBeanDomainData(String domainName) {\n this.domainName = domainName;\n }",
"public void setDomainObjectId(Long domainObjectId)\r\n\t{\r\n\t\tthis.domainObjectId = domainObjectId;\r\n\t}",
"public void setRole(EnumRoleEmploye role) {\r\n this.role = role;\r\n }"
] | [
"0.72026026",
"0.70032465",
"0.69779736",
"0.6977523",
"0.67693704",
"0.6741825",
"0.6389618",
"0.6322133",
"0.6308721",
"0.6238005",
"0.6177703",
"0.61452",
"0.5993247",
"0.59344006",
"0.59263444",
"0.591063",
"0.591063",
"0.58919597",
"0.58855337",
"0.5771672",
"0.57417977",
"0.57366186",
"0.5696361",
"0.5686557",
"0.5685423",
"0.5647691",
"0.56310713",
"0.5600572",
"0.5597628",
"0.5593997",
"0.55674577",
"0.5566707",
"0.55633134",
"0.5534791",
"0.5512443",
"0.5489726",
"0.5458615",
"0.5458615",
"0.5451013",
"0.54466826",
"0.5431292",
"0.5427677",
"0.5427677",
"0.5427489",
"0.542743",
"0.54147375",
"0.5395558",
"0.5382898",
"0.5351542",
"0.5329691",
"0.53254807",
"0.5306367",
"0.52765274",
"0.52578974",
"0.5233267",
"0.52170455",
"0.5191932",
"0.5180225",
"0.5173893",
"0.5171405",
"0.51417714",
"0.5137049",
"0.51169354",
"0.5113209",
"0.5109668",
"0.5105007",
"0.5096199",
"0.50926757",
"0.5088076",
"0.50828373",
"0.507081",
"0.50581753",
"0.5057678",
"0.5055863",
"0.5055144",
"0.5051878",
"0.5036948",
"0.5016478",
"0.500572",
"0.49995",
"0.4998701",
"0.49868408",
"0.49596047",
"0.4956081",
"0.49489215",
"0.49459964",
"0.49429926",
"0.4916134",
"0.4909661",
"0.4901066",
"0.49000654",
"0.49000105",
"0.4894668",
"0.4887072",
"0.48869342",
"0.48719582",
"0.48652756",
"0.48624453",
"0.48556256"
] | 0.7245748 | 1 |
Get the domainId of the Role. | public Long getDomainId() {
return domainId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDomainId() {\n return domain;\n }",
"public String getDomainId() {\n return this.domainId;\n }",
"public String domainId() {\n return this.domainId;\n }",
"public Long getDomainObjectId()\r\n\t{\r\n\t\treturn this.domainObjectId;\r\n\t}",
"public Long getDomain()\n\t{\n\t\treturn domain;\n\t}",
"public Integer getIdRole() {\n\t\treturn idRole;\n\t}",
"@XmlElement(name = \"domain\")\n public String getDomainId() {\n return domainId;\n }",
"public Long getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\r\n return roleId;\r\n }",
"public Integer getRoleid() {\r\n return roleid;\r\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}",
"public Long getRoleId() {\n\t\treturn roleId;\n\t}",
"Integer getRealmId();",
"public Integer getRoleId() {\n\t\treturn roleId;\n\t}",
"public Integer getRolePid() {\n return rolePid;\n }",
"public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }",
"public String getDomain() {\n return getProperty(DOMAIN);\n }",
"public int getRoleId() {\r\n\t\treturn roleId;\r\n\t}",
"public BigDecimal getRoleId() {\r\n return roleId;\r\n }",
"public String l3IsolationDomainId() {\n return this.innerProperties() == null ? null : this.innerProperties().l3IsolationDomainId();\n }",
"@Override\n public String getDomain() {\n // return this.userDomain;\n return null; // to support create principal for different domains\n }",
"public String getVoiceProfileDomainId() {\n return this.voiceProfileDomainId;\n }",
"public String getTransDomainId() {\n return transDomainId;\n }",
"public String getDomain() {\n\t\treturn domain;\n\t}",
"public static String getEngineDomainId() {\n\t return null;\r\n }",
"public Domain getDomain() {\n return this.domain;\n }",
"public String getDomain() {\n return domain;\n }",
"public String getDomain() {\n return domain;\n }",
"public String getDomain() {\r\n return domain;\r\n }",
"public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }",
"TDLRoleEntity getTDLRole(Long id);",
"public Long getRolemenuid() {\n return rolemenuid;\n }",
"SecurityRole getRole();",
"public Domain getDomain() {\n return domain;\n }",
"public SecRole getRoleById(Long role_Id);",
"public Integer getRole() {\n\t\treturn role;\n\t}",
"public String getDomainNm() {\n return this.domainNm;\n }",
"public String getClRoleId() {\r\n\t\treturn clRoleId;\r\n\t}",
"@Override\n\tpublic String getAuthority() {\n\t\treturn role;\n\t}",
"public long getOrganizationId();",
"public String getDomainName() {\n return domainName;\n }",
"public java.lang.String getCrmId() {\n return crmId;\n }",
"public Optional<String> getRole() {\n return Optional.ofNullable(properties.getProperty(MESOS_ROLE));\n }",
"public java.lang.String getDomainName() {\r\n return domainName;\r\n }",
"com.message.MessageInfo.RoleVO getRole();",
"public java.lang.String getDomainName() {\n return domainName;\n }",
"public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }",
"RoleType getRoleType();",
"public String getDomainCd() {\n return this.domainCd;\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }",
"public String getServiceDomain() {\r\n\t\treturn getTextValue(this.serviceDomainList);\r\n\t}",
"String getRole();",
"String getRole();",
"String getRoleName();",
"public Role getByRoleId(long roleId);",
"public void setDomainId(Long domainId) {\n this.domainId = domainId;\n }",
"public void setDomainId(Long domainId) {\n this.domainId = domainId;\n }",
"public String getRoleCode() {\n return roleCode;\n }",
"int getParticipantRoleValue();",
"public java.lang.String getRole() {\n return role;\n }",
"public java.lang.String getRole() {\n return role;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _permissionType.getCompanyId();\n\t}",
"public String getDomainName(){\n return this.domainName;\n }",
"public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}",
"@ZAttr(id=212)\n public ZAttrProvisioning.DomainType getDomainType() {\n try { String v = getAttr(Provisioning.A_zimbraDomainType); return v == null ? null : ZAttrProvisioning.DomainType.fromString(v); } catch(com.zimbra.common.service.ServiceException e) { return null; }\n }",
"public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n if (accountIdBuilder_ == null) {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n } else {\n return accountIdBuilder_.getMessage();\n }\n }",
"public String getID(){\n return this.getKey().getTenantId(this.getTenantName());\n }",
"String getDomain();",
"public Object getDomain ();",
"public java.lang.Long getIntBusinessRoleTypeID()\n\t{\n\t\treturn intBusinessRoleTypeID;\n\t}",
"public String getPrincipalId() {\n\t\treturn principalId;\n\t}",
"@Override\n public String getRoleProperty() {\n return \"visibleAtRole.id\";\n }",
"com.google.cloud.dialogflow.v2beta1.Participant.Role getParticipantRole();",
"public Long getAuthorityId() {\n return authorityId;\n }",
"public Long getGroupRoleId() {\n\t\treturn groupRoleId;\n\t}",
"@Override\n\tpublic int getIDByName(String rolename) {\n\t\treturn this.RoleDao.getIDByName(rolename);\n\t}",
"@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}",
"public Role getRoleById(int id);",
"public com.message.MessageInfo.RoleVO getRole() {\n if (roleBuilder_ == null) {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n } else {\n return roleBuilder_.getMessage();\n }\n }"
] | [
"0.6953358",
"0.69339883",
"0.693062",
"0.6595099",
"0.6475207",
"0.6342392",
"0.61191297",
"0.6094271",
"0.6011563",
"0.6011563",
"0.6011563",
"0.6009306",
"0.6009306",
"0.6009306",
"0.6009306",
"0.5997386",
"0.59753424",
"0.5968704",
"0.5968704",
"0.5968704",
"0.5922153",
"0.5922153",
"0.5922153",
"0.5922153",
"0.5922153",
"0.5922153",
"0.5922153",
"0.5922153",
"0.59106046",
"0.5908773",
"0.59085286",
"0.5879574",
"0.5865647",
"0.586323",
"0.58586556",
"0.58444095",
"0.57940376",
"0.5740484",
"0.5734213",
"0.5685537",
"0.5569158",
"0.5563994",
"0.553788",
"0.5534411",
"0.5489858",
"0.54728204",
"0.54728204",
"0.54539734",
"0.5437114",
"0.5428657",
"0.5413804",
"0.5382218",
"0.53808206",
"0.53495365",
"0.5344655",
"0.5340623",
"0.532808",
"0.5310626",
"0.53096616",
"0.5277803",
"0.5274101",
"0.5245876",
"0.52389777",
"0.5224354",
"0.522398",
"0.5213893",
"0.5213314",
"0.52124053",
"0.5208673",
"0.5206156",
"0.5184399",
"0.5184399",
"0.5179101",
"0.5162577",
"0.5152876",
"0.5152876",
"0.5139646",
"0.5132159",
"0.51148224",
"0.51095515",
"0.5099969",
"0.5090484",
"0.5088188",
"0.50841755",
"0.5081085",
"0.50797373",
"0.5077392",
"0.5070621",
"0.50705284",
"0.5070046",
"0.5066943",
"0.50658",
"0.5065253",
"0.50632185",
"0.50628734",
"0.5060378",
"0.5058439",
"0.5057511",
"0.50389737"
] | 0.7161366 | 1 |
Set the domainId of the Role. | public void setDomainId(Long domainId) {
this.domainId = domainId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Target setDomainId(String domain) {\n if (Strings.isValid(domain)) {\n this.domain = domain;\n }\n logger.trace(\"target '{}' is under domain '{}'\", id, this.domain);\n return this;\n }",
"public void setDomainId(String domainId) {\n this.domainId = domainId;\n }",
"public void setDomainId(String domainId) {\n this.domainId = domainId;\n }",
"public void setRoleId(Integer roleId) {\r\n this.roleId = roleId;\r\n }",
"public void setDomain(Domain domain) {\n this.domain = domain;\n }",
"public void setDomain(Domain domain) {\n this.domain = domain;\n }",
"public void setRoleId(Long roleId) {\r\n this.roleId = roleId;\r\n }",
"public void setRoleId(String roleId) {\n this.roleId = roleId == null ? null : roleId.trim();\n }",
"public void setRoleId(String roleId) {\n this.roleId = roleId == null ? null : roleId.trim();\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public Long getDomainId() {\n return domainId;\n }",
"public Long getDomainId() {\n return domainId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"public void setRoleId(int roleId) {\r\n\t\tthis.roleId = roleId;\r\n\t}",
"public void setRoleId(String roleId)\r\n\t{\r\n\t\tthis.roleId = roleId;\r\n\t}",
"public void setRoleId(String roleId) {\n this.roleId = roleId;\n }",
"protected void setDomain(String domain) {\n this.domain = domain;\n }",
"public void setDomain(String domain) {\n setProperty(DOMAIN, domain);\n }",
"@ZAttr(id=19)\n public void setDomainName(String zimbraDomainName) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainName, zimbraDomainName);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public final void setDomain(String domain) {\n Validate.notNull(domain, \"domain can't be NULL\");\n this.domain = domain;\n }",
"public void setRoleId(Integer roleId) {\n\t\tthis.roleId = roleId;\n\t}",
"public void setRoleId(Long roleId) {\n\t\tthis.roleId = roleId;\n\t}",
"public void setDomainObjectId(Long domainObjectId)\r\n\t{\r\n\t\tthis.domainObjectId = domainObjectId;\r\n\t}",
"@Override\r\n\tpublic void setRole(Long accountId, List<Role> roles) throws ServiceException {\n\r\n\t}",
"public void changeDomain(String newDomain);",
"void setRole(final SecurityRole role);",
"public void setRoleId(String roleId) {\n\t\tthis.role_id = roleId;\n\t}",
"public String getDomainId() {\n return domain;\n }",
"public String getDomainId() {\n return this.domainId;\n }",
"public void setDomain(String domain) {\r\n this.domain = domain;\r\n }",
"public void setDomain(Concept _domain) { domain = _domain; }",
"public void xsetEnumSkillId(org.apache.xmlbeans.XmlString enumSkillId)\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(ENUMSKILLID$10);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ENUMSKILLID$10);\n }\n target.set(enumSkillId);\n }\n }",
"void setRoleDao(final RoleDao roleDao);",
"public void setRoleId(BigDecimal roleId) {\r\n this.roleId = roleId;\r\n }",
"public void xsetRole(com.a9.spec.opensearch.x11.QueryType.Role role)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Role target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().find_attribute_user(ROLE$0);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().add_attribute_user(ROLE$0);\n }\n target.set(role);\n }\n }",
"@XmlElement(name = \"domain\")\n public String getDomainId() {\n return domainId;\n }",
"public void setRoleid(Long roleid) {\n this.roleid = roleid;\n }",
"public void setRoleid(Integer roleid) {\r\n this.roleid = roleid;\r\n }",
"public void setDomainUserId(String domainUserId) {\n this.standardPairs.put(Parameters.DOMAIN_UID, domainUserId);\n }",
"public void setEnumSkillId(java.lang.String enumSkillId)\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(ENUMSKILLID$10);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ENUMSKILLID$10);\n }\n target.setStringValue(enumSkillId);\n }\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_permissionType.setCompanyId(companyId);\n\t}",
"public void setAuthority(final String authority) throws EpDomainException {\n\t\tif (authority == null) {\n\t\t\t//throw new EpDomainException(\"CustomerRole authority can not be null.\");\n\t\t\treturn;\n\t\t}\n\t\tif (authority.trim().length() == 0) {\n\t\t\tthrow new EpDomainException(\"Empty String is not allowed as CustomerRole authority.\");\n\t\t}\n\t\tthis.authority = authority;\n\t}",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRole(java.lang.String value) {\n validate(fields()[6], value);\n this.role = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public String domainId() {\n return this.domainId;\n }",
"public void setRoleid(String roleid) {\n this.roleid = roleid == null ? null : roleid.trim();\n }",
"public void setRoleid(String roleid) {\n this.roleid = roleid == null ? null : roleid.trim();\n }",
"public void setRoleid(String roleid) {\n this.roleid = roleid == null ? null : roleid.trim();\n }",
"public void setDomain(String domain) {\n\t\tdomain = domain == null ? null : domain.trim();\n\n\t\tsetField(\"domain\", domain);\n\t}",
"@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }",
"public void setDomainNameValue(YangString domainNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n domainNameValue,\n childrenNames());\n }",
"public final void setLDAPID(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String ldapid)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.LDAPID.toString(), ldapid);\r\n\t}",
"public void setRole(com.a9.spec.opensearch.x11.QueryType.Role.Enum role)\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(ROLE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROLE$0);\n }\n target.setEnumValue(role);\n }\n }",
"@JsonProperty(\"domain\")\n public void setDomain(String domain) {\n this.domain = domain;\n }",
"@ZAttr(id=212)\n public void setDomainType(ZAttrProvisioning.DomainType zimbraDomainType) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainType, zimbraDomainType.toString());\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public void setDomain(String domain) {\n this.domain = domain == null ? null : domain.trim();\n }",
"public final void setLDAPID(java.lang.String ldapid)\r\n\t{\r\n\t\tsetLDAPID(getContext(), ldapid);\r\n\t}",
"public void setDomainName(java.lang.String domainName) {\r\n this.domainName = domainName;\r\n }",
"LoggedUser changeRole(String roleId) throws IOException;",
"public void setRole(String role)\n {\n _role=role;\n }",
"public void setIdAuthority(String theString) {\n\t \r\n }",
"public void xsetOrganizationId(com.microsoft.schemas._2003._10.serialization.Guid organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.set(organizationId);\r\n }\r\n }",
"@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }",
"public void setDomainName(java.lang.String domainName) {\n this.domainName = domainName;\n }",
"public void setRole(String strRole) {\n\t\tif (\"ADMIN\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.ADMIN);\n\t\t}else if (\"DEVELOPER\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.DEVELOPER);\n\t\t}else if (\"SUPPORT\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.SUPPORT);\n\t\t}\n\t}",
"public Long getRoleId() {\r\n return roleId;\r\n }",
"public void setSeqId(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId seqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().find_element_user(SEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().add_element_user(SEQID$0);\r\n }\r\n target.set(seqId);\r\n }\r\n }",
"public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"void setRole(String roles);",
"public void setDomainRightsArray(int i, org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights domainRights)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights target = null;\n target = (org.datacontract.schemas._2004._07.cdiscount_framework_core_communication_messages.DomainRights)get_store().find_element_user(DOMAINRIGHTS$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(domainRights);\n }\n }",
"public void setOrganizationId(java.lang.String organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);"
] | [
"0.70850235",
"0.65821886",
"0.64118516",
"0.59345895",
"0.5927633",
"0.5927633",
"0.59122896",
"0.5890462",
"0.5890462",
"0.5883067",
"0.5883067",
"0.5883067",
"0.5883067",
"0.5883067",
"0.5883067",
"0.5883067",
"0.5883067",
"0.5861331",
"0.5861331",
"0.58563125",
"0.58563125",
"0.58563125",
"0.58563125",
"0.5798527",
"0.5763644",
"0.57349414",
"0.5719431",
"0.57127106",
"0.5689116",
"0.5688683",
"0.5673298",
"0.56425065",
"0.56361634",
"0.5595597",
"0.5561539",
"0.5559076",
"0.5554859",
"0.5545482",
"0.55262756",
"0.55189806",
"0.5495157",
"0.546685",
"0.54641795",
"0.5458682",
"0.5413178",
"0.5408749",
"0.53654456",
"0.5357627",
"0.5339807",
"0.53332734",
"0.53203905",
"0.5305457",
"0.5303067",
"0.52964294",
"0.52897525",
"0.52824306",
"0.52824306",
"0.52824306",
"0.5234011",
"0.52320147",
"0.51735336",
"0.5155176",
"0.5149423",
"0.5145262",
"0.5105106",
"0.51045084",
"0.50976235",
"0.508542",
"0.5077803",
"0.5058385",
"0.50518936",
"0.50403166",
"0.5025427",
"0.50170904",
"0.50147885",
"0.5014168",
"0.5011235",
"0.5009849",
"0.49961486",
"0.49961486",
"0.49961486",
"0.4986526",
"0.4986526",
"0.4986526",
"0.4986526",
"0.498645",
"0.4974048",
"0.49514335",
"0.4942793",
"0.49294388",
"0.49294388",
"0.49294388",
"0.49294388",
"0.49294388",
"0.49294388",
"0.49294388",
"0.49294388",
"0.49294388",
"0.49294388"
] | 0.65836304 | 2 |
Get the department of the role. | public Department getDepartment() {
return department;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public String getDepartment() {\r\n return department;\r\n }",
"public synchronized String getDepartment()\r\n {\r\n return department;\r\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getEmployeeDepartment(){\n return profile.getDepartment();\n }",
"public String getDepartment(){\n\t\treturn departName;\n\t}",
"public static Department getDepartment() {\n\t\treturn Departments.getDepartment(\"Computing Science\");\n\t}",
"public String getDepartment() {\n return departmentField.getText();\n }",
"public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}",
"public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}",
"public String GetDept()\r\n {\r\n return Department;\r\n }",
"public jkt.hms.masters.business.MasDepartment getDepartment() {\n\t\treturn department;\n\t}",
"public List<JianliBean> SelectRoleDept() {\n\t\treturn jianliDao.SelectRoleDept();\r\n\t}",
"@Override\n\tpublic long getEmployeeDepartmentId() {\n\t\treturn _candidate.getEmployeeDepartmentId();\n\t}",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public String getDept() {\n return dept;\n }",
"public String getDept() {\n return dept;\n }",
"public String getDepartmentName() {\n return departmentName;\n }",
"private Department selectDepartment()\n {\n Department selectedDepartment = null;\n if(listViewSelectedHospital != null){\n listViewSelectedHospital = listViewSelectedHospital.trim();\n String hospitalName = listViewSelectedHospital.split(\" \")[0];\n selectedDepartment = getDepartment(hospitalName);\n }\n return selectedDepartment;\n }",
"private Department getDepartment(String departmentName)\n {\n for(Department department:humanPlayer.getDepartments())\n {\n if(department.getName().equals(departmentName))\n {\n return department;\n }\n }\n return null;\n }",
"public final int getDepartmentId() {\n return departmentId;\n }",
"public java.lang.String getDepartmentId () {\r\n\t\treturn departmentId;\r\n\t}",
"public final String getDepartmentName() {\n return departmentName;\n }",
"public String getDepartmentid() {\n return departmentid;\n }",
"@Override\r\n\tpublic Department getDepartment(Long id) throws DepartmentNotFoundException {\n\t\tOptional<Department> department = deptRepo.findById(id);\r\n\t\t\r\n\t\tif(!department.isPresent()) {\r\n\t\t\tthrow new DepartmentNotFoundException(\"Oops..! No Department is available for the id.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn department.get();\r\n\t}",
"public String getDepartmentName() {\n\t\treturn departmentName;\n\t}",
"public Departamento getDepartamento(String rol, String email) {\r\n\t if(rol.equals(\"superadmin\") || rol.equals(\"manager\") || rol.equals(\"user\")) {\r\n\t\t rol = \"%\";\r\n\t\t email = \"%\";\r\n\t }\r\n\t Departamento departamento = new Departamento();\r\n\t try {\r\n\t\t String consulta = \"select u.departamento from Usuario u where u in \"\r\n\t\t \t\t+\"(select g.usuario from Grupo g where \"\r\n\t\t\t\t\t \t\t+\"g.usuario.email like :email and g.rol.idrol like :rol and u.departamento is not null)\";\t\r\n\t\t\t \r\n\t\t\t Query queryconsulta = em.createQuery(consulta);\r\n\t\t\t queryconsulta.setParameter(\"email\", email);\r\n\t\t\t queryconsulta.setParameter(\"rol\", rol);\r\n\t\t\t departamento = (Departamento) queryconsulta.getSingleResult();\r\n\t} catch (javax.persistence.NoResultException e) {\r\n\t\t// TODO: handle exception\r\n\t}\r\n\t \r\n\r\n\r\n\t \r\n\t return departamento;\r\n }",
"public String getDeptForCode(String code) {\n return departmentMap.get(code);\n }",
"public Departmentdetails getDepartmentByName(String departmentName);",
"public int getDepartmentId() {\n return departmentId;\n }",
"@Override\n public Department getDepartment(int departmentId) {\n return null;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"@Override\n\tpublic List<?> selectDepartment() throws Exception {\n\t\treturn deptMapperr.selectDepartment();\n\t}",
"public String getDeptName() {\n return deptName;\n }",
"public String getDeptName() {\n return deptName;\n }",
"public String getDeptName() {\r\n return deptName;\r\n }",
"public com.hps.july.persistence.Department getDepartments() throws Exception {\n\tDepartmentAccessBean bean = constructDepartments();\n\tif (bean != null)\n\t return (Department)bean.getEJBRef();\n\telse\n\t return null;\n\n}",
"public Long getDeptId() {\n return deptId;\n }",
"public String getDepartmentCode() {\n\t\treturn departmentCode;\n\t}",
"public String getDeptId() {\n return deptId;\n }",
"public String getDeptId() {\n return deptId;\n }",
"public java.lang.String getDepartmentname() {\n\treturn departmentname;\n}",
"public String getDepartmentCode()\r\n\t{\r\n\t\treturn getDepartmentCode( getSession().getSessionContext() );\r\n\t}",
"public String getCourseDept() {\n return this.courseDept;\n }",
"public Department getDepartmentById(Integer id);",
"public Department getDepartmentById(int id) {\n return this.dsl\n .selectFrom(DEPARTMENT)\n .where(DEPARTMENT.ID.eq(id))\n .fetchOne()\n .into(Department.class);\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public EnumRoleEmploye getRole() {\r\n return role;\r\n }",
"public String getdeptName() {\n\t\treturn _deptName;\n\t}",
"public static Department getDepartment(Node node) {\n Department d = new Department();\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element e = (Element) node;\n d.setId(e.getElementsByTagName(\"id\").item(0).getChildNodes().item(0).getTextContent());\n d.setName(e.getElementsByTagName(\"name\").item(0).getChildNodes().item(0).getTextContent());\n }\n return d;\n }",
"public Departement getDepartement() {\n\t\treturn departement;\n\t}",
"public String getDeptCode() {\n return deptCode;\n }",
"public String getDeptCode() {\n return deptCode;\n }",
"public String getDeptCode() {\n return deptCode;\n }",
"public Long getDeptLevel() {\n return deptLevel;\n }",
"@Override\n\tpublic Dept getDept() {\n\t\treturn super.getDept();\n\t}",
"public Long getDeptType() {\n return deptType;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getDept() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getDept\");\r\n\t}",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Department getById(long id) {\n\t return entityManager.find(Department.class, id);\n\t }",
"public Integer getDeptId() {\r\n return deptId;\r\n }",
"public List<JianliBean> selectJianliLuyongRoleDept() {\n\t\treturn jianliDao.selectJianliLuyongRoleDept();\r\n\t}",
"public Department findDepartment(Department department) {\n\t\treturn (Department)getHibernateTemplate().find(String.valueOf(department.getIdDepartment())).get(0);\n\t}",
"@Override\n\tpublic GappDepartment getDepartmentId(Integer id) {\n\t\treturn entityManager.find(GappDepartment.class, id);\n\t\t// return entityManager.createQuery(\"from GappUsers\",\n\t\t// GappUsers.class).getResultList();\n\t}",
"@Override\r\n\tpublic Department getDepartmentById(int id) {\n\t\treturn getHibernateTemplate().get(Department.class, id);\r\n\t}",
"public Department findDepartment(String num)\n\t{\n\t\tHRProtocol envelop = null;\n\t\tenvelop = new HRProtocol(HRPROTOCOL_FIND_DEPARTMENT_REQUEST, num, null);\n\t\tsendEnvelop(envelop);\n\t\tenvelop = receiveEnvelop();\n\t\tif(envelop.getPassingCode() == HRPROTOCOL_FIND_DEPARTMENT_RESPONSE)\n\t\t{\n\t\t\tint DepNum = ((Department)envelop.getPassingObject()).getDepartmentId();\n\t\t\tString DepName = ((Department)envelop.getPassingObject()).getDepartmentName();\n\n\t\t\tDepartment dep = new Department(DepNum, DepName);\n\t\t\treturn dep;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\t//Error in transition. or other error codes.\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic Optional<Department> findDepartmentById(Integer id) {\n\t\treturn departmentRepository.findById(id);\n\t}",
"public java.lang.String getRndDepartmentName() {\n return rndDepartmentName;\n }",
"public Integer geteDeptId() {\n return eDeptId;\n }",
"public Department getDepartmentByNo(String no) {\n return this.dsl\n .selectFrom(DEPARTMENT)\n .where(DEPARTMENT.NO.eq(no))\n .fetchOne()\n .into(Department.class);\n }",
"public java.lang.String getDept_name() {\r\n return dept_name;\r\n }",
"@JsonGetter(\"department\")\n public String getDepartment ( ) { \n return this.department;\n }",
"String getDeptType();",
"String getRole();",
"String getRole();",
"public Optional<Department> getDepartmentId(long departmentId) {\n\t\treturn departmentRepository.findById(departmentId);\n\t}",
"public Integer getDeptCode() {\n return deptCode;\n }",
"public String getId()\r\n {\r\n return departmentBean.getId();\r\n }",
"public Department getSingleDepartment(String department) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from Department as department where department.department = ?\",\n new Object[]{department},\n new Type[]{Hibernate.STRING});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (Department) results.get(0);\n }\n\n }",
"public String getDepartmentCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, DEPARTMENTCODE);\r\n\t}",
"public Departments getDeptTable();",
"public String getParentDepartment() {\n\t\treturn parentDepartment;\n\t}",
"Department findById(long id);",
"public List<JianliBean> selectJianliMianshiRoleDept() {\n\t\treturn jianliDao.selectJianliMianshiRoleDept();\r\n\t}",
"public DepartmentModel getDepartmentKey()\r\n\t{\r\n\t\treturn this.m_departmentKey;\r\n\t}",
"@Override\n\tpublic List<Organization> getDepartmentDetails(Integer parentorgcode)throws Exception {\n\t\n\t\t\n\t\treturn organizationDAO.getDepartmentDetails(parentorgcode);\n\t\t\n\t\t\n\t}"
] | [
"0.7207036",
"0.7207036",
"0.7207036",
"0.71789926",
"0.7147909",
"0.7132849",
"0.7132849",
"0.7132849",
"0.7132849",
"0.7132849",
"0.70902807",
"0.69911736",
"0.6936507",
"0.69122684",
"0.69002277",
"0.69002277",
"0.68176347",
"0.681527",
"0.67173326",
"0.66509795",
"0.6539481",
"0.6539481",
"0.6539481",
"0.6539354",
"0.6539354",
"0.6515913",
"0.6508608",
"0.64875907",
"0.6476505",
"0.64568835",
"0.6450349",
"0.64414674",
"0.64290935",
"0.6418848",
"0.6402316",
"0.63970906",
"0.6388934",
"0.634306",
"0.63299423",
"0.63124746",
"0.63124746",
"0.63124746",
"0.6302391",
"0.62974286",
"0.62974286",
"0.6297405",
"0.627758",
"0.6274873",
"0.6271927",
"0.6231494",
"0.6231494",
"0.6200782",
"0.6191133",
"0.6189638",
"0.61861306",
"0.6169493",
"0.6164006",
"0.6164006",
"0.616186",
"0.614692",
"0.61360687",
"0.61219335",
"0.6120839",
"0.6120839",
"0.6120839",
"0.6120281",
"0.60954964",
"0.60949093",
"0.6090892",
"0.6085969",
"0.6085969",
"0.6085969",
"0.6085969",
"0.6079856",
"0.6070035",
"0.6065257",
"0.60477066",
"0.60350496",
"0.60307264",
"0.602964",
"0.60216486",
"0.6019488",
"0.59719616",
"0.5970773",
"0.5970482",
"0.59700817",
"0.59403896",
"0.5931502",
"0.5931502",
"0.5930878",
"0.59284955",
"0.59135634",
"0.59112984",
"0.58996224",
"0.58952576",
"0.5895143",
"0.5876964",
"0.5862418",
"0.5851864",
"0.5824469"
] | 0.6848829 | 16 |
Set the department of the role. | public void setDepartment(Department department) {
this.department = department;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDepartment(Department d) {\r\n department = d;\r\n }",
"public void setDepartment(String department) {\n if(department==null){\n department = \"\";\n }\n this.department = department;\n }",
"public void assignDepartment(String departmentName);",
"@Override\n public void setEmployeeDepartment(int employeeId, int departmentId) {\n\n }",
"public void setDepartment(String dept) {\r\n\t\tdepartment = dept;\r\n\t}",
"public void setDepartment(String department) {\n this.department = department;\n }",
"@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }",
"public void setDepartment(String department) {\r\n\t\tthis.department=department;\r\n\t}",
"public void setDepartment(String department) {\r\n\t\tthis.department = department;\r\n\t}",
"public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"public void setDepartment(jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"public void setDepartment(String department) {\n this.department = department == null ? null : department.trim();\n }",
"public void setDept(springboot_academic_system.department.DatabaseDepartment dept) {\n this.dept = dept;\n this.deptName = dept.getDeptName();\n }",
"public void setDepartmentId(int value) {\n this.departmentId = value;\n }",
"public void setPortalPriv(Connection dbConn, int id, String role,\n String user, String dept) throws Exception {\n Statement ps = null;\n try {\n String sql = \"update PORTAL set DEPT_ID = '\" + dept\n + \"' , PRIV_ID = '\" + role + \"' ,USER_ID = '\" + user\n + \"' where SEQ_ID=\" + id;\n ps = dbConn.createStatement();\n ps.executeUpdate(sql);\n } catch (Exception ex) {\n throw ex;\n } finally {\n T9DBUtility.close(ps, null, log);\n }\n }",
"public void setDept(String dept) {\n this.dept = dept;\n }",
"@Override\n\tpublic void setDept(Dept dept) {\n\t\tsuper.setDept(dept);\n\t}",
"public void setDepartments(DepartmentAccessBean newDeparments) throws Exception {\n\tif (newDeparments == null) {\n\t\tdepartmentcode = null;\n\t\tdepartmentname = \"\";\n\t}\n\telse {\n\t\tdepartmentcode = new Integer(newDeparments.getDivision());\n\t\tdepartmentname = newDeparments.getName();\n\t}\n}",
"public void SetDepartmentID(String DepartmentID)\n {\n this.DepartmentID=DepartmentID;\n }",
"public void setRole(EnumRoleEmploye role) {\r\n this.role = role;\r\n }",
"void modifyDepartment(Department dRef);",
"@Override\n public void setDepartments() throws DepartmentCreationException {\n\n }",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public void setDepartmentname(java.lang.String newDepartmentname) {\n\tdepartmentname = newDepartmentname;\n}",
"public String getDepartment() {\r\n return department;\r\n }",
"@JsonSetter(\"department\")\n public void setDepartment (String value) { \n this.department = value;\n notifyObservers(this.department);\n }",
"public void setRole(String role)\n {\n _role=role;\n }",
"public final void setDepartmentName(final String dName) {\n this.departmentName = dName;\n }",
"public void setDept(String dept) {\n this.dept = dept == null ? null : dept.trim();\n }",
"public void updateDepartment(IBaseDTO dto) {\n\t\tString id=(String)dto.get(\"id\");\n\t\tSysDepartment sd=(SysDepartment)dao.loadEntity(SysDepartment.class,id);\n\t\tif(sd!=null)\n\t\t{\n\t\t\t\n\t\t\tsd.setName((String)dto.get(\"name\"));\n\t\t\tsd.setParentId((String)dto.get(\"parentId\"));\n\t\t\tsd.setRemarks((String)dto.get(\"remark\"));\n\t\t\tsd.setTagShow((String)dto.get(\"tagShow\"));\n\t\t\tsd.setAdmin((String)dto.get(\"admin\"));\n\t\t}\n\t\tcts.reload();\n\t\tdao.saveEntity(sd);\n\t}",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"public void setDepartmentcode(java.lang.Integer newDepartment) {\n\tdepartmentcode = newDepartment;\n}",
"public void setDeptTable(Departments value);",
"public void setDepartmentCode(final String value)\r\n\t{\r\n\t\tsetDepartmentCode( getSession().getSessionContext(), value );\r\n\t}",
"public final void setDepartmentId(final Integer dId) {\n this.departmentId = dId;\n }",
"@Override\r\n\tpublic void updateDepartment(Department department) {\n\t\tDepartment d = getDepartmentById(department.getDepartment_id());\r\n\t\td.setDepartment_id(department.getDepartment_id());\r\n\t\td.setDescription(department.getDescription());\r\n\t\td.setName(department.getName());\r\n\t\td.setPostSet(department.getPostSet());\r\n\t\tgetHibernateTemplate().update(d);\r\n\t}",
"public void setDeptCode(Integer deptCode) {\n this.deptCode = deptCode;\n }",
"public void setDeptType(Long deptType) {\n this.deptType = deptType;\n }",
"public void setDepartmentCode(String departmentCode)\r\n\t{\r\n\t\tthis.departmentCode = departmentCode;\r\n\t}",
"@Override\n public Employee updateEmployeeDepartment(int employeeId, int departmentId) {\n return null;\n }",
"public void setDeptid(Integer deptid) {\n this.deptid = deptid;\n }",
"public Department getDepartment() {\n return department;\n }",
"public static void updateDept() {\n\t}",
"void setRoleDao(final RoleDao roleDao);",
"public void setUpDepartmentId(Long upDepartmentId) {\n this.upDepartmentId = upDepartmentId;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"@Override\n /*\n 插入数据\n */\n public void insertUserRoleDept(PmsUserRoleDept userRoleDept) {\n userRoleDept.setRoleDeptId(this.newId().intValue());\n this.execute(\"insertUserRoleDept\",userRoleDept);\n }",
"public void setDepartmentCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, DEPARTMENTCODE,value);\r\n\t}",
"public void setDept_name(java.lang.String dept_name) {\r\n this.dept_name = dept_name;\r\n }",
"@Override\n\tpublic void setDeptno(Integer deptno) {\n\t\tsuper.setDeptno(deptno);\n\t}",
"public String getDepartment(){\n\t\treturn departName;\n\t}",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public void setDepartmentName(String departmentName) {\n this.departmentName = departmentName;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"@Override\n\tpublic long getEmployeeDepartmentId() {\n\t\treturn _candidate.getEmployeeDepartmentId();\n\t}",
"public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}",
"public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}",
"public void setDept_code(java.lang.String dept_code) {\r\n this.dept_code = dept_code;\r\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public void setDepartement(Departement departement) {\n\t\tthis.departement = departement;\n\t}",
"public void updateDepartment(Department department) {\n\t\tgetHibernateTemplate().update(department);\n\t}",
"public synchronized String getDepartment()\r\n {\r\n return department;\r\n }",
"public void setDepartmentName(String departmentName)\r\n\t{\r\n\t\tthis.departmentName = departmentName;\r\n\t}",
"public int ModifyDepartment(int idDepart , String newName)\n\t{\n\t\tfor(Department depart : departments)\n\t\t{\n\t\t\tif(depart.getIdDepartment()==idDepart) depart.setNameDepartment(newName);\n\t\t}\n\t\treturn -1;\n\t}",
"public jkt.hms.masters.business.MasDepartment getDepartment() {\n\t\treturn department;\n\t}",
"public void apply()\r\n {\r\n try\r\n {\r\n UserService service = workflowFacade.getServiceFactory().getUserService();\r\n AdministrationService adminService = workflowFacade.getServiceFactory().getAdministrationService();\r\n if (!modifyMode)\r\n {\r\n if (service != null && departmentBean != null)\r\n {\r\n adminService.createDepartment(departmentBean.getId(), departmentBean.getName(), departmentBean\r\n .getDescription(), departmentBean.getParentDepartment(), departmentBean.getOrganization());\r\n }\r\n }\r\n else\r\n {\r\n if (selectedDepartment != null && departmentBean != null)\r\n {\r\n adminService.modifyDepartment(departmentBean.getOID(), departmentBean.getName(), departmentBean\r\n .getDescription());\r\n }\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n ExceptionHandler.handleException(e);\r\n }\r\n\r\n closePopup();\r\n ParticipantManagementBean.getInstance().getParticipantTree().refreshParticipantNode(parentNodeToRefresh,\r\n EnumSet.of(NODE_TYPE.DEPARTMENT, NODE_TYPE.DEPARTMENT_DEFAULT));\r\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"private String setDepartment() {\n\t\tSystem.out.println(\"Department codes\\n1 for Sales \\n2 for Development \"\n\t\t\t\t+ \"\\n3 for Accounting \\n0 for Other\\nEnter the department code: \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tint deptChoice = sc.nextInt();\n\t\tsc.close();\n\t\tif (deptChoice == 1) return \"sales\";\n\t\telse if (deptChoice == 2) return \"development\";\n\t\telse if (deptChoice == 3) return \"accounting\";\n\t\telse return \"other\";\n\t}",
"public final int getDepartmentId() {\n return departmentId;\n }",
"public void setDeptId(Integer deptId) {\r\n this.deptId = deptId;\r\n }",
"public String getDepartmentid() {\n return departmentid;\n }",
"public void setDeptLevel(Long deptLevel) {\n this.deptLevel = deptLevel;\n }",
"public void seteDeptid(Integer eDeptid) {\n this.eDeptid = eDeptid;\n }",
"public void setDoctor(Person d){\n this.doctor = d;\n }",
"public void setdeptName(String deptName) {\n\t\t_deptName = deptName;\n\t}",
"public void setDepartmentRank(int departmentRank)\r\n\t{\r\n\t\tthis.departmentRank = departmentRank;\r\n\t}",
"public void setDeptId(Long deptId) {\n this.deptId = deptId;\n }",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRole(java.lang.String value) {\n validate(fields()[6], value);\n this.role = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public static int selectDepartment() {\r\n\t\tSystem.out.println(\"ENTER THE DEPARTMENT\");\r\n\t\tSystem.out.println(\"1.MECH\");\r\n\t\tSystem.out.println(\"2.CIVIL\");\r\n\t\tSystem.out.println(\"3.CSE\");\r\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void setEmployeeDepartmentId(long employeeDepartmentId) {\n\t\t_candidate.setEmployeeDepartmentId(employeeDepartmentId);\n\t}",
"public int getDepartmentId() {\n return departmentId;\n }",
"public void setDeptCode(String deptCode) {\n this.deptCode = deptCode == null ? null : deptCode.trim();\n }",
"public void setDeptCode(String deptCode) {\n this.deptCode = deptCode == null ? null : deptCode.trim();\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"public void addDepartment(IBaseDTO dto) {\n\t\tSysDepartment sd=new SysDepartment();\n\t\t\n\t\tsd.setName((String)dto.get(\"name\"));\n\t\tsd.setParentId((String)dto.get(\"parentId\"));\n\t\tsd.setRemarks((String)dto.get(\"remark\"));\n\t\tsd.setTagShow((String)dto.get(\"tagShow\"));\n\t\tsd.setId(ks.getNext(\"sys_department\"));\n\t\t\n\t\tdao.saveEntity(sd);\n\t\tcts.reload();\n\t}"
] | [
"0.7578915",
"0.70743084",
"0.69754475",
"0.6973234",
"0.69308",
"0.6920539",
"0.6908442",
"0.68728954",
"0.682381",
"0.68007034",
"0.68007034",
"0.66497177",
"0.6463758",
"0.64611757",
"0.63486004",
"0.63383186",
"0.630787",
"0.6296762",
"0.61222863",
"0.6115765",
"0.6041686",
"0.60134405",
"0.60056245",
"0.60023165",
"0.60023165",
"0.60023165",
"0.6000952",
"0.5985047",
"0.5977959",
"0.59341216",
"0.5919995",
"0.59185475",
"0.5898174",
"0.58885664",
"0.58885664",
"0.58885664",
"0.58885664",
"0.58885664",
"0.58176",
"0.58176",
"0.58167017",
"0.57869935",
"0.5762125",
"0.57575876",
"0.57324094",
"0.57169014",
"0.5709733",
"0.5709321",
"0.57011205",
"0.56941855",
"0.56918365",
"0.5687143",
"0.56865215",
"0.5685157",
"0.5667024",
"0.5667024",
"0.5667024",
"0.5647319",
"0.56238925",
"0.55832636",
"0.55753815",
"0.55718577",
"0.5563915",
"0.55592734",
"0.55474114",
"0.55474114",
"0.55474114",
"0.5543925",
"0.55368066",
"0.55368066",
"0.55285966",
"0.5520875",
"0.5520875",
"0.5520875",
"0.55207515",
"0.5512476",
"0.5509522",
"0.5506172",
"0.5487244",
"0.5484678",
"0.54832655",
"0.54821604",
"0.546511",
"0.5464582",
"0.5454755",
"0.5452902",
"0.5447695",
"0.5444734",
"0.5434037",
"0.5423734",
"0.54222405",
"0.5417038",
"0.541477",
"0.5412362",
"0.54103744",
"0.54093313",
"0.54046595",
"0.54046595",
"0.5393362",
"0.5375906"
] | 0.7302688 | 1 |
Get the departmentId of the Role. | public Long getDepartmentId() {
return departmentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getDepartmentId() {\n return departmentId;\n }",
"@Override\n\tpublic long getEmployeeDepartmentId() {\n\t\treturn _candidate.getEmployeeDepartmentId();\n\t}",
"public java.lang.String getDepartmentId () {\r\n\t\treturn departmentId;\r\n\t}",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public String getId()\r\n {\r\n return departmentBean.getId();\r\n }",
"public Integer getIdRole() {\n\t\treturn idRole;\n\t}",
"public int getDepartmentId() {\n return departmentId;\n }",
"public Long getDeptId() {\n return deptId;\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\r\n return deptId;\r\n }",
"public Integer geteDeptId() {\n return eDeptId;\n }",
"public String getDepartmentid() {\n return departmentid;\n }",
"public String getDeptId() {\n return deptId;\n }",
"public String getDeptId() {\n return deptId;\n }",
"@Override\n\tpublic GappDepartment getDepartmentId(Integer id) {\n\t\treturn entityManager.find(GappDepartment.class, id);\n\t\t// return entityManager.createQuery(\"from GappUsers\",\n\t\t// GappUsers.class).getResultList();\n\t}",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\n return roleId;\n }",
"public Long getRoleId() {\r\n return roleId;\r\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getRoleId() {\n return roleId;\n }",
"public String getDepartmentCode()\r\n\t{\r\n\t\treturn getDepartmentCode( getSession().getSessionContext() );\r\n\t}",
"public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\n return roleId;\n }",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public Long getRoleId() {\n\t\treturn roleId;\n\t}",
"public Long getRoleid() {\n return roleid;\n }",
"public int getRoleId() {\r\n\t\treturn roleId;\r\n\t}",
"public Integer getRoleId() {\n\t\treturn roleId;\n\t}",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public String getDepartment() {\r\n\t\treturn department;\r\n\t}",
"public Integer getRoleid() {\r\n return roleid;\r\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getRoleid() {\n return roleid;\n }",
"public String getDepartmentCode() {\n\t\treturn departmentCode;\n\t}",
"@Override\n\tpublic long getEmployeeSubDepartmentId() {\n\t\treturn _candidate.getEmployeeSubDepartmentId();\n\t}",
"public Integer getRolePid() {\n return rolePid;\n }",
"public DepartmentModel getDepartmentKey()\r\n\t{\r\n\t\treturn this.m_departmentKey;\r\n\t}",
"public BigDecimal getRoleId() {\r\n return roleId;\r\n }",
"public String getDepartment() {\r\n return department;\r\n }",
"public List<JianliBean> SelectRoleDept() {\n\t\treturn jianliDao.SelectRoleDept();\r\n\t}",
"public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public String getDepartment() {\n return department;\n }",
"public synchronized String getDepartment()\r\n {\r\n return department;\r\n }",
"public String getEmployeeDepartment(){\n return profile.getDepartment();\n }",
"public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }",
"public Optional<Department> getDepartmentId(long departmentId) {\n\t\treturn departmentRepository.findById(departmentId);\n\t}",
"public Integer getRole() {\n\t\treturn role;\n\t}",
"public java.lang.Integer getDepartmentcode() {\n\treturn departmentcode;\n}",
"public String getTeacherRoleId() {\n return teacherRoleId;\n }",
"public EnumRoleEmploye getRole() {\r\n return role;\r\n }",
"public String getDepartment(){\n\t\treturn departName;\n\t}",
"public Integer getDeptCode() {\n return deptCode;\n }",
"public Long getParentDeptId() {\n return parentDeptId;\n }",
"public QName getPartnerRolePortType() {\r\n QName portType = null;\r\n if (getPartnerLinkType() != null) {\r\n portType = getDef().getPartnerRolePortType();\r\n }\r\n return portType;\r\n }",
"public String getDepartmentCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, DEPARTMENTCODE);\r\n\t}",
"@Override\n public Department getDepartment(int departmentId) {\n return null;\n }",
"com.google.cloud.dialogflow.v2beta1.Participant.Role getParticipantRole();",
"public String getDepartment() {\n return departmentField.getText();\n }",
"public Long getDeptType() {\n return deptType;\n }",
"String getRole();",
"String getRole();",
"public String getDepartmentName() {\n\t\treturn departmentName;\n\t}",
"public java.lang.String getRndDepartmentName() {\n return rndDepartmentName;\n }",
"public java.lang.Integer getCodDepartamentoProductor() {\n\t\treturn codDepartamentoProductor;\n\t}",
"public final String getDepartmentName() {\n return departmentName;\n }",
"public Optional<String> getRole() {\n return Optional.ofNullable(properties.getProperty(MESOS_ROLE));\n }",
"public String getProjectRole() {\n return this.projectRole;\n }",
"public Department getDepartmentById(Integer id);",
"public Long getDeptLevel() {\n return deptLevel;\n }",
"public Department findDepartment(Department department) {\n\t\treturn (Department)getHibernateTemplate().find(String.valueOf(department.getIdDepartment())).get(0);\n\t}",
"@Override\r\n\tpublic String employeeRole() {\n\t\treturn ((WebUserRole) webContext.get()).getEmployee();\r\n\t}",
"public String getRole() {\r\n return role;\r\n }",
"public java.lang.String getRole() {\n return role;\n }",
"public void setDepartmentId(int value) {\n this.departmentId = value;\n }",
"public java.lang.String getRole() {\n return role;\n }"
] | [
"0.7081515",
"0.6987943",
"0.6753446",
"0.6737276",
"0.6737276",
"0.6737276",
"0.6675577",
"0.66482276",
"0.6510966",
"0.64725554",
"0.6465916",
"0.6465916",
"0.6425188",
"0.6425188",
"0.6425188",
"0.6425188",
"0.64031273",
"0.63334596",
"0.6319935",
"0.62648535",
"0.62648535",
"0.61823314",
"0.61673075",
"0.61673075",
"0.61673075",
"0.61673075",
"0.6164474",
"0.616379",
"0.616379",
"0.616379",
"0.6141727",
"0.613887",
"0.6093755",
"0.6093755",
"0.6093755",
"0.6093755",
"0.6093755",
"0.6093755",
"0.6093755",
"0.6093755",
"0.60919744",
"0.60421604",
"0.6039769",
"0.60287374",
"0.6009203",
"0.60017484",
"0.60017484",
"0.60017484",
"0.5993018",
"0.5989556",
"0.5989556",
"0.5989556",
"0.59525865",
"0.591467",
"0.590999",
"0.59031004",
"0.58996624",
"0.58667374",
"0.583809",
"0.58125097",
"0.57903904",
"0.57903904",
"0.57903904",
"0.57903904",
"0.57903904",
"0.5789094",
"0.57848597",
"0.5765645",
"0.575074",
"0.5720392",
"0.5691545",
"0.5686236",
"0.5675798",
"0.56719494",
"0.5668723",
"0.5652964",
"0.56312555",
"0.5628634",
"0.5617557",
"0.5615398",
"0.56094545",
"0.55961174",
"0.5576099",
"0.5576099",
"0.5566837",
"0.55609626",
"0.5549528",
"0.5528063",
"0.5517931",
"0.54920197",
"0.54910886",
"0.548404",
"0.54795986",
"0.5476831",
"0.54707026",
"0.5468473",
"0.5467347",
"0.5464733"
] | 0.68020797 | 4 |
Set the departmentId of the Role. | public void setDepartmentId(Long departmentId) {
this.departmentId = departmentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setEmployeeDepartment(int employeeId, int departmentId) {\n\n }",
"public void setDepartmentId(int value) {\n this.departmentId = value;\n }",
"@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }",
"public final void setDepartmentId(final Integer dId) {\n this.departmentId = dId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"public void setDepartment(Department d) {\r\n department = d;\r\n }",
"public void setPortalPriv(Connection dbConn, int id, String role,\n String user, String dept) throws Exception {\n Statement ps = null;\n try {\n String sql = \"update PORTAL set DEPT_ID = '\" + dept\n + \"' , PRIV_ID = '\" + role + \"' ,USER_ID = '\" + user\n + \"' where SEQ_ID=\" + id;\n ps = dbConn.createStatement();\n ps.executeUpdate(sql);\n } catch (Exception ex) {\n throw ex;\n } finally {\n T9DBUtility.close(ps, null, log);\n }\n }",
"@Override\n\tpublic void setEmployeeDepartmentId(long employeeDepartmentId) {\n\t\t_candidate.setEmployeeDepartmentId(employeeDepartmentId);\n\t}",
"public void setDeptId(Integer deptId) {\r\n this.deptId = deptId;\r\n }",
"public void SetDepartmentID(String DepartmentID)\n {\n this.DepartmentID=DepartmentID;\n }",
"public void setDepartment(Department department) {\n this.department = department;\n }",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"public void setDeptId(Long deptId) {\n this.deptId = deptId;\n }",
"public void setDepartmentId (java.lang.String departmentId) {\r\n\t\tthis.departmentId = departmentId;\r\n\t}",
"public void assignDepartment(String departmentName);",
"@Override\n public Employee updateEmployeeDepartment(int employeeId, int departmentId) {\n return null;\n }",
"public final int getDepartmentId() {\n return departmentId;\n }",
"public void setDepartmentid(String departmentid) {\n this.departmentid = departmentid == null ? null : departmentid.trim();\n }",
"public void setUpDepartmentId(Long upDepartmentId) {\n this.upDepartmentId = upDepartmentId;\n }",
"public void seteDeptId(Integer eDeptId) {\n this.eDeptId = eDeptId;\n }",
"@Override\n /*\n 插入数据\n */\n public void insertUserRoleDept(PmsUserRoleDept userRoleDept) {\n userRoleDept.setRoleDeptId(this.newId().intValue());\n this.execute(\"insertUserRoleDept\",userRoleDept);\n }",
"void setRoleDao(final RoleDao roleDao);",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public void setDepartment(String department) {\n if(department==null){\n department = \"\";\n }\n this.department = department;\n }",
"public void setRoleId(Long roleId) {\r\n this.roleId = roleId;\r\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public void setRoleId(Integer roleId) {\r\n this.roleId = roleId;\r\n }",
"public void setDepartment(String department) {\n this.department = department;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }",
"public void setDeptId(String deptId) {\n this.deptId = deptId == null ? null : deptId.trim();\n }",
"public void setDeptId(String deptId) {\n this.deptId = deptId == null ? null : deptId.trim();\n }",
"public int getDepartmentId() {\n return departmentId;\n }",
"public void setRoleId(int roleId) {\r\n\t\tthis.roleId = roleId;\r\n\t}",
"public void setDepartmentcode(java.lang.Integer newDepartment) {\n\tdepartmentcode = newDepartment;\n}",
"public void setDepartment(String department) {\r\n\t\tthis.department=department;\r\n\t}",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }",
"public void setDepartment(String department) {\r\n\t\tthis.department = department;\r\n\t}",
"public void setDepartment(String dept) {\r\n\t\tdepartment = dept;\r\n\t}",
"@Override\n\tpublic long getEmployeeDepartmentId() {\n\t\treturn _candidate.getEmployeeDepartmentId();\n\t}",
"public int ModifyDepartment(int idDepart , String newName)\n\t{\n\t\tfor(Department depart : departments)\n\t\t{\n\t\t\tif(depart.getIdDepartment()==idDepart) depart.setNameDepartment(newName);\n\t\t}\n\t\treturn -1;\n\t}",
"public java.lang.String getDepartmentId () {\r\n\t\treturn departmentId;\r\n\t}",
"public void setRoleId(String roleId) {\n this.roleId = roleId;\n }",
"public void setRoleId(String roleId)\r\n\t{\r\n\t\tthis.roleId = roleId;\r\n\t}",
"public void updateDepartment(IBaseDTO dto) {\n\t\tString id=(String)dto.get(\"id\");\n\t\tSysDepartment sd=(SysDepartment)dao.loadEntity(SysDepartment.class,id);\n\t\tif(sd!=null)\n\t\t{\n\t\t\t\n\t\t\tsd.setName((String)dto.get(\"name\"));\n\t\t\tsd.setParentId((String)dto.get(\"parentId\"));\n\t\t\tsd.setRemarks((String)dto.get(\"remark\"));\n\t\t\tsd.setTagShow((String)dto.get(\"tagShow\"));\n\t\t\tsd.setAdmin((String)dto.get(\"admin\"));\n\t\t}\n\t\tcts.reload();\n\t\tdao.saveEntity(sd);\n\t}",
"public String getId()\r\n {\r\n return departmentBean.getId();\r\n }",
"public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"public void setRoleId(String roleId) {\n this.roleId = roleId == null ? null : roleId.trim();\n }",
"public void setRoleId(String roleId) {\n this.roleId = roleId == null ? null : roleId.trim();\n }",
"public void setDeptid(Integer deptid) {\n this.deptid = deptid;\n }",
"public String getDepartmentid() {\n return departmentid;\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public void setRoleId(Long roleId) {\n\t\tthis.roleId = roleId;\n\t}",
"public void setDepartment(jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"void modifyDepartment(Department dRef);",
"public void setRoleId(BigDecimal roleId) {\r\n this.roleId = roleId;\r\n }",
"public void setDept(springboot_academic_system.department.DatabaseDepartment dept) {\n this.dept = dept;\n this.deptName = dept.getDeptName();\n }",
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"public void setRoleId(Integer roleId) {\n\t\tthis.roleId = roleId;\n\t}",
"public void setDepartment(String department) {\n this.department = department == null ? null : department.trim();\n }",
"public void setDeptCode(Integer deptCode) {\n this.deptCode = deptCode;\n }",
"public Long getDeptId() {\n return deptId;\n }",
"public void setDepartments(DepartmentAccessBean newDeparments) throws Exception {\n\tif (newDeparments == null) {\n\t\tdepartmentcode = null;\n\t\tdepartmentname = \"\";\n\t}\n\telse {\n\t\tdepartmentcode = new Integer(newDeparments.getDivision());\n\t\tdepartmentname = newDeparments.getName();\n\t}\n}",
"public void setDepartmentRank(int departmentRank)\r\n\t{\r\n\t\tthis.departmentRank = departmentRank;\r\n\t}",
"public void setRole(String role)\n {\n _role=role;\n }",
"@Override\n\tpublic void setDept(Dept dept) {\n\t\tsuper.setDept(dept);\n\t}",
"public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }",
"public void setDepartmentCode(final String value)\r\n\t{\r\n\t\tsetDepartmentCode( getSession().getSessionContext(), value );\r\n\t}",
"public void setRoleId(String roleId) {\n\t\tthis.role_id = roleId;\n\t}",
"public Integer getDeptId() {\r\n return deptId;\r\n }",
"public void setRole(EnumRoleEmploye role) {\r\n this.role = role;\r\n }",
"public Department (java.lang.Integer id) {\n\t\tsuper(id);\n\t}",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }",
"public Integer getDeptId() {\n return deptId;\n }"
] | [
"0.691299",
"0.6857929",
"0.672656",
"0.64413905",
"0.63932174",
"0.63932174",
"0.63932174",
"0.63667727",
"0.63667727",
"0.6273688",
"0.6156782",
"0.61247903",
"0.61205834",
"0.60962135",
"0.60575753",
"0.60456246",
"0.60456246",
"0.60456246",
"0.60456246",
"0.6026844",
"0.601852",
"0.60131776",
"0.59078616",
"0.5898677",
"0.5867927",
"0.58559513",
"0.5830247",
"0.5827499",
"0.5826801",
"0.579006",
"0.579006",
"0.579006",
"0.5765243",
"0.57435393",
"0.5714716",
"0.5714716",
"0.5714716",
"0.5695074",
"0.56936574",
"0.5668147",
"0.5668147",
"0.5668147",
"0.5668147",
"0.56544584",
"0.56544584",
"0.563742",
"0.56294054",
"0.56234807",
"0.56198084",
"0.56189084",
"0.56189084",
"0.56189084",
"0.56189084",
"0.56189084",
"0.56189084",
"0.56189084",
"0.56189084",
"0.5578306",
"0.5540738",
"0.5518053",
"0.55055636",
"0.5504043",
"0.549982",
"0.54867226",
"0.54836273",
"0.5478562",
"0.54719216",
"0.54719216",
"0.5468294",
"0.5468294",
"0.54507625",
"0.5446245",
"0.54276764",
"0.54276764",
"0.5401203",
"0.53741616",
"0.53517985",
"0.5348656",
"0.5337614",
"0.53341293",
"0.5322867",
"0.531402",
"0.52704024",
"0.5260453",
"0.5257637",
"0.52576166",
"0.5241073",
"0.5237137",
"0.52357036",
"0.5232595",
"0.52254444",
"0.522471",
"0.52187955",
"0.52111155",
"0.519045",
"0.519045",
"0.519045",
"0.519045"
] | 0.6452067 | 5 |
Get the description of the role. | public String getDescription() {
return description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRoleDesc() {\n return roleDesc;\n }",
"public String getRoleDesc() {\n return roleDesc;\n }",
"public String getRoleDesc() {\r\n return roleDesc;\r\n }",
"public String getRoledescription() {\n return roledescription;\n }",
"public String getRoleDesc() {\n return (String) getAttributeInternal(ROLEDESC);\n }",
"public String[] getNameAndDescription(){\n return roleDescriptions.get(getRole());\n }",
"public String getRolesDescripcion() throws DataStoreException {\r\n return getString(ROLES_DESCRIPCION);\r\n }",
"public java.lang.String getRole() {\n return role;\n }",
"@Override\n public String toString() {\n return Role.class + \"[id=\" + this.id + \",desc=\" + this.getName() + \"]\";\n }",
"public java.lang.String getRole() {\n return role;\n }",
"public String getRole() {\r\n return role;\r\n }",
"public String getRole() {\n return this.role;\n }",
"public String getRole()\n\t{\n\t\treturn role;\n\t}",
"@Override\n public String toString(){\n return role;\n }",
"public String getDescription() {\n\t\tLOGGER.debug(\"SecurityObject#getDescription [description=\" + this.description + \"]\");\n\n\t\treturn this.description;\n\t}",
"String getRole();",
"String getRole();",
"String getRoleName();",
"public String getRole() {\r\n\t\treturn role;\r\n\t}",
"public String getRole() {\n\t\t\treturn role;\n\t\t}",
"public void setRoleDesc(String roleDesc) {\n this.roleDesc = roleDesc;\n }",
"@Override\n\tpublic String getRole() {\n\t\treturn role;\n\t}",
"public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }",
"public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }",
"public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\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() {\n return (desc);\n }",
"public static String roleDescription(String role){\n if(role.equals(percival)){\n return \"You are Percival. Your goal is to try to protect the Merlin! \\n\"\n + \"Merlin will either be: \\n\";\n } else if(role.equals(morgana)){\n return \"You are Morgana. Pretend to be like Merlin to trick Percival onto your side! \\n\"\n + \"The villians this game will be: \\n\";\n } else if(role.equals(merlin)){\n return \"You are Merlin. Try to win the game without revealing yourself! \\n\"\n + \"The villians this game will be (minus Mordred if he is in): \\n\";\n } else if(role.equals(mordred)){\n return \"You are Mordred. Merlin doesn't know who you are, make use of that fact to make the villians win! \\n\"\n + \"The villians this game will be: \\n\";\n } else if(role.equals(assassin)){\n return \"You are Assassin. Try to assassinate Merlin! \\n\"\n + \"The villians this game will be: \\n\";\n } else if(role.equals(goodling)){\n return \"You are a Loyal Servant of Arthur. Use the power of democracy to make the good guys win! \\n\";\n } else if (role.equals(badling)){\n return \"You are a Minion of Mordred. Hide yourself amongst the Loyal Servants and make sure they lose! \\n\"\n + \"The villians this game will be: \\n\";\n } else {\n return \"This message should not be appearing. Sorry there seems to be a bug. D:\";\n }\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n if (roleBuilder_ == null) {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n } else {\n return roleBuilder_.getMessage();\n }\n }",
"@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}",
"public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }",
"public String getDescription() {\n\t\treturn this.description;\n\t}",
"public String getDescription () {\n return description;\n }",
"public String getDescription()\r\n\t{\r\n\t\treturn description;\r\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\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getRole() { return this.role; }",
"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\t{\n\t\treturn description;\n\t}",
"public String getDescription() {\n\n return this.description;\n }",
"public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }",
"String roleName();",
"public String getDescription() {\n return getString(KEY_DESCRIPTION);\n }",
"public String getDescription()\n {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public String getDescription()\n {\n return description;\n }",
"public final String getDescription() {\n return description;\n }",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n\t\treturn description;\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 String getDescription() {\r\n\t\treturn description;\r\n\t}",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String getDescription() {\n return description;\n }",
"public java.lang.String 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 }"
] | [
"0.86924064",
"0.86924064",
"0.86699003",
"0.8584775",
"0.83035666",
"0.78303283",
"0.7763359",
"0.72650796",
"0.7221797",
"0.720785",
"0.7112796",
"0.70648986",
"0.7016653",
"0.70082146",
"0.6989611",
"0.69872975",
"0.69872975",
"0.696672",
"0.6966308",
"0.6953026",
"0.6947404",
"0.6946734",
"0.6944749",
"0.69444704",
"0.6944129",
"0.6939251",
"0.6935223",
"0.6934899",
"0.69184756",
"0.691156",
"0.6910611",
"0.6908082",
"0.6905488",
"0.69022024",
"0.68925285",
"0.68925285",
"0.68925285",
"0.68925285",
"0.68882495",
"0.6882281",
"0.6882281",
"0.6882281",
"0.6882281",
"0.6882281",
"0.6879711",
"0.687674",
"0.6867397",
"0.68672776",
"0.6866357",
"0.68627393",
"0.6856247",
"0.6855859",
"0.68522114",
"0.6850599",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6846484",
"0.6845268",
"0.6845268",
"0.6845268",
"0.6845268",
"0.6845268",
"0.6845268",
"0.6845268",
"0.6845268",
"0.684483",
"0.684483",
"0.684483",
"0.684483",
"0.684483",
"0.684483",
"0.684483",
"0.684483",
"0.684483",
"0.68415153",
"0.68415153",
"0.68415153",
"0.68415153",
"0.68415153",
"0.68415153"
] | 0.0 | -1 |
Set the description of the role. | public void setDescription(String description) {
this.description = description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoleDesc(String value) {\n setAttributeInternal(ROLEDESC, value);\n }",
"public void setRoleDesc(String roleDesc) {\n this.roleDesc = roleDesc;\n }",
"public void setRoleDesc(String roleDesc) {\n this.roleDesc = roleDesc == null ? null : roleDesc.trim();\n }",
"public void setRoleDesc(String roleDesc) {\r\n this.roleDesc = roleDesc == null ? null : roleDesc.trim();\r\n }",
"public void setDescription(String description) {\n\t\tLOGGER.debug(\"SecurityObject#setDescription [description=\" + description + \"]\");\n\n\t\tthis.description = description;\n\t}",
"public SecurityIdentityType<T> setDescription(String description)\n {\n childNode.create(\"description\").text(description);\n return this;\n }",
"public void setDescription(String description) {\n mDescription = description;\n }",
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"protected void setDescription(String description) {\n this.description = description;\n }",
"void setDescription(final String description);",
"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(final String description);",
"public void setDescription(final 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) {\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 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 {\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)\n {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }",
"void setDescription(java.lang.String description);",
"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(final String description) {\n\t\tthis.description = description;\n\t}",
"public String getRoleDesc() {\r\n return roleDesc;\r\n }",
"protected void setDescription(final 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)\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);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public String getRoleDesc() {\n return roleDesc;\n }",
"public String getRoleDesc() {\n return roleDesc;\n }",
"public void setRoledescription(String roledescription) {\n this.roledescription = roledescription == null ? null : roledescription.trim();\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(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.79152316",
"0.7528512",
"0.73555875",
"0.7336452",
"0.7238948",
"0.7193148",
"0.7171225",
"0.7169808",
"0.7167827",
"0.7155434",
"0.7152873",
"0.7142934",
"0.7132631",
"0.7128774",
"0.71182406",
"0.71150684",
"0.71150684",
"0.71150684",
"0.71150684",
"0.71150684",
"0.71150684",
"0.71150684",
"0.711293",
"0.711293",
"0.711293",
"0.711293",
"0.711293",
"0.7107473",
"0.7107473",
"0.7107473",
"0.7106992",
"0.7105427",
"0.7103811",
"0.7102455",
"0.70988154",
"0.70963997",
"0.70963997",
"0.70963997",
"0.70963997",
"0.70963997",
"0.7093081",
"0.708338",
"0.7081517",
"0.70801795",
"0.7078187",
"0.7078187",
"0.7078187",
"0.70749694",
"0.7069856",
"0.7069856",
"0.7069137",
"0.7069137",
"0.7069137",
"0.7069137",
"0.7069137",
"0.70691156",
"0.70691156",
"0.70689493",
"0.7066873",
"0.70631015",
"0.70631015",
"0.70631015"
] | 0.7078969 | 80 |
Get the permissionList of the role. | public List<Permission> getPermissionList() {
return permissionList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Permission> getPermissions();",
"java.util.List<java.lang.String>\n getPermissionsList();",
"public com.google.protobuf.ProtocolStringList\n getPermissionsList() {\n permissions_.makeImmutable();\n return permissions_;\n }",
"public com.google.protobuf.ProtocolStringList\n getPermissionsList() {\n return permissions_;\n }",
"java.util.List<Role>\n getRolesList();",
"java.util.List<Role>\n getRolesList();",
"List<RolePermission> findByRoleId(Long roleId);",
"public List<String> getPermissions() {\n return this.permissions;\n }",
"public List<String> getPermissions() {\n AppMethodBeat.m2504i(92672);\n List permissions = this.properties.getPermissions();\n AppMethodBeat.m2505o(92672);\n return permissions;\n }",
"public List getAllowedRolesList() {\n if ( StringUtils.isBlank(this.allowedRoles) ) {\n return null;\n }\n if ( this.allowedRolesList == null ) {\n this.allowedRolesList = new ArrayList();\n final StringTokenizer tokenizer = new StringTokenizer(this.allowedRoles, \",\");\n while ( tokenizer.hasMoreElements() ) {\n String token = (String)tokenizer.nextElement();\n this.allowedRolesList.add(token);\n }\n if ( this.allowedRolesList.size() == 0 ) {\n this.allowedRoles = null;\n this.allowedRolesList = null;\n }\n }\n return this.allowedRolesList;\n }",
"@GetMapping(\"/permissions\")\r\n public ResultJson<RolePermissionView> getPermissionListByRole(\r\n @RequestParam(\"roleid\") final Long roleid) {\r\n if (roleid.longValue() < 0) {\r\n return ResultUtil.getResult(ResultCodePermission.RESULT_CODE_24001200);\r\n }\r\n\r\n final RolePermissionView mvList =\r\n permissionService.getModulePermissionViewByRoleid(roleid);\r\n return ResultUtil.getResult(ResultCodeSystem.RESULT_CODE_0, mvList,\r\n ResultCodeSystem.SELECT_SUCCESS);\r\n }",
"public List<Permission> getPermissions()\r\n/* */ {\r\n/* 228 */ return this.permissions;\r\n/* */ }",
"List<Role> getRoles();",
"public List<Role> getGrantedRoles(Permission permission) {\n List<Role> roles = new ArrayList<>();\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet resultSet = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.GET_GRANTED_ROLES_QUERY);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n resultSet = ps.executeQuery();\n while (resultSet.next()) {\n roles.add(new Role(resultSet.getString(\"ROLE_ID\"), \"\"));\n }\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to get roles assigned for the permission \" + permission + \".\", e);\n } finally {\n closeConnection(conn, ps, resultSet);\n }\n return roles;\n }",
"public List<Permission> queryAllPermission() {\n\t\treturn permissionMapper.queryAllPermission();\n\t}",
"public ArrayList<Permission> getPermissions()\r\n {\r\n return this.securityInfo.getPermissions();\r\n }",
"PermissionInfo getRolePermissions(HibBaseElement element, InternalActionContext ac, String roleUuid);",
"@Override\r\n\tpublic List<PermissionBean> listAllPermission() {\n\t\treturn permissionDao.listAllPermission();\r\n\t}",
"public List<Permission> getUserPermission() {\n\t\treturn securityContext.getAuthorizationContext().getPermissions();\n\t}",
"public Permission[] getPermissionsField() {\n\treturn super.getPermissions(null);\n }",
"List<String> getRoles();",
"public RoleList getRoles() {\n return roleList;\n }",
"java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList();",
"java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList();",
"public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }",
"public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }",
"public com.google.protobuf.ProtocolStringList getIncludedPermissionsList() {\n includedPermissions_.makeImmutable();\n return includedPermissions_;\n }",
"@Override\n\tpublic List<Role> getRoleList() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM role\", new RoleRowMapper());\n\t}",
"@Override\r\n\tpublic List<Role> getRoleList(int level) {\n\t\treturn roleDao.getRoleList(level);\r\n\t}",
"public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}",
"public com.google.protobuf.ProtocolStringList getIncludedPermissionsList() {\n return includedPermissions_;\n }",
"public java.util.List<org.eclipse.stardust.engine.api.runtime.Permission>\n getPermissions()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public PermissionAssignment[] getPermissionAssignments(Role role)\n {\n synchronized(assignmentsByRole)\n {\n Set currentAssignments = buildAssignmentSet(role);\n PermissionAssignment[] result = new PermissionAssignment[currentAssignments.size()];\n currentAssignments.toArray(result);\n return result;\n }\n }",
"@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }",
"@Override\n public java.util.List<Role> getRolesList() {\n return roles_;\n }",
"@NonNull\n public List<String> getAllowlistedRestrictedPermissions() {\n return mAllowlistedRestrictedPermissions;\n }",
"public static List<Role> getList() {\n List<Role> result = new ArrayList<Role>(values().length);\n result.addAll(Arrays.asList(values()));\n return result;\n }",
"public org.dcache.srm.v2_2.TPermissionReturn[] getPermissionArray() {\n return permissionArray;\n }",
"public boolean [] getPermissions()\n\t{\n\t\treturn this.permissions;\n\t}",
"@Override\r\n\tpublic List<Integer> queryPermissionsByRoleid(Integer roleid) {\n\t\treturn permissionDao.queryPermissionsByRoleid(roleid);\r\n\t}",
"Collection <Permission> findByRole(Integer accountId,Integer role);",
"public List<RoleDto> getRolesList() {\n return roleDBManager.fetchRolesList();\n }",
"public java.util.List<xbean.DeletedRole> getRoles();",
"public List<Role> getAllRoles();",
"@NonNull\n public List<String> getGrantedPermissions() {\n return mGrantedPermissions;\n }",
"public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n if (rolesBuilder_ != null) {\n return rolesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(roles_);\n }\n }",
"public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n if (rolesBuilder_ != null) {\n return rolesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(roles_);\n }\n }",
"@Override\r\n\tpublic List<? extends Role> getRoles() {\n\r\n\t\tif (this.roles == null)\r\n\t\t\treturn null;\r\n\r\n\t\treturn new ArrayList(this.roles);\r\n\t\t// ArrayList<MyRole> arrayList = new ArrayList<MyRole>();\r\n\t\t// arrayList.addAll(roles);\r\n\t\t//\r\n\t\t// return arrayList;\r\n\t}",
"public List<Integer> queryAllPermissionByRoleId(Integer roleid) {\n\t\treturn permissionMapper.queryAllPermissionByRoleId(roleid);\n\t}",
"@Override\n\tpublic List<HashMap<String, Object>> findPermissionByRole(Integer roleid) {\n\t\treturn roleMapper.findPermissionByRole(roleid);\n\t}",
"@PermitAll\n @Override\n public List<Role> getRoles() {\n return getRepository().getEntityList(Role.class);\n }",
"@Override\n\tpublic List<RoleListBean_R001> getRoleList() {\n\t\treturn this.iRoleListRepository.getRoleBusiness();\n\t}",
"@Override\r\n\tpublic List<Permission> getAllPermissions() {\n\t\treturn null;\r\n\t}",
"public Set<Permission> getPermissions() {\n return permissions;\n }",
"public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"administrator\");\n\troles.add(\"StorageManager\");\n\treturn roles;\n}",
"@Override\n\tpublic List<Role> getCanCreateRoleList(String roleId) {\n\t\tString sqlString = \"SELECT role.* from can_create_roles LEFT JOIN role on can_create_roles.CAN_CREATE_ROLE=role.ROLE_ID where can_create_roles.ROLE_ID=?\";\n\t\treturn this.jdbcTemplate.query(sqlString, new RoleRowMapper(), roleId);\n\t}",
"Collection<Role> getRoles();",
"public List<String> getPermission(int userId, String crp);",
"public List<Permission> getPermissions(String objectId) throws UserManagementException;",
"@Override\n\tpublic List<Map<String, Object>> getRole() {\n\t\treturn this.RoleDao.getRole();\n\t}",
"@Override\n public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n return roles_;\n }",
"@Override\n public java.util.List<? extends RoleOrBuilder>\n getRolesOrBuilderList() {\n return roles_;\n }",
"List<BillingPermissionsProperties> permissions();",
"public static List<AngularPermission> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@Override\r\n\tpublic List<RolePermission> selectByRoleId(BigInteger roleId) {\n\t\treturn rolePermissionMapper.selectByRoleId(roleId);\r\n\t}",
"@Override\n\tpublic List<RoleUtilisateur> listRoleUtilisateur() {\n\t\treturn roleUtilisateurDAO.listRoleUtilisateur();\n\t}",
"@Override\n\tpublic List<UPermission> listChild() {\n\t\treturn roleMapper.listChild();\n\t}",
"@Override\r\n\tpublic List<Permission> queryAll() {\n\t\treturn permissionDao.queryAll();\r\n\t}",
"@Transient\n public List<LabelValue> getRoleList() {\n List<LabelValue> userRoles = new ArrayList<LabelValue>();\n\n if (this.roles != null) {\n for (Role role : roles) {\n // convert the user's roles to LabelValue Objects\n userRoles.add(new LabelValue(role.getName().substring(5), role.getName()));\n }\n }\n\n return userRoles;\n }",
"public List<SecRole> getAllRoles();",
"public Permissions permissions() {\n return this.innerProperties() == null ? null : this.innerProperties().permissions();\n }",
"public List<String> getAuthorizedCollections(RoleType role) {\n return findValuesFromAuthorizationData(PROT_ELEM_TRIAL_DATA_PROVENANCE,\n PROT_ELEM_PROJECT,\n role);\n }",
"public List<Role> getAllRole() {\n\t\treturn (List<Role>) roleDao.findAll();\n\t}",
"public List<Permission> getPermissions(User user) throws UserManagementException;",
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Permissions getPermissions() {\r\n return permissions;\r\n }",
"public Collection<? extends GrantedAuthority> getAuthorities(Role role) {\r\n\t\tString ROLE_PREFIX = \"ROLE_\";\r\n List<GrantedAuthority> list = new ArrayList<GrantedAuthority>();\r\n list.add(new SimpleGrantedAuthority(ROLE_PREFIX + role.getName()));\r\n return list;\r\n }",
"List<String> getAvailablePermissions() throws GWTJahiaServiceException;",
"@Override\n\tpublic List<PermissionDto> getPermission() {\n\t\tList<PermissionDto> dto = permissionRepository.findAll().stream().map(permission -> {\n\t\t\tPermissionDto permissionDto = new PermissionDto();\n\t\t\tBeanUtils.copyProperties(permission, permissionDto);\n\t\t\treturn permissionDto;\n\t\t}).collect(Collectors.toList());\n\t\treturn dto;\n\t}",
"public ArrayList<Role> getRoles()\r\n {\r\n return this.securityInfo.getRoles();\r\n }",
"public TPermissionMode getUserPermissionArray() {\n\n\t\treturn otherPermission;\n\t}",
"@Override\r\n public List<Role> getRoles() {\r\n return roles;\r\n }",
"public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"ArendaMainEconomist\");\n\troles.add(\"ArendaEconomist\");\n\troles.add(\"administrator\");\n\treturn roles;\n}",
"public RoleElements getRoleAccess() {\n\t\treturn pRole;\n\t}",
"@Override\n public Collection<WegasPermission> getRequieredUpdatePermission(RequestContext context) {\n return this.getState().getRequieredUpdatePermission(context);\n }",
"public ArrayList<Role> getRole() {\n\t\tArrayList<Role> list = new ArrayList<Role>();\n\t\tString sql = \"select * from role;\";\n\t\tConnection conn = new DBUtilFactory().getConn();\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tRole role = new Role();\n\t\t\t\t// stupid set method......\n\t\t\t\trole.setRole_describe(rs.getString(\"role_describe\"));\n\t\t\t\trole.setRole_id(rs.getInt(\"role_id\"));\n\t\t\t\trole.setRole_power(rs.getInt(\"role_power\"));\n\t\t\t\tlist.add(role);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tclearUp(conn);\n\t\t}\n\t\treturn list;\n\t}",
"@NotNull\r\n Collection<String> getRoles();",
"public java.util.List<Role.Builder>\n getRolesBuilderList() {\n return getRolesFieldBuilder().getBuilderList();\n }",
"public java.util.List<Role.Builder>\n getRolesBuilderList() {\n return getRolesFieldBuilder().getBuilderList();\n }",
"public Enumeration permissions();",
"@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}",
"public Enumeration elements()\n {\n return m_permissions.elements();\n }",
"@Override\n\tpublic List<IRole> getRoles() {\n\t\treturn getInnerObject().getRoles();\n\t}",
"@Override\n\tpublic List<ShiroRolesPermissionsPoEntity> findAll() {\n\t\treturn null;\n\t}",
"List<Permission> selectAll();",
"public List<Permission> getPermissionsPending(String objectId) throws UserManagementException;",
"public Collection<Role> getRoles() {\n return Collections.unmodifiableCollection(roles);\n }",
"public LiveData<List<UriPermissionUse>> getAllUriPermissions() {\n return uriPermissionUseDao.loadAll();\n }",
"public Set<PosixFilePermission> permissions() {\n List<PosixFilePermission> listPermissions = new ArrayList<PosixFilePermission>();\n listPermissions.add(PosixFilePermission.OWNER_READ);\n listPermissions.add(PosixFilePermission.OWNER_WRITE);\n listPermissions.add(PosixFilePermission.OWNER_EXECUTE);\n listPermissions.add(PosixFilePermission.GROUP_READ);\n listPermissions.add(PosixFilePermission.GROUP_WRITE);\n listPermissions.add(PosixFilePermission.GROUP_EXECUTE);\n listPermissions.add(PosixFilePermission.OTHERS_READ);\n listPermissions.add(PosixFilePermission.OTHERS_WRITE);\n listPermissions.add(PosixFilePermission.OTHERS_EXECUTE);\n\n // We get the permission string and we create it by looking up\n String permissionString = this.attrs.getPermissionsString();\n Set<PosixFilePermission> permissions = new HashSet<PosixFilePermission>();\n char nothing = \"-\".charAt(0);\n // We skip the first character as it's the file type\n for (int i=1; i< permissionString.length();i++) {\n if (permissionString.charAt(i) != nothing) {\n permissions.add(listPermissions.get(i-1));\n }\n }\n\n return permissions;\n\n }",
"@Override\n\tpublic List<UPermission> listParent() {\n\t\treturn roleMapper.listParent();\n\t}",
"public List<String> getUsedPermissions() {\n final List<String> result = new LinkedList<String>();\n for (final Element child : manifestElement.getChildren(ELEMENT_USES_PERMISSION)) {\n final String permission = child.getAttributeValue(ATTRIBUTE_NAME);\n if (permission != null) {\n result.add(permission);\n }\n }\n\n return result;\n }"
] | [
"0.75278986",
"0.73272145",
"0.7118999",
"0.71121985",
"0.7012331",
"0.7012331",
"0.6841668",
"0.67842036",
"0.6704066",
"0.6656708",
"0.66116995",
"0.6600489",
"0.65899765",
"0.6554264",
"0.65461046",
"0.6534594",
"0.65331215",
"0.65274656",
"0.6522466",
"0.6500477",
"0.64601374",
"0.6455292",
"0.64499277",
"0.64499277",
"0.6441527",
"0.6441527",
"0.6390284",
"0.63769364",
"0.63529617",
"0.6345336",
"0.63450503",
"0.6343307",
"0.6333071",
"0.6325356",
"0.6325356",
"0.63135767",
"0.6308591",
"0.6282736",
"0.6273788",
"0.62652105",
"0.62587285",
"0.6249508",
"0.6244676",
"0.6232131",
"0.622514",
"0.6173463",
"0.6173463",
"0.61636823",
"0.6139853",
"0.61381924",
"0.61373013",
"0.61322814",
"0.6124563",
"0.61089027",
"0.6106892",
"0.6085042",
"0.60843706",
"0.60835564",
"0.60772246",
"0.60638076",
"0.60518026",
"0.60518026",
"0.6048214",
"0.604588",
"0.60388714",
"0.59763604",
"0.5974488",
"0.5969425",
"0.5965063",
"0.5950826",
"0.58930594",
"0.58926743",
"0.58586705",
"0.5858543",
"0.58483946",
"0.5846906",
"0.5831964",
"0.5813515",
"0.57845235",
"0.57837266",
"0.57818115",
"0.577981",
"0.57530856",
"0.5744772",
"0.5741857",
"0.5738056",
"0.57377565",
"0.57377565",
"0.572987",
"0.5721161",
"0.56926894",
"0.56925714",
"0.5686274",
"0.56826144",
"0.5682104",
"0.5670449",
"0.5666624",
"0.5664465",
"0.566341",
"0.56536764"
] | 0.7355865 | 1 |
Set the permissionList of the role. | public void setPermissionList(List<Permission> permissionList) {
this.permissionList = permissionList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPermissions(List<Permission> permissions)\r\n/* */ {\r\n/* 235 */ this.permissions = permissions;\r\n/* */ }",
"public void setRoles(RoleList list) {\n if (list != null) {\n\n roleList = new RoleList();\n\n for (Iterator<?> roleIter = list.iterator();\n roleIter.hasNext();) {\n Role currRole = (Role)(roleIter.next());\n roleList.add((Role)(currRole.clone()));\n }\n } else {\n roleList = null;\n }\n return;\n }",
"public void setAllowlistedRestrictedPermissions(\n @NonNull List<String> allowlistedRestrictedPermissions) {\n Objects.requireNonNull(mGrantedPermissions);\n mAllowlistedRestrictedPermissions = new ArrayList<>(\n allowlistedRestrictedPermissions);\n }",
"public void setGrantedPermissions(@NonNull List<String> grantedPermissions) {\n Objects.requireNonNull(grantedPermissions);\n mGrantedPermissions = new ArrayList<>(grantedPermissions);\n }",
"@Override\n\tpublic void setRoles(List<IRole> arg0) {\n\t\t\n\t}",
"@NonNull\n public FacebookBuilder setPermissions(@NonNull List<String> permissions) {\n getParams().putStringArrayList(\n ExtraConstants.FACEBOOK_PERMISSIONS, new ArrayList<>(permissions));\n return this;\n }",
"void setRole(String roles);",
"public abstract void setPermissions(PermissionIFace permissions);",
"void setPermittedModules(ArrayList<Integer> permittedModules);",
"void setPermission(String perm, boolean add);",
"@Override\n\tpublic void setRoles(List<IRole> roles) {\n\t\tgetInnerObject().setRoles(roles);\n\t\t\n\t}",
"public void setPermissions(boolean [] permissions)\n\t{\n\t\tthis.permissions = permissions;\n\t}",
"public PermissionList(String moduleId, Permission[] perms, String[] replaces) {\n this.moduleId = moduleId;\n this.perms = perms;\n this.replaces = replaces;\n }",
"@Override\n\tpublic void setRoles(ArrayList<String> roles)\n\t{\n\t\tsource.setRoles(roles);\n\t}",
"public void setUserList(CopyOnWriteArrayList<User> userList) {\r\n\t\tBootstrap.userList = userList;\r\n\t}",
"public List<Permission> getPermissionList() {\n return permissionList;\n }",
"void setRoles(Set<String> roles);",
"public final void setRoles(final Collection<String> rls) {\n roles = rls;\n }",
"public void setUserModificationPermission(int permission) {\n this.permission = permission;\n }",
"public com.google.protobuf.ProtocolStringList\n getPermissionsList() {\n permissions_.makeImmutable();\n return permissions_;\n }",
"public void updatePermissions(IPermission[] permissions) throws AuthorizationException;",
"public com.google.protobuf.ProtocolStringList\n getPermissionsList() {\n return permissions_;\n }",
"public void setPermissions(Set<Permission> permissions) {\n this.permissions = permissions;\n }",
"public void setRolesUnresolved(RoleUnresolvedList unresolvedList) {\n if (unresolvedList != null) {\n\n unresolvedRoleList = new RoleUnresolvedList();\n\n for (Iterator<?> roleUnresIter = unresolvedList.iterator();\n roleUnresIter.hasNext();) {\n RoleUnresolved currRoleUnres =\n (RoleUnresolved)(roleUnresIter.next());\n unresolvedRoleList.add((RoleUnresolved)(currRoleUnres.clone()));\n }\n } else {\n unresolvedRoleList = null;\n }\n return;\n }",
"void changePermissions(Training training, User user, Permission permission, String token) throws AuthenticationException;",
"public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }",
"void setRole(final SecurityRole role);",
"public SetPermission() {\n initComponents();\n }",
"public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;",
"protected void setPermWorkItems(java.util.ArrayList permWorkItems) {\n this.permWorkItems = permWorkItems;\n }",
"public void setListSynchronsprecher( List<Person> listSynchronsprecher ) {\n\t\tthis.listSynchronsprecher.clear();\n\t\tthis.listSynchronsprecher.addAll( listSynchronsprecher );\n\t}",
"public void setList(java.util.List newAktList) {\n\t\tlist = newAktList;\n\t}",
"public void setPermission(int permission) {\r\n\r\n\t\tif (permission == nPermission)\r\n\t\t\treturn;\r\n\r\n\t\tsetPermissionLocal(permission);\r\n\t}",
"public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }",
"private void setPerms() {\n int oPerm = 0; // Owner permissions\n int gPerm = 0; // Group permissions\n int aPerm = 0; // All (other) permissions\n\n // Set owner permissions digit\n if (ownerRead.isSelected()) oPerm += 4; // Read\n if (ownerWrite.isSelected()) oPerm += 2; // Write\n if (ownerExe.isSelected()) oPerm += 1; // Execute\n\n // Set group permissions digit\n if (groupRead.isSelected()) gPerm += 4; // Read\n if (groupWrite.isSelected()) gPerm += 2; // Write\n if (groupExe.isSelected()) gPerm += 1; // Execute\n\n // Set all permissions digit\n if (allRead.isSelected()) aPerm += 4; // Read\n if (allWrite.isSelected()) aPerm += 2; // Write\n if (allExe.isSelected()) aPerm += 1; // Execute\n\n // Concatenate digits into chmod code\n String perms = Integer.toString(oPerm) + Integer.toString(gPerm) + Integer.toString(aPerm);\n //System.out.println(perms); // just for testing\n\n FTPReply chmodReply;\n try {\n // Set file permissions\n chmodReply = client.sendSiteCommand(\"chmod \" + perms + \" \" + theFile);\n System.out.println(chmodReply.toString());\n }\n catch (FTPIllegalReplyException | IOException e) {\n e.printStackTrace();\n }\n }",
"public static void setPermission(String permission) {\n\t\tsetPermission(last[0],last[1], permission);\n\t}",
"Set getRoles();",
"void setPerm(String name,\n Object value);",
"public void setDataAccessRole(String dataAccessRole) {\n this.dataAccessRole = dataAccessRole;\n }",
"public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }",
"public void setListaCreditoTributarioSRI(List<CreditoTributarioSRI> listaCreditoTributarioSRI)\r\n/* 136: */ {\r\n/* 137:149 */ this.listaCreditoTributarioSRI = listaCreditoTributarioSRI;\r\n/* 138: */ }",
"@Override\r\n\tpublic int editRolePermission(RolePermission rolePermission) {\n\t\treturn rolePermissionMapper.updateByPrimaryKeySelective(rolePermission);\r\n\t}",
"public void setRecipeList(ArrayList<Recipe> recipeList) {\n mRecipeList = recipeList;\n notifyDataSetChanged();\n }",
"public void setRoles(Role a, Role b, Role c){\n roles = new Role[] {a, b, c};\n }",
"public abstract void setRoleManager(OwRoleManager roleManager_p);",
"public void setAttractionsList(ArrayList attractionsList) {\n this.attractionsList = attractionsList;\n }",
"public Builder setPermissions(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePermissionsIsMutable();\n permissions_.set(index, value);\n bitField0_ |= 0x00000040;\n onChanged();\n return this;\n }",
"public static final void setWhitelist(final WhiteList listType, final String list) {\n setWhitelist(p(), listType, list);\n }",
"public void setNegativePermissions();",
"public void insertRolePermission(int roleId, List<Integer> permissionIdList, Timestamp createTime, Timestamp updateTime){\n for (int permissionId : permissionIdList) {\r\n rolePermissionDao.insertRolePermission(roleId, permissionId, createTime, updateTime);\r\n }\r\n }",
"public void setRole( String role )\n {\n if ( roles == null )\n {\n roles = new TreeSet<>( String.CASE_INSENSITIVE_ORDER );\n }\n\n this.roles.add( role );\n }",
"public void setUserRoles(List<UserRole> userRoles) {\n\t\tthis.userRoles = userRoles;\n\t}",
"@NonNull\n public List<String> getAllowlistedRestrictedPermissions() {\n return mAllowlistedRestrictedPermissions;\n }",
"public void addPrivileges(int privilege, String... roleList) {\r\n\t\tif (null != roleList) {\r\n\t\t\tif (null == privileges)\r\n\t\t\t\tprivileges = new HashMap<Integer, Set<String>>();\r\n\t\t\tSet<String> roles = privileges.get(privilege);\r\n\t\t\tif (null == roles) {\r\n\t\t\t\troles = new HashSet<String>();\r\n\t\t\t\tprivileges.put(privilege, roles);\r\n\t\t\t}\r\n\t\t\tfor (String role : roleList)\r\n\t\t\t\troles.add(role);\r\n\t\t}\r\n\t}",
"void setListProperty(Object name, List<Object> list) throws JMSException;",
"@Test\n public void setPermissions() {\n cleanEntity0();\n\n entity0.setPermissions(permissionsS);\n assertEquals(permissionsS, ReflectionTestUtils.getField(entity0, \"permissions\"));\n }",
"public Role() {\r\n\t\tpermissions = new ArrayList<Permission>();\r\n\t}",
"public void setPermissions(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Permissions permissions) {\r\n this.permissions = permissions;\r\n }",
"public void setListaTipoComprobanteSRI(List<TipoComprobanteSRI> listaTipoComprobanteSRI)\r\n/* 356: */ {\r\n/* 357:345 */ this.listaTipoComprobanteSRI = listaTipoComprobanteSRI;\r\n/* 358: */ }",
"public void setPermissions(int permissions)\n {\n encryptionDictionary.setInt( \"P\", permissions );\n }",
"private void changePermissionsInUI(int position) {\n if (permissions.get(position).equals(\"Viewer\")) {\n permissions.set(position, \"Editor\");\n items.set(position, users.get(position) + \": Editor\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to an Editor\", Toast.LENGTH_SHORT).show();\n } else if (permissions.get(position).equals(\"Editor\")) {\n permissions.set(position, \"Viewer\");\n items.set(position, users.get(position) + \": Viewer\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to a Viewer\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void setList(List<Integer> list) {\n this.list = list;\n }",
"public void setAdminRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_adminRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeAdminRole();\r\n }\r\n }",
"public void setGrupoUsuarioPrivilegioGrupoUsuarioList(List<PrivilegioGrupoUsuarioDTO> grupoUsuarioPrivilegioGrupoUsuarioList) {\n this.grupoUsuarioPrivilegioGrupoUsuarioList = grupoUsuarioPrivilegioGrupoUsuarioList;\n }",
"public void setPermission(Permission newPermission) {\n\t\tthis.permission = newPermission;\n\t}",
"public void setDeviceList(DeviceUserAuthorization[] deviceList) {\n this.deviceList = deviceList;\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 }",
"private boolean addPermission(List<String> permissionsList, String permission) {\n if (ContextCompat.checkSelfPermission(BecomeHostActivity.this, permission) != PackageManager.PERMISSION_GRANTED) {\n permissionsList.add(permission);\n // Check for Rationale Option\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (!shouldShowRequestPermissionRationale(permission))\n return false;\n }\n }\n return true;\n }",
"void setImmunities(List<Type> immunities) {\n this.immunities = immunities;\n }",
"public void setListItems(List<String> lit) { mItems = lit; }",
"public void setGrupoUsuarioGrupoUsuarioMenuList(List<GrupoUsuarioMenuDTO> grupoUsuarioGrupoUsuarioMenuList) {\n this.grupoUsuarioGrupoUsuarioMenuList = grupoUsuarioGrupoUsuarioMenuList;\n }",
"public void setPermission(String permission)\r\n {\r\n this.permission = permission;\r\n }",
"public RoleList getRoles() {\n return roleList;\n }",
"public void setPermission(com.tangosol.net.ClusterPermission permission)\n {\n __m_Permission = permission;\n }",
"protected void setRolePermissionService(RolePermissionService service) {\n\t\tthis.rolePermissionService = service;\n\t}",
"public void doPermissions(RunData data, Context context)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\t// should we save here?\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\t// get the current home collection id and the related site\n\t\tString collectionId = (String) state.getAttribute (STATE_HOME_COLLECTION_ID);\n\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(collectionId));\n\t\tString siteRef = SiteService.siteReference(ref.getContext());\n\n\t\t// setup for editing the permissions of the site for this tool, using the roles of this site, too\n\t\tstate.setAttribute(PermissionsHelper.TARGET_REF, siteRef);\n\n\t\t// ... with this description\n\t\tstate.setAttribute(PermissionsHelper.DESCRIPTION, rb.getString(\"setpermis1\")\n\t\t\t\t+ SiteService.getSiteDisplay(ref.getContext()));\n\n\t\t// ... showing only locks that are prpefixed with this\n\t\tstate.setAttribute(PermissionsHelper.PREFIX, \"content.\");\n\n\t\t// get into helper mode with this helper tool\n\t\tstartHelper(data.getRequest(), \"sakai.permissions.helper\");\n\n\t}",
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"public void setTypeBoundList(List<Access> list) {\n setChild(list, 2);\n }",
"public void setListProperty(List<Integer> t) {\n\n\t\t}",
"public void setRole(String role)\n {\n _role=role;\n }",
"public void setRoleDTOs(List<RoleDTO> roleDTOs) {\n\t\tthis.roleDTOs = roleDTOs;\n\t}",
"void setRaceList(java.lang.String raceList);",
"public void setListaConceptoRetencionSRI(List<ConceptoRetencionSRI> listaConceptoRetencionSRI)\r\n/* 149: */ {\r\n/* 150:160 */ this.listaConceptoRetencionSRI = listaConceptoRetencionSRI;\r\n/* 151: */ }",
"protected void setPermissionLocal(int permission) {\r\n\t\tif (permission == nPermission)\r\n\t\t\treturn ;\r\n\t\tnPermission = permission;\r\n\t}",
"@Override\r\n\tpublic void setRole(Long accountId, List<Role> roles) throws ServiceException {\n\r\n\t}",
"public static void setFriendsList(FriendsList fl) {\r\n\t\tfriendsList = fl; \r\n\t}",
"@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 }",
"public List<String> getPermissions() {\n return this.permissions;\n }",
"public void setRole(String strRole) {\n\t\tif (\"ADMIN\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.ADMIN);\n\t\t}else if (\"DEVELOPER\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.DEVELOPER);\n\t\t}else if (\"SUPPORT\".equals(strRole)) {\n\t\t\tthis.setRole(userRole.SUPPORT);\n\t\t}\n\t}",
"public void setRoles(final Collection<Role> roles) {\n this.roles = roles;\n }",
"public abstract void setList(List<T> items);",
"@Override\n\tpublic final void setListUsers(final IntListUsers list) {\n\t\tthis.listUsers = list;\n\t}",
"@Override\r\n public void onPermissionsGranted(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }",
"@ZAttr(id=1138)\n public void setPrefMailTrustedSenderList(String[] zimbraPrefMailTrustedSenderList) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraPrefMailTrustedSenderList, zimbraPrefMailTrustedSenderList);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public void setStudentList (Students studentList)\n\n {\n\n // studentList is set equal to studentList.\n this.studentList.add (studentList);\n\n }",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public Boolean setFloodPerm(String floodPerm) throws PermissionDeniedException;",
"public void addPermissions(IPermission[] permissions) throws AuthorizationException;"
] | [
"0.67765003",
"0.6395853",
"0.6233294",
"0.6107751",
"0.5898036",
"0.5734262",
"0.5629741",
"0.5615819",
"0.553355",
"0.54767907",
"0.5476008",
"0.54556876",
"0.54192317",
"0.5418133",
"0.5407447",
"0.5371604",
"0.53604525",
"0.53523725",
"0.5294113",
"0.5277378",
"0.5251845",
"0.52308804",
"0.5216568",
"0.5213048",
"0.52045476",
"0.5194034",
"0.51610863",
"0.5160095",
"0.51569647",
"0.51512474",
"0.51432306",
"0.51129055",
"0.51039815",
"0.5103828",
"0.5093486",
"0.5088788",
"0.5082242",
"0.5078635",
"0.50736487",
"0.50699323",
"0.50669557",
"0.50614554",
"0.50504386",
"0.50471485",
"0.504664",
"0.5042431",
"0.50134337",
"0.50086814",
"0.5008316",
"0.50031316",
"0.50009954",
"0.50006294",
"0.4996876",
"0.49918115",
"0.49804813",
"0.49755672",
"0.49755663",
"0.49467248",
"0.4946274",
"0.49452418",
"0.49411756",
"0.49410635",
"0.49298579",
"0.49253714",
"0.49047202",
"0.4896649",
"0.48964536",
"0.4892963",
"0.48890376",
"0.48844787",
"0.48812556",
"0.4880432",
"0.4862357",
"0.48523498",
"0.48513123",
"0.48499957",
"0.48349774",
"0.48341134",
"0.4833336",
"0.48309806",
"0.48257354",
"0.4819953",
"0.48084018",
"0.4802102",
"0.4801043",
"0.4798923",
"0.47974",
"0.47974",
"0.47974",
"0.47973794",
"0.4789912",
"0.47861242",
"0.4776785",
"0.4774291",
"0.47730282",
"0.47538477",
"0.47526413",
"0.4748519",
"0.47462943",
"0.47454536"
] | 0.7266474 | 0 |
Get the version of the role. | public Long getVersion() {
return version;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Version getVersion();",
"public Long getVersion() {\n return this.version;\n }",
"public Long getVersion() {\n return this.version;\n }",
"Long getVersion();",
"public UuidVersion getVersion() {\n\t\treturn this.version;\n\t}",
"public long getVersion() {\n return version;\n }",
"public long getVersion() {\n return version;\n }",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public String getProductVersion();",
"public String getVersion()\n {\n return version;\n }",
"public String getVersion()\n {\n return version;\n }",
"public long getVersion() {\r\n return this.version;\r\n }",
"public String getVersion() {\n\t\treturn (VERSION);\n\t}",
"public String getVersion () {\r\n return version;\r\n }",
"public String getVersion()\n {\n return version;\n }",
"public java.lang.String getVersion() {\r\n return version;\r\n }",
"public static String getVersion() {\n\t\treturn version;\n\t}",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public final String getVersion() {\n return version;\n }",
"public String getVersion()\n {\n return ver;\n }",
"public Version getVersion() {\n return version;\n }",
"public String getVersion () {\n return this.version;\n }",
"@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }",
"public String getVersion() {\r\n return version;\r\n }",
"@SuppressWarnings(\"unused\")\n private Long getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public static String getVersion() {\n\t\treturn version;\r\n\t}",
"public String getVersion() {\n\t\treturn version;\n\t}",
"int getCurrentVersion();",
"@CheckForNull\n String getVersion();",
"public static String getVersion() {\n return version;\n }",
"public static String getVersion() {\n return version;\n }",
"public String getVersion() {\r\n\t\treturn version;\r\n\t}",
"public String getVersion(){\r\n return version;\r\n }",
"public String getVersion() {\n\t\treturn _version;\n\t}",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"@java.lang.Override\n public long getVersion() {\n return version_;\n }",
"public String getVersion() {\n return _version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public String getCurrentVersion() {\n return this.currentVersion;\n }",
"public String getVersion() {\n return this.version;\n }",
"java.lang.String getApplicationVersion();",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public java.lang.String getVersion() {\n return version_;\n }",
"public Number getVersion() {\n return (Number) getAttributeInternal(VERSION);\n }",
"public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"public final int getVersion() {\n return version;\n }",
"public Integer getVersion() {\r\n return version;\r\n }",
"public int getVersion() {\n return this.version;\n }",
"public Integer version() {\n return this.version;\n }",
"public org.hl7.fhir.String getVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(VERSION$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"long getVersion();",
"long getVersion();",
"long getVersion();",
"long getVersion();",
"public Byte getRole() {\n return role;\n }",
"String getRole();",
"String getRole();",
"public Integer getVersion() {\n\t\t\n\t\treturn this.version;\n\t}",
"public static final String getVersion() { return version; }",
"public static final String getVersion() { return version; }",
"@Transient\n public String getCurrentRole() {\n \tString currentRole = \"\";\n \tif (this.roles != null) {\n \t\tIterator<Role> it = roles.iterator();\n \t\tcurrentRole = it.next().getName().substring(5);\n \t\twhile (it.hasNext()) {\n \t\t\tRole role = it.next();\n \t\t\tcurrentRole += \"/\" + role.getName().substring(5);\n \t\t}\n \t}\n \treturn currentRole;\n }"
] | [
"0.6630268",
"0.6611738",
"0.6611738",
"0.6605349",
"0.65807515",
"0.6494286",
"0.6494286",
"0.6471261",
"0.6471261",
"0.6471261",
"0.6471261",
"0.64367074",
"0.6435254",
"0.6435254",
"0.643311",
"0.6429187",
"0.6421789",
"0.64019394",
"0.6395202",
"0.6387547",
"0.638374",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.6383098",
"0.63819444",
"0.6380307",
"0.63786465",
"0.63736457",
"0.636935",
"0.63685906",
"0.63684285",
"0.63683295",
"0.63683295",
"0.6366983",
"0.63650453",
"0.6350992",
"0.6346181",
"0.632728",
"0.632728",
"0.6322042",
"0.63151747",
"0.6298607",
"0.62919724",
"0.62919724",
"0.62919724",
"0.62919724",
"0.62919724",
"0.62919724",
"0.62919724",
"0.62919724",
"0.6290901",
"0.62899333",
"0.62895316",
"0.62895316",
"0.62895316",
"0.62895316",
"0.62895316",
"0.6288594",
"0.6283167",
"0.6283086",
"0.62763464",
"0.62763464",
"0.62763464",
"0.62763464",
"0.62763464",
"0.62763464",
"0.62757456",
"0.6272562",
"0.62713295",
"0.6264654",
"0.6264654",
"0.6264654",
"0.6264654",
"0.6259841",
"0.62570405",
"0.62442946",
"0.62409645",
"0.6230073",
"0.62289125",
"0.62289125",
"0.62289125",
"0.62289125",
"0.62070835",
"0.62050045",
"0.62050045",
"0.6203646",
"0.61945695",
"0.61945695",
"0.6189877"
] | 0.67315185 | 2 |
Set the version of the role. | public void setVersion(Long version) {
this.version = version;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setVersion(long version);",
"void setVersion(String version);",
"void setVersion(String version);",
"public void setManifestVersion() {\n\t\tSharedPreferences.Editor editor = sp.edit();\n\t\teditor.putString(VERSION_KEY, thisVersion);\n\t\teditor.commit();\n\t}",
"public void setVersion(String version);",
"public void setVersion(final Long version);",
"@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRole(java.lang.String value) {\n validate(fields()[6], value);\n this.role = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"private void setVersion(long value) {\n bitField0_ |= 0x00000002;\n version_ = value;\n }",
"@SuppressWarnings(\"unused\")\n private void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(long version) {\n this.version = version;\n }",
"public void setVersion(int value) {\n this.version = value;\n }",
"public void setVersion(int version)\n {\n encryptionDictionary.setInt( \"V\", version );\n }",
"public void setRole(String role)\n {\n _role=role;\n }",
"@Override\r\n\tpublic int updRole(Role role) {\n\t\treturn 0;\r\n\t}",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }",
"public void setViewRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_viewRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeViewRole();\r\n }\r\n }",
"public void setVersion(int version) {\n this.version = version;\n }",
"public void setVersion(int version) {\n this.version = version;\n }",
"void setRole(final SecurityRole role);",
"public void setVersion(Number value) {\n setAttributeInternal(VERSION, value);\n }",
"public void setVersion(Integer version)\r\n {\r\n this.version = version;\r\n }",
"@CompositeValue(ignore=true)\n @XmlAttribute(name=\"version\")\n public void setVersion(Version version)\n {\n versionRange = new VersionRange(version, true, version, true);\n }",
"public void setVersion(String version) {\n\t\t\r\n\t}",
"public void setVersion(Integer version) {\r\n this.version = version;\r\n }",
"public void setVersion(String version)\n {\n this.ver = version;\n }",
"@Override\n\tpublic void setMethodVersion() {\n\t\tthis.version=\"app3.5\";\n\t}",
"void setApplicationVersion(java.lang.String applicationVersion);",
"public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }",
"public void setCurrentVersion(String currentVersion) {\n this.currentVersion = currentVersion;\n }",
"public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }",
"public synchronized void setVersion(final InternationalString newValue) {\n checkWritePermission();\n version = newValue;\n }",
"public void setRole(String role)\n \t\tthrows ParameterException, SignatureException {\n \t\tif (this.signed) {\n \t\t\tthrow new SignatureException(\"Attributes cannot be modified after document is signed\");\n \t\t}\n \n \t\tif (roleFAA.equals(role) || \n \t\t roleBORROWER.equals(role) ||\n \t\t roleAPCSR.equals(role) ||\n \t\t roleLENDER.equals(role)) {\n \t\t\t\n \t\t\tattributes.put(\"Role\", role);\n \t\t} else {\n \t\t\tthrow new ParameterException(\"Invalid Role: \" + role);\n \t\t}\n \t}",
"public Builder setCurrentVersion(int value) {\n bitField0_ |= 0x00000080;\n currentVersion_ = value;\n onChanged();\n return this;\n }",
"public void setRole(APIRole role) {\n this.role = role;\n }",
"public void setVersion(String version){\r\n this.version = version;\r\n }",
"public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }",
"public void setRole(Byte role) {\n this.role = role;\n }",
"public void setVersion(java.math.BigInteger version)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VERSION$6);\r\n }\r\n target.setBigIntegerValue(version);\r\n }\r\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n\t\tthis.version = version;\n\t}",
"private void setVersionNumber(int version) {\n versionNumber = version;\n }",
"public final void setVersion(String version) {\n this.version = version;\n }",
"public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }",
"void setRole(String roles);",
"public Builder setVersion(long value) {\n copyOnWrite();\n instance.setVersion(value);\n return this;\n }",
"public final void setVersion(java.lang.String version)\r\n\t{\r\n\t\tsetVersion(getContext(), version);\r\n\t}",
"public void setVersion(String version)\n {\n this.version = version;\n }",
"public void setVersion(String value) {\n\t\tthis._version = value;\n\t}",
"public void setVersion( Integer version ) {\n this.version = version;\n }",
"public Builder setRole(com.message.MessageInfo.RoleVO value) {\n if (roleBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n role_ = value;\n onChanged();\n } else {\n roleBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"protected void setVersion(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tInteger version = rs.getInt(EmployeeLeaveTable.COLUMN_VERSION);\n\t\tif(version == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setVersion(version);\n\t}",
"public void setVersion(int version)\n\t{\n\t\tconferenceInfo.setAttribute(VERSION_ATTR_NAME, Integer.toString(version));\n\t}",
"@Override\n\tpublic void setVersion(java.lang.String version) {\n\t\t_scienceApp.setVersion(version);\n\t}",
"public void setVersion(String version) {\n this.version = version;\n }",
"@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }",
"@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }",
"public void setVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}",
"private void setNodeVersion(int nodeVersion) {\n this.nodeVersion = nodeVersion;\r\n }",
"public final void setVersion(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String version)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Version.toString(), version);\r\n\t}",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"public void setAdminRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_adminRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeAdminRole();\r\n }\r\n }",
"public void setVer(Integer ver) {\n this.ver = ver;\n }",
"@NonNull\n public Builder setRole(@SemanticsRole int role) {\n mImpl.setRole(ModifiersProto.SemanticsRole.forNumber(role));\n mFingerprint.recordPropertyUpdate(2, role);\n return this;\n }",
"void changeRole(User user, Role role, String token) throws AuthenticationException;",
"public void setDocumenterRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_documenterRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeDocumenterRole();\r\n }\r\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setRole(AXValue role) {\n this.role = role;\n }",
"public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, 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->setRole()\", 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 setVersion(String version) {\n\t\tthis.version = version;\n\t}",
"public void setVersion(java.lang.String version) {\r\n this.version = version;\r\n }",
"public void setRole(String role) {\n this.role = role;\n }",
"public void setRole(Integer role) {\n\t\tthis.role = role;\n\t}",
"public void setUIVersion(int version);",
"public void setVersion(String _version) {\n this._version = _version;\n }",
"public void setVer(Integer ver) {\n\t\tthis.ver = ver;\n\t}",
"SchemaReference setVersion(String version);",
"void setVersion(int version) {\n removeOldVersion();\n\n String sql = \"INSERT INTO \" + tableName + \" (\" + VERSION_COL + \") VALUES (?)\";\n\n execute(new ExecuteStatement(sql) {\n @Override\n public void prepare(PreparedStatement statement) throws SQLException {\n statement.setInt(1, version);\n }\n });\n }",
"LoggedUser changeRole(String roleId) throws IOException;",
"public void setRole(String role) {\r\n\t\tthis.role = role;\r\n\t}",
"public void xsetRole(com.a9.spec.opensearch.x11.QueryType.Role role)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Role target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().find_attribute_user(ROLE$0);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().add_attribute_user(ROLE$0);\n }\n target.set(role);\n }\n }",
"@SystemApi\n @RequiresPermission(anyOf = {\n Manifest.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY,\n Manifest.permission.UPGRADE_RUNTIME_PERMISSIONS\n })\n public void setRuntimePermissionsVersion(@IntRange(from = 0) int version) {\n try {\n mPackageManager.setRuntimePermissionsVersion(version, mContext.getUserId());\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }",
"public void setVersion(org.hl7.fhir.String version)\n {\n generatedSetterHelperImpl(version, VERSION$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setRole( String role )\n {\n if ( roles == null )\n {\n roles = new TreeSet<>( String.CASE_INSENSITIVE_ORDER );\n }\n\n this.roles.add( role );\n }",
"public void setUserRole(Byte userRole) {\r\n this.userRole = userRole;\r\n }"
] | [
"0.68504626",
"0.6640921",
"0.6640921",
"0.64713067",
"0.64445513",
"0.6408186",
"0.63599104",
"0.6265826",
"0.6114922",
"0.60989785",
"0.6098392",
"0.6094946",
"0.6014786",
"0.6005938",
"0.5989756",
"0.59861296",
"0.5975268",
"0.597305",
"0.5944228",
"0.5944228",
"0.59398884",
"0.5932068",
"0.5917404",
"0.5898248",
"0.58777004",
"0.58607864",
"0.58534867",
"0.5848001",
"0.5840637",
"0.5837594",
"0.58369994",
"0.58260316",
"0.5825889",
"0.5819737",
"0.5817547",
"0.58120877",
"0.58099884",
"0.5801035",
"0.57935566",
"0.5791521",
"0.57898456",
"0.57898456",
"0.57898456",
"0.57898456",
"0.57898456",
"0.57898456",
"0.5773405",
"0.5768064",
"0.5768064",
"0.5766878",
"0.57607985",
"0.5745568",
"0.5733886",
"0.5729626",
"0.57173425",
"0.5711258",
"0.5710436",
"0.57005626",
"0.5699437",
"0.5693435",
"0.56783044",
"0.56758875",
"0.5675773",
"0.56679267",
"0.56658727",
"0.56636524",
"0.56636524",
"0.56507957",
"0.5644042",
"0.5630067",
"0.5617795",
"0.5608018",
"0.55986834",
"0.5588149",
"0.5583633",
"0.5581339",
"0.55799925",
"0.55799925",
"0.55799925",
"0.5577917",
"0.55777067",
"0.5576912",
"0.55587506",
"0.5539905",
"0.55338526",
"0.5526992",
"0.551955",
"0.55013955",
"0.5497469",
"0.54868263",
"0.5482993",
"0.54493934",
"0.5445148",
"0.5430763",
"0.5428473",
"0.54156405",
"0.54022825"
] | 0.5989384 | 18 |
Get the status of the role. | public Status getStatus() {
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRole() {\n return this.state.getRole();\n }",
"String getRole();",
"String getRole();",
"public Integer getRole() {\n\t\treturn role;\n\t}",
"public String getRole() {\r\n return role;\r\n }",
"public java.lang.String getRole() {\n return role;\n }",
"public java.lang.String getRole() {\n return role;\n }",
"public String getRole() {\n return this.role;\n }",
"com.message.MessageInfo.RoleVO getRole();",
"public Role getRole()\n {\n return role;\n }",
"public String getRole() {\r\n\t\treturn role;\r\n\t}",
"public String getRole()\n\t{\n\t\treturn role;\n\t}",
"public String getRole() {\n\t\t\treturn role;\n\t\t}",
"public APIRole getRole() {\n return role;\n }",
"UserStatus getStatus();",
"public Byte getRole() {\n return role;\n }",
"public Long getStatus() {\n return this.Status;\n }",
"public String getCurrentRole() {\r\n return currentRole;\r\n }",
"public Status getStatus()\n {\n return (this.status);\n }",
"VerbRole getRole();",
"public ReturnStatus getStatus() {\n return (ReturnStatus) get(\"status\");\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n }",
"public String getRole() { return this.role; }",
"public Userrole getUserrole() {\n return getEntity();\n }",
"public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}",
"public AXValue getRole() {\n return role;\n }",
"public Status getStatus()\n\t{\n\t\treturn status;\n\t}",
"public String getStatus() {\n return getProperty(Property.STATUS);\n }",
"@Override\n\tpublic String getRole() {\n\t\treturn role;\n\t}",
"public com.a9.spec.opensearch.x11.QueryType.Role.Enum getRole()\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(ROLE$0);\n if (target == null)\n {\n return null;\n }\n return (com.a9.spec.opensearch.x11.QueryType.Role.Enum)target.getEnumValue();\n }\n }",
"public com.message.MessageInfo.RoleVO getRole() {\n if (roleBuilder_ == null) {\n return role_ == null ? com.message.MessageInfo.RoleVO.getDefaultInstance() : role_;\n } else {\n return roleBuilder_.getMessage();\n }\n }",
"public Status getStatus() {\n\t\treturn status;\n\t}",
"public StatusEnum getStatus() {\n return status;\n }",
"public Enumerations.status getStatus() {\n\t\treturn status;\n\n\t}",
"public Integer getStatus() {\n return this.status;\n }",
"public StatusEnum getStatus()\n {\n return status;\n }",
"public Status getStatus() {\r\n return status;\r\n }",
"public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}",
"public Status getStatus()\n {\n return status;\n }",
"public Integer getStatus() {\n\t\treturn status;\n\t}",
"public Integer getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus()\n {\n\n return status;\n }",
"public int getStatus ()\n {\n return status;\n }",
"public int getStatus ()\n {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Status getStatus() {\r\n\t return status;\r\n\t }",
"public Status getStatus();",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"public long getStatus() {\r\n return status;\r\n }",
"public int getStatus()\n {\n return status;\n }",
"public java.lang.String getStatus() {\n return status;\n }",
"public java.lang.String getStatus() {\n return status;\n }",
"String getRoleName();",
"public String getStatus () {\r\n return status;\r\n }",
"public String getStatus() {\n return status;\n }",
"public java.lang.String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus() {\n\t\treturn status;\n\t}",
"public Byte getUserRole() {\r\n return userRole;\r\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }"
] | [
"0.73845625",
"0.7170993",
"0.7170993",
"0.7111653",
"0.70539266",
"0.70216",
"0.7020053",
"0.6997785",
"0.69576555",
"0.69479626",
"0.69329005",
"0.6932652",
"0.6919865",
"0.6919374",
"0.69147706",
"0.69004476",
"0.6873005",
"0.686263",
"0.6817912",
"0.68091846",
"0.6807553",
"0.6798416",
"0.6790833",
"0.6775071",
"0.6753977",
"0.675105",
"0.67495257",
"0.67267126",
"0.672049",
"0.6715894",
"0.67094135",
"0.6684998",
"0.667835",
"0.6669293",
"0.66687506",
"0.66615367",
"0.66587234",
"0.6657487",
"0.664261",
"0.66273665",
"0.66273665",
"0.66163313",
"0.6608909",
"0.6608909",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66080666",
"0.66040194",
"0.6596805",
"0.6593719",
"0.6593719",
"0.6593719",
"0.6593719",
"0.6593719",
"0.6593719",
"0.6593719",
"0.6590221",
"0.6589138",
"0.6589138",
"0.6589138",
"0.6589138",
"0.6589138",
"0.6587264",
"0.6587264",
"0.65868455",
"0.65856224",
"0.65837556",
"0.65837556",
"0.65827495",
"0.65812725",
"0.6579209",
"0.656764",
"0.65663224",
"0.65663224",
"0.65663224",
"0.65663224",
"0.65606785",
"0.6556199",
"0.6556199",
"0.6556199",
"0.6556199"
] | 0.6676903 | 34 |
Set the status of the role. | public void setStatus(Status status) {
this.status = status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setStatus(final UserStatus status);",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"void setRole(final SecurityRole role);",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }",
"public void setRole(String role)\n {\n _role=role;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public final void setStatus(int sts) {\n\t\tm_status = sts;\n\t}",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setStatus(int newStatus) {\n status = newStatus;\n }",
"void setStatus(STATUS status);",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(@NotNull Status status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(JobStatus status);",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"public void setRole(APIRole role) {\n this.role = role;\n }",
"public void setStatus(boolean newStatus);",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }",
"@Override\r\n\tpublic int updRole(Role role) {\n\t\treturn 0;\r\n\t}",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"@JsonProperty(\"status\")\n public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(CanaryStatus status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setRole(Byte role) {\n this.role = role;\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setRole(AXValue role) {\n this.role = role;\n }",
"public synchronized final void setStatus(int sts) {\n\t\tm_status = sts;\n\t\tnotifyAll();\n\t}",
"public void setStatus(final String attrStatus) {\r\n this.status = attrStatus;\r\n }",
"public void setStatus(Long Status) {\n this.Status = Status;\n }",
"public void setRole(com.a9.spec.opensearch.x11.QueryType.Role.Enum role)\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(ROLE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROLE$0);\n }\n target.setEnumValue(role);\n }\n }",
"public void setStatus(Enumerations.status status) {\n\t\tthis.status = status;\n\t}",
"public void setRole(Integer role) {\n\t\tthis.role = role;\n\t}",
"public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }",
"public void setStatus(String status) { this.status = status; }",
"@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"void setStatus(int status);",
"public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, 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->setRole()\", 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 setStatus(java.lang.String status) {\n\t\t_forumUser.setStatus(status);\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}",
"void setStatus(java.lang.String status);",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }",
"public void setStatus(String Status) {\n this.Status = Status;\n }",
"public void setStatus(String Status) {\n this.Status = Status;\n }",
"LoggedUser changeRole(String roleId) throws IOException;",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"public void setStatus(boolean status) {\n\tthis.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(String status)\n {\n setValue(\"status\", status);\n }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}"
] | [
"0.6812787",
"0.6704553",
"0.6672375",
"0.6667209",
"0.6569014",
"0.65476555",
"0.65308887",
"0.65181196",
"0.6514367",
"0.6513236",
"0.65002733",
"0.64882994",
"0.6455743",
"0.64497334",
"0.64444155",
"0.6440256",
"0.64336866",
"0.64291066",
"0.6413366",
"0.6413366",
"0.6403081",
"0.6403081",
"0.6398487",
"0.63908297",
"0.63905007",
"0.63884306",
"0.6385469",
"0.637976",
"0.6374944",
"0.63641363",
"0.63589144",
"0.6352568",
"0.6351579",
"0.6351579",
"0.6337086",
"0.63270056",
"0.63270056",
"0.6326389",
"0.63080263",
"0.63065773",
"0.63054764",
"0.63054764",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63052946",
"0.63020873",
"0.62927616",
"0.62837183",
"0.6283489",
"0.62819636",
"0.6279621",
"0.62695307",
"0.6257669",
"0.62550557",
"0.62455904",
"0.62420994",
"0.6241317",
"0.6237145",
"0.62365466",
"0.62362814",
"0.6230279",
"0.62218827",
"0.62218827",
"0.6221132",
"0.6221132",
"0.62170655",
"0.6215193",
"0.620434",
"0.620434",
"0.6199306",
"0.61968166",
"0.61968166",
"0.61939883",
"0.61931956",
"0.6188086",
"0.617656",
"0.6170428",
"0.61661416",
"0.61661416",
"0.61661416",
"0.6161246"
] | 0.64404386 | 18 |
Get the created by user of the role. | public Long getCreatedBy() {
return createdBy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getCreateduser() {\n return createduser;\n }",
"public Integer getCreatedUser() {\n\t\treturn createdUser;\n\t}",
"public String getCreatedUser() {\r\n return this.createdUser;\r\n }",
"public long getCreatedByUser();",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public long getCreatorUserId() {\n return creatorUserId;\n }",
"public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }",
"public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}",
"public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }",
"public User getCreator() {\n\t\treturn creatorId != null ? (User) User.findById(creatorId) : null;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }",
"public Integer getCreatedUserId() {\n return this.createdUserId;\n }",
"public Integer getCreatedUserId() {\n return this.createdUserId;\n }",
"public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }",
"public Integer getCreateUser() {\n return createUser;\n }",
"public Integer getCreateUser() {\n return createUser;\n }",
"public String createdBy() {\n return this.createdBy;\n }",
"public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public String getCreatedBy() {\n return createdBy;\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\n return this.createdBy;\n }",
"public User getCreator() {\n return this.creator;\n }",
"public String getCreatedby() {\n return createdby;\n }",
"public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}",
"public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }",
"public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }",
"@AutoEscape\n\tpublic String getCreatedByUser();",
"public String getCreateUser()\r\n\t{\r\n\t\treturn createUser;\r\n\t}",
"public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreateUser () {\r\n\t\treturn createUser;\r\n\t}",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\n return createUser;\n }",
"public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}",
"public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}",
"public LoginMessageResponse getCreateUserResult() {\n return localCreateUserResult;\n }",
"public String getCreateUser() {\r\n return createUser;\r\n }",
"public String getCreateUser() {\r\n return createUser;\r\n }",
"public ParseUser getCreator() {\n try {\n return fetchIfNeeded().getParseUser(\"creator\");\n }\n catch(ParseException e) {\n Log.d(TAG, \"Error in retrieving the creator: \" + e);\n return null;\n }\n }",
"public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}",
"public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}",
"public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}",
"public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser getCreateUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().find_element_user(CREATEUSER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public Integer getCreateuser() {\n return createuser;\n }",
"public Integer getCreatedUserId() {\n return (Integer) get(4);\n }",
"public String getCreatedUserName() {\n return createdUserName;\n }",
"int getCreatedBy();",
"public String getCreateUserId() {\r\n return createUserId;\r\n }",
"@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}",
"public Integer getCreateUserId() {\n return createUserId;\n }",
"public User getUser(){\n return User.getUser(this.event.getAuthor());\n }",
"public Long getUserCreate() {\n return userCreate;\n }",
"public ec.com.smx.frameworkv2.security.dto.UserDto getUsuarioCreacion() {\n\t\treturn this.usuarioCreacion;\n\t}",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public String getCreateUser() {\n return createUser; \n }",
"public java.lang.String getCreateUser() {\n java.lang.Object ref = createUser_;\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 createUser_ = s;\n return s;\n }\n }",
"public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}",
"public java.lang.String getCreateUser() {\n java.lang.Object ref = createUser_;\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 createUser_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@ManyToOne(fetch = FetchType.LAZY, targetEntity = UserEntity.class)\n\t@JoinColumn(name = \"USER_CREATED\")\n\tpublic User getUserCreated() {\n\t\treturn userCreated;\n\t}",
"public Long getCreator() {\n return creator;\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public Long getCreateBy() {\n return createBy;\n }",
"public Long getCreateBy() {\n return createBy;\n }",
"public Long getCreateBy() {\n return createBy;\n }",
"public Long getCreateBy() {\n return createBy;\n }",
"public Short getCreateUserIdentity() {\n return createUserIdentity;\n }",
"public Short getCreateUserIdentity() {\n return createUserIdentity;\n }"
] | [
"0.6938486",
"0.68175006",
"0.68105114",
"0.6789014",
"0.66899455",
"0.66899455",
"0.6566502",
"0.6555867",
"0.6553244",
"0.6546017",
"0.6512898",
"0.6504919",
"0.65045553",
"0.65045553",
"0.64989555",
"0.6473327",
"0.646286",
"0.646286",
"0.64459944",
"0.63946706",
"0.6386883",
"0.63753873",
"0.63753873",
"0.63753873",
"0.6366868",
"0.6352887",
"0.63528514",
"0.6352759",
"0.6334975",
"0.6334975",
"0.6334971",
"0.6319238",
"0.63092405",
"0.63021296",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298584",
"0.6298012",
"0.6298012",
"0.62766737",
"0.62694967",
"0.62694967",
"0.62602913",
"0.625478",
"0.6233677",
"0.6222272",
"0.6200321",
"0.6193611",
"0.6181497",
"0.6175381",
"0.616127",
"0.61589456",
"0.6156132",
"0.61515343",
"0.6126953",
"0.612561",
"0.6118259",
"0.60915035",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.6049417",
"0.60447156",
"0.5979575",
"0.5913329",
"0.58980227",
"0.5894524",
"0.58943826",
"0.5873663",
"0.5873663",
"0.5873663",
"0.5873663",
"0.58527684",
"0.58527684",
"0.58527684",
"0.58527684",
"0.5850546",
"0.5850546"
] | 0.6557978 | 10 |
Set the created by user of the role. | public void setCreatedBy(Long createdBy) {
this.createdBy = createdBy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setCreateby(final U createdBy);",
"public void setCreator(User creator) {\n this.creator = creator;\n }",
"@Override\r\n\tpublic void setCreatedBy(User u) {\n\t\tthis.createdBy = (FaqUser)u;\t\t\r\n\t}",
"private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }",
"public void setCreatedByUser(String createdByUser);",
"public void setCreatedBy(final CreatedBy createdBy);",
"public void setCreatedByUser(long createdByUser);",
"public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}",
"public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }",
"public void setCreatedUser(String createdUser) {\r\n this.createdUser = createdUser;\r\n }",
"public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}",
"public void setCreatedByUser(\n @Nullable\n final String createdByUser) {\n rememberChangedField(\"CreatedByUser\", this.createdByUser);\n this.createdByUser = createdByUser;\n }",
"public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }",
"public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }",
"public void setCreateduser(Long createduser) {\n this.createduser = createduser;\n }",
"public void setCreatedUser(Integer createdUser) {\n\t\tthis.createdUser = createdUser;\n\t}",
"public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }",
"public void setCreateUser(String newVal) {\n if ((newVal != null && this.createUser != null && (newVal.compareTo(this.createUser) == 0)) || \n (newVal == null && this.createUser == null && createUser_is_initialized)) {\n return; \n } \n this.createUser = newVal; \n\n createUser_is_modified = true; \n createUser_is_initialized = true; \n }",
"public void setCreatedUserId(Integer value) {\n set(4, value);\n }",
"public void setCreateBy (com.redsaga.hibnatesample.step2.User _createBy) {\n\t\tthis._createBy = _createBy;\n\t}",
"public void assignAuthorisedUser(final boolean val) {\n authorisedUser = val;\n }",
"public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}",
"public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }",
"public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }",
"public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }",
"public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }",
"public Long getCreatedBy() {\n return createdBy;\n }",
"public Long getCreatedBy() {\n return createdBy;\n }",
"public Long getCreatedBy() {\n return createdBy;\n }",
"public Long getCreatedBy() {\n return createdBy;\n }",
"public String getCreatedby() {\n return createdby;\n }",
"public void setCreatorUserId(long creatorUserId) {\n this.creatorUserId = creatorUserId;\n }",
"public void setCreateUser(eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser createUser)\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().find_element_user(CREATEUSER$0, 0);\n if (target == null)\n {\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n }\n target.set(createUser);\n }\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }",
"void setUserCreated(final Long userCreated);",
"public String getCreatedBy() {\n return this.createdBy;\n }",
"public void setUserCreate(Long userCreate) {\n this.userCreate = userCreate;\n }",
"@Override\r\n\tpublic void postCreate(User u) {\n\t\tthis.created = LocalDateTime.now();\r\n\t\tthis.createdBy = (FaqUser) u;\r\n\t\t\r\n\t}",
"public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}",
"@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}",
"public String getCreatedBy() {\n return createdBy;\n }",
"public Long getCreateduser() {\n return createduser;\n }",
"public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }",
"public String createdBy() {\n return this.createdBy;\n }",
"public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }",
"public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }",
"public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }",
"public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }",
"void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;",
"public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public void setCreator(SystemUserBO creator)\n {\n _creator = creator;\n _model.setCreator(creator.getModel());\n }",
"public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }",
"public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }",
"public IBusinessObject setCreator(IUser creator)\n throws ORIOException;",
"public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}",
"public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }",
"public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}",
"public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}",
"@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }",
"public String getCreatedUser() {\r\n return this.createdUser;\r\n }",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public void createSupplier(User user){\n BCryptPasswordEncoder encoder= new BCryptPasswordEncoder();\n user.setPassword(encoder.encode(user.getPassword()));\n //creating roles\n Role userRole = new Role(\"SUPPLIER\");//we create a role type client\n //a user can then take a list of roles\n List<Role> roles = new ArrayList<>();//list of roles\n roles.add(userRole);//add client role type to the list\n user.setRoles(roles);//set a user to a role type\n userRepository.save(user);//save( save is a crudrepository method) the user to the database.\n }",
"public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }",
"public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedby(java.lang.Integer newValue) {\n\tthis.createdby = newValue;\n}",
"public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}",
"public String getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreatedUserName(String createdUserName) {\n this.createdUserName = createdUserName;\n }",
"public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }",
"public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }",
"public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}",
"public void setRole(User user, UserRole role) {\n\t user.setRole(role);\n\t}",
"public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }",
"public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}"
] | [
"0.6986845",
"0.6956685",
"0.68074024",
"0.6776738",
"0.6687925",
"0.6655616",
"0.66115046",
"0.6536022",
"0.6532527",
"0.64859205",
"0.64771444",
"0.64468",
"0.6387348",
"0.6369889",
"0.6368254",
"0.6335631",
"0.6321783",
"0.6258857",
"0.6258857",
"0.6258857",
"0.6258857",
"0.6258857",
"0.6258857",
"0.6258857",
"0.62583965",
"0.6217138",
"0.6174222",
"0.6169954",
"0.6158326",
"0.61342394",
"0.61319304",
"0.61158085",
"0.61158085",
"0.60805327",
"0.60729027",
"0.60729027",
"0.60729027",
"0.60729027",
"0.6069477",
"0.60687685",
"0.6064621",
"0.6050424",
"0.6050424",
"0.6050424",
"0.6043939",
"0.60398203",
"0.6034229",
"0.60300046",
"0.6020459",
"0.60200953",
"0.6016506",
"0.6012959",
"0.600659",
"0.60055315",
"0.600412",
"0.6000626",
"0.59960294",
"0.59960294",
"0.59921974",
"0.59874094",
"0.5987168",
"0.5979676",
"0.59648204",
"0.59648204",
"0.59587014",
"0.5958308",
"0.59557176",
"0.59527725",
"0.59485036",
"0.59483117",
"0.5942168",
"0.5936911",
"0.5936911",
"0.59308034",
"0.5906406",
"0.5906406",
"0.59054756",
"0.59054756",
"0.59054756",
"0.59054756",
"0.59054756",
"0.59054756",
"0.59054756",
"0.59054756",
"0.5889893",
"0.5883869",
"0.58792865",
"0.5850333",
"0.5850333",
"0.5850333",
"0.58481765",
"0.5847174",
"0.5840817",
"0.5827436",
"0.5807348",
"0.58062935",
"0.5806092"
] | 0.6075955 | 36 |
Get the updated by user of the role. | public Long getUpdatedBy() {
return updatedBy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UserItem getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdateUser() {\n return updateUser;\n }",
"public long getModifiedByUser();",
"public Integer getUpdateUser() {\n return updateUser;\n }",
"Long getUserUpdated();",
"public String getUpdateUser() {\r\n return updateUser;\r\n }",
"public String getUpdateUser() {\r\n return updateUser;\r\n }",
"public String getUpdateUser() {\n return updateUser; \n }",
"public String getUpdateUser() {\n return updateUser;\n }",
"public String getUpdateUser() {\n return updateUser;\n }",
"public String getUpdateUser() {\n return updateUser;\n }",
"public String getUpdateUser() {\n return updateUser;\n }",
"public String getUpdateUser() {\n return updateUser;\n }",
"public String getUpdateUser() {\n return updateUser;\n }",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public String getUpdateUser () {\r\n\t\treturn updateUser;\r\n\t}",
"public Long getModifieduser() {\n return modifieduser;\n }",
"public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}",
"public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getUpdateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(UPDATEUSER_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getUpdateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(UPDATEUSER_PROP.get());\n }",
"public String getUpdateUserId() {\r\n return updateUserId;\r\n }",
"public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}",
"public Integer getModifyUser() {\n return modifyUser;\n }",
"@AutoEscape\n\tpublic String getModifiedByUser();",
"public String updatedBy() {\n return this.updatedBy;\n }",
"public Integer getModifiedUser() {\n\t\treturn modifiedUser;\n\t}",
"public MessageResponseOfUserModelNuLtuh91 getUpdateUserResult() {\n return localUpdateUserResult;\n }",
"public String getUpdatedBy() {\r\n return updatedBy;\r\n }",
"public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}",
"public Integer getModifiyUserId() {\n return modifiyUserId;\n }",
"public Userrole getUserrole() {\n return getEntity();\n }",
"public Function<User, String> update() {\n return user -> {\n String result = \"No such user!\";\n if (store.update(user)) {\n result = String.format(\"User with id %s was updated\", user.getId());\n }\n return result;\n };\n }",
"public Integer getUpdateUserid() {\n return updateUserid;\n }",
"public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }",
"public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }",
"public String getModifyUser() {\n return modifyUser;\n }",
"public String getModifyUser() {\n return modifyUser;\n }",
"public String getModifyUser() {\n return modifyUser;\n }",
"public String getModifyUser() {\n return modifyUser;\n }",
"public String getModifyUser() {\n return modifyUser;\n }",
"public Long getUpdateUserid() {\r\n\t\treturn updateUserid;\r\n\t}",
"public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}",
"public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}",
"boolean adminUpdate(int userId, int statusId, int reimbId);",
"public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}",
"U getUpdateby();",
"@Override\n\tpublic void update(UserRole vo) {\n\n\t}",
"int updateByPrimaryKey(RoleUser record);",
"public Long getUser() {\n return user;\n }",
"public Byte getUserRole() {\r\n return userRole;\r\n }",
"@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}",
"public boolean update(User u);",
"public User UpdateUser(User user){\n\t\t\treturn user;\n\t\t}",
"public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}",
"public Long getModifiedBy() {\n return modifiedBy;\n }",
"@Override\n\tpublic Integer update(Role role) {\n\t\treturn roleDao.update(role);\n\t}",
"public void update(User user);",
"@Schema(description = \"Details of the user who last updated the worklog.\")\n public AllOfWorklogUpdateAuthor getUpdateAuthor() {\n return updateAuthor;\n }",
"public int getModifiedBy() {\n return modifiedBy;\n }",
"void setUserUpdated(final Long userUpdated);",
"@Override\n\tpublic RoleUtilisateur getRoleUtilisateur(Integer idR) {\n\t\treturn roleUtilisateurDAO.getRoleUtilisateur(idR);\n\t}",
"public PersonAndOrganization getLastModifyingUser()\r\n\t{\r\n\t\treturn lastModifyingUser;\r\n\t}",
"public User getUser(){\n return User.getUser(this.event.getAuthor());\n }",
"public User getChangedBy() {\n\t\treturn null;\n\t}",
"int updateByPrimaryKey(PlatformAdminRoleUser record);",
"SysRoleUser selectByPrimaryKey(Long id);",
"public String getLastUpdateUser() {\n return lastUpdateUser;\n }",
"public String getLastUpdateUser() {\n return lastUpdateUser;\n }",
"int updateByPrimaryKey(SysRoleUser record);",
"@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdateBy() {\n return updateBy;\n }",
"public Long getUpdateBy() {\n return updateBy;\n }",
"public Long getUpdateBy() {\n return updateBy;\n }",
"public Short getModifyUserIdentity() {\n return modifyUserIdentity;\n }",
"public Short getModifyUserIdentity() {\n return modifyUserIdentity;\n }",
"public User updateUser(User user);",
"int updateByPrimaryKeySelective(RoleUser record);",
"public java.lang.String getUserRole() {\r\n return userRole;\r\n }",
"public boolean isUpdateUserModified() {\n return updateUser_is_modified; \n }",
"void update(User user);",
"void update(User user);",
"int updateByPrimaryKey(User_Role record);",
"@Override\n\tpublic int modifyUser(User_role newUser) throws Exception{\n\t\treturn userMapper.updateUser(newUser);\n\t}",
"private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }"
] | [
"0.6935523",
"0.6919036",
"0.6805481",
"0.6764016",
"0.67001355",
"0.6623392",
"0.6623392",
"0.66216785",
"0.6618176",
"0.6618176",
"0.6618176",
"0.6618176",
"0.6618176",
"0.6618176",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.66118455",
"0.6551252",
"0.6509737",
"0.6495516",
"0.6495516",
"0.64547586",
"0.64317006",
"0.637957",
"0.63433105",
"0.6336786",
"0.632434",
"0.6299994",
"0.62722147",
"0.6227973",
"0.6224233",
"0.61865544",
"0.6183632",
"0.6165747",
"0.6158169",
"0.6155085",
"0.61458844",
"0.61458844",
"0.61323744",
"0.61323744",
"0.61323744",
"0.61323744",
"0.61323744",
"0.6067441",
"0.60300213",
"0.6015437",
"0.6001548",
"0.59856236",
"0.59638023",
"0.5962464",
"0.5942184",
"0.5908324",
"0.5885271",
"0.5879976",
"0.5872067",
"0.58561444",
"0.5852489",
"0.58393776",
"0.58343047",
"0.5831346",
"0.58179116",
"0.5803313",
"0.5797748",
"0.5793661",
"0.57796675",
"0.57539964",
"0.57517755",
"0.5736591",
"0.5729938",
"0.57069784",
"0.57069784",
"0.5695691",
"0.56907207",
"0.5684821",
"0.5684821",
"0.5684821",
"0.5676638",
"0.5676638",
"0.5670863",
"0.56681883",
"0.5666931",
"0.5648364",
"0.5643776",
"0.5643776",
"0.56292427",
"0.5626407",
"0.56225693"
] | 0.63900524 | 35 |
Set the updated by user of the role. | public void setUpdatedBy(Long updatedBy) {
this.updatedBy = updatedBy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }",
"@Override\n\tpublic void update(UserRole vo) {\n\n\t}",
"public void setUpdatedBy(UserItem userItem) {\n this.updatedBy = userItem;\n }",
"@Override\n\tpublic void updateRoleUtilisateur(RoleUtilisateur r) {\n\t\troleUtilisateurDAO.udpateRoleUtilisateur(r);\n\t}",
"public void setModifiedByUser(long modifiedByUser);",
"public void setUpdateUser(Integer updateUser) {\n this.updateUser = updateUser;\n }",
"void setUserUpdated(final Long userUpdated);",
"public void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }",
"public void setUpdateUser(Long updateUser) {\n this.updateUser = updateUser;\n }",
"public void update(User obj) {\n\t\t\n\t}",
"public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, 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->setRole()\", 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}",
"@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}",
"public void setUpdateUser(String newVal) {\n if ((newVal != null && this.updateUser != null && (newVal.compareTo(this.updateUser) == 0)) || \n (newVal == null && this.updateUser == null && updateUser_is_initialized)) {\n return; \n } \n this.updateUser = newVal; \n\n updateUser_is_modified = true; \n updateUser_is_initialized = true; \n }",
"@Override\n\tpublic void updateUser(user theUser) {\n\t}",
"public UserItem getUpdatedBy() {\n return updatedBy;\n }",
"public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }",
"public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }",
"public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }",
"void setUpdateby(final U lastModifiedBy);",
"public void setModifiedByUser(String modifiedByUser);",
"@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}",
"public void updateUser(User user) {\n\t\t\r\n\t}",
"@Override\n\tpublic int modifyUser(User_role newUser) throws Exception{\n\t\treturn userMapper.updateUser(newUser);\n\t}",
"@Override\n public void setRole(User u) {\n loginTrue(u.getName());\n uRole = u.getUserRole();\n switch (uRole) {\n case 1:\n nhanvien.setEnabled(true);\n break;\n case 2:\n quanly.setEnabled(false);\n break;\n case 3:\n break;\n case 4:\n dathang.setEnabled(false);\n break;\n case 5:\n baocao.setEnabled(false);\n break;\n }\n }",
"void update(String userName, String password, String userFullname,\r\n\t\tString userSex, int userTel, String role);",
"void editUser(String uid, User newUser);",
"public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }",
"public boolean update(User u);",
"LoggedUser changeRole(String roleId) throws IOException;",
"@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}",
"public void setUpdateUser(String updateUser) {\n this.updateUser = updateUser;\n }",
"public void setUpdateUser (String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}",
"@Override\r\n\tpublic int updRole(Role role) {\n\t\treturn 0;\r\n\t}",
"public void update(User user);",
"private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }",
"public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }",
"public void update(User u) {\n\r\n\t}",
"public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }",
"private void channelPrivilegedUserUpdate() {\n String userKey = builder.getPersonalUser().getUserKey();\n if (channel.getPrivilegedUsers().size() != 0) {\n ArrayList<String> members = new ArrayList<>();\n for (User user : channel.getPrivilegedUsers()) {\n members.add(user.getId());\n }\n String[] membersArray = members.toArray(new String[0]);\n // send update to server\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), channel.isPrivilege(), membersArray, response -> {\n });\n } else {\n channel.setPrivilege(false);\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), false, null, response -> {\n });\n }\n }",
"@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}",
"@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"administrators/{id}\")\n Call<Void> updateUser(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Body UserBody userBody\n );",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public String updatedBy() {\n return this.updatedBy;\n }",
"void changeRole(User user, Role role, String token) throws AuthenticationException;",
"@Override\r\n\tpublic boolean updateUsuario(Usuario user) {\n\t\treturn false;\r\n\t}",
"public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}",
"public void updateUser(Person user) {\n\t\t\n\t}",
"@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}",
"public void editUser(User user) {\n\t\t\n\t}",
"public void setUpdateUser(String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}",
"public void setUpdateUser(String updateUser) {\r\n\t\tthis.updateUser = updateUser;\r\n\t}",
"@Override\n public void edit(User user) {\n }",
"public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }",
"int updateByPrimaryKey(RoleUser record);",
"public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }",
"User modifyUser(Long user_id, User user);",
"public void modifyUser() {\n\t\tUser selectedUser = null;\r\n\t\tselectedUser = tableUser.getSelectionModel().getSelectedItem();\r\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tif (selectedUser != null) {\r\n\t\t\t\tframeManager.modifyUser(user, selectedUser);\r\n\t\t\t\tpesquisar();\r\n\t\t\t} else {\r\n\t\t\t\tAlertUtils.alertErroSelecionar(\"Para modificar um usuario é necessário selecionar um!\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public String getUpdatedBy() {\r\n return updatedBy;\r\n }",
"@Override\r\n\tpublic void updateRole(Role role) {\n\t\troleDao.updateRole(role);\r\n\t}",
"@Override\r\n\tpublic void update(Usuario t) {\n\t\t\r\n\t}",
"public Long getUpdateUser() {\n return updateUser;\n }",
"public void setRole(User user, UserRole role) {\n\t user.setRole(role);\n\t}",
"@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}",
"public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}",
"@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }",
"public User updateUser(User user);",
"@Override\n\tpublic void modifierUser(User c) {\n\t\t\n\t}",
"@Override\n\tpublic void updatePassword(AdminUser userModel) {\n\n\t}",
"int updateByPrimaryKey(PlatformAdminRoleUser record);",
"public void setModifieduser(Long modifieduser) {\n this.modifieduser = modifieduser;\n }",
"public void updateUser(User oldUser, User newUser) ;",
"int updateByPrimaryKey(SysRoleUser record);",
"public void setRole(String role)\n {\n _role=role;\n }",
"void setAdminStatus(User user, boolean adminStatus);",
"public Long saveUser(User user, User modifiedBy);",
"public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }",
"public void setModifyUser(Integer modifyUser) {\n this.modifyUser = modifyUser;\n }",
"void updateUser(@Nonnull User user);"
] | [
"0.6737584",
"0.66380453",
"0.65371305",
"0.65069824",
"0.65034604",
"0.64570796",
"0.64488995",
"0.64359987",
"0.6432915",
"0.63808167",
"0.63727194",
"0.6365146",
"0.63642883",
"0.63433784",
"0.6333313",
"0.63234043",
"0.63234043",
"0.63234043",
"0.63231546",
"0.6308395",
"0.6286417",
"0.6268495",
"0.6256831",
"0.6218559",
"0.62068754",
"0.6200087",
"0.6189961",
"0.61701804",
"0.61666477",
"0.6160694",
"0.6132114",
"0.61274546",
"0.6126969",
"0.61253524",
"0.61115915",
"0.6095128",
"0.60947686",
"0.60678315",
"0.6060861",
"0.6058344",
"0.6054283",
"0.6031755",
"0.6026193",
"0.6026193",
"0.6026193",
"0.6026193",
"0.601363",
"0.60117996",
"0.6009122",
"0.5997099",
"0.59853727",
"0.5985335",
"0.5984751",
"0.5978914",
"0.5978914",
"0.5969302",
"0.59683514",
"0.5966457",
"0.59629047",
"0.5953965",
"0.59532154",
"0.59513044",
"0.59487927",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.5942348",
"0.59399754",
"0.5935824",
"0.5932195",
"0.5919634",
"0.5913321",
"0.59102845",
"0.5908604",
"0.59047633",
"0.58964795",
"0.5888479",
"0.58710265",
"0.5863681",
"0.5863372",
"0.5860024",
"0.5859234",
"0.5859206",
"0.5857425",
"0.5856735",
"0.5848588",
"0.5845877",
"0.5841673"
] | 0.5933853 | 80 |
Get the created date time of the role. | public DateTime getCreatedDateTime() {
return createdDateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getCreatedTime();",
"public long getCreatedTime() {\n return createdTime;\n }",
"public Date getCreatedTime() {\n return createdTime;\n }",
"public Date getCreatedTime() {\n return createdTime;\n }",
"public Date getCreatedTime() {\n return createdTime;\n }",
"public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}",
"public String getCreatedTime() {\n return createdTime;\n }",
"public int getCreatedTime() {\n return createdTime_;\n }",
"public String getCreatedTime() {\n return this.CreatedTime;\n }",
"public String getCreatedTime() {\n return this.CreatedTime;\n }",
"public int getCreatedTime() {\n return instance.getCreatedTime();\n }",
"public DateTime createdTime() {\n return this.createdTime;\n }",
"public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}",
"public long getCreateTime() {\n return createTime_;\n }",
"public long getCreateTime() {\n return createTime_;\n }",
"public String getDateCreated() {\n return this.dateCreated.toString();\n }",
"public String getDateCreated() {\n return this.dateCreated.toString();\n }",
"public long getCreateTime() {\n return this.createTime;\n }",
"Date getCreatedDate();",
"public java.util.Date getCreatedTime() {\n return this.createdTime;\n }",
"public OffsetDateTime getCreatedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Created_Time\");\n\n\t}",
"Date getDateCreated();",
"public Long getCreateTime() {\n\t\treturn createTime;\n\t}",
"public Date getCreateTime() {\n\t\treturn this.createTime;\n\t}",
"public abstract long getCreatedTime();",
"public Long getCreateTime() {\n return createTime;\n }",
"public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }",
"public Date getDateCreated();",
"String timeCreated();",
"public Calendar getCreatedTime() {\n return this.createdTime;\n }",
"public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }",
"public Date getCreated() {\r\n\t\treturn created;\r\n\t}",
"public Date getCreated() {\r\n\t\treturn created;\r\n\t}",
"public int getCreateTime() {\n return createTime_;\n }",
"public int getCreateTime() {\n return createTime_;\n }",
"public Date getCreateTime() {\n\t\treturn createTime;\n\t}",
"public Date getCreateTime() {\n\t\treturn createTime;\n\t}",
"public Date getCreateTime() {\n\t\treturn createTime;\n\t}",
"public Date getCreateTime() {\n\t\treturn createTime;\n\t}",
"public Date getCreateTime() {\n\t\treturn createTime;\n\t}",
"public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}",
"public Date getCreateTime() {\n return this.createTime;\n }",
"public Date getCreateTime() {\n return this.createTime;\n }",
"public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}",
"public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreatedTs() {\n\t\treturn createdTs;\n\t}",
"public String getCreateTime() {\n return createTime;\n }",
"public String getCreateTime() {\n return createTime;\n }",
"public String getCreateTime() {\n return createTime;\n }",
"public String getCreateTime() {\n return createTime;\n }",
"public String getCreateTime() {\n return createTime;\n }",
"public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}",
"public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}",
"public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}",
"public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}",
"public java.lang.Long getCreated() {\n return created;\n }",
"public String getCreateTime() {\r\n return createTime;\r\n }",
"public String getDateCreated(){\n return dateCreated.toString();\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }"
] | [
"0.7478215",
"0.7318478",
"0.7261368",
"0.7261368",
"0.7261368",
"0.7257845",
"0.72455466",
"0.71699905",
"0.71618366",
"0.71618366",
"0.71450293",
"0.7113842",
"0.7113531",
"0.71116257",
"0.71113116",
"0.7082328",
"0.7082328",
"0.7077577",
"0.7070444",
"0.70690954",
"0.70609313",
"0.7044117",
"0.7030715",
"0.7028182",
"0.70232755",
"0.70217127",
"0.7021646",
"0.7007415",
"0.7004326",
"0.7002894",
"0.69930863",
"0.69861305",
"0.69861305",
"0.69813275",
"0.6980537",
"0.6969046",
"0.6969046",
"0.6969046",
"0.6969046",
"0.6969046",
"0.69677734",
"0.69652295",
"0.69652295",
"0.6964527",
"0.6964527",
"0.6953597",
"0.6953401",
"0.69372326",
"0.69372326",
"0.69372326",
"0.69372326",
"0.69372326",
"0.6916078",
"0.6916078",
"0.6916078",
"0.6916078",
"0.6912863",
"0.69118",
"0.6909873",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698",
"0.6907698"
] | 0.0 | -1 |
Set the created date time of the role. | public void setCreatedDateTime(DateTime createdDateTime) {
this.createdDateTime = createdDateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setCreatedDate(Date createdDate);",
"public void setCreatedDate(Date createdDate);",
"public void setDateCreated(Date dateCreated);",
"void setDateCreated(final Date dateCreated);",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}",
"public void setCreated(Date created) {\r\n this.created = created;\r\n }",
"public void setCreated(Date created) {\r\n this.created = created;\r\n }",
"public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }",
"public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }",
"public void setCreatedOn(DateTime createdOn);",
"public void setCreatedDate(Date value) {\n this.createdDate = value;\n }",
"public void setCreatedDate(Date value) {\n this.createdDate = value;\n }",
"public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}",
"public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}",
"public void setCreatedDate(Date createdDate) {\n this.createdDate = createdDate;\n }",
"public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }",
"void setCreateDate(Date date);",
"public void setCreatedTime(Date createdTime) {\n this.createdTime = createdTime;\n }",
"public void setCreatedTime(Date createdTime) {\n this.createdTime = createdTime;\n }",
"public void setCreatedTime(Date createdTime) {\n this.createdTime = createdTime;\n }",
"private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }",
"public void setCreationDate(Date creationDate);",
"private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }",
"public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }",
"public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }",
"public final void setDateCreated(java.util.Date datecreated)\r\n\t{\r\n\t\tsetDateCreated(getContext(), datecreated);\r\n\t}",
"public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }",
"public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }",
"public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }",
"public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }",
"void setCreateDate(final Date creationDate);",
"public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreatedDate(Timestamp aCreatedDate) {\n createdDate = aCreatedDate;\n }",
"public void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreateddate( Date createddate )\n {\n this.createddate = createddate;\n }",
"public void setCreatedDate(Date createdDate) {\n\t\tthis.createdDate = createdDate;\n\t}",
"public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreatedDate(Long createdDate) {\r\n\t\tthis.createdDate = createdDate;\r\n\t}",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreateddate(Date createddate) {\n this.createddate = createddate;\n }",
"public void setCreationDate(Date creationDate) {\n }",
"public void setCreated(Timestamp created) {\n this.created = created;\n }",
"public void setCreatedTime(LocalDateTime value) {\n set(5, value);\n }",
"@Override\n\tpublic void setCreateDate(Date createDate);",
"@Override\n\tpublic void setCreateDate(Date createDate);",
"public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(createTime);\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setTimeCreate(Date timeCreate) {\n this.timeCreate = timeCreate;\n }",
"public void setCreatedDate(Date createDate) {\n\t\tthis.createdDate = createDate;\n\t}",
"public void setDateCreated(Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}",
"public void setCreatedDate(java.util.Calendar createdDate) {\r\n this.createdDate = createdDate;\r\n }",
"@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }",
"public void setCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n }",
"public void setCreateDate(Date createDate) { this.createDate = createDate; }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }"
] | [
"0.7394338",
"0.7259956",
"0.7226741",
"0.7183786",
"0.7039001",
"0.7039001",
"0.69475913",
"0.6946514",
"0.6946514",
"0.690909",
"0.6889836",
"0.6889836",
"0.6889836",
"0.6889836",
"0.68632996",
"0.68632996",
"0.68469286",
"0.68338746",
"0.68338746",
"0.68287146",
"0.68287146",
"0.6825196",
"0.679817",
"0.6791732",
"0.67862535",
"0.67862535",
"0.67862535",
"0.6762897",
"0.6755321",
"0.6748728",
"0.6739816",
"0.6739816",
"0.6726536",
"0.6722246",
"0.6722246",
"0.6722246",
"0.6720036",
"0.6703444",
"0.6702092",
"0.66858417",
"0.66858417",
"0.66858417",
"0.66652673",
"0.6664257",
"0.66590095",
"0.66590095",
"0.66590095",
"0.665692",
"0.665692",
"0.665692",
"0.665692",
"0.6654425",
"0.6635564",
"0.6635299",
"0.6616118",
"0.6610283",
"0.65999836",
"0.65999836",
"0.65999836",
"0.65999836",
"0.65999836",
"0.65999836",
"0.65999836",
"0.65999836",
"0.6586998",
"0.6576225",
"0.6572462",
"0.6565497",
"0.65624475",
"0.65624475",
"0.6557666",
"0.6552574",
"0.6545972",
"0.6545972",
"0.6536894",
"0.6536894",
"0.6536894",
"0.6536894",
"0.6536894",
"0.6536894",
"0.65188235",
"0.6515814",
"0.64942193",
"0.6492833",
"0.6483316",
"0.6482394",
"0.64804655",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556",
"0.64788556"
] | 0.65730387 | 66 |
Get the updated date time of the role. | public DateTime getUpdatedDateTime() {
return updatedDateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getUpdatedTime() {\n return updatedTime;\n }",
"public Date getUpdatedTime() {\n return updatedTime;\n }",
"public Date getUpdatedTime() {\n return updatedTime;\n }",
"public Date getUpdateTime() {\r\n\t\treturn this.updatedTime;\r\n\t}",
"Date getUpdatedDate();",
"public Date getUpdate_time() {\n return update_time;\n }",
"public Date getUpdate_time() {\n return update_time;\n }",
"public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}",
"public Long getUpdateDatetime() {\n return updateDatetime;\n }",
"public Date getUpdatetime() {\n return updatetime;\n }",
"public Date getUpdatetime() {\n return updatetime;\n }",
"public Date getUpdatedate() {\r\n return updatedate;\r\n }",
"public Date getUpdatetime() {\r\n return updatetime;\r\n }",
"public Date getUpdateTime()\n {\n return data.updateTime;\n }",
"public Date getUpdateTime() {\n\t\treturn this.updateTime;\n\t}",
"public Date getUpdateDatetime();",
"public Date getUpdatedate() {\n return updatedate;\n }",
"public Date getUpdatedate() {\n return updatedate;\n }",
"long getLastUpdatedTime();",
"public DateTime getUpdateTime() {\n return updated;\n }",
"public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }",
"public Date getUpdateTime() {\n return this.updateTime;\n }",
"public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}",
"public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}",
"public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}",
"public Date getUpdateTime() {\r\n\t\treturn updateTime;\r\n\t}",
"public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUpdateTime() {\r\n return updateTime;\r\n }",
"public Date getUserUpdateTime() {\r\n return userUpdateTime;\r\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public Date getUpdateTime() {\n return updateTime;\n }",
"public DateTime getUpdatedTimestamp() {\n\t\treturn this.updatedTimestamp;\n\t}",
"public Date getUpdated() {\n return mUpdated;\n }",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}",
"public Long getUpdateTime() {\n\t\treturn updateTime;\n\t}",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"public Date getUpdateDatime() {\r\n return updateDatime;\r\n }",
"public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}",
"public Date getUpdated() {\r\n return updated;\r\n }",
"public Date getUpdated() {\r\n return updated;\r\n }",
"public Long getUpdateTime() {\n return updateTime;\n }",
"public Long getUpdateTime() {\n return updateTime;\n }",
"public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}",
"public Date getUpdated() {\n return updated;\n }",
"public Date getUpdated() {\n return updated;\n }",
"public Date getUpdated() {\n return updated;\n }",
"public Date getUpdated() {\n return updated;\n }",
"public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }",
"public Date getTimeUpdate() {\n return timeUpdate;\n }",
"public Date getLastupdatedate() {\n return lastupdatedate;\n }",
"public LocalDateTime getUpdateTime() {\n return updateTime;\n }",
"public LocalDateTime getUpdateTime() {\n return updateTime;\n }",
"public LocalDateTime getUpdateTime() {\n return updateTime;\n }",
"public java.util.Date getUpdateTime() {\n return this.updateTime;\n }"
] | [
"0.7442995",
"0.7442995",
"0.7442995",
"0.72297394",
"0.7208987",
"0.7163522",
"0.7163522",
"0.71628743",
"0.7122771",
"0.7102265",
"0.7102265",
"0.70963454",
"0.70937985",
"0.70629966",
"0.7053357",
"0.7049182",
"0.7040546",
"0.7040546",
"0.70322156",
"0.70284885",
"0.7022802",
"0.6992411",
"0.6990393",
"0.6990393",
"0.6990393",
"0.6988191",
"0.69638896",
"0.69501424",
"0.69501424",
"0.69501424",
"0.69501424",
"0.69498795",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6942295",
"0.6928198",
"0.6913819",
"0.6911268",
"0.6911268",
"0.69069046",
"0.6903188",
"0.69021094",
"0.69021094",
"0.6899239",
"0.68869525",
"0.68869525",
"0.6885593",
"0.6885593",
"0.68825847",
"0.6875839",
"0.6875839",
"0.68742007",
"0.68742007",
"0.687288",
"0.6864221",
"0.68632114",
"0.68534523",
"0.68534523",
"0.68534523",
"0.6833812"
] | 0.0 | -1 |
Set the updated date time of the role. | public void setUpdatedDateTime(DateTime updatedDateTime) {
this.updatedDateTime = updatedDateTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setLastUpdatedTime();",
"void setUpdatedDate(Date updatedDate);",
"@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}",
"void setDateUpdated(final Date dateUpdated);",
"public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }",
"public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }",
"public void setUpdatedTime(Date updatedTime) {\n this.updatedTime = updatedTime;\n }",
"public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }",
"public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }",
"public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }",
"public void setUpdateTime(DateTime updateTime) {\n this.updated = updateTime;\n }",
"public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }",
"public void setUpdatetime(Date updatetime) {\n this.updatetime = updatetime;\n }",
"public void setUpdateDatetime(Date updateDatetime);",
"@Override\n\tpublic void setUpdateTime(Date updateTime) {\n\t\t\n\t}",
"public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }",
"public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }",
"public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }",
"public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }",
"public void setUpdatedOn(Date updatedOn);",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdated(Date updated) {\n this.updated = updated;\n }",
"public void setUpdated(Date updated) {\n this.updated = updated;\n }",
"public void updateDateModified() {\n dateModified = DateTime.now();\n }",
"private void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }",
"public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }",
"public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }",
"public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }",
"public void setUpdateTime(Date updateTime) {\r\n this.updateTime = updateTime;\r\n }",
"public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }",
"public void setUpdatedDate(Date date) {\n\t\tthis.updatedDate=date;\r\n\t}",
"public void setUpdated(Date updated) {\r\n\t\tthis.updated = updated;\r\n\t}",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }",
"public void setUpdateTime(Date updateTime) {\r\n\t\tthis.updateTime = updateTime;\r\n\t}",
"public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}",
"public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}",
"public void setUpdateTime(Date updateTime) {\n\t\tthis.updateTime = updateTime;\n\t}",
"public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }",
"public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }",
"public void setUpdateTime(LocalDateTime updateTime) {\n this.updateTime = updateTime;\n }",
"public final void updateModifyDateTime( long modTime) {\n \tm_modifyDate = modTime;\n }",
"public final void updateChangeDateTime() {\n \tm_changeDate = System.currentTimeMillis();\n }",
"public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }",
"public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }",
"public void updateLastSeenTime() {\n\t\tsetLastSeenDate(new Date());\n\t}",
"public void setUpdatedDateTime(ZonedDateTime updatedDateTime) {\n this.updatedDateTime = updatedDateTime;\n }",
"public void setDateModified(Date dateModified);",
"public void setUpdateTime(java.util.Date updateTime) {\n this.updateTime = updateTime;\n }",
"public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }",
"public void setUpdateTime(Date updateTime) {\n\t\tsetField(\"updateTime\", updateTime);\n\t}",
"public void setUserUpdateTime(Date userUpdateTime) {\r\n this.userUpdateTime = userUpdateTime;\r\n }",
"public void setLastUpdated(final Date date) {\n this.lastUpdated = date;\n }",
"public void setUpdateDate(Timestamp updateDate) {\n this.updateDate = updateDate;\n }",
"public Date getUpdatedate() {\r\n return updatedate;\r\n }"
] | [
"0.7507754",
"0.7210482",
"0.70258206",
"0.70184505",
"0.6983534",
"0.6983534",
"0.6983534",
"0.6887964",
"0.6877439",
"0.68657696",
"0.6859414",
"0.68479615",
"0.68479615",
"0.6832302",
"0.6830135",
"0.6818841",
"0.6818841",
"0.6800996",
"0.6800996",
"0.6757964",
"0.6750744",
"0.6750744",
"0.6747144",
"0.6747144",
"0.67392975",
"0.6736003",
"0.66641873",
"0.66641873",
"0.66641873",
"0.66641873",
"0.66497064",
"0.66386193",
"0.6629821",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.6605798",
"0.66035867",
"0.6591999",
"0.6531429",
"0.6531429",
"0.6531429",
"0.6519939",
"0.65100884",
"0.65100884",
"0.65100884",
"0.6477005",
"0.6452269",
"0.6403081",
"0.6403081",
"0.63832897",
"0.62934136",
"0.62898976",
"0.62705547",
"0.6262235",
"0.62549555",
"0.6248501",
"0.6229249",
"0.62152153",
"0.6208875"
] | 0.6545511 | 79 |
Get the is active of the role. | public Boolean getIsActive() {
return isActive;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getIsActiveAsBoolean() {\n if (this.isActive == null) {\n return null;\n } else if (this.isActive.toLowerCase().equals(\"true\")) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean getIsActive()\n\t{\n\t\treturn isActive;\n\t}",
"public boolean getIsActive() {\n return localIsActive;\n }",
"public boolean isActive() {\n\t\treturn (active_status);\n\t}",
"public boolean getIsActive() {\n\t\treturn isActive;\n\t}",
"public boolean isActive() {\n\t\treturn activeProperty().getValue();\n\t}",
"boolean hasRole();",
"public boolean getIsActive() {\n return isActive_;\n }",
"public boolean isIsActive() {\n return isActive;\n }",
"public boolean isIsActive() {\r\n return isActive;\r\n }",
"@Accessor(qualifier = \"active\", type = Accessor.Type.GETTER)\n\tpublic Boolean getActive()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ACTIVE);\n\t}",
"public boolean isActive() \n {\n return mIsActive;\n }",
"public Boolean getActive() {\n\t\treturn this.Active;\n\t}",
"public boolean getIsActive() {\n return isActive_;\n }",
"public Boolean isActive() {\n return this.active;\n }",
"@Override\n\tpublic boolean getIsActive();",
"public Boolean isActive();",
"@java.lang.Override\n public boolean getIsActive() {\n return isActive_;\n }",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public int isActive() {\n return isActive;\n }",
"public Boolean getIsActive() {\r\n return isActive;\r\n }",
"public java.lang.Boolean getActive() {\n return active;\n }",
"public Integer getIsActive() {\n return isActive;\n }",
"public Boolean getActive() {\n return this.active;\n }",
"public Boolean getActive() {\n return this.active;\n }",
"public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}",
"public boolean getActive()\n {\n return this.active;\n }",
"public boolean isActive()\n {\n return active;\n }",
"@java.lang.Override\n public boolean getIsActive() {\n return isActive_;\n }",
"public boolean isActive() {\n\t\treturn active;\n\t}",
"public boolean isActive() {\n return this.active;\n }",
"public boolean isActive() {\n return this.active;\n }",
"public boolean isActive() \n {\n return this.active;\n }",
"boolean isActive();",
"boolean isActive();",
"boolean isActive();",
"public boolean isActive( ) {\n\t\treturn active;\n\t}",
"public boolean isActive()\r\n {\r\n return isActive;\r\n }",
"public boolean isActive() {\n\t\treturn this.state;\n\t}",
"public boolean isActive() {\r\n\t\treturn active;\r\n\t}",
"public boolean isActive() {\r\n return active;\r\n }",
"public boolean isActive() {\n return active;\n }",
"public boolean isActive() {\n return active;\n }",
"public boolean isActive() {\n return active;\n }",
"public boolean isActive() {\n return active;\n }",
"public boolean isActive() {\n return active;\n }",
"public boolean isActive() {\n return active;\n }",
"public boolean isActive() {\r\n return active;\r\n }",
"public boolean isActive() {\r\n return active;\r\n }",
"public boolean getActive();",
"public boolean getActive();",
"public final boolean isActive() {\n synchronized (this.lifecycleMonitor) {\n return this.active;\n }\n }",
"public boolean isActive() {\n return this.active;\n }",
"public boolean isActive(){\n\t\treturn active;\n\t}",
"public Boolean getCanActivate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.canActivate);\r\n\t}",
"public boolean isActive() {\n return isActive;\n }",
"public boolean isActive() {\n return isActive;\n }",
"public boolean isActive() {\n return isActive;\n }",
"@Override\n\tpublic int getIsActive() {\n\t\treturn _permissionType.getIsActive();\n\t}",
"public static boolean isActive(){\n return active;\n }",
"public final boolean isActive() {\n return isActive;\n }",
"public boolean isActiveUser() {\r\n if (currentProcessInstance == null)\r\n return false;\r\n \r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return false;\r\n \r\n Actor[] users;\r\n for (int i = 0; i < states.length; i++) {\r\n try {\r\n users = currentProcessInstance.getWorkingUsers(states[i]);\r\n for (int j = 0; j < users.length; j++) {\r\n if (getUserId().equals(users[j].getUser().getUserId()))\r\n return true;\r\n }\r\n } catch (WorkflowException ignored) {\r\n // ignore unknown state\r\n continue;\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public static boolean isActive() {\n\t\treturn activated;\n\t}",
"@Override\n\tpublic java.lang.String getIsActive() {\n\t\treturn _locMstLocation.getIsActive();\n\t}",
"int isActive();",
"public boolean isActiv(){\r\n\t\treturn this.activ;\r\n\t}",
"public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isActive(){\n return active;\n }",
"public boolean isActive(){\n return active;\n }",
"public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }",
"public boolean isActive(){\r\n\t\treturn active_;\r\n\t}",
"boolean hasActive();",
"private boolean isActive() {\n return isActive;\n }",
"public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean isActive() {\n assert this.isHeldByCurrentThread();\n return isActive;\n }",
"public Boolean getActiveflag() {\n return activeflag;\n }",
"public boolean isActive () {\n\t\treturn body.isActive();\n\t}",
"public boolean hasActive() {\n return active_ != null;\n }",
"public Map<String, Boolean> getIsInRole() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, Boolean>() {\n @Override\n public Boolean get(Object key) {\n return getUserTicket().isInRole(Role.valueOf((String) key));\n }\n });\n }",
"public boolean isActive() {\n return (this == RecordStatusEnum.ACTIVE);\n }",
"HasValue<Boolean> getIsActive();",
"public boolean active(){\r\n\t\treturn active;\r\n\t}",
"public boolean isActive() {\n\t\treturn stateMachine.isActive();\n\t}",
"public int aclActiveStatusEnum() {\n return aclActiveStatusEnum;\n }",
"public boolean isActived() {\r\n\t\treturn isActived;\r\n\t}"
] | [
"0.7142858",
"0.71006966",
"0.7074942",
"0.7067497",
"0.7059444",
"0.7028178",
"0.70090526",
"0.6999752",
"0.699342",
"0.6971782",
"0.6949648",
"0.6926994",
"0.69130516",
"0.6891495",
"0.68451744",
"0.6802089",
"0.67986465",
"0.675829",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.67524636",
"0.6750721",
"0.67316693",
"0.6731127",
"0.67271876",
"0.67191297",
"0.67191297",
"0.6697981",
"0.6686681",
"0.66474026",
"0.66311044",
"0.6628548",
"0.66252774",
"0.66252774",
"0.6612027",
"0.6611703",
"0.6611703",
"0.6611703",
"0.6603289",
"0.6596521",
"0.6591856",
"0.6580407",
"0.6562341",
"0.6559669",
"0.6559669",
"0.6559669",
"0.6559669",
"0.6559669",
"0.6559669",
"0.6558671",
"0.6558671",
"0.6555723",
"0.6555723",
"0.65444946",
"0.6541159",
"0.6540198",
"0.6538946",
"0.6533632",
"0.6533632",
"0.6533632",
"0.65325624",
"0.65111667",
"0.64824545",
"0.64688253",
"0.6459017",
"0.64566404",
"0.6452919",
"0.6435165",
"0.6405355",
"0.6384307",
"0.6384307",
"0.6374432",
"0.63683105",
"0.6362125",
"0.6355814",
"0.6349369",
"0.6343544",
"0.634332",
"0.63426095",
"0.63328516",
"0.6332396",
"0.62698513",
"0.62657946",
"0.6258835",
"0.6246544",
"0.62350464",
"0.6229593"
] | 0.67648727 | 17 |
Set the is active of the role. | public void setIsActive(Boolean isActive) {
this.isActive = isActive;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIsActive(boolean value) {\r\n this.isActive = value;\r\n }",
"public abstract boolean setActive(boolean active);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setIsActive (boolean IsActive);",
"public void setActive(boolean isActive) {\r\n\t\tthis.isActive = isActive;\r\n\t}",
"public void setActive(boolean active);",
"public void setActive(boolean active);",
"public void setActive(boolean active);",
"public void setActive(boolean value) {\n this.active = value;\n }",
"public void setActive() {\n\t\tactive = true;\n\t}",
"public void setActive( boolean tof ) {\n\t\tthis.active = tof;\n\t}",
"protected synchronized void setActive(final boolean b) {\n active = b;\n }",
"public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}",
"public void setActive(boolean aIsActive) {\n mIsActive = aIsActive;\n\n if (!mIsActive) {\n stop();\n }\n }",
"public void setActive(boolean active) {\n _isActive = active;\n }",
"public void setIsActive( boolean isActive )\n\t{\n\t\tthis.isActive\t= isActive;\n\t}",
"public void setActive(boolean active) { \n this.active = active;\n }",
"public void setIsActive( Boolean isActive ) {\n this.isActive = isActive;\n }",
"public void setIsActive(Boolean isActive) {\r\n this.isActive = isActive;\r\n }",
"public void setActive(boolean active){\r\n\t\tactive_ = active;\r\n\t}",
"@Override\n\tpublic void setActive(Boolean active) {\n\t\tthis.active = active;\n\t}",
"public void setActive(boolean active)\r\n\t{\r\n\t\tif (this.active != active)\r\n\t\t{\r\n\t\t\tthis.active = active;\r\n\t\t\tapply();\r\n\t\t}\r\n\t}",
"public void setActive(Boolean active) {\n this.active = active;\n }",
"public void setActive() {\n setState(true);\n }",
"@Accessor(qualifier = \"active\", type = Accessor.Type.SETTER)\n\tpublic void setActive(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(ACTIVE, value);\n\t}",
"public void setIsActive(boolean isActive) {\n this.isActive = isActive;\n }",
"public void setActive (boolean flag) {\n\t\tbody.setActive(flag);\n\t}",
"public void setActive(boolean active) {\r\n this.active = active;\r\n }",
"public void setActive(){\n paycheckController.setActive();\n }",
"public void setIsActive(boolean param) {\n // setting primitive attribute tracker to true\n localIsActiveTracker = true;\n\n this.localIsActive = param;\n }",
"public void setActive(boolean active)\n {\n this.active = active;\n }",
"public void active(boolean value) {\n\t\tactive = value;\n\t}",
"@Override\n public void setActive(boolean active) {\n this.active = active;\n }",
"public void setIsActive(boolean isActive) {\n\t\tthis.isActive = isActive;\n\t}",
"public void setIsActive(Byte isActive) {\n this.isActive = isActive;\n }",
"public void setActiveStatus(Boolean active){ this.status = active; }",
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public void setIsActive(Integer isActive) {\n this.isActive = isActive;\n }",
"protected void setActive(boolean activate) {\n\t\tif (this.active ^ activate) {\r\n\t\t\tthis.active = activate;\r\n\t\t\t\r\n\t\t\tthis.img = AbstractRelicModRelic.getRelicTexture(this.relicId, activate);\r\n\t\t}\r\n\t}",
"public void setActive(boolean active) {\r\n this.active = active;\r\n }",
"@Override\n\tpublic void setIsActive(int isActive) {\n\t\t_permissionType.setIsActive(isActive);\n\t}",
"public void setActive(boolean active) {\n this.active = active;\n }",
"public void setActive(boolean active) {\n this.active = active;\n }",
"public void setActive(boolean active) {\n this.active = active;\n }",
"public void setActive(boolean active) {\n\t\tactiveProperty().setValue(active);\n\t}",
"public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }",
"public Builder setIsActive(boolean value) {\n \n isActive_ = value;\n onChanged();\n return this;\n }",
"public Builder setIsActive(boolean value) {\n \n isActive_ = value;\n onChanged();\n return this;\n }",
"public void setCanActivate ( Boolean canActivate ) {\r\n\t\tgetStateHelper().put(PropertyKeys.canActivate, canActivate);\r\n\t\thandleAttribute(\"canActivate\", canActivate);\r\n\t}",
"@Override\n\tpublic void setIsActive(java.lang.String IsActive) {\n\t\t_locMstLocation.setIsActive(IsActive);\n\t}",
"public void setActive(java.lang.Boolean active) {\n this.active = active;\n }",
"public void setActive(Boolean active) {\n Boolean oldValue = this.active;\n this.active = active;\n forecast.updateForecastFromYr();\n firePropertyChange(\"active\", oldValue, active);\n }",
"public void setActive(Player p, boolean value) {\n this.getInstance(p).setActive(value);\n }",
"public void setActiveflag(Boolean activeflag) {\n this.activeflag = activeflag;\n }",
"public void setActive(Boolean active)\r\n/* */ {\r\n/* 207 */ this.active = active;\r\n/* */ }",
"public void setActive(boolean isActive) {\n if (this.isActive != isActive) {\n resetColors();\n }\n this.isActive = isActive;\n if (isActive) {\n button.setIdleColor(SELECTED_COLOR);\n icon.getMaterial().setColor(\"Color\", SELECTED_ICON_COLOR);\n label.setColor(ColorRGBA.White);\n levelLabel.setColor(SELECTED_LEVEL_COLOR);\n }\n }",
"public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}",
"public void setCurrentUserCanChangeAccountStatus(boolean currentUserCanChangeRole) {\r\n currentUserCanChangeAccountStatus = currentUserCanChangeRole;\r\n }",
"public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}",
"public void setActive(boolean active) {\n this.active = active;\n notifyViews();\n }",
"public void toggleActive(){\n this.active = !this.active;\n }",
"public void setActive(boolean active) {\n isActive = active;\n this.refreshDrawable();\n }",
"@Override\n\tpublic Boolean isActve() {\n\t\treturn active;\n\t}",
"public void setActiveFlag(Boolean activeFlag) {\n\t\tthis.activeFlag = activeFlag;\n\t}",
"protected void setCanBeActive(boolean canBeActive) {\n\tmCanBeActive = canBeActive;\n}",
"public void ensureActive() {\n\t\tif (!activeProperty().getValue()) {\n\t\t\tactiveProperty().setValue(true);\n\t\t}\n\t}",
"public void setActived(boolean isActived) {\r\n\t\tif( this.isActived == isActived )\r\n\t\t\tmodified = false;\r\n\t\telse {\r\n\t\t\tmodified = true;\r\n\t\t\tthis.isActived = isActived;\r\n\t\t}\r\n\t}",
"public void activate() {\n\t\tactivated = true;\n\t}",
"public void enable(){\r\n\t\tthis.activ = true;\r\n\t}",
"public void setActiveFlag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }",
"public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }",
"public void setActiveUser(String email, boolean active) {\n\t\tUser user = repo.getUserByEmail(email, true);\n\t\t\n\t\tif(user == null) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.NOT_FOUND, \"El mail ingresado no corresponde con ningún usuario resgistrado.\");\n\t\t}\n\t\t\n\t\tuser.setActive(active);\n\t\trepo.updateUser(user);\n\t}",
"public void setActiveflag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }",
"public static void setActive(profile p){\n active = p;\n }",
"@Override\n public void setRole(User u) {\n loginTrue(u.getName());\n uRole = u.getUserRole();\n switch (uRole) {\n case 1:\n nhanvien.setEnabled(true);\n break;\n case 2:\n quanly.setEnabled(false);\n break;\n case 3:\n break;\n case 4:\n dathang.setEnabled(false);\n break;\n case 5:\n baocao.setEnabled(false);\n break;\n }\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void setActiveFlag(Character aActiveFlag) {\n activeFlag = aActiveFlag;\n }",
"@Override\n public boolean isActive() {\n return amIActive;\n }",
"@Override\n public boolean isActive() {\n return amIActive;\n }",
"public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}",
"protected boolean setActive(String appName) {\n try {\n File active = appFile(appName, \"active\");\n createParentDirs(active);\n return active.createNewFile() && updateTime(appName);\n } catch (IOException e) {\n log.warn(\"Unable to mark app {} as active\", appName, e);\n throw new ApplicationException(\"Unable to mark app as active\", e);\n }\n }",
"public boolean isActive( ) {\n\t\treturn active;\n\t}",
"public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }",
"public boolean isActive() \n {\n return mIsActive;\n }",
"public boolean getIsActive()\n\t{\n\t\treturn isActive;\n\t}",
"protected void setInactive() {\r\n\t\tactive = false;\r\n\t}",
"public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }",
"public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }",
"public boolean getIsActive() {\n\t\treturn isActive;\n\t}"
] | [
"0.7008604",
"0.6944969",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.6806113",
"0.67840135",
"0.6771089",
"0.6771089",
"0.6771089",
"0.6767031",
"0.675759",
"0.6746726",
"0.66897935",
"0.66743946",
"0.66610813",
"0.66176873",
"0.6593736",
"0.65711",
"0.65632784",
"0.6562206",
"0.65163356",
"0.65010554",
"0.64895165",
"0.64848083",
"0.6484273",
"0.64661604",
"0.6450148",
"0.6435589",
"0.64344096",
"0.6430089",
"0.6426213",
"0.6419415",
"0.64179415",
"0.64122576",
"0.6412007",
"0.63975173",
"0.6374129",
"0.6367693",
"0.63675153",
"0.63656664",
"0.6364355",
"0.6324575",
"0.6314055",
"0.6314055",
"0.6314055",
"0.62902653",
"0.62884927",
"0.62856585",
"0.62856585",
"0.6265536",
"0.6244997",
"0.62135255",
"0.62097806",
"0.6192513",
"0.6192008",
"0.61745393",
"0.61543745",
"0.6133698",
"0.6122547",
"0.60832053",
"0.60786235",
"0.60493034",
"0.5961589",
"0.5955452",
"0.5948176",
"0.5940041",
"0.59227425",
"0.5917289",
"0.5901993",
"0.58973515",
"0.58670074",
"0.58595026",
"0.58556515",
"0.5852501",
"0.5852323",
"0.5830231",
"0.582192",
"0.5816493",
"0.57084894",
"0.57084894",
"0.569843",
"0.5698023",
"0.56736124",
"0.56662273",
"0.56638485",
"0.56619513",
"0.5661876",
"0.56588995",
"0.56588995",
"0.56371444"
] | 0.6493256 | 32 |
Get the sync flag for temporary usage. | public Boolean getSyncFlag() {
return syncFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean needsSync() {\n return myNeedsSync;\n }",
"public int getSyncStatus();",
"public boolean getActualsInSync()\r\n {\r\n return (m_actualsInSync);\r\n }",
"public SyncOption getSyncOption() {\n return this.SyncOption;\n }",
"public int getSyncType() {\n return syncType;\n }",
"boolean getUseSynchronousMode();",
"public Short getSynchronous() {\n return synchronous;\n }",
"public int getUserSyncState() {\n return userSyncState;\n }",
"Boolean autoSync();",
"static public boolean isSyncEnabled(Context context) {\n Cursor cursor = null;\n try {\n cursor = context.getContentResolver().query(CONTENT_URI, new String[] { VALUE },\n KEY + \"=?\", new String[] { KEY_SYNC_ENABLED }, null);\n if (cursor == null || !cursor.moveToFirst()) {\n return false;\n }\n return cursor.getInt(0) != 0;\n } finally {\n if (cursor != null) cursor.close();\n }\n }",
"public void setSyncFlag(Boolean syncFlag) {\n this.syncFlag = syncFlag;\n }",
"public void setSyncFlag(Boolean syncFlag) {\n this.syncFlag = syncFlag;\n }",
"public Boolean outOfSync() {\n return this.outOfSync;\n }",
"public void setSyncType(int tmp) {\n this.syncType = tmp;\n }",
"public boolean isTmpLock() {\n \t\treturn tmpLock;\n \t}",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public boolean isvSync() {\n return vSync;\n }",
"static synchronized private boolean getCaptureSync() {\n boolean returnValue = (null == capture) ? DEFAULT_capture : capture;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n // use the override\n returnValue = prefs.getBoolean(SHARED_PREF_KEY_logPersistence_from_server, returnValue);\n }\n return returnValue;\n }",
"public int getAutomationSyncState() {\n return automationSyncState;\n }",
"public float getSyncStatus() {\n Object o = gemFileState.get(STATE_SYNC_PROGRESS);\n if (o == null) {\n return 1;\n }\n float process = 1;\n try {\n process = Float.parseFloat((String) o);\n } catch (Exception e) {\n\n }\n return process;\n }",
"public String getSyncStatus(){\n String msg = null;\n if(this.dbSyncCount() == 0){\n msg = \"SQLite and Remote MySQL DBs are in Sync!\";\n }else{\n msg = \"DB Sync neededn\";\n }\n return msg;\n }",
"public boolean isSynchronizing() {\n\t\treturn false;\n\t}",
"public String getSyncStatus(){\n\n String msg = null;\n if(this.dbSyncCount() == 0){\n msg = \"SQLite and Remote MySQL DBs are in Sync!\";\n }else{\n msg = \"DB Sync needed\\n\";\n }\n return msg;\n }",
"public byte getSyncID() {\n synchronized (this.syncID) {\n return this.syncID[0];\n }\n }",
"public String getSyncStatus()\n {\n String msg = null;\n if(this.dbSyncCount() == 0)\n {\n msg = \"SQLite and Remote MySQL DBs are in Sync!\";\n }else{\n msg = \"DB Sync needed\\n\";\n }\n return msg;\n }",
"public String getUseFlag() {\n return useFlag;\n }",
"public java.lang.Boolean getProcessSync() {\n return processSync;\n }",
"public String getSyncWithSymbol() {\n return sync.get() + (ioStatus.get().equals(EdgeStatus.INPUT) ? \"?\" : \"!\");\n }",
"public boolean getSpecialUnlocked() {\n\t\treturn this.specialUnlocked;\n\t}",
"public SyncManager getSyncManager() {\n return sync;\n }",
"public void setActualsInSync(boolean actualsInSync)\r\n {\r\n m_actualsInSync = actualsInSync;\r\n }",
"public void setSync(boolean sync) {\n this.sync = sync;\n }",
"public int getZoneSyncState() {\n return zoneSyncState;\n }",
"@Override\n\tpublic java.lang.String getSyncVersion() {\n\t\treturn _dmGtStatus.getSyncVersion();\n\t}",
"public java.lang.Boolean getSynchronizeImmediately() {\r\n return synchronizeImmediately;\r\n }",
"public boolean setSynchronize() {\n boolean isSynchronize = checkSynchronize();\n editor.putBoolean(Constans.KeyPreference.TURN_SYNCHRONIZE, !isSynchronize);\n editor.commit();\n return !isSynchronize;\n }",
"public String getForUpdateNowaitString() {\n \t\t// by default we report no support for NOWAIT lock semantics\n \t\treturn getForUpdateString();\n \t}",
"public Boolean getDisableCacheSync() {\r\n return getAttributeAsBoolean(\"disableCacheSync\");\r\n }",
"public synchronized boolean getWorking()\n\t{\n\t\treturn m_working;\n\t}",
"public void setSyncStatus(int syncStatus);",
"public long getSafepointSyncTime() {\n\t\treturn safepointSyncTime;\n\t}",
"public java.lang.String getGlobLock() {\r\n return globLock;\r\n }",
"public java.lang.String getLocalLock() {\r\n return localLock;\r\n }",
"private void checkSyncFlags(GridIoMessage msg) {\n if (!(ClientAbstractMultiNodeSelfTest.commSpiEnabled))\n return;\n\n Object o = msg.message();\n if (!(o instanceof GridDistributedLockRequest))\n return;\n\n IgniteKernal g = ((IgniteKernal) (G.ignite(ignite.configuration().getNodeId())));\n GridCacheContext<Object, Object> cacheCtx = g.internalCache(ClientAbstractMultiNodeSelfTest.REPLICATED_ASYNC_CACHE_NAME).context();\n IgniteTxManager tm = cacheCtx.tm();\n GridCacheVersion v = version();\n IgniteInternalTx t = tm.tx(v);\n if (t.hasWriteKey(cacheCtx.txKey(cacheCtx.toCacheKeyObject(\"x1\"))))\n assertEquals((\"Invalid tx flags: \" + t), CacheWriteSynchronizationMode.FULL_ASYNC, syncMode());\n else\n if (t.hasWriteKey(cacheCtx.txKey(cacheCtx.toCacheKeyObject(\"x2\"))))\n assertEquals((\"Invalid tx flags: \" + t), CacheWriteSynchronizationMode.FULL_SYNC, syncMode());\n else\n if (t.hasWriteKey(cacheCtx.txKey(cacheCtx.toCacheKeyObject(\"x3\"))))\n assertEquals((\"Invalid tx flags: \" + t), CacheWriteSynchronizationMode.FULL_ASYNC, syncMode());\n else\n if (t.hasWriteKey(cacheCtx.txKey(cacheCtx.toCacheKeyObject(\"x4\"))))\n assertEquals((\"Invalid tx flags: \" + t), CacheWriteSynchronizationMode.FULL_SYNC, syncMode());\n\n\n\n\n }",
"boolean withOnFleetSync();",
"void setUseSynchronousMode(boolean useSynchronousMode);",
"@Override\n\tpublic long getUserSyncId() {\n\t\treturn _userSync.getUserSyncId();\n\t}",
"public boolean syncCommitPhase() {\n return syncCommitPhase;\n }",
"public int getOne_time_only() {\n return one_time_only;\n }",
"@VTID(39)\n boolean getRequireManualUpdate();",
"boolean isClockNotSynchronized();",
"public boolean sync(BooleanSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsBoolean();\n } finally {\n lock.unlock();\n } \n }",
"private long m45634d(Context context) {\n boolean[] c = m45633c();\n SharedPreferences sharedPreferences = context.getSharedPreferences(SettingsManager.INSTABUG_SHARED_PREF_NAME, 0);\n c[59] = true;\n long j = sharedPreferences.getLong(\"LAST_FETCHED_AT\", 0);\n c[60] = true;\n return j;\n }",
"public boolean isAtomic() {\n return false;\n }",
"public LdapSync getLdapSync() {\n return this.ldapSync;\n }",
"public String getStolenFlag()\n\t{\n\t\treturn stolenFlag;\n\t}",
"public String getRegisteredFlag()\n\t{\n\t\treturn registeredFlag;\n\t}",
"public boolean isSynchronized() {\n return (getAccessFlags() & Constants.ACCESS_SYNCHRONIZED) > 0;\n }",
"private SYNC(String strSyncMode) {\n this.strSynMode = strSyncMode;\n }",
"boolean getTemporaryInMemory();",
"SyncTree getInfoSyncTree() {\n return infoSyncTree;\n }",
"public boolean isForceCheckIn() {\n return this.forceCheckIn;\n }",
"@Override\n\tpublic java.util.Date getSyncTime() {\n\t\treturn _userSync.getSyncTime();\n\t}",
"public long getSyncSource() {\n return ((long)(buffer.get(8) & 0xff) << 24) |\n ((long)(buffer.get(9) & 0xff) << 16) |\n ((long)(buffer.get(10) & 0xff) << 8) |\n ((long)(buffer.get(11) & 0xff));\n }",
"public static void syncImmediately(Context context) {\n Bundle bundle = new Bundle();\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n ContentResolver.requestSync(getSyncAccount(context),\n context.getString(R.string.content_authority), bundle);\n }",
"public boolean getNotSoFast() {\n return this.notSoFast;\n }",
"String getFlag() {\n return String.format(\"-T%d\", this.value);\n }",
"public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }",
"public String getSettleFlag() {\n return settleFlag;\n }",
"public boolean GetIsLock()\n {\n return this._lock;\n }",
"@Schema(description = \"Whether to skip attempting to do a synced flush on the filesystem of the container (default: false), which is less safe but may be required if the container is unhealthy\")\n public Boolean isSkipSyncedFlush() {\n return skipSyncedFlush;\n }",
"public boolean isForce() {\n return force;\n }",
"public final boolean getLocked() {\n return locked;\n }",
"public boolean getTC() {\n return TC;\n }",
"public Translog.Location getLocationToSync() {\n assert hasMoreOperationsToExecute() == false;\n // we always get to the end of the list by using advance, which in turn sets the state to INITIAL\n assert assertInvariants(ItemProcessingState.INITIAL);\n return locationToSync;\n }",
"public Boolean getSoft() {\n return soft;\n }",
"public Object getPropertySyncObject() {\n return propertySyncObject;\n }",
"public boolean getMasterSyncAutomatically() {\n return ContentResolver.getMasterSyncAutomatically();\n }",
"public boolean isLock() {\n return isLock;\n }",
"public void requestExtraSync()\n {\n executor.requestExtraSync();\n }",
"@Override\r\n\tpublic boolean isSynchronized() {\n\t\treturn false;\r\n\t}",
"public java.lang.String getSyncVersion() {\n\t\treturn _dmHistoryMaritime.getSyncVersion();\n\t}",
"public int haveALock() {\n\t\tString status = getField(NMEASentence.STATUS);\n\t\tif (status==null) return NO_INFO_RE_A_LOCK;\n\t\tif ( StringUtil.equalsIgnoreCase(status,\"V\") ) {\n\t\t\treturn DONT_HAVE_A_LOCK;\n\t\t}\n\t\telse if ( StringUtil.equalsIgnoreCase(status,\"A\") ) {\n\t\t\treturn HAVE_A_LOCK;\n\t\t}\n\t\treturn NO_INFO_RE_A_LOCK;\n\t}",
"public void setTmpLock(boolean tmpLock) {\n \t\tthis.tmpLock = tmpLock;\n \t}",
"public void setSyncOption(SyncOption SyncOption) {\n this.SyncOption = SyncOption;\n }",
"public int getLockon() {\r\n return lockon;\r\n }",
"public String getBlocking_lock_type() {\n return blocking_lock_type;\n }",
"public String getCheckFlag() {\n return checkFlag;\n }",
"public String getCheckFlag() {\r\n return checkFlag;\r\n }",
"public boolean getTC() {\n return TC;\n }",
"public boolean synchronize() {\n\t\treturn false;\n\t}",
"public boolean isSynchronized()\n {\n ensureLoaded();\n return m_flags.isSynchronized();\n }",
"int getFlag();",
"public double getSynchronizationFrequency() {\n return frequency;\n }",
"public boolean GetWaitingFlag() { return this.mWaitingF; }",
"protected boolean getUsed(){\n\t\treturn alreadyUsed;\n\t}",
"static public void setSyncEnabled(Context context, boolean enabled) {\n ContentValues values = new ContentValues();\n values.put(KEY, KEY_SYNC_ENABLED);\n values.put(VALUE, enabled ? 1 : 0);\n context.getContentResolver().insert(CONTENT_URI, values);\n }"
] | [
"0.68282896",
"0.6784905",
"0.675939",
"0.6597897",
"0.6570938",
"0.65255713",
"0.6474954",
"0.6371885",
"0.6252541",
"0.619137",
"0.61884356",
"0.61884356",
"0.61768717",
"0.61363363",
"0.6000568",
"0.59218687",
"0.59218687",
"0.59218687",
"0.59035337",
"0.58715445",
"0.5859053",
"0.5820298",
"0.5740464",
"0.57232875",
"0.57096523",
"0.5700311",
"0.5689398",
"0.56637466",
"0.56273305",
"0.5621162",
"0.56153345",
"0.5581602",
"0.5564779",
"0.55509293",
"0.551927",
"0.5510208",
"0.5507128",
"0.5499916",
"0.5482977",
"0.5477167",
"0.54701495",
"0.5428106",
"0.5405167",
"0.53478473",
"0.5317882",
"0.53127676",
"0.5307842",
"0.52958846",
"0.5284644",
"0.52485585",
"0.5229243",
"0.5218663",
"0.5217341",
"0.5207361",
"0.5204989",
"0.5202269",
"0.5199307",
"0.5192672",
"0.518554",
"0.518079",
"0.51753587",
"0.51650167",
"0.5140921",
"0.51367766",
"0.5135839",
"0.51347315",
"0.5132941",
"0.51298094",
"0.51148",
"0.5113004",
"0.5111425",
"0.5110602",
"0.51064295",
"0.508478",
"0.50729775",
"0.50681174",
"0.50529915",
"0.5050624",
"0.5043085",
"0.5042919",
"0.5041876",
"0.5016014",
"0.5015941",
"0.50146776",
"0.50113934",
"0.5011291",
"0.5010404",
"0.5008589",
"0.5006557",
"0.49953687",
"0.49861547",
"0.4986015",
"0.49849153",
"0.4982095",
"0.49802205",
"0.49729612",
"0.49708903",
"0.49593124",
"0.49559787"
] | 0.75139165 | 1 |
Set the sync flag for temporary usage. | public void setSyncFlag(Boolean syncFlag) {
this.syncFlag = syncFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSync(boolean sync) {\n this.sync = sync;\n }",
"public void setSyncType(int tmp) {\n this.syncType = tmp;\n }",
"public void setSyncStatus(int syncStatus);",
"void setUseSynchronousMode(boolean useSynchronousMode);",
"public void setTmpLock(boolean tmpLock) {\n \t\tthis.tmpLock = tmpLock;\n \t}",
"Boolean autoSync();",
"public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }",
"public void setActualsInSync(boolean actualsInSync)\r\n {\r\n m_actualsInSync = actualsInSync;\r\n }",
"public Boolean getSyncFlag() {\n return syncFlag;\n }",
"public Boolean getSyncFlag() {\n return syncFlag;\n }",
"public void setSyncOption(SyncOption SyncOption) {\n this.SyncOption = SyncOption;\n }",
"public boolean setSynchronize() {\n boolean isSynchronize = checkSynchronize();\n editor.putBoolean(Constans.KeyPreference.TURN_SYNCHRONIZE, !isSynchronize);\n editor.commit();\n return !isSynchronize;\n }",
"public static void syncImmediately(Context context) {\n Bundle bundle = new Bundle();\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n ContentResolver.requestSync(getSyncAccount(context),\n context.getString(R.string.content_authority), bundle);\n }",
"public void setSynchronized(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_SYNCHRONIZED);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_SYNCHRONIZED);\n }",
"private SYNC(String strSyncMode) {\n this.strSynMode = strSyncMode;\n }",
"static public void setSyncEnabled(Context context, boolean enabled) {\n ContentValues values = new ContentValues();\n values.put(KEY, KEY_SYNC_ENABLED);\n values.put(VALUE, enabled ? 1 : 0);\n context.getContentResolver().insert(CONTENT_URI, values);\n }",
"public StaxEventItemWriterBuilder<T> forceSync(boolean forceSync) {\n\t\tthis.forceSync = forceSync;\n\n\t\treturn this;\n\t}",
"public boolean needsSync() {\n return myNeedsSync;\n }",
"public void syncPositionSilent() {\n MathUtil.setVector(this.syncAbsPos, this.liveAbsPos);\n this.syncYaw = this.liveYaw;\n this.syncPitch = this.livePitch;\n this.syncVel = this.liveVel;\n }",
"protected void setFastSyncBundle(Bundle b) {\n\t\tb.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n\t}",
"public static void syncImmediately(Context context) {\n Bundle bundle = new Bundle();\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n ContentResolver.requestSync(getSyncAccount(context), MovieDbContract.CONTENT_AUTHORITY, bundle);\n }",
"public void setSynchronized(boolean fSynchronized)\n {\n ensureLoaded();\n m_flags.setSynchronized(fSynchronized);\n setModified(true);\n }",
"public void setWorking(boolean working) {}",
"public void setSynchronous(Short synchronous) {\n this.synchronous = synchronous;\n }",
"public void setAutoSynchronizationEnabled(boolean b);",
"void setAsyncMode(boolean async) {\n locallyFifo = async;\n }",
"public synchronized void setWorking(boolean w)\n\t{\n\t\tm_working = w;\n\t}",
"public void requestExtraSync()\n {\n executor.requestExtraSync();\n }",
"public void fullSync() {\n if (checkboxRepository.findOne(1).isCheckboxState()) {\n now = LocalDateTime.now();\n\n logger.info(\"De sync start\");\n long startTime = System.nanoTime();\n try {\n fillLocalDB.fillDb();\n smartschoolSync.ssSync();\n } catch (IOException e) {\n e.getStackTrace();\n logger.error(\"Error bij het uitvoeren van de sync\");\n } catch (MessagingException e) {\n logger.error(\"Error bij het verzenden van een mail tijdens de sync\");\n }\n logger.info(\"De sync is voltooid\");\n Statistic statistic = statisticRepository.findOne(1);\n statistic.setAantal(informatService.getTotaalAantalServerErrors());\n statisticRepository.save(statistic);\n informatService.setTotaalAantalServerErrors(0L);\n long endTime = System.nanoTime();\n long duration = (endTime - startTime) / 1000000; //milliseconds\n Statistic statisticDuration = statisticRepository.findOne(3);\n statisticDuration.setAantal(duration);\n statisticRepository.save(statisticDuration);\n Statistic statisticLastSync = statisticRepository.findOne(4);\n statisticLastSync.setError(String.valueOf(now));\n statisticRepository.save(statisticLastSync);\n }\n }",
"@Override\n public void sync(){\n }",
"public void forceSyncRotation() {\n this.rotateCtr = 14;\n }",
"public void setSyncStatus(float syncStatus) {\n gemFileState.put(STATE_SYNC_PROGRESS, Float.toString(syncStatus));\n // gemFileState.put(STATE_SYNC_TIME, System.currentTimeMillis() + \"\");\n }",
"public void setSyncIndex(int index) {\n }",
"public void sync() {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\tif (useMmap) {\n\t\t\tsyncAllMmaps();\n\t\t}\n\t\tif (fileChannel != null) {\n\t\t\ttry {\n\t\t\t\tfileChannel.force(false);\n\t\t\t} catch (Exception ign) {\n\t\t\t}\n\t\t}\n\t\tif (callback != null) {\n\t\t\tcallback.synched();\n\t\t}\n\t}",
"void sync() throws IOException;",
"void sync()throws IOException;",
"public void startSync() {\n mLogger.d(\"Starting silent sync\");\n startSync(new IMediaSyncListener() {\n @Override\n public void step() {\n\n }\n\n @Override\n public void onFinish(int total, int ok, int ko) {\n mLogger.d(\"Silent sync finished, killing the service\");\n SyncService.this.onDestroy();\n }\n });\n }",
"Update withAutoSync(Boolean autoSync);",
"protected void setIntermidiateSyncBundle(Bundle b) {\n\t\tb.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n\t\tb.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n\t}",
"public void enableImmediateTransfers() {\n setProperty(\"transferImmediately\", true);\n _writer.println(\"// Note: enabling immediate transfers\");\n try {\n List<ReferenceType> classes = _vm.classesByName(\"edu.rice.cs.cunit.SyncPointBuffer\");\n ClassType bufferClass = null;\n for (ReferenceType cl : classes) {\n if (cl.name().equals(\"edu.rice.cs.cunit.SyncPointBuffer\")) {\n if (cl instanceof ClassType) {\n bufferClass = (ClassType) cl;\n break;\n }\n }\n }\n if (null == bufferClass) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer class.\");\n }\n Field transferImmediatelyField = bufferClass.fieldByName(\"_transferImmediately\");\n if (null == transferImmediatelyField) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer._transferImmediately field.\");\n }\n try {\n bufferClass.setValue(transferImmediatelyField, _vm.mirrorOf(true));\n } catch (InvalidTypeException e) {\n throw new Error(\"Could not set edu.rice.cs.cunit._transferImmediately to true.\", e);\n } catch (ClassNotLoadedException e) {\n throw new Error(\"Could not set edu.rice.cs.cunit._transferImmediately to true.\", e);\n }\n } finally {\n SwingUtilities.invokeLater(new Runnable() {\n\n public void run() {\n _infoTableModel.fireTableDataChanged();\n }\n });\n }\n enableRecording(true);\n }",
"final void set_syncword(int syncword0) {\n syncword = syncword0 & 0xFFFFFF3F;\n single_ch_mode = ((syncword0 & 0x000000C0) == 0x000000C0);\n }",
"private SyncState() {}",
"private void plannerOutOfSyncWithShoppingList(boolean a){\n settings.setShoppingListOutOfSync(a);\n }",
"@Override\n\tpublic void setSyncTime(java.util.Date syncTime) {\n\t\t_userSync.setSyncTime(syncTime);\n\t}",
"public void setUserSyncState(int userSyncState) {\n this.userSyncState = userSyncState;\n }",
"public static void requestManualSync(Context context) {\n requestManualSync(AccountUtils.getActiveAccount(context));\n }",
"@Override\n public void callSync() {\n\n }",
"public void setUsed()\n\t{\n\t\tm_justReset = false;\n\t}",
"public boolean sync() throws VlException \n\t{\n\t return false; \n\t}",
"public void setWorking() {\n working = true;\n }",
"public void freeze(){\n isFrozen = true;\n }",
"public void setProcessSync(java.lang.Boolean processSync) {\n this.processSync = processSync;\n }",
"public LockSync() {\n lock = new ReentrantLock();\n }",
"@Override\n public void syncState() {\n scheduledCounter.check();\n }",
"@Override\n\tpublic void sync() throws IOException {\n\t\t\n\t}",
"synchronized void setOneshot( boolean value )\n {\n _cyclicTimer = ! value;\n }",
"public final void ogg_sync_init() {// return changed to void\r\n\t\t//if( oy != null ) {\r\n\t\t\t// FIXME is this a bug? may be after clear()?\r\n\t\t\tstorage = -1; /* used as a readiness flag */\r\n\t\t\tclear();\r\n\t\t//}\r\n\t\t//return (0);\r\n\t}",
"T sync() throws IOException, ChallongeException;",
"public void sync() {\n\t\t\n\t\tfor (int i = 0; i <= temporary.length - 1; i++) {\n\t\t\tfinalized[i] = temporary[i];\n\t\t}\n\n//TODO:\t\ttemporary.clear();\n\t}",
"public boolean synchronize() {\n\t\treturn false;\n\t}",
"boolean setFrozen(boolean frozen);",
"boolean getUseSynchronousMode();",
"public synchronized void makeBusy(){\n isBusy = true;\n }",
"public EntryAccess<T> syncImmediately() {\n\t\t\tif(this.entry.queuedDirty) {\n\t\t\t\tthis.entry.dirty = true;\n\t\t\t\tthis.entry.dataManager.dirty = true;\n\t\t\t\tthis.entry.queuedDirty = false;\n\t\t\t}\n\t\t\treturn this;\n\t\t}",
"public boolean isSynchronizing() {\n\t\treturn false;\n\t}",
"public void setStuckCall(){\n this.stuckCall = true;\n }",
"void setValueLocked(boolean valueLocked);",
"public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }",
"public void forceSend() {\n if(!isAsync()) {\n NoXray.log(Level.WARNING, \"Attempted to force send a sync packet, unnecesaary\");\n Thread.dumpStack();\n return;\n }\n\n while(_event.getAsyncMarker().getProcessingDelay() > 0) {\n decrementAsyncProcessingCountAndSendIfZero();\n }\n }",
"public void setMasterSyncAutomatically(boolean sync) {\n ContentResolver.setMasterSyncAutomatically(sync);\n }",
"@Override\n\tpublic void startSync() throws Exception {\n\t}",
"private void setDirty(boolean flag) {\n\tdirty = flag;\n\tmain.bSave.setEnabled(dirty);\n }",
"@Override\n\tpublic void sync() throws IOException\n\t{\n\n\t}",
"public void setSynchronizeImmediately(java.lang.Boolean synchronizeImmediately) {\r\n this.synchronizeImmediately = synchronizeImmediately;\r\n }",
"public void setWaitForEver(boolean set){\r\n waitForEverFlag=set;\r\n }",
"public void setGlobalClockBuffer(boolean value) {\n this.gbuf = value;\n }",
"protected void setFlag() {\n flag = flagVal;\n }",
"protected void setFlag() {\n flag = flagVal;\n }",
"public void setBusy(boolean flag) {\n isBusy = flag;\n }",
"public SyncOption getSyncOption() {\n return this.SyncOption;\n }",
"public void synchronize(int change);",
"private void proceedAfterPermission() {\n new SDsync().execute();\n\n }",
"WithCreate withAutoSync(Boolean autoSync);",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"void syncImmediately() {\r\n // Utilize the current time as the seed time for each of the RecipeSyncServices\r\n long currentTime = Utilities.getCurrentTime();\r\n\r\n // Initialize and start the Services\r\n Intent allRecipesIntent = new Intent(this, AllRecipesService.class);\r\n allRecipesIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(allRecipesIntent);\r\n\r\n Intent epicuriousIntent = new Intent(this, EpicuriousService.class);\r\n epicuriousIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(epicuriousIntent);\r\n\r\n Intent foodIntent = new Intent(this, FoodDotComService.class);\r\n foodIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(foodIntent);\r\n\r\n Intent seriousIntent = new Intent(this, SeriousEatsService.class);\r\n seriousIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(seriousIntent);\r\n }",
"public void sync () throws java.io.SyncFailedException, ObjectStoreException\n {\n }",
"public void sync(){\n byte[] block = new byte[512];\n SysLib.int2bytes(totalBlocks, block, 0);\n SysLib.int2bytes(totalInodes, block, 4);\n SysLib.int2bytes(freeList, block, 8);\n SysLib.rawwrite(0, block);\n }",
"public boolean isvSync() {\n return vSync;\n }",
"static void forceSync(DatasetGraphTDB dsg) {\n dsg.getTripleTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getQuadTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getQuadTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getStoragePrefixes().getNodeTupleTable().getNodeTable().sync();\n // This is not enough -- modules check whether sync needed.\n dsg.sync();\n\n }",
"public void sync()\n {\n byte[] blockData = new byte[Disk.blockSize];\n SysLib.int2bytes(totalBlocks, blockData, 0);\n SysLib.int2bytes(inodeBlocks, blockData, 4);\n SysLib.int2bytes(freeList, blockData, 8);\n SysLib.rawwrite(0, blockData);\n }",
"public void setSoft(boolean soft);",
"public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}",
"public void suspend()\n {\n //#debug debug\n System.out.println(\"Executing Suspend Sync\");\n\n paused = true;\n dispatch(Event.Sync.SUSPEND, null);\n }",
"@Override\n public void fullClockTimeSync(long value, boolean seconds) {\n }",
"public void synchronize(){ \r\n }",
"public void setUsed(){\n\t\talreadyUsed = true;\n\t}",
"@Test\n public void testSynchronizeNotPaired() throws AuthException, IOException {\n presenter.synchronize();\n try {\n presenter.syncingThread.join();\n } catch (InterruptedException e) {}\n assertEquals(SyncStatusEnum.PREAUTHED, presenter.status);\n }"
] | [
"0.7052753",
"0.6926357",
"0.6668743",
"0.6551221",
"0.64188415",
"0.63323784",
"0.6310614",
"0.6261289",
"0.6199937",
"0.6199937",
"0.6178087",
"0.61524415",
"0.61434174",
"0.61336094",
"0.61162597",
"0.6080706",
"0.6064078",
"0.60468495",
"0.592615",
"0.5916164",
"0.5914531",
"0.58891416",
"0.58833957",
"0.58636355",
"0.5840917",
"0.58125234",
"0.5805331",
"0.5803127",
"0.57837796",
"0.57650995",
"0.57643586",
"0.57631457",
"0.5760682",
"0.5740837",
"0.5740695",
"0.5687573",
"0.5662772",
"0.559309",
"0.5591732",
"0.55898935",
"0.55779356",
"0.55667293",
"0.5540912",
"0.553198",
"0.55167115",
"0.55140007",
"0.55122644",
"0.5511254",
"0.54984283",
"0.5480115",
"0.54586375",
"0.54545844",
"0.54434645",
"0.5440682",
"0.54325694",
"0.5409984",
"0.5404328",
"0.5395565",
"0.5388764",
"0.5379899",
"0.5379632",
"0.537521",
"0.53616077",
"0.5347504",
"0.53349084",
"0.5324712",
"0.53230387",
"0.53157926",
"0.53144693",
"0.5298182",
"0.52884823",
"0.5281663",
"0.52804637",
"0.52783364",
"0.5276715",
"0.5272987",
"0.52470297",
"0.52470297",
"0.5241529",
"0.5230988",
"0.52196944",
"0.5216988",
"0.52160347",
"0.52002776",
"0.52002776",
"0.52002776",
"0.5198378",
"0.5180662",
"0.51619613",
"0.5155037",
"0.51427126",
"0.5141661",
"0.5134621",
"0.51313263",
"0.51297915",
"0.5120615",
"0.51197934",
"0.5117853",
"0.5113136"
] | 0.7011128 | 2 |
TODO Autogenerated method stub | @Override
public View getLayout(Context context, ViewGroup container) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void starctActivity(Context context) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean isClickable() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean isShareable() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getContentShareable() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void setDateAndSchedule(String date, String schedule) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getTitle() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Traverse a directory and get all files, and add the file into fileList | void generateFileList(File node, FileFilter filter) {
//add file only
if (node.isFile()) {
fileList.add(generateZipEntry(node.getAbsoluteFile().toString()));
}
if (node.isDirectory()) {
File[] subNote = node.listFiles(filter);
assert subNote != null;
for (File file : subNote) {
generateFileList(new File(node, file.getName()), filter);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getAllFiles(File dir, List<File> fileList) throws IOException {\r\n File[] files = dir.listFiles();\r\n if(files != null){\r\n for (File file : files) {\r\n // Do not add the directories that we need to skip\r\n if(!isDirectoryToSkip(file.getName())){\r\n fileList.add(file);\r\n if (file.isDirectory()) {\r\n getAllFiles(file, fileList);\r\n }\r\n }\r\n }\r\n }\r\n }",
"private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }",
"private static void rAddFilesToArray(File workingDirectory, ArrayList<File> result) {\n File[] fileList = workingDirectory.listFiles();\n if (fileList == null) return;\n for (File file : fileList) {\n String name = file.getName();\n int lastDotIndex = name.lastIndexOf('.');\n String ext = (lastDotIndex == -1) ? \"\" : name.substring(lastDotIndex + 1);\n if (file.isDirectory())\n rAddFilesToArray(file, result);\n if (!file.equals(remainderFile) && ext.equals(\"xml\")) {\n result.add(file);\n }\n }\n }",
"AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);",
"List<File> list(String directory) throws FindException;",
"private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }",
"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 Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }",
"public void loadFilesInFolder(File rootFile) {\r\n\t\tDefaultListModel<File> model = new DefaultListModel<>();\r\n\t\tfor (File nextFile : rootFile.listFiles()) {\r\n\t\t\tmodel.addElement(nextFile);\r\n\t\t}\r\n\t\tlist.setModel(model);\r\n\t}",
"private void readFiles(final File folder, final List<File> fileList) {\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tif (fileEntry.isDirectory()) {\n\t\t\t\treadFiles(fileEntry, fileList);\n\t\t\t} else {\n\t\t\t\tfileList.add(fileEntry);\n\t\t\t}\n\t\t}\n\t}",
"private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }",
"private static Collection<File> listFiles(File directory, FilenameFilter filter, boolean recurse) {\n\t\tVector<File> files = new Vector<File>();\n\t\tFile[] entries = directory.listFiles();\n\n\t\tfor (File entry : entries) {\n\t\t\tif (filter == null || filter.accept(directory, entry.getName()))\n\t\t\t\tfiles.add(entry);\n\t\t\tif (recurse && entry.isDirectory())\n\t\t\t\tfiles.addAll(listFiles(entry, filter, recurse));\n\t\t}\n\t\treturn files;\n\t}",
"@Override\n public List<GEMFile> getLocalFiles(String directory) {\n File dir = new File(directory);\n List<GEMFile> resultList = Lists.newArrayList();\n File[] fList = dir.listFiles();\n if (fList != null) {\n for (File file : fList) {\n if (file.isFile()) {\n resultList.add(new GEMFile(file.getName(), file.getParent()));\n } else {\n resultList.addAll(getLocalFiles(file.getAbsolutePath()));\n }\n }\n gemFileState.put(STATE_SYNC_DIRECTORY, directory);\n }\n return resultList;\n }",
"List<Path> getFiles();",
"public List listFiles(String path);",
"public static ArrayList<Path> traverse(Path directory) {\r\n ArrayList<Path> filenames = new ArrayList<Path>();\r\n traverse(directory, filenames);\r\n return filenames;\r\n }",
"private void addPackageDirFiles(WebFile aDir, List aList)\n{\n boolean hasNonPkgFile = false;\n for(WebFile child : aDir.getFiles())\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, aList);\n else hasNonPkgFile = true;\n if(hasNonPkgFile || aDir.getFileCount()==0) aList.add(aDir);\n}",
"private static void listFiles(File rootFile, String filename, List<File> fileList) {\n File[] files_ = rootFile.listFiles();\n if(files_ != null) {\n for(File file : files_) {\n if(file.isFile() && file.getName().equalsIgnoreCase(filename))\n \t fileList.add(file);\n else\n listFiles(file, filename, fileList);\n }\n }\n }",
"public abstract List<LocalFile> getAllFiles();",
"public static ArrayList<File> getListXMLFiles(File parentDir) {\n ArrayList<File> inFiles = new ArrayList<File>();\n File[] files = parentDir.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n inFiles.addAll(getListXMLFiles(file));\n } else {\n if(file.getName().endsWith(\".xml\")){\n inFiles.add(file);\n }\n }\n }\n return inFiles;\n }",
"private void getAllJarFiles(File dir, ArrayList fileList)\n\t{\n\t\tif (dir.exists() && dir.isDirectory())\n\t\t{\n\t\t\tFile[] files = dir.listFiles();\n\t\t\tif (files == null)\n\t\t\t\treturn;\n\n\t\t\tfor (int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tFile file = files[i];\n\t\t\t\tif (file.isFile())\n\t\t\t\t{\n\t\t\t\t\tif (file.getName().endsWith(\".jar\")) //$NON-NLS-1$\n\t\t\t\t\t\tfileList.add(file);\n\t\t\t\t}\n\t\t\t\telse if (file.isDirectory())\n\t\t\t\t{\n\t\t\t\t\tgetAllJarFiles(file, fileList);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}",
"private ArrayList<char[]> subdirectoriesToFiles(String inputDir, ArrayList<char[]> fullFileList) throws IOException {\n\t\tArrayList<char[]> currentList =\n\t\t\t\tnew ArrayList<char[]>(Arrays.asList(new File(inputDir).listFiles()));\n\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\t\n\t\t\telse if (file.isDirectory())\n\t\t\t\tsubdirectoriesToFiles(file.getPath(), fullFileList);\n\t\t\t\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}",
"public ArrayList<String> traverseFiles(File inputDir, ArrayList<String> Documents2 )\n\t{\n\t\tif (inputDir.isDirectory()) {\n\t\t\t//System.out.println(\"Checking for directory...\");\n\t String[] children = inputDir.list();\n\t for (int i = 0; children != null && i < children.length; i++) {\n\t traverseFiles(new File(inputDir, children[i]), Documents2);\n\t }\n\t }\n\t if (inputDir.isFile()) \n\t \t{ Documents2.add(inputDir.getAbsolutePath());}//change it if needed\n\t \n\t return Documents2;\n\t // System.out.println(Documents.size());\n\t}",
"public static void getAllFiles(File dir, List<File> fileList) {\n File[] files = dir.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.endsWith(\".xml\") || name.endsWith(\".kml\");\n }\n });\n for (File file : files) {\n fileList.add(file);\n if (file.isDirectory()) {\n getAllFiles(file, fileList);\n }\n }\n }",
"List<String> getFiles(String path) throws IOException;",
"public static List<File> listFilesRecurse(File dir, FilenameFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}",
"public void listFilesFromDirectory(Path path, List<UpdateFile> updateFileList) {\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(path)) {\n for (Path currentPath : stream)\n if (!Files.isDirectory(currentPath)) {\n UpdateFile updateFile = new UpdateFile();\n File file = currentPath.toFile();\n updateFile.setFilePath(cutPrefixFromFilePath(file.getPath()));\n updateFile.setLastModified(String.valueOf(file.lastModified()));\n updateFileList.add(updateFile);\n } else listFilesFromDirectory(currentPath, updateFileList);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}",
"private static void iteratorFilePath(File file){\n while(file.isDirectory()){\n for(File f : file.listFiles()){\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n break;\n }\n }",
"public static List<File> listFilesRecurse(File dir, FileFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}",
"private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}",
"public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }",
"private static LinkedList<String> addAllSubDirs(File dir, LinkedList<String> list) {\n\t\tString [] dirListing = dir.list();\n\t\tfor (String subDirName : dirListing) {\n\t\t\tFile subdir = new File(dir.getPath() + System.getProperty(\"file.separator\") + subDirName);\n\t\t\tif (subdir.isDirectory()) {\n\t\t\t\tif (containsJavaFiles(subdir))\n\t\t\t\t\tlist.add(subdir.getPath());\n\t\t\t\tlist = addAllSubDirs(subdir, list);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"private ArrayList<File> getFilesInDirectory(String directoryPath, boolean omitHiddenFiles) {\n //---------- get all files in the provided directory ----------\n ArrayList<File> filesInFolder = new ArrayList<>();\n\n File folder = new File(directoryPath);\n for (File f : folder.listFiles()) {\n if (!f.isHidden() || !omitHiddenFiles)\n filesInFolder.add(f);\n }\n\n //sort the list of files\n Collections.sort(filesInFolder);\n return filesInFolder;\n }",
"private static void getFiles(String root, Vector files) {\n Location f = new Location(root);\n String[] subs = f.list();\n if (subs == null) subs = new String[0];\n Arrays.sort(subs);\n \n // make sure that if a config file exists, it is first on the list\n for (int i=0; i<subs.length; i++) {\n if (subs[i].endsWith(\".bioformats\") && i != 0) {\n String tmp = subs[0];\n subs[0] = subs[i];\n subs[i] = tmp;\n break;\n }\n }\n \n if (subs == null) {\n LogTools.println(\"Invalid directory: \" + root);\n return;\n }\n \n ImageReader ir = new ImageReader();\n Vector similarFiles = new Vector();\n \n for (int i=0; i<subs.length; i++) {\n LogTools.println(\"Checking file \" + subs[i]);\n subs[i] = new Location(root, subs[i]).getAbsolutePath();\n if (isBadFile(subs[i]) || similarFiles.contains(subs[i])) {\n LogTools.println(subs[i] + \" is a bad file\");\n String[] matching = new FilePattern(subs[i]).getFiles();\n for (int j=0; j<matching.length; j++) {\n similarFiles.add(new Location(root, matching[j]).getAbsolutePath());\n }\n continue;\n }\n Location file = new Location(subs[i]);\n \n if (file.isDirectory()) getFiles(subs[i], files);\n else if (file.getName().equals(\".bioformats\")) {\n // special config file for the test suite\n configFiles.add(file.getAbsolutePath());\n }\n else {\n if (ir.isThisType(subs[i])) {\n LogTools.println(\"Adding \" + subs[i]);\n files.add(file.getAbsolutePath());\n }\n else LogTools.println(subs[i] + \" has invalid type\");\n }\n file = null;\n }\n }",
"private static void traverse(Path path, ArrayList<Path> fileArray) {\r\n try (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\r\n for (Path file : listing) {\r\n if (file.toString().toLowerCase().endsWith(\".txt\")) {\r\n fileArray.add(file);\r\n } else if (Files.isDirectory(file)) {\r\n traverse(file, fileArray);\r\n }\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Invalid path: \" + path);\r\n }\r\n }",
"public static List<File> list(File dir) {\n\t\tFile[] fileArray = dir.listFiles();\n\t\tList<File> files = Arrays.asList(fileArray);\n\t\tArrayList<File> rtn = new ArrayList<File>();\n\t\tfiles = sortByName(files);\n\t\trtn.addAll(files);\n\t\treturn rtn;\n\t}",
"public static List<File> listFilesRecursive(File fileOrDirectory) {\n\t\t// null input = null output\n\t\tif(fileOrDirectory == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tList<File> result = new ArrayList<File>();\n\t\tif(!fileOrDirectory.isHidden()) {\n\t\t\tif(fileOrDirectory.isDirectory()) {\n\t\t\t\tfor (File aFile : fileOrDirectory.listFiles()) {\n\t\t\t\t\tresult.addAll(listFilesRecursive(aFile));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult.add(fileOrDirectory);\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t// sort output\n\t\tCollections.sort(result, new Comparator<File>() {\n\t\t\t@Override\n\t\t\tpublic int compare(File o1, File o2) {\n\t\t\t\treturn o1.getAbsolutePath().compareTo(o2.getAbsolutePath());\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\treturn result;\n\t}",
"public List<File> getFiles();",
"private static ArrayList<File> getFilesFromSubfolders(String directoryName, ArrayList<File> files) {\n\n File directory = new File(directoryName);\n\n // get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList) {\n if (file.isFile() && file.getName().endsWith(\".json\")) {\n files.add(file);\n } else if (file.isDirectory()) {\n getFilesFromSubfolders(file.getAbsolutePath(), files);\n }\n }\n return files;\n }",
"public List<File> getCurrentDirectoryFiles(String directoryPath) {\r\n File myDir = new File(directoryPath);\r\n return new ArrayList<>(Arrays.asList(Objects.requireNonNull(myDir.listFiles())));\r\n }",
"private ArrayList<char[]> subdirectoriesToFiles(ArrayList<char[]> currentList, ArrayList<char[]> fullFileList) throws IOException {\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\telse if (file.isDirectory()){\n\t\t\t\t$.log(file.toString());\n\t\t\t\tsubdirectoriesToFiles(file.getAbsolutePath(), fullFileList);\n\t\t\t}\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}",
"java.util.List<entities.Torrent.FileInfo>\n getFilesList();",
"public void addToFiles(Path pathDir) {\n this.files.add(pathDir);\n }",
"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}",
"@NonNull\n public static File[] listAllFiles(File directory) {\n if (directory == null) {\n return new File[0];\n }\n File[] files = directory.listFiles();\n return files != null ? files : new File[0];\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 }",
"private ArrayList<String> listFilesForFolder(File folder, TaskListener listener) {\n \tArrayList<String> lista = new ArrayList<String>();\n \tif(folder.exists()){\n\t \tFile[] listOfFiles = folder.listFiles();\n\t\t\t if(listOfFiles != null){\t\n\t\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t\t if (file.isDirectory()) {\t\n\t\t\t\t \tlista.add(file.getName());\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t}\n\t\treturn lista;\n\t}",
"public Vector getTypedFilesForDirectory(File dir) {\r\n\tboolean useCache = dir.equals(getCurrentDirectory());\r\n\r\n\tif(useCache && currentFilesFresh) {\r\n\t return currentFiles;\r\n\t} else {\r\n\t Vector resultSet;\r\n\t if (useCache) {\r\n\t\tresultSet = currentFiles;\r\n\t\tresultSet.removeAllElements();\r\n\t } else {\r\n\t\tresultSet = new Vector();\r\n\t }\r\n\t \r\n\t String[] names = dir.list();\r\n\r\n\t int nameCount = names == null ? 0 : names.length;\r\n\t for (int i = 0; i < nameCount; i++) {\r\n\t\tTypedFile f;\r\n\t\tif (dir instanceof WindowsRootDir) {\r\n\t\t f = getTypedFile(names[i]);\r\n\t\t} else {\r\n\t\t f = getTypedFile(dir.getPath(), names[i]);\r\n\t\t}\r\n\r\n\t\tFileType t = f.getType();\r\n\t\tif ((shownType == null || t.isContainer() || shownType == t)\r\n\t\t && (hiddenRule == null || !hiddenRule.testFile(f))) {\r\n\t\t resultSet.addElement(f);\r\n\t\t}\r\n\t }\r\n\r\n\t // The fake windows root dir will get mangled by sorting\r\n\t if (!(dir instanceof DirectoryModel.WindowsRootDir)) {\r\n\t\tsort(resultSet);\r\n\t }\r\n\r\n\t if (useCache) {\r\n\t\tcurrentFilesFresh = true;\r\n\t }\r\n\r\n\t return resultSet;\r\n\t}\r\n }",
"@Override\n\tpublic List<File> getListing(File directory, FileFilter filter) {\n\t\tfileIconMap = new HashMap<>();\n\n\t\tif (directory == null) {\n\t\t\treturn List.of();\n\t\t}\n\t\tFile[] files = directory.listFiles(filter);\n\t\treturn (files == null) ? List.of() : List.of(files);\n\t}",
"public void listFiles(String path) {\r\n String files;\r\n File folder = new File(path);\r\n File[] listOfFiles = folder.listFiles();\r\n\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n\r\n if (listOfFiles[i].isFile()) {\r\n files = listOfFiles[i].getName();\r\n if (files.endsWith(\".png\") || files.endsWith(\".PNG\")\r\n || files.endsWith(\".gif\") || files.endsWith(\".GIF\")) {\r\n //System.out.println(files);\r\n pathList.add(path+\"\\\\\");\r\n fileList.add(files);\r\n }\r\n }\r\n \r\n else {\r\n listFiles(path+\"\\\\\"+listOfFiles[i].getName());\r\n }\r\n }\r\n }",
"private void addDirToList(File dir, List<File> list) {\n\t\tif(dir.exists() && dir.isDirectory()) {\n\t\t\tlist.add(dir);\n\t\t}\n\t}",
"private void parseFiles() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n for(int i=0; i<fileNodesList.getLength(); i++){\n filesToProcess.add(getFile((Element) fileNodesList.item(i)));\n }\n }",
"public List<File> getFiles(String dir)\r\n\t{\r\n\t\tList<File> result = null;\r\n\t\tFile folder = new File(dir);\r\n\t\tif (folder.exists() && folder.isDirectory())\r\n\t\t{\r\n\t\t\tFile[] listOfFiles = folder.listFiles(); \r\n\t\t\t \r\n\t\t\tresult = new ArrayList<File>();\r\n\t\t\tfor (File file : listOfFiles)\r\n\t\t\t{\r\n\t\t\t\tif (file.isFile())\r\n\t\t\t\t\tresult.add(file);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlogger.error(\"check to make sure that \" + dir + \" exists and you have permission to read its contents\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"private static Vector addFiles(ZipOutputStream out, String target, String filter, boolean usePath, boolean recurse, Vector includeList) throws IOException {\r\n byte[] buf = new byte[1024];\r\n File[] fileList = null;\r\n File targetFile = new File(target);\r\n if (targetFile.isDirectory()) {\r\n fileList = targetFile.listFiles(); \r\n } else {\r\n fileList = new File[1];\r\n fileList[0] = new File(target);\r\n }\r\n if (fileList != null && fileList.length > 0) {\r\n for (int i=0; i<fileList.length; i++) {\r\n if (fileList[i].isFile()) {\r\n if (filter != null && filter.length() == 0) {\r\n if (!fileList[i].getName().endsWith(filter))\r\n continue;\r\n }\r\n FileInputStream in = new FileInputStream(fileList[i].getAbsolutePath());\r\n if (!usePath) {\r\n out.putNextEntry(new ZipEntry(fileList[i].getName()));\r\n } else {\r\n out.putNextEntry(new ZipEntry(fileList[i].getAbsolutePath()));\r\n }\r\n int len;\r\n while ((len = in.read(buf)) > 0) {\r\n out.write(buf, 0, len);\r\n }\r\n out.closeEntry();\r\n in.close();\r\n includeList.add(fileList[i].getAbsolutePath());\r\n } else if (fileList[i].isDirectory() && recurse) {\r\n includeList = ZipUtil.addFiles(out, fileList[i].getAbsolutePath(), filter, true, true, includeList);\r\n }\r\n }\r\n }\r\n return includeList;\r\n }",
"private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }",
"public static void loadFiles(String rootDirectory, LinkedList<File> filepaths) throws IOException{\r\n\t\tFile root = new File(rootDirectory);\r\n\t\tfor(String str:root.list()){\r\n\t\t\tif(new File(rootDirectory+\"/\"+str).isDirectory())\r\n\t\t\t\tloadFiles(rootDirectory+\"/\"+str, filepaths);\r\n\t\t\telse\r\n\t\t\t\tfilepaths.add(new File(rootDirectory+\"/\"+str));\r\n\t\t}\r\n\t}",
"public ArrayList<String> getDirFiles(String filePath){\n ArrayList<String> results = new ArrayList<String>();\n File[] files = new File(filePath).listFiles();\n\n for (File file : files){\n if (file.isFile()) {\n results.add(file.getName());\n }\n }\n return results;\n }",
"public static List<File> goFolder(File file) {\n File[] files = file.listFiles();\n for (File f : files) {\n if (!f.isDirectory()) {\n if (isCondition(f)) {\n fileList.add(f);\n }\n } else {\n goFolder(f);\n }\n }\n return fileList;\n }",
"public static void getAllFiles()\n\t{\n\t\t//Getting the File Name\n\n\t\tList<String> fileNames = FileManager.getAllFiles(folderpath);\n\t\n\t\tfor(String f:fileNames)\n\t\tSystem.out.println(f);\n\t\n\t}",
"public void directorySearch(File dir, String target)\n\t{\n\t\tif(!(dir.isDirectory()))\n\t\t{\n\t\t\t//If file is not a directory, throw the exception.\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif(count == maxFiles)\n\t\t{\n\t\t\t//If count is equal to maxFiles, throw the exception.\n\t\t\t//If it doesn't then this will act as a base case to\n\t\t\t//the recursion. \n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Put all the sub directories in an array. \n\t\t\tFile[] file = dir.listFiles();\n\t\t\t\n\t\t\t//Print out the path and the file directory list \n\t\t\tSystem.out.println(dir.getPath() + \": \" + dir.listFiles());\n\t\t\t\n\t\t\t//Go through each of the file length\n\t\t\tfor(int i = 0; i < file.length; i++)\n\t\t\t{\n\t\t\t\t//Get the file name \n\t\t\t\tSystem.out.println(\" -- \" + file[i].getName());\n\t\t\t\t\n\t\t\t\t//If the file name is the target, then add it to the \n\t\t\t\t//stack and return\n\t\t\t\tif(file[i].getName().equals(target))\n\t\t\t\t{\n\t\t\t\t\t//If the item inside the file is the target.\n\t\t\t\t\tcount++;\n\t\t\t\t\tfileList.add(file[i].getPath());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//If its a directory, then recurse.\n\t\t\t\tif(file[i].isDirectory())\n\t\t\t\t{\n\t\t\t\t\tdirectorySearch(file[i], target);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (NullPointerException e)\n\t\t{\n\t\t\t//If the File[] is null then catch this exception.\n\t\t\treturn;\n\t\t}\n\t}",
"public static List<File> listFile(File dir, boolean dirOrFile) {\r\n\t\tList<File> fileList = new ArrayList<File>();\r\n\t\tif (dir != null && dir.isDirectory()) {\r\n\t\t\tfor (File file : dir.listFiles())\r\n\t\t\t\tif (dirOrFile) {\r\n\t\t\t\t\tif (file.isDirectory()) {\r\n\t\t\t\t\t\tfileList.add(file);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (file.isFile()) {\r\n\t\t\t\t\t\tfileList.add(file);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn fileList;\r\n\t}",
"public static File[] listFilesInTree(File dir, FileFilter filter, boolean recordDirectories) {\r\n\t\tList<File> files = new ArrayList<File>();\r\n\t\tlistFilesInTreeHelper(files, dir, filter, recordDirectories);\r\n\t\treturn (File[]) files.toArray(new File[files.size()]);\r\n\t}",
"public void listFilesAndFilesSubDirectories(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Files and file subdirectories in: \" + directory.getCanonicalPath());\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isFile()){\n System.out.println(file.getAbsolutePath());\n } else if (file.isDirectory()){\n listFilesAndFilesSubDirectories(file.getAbsolutePath());\n }\n }\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 void loadFiles(String location) {\r\n files = new ArrayList<>();\r\n try {\r\n // определяем объект для каталога\r\n File dir = new File(location);\r\n String[] listOfFiles = dir.list();\r\n if(dir.isDirectory()) {\r\n \tSystem.out.println(\"Dir: \" + dir.getAbsolutePath());\r\n \ttestWriter.write(\"Dir: \" + dir.getAbsolutePath());\r\n }\r\n for(File i : dir.listFiles()) {\r\n System.out.println(\"SubDir: \" + i.getAbsolutePath());\r\n for(File j : i.listFiles()) {\r\n files.add(new File(j.getAbsolutePath()));\r\n System.out.println(\"File: \" + j.getAbsolutePath() + \" is loaded\");\r\n testWriter.write(\"File: \" + j.getAbsolutePath() + \" is loaded\");\r\n }\r\n }\r\n }\r\n catch(NullPointerException e) {\r\n System.err.println(\"Error while loading file\");\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n \tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public void process(File path) throws IOException {\n\t\tIterator<File> files = Arrays.asList(path.listFiles()).iterator();\n\t\twhile (files.hasNext()) {\n\t\t\tFile f = files.next();\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tprocess(f);\n\t\t\t} else {\n\t\t\t\tif (startFile != null && startFile.equals(f.getName())) {\n\t\t\t\t\tstartFile = null;\n\t\t\t\t}\n\n\t\t\t\tif (startFile == null) {\n\t\t\t\t\tprocessFile(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"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}",
"public void addPath(File path) throws IllegalArgumentException {\r\n File[] PathFiles;\r\n if (path.isDirectory() == true) {\r\n \tPathFiles = path.listFiles();\r\n for (int i=0; i<PathFiles.length; i++) {\r\n \tFile currentfile = PathFiles[i];\r\n if (currentfile.isDirectory()) {\r\n \tdirectory_queue.enqueue(currentfile);\r\n \taddPath(currentfile);\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\"Can't resolve the directory path \" + path);\r\n }\r\n }",
"private void enqueueFiles(File currentRoot){\n // stop condition\n if (currentRoot.listFiles().length == 0) return;\n // recursivly places all files in the queue\n for(File subDir : currentRoot.listFiles(File::isDirectory)){\n m_DirectoryQueue.enqueue(subDir);\n enqueueFiles(subDir);\n }\n }",
"public static void traverseDirListing(String dir, List<CWLFileBase> listing, boolean nochecksum) {\r\n File file = new File(dir);\r\n File[] subFiles = file.listFiles();\r\n if (subFiles != null && subFiles.length != 0) {\r\n for (File subFile : subFiles) {\r\n if (subFile.isDirectory()) {\r\n CWLDirectory cwlDir = toCWLDirectory(Paths.get(subFile.getAbsolutePath()));\r\n if (cwlDir != null) {\r\n listing.add(cwlDir);\r\n traverseDirListing(subFile.getAbsolutePath(), cwlDir.getListing(), nochecksum);\r\n }\r\n } else {\r\n CWLFile cwlFile = toCWLFile(Paths.get(subFile.getAbsolutePath()), nochecksum);\r\n listing.add(cwlFile);\r\n }\r\n }\r\n }\r\n }",
"private void fill( File fileDirectory )\n\t{\n\t\t// title\n\t\tsetTitle( fileDirectory.getAbsolutePath() );\n\n\t\t// file list\n\t\tFile[] aFile = fileDirectory.listFiles( getFileFilter() );\n\t\tList<FileInfo> listFileInfo = new ArrayList<FileInfo>();\n\t\tif( null != aFile )\n\t\t{\n\t\t\tfor( File fileTemp : aFile )\n\t\t\t{\n\t\t\t\tlistFileInfo.add( new FileInfo( fileTemp.getName(), fileTemp ) );\n\t\t\t}\n\t\t\tCollections.sort( listFileInfo );\n\t\t}\n\t\t// Add peth to back to parent folder\n\t\tif( null != fileDirectory.getParent() )\n\t\t{\n\t\t\tlistFileInfo.add( 0, new FileInfo( \"..\", new File( fileDirectory.getParent() ) ) );\n\t\t}\n\n\t\tm_fileinfoarrayadapter = new FileInfoArrayAdapter( this, listFileInfo );\n\t\tm_listview.setAdapter( m_fileinfoarrayadapter );\n\t}",
"public synchronized void readFileTree() throws FileTreeReadingException {\n final Set<Path> missingFiles = new HashSet<>(projectFiles.keySet());\n\n final LinkedHashMap<Path, Boolean> newFiles = new LinkedHashMap<>();\n\n try {\n Files.walkFileTree(projectDirectoryPath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult preVisitDirectory(Path path, BasicFileAttributes attrs) throws IOException {\n if (projectDirectoryPath.compareTo(path) == 0)\n return FileVisitResult.CONTINUE;\n\n if (!missingFiles.remove(path))\n newFiles.put(path, true);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IOException {\n if (!missingFiles.remove(path))\n newFiles.put(path, false);\n return FileVisitResult.CONTINUE;\n }\n });\n\n projectFiles.keySet().removeAll(missingFiles);\n projectFiles.putAll(newFiles);\n globalEventManager.fireEventListeners(this,\n new ProjectFileListChangedEvent(newFiles, missingFiles));\n\n } catch (IOException e) {\n throw new FileTreeReadingException(projectDirectoryPath, e);\n }\n }",
"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}",
"public void listFiles(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Files in: \" + directory.getCanonicalPath());\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isFile()){\n System.out.println(file.getName());\n }\n }\n }",
"public static List<Path> getPackageFiles(\n Path directory, boolean recursive, Map<String, Documentation> pkgDocs)\n throws IOException, ShadowException {\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(directory)) {\n List<Path> files = new ArrayList<>();\n\n for (Path filePath : stream) {\n // Capture all source files\n if (filePath.toString().endsWith(SRC_EXTENSION)) files.add(filePath);\n // Capture any package-info files\n else if (filePath.getFileName().toString().equals(PKG_INFO_FILE))\n processPackageInfo(filePath, pkgDocs);\n // Recurse into subdirectories if desired\n else if (recursive && Files.isDirectory(filePath))\n files.addAll(getPackageFiles(filePath, true, pkgDocs));\n }\n return files;\n }\n }",
"@Test\n public void listFilesTest() throws ApiException {\n Integer devid = null;\n String path = null;\n List<FileOnDevice> response = api.listFiles(devid, path);\n\n // TODO: test validations\n }",
"public static void goThroughFilesForFolder(final File folder) throws Exception {\r\n\r\n\t\t/*\r\n\t\t * char[] filePath;\r\n\t\t// *Files.walk(Paths.get(\"E:/Studying/eclipse/workspace/Thesis/PMIDs\")).\r\n\t\t * Files.walk(Paths.get(\"E:/Studying/Box Sync/workspace/Thesis/PMIDs\")).\r\n\t\t * forEach(filePath -> { if (Files.isRegularFile(filePath)) {\r\n\t\t * System.out.println(filePath); } }\r\n\t\t */\r\n\t\t// /*\r\n\t\tfor (final File fileEntry : folder.listFiles()) {\r\n\t\t\tif (fileEntry.isDirectory()) {\r\n\t\t\t\tgoThroughFilesForFolder(fileEntry);\r\n\t\t\t} else {\r\n\t\t\t\tprocessFile(fileEntry);\r\n\t\t\t\t// System.out.println(fileEntry.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\t// */\r\n\t}",
"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}",
"private static File[] filesMiner(String path) {\n try {\n File directoryPath = new File(path);\n FileFilter onlyFile = new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isFile();\n }\n }; // filter directories\n return directoryPath.listFiles(onlyFile);\n } catch (Exception e) {\n System.err.println(UNKNOWN_ERROR_WHILE_ACCESSING_FILES);\n return null;\n }\n\n }",
"ArrayList<File> findSong(File file) {\n ArrayList<File> arrayList = new ArrayList<>();\n\n File[] files = file.listFiles();\n for (File singleFile : files) {\n if (singleFile.isDirectory() && !singleFile.isHidden()) {\n arrayList.addAll(findSong(singleFile));\n } else {\n if (singleFile.getName().endsWith(\".mp3\") || singleFile.getName().endsWith(\".wva\")) {\n arrayList.add(singleFile);\n }\n }\n }\n return arrayList;\n }",
"private void addDirContents( ZipOutputStream output, File dir, String prefix, boolean compress ) throws IOException {\n String[] contents = dir .list();\n for ( int i = 0; i < contents .length; ++i ) {\n String name = contents[i];\n File file = new File( dir, name );\n if ( file .isDirectory() ) {\n addDirContents( output, file, prefix + name + '/', compress );\n }\n else {\n addFile( output, file, prefix, compress );\n }\n }\n }",
"public abstract List<String> getFiles( );",
"private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}",
"protected Set<File> getDataFiles(File directory){\n\t\tSet<File> files = new HashSet<File>();\n\t\t\n\t\tfor(File file : directory.listFiles()){\n\t\t\tif(file.isDirectory()){\n\t\t\t\tfiles.addAll(this.getDataFiles(file));\n\t\t\t} else {\n\t\t\t\tif(file.getName().equals(DATA_FILE)){\n\t\t\t\t\tfiles.add(file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn files;\n\t}",
"private static void getAllFilesFromGivenPath(String path, List<String> fileNames) {\n try {\n DirectoryStream<Path> directoryStream = Files.newDirectoryStream(Paths.get(path));\n for (Path paths : directoryStream) {\n fileNames.add(paths.toString());\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }",
"private List<File> getFiles() {\n\t\tList<File> mFileLists = new ArrayList<File>();\n\t\tfor (Category category : mFiles) {\n\t\t\tif (category.getName() == null) {\n\t\t\t\tLog.i(TAG, \"no file seleted=\" + category.tag);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmFileLists.add(new File(category.getName()));\n\t\t}\n\t\treturn mFileLists;\n\t}",
"protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }",
"public void listFilesAndFolders(String directoryName) throws IOException{\n File directory = new File(directoryName);\n System.out.println(\"List of Files and folders in: \" + directory.getCanonicalPath());\n //get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList){\n System.out.println(file.getName());\n }\n }",
"@Override\n public Vector<CloudFile> list() {\n if (!this.directoryExists) {\n fileList.removeAllElements();\n return fileList;\n }\n\n if (!directoryHasChanged) {\n return fileList;\n }\n\n final Integer listingComplete = new Integer(0);\n fileList.removeAllElements();\n\n System.out.println(\"GOOGLE DRIVE ls <\" + currentDirectory + \">\");\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n List<com.google.api.services.drive.model.File> res = new ArrayList<File>();\n Drive.Files.List request = drive.files().list();\n System.out.println(\"~~~Listing\");\n\n do {\n try {\n FileList files = request.setQ(\"'\" + currentFolderID + \"' in parents and trashed=false\").execute();\n\n res.addAll(files.getItems());\n request.setPageToken(files.getNextPageToken());\n } catch (HttpResponseException e) {\n\n if (e.getStatusCode() == 401) { // Credentials have been revoked.\n System.err.println(\"Google Drive API credentials have been revoked\");\n authenticate();\n }\n } catch (IOException e) {\n System.err.println(\"An error occurred: \" + e);\n request.setPageToken(null);\n\n }\n\n } while (request.getPageToken() != null &&\n request.getPageToken().length() > 0);\n\n //add shared with me directory when listing home\n if (currentDirectory.equals( getHomeDirectory() )) {\n FileList files = request.setQ(\"sharedWithMe\").execute();\n res.addAll(files.getItems());\n }\n\n for (com.google.api.services.drive.model.File f : res) {\n fileList.add(new GoogleCloudFile(drive, f));\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(\"~~~Listed\");\n //notify parent function that listing has completed\n synchronized (listingComplete) {\n listingComplete.notify();\n }\n }\n });\n\n //start the file listing thread\n thread.start();\n //wait for it to complete listing\n System.out.println(\"Waiting ls\");\n synchronized (listingComplete) {\n try {\n listingComplete.wait();\n } catch (InterruptedException e) {\n }\n }\n System.out.println(\"Ls complete\");\n\n return fileList;\n }",
"private void listAllClasses(List<Path> foundFiles, Path root) {\r\n if (root.toFile().isFile()) {\r\n foundFiles.add(root);\r\n } else {\r\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, filter)) {\r\n for (Path path : stream) {\r\n if (Files.isDirectory(path)) {\r\n listAllClasses(foundFiles, path);\r\n } else {\r\n foundFiles.add(path);\r\n }\r\n }\r\n } catch (AccessDeniedException e) {\r\n logger.error(\"Access denied to directory {}\", root, e);\r\n } catch (IOException e) {\r\n logger.error(\"Error while reading directory {}\", root, e);\r\n }\r\n }\r\n }",
"public static List<String> dummyListFiles(String startDir) {\n String[] array;\n List<String> list = new ArrayList<>();\n\n File f = new File(startDir);\n\n array = f.list();\n\n for (String item : array) {\n list.add(item);\n }\n\n return list;\n }",
"File[] getFilesInFolder(String path) {\n return new File(path).listFiles();\n }",
"public static List<String> getAllFiles(String dirPath) {\n\n\t\tList<String> files = new ArrayList<>();\n\t\tFile folder = new File(dirPath);\n\t\tFile[] listOfFiles = folder.listFiles();\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++) {\n\t\t\tFile file = listOfFiles[i];\n\t\t\tString filePath = file.getPath();\n\t\t\tif (file.isFile()) {\n\n\t\t\t\tif (!file.isHidden() && !file.getName().startsWith(\"_\"))\n\t\t\t\t\tfiles.add(filePath);\n\t\t\t} else if (file.isDirectory()) {\n\n\t\t\t\tfiles.addAll(getAllFiles(filePath));\n\t\t\t}\n\t\t}\n\n\t\treturn files;\n\t}",
"public void addDir(File dirObj, ZipOutputStream out) throws IOException {\n\t\t File[] files = dirObj.listFiles();\n\t\t byte[] tmpBuf = new byte[1024];\n\t\t for (int i = 0; i < files.length; i++) {\n\t\t if (files[i].isDirectory()) {\n\t\t addDir(files[i], out);\n\t\t continue;\n\t\t }\n\t \t FileInputStream in = new FileInputStream(files[i].getAbsolutePath());\n\t\t System.out.println(\" Adding: \" + files[i].getAbsolutePath());\n\t\t out.putNextEntry(new ZipEntry(files[i].getAbsolutePath()));\n\t\t int len;\n\t\t while ((len = in.read(tmpBuf)) > 0) { out.write(tmpBuf, 0, len); }\n\t\t out.closeEntry();\n\t\t in.close();\n\t\t }\n\t\t }",
"public List<String> getFiles();",
"@Override\n public Iterable<File> list(File storageDirectory, FilenameFilter filter) {\n\treturn null;\n }",
"private void fillAllImagesUnderDirectory(File directory) throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n\n for (File file : fileArray) {\n // if the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n allImagesUnderDirectory\n .add(centralController.getImageFileController().getImageFile(imageFile));\n } else if (imagesInDirectory.contains(imageFile)) {\n allImagesUnderDirectory.add(imagesInDirectory.get(imagesInDirectory.indexOf(imageFile)));\n } else {\n allImagesUnderDirectory.add(imageFile);\n }\n } else if (file.isDirectory()) {\n fillAllImagesUnderDirectory(file);\n }\n }\n }"
] | [
"0.7225151",
"0.7223033",
"0.7143084",
"0.7109442",
"0.70232856",
"0.684491",
"0.6840639",
"0.6813197",
"0.68013257",
"0.6798976",
"0.6786215",
"0.67777175",
"0.6776051",
"0.67744315",
"0.6687427",
"0.6666098",
"0.6659466",
"0.66154915",
"0.6595726",
"0.65763193",
"0.65701455",
"0.65148467",
"0.64635867",
"0.6426259",
"0.6404775",
"0.6404584",
"0.6397851",
"0.6390741",
"0.63865775",
"0.6356082",
"0.63468957",
"0.63428444",
"0.63193774",
"0.63148767",
"0.6300308",
"0.62999177",
"0.6256257",
"0.6245784",
"0.62328434",
"0.62272793",
"0.61991185",
"0.61890405",
"0.6187918",
"0.6174448",
"0.6174096",
"0.61718524",
"0.6165405",
"0.61518276",
"0.61406374",
"0.6113135",
"0.60992503",
"0.6096702",
"0.60831934",
"0.6071732",
"0.60689586",
"0.6066023",
"0.6052815",
"0.60418624",
"0.60392684",
"0.60307413",
"0.60209215",
"0.601967",
"0.6003639",
"0.5996029",
"0.59742785",
"0.5973448",
"0.5971599",
"0.5968912",
"0.59551716",
"0.59434175",
"0.5940505",
"0.5930678",
"0.592939",
"0.59219474",
"0.5915408",
"0.5912031",
"0.5909392",
"0.5906454",
"0.5897452",
"0.5890232",
"0.5884622",
"0.5884566",
"0.58837956",
"0.5866966",
"0.58668983",
"0.5860813",
"0.5850648",
"0.5849006",
"0.5845669",
"0.58456093",
"0.5835096",
"0.58238673",
"0.5822498",
"0.58211833",
"0.5808568",
"0.5801107",
"0.5798255",
"0.5797128",
"0.5793952",
"0.5787917"
] | 0.6091595 | 52 |
Format the file path for zip | private String generateZipEntry(String file) {
return file.substring(srcFolder.length() + 1, file.length());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String formatFilePath(){\n StringBuilder returnResult = new StringBuilder();\n String temp;\n temp = StringUtil.removeHttpPrefix(uri);\n returnResult.append(DEFAULT_DIRECTORY).append(\"\\\\\").append(temp);\n return returnResult.toString();\n }",
"@AutoEscape\n\tpublic String getZip();",
"private String getArchiveFilename(Publication publication) {\n\t\treturn publication.getName() + \"_\" +\n\t\t\t\tpublication.getType().getDisplayId().charAt( 0 ) +\n\t\t\t\t\"0_Publication.zip\";\n\t}",
"public static String formatFilePath(String path) {\n return StringUtils.replace(path, \"\\\\\", StaticValue.FILE_SEPARATOR);\n }",
"public String zipDirectoryInternalPath(String sourceDirectoryPath, String zipOutputPath) throws IOException {\n\t\t \t // DECLARATION:\n\t\t \t if(sourceDirectoryPath.endsWith(\"\\\\\")) { sourceDirectoryPath = sourceDirectoryPath.substring(0, sourceDirectoryPath.length() - 1); }\n\t\t \t sourceDirectoryPath = sourceDirectoryPath.replace(\"\\\\\", \"/\");\n\t\t \t zipOutputPath = zipOutputPath.replace(\"\\\\\", \"/\");\n\t\t \t // MESSAGE:\n\t\t \t fileWriterPrinter(\"\\nSOURCE DIRECTORY: \" + sourceDirectoryPath);\n\t\t \t fileWriterPrinter(\" ZIP OUTPUT PATH: \" + zipOutputPath + \"\\n\");\n\t\t \t \n\t\t File dir = new File(sourceDirectoryPath);\n\t\t File file = new File(zipOutputPath);\n\t\t // System.out.println(mydir.toURI().relativize(myfile.toURI()).getPath());\t\n\t\t zip(dir, file);\n\t\t return zipOutputPath;\n\t\t\t}",
"@Override\n public String toString() {\n return \"ZipFile '\" + getName() + \"'\";\n }",
"public String zipDirectoryFullPath(String sourceDirectoryPath, String zipOutputPath) throws Exception {\n \t // DECLARATION:\n \t if(sourceDirectoryPath.endsWith(\"\\\\\")) { sourceDirectoryPath = sourceDirectoryPath.substring(0, sourceDirectoryPath.length() - 1); }\n \t sourceDirectoryPath = sourceDirectoryPath.replace(\"\\\\\", \"/\");\n \t zipOutputPath = zipOutputPath.replace(\"\\\\\", \"/\");\n \t // MESSAGE:\n \t fileWriterPrinter(\"\\nSOURCE DIRECTORY: \" + sourceDirectoryPath);\n \t fileWriterPrinter(\" ZIP OUTPUT PATH: \" + zipOutputPath + \"\\n\");\n\t\t \n\t\t File dirObj = new File(sourceDirectoryPath);\n\t\t ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipOutputPath));\n\t\t System.out.println(\"Creating : \" + zipOutputPath);\n\t\t addDir(dirObj, out);\n\t\t out.close();\n\t\t return zipOutputPath;\n\t\t }",
"void makeZip(String zipFilePath, String srcFilePaths[],\n\t\t\tMessageDisplay msgDisplay) {\n\t\t...\n\t\tfor (int i = 0; i < srcFilePaths.length; i++) {\n\t\t\tmsgDisplay.showMessage(\"Zipping \"+srcFilePaths[i]);\n\t\t\t//add the file srcFilePaths[i] into the zip file.\n\t\t\t...\n\t\t}\n\t}",
"public String toString (){\r\n\t\t\treturn \"[FZipFile]\"\r\n\t\t\t\t+ \"\\n name:\" + _filename\r\n\t\t\t\t+ \"\\n date:\" + _date\r\n\t\t\t\t+ \"\\n sizeCompressed:\" + _sizeCompressed\r\n\t\t\t\t+ \"\\n sizeUncompressed:\" + _sizeUncompressed\r\n\t\t\t\t+ \"\\n versionHost:\" + _versionHost\r\n\t\t\t\t+ \"\\n versionNumber:\" + _versionNumber\r\n\t\t\t\t+ \"\\n compressionMethod:\" + _compressionMethod\r\n\t\t\t\t+ \"\\n encrypted:\" + _encrypted\r\n\t\t\t\t+ \"\\n hasDataDescriptor:\" + _hasDataDescriptor\r\n\t\t\t\t+ \"\\n hasCompressedPatchedData:\" + _hasCompressedPatchedData\r\n\t\t\t\t+ \"\\n filenameEncoding:\" + _filenameEncoding\r\n\t\t\t\t+ \"\\n crc32:\" + _crc32.toString(16)\r\n\t\t\t\t+ \"\\n adler32:\" + _adler32.toString(16);\r\n\t\t}",
"String getFilepath();",
"private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(UserPreferences.SAVE_LOCATION_PROP);\r\n ret += format.format(new Date());\r\n \r\n String notationStr = notation.getText().trim();\r\n if (!notationStr.isEmpty()) \r\n {\r\n ret += \"__\" + notationStr.replaceAll(\" \\t/\\\\:\", \"_\");\r\n }\r\n \r\n ret += \".csv\";\r\n \r\n return ret;\r\n }",
"private String writeZipFile(File directoryToZip, List<File> fileList, String zipName) throws IOException{\r\n // If the zip name is null then provide the name of the directory\r\n if(zipName == null){\r\n zipName = directoryToZip.getName();\r\n }\r\n // Store the file name\r\n String fileName = zipName;\r\n // Create the zip file\r\n FileOutputStream fos = new FileOutputStream(fileName);\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n for (File file : fileList) {\r\n if (!file.isDirectory()) { // we only zip files, not directories\r\n // Add files that are not in the skip list\r\n if(!isFileToSkip(file.getName())) {\r\n addToZip(directoryToZip, file, zos);\r\n }\r\n }\r\n }\r\n zos.close();\r\n fos.close();\r\n // Return the full name of the file\r\n return fileName;\r\n }",
"void makeZip(String zipFilePath, String srcFilePaths[], ZipMainFrame f) {\n ...\n for (int i = 0; i < srcFilePaths.length; i++) {\n f.setStatusBarText(\"Zipping \"+srcFilePaths[i]);\n //add the file srcFilePaths[i] into the zip file.\n ...\n }\n }",
"public static String formatDirectoryPath(String path) {\n if (path.length() == 0) {\n return \"\";\n }\n path = formatFilePath(path);\n return path.endsWith(StaticValue.FILE_SEPARATOR) ? path : path + StaticValue.FILE_SEPARATOR;\n }",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"public static void generateZip(File file) {\r\n\t\t\r\n\t\tFile zipfile=new File(file.toString().replaceAll(\".xlsx\",\".zip\" ));\r\n\t\tFileOutputStream fos=null;\r\n\t\tZipOutputStream zos=null;\r\n\t\tFileInputStream fin=null;\r\n\t\tZipEntry ze=null; \r\n\t\t\t\r\n\t\tif(!zipfile.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tzipfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//create ZipOutputStream to write to the zipfile\r\n fos=new FileOutputStream(zipfile);\r\n\t\t\t zos=new ZipOutputStream(fos);\r\n\t\t\t \r\n\t\t//add a new Zip Entry to the ZipOutPutStream \r\n\t\t\t ze=new ZipEntry(file.getName());\r\n\t\t\t zos.putNextEntry(ze);\r\n\t\t\t \r\n\t\t//read the file and write to the ZipOutPutStream\t \r\n\t\t\t fin=new FileInputStream(file);\r\n\t\t\t int i;\r\n\t\t\t \r\n\t\t\t while((i=fin.read())!=-1){\r\n\t\t\t\t zos.write(i);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(zos!=null && fos!=null && fin!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t //close the zip entry to write to to zip file\r\n\t\t\t\t\t\tzos.closeEntry();\r\n\t\t\t\t\t//close Resources.\t\r\n\t\t\t\t\t\tzos.close();\r\n\t\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tfin.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"protected abstract String getUpDateZip();",
"public void zipFiles() {\r\n byte[] buffer = new byte[1024];\r\n try {\r\n\r\n // On rare occasions, there will be a semi colon in the title name,\r\n // ruining everything while zipping the file.\r\n if (title.contains(\":\") || title.contains(\".\")) {\r\n String temp = \"\";\r\n for (int i = 0; i < title.length(); i++) {\r\n \r\n if (title.charAt(i) == ':' || title.charAt(i) == '.') {\r\n \r\n } else {\r\n temp += title.charAt(i);\r\n }\r\n }\r\n title = temp;\r\n }\r\n System.out.println(\"File name: \" + title);\r\n \r\n FileOutputStream fos = new FileOutputStream(savePath + \"\\\\\" + title + \".zip\");\r\n ZipOutputStream zos = new ZipOutputStream(fos);\r\n \r\n for (String fileName : fileNames) {\r\n \r\n System.out.println(\"zipping file: \" + fileName);\r\n \r\n fileName = savePath + \"\\\\\" + fileName;\r\n File srcFile = new File(fileName);\r\n FileInputStream fis;\r\n if (srcFile.exists()) {\r\n fis = new FileInputStream(srcFile);\r\n \r\n zos.putNextEntry(new ZipEntry(srcFile.getName()));\r\n int length;\r\n while ((length = fis.read(buffer)) > 0) {\r\n zos.write(buffer, 0, length);\r\n }\r\n zos.closeEntry();\r\n fis.close();\r\n \r\n boolean success = (new File(fileName)).delete();\r\n }\r\n }\r\n zos.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"File not found!\");\r\n } catch (IOException ex) {\r\n }\r\n }",
"public static String getOutputFilePath(String path) {\n StringBuilder outputFilePath = new StringBuilder();\n String[] splittedPath = path.split(Constants.SLASH);\n outputFilePath.append(Constants.OUTPUT_FILE_LOCATION);\n outputFilePath.append(Constants.SLASH);\n outputFilePath.append(splittedPath[splittedPath.length - 1]\n .split(\"\\\\.\")[0]);\n outputFilePath.append(System.currentTimeMillis());\n outputFilePath.append(Constants.DOT_WAV);\n return outputFilePath.toString();\n }",
"private static String createZipFile(String directory, String zipFilename, List<File> filesToAdd)\n throws IOException {\n String zipFilePath = String.format(\"%s/%s\", directory, zipFilename);\n File zipFile = new File(zipFilePath);\n if (zipFile.exists()) {\n if (zipFile.delete()) {\n log.info(\"Zipfile existed and was deleted: \" + zipFilePath);\n } else {\n log.warn(\"Zipfile exists but was not deleted: \" + zipFilePath);\n }\n }\n\n // Create and add files to zip file\n addFilesToZip(zipFile, filesToAdd);\n\n return zipFilePath;\n }",
"protected void getFile(ZipEntry e) throws IOException {\n String zipName = e.getName();\n switch (mode) {\n case EXTRACT:\n if (zipName.startsWith(\"/\")) {\n if (!warnedMkDir)\n System.out.println(\"Ignoring absolute paths\");\n warnedMkDir = true;\n zipName = zipName.substring(1);\n }\n // if a directory, just return. We mkdir for every file,\n // since some widely-used Zip creators don't put out\n // any directory entries, or put them in the wrong place.\n if (zipName.endsWith(\"/\")) {\n return;\n }\n // Else must be a file; open the file for output\n // Get the directory part.\n int ix = zipName.lastIndexOf('/');\n if (ix > 0) {\n //String dirName = zipName.substring(0, ix);\n String fileName = zipName.substring(ix + 1, zipName.length());\n zipName = fileName;\n\n }\n String targetFile = this.unzipFileTargetLocation;\n File file = new File(targetFile);\n if (!file.exists())\n file.createNewFile();\n FileOutputStream os = null;\n InputStream is = null;\n try {\n os = new FileOutputStream(targetFile);\n is = zippy.getInputStream(e);\n int n = 0;\n while ((n = is.read(b)) > 0)\n os.write(b, 0, n);\n\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }\n break;\n case LIST:\n // Not extracting, just list\n if (e.isDirectory()) {\n System.out.println(\"Directory \" + zipName);\n } else {\n System.out.println(\"File \" + zipName);\n }\n break;\n default:\n throw new IllegalStateException(\"mode value (\" + mode + \") bad\");\n }\n }",
"public String getOutputPath(String inputPath) {\n String fileName;\n String ext = \"\";\n if (inputPath.indexOf(\".\") > 0) {\n int dotIndex = inputPath.lastIndexOf(\".\");\n fileName = inputPath.substring(0, dotIndex);\n ext = inputPath.substring(dotIndex, inputPath.length());\n } else {\n fileName = inputPath;\n }\n return fileName + \"_chk\" + ext;\n }",
"static String translatePackageNameToFilePath(final String packageName) {\n if (packageName == null) {\n throw new IllegalArgumentException(\"input package name could not be null\");\n } else {\n return packageName.replace('.', File.separatorChar);\n }\n }",
"public AddFileToZip path(final String path) {\n\t\t\tthis.path = path;\n\t\t\treturn this;\n\t\t}",
"private String filenameHelper(String withFolder) {\n\t\tint pos = -1;\n\t\tfor (int k = 0; k < withFolder.length() - 1; k++) {\n\t\t\tif (withFolder.charAt(k) == '/') {\n\t\t\t\tpos = k;\n\t\t\t}\n\t\t}\n\t\tif (pos < 0)\n\t\t\treturn withFolder;\n\t\telse\n\t\t\treturn withFolder.substring(pos + 1);\n\t}",
"public String getArchiveFolderPath()\n {\n String currentWorkingDir = SystemUtil.getWorkingDirPath()+\"/\";\n \n ConfigurationStore configStore = ConfigurationStore.getInstance();\n String archiveFolder = configStore.getProperty(IISATProperty.CATEGORY, IISATProperty.ARCHIVE_FOLDER, null);\n String absArchiveFolderPath = currentWorkingDir + archiveFolder;\n _logger.logMessage(\"getArchiveFolderPath\", null, \"Abs archive folder path is \"+absArchiveFolderPath);\n return absArchiveFolderPath;\n }",
"protected String getFileNamePath()\n {\n String sep = System.getProperty(\"file.separator\", \"/\");\n// String path = System.getProperty(\"user.dir\", \".\");\n\n String filename = getPath() + sep + \"sec.dat\";\n\n return filename;\n }",
"private String generateFileNameFromLocation(Location location) {\n System.out.println(\"[DEBUG] Block X: \" + location.getBlockX() + \", Block Z: \" + location.getBlockZ());\n\n // Calculate chunk coordinates from block coordinates\n int chunkX = location.getBlockX() >> 4;\n int chunkZ = location.getBlockZ() >> 4;\n\n // Print out the derived chunk coordinates\n System.out.println(\"[DEBUG] Chunk X: \" + chunkX + \", Chunk Z: \" + chunkZ);\n\n // Return the filename in the format used by Towny\n return chunkX + \"_\" + chunkZ + \"_16.zip\";\n }",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"@Override\r\n public String getPath() {\r\n if (VFS.isUriStyle()) {\r\n return absPath + getUriTrailer();\r\n }\r\n return absPath;\r\n }",
"java.lang.String getFilePath();",
"protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }",
"public String getZip() {\r\n return zip;\r\n }",
"public String getZip() {\r\n return zip;\r\n }",
"String displayableFileName(String path) {\n String result = \"\";\n StringTokenizer tok = new StringTokenizer(path, \"\\\\/\");\n while (tok.hasMoreTokens()) {\n result = tok.nextToken();\n }\n return result;\n }",
"java.lang.String getFilename();",
"java.lang.String getFilename();",
"public static String getTranslatedFixedFilename(String path, int reviewNumber) {\n String builder = Parameters.OUTPUT + Parameters.TRANSLATE_FIXED_PATH + \"/\" + path;\n builder = appendReviewNumber(builder, reviewNumber);\n builder += Parameters.TRANSLATED_FIXED_EXT;\n return builder;\n }",
"public void convertToZip(String input, String output) throws ZipException {\n\t\tZipFile zip = new ZipFile(output); \n\t ZipParameters parameters = new ZipParameters();\n parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\n parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL); \n\t zip.addFolder(input, parameters);\n\t}",
"public String getArchiver();",
"public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }",
"private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}",
"protected String getPath(final StringBuffer directory, final StringBuffer file,\n final String md5String) {\n if (usedate) {\n final String dateFormat = usedateformat;\n final String dateDir = new SimpleDateFormat(dateFormat).format(new Date());\n directory.append(dateDir);\n if (directory.charAt(directory.length() - 1) != File.separatorChar) {\n directory.append(File.separatorChar);\n }\n \n if (!new File(directory.toString()).exists()\n && !new File(directory.toString()).mkdirs()) {\n eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, null,\n \"Unable to create date dirs\", \"\"));\n }\n }\n \n if (filenamehash) {\n file.append('.');\n file.append(md5(md5String));\n }\n file.append(\".log\");\n \n return directory + file.toString();\n }",
"@Internal(\"Represented as part of archivePath\")\n public String getArchiveName() {\n if (customName != null) {\n return customName;\n }\n String name = GUtil.elvis(getBaseName(), \"\") + maybe(getBaseName(), getAppendix());\n name += maybe(name, getVersion());\n name += maybe(name, getClassifier());\n name += GUtil.isTrue(getExtension()) ? \".\" + getExtension() : \"\";\n return name;\n }",
"@Override\n\tpublic String getZip() {\n\t\treturn this.zip;\n\t}",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"public String getZip() {\r\n\t\treturn zip;\r\n\t}",
"private static FileSystem openZip(Path zipPath) throws IOException, URISyntaxException{\n\t Map<String, String> providerProps = new HashMap<>();\r\n\t\tproviderProps.put(\"create\", \"true\");\r\n\t\t\r\n\t\t// Um ZipFiles zu erstellen benötigt man URIs, deswegen werden sie hier erstellt\r\n\t\tURI zipUri = new URI(\"jar:file\", zipPath.toUri().getPath(), null);\r\n\t\tFileSystem zipFs = FileSystems.newFileSystem(zipUri, providerProps); // Statische Methode wird hier angewendet\r\n\t\t\r\n\t\treturn zipFs;\r\n\t}",
"public File getZipLocation ()\n\t{\n\t\treturn zipFileLocation;\n\t}",
"public String getFinalFileName()\r\n\t{\r\n\t\treturn this.getFileName() + this.getFileFormat();\r\n\t}",
"private String getNomeArquivoCompactado(File ordem)\n\t{\n\t\tString\t\t\tnomeArquivo\t= null;\n\t\tPattern \t\tpattern \t= null;\n\t\tPatternMatcher \tmatcher \t= new AwkMatcher();\n\t\tPatternCompiler compiler \t= new AwkCompiler();\n\t\tSubstitution \tsub\t\t\t= new StringSubstitution(\".zip\");\n\t\ttry\n\t\t{\n\t\t\tpattern = compiler.compile(\"[.]dat\");\n\t\t\tnomeArquivo = Util.substitute(matcher,pattern,sub,ordem.getAbsolutePath());\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t/* Caso algum erro ocorra na troca da extensao do arquivo, entao\n\t\t\t * o arquivo fica com o nome original acrescido da extensao .zip\n\t\t\t */\n\t\t\tSystem.out.println(\"Erro ao criar o nome do arquivo compactado. \"+e);\n\t\t\tnomeArquivo = ordem.getAbsolutePath()+\".zip\";\n\t\t}\n\t\t//String nomeArquivo = ordem.getAbsolutePath().replaceAll(\"[.]dat\",\".zip\");\n\t\treturn nomeArquivo;\n\t}",
"public void extractPackage(String zipPath, String destPath) throws IOException {\n File destDir = new File(destPath);\n if(!destDir.exists()) {\n destDir.mkdir();\n }\n ZipInputStream zipIn = new ZipInputStream(new FileInputStream((zipPath)));\n ZipEntry entry = zipIn.getNextEntry();\n while(entry != null) {\n String filePath = destPath+File.separator+entry.getName();\n //filePath = filePath.replaceAll(\" \",\"_\");\n if(!entry.isDirectory()) {\n Log.i(\"extract\",\"Package Name: \"+entry.getName());\n Log.i(\"extract\",filePath);\n String[] temp = entry.getName().split(\"\\\\.\");\n if(validExtension(temp[temp.length-1].toLowerCase())) {\n extractFile(zipIn,filePath);\n }\n //extractFile(zipIn,filePath);\n } else {\n File dir = new File(filePath);\n dir.mkdirs();\n }\n zipIn.closeEntry();;\n entry = zipIn.getNextEntry();\n }\n zipIn.close();\n }",
"public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }",
"private String getBackupFileName(String directory, IdmScriptDto script) {\n\t\treturn directory + script.getCode() + \"_\" + SpinalCase.format(securityService.getCurrentUsername()) + \"_\"\n\t\t\t\t+ System.currentTimeMillis() + EXPORT_FILE_SUFIX;\n\t}",
"String getPathName();",
"String getPathName();",
"public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}",
"public String fullFileName () {\n\t\tif (directory == null || directory.equals(\"\"))\n\t\t\treturn fileName;\n\t\telse\n\t\t\treturn directory + File.separator + fileName;\t//add a '\\' in the path\n\t}",
"private String buildDeployFileName(final String originalFileName) {\n String tempDir = System.getProperty(\"java.io.tmpdir\");\n StringBuilder builder = new StringBuilder();\n builder.append(tempDir);\n builder.append(\"/\");\n builder.append(originalFileName);\n return builder.toString();\n }",
"private Path makeFilePath(String name) {\n Path baseFilePath = Paths.get(portManager.getBfp());\n if (name.length() > 4 && name.substring(name.length() - 5).equals(\".json\")) {\n return baseFilePath.resolve(name);\n } else {\n return baseFilePath.resolve(name + \".json\");\n }\n }",
"public String FormatDirectory(File file, String path){\n\n\t\tString[] subFiles = file.list();\n\t\tString html = \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Strict//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\\\">\";\n\t\tfor(int i=0;i<subFiles.length;i++){\n\t\t\thtml += \"<a href=\" + path + \"/\" + subFiles[i] + \">\" + subFiles[i] + \"</a></br>\";\n\t\t}\n\t\treturn html;\n\t}",
"private String dumpZipEntry(ZipEntry ze) {\r\n StringBuffer sb = new StringBuffer();\r\n if (ze.isDirectory()) {\r\n sb.append(\"d \");\r\n } else {\r\n sb.append(\"f \");\r\n }\r\n if (ze.getMethod() == ZipEntry.STORED) {\r\n sb.append(\"stored \");\r\n } else {\r\n sb.append(\"defalted \");\r\n }\r\n sb.append(ze.getName());\r\n sb.append(\"\\t\");\r\n sb.append(\"\");\r\n sb.append(ze.getSize());\r\n if (ze.getMethod() == ZipEntry.DEFLATED) {\r\n sb.append(\"/\");\r\n sb.append(ze.getCompressedSize());\r\n }\r\n String str = sb.toString();\r\n sb = null;\r\n\r\n return (str);\r\n }",
"protected String openReportOutput() {\n final String home = preferredSubFolder(s_userHome != null ? s_userHome : System.getProperty(\"user.home\"));\n final LocalDateTime ldt = Instant.now().atZone(ZoneOffset.systemDefault()).toLocalDateTime();\n final String path = String.format(\"%s%c%s-%04d-%02d-%02d-%02d-%02d-%02d.zip\", home, File.separatorChar, \"OpenGamma-ErrorReport\", ldt.getYear(),\n ldt.getMonthValue(), ldt.getDayOfMonth(),\n ldt.getHour(), ldt.getMinute(), ldt.getSecond()).toString();\n LOGGER.info(\"Writing {}\", path);\n try {\n _zip = new ZipOutputStream(new FileOutputStream(path));\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't write to \" + path, e);\n }\n return path;\n }",
"public boolean ZipFile(String sSourceFilePath, String sDestinationZipFilePath, boolean bReplaceExisting) {\n byte[] buffer = new byte[30720];\n FileInputStream fin = null;\n FileOutputStream fout = null;\n ZipOutputStream zout = null;\n int length;\n String sZipEntryFileName = \"\";\n File objFile = null;\n try {\n //check for source file\n if (sSourceFilePath.trim().equalsIgnoreCase(\"\")) {\n throw new Exception(\"Invalid Source File : \" + sSourceFilePath);\n }\n objFile = new File(sSourceFilePath);\n if (!objFile.exists()) {\n throw new Exception(\"Source file not found : \" + sSourceFilePath);\n }\n\n //check for destination Zip file\n if (sDestinationZipFilePath.trim().equalsIgnoreCase(\"\") || sDestinationZipFilePath == null) {\n String stmp_Path = objFile.getAbsolutePath();\n String stmp_Name = objFile.getName();\n if (stmp_Name.contains(\".\")) { //check for removing extension\n int indx = 0;\n try {\n indx = stmp_Name.indexOf(\".\", stmp_Name.length() - 5);\n } catch (Exception e) {\n indx = 0;\n }\n if (indx <= 0) {\n indx = stmp_Name.length();\n }\n\n stmp_Name = stmp_Name.substring(0, indx);\n stmp_Name = stmp_Name + \".zip\";\n }\n sDestinationZipFilePath = stmp_Path + File.separator + stmp_Name;\n }\n\n objFile = new File(sDestinationZipFilePath);\n if (objFile.exists()) {\n if (bReplaceExisting) {\n objFile.delete();\n } else {\n throw new Exception(\"Destination ZipFile Already exists : \" + sDestinationZipFilePath);\n }\n }\n\n //Zipping File\n sZipEntryFileName = sSourceFilePath.substring(sSourceFilePath.lastIndexOf(\"\\\\\") + 1);\n fout = new FileOutputStream(sDestinationZipFilePath);\n zout = new ZipOutputStream(fout);\n fin = new FileInputStream(sSourceFilePath);\n zout.putNextEntry(new ZipEntry(sZipEntryFileName));\n while ((length = fin.read(buffer)) > 0) {\n zout.write(buffer, 0, length);\n }\n\n return true;\n\n } catch (Exception exp) {\n println(\"Src = \" + sSourceFilePath + \" : Dest = \" + sDestinationZipFilePath + \" : \" + exp.toString());\n return false;\n } finally {\n try {\n fin.close();\n } catch (Exception exp) {\n }\n try {\n zout.closeEntry();\n } catch (Exception exp) {\n }\n try {\n zout.close();\n } catch (Exception exp) {\n }\n }\n }",
"private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }",
"Path createPath();",
"public String getTemplatePath() {\n this.defaultPath = defaultPath.endsWith(File.separator) ? defaultPath : defaultPath + File.separator;\n\n if (Paths.get(defaultPath).toFile().mkdirs()) {\n //Throw exception, couldn't create directories\n }\n\n return defaultPath + (defaultName != null ? defaultName + \".\" + extensionPattern : \"\");\n }",
"protected String getFilename(String prefix) {\n return prefix + mFileNameDelimiter + UUID.randomUUID();\n }",
"public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(sep + 1, dot);\n }",
"private String getOutputFolder(String path){\n\n //Remove the portion of the path which is prior to our repositories file path\n path = StringUtils.removeStart(FilenameUtils.getFullPath(path), REPOSITORY_LOCATION);\n //Return the path without leading and ending / and ensures the file path uses forward slashes instead of backslashes\n return StringUtils.strip(StringUtils.strip(path,\"/\"),\"\\\\\").replace(\"\\\\\", \"/\");\n }",
"public AddContentToZip path(final String path) {\n\t\t\tthis.path = path;\n\t\t\treturn this;\n\t\t}",
"public static String toFilePath(String path) {\n return !isNullOrEmpty(path) && isDirectoryPath(path)\n ? path.substring(0, path.length() - 1)\n : path;\n }",
"public abstract String getFileLocation();",
"public void zipDirectory(String sourceDirectoryPath, String zipOutputPath, Boolean ifAbsolutePath, Boolean ifProtect, int maxZipMbSizeToProtect) throws Exception {\t\t \n\t\t if(ifAbsolutePath) { zipOutputPath = zipDirectoryFullPath(sourceDirectoryPath, zipOutputPath); }\n\t\t else { zipOutputPath = zipDirectoryInternalPath(sourceDirectoryPath, zipOutputPath); }\t\t \n\t\t if(fileSizeMB(zipOutputPath) < maxZipMbSizeToProtect) {\n\t\t\t if(ifProtect){ fileRename(zipOutputPath,zipOutputPath.replace(\".zip\",\".renameToZip\")); }\n\t\t\t }\n\t\t }",
"@Override\r\n\tpublic void zipFile(ZipFileDetails zipFileDetails) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\", null, Level.ERROR, null);\r\n\r\n\t}",
"private String initialFileSetup(String file_path, String user_id) {\n\n String[] path_components = file_path.split(\"/\");\n String desired_filename = path_components[path_components.length - 1];\n String absolute_path = new File(\"\").getAbsolutePath();\n absolute_path = absolute_path.concat(\"/Final\");\n new File(absolute_path).mkdirs();\n absolute_path = absolute_path.concat(\"/Pause\");\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/\".concat(user_id));\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/Pause_\".concat(desired_filename));\n\n return absolute_path;\n }",
"public void zip(String directoryInZip, \n String filePath) throws Exception\n {\n File thisFile = new File(filePath);\n\n if (thisFile.exists()) {\n\n try {\n FileInputStream fi = new FileInputStream(thisFile);\n\n origin = new BufferedInputStream(fi, BUFFER);\n\n ZipEntry entry = new ZipEntry(directoryInZip + File.separator\n + thisFile.getName());\n out.putNextEntry(entry);\n\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n origin.close();\n\n } catch (FileNotFoundException e) {\n logger.error(\"File \" + filePath + \" not found !!\", e);\n } catch (IOException e) {\n logger.error(\"Could not write to Zip File \", e);\n throw new Exception(\"Could not write to Zip File \", e);\n }\n\n } else {\n // Log message if file does not exist\n logger.info(\"File \" + thisFile.getName()\n + \" does not exist on file system\");\n\n } \t\t\n }",
"public static String filename(String fullPath) {\n int dot = fullPath.lastIndexOf(\".\");\n int sep = fullPath.lastIndexOf(\"/\");\n return fullPath.substring(sep + 1, dot);\n }",
"private static void writeFile(ZipInputStream zipIn, String filePath) throws IOException {\n\n String parent = filePath.replace(filePath.substring(filePath.lastIndexOf('/')), \"\");\n createParents(parent);\n\n BufferedOutputStream bos = null;\n\n try {\n bos = new BufferedOutputStream(new FileOutputStream(filePath));\n byte[] bytesIn = new byte[BUFFER_SIZE];\n\n int read = 0;\n while ((read = zipIn.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n\n } catch (IOException e) {\n System.err.println(e.getMessage());\n Errors.setUnzipperError(true);\n\n } finally {\n if (bos != null) {\n bos.close();\n }\n }\n }",
"public static Path setupArchiveFile( final Configuration conf, final int count, boolean isJar ) throws IOException {\r\n\t\tFile tmpDir = File.createTempFile(\"tmpDir\", \"\");\r\n\t\tif (!tmpDir.delete()) {\r\n\t\t\tthrow new IOException(\"Can not delete recently created tmpFile\");\r\n\t\t}\r\n\t\tif (!tmpDir.mkdirs()) {\r\n\t\t\tthrow new IOException(\"Can not create tmp directory \" + tmpDir);\r\n\t\t}\r\n\t\t\r\n\t\tfinal Path tmpDirPath = new Path(tmpDir.getName());\r\n\t\tList<Path> files = createSimpleDirectory(conf, tmpDirPath, count, null);\r\n\t\tfinal Path zipFile = tmpDirPath.suffix(isJar?\".jar\":\".zip\");\r\n\t\tcreateArchiveFile(conf, zipFile, files, 1, isJar, null);\r\n\t\t/** Now clean up the tmpDir. */\r\n\t\tFileSystem fs = tmpDirPath.getFileSystem(conf);\r\n\t\tfs.delete( tmpDirPath, true);\r\n\t\treturn zipFile;\r\n\t}",
"public String getPathName()\n \t{\n \t\tif ( arcname!=null )\n \t\t\treturn arcname + ARC_SEPARATOR + pathname;\n \t\treturn pathname;\n \t}",
"public String getZIP()\r\n\t{\r\n\t\treturn zip.getModelObjectAsString();\r\n\t}",
"private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}",
"public String getPath() {\n if (fileType == HTTP) {\n return fileName.substring(0, fileName.lastIndexOf(\"/\"));\n } else {\n return fileName.substring(0, fileName.lastIndexOf(File.separator));\n }\n }",
"public String getPathName();",
"protected String buildVersionedPath(final String path, final AbstractResourceVersion version) {\n\t\tif (!version.isValid()) {\n\t\t\treturn path;\n\t\t}\n\t\tfinal int idx = path.lastIndexOf('.');\n\t\tif (idx > 0) {\n\t\t\treturn path.substring(0, idx) + \"-\" + version.getVersion() + path.substring(idx);\n\t\t} else {\n\t\t\treturn path + \"-\" + version.getVersion();\n\t\t}\n\t}",
"public static String getPath() {\n\t\t// Lấy đường dẫn link\n\t\tAuthentication auth1 = SecurityContextHolder.getContext().getAuthentication();\n\t\tAgentconnection cus = (Agentconnection) auth1.getPrincipal();\n\t\t \n\t\t//String PATH_STRING_REAL = fileStorageProperties.getUploadDir()+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t String PATH_STRING_REAL = \"E:/ezcloud/upload/\"+cus.getMerchant()+\"/hotel/images/\" + year + \"/\" + month + \"/\" ;\n\t return PATH_STRING_REAL;\n\t}",
"public Path getPath(String path,String nombreArchivo);"
] | [
"0.6595291",
"0.62112755",
"0.5896058",
"0.5748302",
"0.5714252",
"0.5712856",
"0.5622779",
"0.5448124",
"0.54452574",
"0.54271847",
"0.5376974",
"0.5325327",
"0.5317195",
"0.53054786",
"0.5301541",
"0.52291924",
"0.5214544",
"0.51893705",
"0.51335394",
"0.51243955",
"0.5107873",
"0.51064754",
"0.5099492",
"0.50705403",
"0.50552654",
"0.50516886",
"0.504832",
"0.5042851",
"0.5038224",
"0.5038224",
"0.5038224",
"0.5038224",
"0.5038224",
"0.50353765",
"0.5026426",
"0.50211537",
"0.50168574",
"0.50168574",
"0.5009601",
"0.49984884",
"0.49984884",
"0.49958628",
"0.49929887",
"0.49872142",
"0.49831572",
"0.49796006",
"0.49749437",
"0.49688363",
"0.49624684",
"0.49614367",
"0.49614367",
"0.49614367",
"0.49614367",
"0.49614367",
"0.49614367",
"0.49614367",
"0.49614367",
"0.49614367",
"0.4960497",
"0.49567273",
"0.49406433",
"0.49365044",
"0.4932223",
"0.4899249",
"0.48915213",
"0.48852694",
"0.4883572",
"0.4883572",
"0.48824695",
"0.4869598",
"0.48685905",
"0.4864431",
"0.48597234",
"0.48505163",
"0.48454866",
"0.48387522",
"0.48306385",
"0.48305798",
"0.48304442",
"0.48294678",
"0.4828548",
"0.48235843",
"0.4820935",
"0.4813434",
"0.48077765",
"0.4806701",
"0.4797714",
"0.47895598",
"0.47858655",
"0.47807795",
"0.4780091",
"0.4776782",
"0.477024",
"0.4769729",
"0.47680575",
"0.47667888",
"0.47650242",
"0.47580582",
"0.47556487",
"0.47509378"
] | 0.63836586 | 1 |
Handle the click on the start recognition button. | public void onClick(View v) {
if (v.getId() == R.id.btn_speak) {
startVoiceRecognitionActivity();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void onStartClickEvent() {\n\t\tmBtnStart.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tLog.d(TAG, \"onStartClickEvent\");\n\n\t\t\t\t//initViewConfig();\n\n//\t\t\t\tAVCom.start();\n\t\t\t\tavcom.Start();\n\t\t\t\tLog.d(TAG, \"onStartClickEvent done.\");\n\n\n\t\t\t}\n\t\t});\n\t}",
"public void clickStart(View view) {\n // open camera, get image and send to intent\n Intent intent = new Intent(this, PhotoDraw.class);\n String message = \"START\";\n intent.putExtra(msg, message);\n startActivity(intent);\n }",
"public void speakbutton_clicked(View v) {\n\t\tstartVoiceRecognitionActivity();\n\t}",
"public void speakButtonClicked(View v)\n {\n startVoiceRecognitionActivity();\n }",
"private void startButtonAction(){\n scoreboard.setStartAction(event->initControl());\n }",
"public void onClick(View v) {\n speechRecognizer.startListening(speechRecognizerIntent);\n Toast.makeText( getActivity(),\"Voice\", Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstart_click(e);\r\n\t\t\t}",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tSystem.out.println(\"mousePressed\");\n\t\tbtnNewButton.setIcon(new ImageIcon(\"./res/img/startlogo.png\"));\n\t\tjsr.startCaptureAudio(); // 오디오 캡쳐 시작\n\n\t}",
"public void handleStartClick(View view)\n {\n Intent intent = new Intent(this, SelectScreen.class);\n startActivity(intent);\n }",
"public void handleStart()\n {\n }",
"@Override\r\n\tpublic void onClick(View arg0) {\n\t\tIntent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\r\n\t\ti.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\r\n\t\ti.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Please Speak Now !\");\r\n\t\tstartActivityForResult(i, check);\r\n\t}",
"private void startRecognition() {\n mStatusTextView.setVisibility(View.VISIBLE);\n mStatusTextView.setText(R.string.status_scan_credentials);\n mStatusProgressBar.setVisibility(View.GONE);\n mRescanButton.setVisibility(View.GONE);\n\n mScannerView.setAnimated(true);\n hideMatchView();\n\n mTimeClockBar.setVisibility(View.VISIBLE);\n mTimeClockBar.setProgress(0);\n\n // Start a timeout for the recognition\n startRecognitionTimeout();\n\n mAllPasswords.clear();\n mSSIDMatchCounts.clear();\n mProcessor.setActive(true);\n }",
"@Override\n public void onClick(View v) {\n start();\n }",
"public void ClickScanner(View view){\n MainActivity.redirectActivity(this,Scanner.class);\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent imageIntent = new Intent(\"android.media.action.IMAGE_CAPTURE\");\n\t\t\t\tstartActivityForResult(imageIntent, IMAGE_SELECTION);\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void recognizerStarted() {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString contextText = (String) mController.getText();\r\n\t\t\t\t\r\n\t\t\t\tif (contextText.equals(\"開始轉播\")){\r\n\t\t\t\t\ttry {\r\n\t\t startRecording();\r\n\t\t } catch (Exception e) {\r\n\t\t \te.getStackTrace();\r\n\t\t String message = e.getMessage();\r\n\t\t Log.i(null, \"Problem \" + message);\r\n\t\t mrec.release();\r\n\t\t }\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartService(myit);\n\t\t\t}",
"private void when_clickButtonVoice() {\n onView(withId(R.id.buttonVoice))\n .perform(click());\n }",
"@FXML\n\tpublic void handleStartScreenButton(){\n\t mainAnimation.stop();\n\t\tScreen cs = new Screen(this.getStage(), \"Dungeon Start\", \"View/StartScreen.fxml\");\n\t\tController controller = new StartScreenController(this.getStage());\n\t\tcs.display(controller);\n\t}",
"private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {\n theController.switchToStart();\n }",
"protected void cameraClicked() {\n\t\tif (this.pictureFromCameraString != null\n\t\t\t\t&& !\"\".equals(this.pictureFromCameraString)) {\n\t\t\timageAvailable();\n\t\t} else {\n\t\t\timageUnavailable();\n\t\t}\n\t\tthis.cameraIsActive = true;\n\t\tthis.camera.addStyleDependentName(\"highlighted\");\n\t\tthis.upload.removeStyleDependentName(\"highlighted\");\n\t\tthis.inputPanel.setWidget(this.cameraPanel);\n\t\tgetCameraPictureNative();\n\t}",
"private void startVoiceRecognitionActivity()\n {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n startActivityForResult(intent, REQUEST_CODE);\n }",
"private void startVoiceRecognitionActivity()\n\t{\n\t\tSystem.out.println(\"Starting activity lel\");\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n\t\tstartActivityForResult(intent, VOICE_REQUEST_CODE);\n\t}",
"public void onButtonAPressed();",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartService(streamService);\n\t\t\t\tstartButton.setEnabled(false);\n\t\t\t}",
"public void onPluginStart()\n\t{\n\t\tfor (Integer event : this.getNetworkCommands())\n\t\t\tCalicoEventHandler.getInstance().addListener(event.intValue(), this, CalicoEventHandler.ACTION_PERFORMER_LISTENER);\n\t\t\n\t\tCanvasStatusBar.addMenuButtonRightAligned(CreateCustomScrapButton.class);\n\t\t\n\t\t//Add an additional voice to the bubble menu\n\t\t//CGroup.registerPieMenuButton(SaveToPaletteButton.class);\n\t\t\n\t\t//Register to the events I am interested in from Calico's core events\n\t\t//Example: CalicoEventHandler.getInstance().addListener(NetworkCommand.VIEWING_SINGLE_CANVAS, this, CalicoEventHandler.PASSIVE_LISTENER);\n\n\t}",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.start_speaking:\n\t\t\tLog.e(\"AudioSession\", \"AudioSession is Going to start\");\n\t\t\t\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tqueuePos.setVisibility(View.VISIBLE);\n\t\t\t\t\tqueuePos.setText(\"AUDIO streaming...\");\n\t\t\t\t\tstartsp.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tas = new AudioSession();\t//THIS OBJECT HANDLES ALL ASPECTS OF COMMUNICATION\n\t\t\tas.onRequestPress();\n\n\t\t\tLog.e(\" AudioSession\", \"AudioSession Started\");//START AUDIO MESSAGE\n\t\t\tbreak;\n\t\t\n\t\t\t\n\t\t}\n\t}",
"private void startVoiceRecognitionActivity() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"What food are you stocking right now?\");\n\t\tstartActivityForResult(intent, SPEECH_REQCODE);\n\t}",
"public static void clickStartBtn() {\t\n\t\tdriver.findElement(By.id(\"startB\")).click();\t\n\t}",
"void onCaptureStart();",
"private void onTrainActionSelected() {\n\t\tArrayList<Myo> connectedDevices = Hub.getInstance()\n\t\t\t\t.getConnectedDevices();\n\t\tif (connectedDevices.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the Myo to train. In this case, we will train the first Myo in\n\t\t// the Hub's\n\t\t// connected devices list.\n\t\tMyo myo = connectedDevices.get(0);\n\n\t\t// Launch the TrainActivity for the specified Myo.\n\t\tIntent intent = new Intent(this, TrainActivity.class);\n\t\tintent.putExtra(TrainActivity.EXTRA_ADDRESS, myo.getMacAddress());\n\t\tstartActivity(intent);\n\t}",
"public void startDetect(){\n\n EventHandle[] start = ECAAgent.getEventHandles(startDetectEventName);\n ECAAgent.raiseEndEvent(start,this);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlisten_word();\n\t\t\t}",
"public void btn_LearningActivity() {\r\n\t\tbtn_LearningActivity.click();\r\n\t}",
"public void clickedButton(View view) {\n\n switch (view.getId()) {\n case R.id.contactBook:\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n break;\n case R.id.message:\n intent = new Intent(this, SMS_Activity.class);\n startActivity(intent);\n break;\n case R.id.fav_contacts:\n intent = new Intent(this, ContactGridActivity.class);\n startActivity(intent);\n break;\n case R.id.lastCall:\n intent = new Intent(this, LatestCallsActivity.class);\n startActivity(intent);\n break;\n case R.id.microphone:\n SpeechRecognitionHelper.run(this);\n break;\n }\n }",
"private void startVoiceRecognitionActivity() {\n\t\t// Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t// RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n\t\t// \"Diga o valor do produto\");\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, \"pt-BR\");\n\t\t// // intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE,\n\t\t// \"en-US\");\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE,\n\t\t// true);\n\t\t// startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);\n\t\tUtils.startVoiceRecognitionActivity(this, Utils.nomeProdutoMessage);\n\t}",
"public void onButtonPressed(Uri uri) {\n if (mListener != null) {\n mListener.onLoadInteraction(null, null);\n }\n }",
"void startView();",
"public void startSpeechRecognition() {\n\t\tIntent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\ti.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-GB\");\n\t\ttry {\n\t\t\tstartActivityForResult(i, REQUEST_OK);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n qrScan.initiateScan();\n }",
"private void onScanActionSelected() {\n\t\tIntent intent = new Intent(this, ScanActivity.class);\n\t\tstartActivity(intent);\n\t}",
"public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }",
"private void onScanActionSelected() {\n Intent intent = new Intent(this, ScanActivity.class);\n startActivity(intent);\n }",
"private void initView(){\n btnStartCloud = (Button)findViewById(R.id.btnStartCloud);\n btnStartCloud.setOnClickListener(this);\n }",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\t\n\tflightSelectImageButton.setOnClickListener(this);\n\t fligthtClick.setOnClickListener(this);\n\t\t\n\t}",
"public void onClickImgBtnHablar_(View v) {\n Intent intentActionRecognizeSpeech = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\n // Establece el idioma, predeterminado Ingles Ussa\n intentActionRecognizeSpeech.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"us-US\");\n\n // Inicia la actividad de reconocimiento de voz\n try {\n startActivityForResult(intentActionRecognizeSpeech, RECOGNIZE_SPEECH_ACTIVITY);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(), \"¡Opps! Su dispositivo no es compatible con el reconocimiento de voz.\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tllistenBtnset();\n\t\t\t}",
"private void runTextRecognition() {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(mSelectedImage);\n FirebaseVisionTextRecognizer recognizer = FirebaseVision.getInstance()\n .getOnDeviceTextRecognizer();\n //mTextButton.setEnabled(false);\n recognizer.processImage(image)\n .addOnSuccessListener(\n new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n //mTextButton.setEnabled(true);\n processTextRecognitionResult(texts);\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Task failed with an exception\n //mTextButton.setEnabled(true);\n e.printStackTrace();\n }\n });\n }",
"@Override\n\tpublic void onScanViewButtonClick() {\n\t\t\n\t}",
"public void startVoiceRecognition() {\n startVoiceRecognition(null);\n }",
"private WriteAReviewPage clickOnStartHereButton(){\n click(button_StartHereLocator);\n return new WriteAReviewPage();\n }",
"public void click() {\n\t\tif(this.buttonListener != null) {\n\t\t\tthis.buttonListener.onClicked();\n\t\t}\n\t}",
"private void startGameButton() {\n startGame = new JButton(\"Aloita peli!\");\n ActionListener startGameListener = new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n controller.startGame();\n }\n };\n startGame.addActionListener(startGameListener);\n }",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"public void beginPress();",
"private void display() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n// Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAndroidTools.PlaySound(getBaseContext(), R.raw.animallearning);\n\t\t\t\tAndroidTools.wait(1500);\n\t\t\t\tIntent learningScreenIntent = new Intent(MainPage.this, LearningPage.class);\n\n\t\t\t\t//load screen\n\t\t\t\tMainPage.this.startActivity(learningScreenIntent);\n\t\t\t}",
"public boolean clickOnStartButton() {\r\n\t\ttry {\r\n\t\t\tgetAssignmentStratButton().click();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void run() {\n System.out.println(\"main recognition loop started\");\n while (true) {\n try { \n // ask the recognizer to recognize text in the recording\n if(recognizer.getState()==Recognizer.State.READY) {\n Result result = recognizer.recognize(); \n // got a result\n if (result != null) {\n resultText = result.getBestFinalResultNoFiller();\n if(resultText.length()>0) {\n // System.out.println(\"[\"+result.getStartFrame()+\",\"+result.getEndFrame()+\"]\");\n// System.out.println(result.getTimedBestResult(false, true));\n makeEvent();\n }\n }\n }\n }\n catch (Exception e) { \n System.out.println(\"exception Occured \"); \n e.printStackTrace(); \n System.exit(1);\n }\n }\n }",
"private View.OnClickListener onVoiceSearchButtonClick() {\n return new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n try {\n if (canRecognizeSpeechInput()) {\n final Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\n // Specify the calling package to identify your application\n intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass()\n .getPackage().getName());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n \"Say a Make, Model, Stock Number, or VIN\");\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH);\n\n // Specify how many results you want to receive. The results will be sorted\n // where the first result is the one with higher confidence.\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 5);\n\n getParentFragment().startActivityForResult(intent,\n VOICE_RECOGNITION_REQUEST_CODE);\n }\n }\n catch (final Exception e) {\n showSpeechRecognitionErrorDialog();\n logError(e);\n }\n }\n };\n }",
"public void onClick(View v) {\n \tm_main.gameStart();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == startButton) {\n\t\t\tinit();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAndroidTools.PlaySound(getBaseContext(), R.raw.animalspelling);\n\t\t\t\tAndroidTools.wait(1500);\n\t\t\t\tIntent learningScreenIntent = new Intent(MainPage.this, SpellingPage.class);\n\n\t\t\t\t//load screen\n\t\t\t\tMainPage.this.startActivity(learningScreenIntent);\n\t\t\t}",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tIntent intent = new Intent(MainActivity.this, RgkSateLiteService.class);\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.start_button:\n\t\t\t// ¿ªÆôÎÀÐDz˵¥\n\t\t\tstartService(intent);\n\n\t\t\tbreak;\n\t\tcase R.id.close_button:\n\t\t\t// ¹Ø±ÕÎÀÐDz˵¥\n\t\t\tstopService(intent);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}",
"@Override\r\n\tpublic void onScanViewButtonClick() {\n\r\n\t}",
"@Override\n public void initiateMouse() {\n\n MouseHandler m = new MouseHandler();\n m.addRunnablePress(1, new SelectNote(this.model, this.view.getGui(), m));\n m.addRunnablePress(3, new SelectNoteToBeAdded(this.model, this.view.getGui(), m));\n m.addRunnableRelease(3, new AddNote(this.model, this.view.getGui(), this.view, m));\n\n this.view.addMouseListener(m);\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thelper_.start();\n\t\t\t}",
"@Override\n \tpublic void onClick(View v)\n \t{\n \t\tswitch (v.getId())\n \t\t{\n \t\t\tcase R.id.record_button:\n \t\t\t\trecordSound();\n \t\t\t\tbreak;\n \t\t\tcase R.id.select_button:\n\t\t\t\tContext context = getContext();\n\t\t\t\tIntent intent = new Intent(context, MediaSelectorActivity.class);\n\t\t\t\t((Activity) context).startActivityForResult(intent, REQUEST_MEDIA);\n \t\t\t\tbreak;\n \t\t\tcase R.id.delete_button:\n \t\t\t\tcallBack.onDelete();\n \t\t\t\tdismiss();\n \t\t\t\tbreak;\n \t\t\tcase R.id.save_button:\n \t\t\t\tcheckPoint.setName(nameTextField.getText().toString());\n \t\t\t\tString radiusString = radiusTextField.getText().toString();\n \t\t\t\tint radius = Integer.parseInt(radiusString);\n \t\t\t\tcheckPoint.setRadius(radius);\n \t\t\t\tdismiss();\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\tbreak;\n \t\t}\n \t}",
"@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}",
"public void startGame() {\n StartButton = (ImageButton) findViewById(R.id.imageButton_Start); //we are making a new Button\n StartButton.setOnClickListener(new View.OnClickListener() { //when we are pressing the button this will happen\n @Override\n public void onClick(View view) {\n stopPlaying();\n startGameActivity();\n }\n });\n }",
"public void enterRealTimeRecognitionMode(View view) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\r\n\tpublic void handle(ActionEvent event) {\n\t\tSystem.out.println( \"Got to MainFXMLController!\" );\r\n\t\tmyLabel.setText( \"Game started\" );\r\n\t}",
"private void setUpTracking(){\n final Button startRoute = findViewById(R.id.trackRoute);\n\n startRoute.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(trackingRoute){\n eventStopTrackingRoute();\n startRoute.setText(R.string.startRoute);\n }\n else{\n startTrackingRoute();\n startRoute.setText(R.string.stopTracking);\n trackingRoute = true;\n }\n }\n });\n }",
"public void buttonClicked();",
"public void clickedPresentationNew() {\n\t\t\n\t}",
"void play(){\n\n\t\tnew X.PlayXicon().root.setOnClickListener(Play_TestsPresenter::cc);\n\t}",
"@Override\n public void onClick(View view) {\n handlePlaybackButtonClick();\n }",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"public void clickContinue() {\n\t\tcontinueButton.click();\n\t}",
"@Override\n\tpublic boolean takeControl() {\n\t\tir.fetchSample(irSample, 0);\n\t\treturn isPressed() == true;\n\t}",
"private void initUI() {\n\t\tmBtnVoidImage = (Button)findViewById(R.id.btn_tutorial_void);\n\t\tmBtnVoidImage.setText(R.string.capture_check_void);\n\t\tmBtnVoidImage.setOnClickListener(this);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tplayer.start();\r\n\t\t\t}",
"public void recorderSliderPressed() {\n\t\tcontroller.recorderSliderPressed();\n\t}",
"public void start(final AddPhotoListener takePhotoListener){\n if(builder == null){\n builder = new AlertDialog.Builder(activity);\n builder.setItems(BUTTON_TEXT, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n switch (i){\n case 0://拍攝相片\n takePhotoListener.onPhoto(showCameraAction());\n break;\n case 1://選取相簿\n doSelectAlbumNew();\n break;\n default:\n break;\n }\n }\n });\n }\n if(builder != null) builder.show();\n }",
"private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }",
"private void recognize() {\n //Setup our Reco transaction options.\n Transaction.Options options = new Transaction.Options();\n options.setDetection(resourceIDToDetectionType(R.id.long_endpoint));\n options.setLanguage(new Language(\"eng-USA\"));\n options.setEarcons(startEarcon, stopEarcon, errorEarcon, null);\n\n //Add properties to appServerData for use with custom service. Leave empty for use with NLU.\n JSONObject appServerData = new JSONObject();\n //Start listening\n recoTransaction = speechSession.recognizeWithService(\"M10253_A3221\", appServerData, options, recoListener);\n }",
"@Override\n protected void onAfterSetContentView() {\n super.onAfterSetContentView();\n View.OnClickListener onClickListener = new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n switch (v.getId()) {\n case R.id.btn_scan:\n btnSignalScan();\n break;\n default:\n break;\n }\n }\n };\n btn_scan.setOnClickListener(onClickListener);\n }",
"void userPressConnectButton();",
"@OnClick(R.id.documents_button)\n protected void onPickFromDocumentsClicked() {\n EasyImage.openDocuments(this);\n }",
"public void clickOnShutterButton(View v) {\n Button button = (Button) v;\n textRecognizer.release();\n Toast.makeText(this, \"Picture Taken Successfully!!\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), StoreActivity.class);\n startActivity(intent);\n finish();\n }",
"private void startControlRobotActivity(){\n Intent intent = new Intent(this, ControlRobotActivity.class );\n startActivity(intent);\n finish();\n }",
"private void startSlideMenuItemActionPerformed() {//GEN-FIRST:event_startSlideMenuItemActionPerformed\r\n this.controller.StartSlideshow();\r\n startAndStopToggleButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/assets/pause.png\")));\r\n startAndStopToggleButton.setSelected(true);\r\n }"
] | [
"0.6503362",
"0.6389483",
"0.6357532",
"0.63118356",
"0.6276444",
"0.61434746",
"0.6116258",
"0.6050757",
"0.6039879",
"0.60358506",
"0.5970689",
"0.5919537",
"0.59159726",
"0.59033424",
"0.58712995",
"0.58702177",
"0.58538",
"0.5837274",
"0.58315974",
"0.58089566",
"0.5769911",
"0.5766497",
"0.5753779",
"0.57291496",
"0.57286245",
"0.57242495",
"0.57183826",
"0.5701155",
"0.56916237",
"0.56913555",
"0.56774944",
"0.5675015",
"0.5669821",
"0.5669769",
"0.5664484",
"0.56280863",
"0.5625249",
"0.5623793",
"0.5623146",
"0.56223416",
"0.56202704",
"0.56015617",
"0.5599657",
"0.55809957",
"0.5577633",
"0.55643564",
"0.5563394",
"0.55533963",
"0.5550442",
"0.553715",
"0.553522",
"0.55157137",
"0.5513729",
"0.5508306",
"0.5507618",
"0.54853266",
"0.5484346",
"0.5484346",
"0.5484346",
"0.5484346",
"0.5484346",
"0.54731184",
"0.5465606",
"0.5464142",
"0.54622155",
"0.54572475",
"0.5451782",
"0.54439855",
"0.54439735",
"0.5441079",
"0.54344654",
"0.54323256",
"0.5422012",
"0.54191595",
"0.5417159",
"0.54161346",
"0.5407265",
"0.5396115",
"0.5392863",
"0.5392401",
"0.53817046",
"0.537637",
"0.5374403",
"0.5372761",
"0.5371048",
"0.5362862",
"0.53612083",
"0.53518474",
"0.5349765",
"0.5345236",
"0.5342389",
"0.53415555",
"0.5337111",
"0.5331874",
"0.5330356",
"0.53279173",
"0.53177774",
"0.5314739",
"0.53123933",
"0.5311573"
] | 0.5874988 | 14 |
Fire an intent to start the speech recognition activity. | private void startVoiceRecognitionActivity() {
// Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
// RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
// intent.putExtra(RecognizerIntent.EXTRA_PROMPT,
// "Diga o valor do produto");
// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, "pt-BR");
// // intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE,
// "en-US");
// intent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE,
// true);
// startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);
Utils.startVoiceRecognitionActivity(this, Utils.nomeProdutoMessage);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startSpeechRecognition() {\n\t\tIntent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\ti.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-GB\");\n\t\ttry {\n\t\t\tstartActivityForResult(i, REQUEST_OK);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"private void startVoiceRecognitionActivity() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"What food are you stocking right now?\");\n\t\tstartActivityForResult(intent, SPEECH_REQCODE);\n\t}",
"private void startVoiceRecognitionActivity()\n {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n startActivityForResult(intent, REQUEST_CODE);\n }",
"private void startVoiceRecognitionActivity()\n\t{\n\t\tSystem.out.println(\"Starting activity lel\");\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n\t\tstartActivityForResult(intent, VOICE_REQUEST_CODE);\n\t}",
"public void onClick(View v) {\n speechRecognizer.startListening(speechRecognizerIntent);\n Toast.makeText( getActivity(),\"Voice\", Toast.LENGTH_SHORT).show();\n }",
"private void speak() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM) ;\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Speak the Item\");\n\n startActivityForResult(intent, SPEECH_REQUEST_CODE);\n\n }",
"public void speakButtonClicked(View v)\n {\n startVoiceRecognitionActivity();\n }",
"private void askSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n \"Hi speak something\");\n speakOut(\"Open Mic\");\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n\n }\n }",
"public void listen(View v)\r\n {\r\n // set up an intent to ask for speech-to-text, and connect it back to\r\n // this Activity\r\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\r\n intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());\r\n\r\n // Give text to display, and a hint about the language model\r\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Tell the robot what to do!\");\r\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\r\n\r\n // How many results to return? They will be sorted by confidence\r\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 5);\r\n\r\n // Start the activity\r\n startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);\r\n }",
"public void startVoiceRecognition() {\n startVoiceRecognition(null);\n }",
"private void loadSpeechActivity() {\n PackageManager pm = getPackageManager();\n List<ResolveInfo> activities = pm.queryIntentActivities(\n new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);\n if (activities.size() == 0)\n {\n voiceSupport=0;\n }\n\t\t\n\t}",
"public void showSpeechInput(View v) {\n\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Say something\");\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(this, \"Speech To Text not supported\", Toast.LENGTH_LONG).show();\n }\n }",
"private void listenToSpeech(int returnCode) {\n\t\tIntent listenIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\t//indicate package\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());\n\t\t//message to display while listening\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"\");\n\t\t//set speech model\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\t//specify number of results to retrieve\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n\t\t//start listening\n\t\tstartActivityForResult(listenIntent, returnCode);\n\n\t}",
"public String speak(){\n speechOutput.clear();\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Just speak normally into your phone\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n try {\n startActivityForResult(intent, VOICE_RECOGNITION);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n\n\n return speechResult;\n }",
"public void onSpeak(View v)\n\t{\n\t\tstartVoiceRecognitionActivity();\n\t}",
"private void displaySpeechRecognizer() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n // Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, Constants.SPEECH_REQUEST_CODE);\n }",
"private void display() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n// Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n }",
"public void speakbutton_clicked(View v) {\n\t\tstartVoiceRecognitionActivity();\n\t}",
"private void manageSpeechRecognition() {\n\n mRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, Locale.getDefault().getLanguage().trim());\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, this.getPackageName());\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 100);\n\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 3);\n\n mSongSpeechRecognitionListener = new SongSpeechRecognitionListener(mRippleBackground, mFloatingActionButton);\n\n mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);\n mSpeechRecognizer.setRecognitionListener(mSongSpeechRecognitionListener);\n\n }",
"public void enterRealTimeRecognitionMode(View view) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\r\n\tpublic void onClick(View arg0) {\n\t\tIntent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\r\n\t\ti.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\r\n\t\ti.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Please Speak Now !\");\r\n\t\tstartActivityForResult(i, check);\r\n\t}",
"public void onClick(View v) {\n\t\tif (v.getId() == R.id.btn_speak) {\n\t\t\tstartVoiceRecognitionActivity();\n\t\t}\n\t}",
"public void onBeginningOfSpeech() {\n Log.i(TAG, \"onBeginningOfSpeech\");\n }",
"@Override\n public void onBeginningOfSpeech() {\n Log.i(\"SRL\", \"onBeginningOfSpeech\");\n }",
"public static void launchVoiceSearch(Context context) {\n Intent intent = new Intent(Intent.ACTION_SEARCH_LONG_PRESS);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }",
"public void startInterstitialActivity() {\n Intent activityIntent = getActivityIntent();\n if (activityIntent != null) {\n this.context.startActivity(activityIntent);\n return;\n }\n throw new IllegalArgumentException(\"null intent\");\n }",
"private View.OnClickListener onVoiceSearchButtonClick() {\n return new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n try {\n if (canRecognizeSpeechInput()) {\n final Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\n // Specify the calling package to identify your application\n intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass()\n .getPackage().getName());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n \"Say a Make, Model, Stock Number, or VIN\");\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH);\n\n // Specify how many results you want to receive. The results will be sorted\n // where the first result is the one with higher confidence.\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 5);\n\n getParentFragment().startActivityForResult(intent,\n VOICE_RECOGNITION_REQUEST_CODE);\n }\n }\n catch (final Exception e) {\n showSpeechRecognitionErrorDialog();\n logError(e);\n }\n }\n };\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"us-US\");\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n getString(R.string.speech_prompt));\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.speech_not_supported),\n Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == SystemData.VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\n final ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n if (matches.size() > 0) {\n text = matches.get(0);\n callContactByName();\n selectFunctionality();\n }\n } else if (requestCode == MY_TTS_CHECK_CODE) {\n if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) {\n TextToSpeechUtility.setupTextToSpeech(this);\n } else {\n Intent installIntent = new Intent();\n installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);\n startActivity(installIntent);\n }\n\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == Constants.SPEECH_REQUEST_CODE && resultCode == RESULT_OK) {\n List<String> results = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n spokenText = results.get(0);\n // Do something with spokenText\n Log.i(TAG, \"Spoken Text = \" + spokenText);\n\n if (spokenText.startsWith(\"home\") || spokenText.startsWith(\"work\")) {\n Log.i(TAG, \"Creating Google Api Client\");\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addApi(Wearable.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n mGoogleApiClient.connect();\n }\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }",
"private void LogRecognitionStart() {\n String recoSource;\n if (this.getUseMicrophone()) {\n recoSource = \"microphone\";\n } else if (this.getMode() == SpeechRecognitionMode.ShortPhrase) {\n recoSource = \"short wav file\";\n } else {\n recoSource = \"long wav file\";\n }\n\n this.WriteLine(\"\\n--- Start speech recognition using \" + recoSource + \" with \" + this.getMode() + \" mode in \" + this.getDefaultLocale() + \" language ----\\n\\n\");\n }",
"void start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);",
"public synchronized void startSpeechRecognition() {\r\n\t\t\r\n\t\t//Check lock\r\n\t\tif (speechRecognizerThreadRunning)\r\n\t\t\tlogger.log(Level.INFO, \"Speech Recognition Thread already running...\\n\");\r\n\t\telse\r\n\t\t\t//Submit to ExecutorService\r\n\t\t\teventsExecutorService.submit(() -> {\r\n\t\t\t\t\r\n\t\t\t\t//locks\r\n\t\t\t\tspeechRecognizerThreadRunning = true;\r\n\t\t\t\tignoreSpeechRecognitionResults = false;\r\n\t\t\t\t\r\n\t\t\t\t//Start Recognition\r\n\t\t\t\trecognizer.startRecognition(true);\r\n\t\t\t\t\r\n\t\t\t\t//Information\t\t\t\r\n\t\t\t\tlogger.log(Level.INFO, \"You can start to speak...\\n\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\twhile (speechRecognizerThreadRunning) {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * This method will return when the end of speech is reached. Note that the end pointer will determine the end of speech.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tSpeechResult speechResult = recognizer.getResult();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Check if we ignore the speech recognition results\r\n\t\t\t\t\t\tif (!ignoreSpeechRecognitionResults) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Check the result\r\n\t\t\t\t\t\t\tif (speechResult == null)\r\n\t\t\t\t\t\t\t\tlogger.log(Level.INFO, \"I can't understand what you said.\\n\");\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//Get the hypothesis\r\n\t\t\t\t\t\t\t\tspeechRecognitionResult = speechResult.getHypothesis();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//You said?\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"You said: [\" + speechRecognitionResult + \"]\\n\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//Call the appropriate method \r\n\t\t\t\t\t\t\t\tmakeDecision(speechRecognitionResult, speechResult.getWords());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tlogger.log(Level.INFO, \"Ingoring Speech Recognition Results...\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tlogger.log(Level.WARNING, null, ex);\r\n\t\t\t\t\tspeechRecognizerThreadRunning = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlogger.log(Level.INFO, \"SpeechThread has exited...\");\r\n\t\t\t\t\r\n\t\t\t});\r\n\t}",
"void start() {\n\t\t\n\t\ttts = new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {\n\t\t\t@Override\n\t\t\tpublic void onInit(int status) {\n\t\t\t\tif (status != TextToSpeech.ERROR) {\n\t\t\t\t\ttts.setLanguage(Locale.KOREAN);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\trecognizerIntent = new Intent(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE);\n\t\trecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getPackageName());\n\t\trecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"ko-KR\");\n\t\t\n\t\tmRecognizer = SpeechRecognizer.createSpeechRecognizer(this);\n\t\tmRecognizer.setRecognitionListener(recognitionListener);\n\t\t\n\t\t\n\t\tV_button.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tif (AL_keywordSelected.size() == 0)\n\t\t\t\t\tstartVoice();\n\t\t\t\telse {\n\t\t\t\t\tString str = \"\";\n\t\t\t\t\t\n\t\t\t\t\tfor (String s : AL_keywordSelected)\n\t\t\t\t\t\tstr += s + \" \";\n\t\t\t\t\t\n\t\t\t\t\tsendMsg(str);\n\t\t\t\t\tinitKeyword();\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\tfirestore.collection(\"command\")\n\t\t\t.addSnapshotListener(new EventListener<QuerySnapshot>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onEvent(@Nullable QuerySnapshot snapshots, @Nullable FirebaseFirestoreException e) {\n\t\t\t\t\tif (e != null) {\n\t\t\t\t\t\tlog(\"listen:error\" + e);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor (DocumentChange dc : snapshots.getDocumentChanges()) {\n\t\t\t\t\t\tQueryDocumentSnapshot document = dc.getDocument();\n\t\t\t\t\t\t\n\t\t\t\t\t\tString key = document.getId();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tCommand command;\n\t\t\t\t\t\t\tswitch (dc.getType()) {\n\t\t\t\t\t\t\t\tcase ADDED:\n\t\t\t\t\t\t\t\t\tcommand = new Command(key, document);\n\t\t\t\t\t\t\t\t\tlog(\"New: \" + key);\n\t\t\t\t\t\t\t\t\tlog(command.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmapData.put(key, command);\n\t\t\t\t\t\t\t\t\tupdateKeyword();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase MODIFIED:\n\t\t\t\t\t\t\t\t\tcommand = new Command(key, document);\n\t\t\t\t\t\t\t\t\tlog(\"Modified: \" + key);\n\t\t\t\t\t\t\t\t\tlog(command.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tCommand oldCommand = mapData.get(key);\n\t\t\t\t\t\t\t\t\tif (command.responseTimestamp.getSeconds() != oldCommand.responseTimestamp.getSeconds()) {\n\t\t\t\t\t\t\t\t\t\tfor (String waitingKey : waitingKeys) {\n\t\t\t\t\t\t\t\t\t\t\tif (waitingKey.equals(key)) {\n\t\t\t\t\t\t\t\t\t\t\t\taddOutputMessage(command.response);\n\t\t\t\t\t\t\t\t\t\t\t\twaitingKeys.remove(key);\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\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmapData.put(key, command);\n\t\t\t\t\t\t\t\t\tupdateKeyword();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase REMOVED:\n\t\t\t\t\t\t\t\t\tcommand = new Command(key, document);\n\t\t\t\t\t\t\t\t\tlog(\"Removed: \" + key);\n\t\t\t\t\t\t\t\t\tlog(command.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmapData.remove(key);\n\t\t\t\t\t\t\t\t\tupdateKeyword();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\tlog(\"error: \" + key);\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\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}",
"@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\r\n {\r\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\r\n // go through the results, dump them all to a TextView\r\n ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\r\n String res = matches.get(0);\r\n if (res.contains(\"dance\")) {\r\n speak(\"Did you say dance? That robot over there likes to dance... should I play some music for it?\");\r\n }\r\n else if (res.contains(\"your name\")) {\r\n speak(\"My name is \" + prefs.getString(PREFS_NAME, \"Mrs. Robot\"));\r\n }\r\n else if (res.contains(\"do you like first grade\")) {\r\n speak(\"I love first grade. Reading and Writing and Math are some of my favorites!\");\r\n }\r\n else if (res.contains(\"do you like kindergarten\")) {\r\n speak(\"I think kindergarten is great. I especially love kid writing!\");\r\n }\r\n else if (res.contains(\"what do you know\")) {\r\n speak(\"I don't know very much. Robots aren't as smart as kids.\");\r\n }\r\n else {\r\n speak(\"It sounded like you said \" + res + \". I don't know what that means\");\r\n }\r\n }\r\n else if (requestCode == VOICE_RECOGNITION_REQUEST_CODE) {\r\n speak(\"I didn't understand that... please try again\");\r\n }\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }",
"public abstract void startVoiceRecognition(String language);",
"private void broadcastVoiceCommandAction() {\n\t\tVoiceCommandStartIntent.putExtra(\"command\", mApplications.get(CurIndex).title);\r\n\t\tcontext.sendBroadcast(VoiceCommandStartIntent);\r\n\t}",
"private void promptSpeechInput() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n\t\t\t\tgetString(R.string.speech_prompt));\n\t\ttry {\n\t\t\tstartActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n\t\t} catch (ActivityNotFoundException a) {\n\t\t\tToast.makeText(getActivity(),\n\t\t\t\t\tgetString(R.string.speech_not_supported),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\tRecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\n\t\t\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-US\");\n\n\t\t\t\ttry {\n\t\t\t\t\tstartActivityForResult(intent, RESULT_SPEECH);\n\t\t\t\t\tet1.setText(\"\");\n\t\t\t\t} catch (ActivityNotFoundException a) {\n\t\t\t\t\tToast t = Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\"Opps! Your device doesn't support Speech to Text\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\tt.show();\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}",
"@Override\n public void startActivity(Intent intent) {\n startActivity(intent, null);\n }",
"@Override\n public void run() {\n startActivity(intent);\n }",
"@VisibleForTesting\n public boolean startVoiceRecognition(byte[] address) {\n return startVoiceRecognitionNative(address);\n }",
"@Override\n public void onClick(View v) {\n text_to_speech = set_voice(text_to_speech);\n int len = ar.length;\n for (int i = 0; i < len; i++){\n speak(text_to_speech,ar[i]);\n }\n }",
"void startNewActivity(Intent intent);",
"private void startControlRobotActivity(){\n Intent intent = new Intent(this, ControlRobotActivity.class );\n startActivity(intent);\n finish();\n }",
"public void onVoiceSearchClick(View v) {\n \ttry{\n \t\tAppMeasurementWrapper.getInstance().initialize(\n\t\t\t\t\tgetApplication());\n\t\t\tAppMeasurementWrapper\n\t\t\t\t\t.getInstance()\n\t\t\t\t\t.storeTransitionSrcPoint(\n\t\t\t\t\t\t\tAppEffectClickPointEnum.HOME_VOICESEARCH);\n \t\t\t\tPackageManager pm = getPackageManager();\n\t\t\t\t\t\n\t\t\t\t\tList<ResolveInfo> activities = pm.queryIntentActivities(\n\t\t\t new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);\n\t\t\t\t\t//check if the device supports voice search\n\t\t\t\t\tif (activities.size() != 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\t\t\t intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\t RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\t\t\t intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE,\n\t\t\t\t Locale.getDefault());\n\t\t\t\t intent.putExtra(RecognizerIntent.EXTRA_PROMPT, getResources().getString(R.string.voice_search_prompt));\n\t\t\t\t \n\t\t\t\t startActivityForResult(intent,VOICE_RECOGNITION_REQUEST_CODE);\n\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tToast.makeText(RakutenHomeController.this, R.string.no_voice_search, 1).show();\n\t\t\t\t\t}\n\n \t} catch (Exception e) {\n\t\t\tLogUtils.getInstance().d(LOG_TAG, \"[onVoiceSearchClick] error: \", e);\n\t\t}\n }",
"public void startActivity(Activity activity, final String activityName, final Bundle extras)\n {\n EngagementActivityManager.getInstance().setCurrentActivity(activity, activityName);\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.startActivity(activityName, extras);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }",
"public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }",
"void start(Intent intent, Class<? extends IIntentHandler> handlerClass, IIntentCallback callback,\n\t\t\tIEclipseContext context);",
"@Override\n public void onStart(Intent intent, int startId) {\n \tsuper.onStart(intent, startId);\n \t\n \t//Notification(intent.getStringExtra(\"text\"));\n \tspokenText = \"\";\n \tspokenText += intent.getStringExtra(\"text\")+\"\";\n \n \t\n \tmTts = new TextToSpeech(this, this);\n \tToast.makeText(this, \"MyAlarmService.onStart()\"+spokenText, Toast.LENGTH_LONG).show();\n \t\n \n }",
"private void recognize() {\n //Setup our Reco transaction options.\n Transaction.Options options = new Transaction.Options();\n options.setDetection(resourceIDToDetectionType(R.id.long_endpoint));\n options.setLanguage(new Language(\"eng-USA\"));\n options.setEarcons(startEarcon, stopEarcon, errorEarcon, null);\n\n //Add properties to appServerData for use with custom service. Leave empty for use with NLU.\n JSONObject appServerData = new JSONObject();\n //Start listening\n recoTransaction = speechSession.recognizeWithService(\"M10253_A3221\", appServerData, options, recoListener);\n }",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent returnToPressHelp = new Intent(getApplicationContext(), PressHelp.class);\n startActivity(returnToPressHelp);\n\n\n //Tell the phone that the medication was taken.\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n imageview=(ImageView) findViewById(R.id.imageView);\n Display display=getWindowManager().getDefaultDisplay();\n Point size=new Point();\n display.getSize(size);\n width=size.x;\n height=size.y;\n if(height>width){small=width;check=1;}\n else small=height;\n x=width/2;\n y=height/2;\n Bitmap b = Bitmap.createBitmap(width,height,Bitmap.Config.ARGB_8888);\n imageview.setImageBitmap(b);\n c = new Canvas(b);\n c.drawColor(Color.BLACK);\n paint = new Paint();\n paint.setAntiAlias(false);\n paint.setStyle(Paint.Style.FILL);\n\n paint.setColor(Color.BLUE);\n c.drawCircle(x, y, r, paint);\n\n speak=(Button) findViewById(R.id.speak);\n wordsList=(ListView) findViewById(R.id.listView);\n PackageManager pm =getPackageManager();\n List<ResolveInfo> activities =pm.queryIntentActivities(\n new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH),0);\n if(activities.size() == 0)\n {\n speak.setEnabled(false);\n speak.setText(\"Recognizer not present\" );\n }\n }",
"public void cameraIntent() {\n startActivityForResult(new Intent(\"android.media.action.IMAGE_CAPTURE\"), 1);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n txtSpeechInput = (TextView) findViewById(R.id.txtSpeechInput);\n textToSpeech = new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status != TextToSpeech.ERROR) {\n textToSpeech.setLanguage(Locale.ENGLISH);\n }\n }\n });\n\n btnSpeak = (ImageButton) findViewById(R.id.btnSpeak);\n btnSpeak.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n promptSpeechInput();\n }\n });\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n \tLog.d(\"Activity\", \"Got back activity\");\n \tLog.d(\"Activity arguments\", \"ReqCode:\" + requestCode + \" Result:\"+resultCode);\n \t\n \t// Didn't get anything useful back from either textcraft or speechcraft\n \tif ((requestCode == SPEECHCRAFT_REQCODE || requestCode == TEXTCRAFT_REQCODE) && resultCode == RESULT_CANCELED) {\n \t\tLog.d(\"Activity\", \"Didn't get anything back\");\n \t} else {\n \t// Respond to built in speech recognition activity\n if (requestCode == SPEECH_REQCODE && resultCode == RESULT_OK) {\n // Populate the wordsList with the String values the recognition engine thought it heard\n \t// i.e. \"Milk\" -> matches = [milk, Milk, Mielke]\n ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n Log.d(\"Hearing...\", matches.toString());\n \n // Start the speechcraft activity and passing heard words\n Intent intent = new Intent(this, SpeechcraftActivity.class);\n \t\tBundle bundle =new Bundle();\n \t\tbundle.putStringArray(\"matches\", matches.toArray(new String[matches.size()]));\n \t\tintent.putExtras(bundle);\n \t\tstartActivityForResult(intent, SPEECHCRAFT_REQCODE);\n \t\toverridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n }\n // Respond to a successfully finished textcraft or speechcraft activity, we'll get back\n // two strings - the food's name, and the food's location\n if ((requestCode == TEXTCRAFT_REQCODE || requestCode == SPEECHCRAFT_REQCODE) && resultCode == RESULT_OK) {\n \t// Update the two arrays that store values and the one that displays it on this activity\n \tString foodName = data.getExtras().getString(\"foodName\");\n \tfoodNameList.add(foodName);\n \t\n \tString location = data.getExtras().getString(\"location\");\n \tfoodlocationList.add(location);\n\n \tdisplayedFoods.add(foodName + \" | \" + location) ;\n \tArrayAdapter<String> displayedFoodsAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, displayedFoods);\n \tfoodList.setAdapter(displayedFoodsAdapter);\t\n }\n super.onActivityResult(requestCode, resultCode, data);\n \t}\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == REQ_CODE_SPEECH_INPUT && resultCode == RESULT_OK) {\n List<String> results = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String spokenText = results.get(0);\n // Do something with spokenText\n convert.setText(spokenText);\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }",
"public void onNewIntent(Intent intent) {\n C0938a.m5002a(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onNewIntent\");\n m6632c(intent);\n }",
"@Override\n\tprotected void startSearchResultActivity(String[] search_ifs) {\n\t\tItemSearchResultActivity.startThisActivity(this, getString(R.string.detail_search), search_ifs);\n\t}",
"public void speakClicked(View v)\n {\n EditText editText = (EditText) findViewById(R.id.inputText);\n\n mTts.speak(editText.getText().toString(),\n TextToSpeech.QUEUE_FLUSH, // Drop all pending entries in the playback queue.\n null,\n null);\n }",
"@Override\n public void startCameraIntent() {\n Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(cameraIntent, PICK_FROM_CAMERA_REQUEST_CODE);\n }",
"@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n handleIntent(intent);\n }",
"private Intent createVoiceAppSearchIntent(Bundle appData)\n\t{\n\t\tComponentName searchActivity = mSearchable.getSearchActivity();\n\t\t// create the necessary intent to set up a search-and-forward operation\n\t\t// in the voice search system. We have to keep the bundle separate,\n\t\t// because it becomes immutable once it enters the PendingIntent\n\t\tIntent queryIntent = new Intent(Intent.ACTION_SEARCH);\n\t\tqueryIntent.setComponent(searchActivity);\n\t\tPendingIntent pending = PendingIntent.getActivity(getContext(), 0,\n\t\t\t\tqueryIntent, PendingIntent.FLAG_ONE_SHOT);\n\t\t// Now set up the bundle that will be inserted into the pending intent\n\t\t// when it's time to do the search. We always build it here (even if\n\t\t// empty)\n\t\t// because the voice search activity will always need to insert \"QUERY\"\n\t\t// into\n\t\t// it anyway.\n\t\tBundle queryExtras = new Bundle();\n\t\tif (appData != null)\n\t\t{\n\t\t\tqueryExtras.putBundle(SearchManager.APP_DATA, appData);\n\t\t}\n\t\t// Now build the intent to launch the voice search. Add all necessary\n\t\t// extras to launch the voice recognizer, and then all the necessary\n\t\t// extras\n\t\t// to forward the results to the searchable activity\n\t\tIntent voiceIntent = new Intent(\n\t\t\t\tRecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tvoiceIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t// Add all of the configuration options supplied by the searchable's\n\t\t// metadata\n\t\tString languageModel = getString(mSearchable.getVoiceLanguageModeId());\n\t\tif (languageModel == null)\n\t\t{\n\t\t\tlanguageModel = RecognizerIntent.LANGUAGE_MODEL_FREE_FORM;\n\t\t}\n\t\tString prompt = getString(mSearchable.getVoicePromptTextId());\n\t\tString language = getString(mSearchable.getVoiceLanguageId());\n\t\tint maxResults = mSearchable.getVoiceMaxResults();\n\t\tif (maxResults <= 0)\n\t\t{\n\t\t\tmaxResults = 1;\n\t\t}\n\t\tvoiceIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tlanguageModel);\n\t\tvoiceIntent.putExtra(RecognizerIntent.EXTRA_PROMPT, prompt);\n\t\tvoiceIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, language);\n\t\tvoiceIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, maxResults);\n\t\tvoiceIntent.putExtra(EXTRA_CALLING_PACKAGE,\n\t\t\t\tsearchActivity == null ? null : searchActivity.toShortString());\n\t\t// Add the values that configure forwarding the results\n\t\tvoiceIntent.putExtra(RecognizerIntent.EXTRA_RESULTS_PENDINGINTENT,\n\t\t\t\tpending);\n\t\tvoiceIntent.putExtra(\n\t\t\t\tRecognizerIntent.EXTRA_RESULTS_PENDINGINTENT_BUNDLE,\n\t\t\t\tqueryExtras);\n\t\treturn voiceIntent;\n\t}",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"public void startVoiceRecognition(String language) {\n if (mTrigger != null) {\n mTrigger.startVoiceRecognition(language);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent suggestionsActivity = new Intent(HomeActivity.this,SuggetionsActivity.class);\n\t\t\t\tstartActivity(suggestionsActivity);\n\t\t\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n // If this Activity is being recreated due to a config change (e.g. \n // screen rotation), check for the saved SpeechKit instance.\n _speechKit = (SpeechKit)getLastNonConfigurationInstance();\n if (_speechKit == null)\n {\n _speechKit = SpeechKit.initialize(getApplication().getApplicationContext(), AppInfo.SpeechKitAppId, AppInfo.SpeechKitServer, AppInfo.SpeechKitPort, AppInfo.SpeechKitSsl, AppInfo.SpeechKitApplicationKey);\n _speechKit.connect();\n // TODO: Keep an eye out for audio prompts not working on the Droid 2 or other 2.2 devices.\n Prompt beep = _speechKit.defineAudioPrompt(R.raw.beep);\n _speechKit.setDefaultRecognizerPrompts(beep, Prompt.vibration(100), null, null);\n }\n \n final Button dictationButton = (Button)findViewById(R.id.btn_dictation);\n final Button ttsButton = (Button)findViewById(R.id.btn_tts);\n\n Button.OnClickListener l = new Button.OnClickListener()\n {\n @Override\n public void onClick(View v) {\n if (v == dictationButton)\n {\n Intent intent = new Intent(v.getContext(), DictationView.class);\n MainView.this.startActivity(intent);\n } else if (v == ttsButton)\n {\n Intent intent = new Intent(v.getContext(), TtsView.class);\n MainView.this.startActivity(intent);\n }\n }\n };\n \n dictationButton.setOnClickListener(l);\n ttsButton.setOnClickListener(l);\n }",
"private void speak() {\n if(textToSpeech != null && textToSpeech.isSpeaking()) {\n textToSpeech.stop();\n }else{\n textToSpeech = new TextToSpeech(activity, this);\n }\n }",
"public void clickStart(View view) {\n // open camera, get image and send to intent\n Intent intent = new Intent(this, PhotoDraw.class);\n String message = \"START\";\n intent.putExtra(msg, message);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent suggestionsActivity = new Intent(HomeActivity.this,SearchActivity.class);\n\t\t\t\tstartActivity(suggestionsActivity);\n\t\t\t\t//Toast.makeText(getApplicationContext(), \"Search\",Toast.LENGTH_SHORT).show();\n\t\t\t}",
"public void recognizeMicrophone() {\n if (recognizer != null) {\n setUiState(STATE_DONE);\n recognizer.cancel();\n recognizer = null;\n } else {\n setUiState(STATE_MIC);\n try {\n recognizer = new SpeechRecognizer(model);\n recognizer.addListener(this);\n recognizer.startListening();\n } catch (IOException e) {\n setErrorState(e.getMessage());\n }\n }\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.start_speaking:\n\t\t\tLog.e(\"AudioSession\", \"AudioSession is Going to start\");\n\t\t\t\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tqueuePos.setVisibility(View.VISIBLE);\n\t\t\t\t\tqueuePos.setText(\"AUDIO streaming...\");\n\t\t\t\t\tstartsp.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tas = new AudioSession();\t//THIS OBJECT HANDLES ALL ASPECTS OF COMMUNICATION\n\t\t\tas.onRequestPress();\n\n\t\t\tLog.e(\" AudioSession\", \"AudioSession Started\");//START AUDIO MESSAGE\n\t\t\tbreak;\n\t\t\n\t\t\t\n\t\t}\n\t}",
"@Override\n protected void onNewIntent(Intent intent){\n handleIntent(intent);\n }",
"@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link PhrasesActivity}\n Intent intent = new Intent(StartActivity.this, Settings.class);\n\n // Start the new activity\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent searchIntent = SearchActivity.newIntent(getApplicationContext());\n startActivity(searchIntent);\n }",
"public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\tISpeechServiceProxy iss = new SpeechServiceProxy() ;\n\t\t\t\tiss.textToSpeech(ServiceAction.TTS_ACTION, ReadTextActivity.this, inputText.getText().toString()) ;\n\t\t\t}",
"@Override\n\tpublic void onNewIntent(Intent intent) {\n\t\tsetIntent(intent);\n\t}",
"public void OnIngredients (View View)\n {\n \tIntent intent = new Intent(this, EditIngredients.class);\n \t\tstartActivity(intent);\n }",
"public void onStartMobileActivityClick() {\n System.out.println(\"mobile Start\");\n stopOnClick();\n\n new StartWearableActivityTask().execute();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(),AudioService.class);\n intent.putExtra(\"code\",1);\n startService(intent);\n }",
"private void startNewAcitivity(Intent intent, ActivityOptionsCompat options) {\n ActivityCompat.startActivity(this, intent, options.toBundle());\n }",
"private void startSignIn() {\n\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RES_CODE_SIGN_IN);\n }",
"public void sendToTrivia() {\n Intent intent = new Intent(getApplicationContext(), TriviaActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }",
"public void startTracking() {\n IntentFilter filter = new IntentFilter();\n\n // Screen state\n filter.addAction(Intent.ACTION_SCREEN_ON);\n filter.addAction(Intent.ACTION_SCREEN_OFF);\n\n // Dreaming state\n if (Build.VERSION.SDK_INT >= 17) {\n filter.addAction(Intent.ACTION_DREAMING_STARTED);\n filter.addAction(Intent.ACTION_DREAMING_STOPPED);\n }\n\n // Debugging/instrumentation\n filter.addAction(ACTION_TRIGGER_IDLE);\n\n mContext.registerReceiver(this, filter);\n }",
"public void onButtonMyReceiverIntent(View view) {\n\n Intent myCustomIntent = new Intent(this, CustomIntent.class);\n startActivity(myCustomIntent);\n\n\n }",
"private void addVoiceApp() {\n\t\tApplicationInfo application = new ApplicationInfo();\r\n\t\tapplication.title = \"Camera\";\r\n application.icon = context.getResources().getDrawable(R.drawable.ic_camera_50);\r\n Intent intent=new Intent(context,CameraActivity.class);\r\n application.voiceTag=true;\r\n application.setIntent(intent);\r\n mApplications.add(application);\r\n application.setIndex(mApplications.size()-1); \r\n \r\n\t\tapplication = new ApplicationInfo();\r\n\t\tapplication.title = \"Google\";\r\n\t\tintent=new Intent(\"com.google.glass.action.START_VOICE_SEARCH_ACTIVITY\");\r\n\t\tapplication.setIntent(intent);\r\n\t\tapplication.voiceTag=true;\r\n\t\tapplication.icon = context.getResources().getDrawable(R.drawable.ic_search_50);\r\n mApplications.add(application);\r\n application.setIndex(mApplications.size()-1); \r\n\t}",
"private void startSignIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\n // Fill the list view with the strings the recognizer thought it could have heard\n ArrayList<String> matches = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String[] match = new String[matches.size()];\n match = matches.toArray(match);\n AsyncTaskRunner runner = new AsyncTaskRunner(); //Creating an async task to handle the RPC request\n runner.execute(match);\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }",
"public void launchPhone(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_DIAL);\n \tsendIntent.setData(Uri.parse(\"tel:\"));\n \t\n \tfinal ResolveInfo mInfo = pacman.resolveActivity(sendIntent, 0);\n \tString s = pacman.getApplicationLabel(mInfo.activityInfo.applicationInfo).toString();\n \t\n \tif (s != null && s.length() > 2) {\n startActivity(sendIntent);\n return;\n } else {\n \tToast.makeText(context, \"No Phone Call App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"public void launchContact(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_VIEW);\n \tsendIntent.setType(ContactsContract.Contacts.CONTENT_TYPE);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Texting App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"public void onNewIntent(Intent intent) {\n }"
] | [
"0.7772449",
"0.7522062",
"0.74199843",
"0.7316137",
"0.7032064",
"0.6898105",
"0.68843454",
"0.65786546",
"0.64906293",
"0.6477589",
"0.64087737",
"0.6360978",
"0.6355149",
"0.635498",
"0.63416266",
"0.6326766",
"0.62953866",
"0.62694633",
"0.62551755",
"0.609405",
"0.6083782",
"0.60070825",
"0.59710777",
"0.59243643",
"0.5882364",
"0.5848413",
"0.58380336",
"0.5833686",
"0.5822703",
"0.5822703",
"0.5822703",
"0.5822703",
"0.57774323",
"0.5771323",
"0.5769625",
"0.5765336",
"0.5763007",
"0.5756222",
"0.574317",
"0.5730103",
"0.5688286",
"0.5592697",
"0.55746317",
"0.55704784",
"0.5556897",
"0.55352277",
"0.5517221",
"0.5509074",
"0.55069226",
"0.5502081",
"0.55005044",
"0.54947907",
"0.5491401",
"0.5485126",
"0.54756445",
"0.54709005",
"0.54709005",
"0.54437566",
"0.5433844",
"0.5426565",
"0.54155076",
"0.5405382",
"0.5404551",
"0.5396796",
"0.5387091",
"0.53851384",
"0.5384279",
"0.53798735",
"0.5355912",
"0.5350936",
"0.5349337",
"0.5336712",
"0.53328866",
"0.528914",
"0.5283884",
"0.52774954",
"0.5275625",
"0.527325",
"0.5271489",
"0.52714115",
"0.52656424",
"0.5257136",
"0.52545786",
"0.5252282",
"0.5243419",
"0.52419597",
"0.5237156",
"0.5224032",
"0.5222826",
"0.52210516",
"0.52142155",
"0.52078295",
"0.5195674",
"0.51929206",
"0.51899046",
"0.5189849",
"0.5183105",
"0.5177559",
"0.5176735",
"0.5169638"
] | 0.726495 | 4 |
Handle the results from the recognition activity. | @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == VOICE_RECOGNITION_REQUEST_CODE
&& resultCode == RESULT_OK) {
// Fill the list view with the strings the recognizer thought it
// could have heard
}
super.onActivityResult(requestCode, resultCode, data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n System.out.println(\"main recognition loop started\");\n while (true) {\n try { \n // ask the recognizer to recognize text in the recording\n if(recognizer.getState()==Recognizer.State.READY) {\n Result result = recognizer.recognize(); \n // got a result\n if (result != null) {\n resultText = result.getBestFinalResultNoFiller();\n if(resultText.length()>0) {\n // System.out.println(\"[\"+result.getStartFrame()+\",\"+result.getEndFrame()+\"]\");\n// System.out.println(result.getTimedBestResult(false, true));\n makeEvent();\n }\n }\n }\n }\n catch (Exception e) { \n System.out.println(\"exception Occured \"); \n e.printStackTrace(); \n System.exit(1);\n }\n }\n }",
"@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\r\n {\r\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\r\n // go through the results, dump them all to a TextView\r\n ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\r\n String res = matches.get(0);\r\n if (res.contains(\"dance\")) {\r\n speak(\"Did you say dance? That robot over there likes to dance... should I play some music for it?\");\r\n }\r\n else if (res.contains(\"your name\")) {\r\n speak(\"My name is \" + prefs.getString(PREFS_NAME, \"Mrs. Robot\"));\r\n }\r\n else if (res.contains(\"do you like first grade\")) {\r\n speak(\"I love first grade. Reading and Writing and Math are some of my favorites!\");\r\n }\r\n else if (res.contains(\"do you like kindergarten\")) {\r\n speak(\"I think kindergarten is great. I especially love kid writing!\");\r\n }\r\n else if (res.contains(\"what do you know\")) {\r\n speak(\"I don't know very much. Robots aren't as smart as kids.\");\r\n }\r\n else {\r\n speak(\"It sounded like you said \" + res + \". I don't know what that means\");\r\n }\r\n }\r\n else if (requestCode == VOICE_RECOGNITION_REQUEST_CODE) {\r\n speak(\"I didn't understand that... please try again\");\r\n }\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\n // Fill the list view with the strings the recognizer thought it could have heard\n ArrayList<String> matches = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String[] match = new String[matches.size()];\n match = matches.toArray(match);\n AsyncTaskRunner runner = new AsyncTaskRunner(); //Creating an async task to handle the RPC request\n runner.execute(match);\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }",
"void onResult(AIResponse result);",
"private void onRecognizeAsyncTaskComplete(OcrResult result){\n \t\n \tif(result != null){\n \tLog.v(TAG, \"Recognize complete (\" + result + \"): \" + result.getText());\n\t \tLog.v(TAG,\"recognize: (6) Bitmap is \" + result.getBitmap());\n try {\n \tif(currentRequest == MSG_RECOGNIZE_TXT){\n \t\tcurrentClient.get().send(Message.obtain(null, MSG_RESULT_TXT, currentRequest, mState.ordinal(), result.getText()));\t\n \t} else {\n \t\tcurrentClient.get().send(Message.obtain(null, MSG_RESULT, currentRequest, mState.ordinal(), result));\n \t}\n } catch (RemoteException e) {\n // The client is dead. \n \t\tLog.e(TAG,\"sendMessage: The client is dead. Message was: \" + result + \" (\" + MSG_RESULT + \")\");\n } catch (NullPointerException e) {\n // The reply to client is does not exist. \n \t\tLog.e(TAG,\"sendMessage: client was null. Message was: \" + result + \" (\" + MSG_RESULT + \")\");\n }\n \n \t} else {\n \t\t// We did not receive an OCR result\n \tLog.i(TAG, \"Recognize complete: No result\");\n \t\tsendMessage(currentClient, MSG_ERROR, currentRequest, getString(R.string.error_failed_recognition));\n \t}\n\n \t// Go back to IDLE (or if the baseApi no longer exists go to UNINITIALIZED\n \tmState = (baseApi != null) ? State.IDLE : State.UNINITIALIZED;\n\t\t\n \t// We're done with the current client. Remove any references to the object.\n currentClient = null;\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == SystemData.VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\n final ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n if (matches.size() > 0) {\n text = matches.get(0);\n callContactByName();\n selectFunctionality();\n }\n } else if (requestCode == MY_TTS_CHECK_CODE) {\n if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) {\n TextToSpeechUtility.setupTextToSpeech(this);\n } else {\n Intent installIntent = new Intent();\n installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);\n startActivity(installIntent);\n }\n\n }\n }",
"public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n try {\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n final ArrayList<String> matches = data\n .getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n\n String voiceResult = matches.get(0);\n final String voiceResultNoWhitespace = voiceResult.replace(\" \", \"\");\n\n if (DataHelper.isWordOnlyNumeric(voiceResultNoWhitespace)) {\n voiceResult = voiceResultNoWhitespace;\n }\n\n mSearchField.setText(\"\");\n mSearchField.setText(voiceResult);\n }\n if (requestCode == SCAN_BARCODE_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n final String contents = data.getStringExtra(\"SCAN_RESULT\");\n\n mSearchField.setText(\"\");\n mSearchField.setText(contents);\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n if (requestCode == REQUEST_CODE && resultCode == RESULT_OK)\n {\n // Populate the wordsList with the String values the recognition engine thought it heard\n ArrayList<String> matches = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n \n for(int i=0;i<matches.size();i++)\n {\n \tif(counter==0)\n \t{\n \t\t\n\t \tif(matches.get(i).equals(\"moo\") || matches.get(i).equals(\"moore\") ||\n\t \t\t\tmatches.get(i).equals(\"mou\") || matches.get(i).equals(\"moon\") ||\n\t \t\t\tmatches.get(i).equals(\"movie\") || matches.get(i).equals(\"boo\")\n\t \t|| matches.get(i).equals(\"boohoo\") || matches.get(i).equals(\"boom\"))\n\t \t{\n\t \t\t\n\t \t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse{\n\t \t\twrong();\n\t \t\t}\n \t}\n \telse if(counter==1){\n \t\t\n\t \tif(matches.get(i).equals(\"name\") || matches.get(i).equals(\"names\") ||\n\t \t\t\tmatches.get(i).equals(\"nay\") || matches.get(i).equals(\"neigh\") ||\n\t \t\t\tmatches.get(i).equals(\"nee\") || matches.get(i).equals(\"nays\")\n\t \t\t\t|| matches.get(i).equals(\"knee\") || matches.get(i).equals(\"nees\")\n\t \t\t\t|| matches.get(i).equals(\"ne\") || matches.get(i).equals(\"ni\")){\n\t \t\t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n\t \t\n \t}\n \telse if(counter==2){\n\t \tif(matches.get(i).equals(\"oink\") || matches.get(i).equals(\"on\") ||\n\t \t\t\tmatches.get(i).equals(\"oint\") || matches.get(i).equals(\"point\") ||\n\t \t\t\tmatches.get(i).equals(\"online\") || matches.get(i).equals(\"going\")\n\t \t\t\t|| matches.get(i).equals(\"awning\") || matches.get(i).equals(\"wapking\")){\n\t \t\t\n\t \t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n\t \t\n \t}\n \telse if(counter==3){\n \t\t//TextView tv = (TextView) findViewById(R.id.text);\n \t\t//tv.setText(\"Sheep says?\");\n\t \tif(matches.get(i).equals(\"ba\") || matches.get(i).equals(\"baa\") ||\n\t \t\t\tmatches.get(i).equals(\"bar\") || matches.get(i).equals(\"bah\") ||\n\t \t\t\tmatches.get(i).equals(\"baba\") || matches.get(i).equals(\"bleach\")\n\t \t\t\t|| matches.get(i).equals(\"please\") || matches.get(i).equals(\"plate\")\n\t \t\t\t|| matches.get(i).equals(\"pa\") || matches.get(i).equals(\"paa\")){\n\t \t\t\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n \t}\n \telse if(counter==4){\n\t \tif(matches.get(i).equals(\"quack\") || matches.get(i).equals(\"crack\") ||\n\t \t\t\tmatches.get(i).equals(\"kodak\") || matches.get(i).equals(\"back\") ||\n\t \t\t\tmatches.get(i).equals(\"call back\") || matches.get(i).equals(\"quake\")\n\t \t\t\t|| matches.get(i).equals(\"quiet\")|| matches.get(i).equals(\"quiet\")\n\t \t\t\t|| matches.get(i).equals(\"whack\")\n\t \t\t\t|| matches.get(i).equals(\"quack quack\")){\n\t \t\tif(counter<4)\n\t \t\t{\n\t \t\t\tcounter++;\n\t \t\t\tloadActivity();\n\t \t\t}\n\t \t\tresume();\n\t \t\tbreak;\n\t \t}\n\t \telse\n\t \t\twrong();\n \t}\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"public void onContentRecognized(IRecognitionPlugin plugin, RecognitionOutput output);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == RESULT_OK && resultCode == RESULT_OK) {\n // Fill the list view with the strings the recognizer thought it could have heard\n ArrayList<String> matches = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n\n if (matches.size() >= 0) {\n\n CURRENT_1 = 7;\n CURRENT_1_IMAGE = R.drawable.logo_user;\n showDialog(CHOOSE_METHOD_DIALOG);\n } else {\n\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case RESULT_SPEECH: {\n if (resultCode == RESULT_OK && null != data) {\n\n ArrayList<String> text = data\n .getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n\n txtText.setText(text.get(0));\n\n s = text.get(0);\n s = s.toLowerCase();\n\n switch (s) {\n case \"excited\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Fire);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"FIRE\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"angry\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Canvas);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"CANVAS\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"relax\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Firefly);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"FIREFLY\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"crazy\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Firework);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"FIREWORK\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"sleepy\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Hourglass);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"HOURGLASS\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"thoughtful\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Rain);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"RAIN\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"jazzy\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Ripple);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"RIPPLE\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"sparkle\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Star);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"STAR\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"dance\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Traffic);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"TRAFFIC\", Toast.LENGTH_SHORT).show();\n break;\n }\n case \"do something\": {\n pulseHandler.SetLEDPattern(PulseThemePattern.PulseTheme_Wave);\n Toast.makeText(getApplicationContext(), \"LED pattern shuffled successfully to \" + \"WAVE\", Toast.LENGTH_SHORT).show();\n break;\n }\n }\n break;\n }\n\n }\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data)\n\t{\n\t\tSystem.out.println(\"Came here\");\n\t\tString matchedWord = null;\n\t\tExerciseEntity fe = null;\n\t\tExerciseDatabase db = new ExerciseDatabase(RExerciseActivity.this);\n\t\tif (requestCode == VOICE_REQUEST_CODE && resultCode == RESULT_OK)\n\t\t{\n\t\t\t// Populate the wordsList with the String values the recognition engine thought it heard\n\t\t\tArrayList<String> matches = data.getStringArrayListExtra(\n\t\t\t\t\tRecognizerIntent.EXTRA_RESULTS);\n\t\t\tSystem.out.println(\"Printing matched words\");\n\t\t\tmatchedWord = matches.get(0);\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tEditText text3 = (EditText) findViewById(R.id.input_workout_type);\n\n\t\tif (matchedWord != null)\n\t\t{\n\t\t\ttext3.setText(matchedWord);\n\t\t\tdb.open();\n\t\t\tfe = db.getOneExercise(matchedWord);\n\t\t\tTextView calt = (TextView) findViewById(R.id.input_calpermin);\n\t\t\tif (fe != null)\n\t\t\t{\n\t\t\t\tcalt.setText(String.valueOf(fe.getCaloriesPerMin()));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcalt.setText(\"Exercise not found\");\n\t\t\t}\n\t\t\tdb.close();\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttext3.setText(\"No Match\");\n\t\t}\n\n\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}",
"@Override\n protected AlprResults doInBackground(Frame... frames) {\n if (!mAlpr.isLoaded()) {\n return null;\n }\n\n if (frames.length > 0) {\n Frame frame = frames[0]; // just work with one frame\n try {\n return mAlpr.recognize(frame.getBytes());\n } catch (AlprException e) {\n Log.d(TAG, \"Error while recognition: \" + e.toString());\n }\n }\n\n return null;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == REQ_CODE_SPEECH_INPUT && resultCode == RESULT_OK) {\n List<String> results = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String spokenText = results.get(0);\n // Do something with spokenText\n convert.setText(spokenText);\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n\t\tpublic void onResults(ArrayList<RecognizerResult> arg0, boolean arg1) {\n\t\t\ttext+=arg0.get(0).text.toString();\n\t\t}",
"@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif(requestCode== check && resultCode== RESULT_OK){\r\n\t\t\tArrayList<String> results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\r\n\t\t\tListView_Result.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,results));\r\n\r\n\t\t\t\r\n\t\t}\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t\r\n\t}",
"@Override\n public void onResults(Bundle results) {\n ArrayList<String> matches = results\n .getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);\n\n //displaying the first match\n if (matches != null)\n editText.setText(matches.get(0));\n\n }",
"private void processCloudTextRecognitionResult(FirebaseVisionCloudText text) {\n // Task completed successfully\n if (text == null) {\n Toast.makeText(getApplicationContext(), \"onCloud: No text found\", Toast.LENGTH_SHORT).show();\n return;\n }\n mGraphicOverlay.clear();\n List<FirebaseVisionCloudText.Page> pages = text.getPages();\n for (int i = 0; i < pages.size(); i++) {\n FirebaseVisionCloudText.Page page = pages.get(i);\n List<FirebaseVisionCloudText.Block> blocks = page.getBlocks();\n for (int j = 0; j < blocks.size(); j++) {\n List<FirebaseVisionCloudText.Paragraph> paragraphs = blocks.get(j).getParagraphs();\n for (int k = 0; k < paragraphs.size(); k++) {\n FirebaseVisionCloudText.Paragraph paragraph = paragraphs.get(k);\n List<FirebaseVisionCloudText.Word> words = paragraph.getWords();\n for (int l = 0; l < words.size(); l++) {\n GraphicOverlay.Graphic cloudTextGraphic = new CloudTextGraphic(mGraphicOverlay, words.get(l));\n mGraphicOverlay.add(cloudTextGraphic);\n }\n }\n }\n }\n }",
"private void runTextRecognition() {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(mSelectedImage);\n FirebaseVisionTextRecognizer recognizer = FirebaseVision.getInstance()\n .getOnDeviceTextRecognizer();\n //mTextButton.setEnabled(false);\n recognizer.processImage(image)\n .addOnSuccessListener(\n new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n //mTextButton.setEnabled(true);\n processTextRecognitionResult(texts);\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Task failed with an exception\n //mTextButton.setEnabled(true);\n e.printStackTrace();\n }\n });\n }",
"private void analyzeImage() { // replace check picture with try catch for robustness\n try {//if user did select a picture\n bitmapForAnalysis = Bitmap.createScaledBitmap(bitmapForAnalysis, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmapForAnalysis);\n\n int size = bitmapForAnalysis.getRowBytes() * bitmapForAnalysis.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(size);\n bitmapForAnalysis.copyPixelsToBuffer(byteBuffer);\n\n // These need to be saved to private member variables in order\n // to prevent successively piping too much info down multiple methods\n\n byteArrayToSave = byteBuffer.array();\n resultStringToSave = results.toString();\n\n\n //This code has been moved to the onSaveClick Interface method\n /*\n Prediction p = new Prediction(0, results.toString(), byteArray);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + results.toString() + \" bytearr: \" + byteArray);\n PredictionDatabase.insert(p);\n //PredictionDatabase.insert(new Prediction(1, \"please\", new byte[1]));\n */\n\n //This toast has been made shorter.\n Toast.makeText(this, \"Picture has been successfully analyzed\", Toast.LENGTH_SHORT).show();\n displayPredictionResult(results.toString());\n } catch (NullPointerException e) {//if user didn't select a picture, will just simply display a toast message\n Toast.makeText(this, \"No image has been selected\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void display() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n// Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n }",
"@Override\n public void done() {\n recognizer.stopRecognition();\n\n }",
"protected void handleRecordedSample() {\n List<Sample> trainingSet;\n try {\n trainingSet = TrainingSet.get();\n Normalizer normalizer = new CenterNormalizer();\n Classifier classifier = new TimeWarperClassifier();\n classifier.train(trainingSet);\n final String outputText = classifier.test(normalizer.normalize(recordedSample));\n lblOutput.setText(outputText);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Utils.textToSpeech(outputText);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }).start();\n lblOutput.setText(outputText);\n }\n catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"protected void onActivityResult(int requestCode, int resultCode, Intent data){\n if (resultCode == RESULT_OK) {\n List<String> results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n for (int i = 0; i < results.size(); i++) {\n result = results.get(i).toLowerCase();\n Log.d(\"SpeechResults\", result);\n speechOutput.add(result);\n\n\n\n\n\n\n }\n if(result.contains(\"top\") && result.contains(\"left\") && boardStatus[0][0].equals(\"a\")){\n topLeft.setText(playerToggle);\n boardStatus[0][0] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if(((result.contains(\"top\") && result.contains(\"mid\")) || (result.contains(\"top\") && result.contains(\"mod\")) ||\n (result.contains(\"talk\") && ((result.contains(\"mid\") || result.contains(\"mod\")))) ||\n result.contains(\"tau\") &&((result.contains(\"mid\") || result.contains(\"mod\"))) )\n && boardStatus[0][1].equals(\"b\")){\n topMiddle.setText(playerToggle);\n boardStatus[0][1] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if(result.contains(\"top\") && (result.contains(\"right\") || result.contains(\"write\") || result.contains(\"rat\") || result.contains(\"red\"))\n && boardStatus[0][2].equals(\"c\")){\n topRight.setText(playerToggle);\n boardStatus[0][2] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if((result.contains(\"cent\") && result.contains(\"left\")) ||\n (result.contains(\"sen\") && result.contains(\"left\"))\n && boardStatus[1][0].equals(\"d\")){\n centerLeft.setText(playerToggle);\n boardStatus[1][0] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if((result.contains(\"cent\") && (result.contains(\"mid\") || result.contains(\"mod\"))) ||\n (result.contains(\"sen\") && (result.contains(\"mid\") || result.contains(\"mod\"))\n && boardStatus[1][1].equals(\"e\"))){\n centerMiddle.setText(playerToggle);\n boardStatus[1][1] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if((result.contains(\"cent\") && (result.contains(\"right\") || result.contains(\"write\") || result.contains(\"rat\") || result.contains(\"red\")) ||\n (result.contains(\"sen\") && (result.contains(\"right\") || result.contains(\"write\") || result.contains(\"rat\") || result.contains(\"red\"))))\n && boardStatus[1][2].equals(\"f\")){\n centerRight.setText(playerToggle);\n boardStatus[1][2] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if(((result.contains(\"bot\") && result.contains(\"left\") ) || (result.contains(\"bat\") && result.contains(\"left\"))) && boardStatus[2][0].equals(\"g\")){\n bottomLeft.setText(playerToggle);\n boardStatus[2][0] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if(result.contains(\"bot\") && (result.contains(\"mid\") || result.contains(\"mod\"))\n && boardStatus[2][1].equals(\"h\")){\n bottomMiddle.setText(playerToggle);\n boardStatus[2][1] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n else if(result.contains(\"bot\") && (result.contains(\"right\") || result.contains(\"write\") || result.contains(\"rat\") || result.contains(\"red\")) && boardStatus[2][2].equals(\"i\")){\n bottomRight.setText(playerToggle);\n boardStatus[2][2] = playerToggle;\n checkBoard();\n switchPlayer();\n }\n\n //If the command was not understandable the user will be asked to repeat their command.\n else{\n\n Toast.makeText(this, \"Please repeat your command.\", Toast.LENGTH_SHORT).show();\n\n speechOutput.clear();\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"We couldn't understand your command. Please try again.\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n try {\n startActivityForResult(intent, VOICE_RECOGNITION);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n\n\n }\n }",
"private void processTextRecognitionResult(FirebaseVisionText texts) {\n List<FirebaseVisionText.Block> blocks = texts.getBlocks();\n if (blocks.size() == 0) {\n Toast.makeText(getApplicationContext(), \"onDevice: No text found\", Toast.LENGTH_SHORT).show();\n return;\n }\n mGraphicOverlay.clear();\n for (int i = 0; i < blocks.size(); i++) {\n List<FirebaseVisionText.Line> lines = blocks.get(i).getLines();\n for (int j = 0; j < lines.size(); j++) {\n List<FirebaseVisionText.Element> elements = lines.get(j).getElements();\n for (int k = 0; k < elements.size(); k++) {\n GraphicOverlay.Graphic textGraphic = new TextGraphic(mGraphicOverlay, elements.get(k));\n mGraphicOverlay.add(textGraphic);\n\n }\n }\n }\n }",
"private void performOCR(){\n }",
"@Override\n public void onResults(Bundle results) {\n recognizedSpeech = (TextView) findViewById(R.id.recognizedSpeech);\n Log.i(\"SRL\", \"onResults\");\n ArrayList<String> matches = results\n .getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);\n String text = \"\";\n for (String result : matches)\n text += result + \"\\n\";\n recognizedSpeech.setText(text);\n\n if(!(recognizedSpeech.getText().toString().contains(\"yes\")) &&\n !(recognizedSpeech.getText().toString().contains(\"no\"))){\n convertTextToSpeech(\"A valid response was not detected, please try again.\");\n\n while (m_tts.isSpeaking()) {\n speech = null;\n }\n\n speech = SpeechRecognizer.createSpeechRecognizer(this);\n speech.setRecognitionListener(this);\n speech.startListening(getIntent());\n\n } else if(recognizedSpeech.getText().toString().contains(\"yes\") &&\n recognizedSpeech.getText().toString().contains(\"no\")){\n convertTextToSpeech(\"Both yes and no were detected, please only specify one decision\");\n\n while (m_tts.isSpeaking()) {\n speech = null;\n }\n\n speech = SpeechRecognizer.createSpeechRecognizer(this);\n speech.setRecognitionListener(this);\n speech.startListening(getIntent());\n\n } else if (recognizedSpeech.getText().toString().contains(\"yes\")) {\n PropertySquare square = (PropertySquare) (m_board.getSquare(\n players.get(m_currentTurn).getCurrentPosition()));\n square.setOwnedBy(players.get(m_currentTurn).getName());\n convertTextToSpeech(\"You now own\" + square.getName());\n Log.d(\"buyProperty yes\", square.getOwnedBy());\n\n if (m_manageFunds) {\n players.get(m_currentTurn).subtractMoney(square.getPrice());\n Log.d(\"buyProperty yes\", players.get(m_currentTurn).getName() +\n String.valueOf(players.get(m_currentTurn).getMoney()));\n funds.setText(String.valueOf(players.get(m_currentTurn).getMoney()));\n }\n nextTurnRoll();\n } else if (recognizedSpeech.getText().toString().contains(\"no\")) {\n nextTurnRoll();\n }\n }",
"@Override\n public void handleResult(Result result) {\n Log.w(\"handleResult\", result.getText());\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Scan result\");\n builder.setMessage(result.getText());\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n\n //Resume scanning\n //mScannerView.resumeCameraPreview(this);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n \tLog.d(\"Activity\", \"Got back activity\");\n \tLog.d(\"Activity arguments\", \"ReqCode:\" + requestCode + \" Result:\"+resultCode);\n \t\n \t// Didn't get anything useful back from either textcraft or speechcraft\n \tif ((requestCode == SPEECHCRAFT_REQCODE || requestCode == TEXTCRAFT_REQCODE) && resultCode == RESULT_CANCELED) {\n \t\tLog.d(\"Activity\", \"Didn't get anything back\");\n \t} else {\n \t// Respond to built in speech recognition activity\n if (requestCode == SPEECH_REQCODE && resultCode == RESULT_OK) {\n // Populate the wordsList with the String values the recognition engine thought it heard\n \t// i.e. \"Milk\" -> matches = [milk, Milk, Mielke]\n ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n Log.d(\"Hearing...\", matches.toString());\n \n // Start the speechcraft activity and passing heard words\n Intent intent = new Intent(this, SpeechcraftActivity.class);\n \t\tBundle bundle =new Bundle();\n \t\tbundle.putStringArray(\"matches\", matches.toArray(new String[matches.size()]));\n \t\tintent.putExtras(bundle);\n \t\tstartActivityForResult(intent, SPEECHCRAFT_REQCODE);\n \t\toverridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n }\n // Respond to a successfully finished textcraft or speechcraft activity, we'll get back\n // two strings - the food's name, and the food's location\n if ((requestCode == TEXTCRAFT_REQCODE || requestCode == SPEECHCRAFT_REQCODE) && resultCode == RESULT_OK) {\n \t// Update the two arrays that store values and the one that displays it on this activity\n \tString foodName = data.getExtras().getString(\"foodName\");\n \tfoodNameList.add(foodName);\n \t\n \tString location = data.getExtras().getString(\"location\");\n \tfoodlocationList.add(location);\n\n \tdisplayedFoods.add(foodName + \" | \" + location) ;\n \tArrayAdapter<String> displayedFoodsAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, displayedFoods);\n \tfoodList.setAdapter(displayedFoodsAdapter);\t\n }\n super.onActivityResult(requestCode, resultCode, data);\n \t}\n }",
"private void analyzeResult(final FirebaseVisionText firebaseVisionText, final Receipt receipt) {\n new AsyncTask<String, Boolean, Boolean>() {\n @Override\n protected Boolean doInBackground(String... strings) {\n String resultText = firebaseVisionText.getText();\n Log.d(TAG, \"All text: \" + resultText);\n System.out.println(\"All text: \" + resultText);\n\n receipt.setReceiptName(\"\");\n receipt.setAllData(resultText.toLowerCase());\n\n for (FirebaseVisionText.TextBlock block : firebaseVisionText.getTextBlocks()) {\n String blockText = block.getText();\n Float blockConfidence = block.getConfidence();\n List<RecognizedLanguage> blockLanguages = block.getRecognizedLanguages();\n Point[] blockCornerPoints = block.getCornerPoints();\n Rect blockFrame = block.getBoundingBox();\n for (FirebaseVisionText.Line line : block.getLines()) {\n String lineText = line.getText();\n Float lineConfidence = line.getConfidence();\n List<RecognizedLanguage> lineLanguages = line.getRecognizedLanguages();\n Point[] lineCornerPoints = line.getCornerPoints();\n Rect lineFrame = line.getBoundingBox();\n searchInLineResult(receipt, line);\n for (FirebaseVisionText.Element element : line.getElements()) {\n String elementText = element.getText();\n Float elementConfidence = element.getConfidence();\n List<RecognizedLanguage> eƒlementLanguages = element.getRecognizedLanguages();\n Point[] elementCornerPoints = element.getCornerPoints();\n Rect elementFrame = element.getBoundingBox();\n searchInElementResult(receipt, element);\n }\n }\n }\n return null;\n }\n\n @Override\n protected void onPostExecute(Boolean aBoolean) {\n Log.d(TAG, \"Receipt: \" + receipt.toString());\n callback.onAnalyzeDone(true, receipt);\n }\n }.execute();\n }",
"public interface RecognitionEvent {\n /**\n * Called to notify that content recognition is done.\n */\n public void onContentRecognized(IRecognitionPlugin plugin, RecognitionOutput output);\n }",
"public void recordMessage2(String result, String number) {\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-US\");\n\n startActivityForResult(intent, 2);\n }",
"private void processCompleted(CaptureRequest request, CaptureResult result) {\n\n if (!has_received_frame) {\n has_received_frame = true;\n if (MyDebug.LOG)\n Log.d(TAG, \"has_received_frame now set to true\");\n }\n\n updateCachedCaptureResult(result);\n handleFaceDetection(result);\n\n if (push_repeating_request_when_torch_off && push_repeating_request_when_torch_off_id == request && previewBuilder != null) {\n if (MyDebug.LOG)\n Log.d(TAG, \"received push_repeating_request_when_torch_off\");\n Integer flash_state = result.get(CaptureResult.FLASH_STATE);\n if (MyDebug.LOG) {\n if (flash_state != null)\n Log.d(TAG, \"flash_state: \" + flash_state);\n else\n Log.d(TAG, \"flash_state is null\");\n }\n if (flash_state != null && flash_state == CaptureResult.FLASH_STATE_READY) {\n push_repeating_request_when_torch_off = false;\n push_repeating_request_when_torch_off_id = null;\n try {\n setRepeatingRequest();\n } catch (CameraAccessException e) {\n if (MyDebug.LOG) {\n Log.e(TAG, \"failed to set flash [from torch/flash off hack]\");\n Log.e(TAG, \"reason: \" + e.getReason());\n Log.e(TAG, \"message: \" + e.getMessage());\n }\n e.printStackTrace();\n }\n }\n }\n\n RequestTagType tag_type = getRequestTagType(request);\n if (tag_type == RequestTagType.CAPTURE) {\n handleCaptureCompleted(result);\n } else if (tag_type == RequestTagType.CAPTURE_BURST_IN_PROGRESS) {\n handleCaptureBurstInProgress(result);\n }\n }",
"private void manageSpeechRecognition() {\n\n mRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, Locale.getDefault().getLanguage().trim());\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, this.getPackageName());\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 100);\n\n mRecognizerIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 3);\n\n mSongSpeechRecognitionListener = new SongSpeechRecognitionListener(mRippleBackground, mFloatingActionButton);\n\n mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);\n mSpeechRecognizer.setRecognitionListener(mSongSpeechRecognitionListener);\n\n }",
"private void handleDetectedActivities(ActivityRecognitionResult result) {\n boolean serviceRunning;\n DetectedActivity detectedActivity = result.getMostProbableActivity();\n int typeOfActivity = detectedActivity.getType();\n\n Log.d(TAG, \"handleDetectedActivities\");\n Intent intent = new Intent(this, WearableService.class);\n // for (DetectedActivity activity : probableActivities) {\n switch (detectedActivity.getType()) {\n case DetectedActivity.WALKING: {\n\n Log.e(TAG, \"Walking: \" + detectedActivity.getConfidence());\n if (detectedActivity.getConfidence() >= 75) {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Service already running\");\n } else {\n startService(intent);\n Log.d(TAG, \"Wear service Started\");\n }\n } else {\n stopService(intent);\n break;\n }\n }\n case DetectedActivity.STILL: {\n Log.d(TAG, \"Still: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.UNKNOWN: {\n Log.e(TAG, \"Unknown: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.IN_VEHICLE: {\n Log.e(TAG, \"In Vehicle: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n Log.e(TAG, \"On Bike: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.RUNNING: {\n Log.e(TAG, \"Running: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.TILTING: {\n Log.e(TAG, \"Tilting: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n Log.e(TAG, \"On Foot: \" + detectedActivity.getConfidence());\n DetectedActivity moreSpecific = getMoreSpecific(result.getProbableActivities());\n if (moreSpecific != null) {\n detectedActivity = moreSpecific;\n }\n if (detectedActivity.getType() == DetectedActivity.WALKING) {\n Log.d(TAG, \"On foot and walking\");\n if (detectedActivity.getConfidence() >= 75) {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.i(TAG, \"Service already running!\");\n } else {\n startService(intent);\n Log.d(TAG, \"Wear service Started.\");\n }\n } else {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n } else if (detectedActivity.getType() == DetectedActivity.RUNNING) {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.i(TAG, \"Stopping service.\");\n } else {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.i(TAG, \"Stopping service.\");\n }\n }\n }\n }\n default: {\n break;\n }\n }\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent)\n {\n if(requestCode==REQUEST_IMAGE_CAPTURE && resultCode==RESULT_OK)\n {\n mCurFaceImg.process();\n }\n super.onActivityResult(requestCode, resultCode, intent);\n }",
"protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}",
"@Override\n public void onScanResult(int callbackType, ScanResult result) {\n processResult(result);\n }",
"@Override\n protected Void call() throws InterruptedException {\n _tempVr.SetTimeout(5);\n _tempVr.SetMicDistance(Protocol.Distance.FAR_MIC);\n\n updateMessage(String.format(\"Speak%s\", System.getProperty(\"line.separator\")));\n\n //instruct the module to listen for a built in word from the 1st wordset\n _tempVr.RecognizeWord(1);\n\n //need to wait until HasFinished has completed before collecting results\n while (!_tempVr.HasFinished()) {\n updateMessage(\".\");\n }\n\n // Once HasFinished has returned true, we can ask the module for the index of the word it recognised. If you're new to using the EasyVR module,\n // download the Easy VR Commander (http://www.veear.eu/downloads/) to interrogate the config of your module and see what the indexes correspond to\n // Here is a standard setup at time of writing for an EASYVR 3 module:\n // 0=Action,1=Move,2=Turn,3=Run,4=Look,5=Attack,6=Stop,7=Hello\n int indexOfRecognisedWord = _tempVr.GetWord();\n\n updateMessage(String.format(\"Response: %d%s\", indexOfRecognisedWord, System.getProperty(\"line.separator\")));\n // updateMessage(String.format(\"Recognition finished%s\", System.getProperty(\"line.separator\")));\n\n return null;\n }",
"@Override\n public void onSuccess(Text visionText) {\n\n Log.d(TAG, \"onSuccess: \");\n extractText(visionText);\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK) {\n if (requestCode == 1) {\n onSelectDocumentResult(data);\n } else if (requestCode == SELECT_GALLERY_PIC_FILE) {\n onSelectFromGalleryResult(data);\n } else if (requestCode == REQUEST_CAMERA_PIC_FILE) {\n onCaptureImageResult(data);\n }\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) {\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\t// Image captured and saved to mFileUri specified in the Intent\n\t\t\t\tsetImage();\n\t\t\t} else if (resultCode == RESULT_CANCELED) {\n\t\t\t\t// User cancelled the image capture\n\t\t\t\tToast.makeText( this, \"No photo captured!\", Toast.LENGTH_LONG ).show();\n\t\t\t} else {\n\t\t\t\t// Image capture failed, advise user\n\t\t\t\tToast.makeText( this, \"No photo captured!\", Toast.LENGTH_LONG ).show();\n\t\t\t}\n\t\t}\n\t\tif( requestCode == SEARCH_URL_REQUEST_CODE ) {\n\t\t\tif( resultCode == RESULT_OK ) {\n\t\t\t\tmSearchUrl = data.getStringExtra( \"grabUrl\" );\n\t\t\t\tsetUrl();\n\t\t\t\tTextView tv = (TextView)findViewById( R.id.search_text );\n\t\t\t\ttv.setTransformationMethod( null );\n\t\t\t\ttv.setInputType( InputType.TYPE_NULL );\n\t\t\t\tfindViewById( R.id.search_button ).setVisibility( View.GONE );\n\t\t\t} else {\n\t\t\t\tToast.makeText( this, \"Grabbing url failed.\", Toast.LENGTH_LONG ).show();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onRecognition(Transaction transaction, Recognition recognition) {\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}",
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n //Log.v(\"test\", Boolean.toString(data.getStringExtra(EXTRA_NUMBER) != null));\n\n if (requestCode == 1 && resultCode == RESULT_OK && data != null) {\n \tresult = null;\n ArrayList<String> text = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n result = text.get(0);\n Log.v(\"CASE1\", result);\n \t//String number = data.getExtras().getString(EXTRA_NUMBER);\n \n \tLog.v(\"CASE1\", \"number is \" + num);\n\n \twhile(tts.isSpeaking()) {\n \ttry {\n\t\t\t\t\t\tThread.sleep(500);\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 }\n tts.speak(\"Did you say, \" + result + \"?\", TextToSpeech.QUEUE_FLUSH, null);\n while(tts.isSpeaking()) {\n \ttry {\n\t\t\t\t\t\tThread.sleep(500);\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 }\n recordMessage2(result, num);\n\n }\n if (requestCode == 2 && resultCode == RESULT_OK && data != null) {\n ArrayList<String> text = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n String confirmation = text.get(0);\n Log.v(\"CASE2\", \"confirmation in case 2 is \" + confirmation);\n if (confirmation.toLowerCase().equals(\"yes\")) {\n \tLog.v(\"CASE2\", \"message in case 2 is \" + result);\n if (result != null) {\n \tString body = result;\n \n \tString number = num;\n \t\tSmsManager sms = SmsManager.getDefault();\n \t\tsms.sendTextMessage(number, null, body, null, null);\n \t\twhile(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\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 }\n \t\ttts.speak(\"Message sent\", TextToSpeech.QUEUE_FLUSH, null);\n \t\twhile(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\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 }\n \t// send message\n }\n } else {\n \twhile(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\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 }\n tts.speak(\"Please try again.\", TextToSpeech.QUEUE_FLUSH, null);\n while(tts.isSpeaking()) {\n \ttry {\n \t\t\t\t\t\tThread.sleep(500);\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 }\n recordMessage(num);\n }\n \n\n \t\n }\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == Activity.RESULT_OK) {\n\n if (requestCode == REQUEST_CAMERA) {\n\n onCaptureImageResult(data);\n\n }\n\n }\n\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == RESULT_OK) {\n\n // compare the resultCode with the\n // SELECT_PICTURE constant\n if (requestCode == SELECT_PICTURE) {\n Uri selectedImageURI = data.getData();\n// File imageFile = new File(getRealPathFromURI(selectedImageURI));\n Uri selectedImageUri = data.getData( );\n String picturePath = getPath( getApplicationContext( ), selectedImageUri );\n Log.d(\"Picture Path\", picturePath);\n\n // Get the url of the image from data\n selectedImageUri = data.getData();\n if (null != selectedImageUri) {\n bitmap = null;\n // update the preview image in the layout\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImageUri);\n } catch (IOException e) {\n e.printStackTrace();\n }\n// IVPreviewImage.setImageURI(selectedImageUri);\n// runTextRecognition(bitmap);\n IVPreviewImage.setImageBitmap(bitmap);\n\n }\n }\n\n if (requestCode == 123) {\n\n\n Bitmap photo = (Bitmap) data.getExtras()\n .get(\"data\");\n\n // Set the image in imageview for display\n IVPreviewImage.setImageBitmap(photo);\n runTextRecognition(photo);\n\n }\n\n }\n }",
"private void recognize() {\n //Setup our Reco transaction options.\n Transaction.Options options = new Transaction.Options();\n options.setDetection(resourceIDToDetectionType(R.id.long_endpoint));\n options.setLanguage(new Language(\"eng-USA\"));\n options.setEarcons(startEarcon, stopEarcon, errorEarcon, null);\n\n //Add properties to appServerData for use with custom service. Leave empty for use with NLU.\n JSONObject appServerData = new JSONObject();\n //Start listening\n recoTransaction = speechSession.recognizeWithService(\"M10253_A3221\", appServerData, options, recoListener);\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\t\n\t // Make sure the request was successful\n\t if (resultCode == RESULT_OK) {\n\t Bundle resultBundle = data.getExtras();\n\t String decodedData = resultBundle.getString(\"DATA_RESULT\");\n\t String scanAction = resultBundle.getString(\"SCAN_ACTION\");\n\t\t \n\t\t if(scanAction != null && scanAction.equalsIgnoreCase(SCAN_TYPE)){\n\t\t\t // With the decoded data use session.get entity etc... then call server to get entity info\n\t\t\t try{\n\t\t\t\t processData(decodedData);\n\t\t\t }catch(Exception e){\n\t\t\t\t Toast.makeText(this, \"Unknown barcode format: please scan a valid barcode\", Toast.LENGTH_LONG).show();\n\t\t\t\t launchScanner(SCAN_TYPE);\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t Toast.makeText(this, \"NO SCANNING ACTION\", Toast.LENGTH_LONG).show();\n\t\t\t launchScanner(SCAN_TYPE);\n\t\t }\n\t\t \n\t }else{\n\t\t finish();\t\t \n\t }\t \n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onResult(InitiateMatchResult result) {\n\t\t\t\t\t\t\t\tif (!checkStatusCode(match, result.getStatus()\n\t\t\t\t\t\t\t\t\t\t.getStatusCode())) {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGameActivity.gameMachine.reset();\n\t\t\t\t\t\t\t\tmatch = result.getMatch();\n\t\t\t\t\t\t\t\tstartGame(match);\n\t\t\t\t\t\t\t}",
"private void displaySpeechRecognizer() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n // Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, Constants.SPEECH_REQUEST_CODE);\n }",
"void onScanResult(final IScanResult result);",
"@Override\n public void onGetResult(VoiceRecognizerResult result) {\n mResultTv.setText(\"(\" + result.text + \")\");\n\n if (result.isEnd) {\n mRecoState = 0;\n updateBtn(mRecoState);\n }\n }",
"public List<Result> recognize(IplImage image);",
"private void handleRawCaptureResult(CaptureResult result) {\n if (test_wait_capture_result) {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n if (onRawImageAvailableListener != null) {\n onRawImageAvailableListener.setCaptureResult(result);\n }\n }",
"public String speak(){\n speechOutput.clear();\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Just speak normally into your phone\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n try {\n startActivityForResult(intent, VOICE_RECOGNITION);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n\n\n return speechResult;\n }",
"@Override\n public void onResult(final AIResponse result) {\n DobbyLog.i(\"Action: \" + result.getResult().getAction());\n }",
"void onResult(int ret);",
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // sanity check and see whether the result is coming from the appropriate intent\n if (requestCode == 0 && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n\n // we fetch the column index of the selected image {MediaStore.Images.Media.DATA}\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n // To get the exact path of the image, we make use of the Cursor class\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String picturePath = cursor.getString(columnIndex);\n cursor.close();\n\n // get measurement\n currentMeasurement = pupilDetector.doMeasurement(picturePath, eyeColorSelection);\n displayProcessedImage(currentMeasurement);\n }\n }",
"protected void handleResult(String result) {}",
"@Override\n public void handleResult(com.google.zxing.Result rawResult) {\n if (rawResult.getText().length() < 4) {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Wrong QR Code\", Toast.LENGTH_SHORT).show();\n } else {\n Result = rawResult.getText().substring(0, 4);\n MachineID = rawResult.getText().substring(Result.length());\n if (Result.equals(Verification)) {\n Intent i = new Intent(SimpleScanner.this, DetailBreakdownPage2.class);\n String currentResponseDateFinish = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\", Locale.getDefault()).format(new Date());\n i.putExtra(\"MachineID\", MachineID);\n i.putExtra(\"ResponseDateFinish\", currentResponseDateFinish);\n i.putExtra(\"Line\", Line);\n i.putExtra(\"Station\", Station);\n i.putExtra(\"PIC\", PIC);\n startActivity(i);\n } else {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Station tidak sesuai\", Toast.LENGTH_SHORT).show();\n }\n }\n }",
"@Override\r\n\t\t\tpublic void recognizerStarted() {\n\r\n\t\t\t}",
"public void handleVerificationSuccessResult(ZoomVerificationResult successResult) {\n if (successResult.getFaceMetrics() != null) {\n // this is the raw biometric data which can be uploaded, or may be\n // base64 encoded in order to handle easier at the cost of processing and network usage\n bytes = successResult.getFaceMetrics().getZoomFacemap();\n if (!successResult.getFaceMetrics().getAuditTrail().isEmpty()) {\n face2 = successResult.getFaceMetrics().getAuditTrail().get(0).copy(Bitmap.Config.ARGB_8888, true);\n }\n\n //if (RecogEngine.g_recogResult.faceBitmap != null) {\n if (imageFile != null) {\n //Bitmap nBmp = RecogEngine.g_recogResult.faceBitmap.copy(Bitmap.Config.ARGB_8888, true);\n Bitmap nBmp = decodeFileFromPath(imageFile.getAbsolutePath()).copy(Bitmap.Config.ARGB_8888, true);\n int w = nBmp.getWidth();\n int h = nBmp.getHeight();\n int s = (w * 32 + 31) / 32 * 4;\n ByteBuffer buff = ByteBuffer.allocate(s * h);\n nBmp.copyPixelsToBuffer(buff);\n FaceLockHelper.DetectLeftFace(buff.array(), w, h);\n }\n\n if (face2 != null) {\n Bitmap nBmp = face2;\n ivUserProfile2.setImageBitmap(nBmp);\n ivUserProfile2.setVisibility(View.VISIBLE);\n int w = nBmp.getWidth();\n int h = nBmp.getHeight();\n int s = (w * 32 + 31) / 32 * 4;\n ByteBuffer buff = ByteBuffer.allocate(s * h);\n nBmp.copyPixelsToBuffer(buff);\n FaceLockHelper.DetectRightFace(buff.array(), w, h, null);\n }\n\n sessionId = successResult.getSessionId();\n liveness(successResult);\n }\n }",
"private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}",
"public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }",
"public interface IRecognitionPlugin {\n /**\n * Base class for output data received from recognition plug-in.\n */\n public class RecognitionOutput {\n }\n\n /**\n * Base class for input data supplied to recognition plug-in.\n */\n public class RecognitionInput {\n private MediaFormat mediaFormat;\n private Frame frame;\n\n /**\n * Sets media format of the content.\n *\n * @param mediaFormat\n */\n public void setMediaFormat(MediaFormat mediaFormat) {\n this.mediaFormat = mediaFormat;\n }\n\n /**\n * Gets media format of the content.\n *\n * @return Media format.\n */\n public MediaFormat getMediaFormat() {\n return mediaFormat;\n }\n\n /**\n * Sets a frame.\n *\n * @param frame\n */\n public void setFrame(Frame frame) {\n this.frame = frame;\n }\n\n /**\n * Gets a frame.\n *\n * @return Frame.\n */\n public Frame getFrame() {\n return frame;\n }\n }\n\n /**\n * Interface for signaling upon content recognition status.\n */\n public interface RecognitionEvent {\n /**\n * Called to notify that content recognition is done.\n */\n public void onContentRecognized(IRecognitionPlugin plugin, RecognitionOutput output);\n }\n\n /**\n * Starts recognition plug-in.\n */\n public void start();\n\n /**\n * Stops recognition plug-in.\n */\n public void stop();\n\n /**\n * Performs content recognition.\n *\n * @param input Data for content recognition.\n * @return Content recognition output.\n */\n public RecognitionOutput recognize(RecognitionInput input);\n}",
"private void listenToSpeech(int returnCode) {\n\t\tIntent listenIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\t//indicate package\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());\n\t\t//message to display while listening\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"\");\n\t\t//set speech model\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\t//specify number of results to retrieve\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n\t\t//start listening\n\t\tstartActivityForResult(listenIntent, returnCode);\n\n\t}",
"@Override\n\tpublic void requestImageReceived(CatchoomImage image)\n\t{\n\t\t\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t\n\t\tBitmap bitmap = image.toBitmap();\n\t\t\n\t\tBitmap bitmapone = getBitmapFromAsset(\"accendo_logo.png\");\n\t\t\n\t\t/*if (bitmap.getWidth() == bitmapone.getWidth() && bitmap.getHeight() == bitmapone.getHeight())\n\t\t{*/\n\t int[] pixels1 = new int[bitmap.getWidth() * bitmap.getHeight()];\n\t int[] pixels2 = new int[bitmapone.getWidth() * bitmapone.getHeight()];\n\t bitmap.getPixels(pixels1, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\t bitmapone.getPixels(pixels2, 0, bitmapone.getWidth(), 0, 0, bitmapone.getWidth(), bitmapone.getHeight());\n\t if (!Arrays.equals(pixels1, pixels2)) \n\t {\n\t resultUrl=\"http://www.accendotechnologies.com/\";\n\t startActivity(new Intent(RecognitionOnlyActivity.this, VideoActivity.class));\n\t }\n\t else \n\t {\n\t \tresultUrl=\"\";\n\t }\n//\t } else\n//\t {\n//\t \tresultUrl=\"\";\n//\t }\n//\t\t\n\t\t\n\t\n\t\t\n//\t\tString imageName = image.toString();\n//\t\tString[] splitName = imageName.split(\"@\", imageName.length());\n//\t\tToast.makeText(getApplicationContext(), \"Image Name is \"+splitName[1], Toast.LENGTH_LONG).show();\n//\t\tf = new File(Environment.getExternalStorageDirectory()+\"/\"+splitName[1]+\".jpg\");\n//\t\ttry\n//\t\t{\n//\t\t\tFileOutputStream fout = new FileOutputStream(f);\n//\t\t\tbitmap.compress(Bitmap.CompressFormat.JPEG, 100, fout); \n//\t\t\tfout.flush();\n//\t\t\tfout.close();\n//\t\t}catch(Exception e)\n//\t\t{\n//\t\t\te.printStackTrace();\n//\t\t}\n//\t\t\n//\t\tImageAsync imasc = new ImageAsync();\n//\t\timasc.execute(f.toString());\n//\t\t\n//\t\tbitmap.recycle();\n//\t\t\n\t\t\n\t\t\n\n\t\t\n//\t\tmCloudRecognition.searchWithImage(COLLECTION_TOKEN,image);\n//\t\tstartActivity(new Intent(RecognitionOnlyActivity.this, MainActivityVedio.class));\n\t\t/**\n\t\t * chary\n\t\t * Need to write service code to send image.\n\t\t */\n\t\t\n\t}",
"@Override\n protected void onPostExecute(Void v) {\n super.onPostExecute(v);\n\n\n callbackListener.onScanResults(serviceResults);\n }",
"com.czht.face.recognition.Czhtdev.Response getResponse();",
"public boolean handleActivityResult (int requestCode, int resultCode, Intent data) {\n boolean result = false;\n if (Activity.RESULT_OK != resultCode || null == mResultHandler) {\n return result;\n }\n\n Log.i(\"InputBoardManager#handleActivityResult, \"\n + \"mMediaInputHelper is null(\" + (null == mMediaInputHelper));\n switch (requestCode) {\n case REQ_INPUT_LOC:\n final double lat = data.getExtras().getDouble(\"target_lat\");\n final double lon = data.getExtras().getDouble(\"target_lon\");\n mResultHandler.onLocationInputted(lat, lon, null);\n result = true;\n break;\n case REQ_INPUT_VIDEO:\n if (null != mMediaInputHelper) {\n String[] videoPath = new String[2];\n try {\n mMediaInputHelper.handleVideoResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n videoPath);\n mResultHandler.onVideoInputted(videoPath[0], videoPath[1]);\n result = true;\n }\n catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(mContext, e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n break;\n case REQ_INPUT_PHOTO:\n \tif(data != null){\n \tUri mImageCaptureUri = data.getData();\n// \tif( Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){\n// \t\tFile f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_IMAGE, \".jpg\");\n// \t\toutputUri = Uri.fromFile(f);\n// \t}\n// \tLog.i(\"--mImageCaptureUri--\" + mImageCaptureUri);\n// \tdoCrop(mImageCaptureUri,outputUri);\t\n \t outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n \t mContext.startActivityForResult(new Intent().setData(mImageCaptureUri).setClass(mContext, ImagePreviewActivity.class).putExtra(ImagePreviewActivity.OUTPUTPATH, outputfilename), REQ_INPUT_DOODLE);\n \t}else{\n if (null != mMediaInputHelper) {\n String[] photoPath = new String[2];\n if (mMediaInputHelper.handleImageResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n photoPath)) {\n outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n mContext.startActivityForResult(\n new Intent(mContext, BitmapPreviewActivity.class)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n .putExtra(BitmapPreviewActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n .putExtra(BitmapPreviewActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n REQ_INPUT_DOODLE\n );\n }\n }\n \t}\n\n result = true; \n break;\n case REQ_INPUT_CROP:\n if (null != mMediaInputHelper) {\n \t//Log.i(\"--after crop data --\" + data.getData());\n \t//针对部分4.4机型返回的intent(data)为空,重新传进之前的Uri\n \tif(data.getData() == null){\n \t\tdata = new Intent();\n \t\tdata.setData( outputUri);\n \t}\n String[] photoPath = new String[2];\n boolean istrue =mMediaInputHelper.handleImageResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n photoPath);\n if (istrue) {\n outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n mContext.startActivityForResult(\n new Intent(mContext, BitmapPreviewActivity.class)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n .putExtra(BitmapPreviewActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n .putExtra(BitmapPreviewActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n REQ_INPUT_DOODLE\n );\n }\n }\n result = true;\n break;\n case REQ_INPUT_DOODLE: {\n String[] photoPath = new String[2];\n photoPath[0] = outputfilename;\n\n // generate thumbnail\n File f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_THUMNAIL, \".jpg\");\n if (f != null) {\n photoPath[1] = f.getAbsolutePath();\n Bitmap thumbnail = BmpUtils.decodeFile(photoPath[0],\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT);\n Log.i(\"--photo[0]--\" + photoPath[0]);\n Log.i(\"--photo[1]--\" + photoPath[1]);\n try {\n FileOutputStream fos = new FileOutputStream(photoPath[1]);\n thumbnail.compress(Bitmap.CompressFormat.JPEG, 90, fos);\n fos.close();\n } catch (java.io.IOException e) {\n e.printStackTrace();\n }\n }\n\n mResultHandler.onPhotoInputted(photoPath[0], photoPath[1]);\n result = true;\n break;\n }\n case REQ_INPUT_PHOTO_FOR_DOODLE:\n \tif(data != null){\n \t\tUri mImageCaptureUri2 = data.getData();\n// \t\tif( Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){\n// \t\tFile f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_IMAGE, \".jpg\");\n// \t\toutputUri2 = Uri.fromFile(f);\n// \t}\n// \t\tdoCrop_doodle(mImageCaptureUri2,outputUri2);\n \t\t outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n \t mContext.startActivityForResult(new Intent().setData(mImageCaptureUri2)\n \t\t\t .setClass(mContext, ImagePreviewActivity.class)\n \t\t\t .putExtra(ImagePreviewActivity.OUTPUTPATH, outputfilename)\n \t\t\t .putExtra(ImagePreviewActivity.ISDOODLE, true), REQ_INPUT_PHOTO_FOR_DOODLE_CROP);\n \t}else {\n if (null != mMediaInputHelper) {\n \tLog.i(\"--mLastImageUri\" + mMediaInputHelper.getLastImageUri());\n \tFile f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_IMAGE, \".jpg\");\n \t\toutputUri2 = Uri.fromFile(f);\n \tdoCrop_doodle(mMediaInputHelper.getLastImageUri(), outputUri2);\n// String[] photoPath = new String[2];\n// if (mMediaInputHelper.handleImageResult(\n// mContext,\n// data,\n// PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n// PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n// photoPath)) {\n// outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n// mContext.startActivityForResult(\n// new Intent(mContext, DoodleActivity.class)\n// .putExtra(DoodleActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n// .putExtra(DoodleActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n// .putExtra(DoodleActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n// .putExtra(DoodleActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n// REQ_INPUT_DOODLE\n// );\n// }\n }\n \t}\n \t\n result = true;\n break;\n case REQ_INPUT_PHOTO_FOR_DOODLE_CROP:\n if (null != mMediaInputHelper) {\n \tLog.i(\"--after crop data --\" + data.getData());\n \t//针对部分4.4机型返回的intent(data)为空,重新传进之前的Uri\n \tif(data.getData() == null){\n \t\tdata = new Intent();\n \t\tdata.setData( outputUri2);\n \t}\n String[] photoPath = new String[2];\n if (mMediaInputHelper.handleImageResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n photoPath)) {\n outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n mContext.startActivityForResult(\n new Intent(mContext, DoodleActivity.class)\n .putExtra(DoodleActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n .putExtra(DoodleActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n .putExtra(DoodleActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n .putExtra(DoodleActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n REQ_INPUT_DOODLE\n );\n }\n }\n \tresult = true;\n break;\n default:\n break;\n }\n\n Log.i(\"InputBoardManager#handleActivityResult, handle result is \" + result);\n return result;\n }",
"public synchronized void startSpeechRecognition() {\r\n\t\t\r\n\t\t//Check lock\r\n\t\tif (speechRecognizerThreadRunning)\r\n\t\t\tlogger.log(Level.INFO, \"Speech Recognition Thread already running...\\n\");\r\n\t\telse\r\n\t\t\t//Submit to ExecutorService\r\n\t\t\teventsExecutorService.submit(() -> {\r\n\t\t\t\t\r\n\t\t\t\t//locks\r\n\t\t\t\tspeechRecognizerThreadRunning = true;\r\n\t\t\t\tignoreSpeechRecognitionResults = false;\r\n\t\t\t\t\r\n\t\t\t\t//Start Recognition\r\n\t\t\t\trecognizer.startRecognition(true);\r\n\t\t\t\t\r\n\t\t\t\t//Information\t\t\t\r\n\t\t\t\tlogger.log(Level.INFO, \"You can start to speak...\\n\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\twhile (speechRecognizerThreadRunning) {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * This method will return when the end of speech is reached. Note that the end pointer will determine the end of speech.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tSpeechResult speechResult = recognizer.getResult();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Check if we ignore the speech recognition results\r\n\t\t\t\t\t\tif (!ignoreSpeechRecognitionResults) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Check the result\r\n\t\t\t\t\t\t\tif (speechResult == null)\r\n\t\t\t\t\t\t\t\tlogger.log(Level.INFO, \"I can't understand what you said.\\n\");\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//Get the hypothesis\r\n\t\t\t\t\t\t\t\tspeechRecognitionResult = speechResult.getHypothesis();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//You said?\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"You said: [\" + speechRecognitionResult + \"]\\n\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//Call the appropriate method \r\n\t\t\t\t\t\t\t\tmakeDecision(speechRecognitionResult, speechResult.getWords());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tlogger.log(Level.INFO, \"Ingoring Speech Recognition Results...\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tlogger.log(Level.WARNING, null, ex);\r\n\t\t\t\t\tspeechRecognizerThreadRunning = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlogger.log(Level.INFO, \"SpeechThread has exited...\");\r\n\t\t\t\t\r\n\t\t\t});\r\n\t}",
"private void process(CaptureRequest request, CaptureResult result) {\n if (result.getFrameNumber() < last_process_frame_number) {\n return;\n }\n last_process_frame_number = result.getFrameNumber();\n\n updateCachedAECaptureStatus(result);\n\n handleStateChange(request, result);\n\n handleContinuousFocusMove(result);\n\n Integer af_state = result.get(CaptureResult.CONTROL_AF_STATE);\n if (af_state != null && af_state != last_af_state) {\n if (MyDebug.LOG)\n Log.d(TAG, \"CONTROL_AF_STATE changed from \" + last_af_state + \" to \" + af_state);\n last_af_state = af_state;\n }\n }",
"public void processFinish(int result) {\n MyApp myApp = (MyApp) getApplication();\n\n if (myApp.match[myApp.division()].size() > 0) {\n inflateMe();\n }\n\n }",
"public void handleVoiceKeyRecognized(final ScenarioController scenarioController, VoiceKey recognizedKey);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == CAMERA_REQUEST_CODE && resultCode == RESULT_OK) {\n bitmap = (Bitmap) data.getExtras().get(\"data\");\n imageView.setImageBitmap(bitmap);\n callCloudVision(bitmap, feature);\n }\n }",
"@Override\n public void onResults(List<LocationClass> results) {\n searchView.swapSuggestions(results);\n\n //let the users know that the background\n //process has completed\n }",
"@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }",
"private void setUiAfterIdentification(IdentifyResult[] result, boolean succeed) {\n if (succeed) {\n // Set the information about the detection result.\n Log.e(LOG_TAG1, \"Identification is done\");\n\n if (result != null) {\n String logString = \"Response: Success. \";\n for (IdentifyResult identifyResult: result) {\n logString += \"Identified: \"\n + (identifyResult.candidates.size() > 0\n ? StorageHelper.getPersonName(identifyResult.candidates.get(0).personId.toString(), mPersonGroupId, bingVisionService.this) + \" with confidence \"+identifyResult.candidates.get(0).confidence\n : \"Unknown Person\")\n + \". \";\n\n if (identifyResult.candidates.size() > 0) {\n face_result = face_result + \" \" + StorageHelper.getPersonName(identifyResult.candidates.get(0).personId.toString(), mPersonGroupId, bingVisionService.this) + \" (\" + identifyResult.candidates.get(0).confidence + \") \";\n }\n LogViewer.addLog(\"Face API: \" + face_result);\n\n }\n\n //mIdentifyResults.get(position).candidates.get(0).confidence\n Log.e(LOG_TAG1,logString);\n doneSignal.countDown();\n } else {\n Log.e(LOG_TAG1,\"null result in setUIAfterIdentification\");\n doneSignal.countDown();\n }\n }\n Log.e(LOG_TAG1,\"SUCCESS! DONE!!! face recognition\");\n doneSignal.countDown();\n }",
"@PostMapping()\n\tpublic ResponseEntity<Measure> Recognize(@RequestBody RecognitionDto request) {\n\t\tif(request == null)\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n\t\tPerson person = personRespository.getOne(request.getPerson_id());\t\t\n\t\tif(person == null || request.getUrl() == null || request.getUrl() == \"\")\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\t\n\t\tImage image = new Image (request.getUrl(), person);\n\t\timageRespository.save(image);\n\t\tMeasure measure = faceApiService.GetMesures(request.getUrl());\n\t\tmeasure.setImage(image);\n\t\tif (measure != null) {\n\t\t\tmeasuresRespository.save(measure);\n\t\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t\t}\t\n\t\treturn new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t}",
"void onResult(T result);",
"void onResult(T result);",
"@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\t\tif(\"false\".equals(result)){\n\t\t\t\t\t\tLog.e(TAG,\"图片没识别出脸\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tfacepp.addface2person(sp.getString(facepp.PERSON+\"ddd\", \"\"), result, new CallBack() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void result(String result) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tLog.e(TAG,result);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}",
"@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }",
"void onCaptureCompleted(CaptureRequest request, TotalCaptureResult result);",
"void onComplete(ResultModel result);",
"private void handleAnalysis()\n {\n try {\n InstanceInfo instances = scaler.getInstanceInfo(serviceRef);\n if (handleMemoryLoadIssues(instances)) {\n return;\n }\n governor.recordInstances(serviceRef, instances);\n ScalingAction action;\n if (firstRun) {\n LOG.info(\"Performing initial scaling checks for service {}\", serviceRef);\n action = handleFirstRun(instances);\n firstRun = false;\n } else {\n LOG.debug(\"Scaling checks for service {}\", serviceRef);\n action = analyser.analyseWorkload(instances);\n }\n\n action = governor.govern(serviceRef, action);\n\n switch (action.getOperation()) {\n case SCALE_UP:\n scaleUp(instances, action.getAmount());\n break;\n case SCALE_DOWN:\n scaleDown(instances, action.getAmount());\n break;\n case NONE:\n default:\n break;\n }\n } catch (ScalerException e) {\n LOG.warn(\"Failed analysis run for service {}\", serviceRef, e);\n }\n }",
"public void processImpactResults(Object o)\r\n/* 259: */ {\r\n/* 260:220 */ if ((o instanceof BetterSignal))\r\n/* 261: */ {\r\n/* 262:221 */ BetterSignal signal = (BetterSignal)o;\r\n/* 263:222 */ String input = (String)signal.get(0, String.class);\r\n/* 264:223 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", \"clear\" }));\r\n/* 265:224 */ translate(input);\r\n/* 266: */ }\r\n/* 267: */ }",
"public void listen(View v)\r\n {\r\n // set up an intent to ask for speech-to-text, and connect it back to\r\n // this Activity\r\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\r\n intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());\r\n\r\n // Give text to display, and a hint about the language model\r\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Tell the robot what to do!\");\r\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\r\n\r\n // How many results to return? They will be sorted by confidence\r\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 5);\r\n\r\n // Start the activity\r\n startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);\r\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();\n StrictMode.setVmPolicy(builder.build());\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_report_analysis);\n input_button = (ImageButton) findViewById(R.id.uploadImageBtn);\n image_view = (ImageView) findViewById(R.id.view2);\n analyze_button = (Button) findViewById(R.id.analyzeReportBtn);\n\n //ANALYSIS PART\n analyze_button.setEnabled(false);\n analyze_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(final View view) {\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n analyze_button.setEnabled(false);\n input_button.setEnabled(false);\n }\n });\n try {\n InputStream inputStream;\n //this will automatically handle image from camera/gallery based on \"cam_flag\"\n if (cam_flag) //usage of cam_flag\n inputStream = new FileInputStream(Environment.getExternalStorageDirectory().getPath() + \"/image.jpg\");\n else\n inputStream = getContentResolver().openInputStream(image_uri); //the image you have to play with now is inputStream\n\n //OCR WORK\n Vision.Builder visionBuilder = new Vision.Builder(\n new NetHttpTransport(),\n new AndroidJsonFactory(),\n null);\n\n\n visionBuilder.setVisionRequestInitializer(new VisionRequestInitializer(\"AIzaSyDnTlB2Lt4YDMAY06rcyNyRJuYcxM7GfKA\"));\n vision = visionBuilder.build();\n\n //Call to analysis part\n analyze_Report(inputStream, view);\n\n } catch (Exception e) {\n\n }\n }\n });\n thread.run();\n\n }\n\n });\n\n //INPUT IMAGE PART\n input_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n AlertDialog.Builder builder = new AlertDialog.Builder(v.getContext());\n builder.setMessage(\"Where would you like to input image from?\")\n .setCancelable(true)\n .setPositiveButton(\"Camera\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent camera_intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n File file = getFile();\n camera_intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));\n startActivityForResult(camera_intent,CAM_REQUEST);\n }\n })\n .setNegativeButton(\"Gallery\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n File pictureDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n String pictureDirectoryPath = pictureDirectory.getPath();\n Uri data = Uri.parse(pictureDirectoryPath);\n photoPickerIntent.setDataAndType(data,\"image/*\");\n startActivityForResult(photoPickerIntent,9);\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n\n\n drawerLayout= (DrawerLayout)findViewById(R.id.drawerid);\n\n //nav bar open and close\n actionBarDrawerToggle= new ActionBarDrawerToggle(this,drawerLayout,R.string.open, R.string.close);\n drawerLayout.addDrawerListener(actionBarDrawerToggle);\n actionBarDrawerToggle.syncState();\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n //Color the acion bar\n getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0xff2b78b4));\n\n navigationView = (NavigationView) findViewById(R.id.nav_view);\n navigationView.setNavigationItemSelectedListener(this);\n\n\n\n\n }",
"protected void handleResult(final ResultHolder<S, T> resultHolder) {\n\t\tif (resultHolder.isResult()) {\n\t\t\t// Successful Result\n\t\t\thandleResultSuccessful(resultHolder.getResult());\n\t\t} else {\n\t\t\t// Exception message\n\t\t\tException excp = resultHolder.getException();\n\t\t\thandleResultException(excp);\n\t\t\tLOG.error(\"Error loading data. \" + excp.getMessage());\n\t\t}\n\t}",
"@Override\n public void handleResult(Intent data) {\n }",
"public void processResults(){\n double latitude = Double.parseDouble(latText.getText().trim());\n double longitude = Double.parseDouble(longText.getText().trim());\n int year = Integer.parseInt(yearText.getText().trim());\n\n int observatoryId = MainController.observatoryID;\n\n Runnable task = new Runnable() {\n @Override\n public void run() {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n int id = ObservatoryData.getInstance().getDatabase().getLastGalamseyEntry() + 1;\n Galamsey newest = new Galamsey(id,observatoryId,longitude,latitude,year, Galamsey.vegColour.getColour(colourValue));\n ObservatoryData.getInstance().getGalamseyHashMap().add(id,newest);\n ObservatoryData.getInstance().getDatabase().insertIntoGalamseyDB(vegColour,colourValue, latitude,longitude,year,observatoryId);\n ObservatoryData.getInstance().buildObservatoryList();\n }\n });\n\n }\n };\n\n new Thread(task).start();\n }",
"@Override\r\n\tpublic boolean results()\r\n\t{\r\n\t\treturn this.results(this.getRobot());\r\n\t}",
"private void retrieveResult() {\n if (result == null) {\n this.setResult(((DocumentBuilder)this.getHandler()).getResult());\n }\n }",
"public interface YJVORecognizeListener\n{\n\n public abstract void onRecognizeResult(int i, YJVORecognizeResult yjvorecognizeresult);\n\n public abstract void onRecognizeState(YJVO_STATE yjvo_state);\n\n public abstract void onRecordingStart();\n\n public abstract void onVolumeChanged(short word0);\n}",
"@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\t\n\t\tyoutubeFragment = (YouTubeFragment) getChildFragmentManager().findFragmentById(R.id.youtube_fragment);\n\t\t\n\t\tpresentSearchTerm = \"\";\n\t\twordList = \"\";\n\t\t\n if (requestCode==REQUEST_OK && resultCode==-1) {\n \t\tArrayList <String> thingsYouSaid = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n \t\tspokenPhrase = thingsYouSaid.get(0);\n \t\tif (spokenPhrase.length() == 0) {\n \t\t\tToast.makeText(getActivity(), \"You said nothing!\", Toast.LENGTH_SHORT).show();\n \t\t}\n \t\telse {\n\t \t\twords = spokenPhrase.split(\" \");\n\t \t\tindividualWords = new ArrayList<String>(Arrays.asList(words));\n\t \t\t\n\t \t\tif (spokenPhrase.contains(\"youtube\")) {\n\t \t\t\tindividualWords.remove(\"youtube\");\n\t \t\t\tpresentSearchTerm = \"YouTube search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"search youtube for\")) {\n\t \t\t\tindividualWords.remove(\"search\");\n\t \t\t\tindividualWords.remove(\"youtube\");\n\t \t\t\tindividualWords.remove(\"for\");\n\t \t\t\tpresentSearchTerm = \"YouTube search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"on youtube\")) {\n\t \t\t\tindividualWords.remove(\"on\");\n\t \t\t\tindividualWords.remove(\"youtube\");\n\t \t\t\tpresentSearchTerm = \"YouTube search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"from youtube\")) {\n\t \t\t\tindividualWords.remove(\"from\");\n\t \t\t\tindividualWords.remove(\"youtube\");\n\t \t\t\tpresentSearchTerm = \"YouTube search results for: \";\n\t \t\t}\n\t \t\t\n\t \t\tif (spokenPhrase.contains(\"last fm\")) {\n\t \t\t\tindividualWords.remove(\"last\");\n\t \t\t\tindividualWords.remove(\"fm\");\n\t \t\t\tpresentSearchTerm = \"Last.fm search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"search last fm for\")) {\n\t \t\t\tindividualWords.remove(\"search\");\n\t \t\t\tindividualWords.remove(\"last\");\n\t \t\t\tindividualWords.remove(\"fm\");\n\t \t\t\tindividualWords.remove(\"for\");\n\t \t\t\tpresentSearchTerm = \"Last.fm search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"on last fm\")) {\n\t \t\t\tindividualWords.remove(\"on\");\n\t \t\t\tindividualWords.remove(\"last\");\n\t \t\t\tindividualWords.remove(\"fm\");\n\t \t\t\tpresentSearchTerm = \"Last.fm search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"from last fm\")) {\n\t \t\t\tindividualWords.remove(\"from\");\n\t \t\t\tindividualWords.remove(\"last\");\n\t \t\t\tindividualWords.remove(\"fm\");\n\t \t\t\tpresentSearchTerm = \"Last.fm search results for: \";\n\t \t\t}\n\t\n\t \t\tif (spokenPhrase.contains(\"spotify\")) {\n\t \t\t\tindividualWords.remove(\"spotify\");\n\t \t\t\tpresentSearchTerm = \"Spotify search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"search spotify for\")) {\n\t \t\t\tindividualWords.remove(\"search\");\n\t \t\t\tindividualWords.remove(\"spotify\");\n\t \t\t\tindividualWords.remove(\"for\");\n\t \t\t\tpresentSearchTerm = \"Spotify search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"on spotify\")) {\n\t \t\t\tindividualWords.remove(\"on\");\n\t \t\t\tindividualWords.remove(\"spotify\");\n\t \t\t\tpresentSearchTerm = \"Spotify search results for: \";\n\t \t\t}\n\t \t\tif (spokenPhrase.contains(\"from spotify\")) {\n\t \t\t\tindividualWords.remove(\"from\");\n\t \t\t\tindividualWords.remove(\"spotify\");\n\t \t\t\tpresentSearchTerm = \"Spotify search results for: \";\n\t \t\t}\n\t \t\t\t\n\t \t\tfor (int x = 0; x < individualWords.size(); x++) {\n\t \t\t\twordList += individualWords.get(x) + \" \";\n\t \t\t}\n\t \n\t \n\t\t if (presentSearchTerm == \"\") {\n\t\t \tpresentSearchTerm = \"Search results for: \";\n\t\t }\n\t\t \n\t\t presentSearchTerm += wordList;\n\t\t\t\t\n\t\t\t\tnew CommunicateWithYouTubeTask().execute(wordList);\n \t\t}\n\t }\n\t}"
] | [
"0.682601",
"0.67526954",
"0.65853536",
"0.6375192",
"0.6374523",
"0.63414335",
"0.6224633",
"0.6222926",
"0.6206272",
"0.6162261",
"0.6113241",
"0.6069785",
"0.6069052",
"0.60679543",
"0.6041503",
"0.60384065",
"0.59749985",
"0.596006",
"0.59425193",
"0.5939856",
"0.5938454",
"0.59333056",
"0.5915605",
"0.58964604",
"0.58865297",
"0.5881327",
"0.5858653",
"0.5851374",
"0.5836523",
"0.5796709",
"0.5794793",
"0.57855004",
"0.5785166",
"0.5761174",
"0.5749026",
"0.5728556",
"0.57017034",
"0.5701703",
"0.5679675",
"0.56515557",
"0.5630253",
"0.56298465",
"0.5621838",
"0.56173086",
"0.56125855",
"0.5604729",
"0.5604729",
"0.55876523",
"0.5580884",
"0.5574687",
"0.5550851",
"0.5540522",
"0.5520789",
"0.5513239",
"0.5512195",
"0.55093384",
"0.55076474",
"0.54989076",
"0.5487986",
"0.54872537",
"0.54833037",
"0.54719365",
"0.546131",
"0.5454493",
"0.5453725",
"0.5446711",
"0.54367816",
"0.542735",
"0.54269975",
"0.5416672",
"0.53931147",
"0.5380411",
"0.537633",
"0.53640014",
"0.5351153",
"0.534826",
"0.5341921",
"0.5325412",
"0.53243196",
"0.53204376",
"0.53156585",
"0.53122824",
"0.53044385",
"0.530248",
"0.530248",
"0.53007156",
"0.52941084",
"0.529103",
"0.5289965",
"0.5280397",
"0.5270124",
"0.52676946",
"0.52367",
"0.5233919",
"0.5233837",
"0.5216881",
"0.5215781",
"0.5210752",
"0.5210647",
"0.5191424"
] | 0.54998267 | 57 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.teste, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.72461367",
"0.7201596",
"0.7195268",
"0.7177002",
"0.71069986",
"0.7039653",
"0.70384306",
"0.70115715",
"0.7010647",
"0.69803435",
"0.6945406",
"0.69389313",
"0.6933442",
"0.69172275",
"0.69172275",
"0.6890826",
"0.6883689",
"0.687515",
"0.6874831",
"0.68615955",
"0.68615955",
"0.68615955",
"0.68615955",
"0.68522274",
"0.6846375",
"0.68189865",
"0.68165565",
"0.68124795",
"0.6812267",
"0.6812267",
"0.68056566",
"0.6800461",
"0.6797465",
"0.6790805",
"0.6789039",
"0.6787885",
"0.6782993",
"0.67597246",
"0.67570525",
"0.6747535",
"0.6743268",
"0.6743268",
"0.6740546",
"0.67395175",
"0.67256093",
"0.6723954",
"0.6722248",
"0.6722248",
"0.6720444",
"0.67118156",
"0.6706721",
"0.6704184",
"0.66993994",
"0.66988564",
"0.669681",
"0.66943884",
"0.66860807",
"0.668306",
"0.668306",
"0.6682587",
"0.668012",
"0.6678661",
"0.6676379",
"0.6668044",
"0.66669863",
"0.66628903",
"0.6657356",
"0.6657356",
"0.6657356",
"0.66565585",
"0.665397",
"0.665397",
"0.665397",
"0.66525495",
"0.66518986",
"0.66496557",
"0.6648199",
"0.6646489",
"0.66462386",
"0.6646177",
"0.6645531",
"0.66453475",
"0.66446036",
"0.66438025",
"0.6642411",
"0.6641632",
"0.6638948",
"0.6634394",
"0.66336566",
"0.6632082",
"0.66315377",
"0.66315377",
"0.66315377",
"0.6628936",
"0.6627818",
"0.6627061",
"0.66256744",
"0.6623986",
"0.661993",
"0.6618369",
"0.6618369"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.7904035",
"0.78057915",
"0.77662706",
"0.7727266",
"0.76317817",
"0.76219225",
"0.7584542",
"0.7530336",
"0.7487623",
"0.7457442",
"0.7457442",
"0.7438915",
"0.7421425",
"0.7403424",
"0.73923",
"0.7387485",
"0.7379756",
"0.7370862",
"0.73622537",
"0.73564696",
"0.7345994",
"0.73419464",
"0.73299843",
"0.7327844",
"0.7326043",
"0.73197556",
"0.7317143",
"0.73140186",
"0.7304616",
"0.7304616",
"0.7302084",
"0.7298582",
"0.72940314",
"0.7287458",
"0.72837925",
"0.7281312",
"0.7279086",
"0.7260266",
"0.7260266",
"0.7260266",
"0.7259928",
"0.7259814",
"0.7250412",
"0.72233367",
"0.72201204",
"0.7218085",
"0.72047156",
"0.71999466",
"0.7198876",
"0.719304",
"0.71861094",
"0.7177511",
"0.71693677",
"0.7167732",
"0.7154041",
"0.71537524",
"0.71356887",
"0.7135142",
"0.7135142",
"0.71303266",
"0.71286845",
"0.7124354",
"0.71238357",
"0.71235263",
"0.71224594",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71173346",
"0.7117265",
"0.7116576",
"0.71150905",
"0.7112618",
"0.71099126",
"0.7109077",
"0.71057403",
"0.71000075",
"0.70982087",
"0.70952326",
"0.7093795",
"0.7093795",
"0.708655",
"0.7082642",
"0.708111",
"0.7080437",
"0.707404",
"0.70684844",
"0.70619047",
"0.70604676",
"0.7060448",
"0.7051464",
"0.70378536",
"0.70378536",
"0.7036111",
"0.70355594",
"0.70355594",
"0.7032436",
"0.7031054",
"0.70297045",
"0.701964"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.